/* VOICE everyday study library: friendly, tidy, quick to use
   IDEA a shelf of printed lecture handouts: every note is a paper sheet with a folded corner and a subject tab
   PICTURE hero: fanned stack of PDF handouts, a small neural net on the top sheet, orange download badge
   COLOUR sky #4fb3e8 band, white sheets, ink #10223a, orange #ff7a1a for download and like; night #0b1726
   TYPE Outfit 600 display + Inter text
   LAYOUT laptop: sky band (title + search left, sheets right), filter row, sheet grid; phone: title, picture, search, one column */
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#0b1726);--ink:light-dark(#10223a,#e8f1f8);--muted:light-dark(#46586e,#a9bccd);--sky:light-dark(#4fb3e8,#163a57);--sheet:light-dark(#ffffff,#12253a);--fold:light-dark(#d9e8f2,#24405a);--line:light-dark(#d6e2ec,#24405a);--tint:light-dark(#eef7fd,#0f2133);--orange:#ff7a1a;--dark:#10223a}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none !important}
html{scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:clip}
h1,h2,h3{font-family:Outfit,Inter,system-ui,sans-serif;font-weight:600;letter-spacing:-.02em;line-height:1.08;margin:0}
a{color:inherit}
img{max-width:100%}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(4vw,16px);padding-right:max(4vw,16px)}
.band{padding-block:clamp(28px,4vw,56px)}
.sky{background:var(--sky);color:var(--ink)}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:18px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font:600 22px/1 Outfit,Inter,sans-serif}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav a{text-decoration:none;font-weight:500;padding:10px 14px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center}
.nav a:hover{background:color-mix(in srgb,var(--ink) 10%,transparent)}
.hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:"t pic" "s pic";column-gap:40px;align-items:center;padding-bottom:clamp(28px,4vw,48px)}
.hero .t{grid-area:t;align-self:end}
.hero .s{grid-area:s;align-self:start}
.hero .pic{grid-area:pic;height:300px}
.hero .pic svg{width:100%;height:100%;display:block}
.hero h1{font-size:clamp(34px,4.6vw,52px);text-wrap:balance;max-width:14ch}
.hero p{font-size:18px;max-width:52ch;margin:14px 0 22px}
.search{display:flex;gap:8px;max-width:560px}
.search input{flex:1}
.stats{margin:14px 0 0;font-size:15px;font-weight:500}
input,select,textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--sheet);border:1.5px solid var(--line);border-radius:12px;padding:11px 14px;min-height:48px;width:100%}
textarea{min-height:110px;resize:vertical}
.sky input{border-color:color-mix(in srgb,var(--dark) 35%,transparent)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
label{font-weight:600;font-size:15px;display:block;margin:0 0 6px}
.btn{font:inherit;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:999px;border:1.5px solid transparent;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn.primary{background:var(--orange);color:var(--dark)}
.btn.primary:hover{background:#ff8f3d}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--ink)}
.btn.dark{background:var(--dark);color:#fff}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn svg{width:18px;height:18px;flex:none}
.bar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:22px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{font:inherit;font-size:15px;font-weight:500;min-height:40px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--sheet);color:var(--ink);cursor:pointer}
.chip[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:#fff}
.sort{display:flex;align-items:center;gap:8px}
.sort label{margin:0;font-weight:500}
.sort select{width:auto;min-height:44px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:22px}
.note{position:relative;background:var(--sheet);border:1.5px solid var(--line);border-radius:14px 34px 14px 14px;padding:20px 20px 18px;display:flex;flex-direction:column;gap:10px;box-shadow:0 2px 0 var(--line)}
.note::after{content:"";position:absolute;top:-1.5px;right:-1.5px;width:34px;height:34px;background:linear-gradient(225deg,var(--bg) 50%,var(--fold) 50%);border-radius:0 0 0 10px}
.tab{align-self:flex-start;font-size:13px;font-weight:600;color:var(--dark);padding:4px 10px;border-radius:6px}
.note h3{font-size:21px;padding-right:22px}
.desc{margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.meta{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px}
.meta span{white-space:nowrap}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
.acts .btn{flex:1 1 auto}
.social{display:flex;flex-wrap:wrap;gap:8px;border-top:1.5px solid var(--line);padding-top:12px}
.icon{font:inherit;font-weight:600;font-size:15px;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;border-radius:999px;border:1.5px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;text-decoration:none;white-space:nowrap}
.icon:hover{border-color:var(--ink)}
.icon svg{width:18px;height:18px}
.icon[aria-pressed=true]{background:#ffe1c9;border-color:var(--orange);color:var(--dark)}
.icon[aria-pressed=true] svg{fill:var(--orange);stroke:var(--orange)}
.empty{border:2px dashed var(--line);border-radius:16px;padding:40px 24px;text-align:center;color:var(--muted)}
.empty strong{display:block;color:var(--ink);font-size:20px;margin-bottom:6px;font-family:Outfit,Inter,sans-serif}
.notice{background:#fff1bf;color:var(--dark);border-radius:12px;padding:12px 16px;font-size:15px;margin-bottom:18px}
.notice.err{background:#fde2e2}
.about{background:var(--tint)}
.about-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:40px;align-items:start}
.about h2{font-size:clamp(28px,3.4vw,40px)}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.steps li{background:var(--sheet);border:1.5px solid var(--line);border-radius:14px;padding:18px}
.steps b{display:block;font-family:Outfit,Inter,sans-serif;font-size:19px;font-weight:600;margin-bottom:4px}
.steps svg{width:28px;height:28px;stroke:var(--ink);margin-bottom:10px}
footer{background:var(--dark);color:#e8f1f8}
footer .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;padding-block:28px}
footer a{color:#e8f1f8}
footer nav{display:flex;gap:18px;flex-wrap:wrap}
dialog{border:0;border-radius:18px;padding:0;width:min(640px,calc(100% - 24px));max-height:calc(100% - 32px);background:var(--sheet);color:var(--ink)}
dialog::backdrop{background:rgba(16,34,58,.55)}
.dh{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:20px 20px 12px;border-bottom:1.5px solid var(--line);position:sticky;top:0;background:var(--sheet)}
.dh h2{font-size:24px}
.db{padding:16px 20px 20px}
.clist{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:12px}
.clist li{background:var(--tint);border-radius:12px;padding:12px 14px}
.clist .who{font-weight:600}
.clist .when{color:var(--muted);font-size:14px;margin-left:8px}
.clist p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.field{margin-bottom:14px}
.hint{font-size:14px;color:var(--muted);margin:6px 0 0}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--dark);color:#fff;padding:12px 18px;border-radius:12px;font-weight:500;z-index:50;max-width:calc(100% - 32px)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.panel{background:var(--sheet);border:1.5px solid var(--line);border-radius:16px;padding:22px}
.scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:15px}
th,td{text-align:left;padding:10px 8px;border-bottom:1.5px solid var(--line);vertical-align:top}
th{font-weight:600;color:var(--muted)}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bob{animation:bob 2.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.bob{animation:none}}
@media(max-width:820px){.about-grid{grid-template-columns:minmax(0,1fr)}.steps{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.nav a{padding:10px 10px}.hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"t" "pic" "s"}.hero .pic{height:190px;margin:8px 0 14px}.hero p{margin-bottom:0}.search{flex-direction:column}.bar{align-items:stretch}.sort{justify-content:space-between}}
@media(max-width:600px){table{font-size:13px}th,td{padding:6px 4px}.stack thead{display:none}.stack tr{display:grid;padding-block:10px;border-bottom:1.5px solid var(--line)}.stack td{display:flex;justify-content:space-between;gap:12px;border:0;padding:3px 0;text-align:right}.stack td::before{content:attr(data-l);font-weight:600;color:var(--muted);text-align:left}}
