:root{--primary:#1613e7;--primary-soft:#e6edff;--text:#1a2233;--muted:#6b7487;--bg:#fff;--surface:#f3f5fb;--border:#e3e7ef;--danger:#c0392b;--danger-soft:#fdecea;--success:#1e8e5a;--success-soft:#e3f6ec;--warning:#a66a00;--warning-soft:#fdf1d8;--transparent:transparent;--color-primary-dark:#19449f;--primary-surface:#edf2ff;--primary-hover-surface:#e2eaff;--primary-wash:#f1f5ff;--primary-subtle:#eaf0ff;--primary-border:#a9bee9;--warning-strong:#805300;--warning-tint:#fff1c2;--success-strong:#17613a;--success-tint:#d9f3e2;--danger-strong:#a4262c;--danger-tint:#fde1e0;--success-button:#16803c;--success-button-hover:#11652f;--danger-button:#b4232f;--danger-button-hover:#8f1b25;--input-border:#cbd4e2;--border-subtle:#edf0f5;--surface-alt:#f7f8fb;--purple-text:#5630e1;--purple-surface:#ece7ff;--slate-text:#37516b;--slate-surface:#e8eef5;--neutral-surface:#eef0f4;--danger-button-light:#bd2c3b;--danger-button-light-hover:#a82130;--primary-border-soft:#cbd7ef;--primary-border-muted:#d5e0f6;--surface-soft:#f3f6fc;--skeleton:#e8ebf0;--skeleton-border:#e0e4eb;--neutral-divider:#d7dce5;--danger-surface:#fff6f5;--danger-border:#f2c5c3;--dark-surface:#111827;--light-surface:#f7f8fa;--dark-muted:#34425a;--surface-muted:#f1f4f9;--success-surface:#effaf3;--success-border:#b9e5c8;--muted-strong:#78849a;--neutral-surface-soft:#f1f3f6;--muted-contrast:#778198;--shadow-ink-4:#1720330a;--shadow-ink-5:#1720330d;--shadow-ink-7:#17203312;--shadow-ink-9:#17203317;--shadow-ink-12:#1720331f;--shadow-ink-14:#17203324;--shadow-ink-16:#17203329;--shadow-ink-18:#1720332e;--shadow-black-24:#0000003d;--shadow-black-28:#00000047;--focus-primary:#2357c624;--focus-danger:#b4232f24;--overlay-navy-72:#080e1bb8;--overlay-navy-82:#080e1bd1;--overlay-navy-88:#080e1be0;--overlay-ink-10:#1a22331a;--overlay-ink-68:#1a2233ad;--overlay-ink-72:#1a2233b8;--overlay-white-17:#ffffff2b;--shimmer-highlight:#ffffff8c;--radius-sm:12px;--radius-md:16px;--radius-lg:20px;--space:16px;--color-primary:var(--primary);--color-ink:var(--text);--color-muted:var(--muted);--color-border:var(--border);--color-surface:var(--bg);color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400}body{background:var(--bg);color:var(--text);font-family:system-ui,Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;line-height:1.5}.page{width:100%;max-width:1100px;margin:0 auto;padding:16px 16px 90px}@keyframes page-fade-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.content-fade-in{animation:.2s ease-out content-fade-in}@keyframes content-fade-in{0%{opacity:0}to{opacity:1}}.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px}.btn,.chip,.card a,a.card,.browse-card,.home-course-tile,.semester-tile,.subject-row{transition:transform .15s ease-out,background-color .15s ease-out,box-shadow .15s ease-out,opacity .15s ease-out}.btn{border:1px solid var(--transparent);cursor:pointer;min-height:44px;font:inherit;text-align:center;border-radius:14px;justify-content:center;align-items:center;padding:0 18px;font-weight:700;text-decoration:none;display:inline-flex}.btn:disabled{cursor:not-allowed;opacity:.5}.btn:active:not(:disabled),.chip:active,.card a:active,a.card:active,.browse-card:active,.home-course-tile:active,.semester-tile:active,.subject-row:active{transform:scale(.97)}@media (hover:hover){.browse-card:hover,a.card:hover,.home-course-tile:hover,.semester-tile:hover,.subject-row:hover{transform:translateY(-2px)}}.btn-primary{color:var(--bg);background:var(--primary)}.btn-soft{color:var(--primary);background:var(--primary-soft)}.btn-danger{color:var(--danger);background:var(--danger-soft)}.btn-ghost{color:var(--text);background:var(--transparent);border-color:var(--border)}.input,.select,.textarea{width:100%;min-height:48px;color:var(--text);background:var(--surface);font:inherit;border:0;border-radius:14px;padding:0 14px;font-size:16px}.textarea{resize:vertical;min-height:7rem;padding-top:12px;padding-bottom:12px}.input:focus,.select:focus,.textarea:focus{outline:2px solid var(--primary);outline-offset:1px}.input-error,.input-error:focus{outline:2px solid var(--danger);outline-offset:1px}.field-error{color:var(--danger);font-size:12px}.badge{text-transform:capitalize;border-radius:999px;align-items:center;min-height:22px;padding:2px 8px;font-size:12px;font-weight:700;line-height:1.4;display:inline-flex}.badge-pending{color:var(--warning);background:var(--warning-soft)}.badge-approved{color:var(--success);background:var(--success-soft)}.badge-rejected{color:var(--danger);background:var(--danger-soft)}.chip{min-height:44px;color:var(--text);background:var(--surface);cursor:pointer;font:inherit;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0 14px;font-size:14px;font-weight:600;display:inline-flex}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.chip-active{color:var(--bg);background:var(--primary)}.empty-state{color:var(--muted);text-align:center;justify-items:center;gap:8px;padding:24px 16px;display:grid}.empty-state-icon{min-width:44px;min-height:44px;color:var(--muted);place-items:center;display:grid}.alert-error{color:var(--danger);background:var(--danger-soft);border-radius:14px;padding:12px 14px}.skeleton{background:var(--skeleton);border-radius:var(--radius-sm);position:relative;overflow:hidden}.skeleton:after{background:linear-gradient(90deg, var(--transparent), var(--shimmer-highlight), var(--transparent));content:"";animation:1.5s infinite design-system-shimmer;position:absolute;inset:0;transform:translate(-100%)}@keyframes design-system-shimmer{to{transform:translate(100%)}}@media (width>=768px){.page{padding:24px}}@media (width<=767px){.page{padding-bottom:90px}}:root{--primary:#2748d8;--primary-soft:#e4ebfd;--bg:#f6f8ff}body{background:var(--bg)}.home-hero{color:#fff;background:var(--primary);border-radius:0 0 32px 32px;margin:-16px -16px 0;padding:20px 20px 64px;position:relative;overflow:hidden}@media (width>=768px){.home-hero{margin:-24px -24px 0;padding:28px 28px 72px}}.home-hero-circle{pointer-events:none;background:#fff;border-radius:50%;position:absolute}.home-hero-circle.c1{opacity:.12;width:220px;height:220px;top:-90px;right:-70px}.home-page .home-hero .home-hero-circle.c2{opacity:.4;background:#fec756;width:80px;height:80px;top:100px;right:28px}.home-page .home-hero .home-hero-greet{color:#fff;opacity:.85;margin:0 0 6px;font-size:13px;position:relative}.home-page .home-hero .home-hero-title{color:#fff;max-width:92%;margin:0;font-size:28px;font-weight:700;line-height:1.15;position:relative}.home-page .home-hero .home-hero-sub{color:#fff;opacity:.85;margin:8px 0 0;font-size:14px;position:relative}.home-page .home-search-wrap{z-index:2;margin:-28px 0 16px;position:relative}.home-page .home-search-wrap .home-search-icon{stroke:#6b7487;stroke-width:2px;fill:none;pointer-events:none;z-index:1;width:20px;height:20px;position:absolute;top:26px;left:18px;transform:translateY(-50%)}.home-page .home-search-wrap input{box-sizing:border-box;height:52px;font-size:16px;background:#fff!important;border:0!important;border-radius:999px!important;width:100%!important;padding:0 18px 0 46px!important;box-shadow:0 6px 20px #2748d82e!important}.home-page .home-search-wrap .subject-search-results{z-index:30;max-height:60vh;position:absolute;top:calc(100% + 8px);left:0;right:0;overflow-y:auto}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}@media (width>=640px){.course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=1024px){.course-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.course-grid .home-course-skeleton{border-radius:20px;height:120px}.course-tile{background:var(--tile-bg);height:120px;color:var(--tile-text);border-radius:20px;padding:14px;text-decoration:none;transition:transform .15s;display:block;position:relative;overflow:hidden}.course-tile:active{transform:scale(.97)}@media (hover:hover){.course-tile:hover{transform:translateY(-2px)}}.course-tile:after{content:"";pointer-events:none;background:#ffffff2e;border-radius:50%;width:84px;height:84px;position:absolute;bottom:-22px;right:-18px}.course-tile-name{padding-right:44px;font-size:22px;font-weight:700;line-height:1.15;display:block}.course-tile-name.is-long{font-size:18px}.course-tile-arrow{z-index:1;width:32px;height:32px;color:var(--tile-accent);background:#fff;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;top:12px;right:12px}.course-tile-pill{z-index:1;background:#ffffff38;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;position:absolute;bottom:14px;left:14px}.page-title-block,.home-upload-banner,.semester-card,.semester-tile{position:relative;overflow:hidden}.page-title-block>*,.home-upload-banner>*,.semester-card>*,.semester-tile>*{z-index:1;position:relative}.page-title-block:before,.page-title-block:after,.home-upload-banner:after,.semester-card:after,.semester-tile:after{content:"";pointer-events:none;background:#fff;border-radius:50%;position:absolute}.page-title-block:before{opacity:.12;width:140px;height:140px;top:-60px;right:-40px}.page-title-block:after{opacity:.18;width:72px;height:72px;bottom:-26px;right:28px}.home-upload-banner:after{opacity:.18;width:94px;height:94px;bottom:-18px;right:-18px}.semester-card:after,.semester-tile:after{opacity:.18;width:44px;height:44px;bottom:-18px;right:-14px}.site-header a.profile-avatar{border-radius:999px;justify-content:center;align-items:center;width:auto;height:36px;padding:0 14px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}@keyframes page-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.page-fade{animation:.24s cubic-bezier(.22,.61,.36,1) page-enter}@keyframes item-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.course-grid>*,.semester-grid>*,.subject-list>*{animation:.26s cubic-bezier(.22,.61,.36,1) backwards item-enter}.course-grid>:nth-child(2),.semester-grid>:nth-child(2),.subject-list>:nth-child(2){animation-delay:40ms}.course-grid>:nth-child(3),.semester-grid>:nth-child(3),.subject-list>:nth-child(3){animation-delay:80ms}.course-grid>:nth-child(4),.semester-grid>:nth-child(4),.subject-list>:nth-child(4){animation-delay:.12s}.course-grid>:nth-child(n+5),.semester-grid>:nth-child(n+5),.subject-list>:nth-child(n+5){animation-delay:.16s}@media (prefers-reduced-motion:reduce){.page-fade,.course-grid>*,.semester-grid>*,.subject-list>*{animation:none}.course-tile{transition:none}}@media (width<=767px){html,body{max-width:100%;margin:0;overflow-x:hidden}.home-page{box-sizing:border-box;width:100%;overflow-x:clip;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-top:0!important;padding-left:0!important;padding-right:0!important}.home-page>:not(.home-hero){margin-left:16px;margin-right:16px}.home-page .home-hero{box-sizing:border-box;width:100%;padding-top:76px;padding-bottom:52px;margin:0!important}.home-page .home-search-wrap{width:auto!important;max-width:none!important;box-shadow:none!important;background:0 0!important;border:0!important;margin:-28px 16px 16px!important;padding:0!important}.site-header.on-hero{box-sizing:border-box;min-height:68px;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border-bottom:0;transition:background-color .2s,box-shadow .2s;width:100%!important;max-width:none!important;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px!important;z-index:100!important;border-radius:0!important;justify-content:space-between!important;align-items:center!important;margin:0!important;display:flex!important;position:fixed!important;top:0!important;left:0!important;right:0!important}.site-header.on-hero.is-scrolled{box-shadow:0 4px 16px #2748d840;background:var(--primary)!important}.site-header.on-hero .header-actions{align-items:center;gap:8px;display:flex}.site-header.on-hero .brand,.site-header.on-hero .brand span{color:#fff}.site-header.on-hero .brand-mark{background:#fff;border-radius:10px;padding:3px}.site-header.on-hero .btn-soft{color:#fff;background:#ffffff2e}.site-header.on-hero .profile-avatar{color:#2b2100;background:#fec756}.site-header.on-hero a.profile-avatar,.site-header.on-hero button.profile-avatar{min-width:36px;height:36px;margin:0;line-height:1}.site-header.on-hero .profile-dropdown{color:var(--text)}.bottom-nav{width:auto;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40;background:#fff;border:0;border-radius:24px;justify-content:space-around;align-items:center;gap:4px;padding:6px;display:flex;position:fixed;box-shadow:0 8px 24px #2748d82e}.bottom-nav-item{color:#6b7487;cursor:pointer;background:0 0;border:0;border-radius:18px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;min-height:52px;font-size:11px;text-decoration:none;display:flex}.bottom-nav-item svg{width:22px;height:22px}.bottom-nav-item.is-active{background:var(--primary-soft);color:var(--primary);font-weight:700}.page{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}}@media (width>=768px){.bottom-nav{display:none!important}}.site-header .brand-mark{mix-blend-mode:normal;object-fit:contain;background:#fff;border-radius:10px;padding:3px}.auth-logo,.login-logo,.auth-card img,.login-card img,.auth-page img{object-fit:contain;background:#fff;border-radius:14px;padding:4px}@keyframes fb-rot{to{transform:rotate(360deg)}}@keyframes fb-breathe{0%,to{opacity:.55;transform:scale(1)}50%{opacity:.85;transform:scale(1.28)}}@keyframes fb-b1{0%,to{transform:translate(-8px,-6px)scale(1)}50%{transform:translate(8px,7px)scale(1.3)}}@keyframes fb-b2{0%,to{transform:translate(8px,-7px)scale(1.1)}50%{transform:translate(-7px,8px)scale(.9)}}@keyframes fb-b3{0%,to{transform:translate(-3px,6px)scale(1)}50%{transform:translate(5px,-8px)scale(1.25)}}.feedback-fab{right:14px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:60;width:46px;height:46px;transition:width .32s cubic-bezier(.4,0,.2,1),height .18s,bottom .2s;position:fixed}.feedback-fab.open{width:min(250px,100vw - 28px)}.feedback-fab.open.typing{width:min(380px,100vw - 28px)}@media (width>=768px){.feedback-fab{bottom:24px;right:24px}}.feedback-glow-wrap{pointer-events:none;width:46px;height:46px;transition:opacity .25s .3s;position:absolute;bottom:0;right:0}.feedback-fab.open .feedback-glow-wrap{opacity:0;transition:opacity .1s}.feedback-glow{width:46px;height:46px;animation:3s ease-in-out infinite fb-breathe}.feedback-glow div{filter:blur(11px);background:conic-gradient(#22d3ee,#7c3aed,#2748d8,#22d3ee);border-radius:50%;width:100%;height:100%;animation:5s linear infinite fb-rot}.feedback-pill{box-sizing:border-box;background:#fff0;border:.5px solid #0000;border-radius:23px;transition:background .25s,border-color .25s,box-shadow .25s;position:absolute;inset:0;overflow:hidden}.feedback-fab.open .feedback-pill{border-color:#d5def5;box-shadow:0 4px 14px #2748d826;background:#fff!important}.feedback-input{box-sizing:border-box;appearance:none;resize:none;-webkit-text-fill-color:#141a2e;white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-width:none;opacity:0;pointer-events:none;width:100%;height:100%;margin:0;font-family:inherit;font-size:13px;line-height:20px;transition:opacity .18s;position:absolute;top:0;left:0;overflow-y:auto;min-height:0!important;box-shadow:none!important;color:#141a2e!important;background:0 0!important;border:0!important;outline:none!important;padding:13px 54px 13px 20px!important}.feedback-input::-webkit-scrollbar{display:none}.feedback-input::placeholder{color:#6b7487;-webkit-text-fill-color:#6b7487;opacity:1}.feedback-fab.open .feedback-input{opacity:1;pointer-events:auto;transition:opacity .25s .1s}.feedback-orb,.feedback-orb:hover,.feedback-orb:active,.feedback-orb:focus{aspect-ratio:1;clip-path:circle(50%);isolation:isolate;cursor:pointer;outline:none;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:flex;position:absolute;bottom:2.5px;right:2.5px;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);color:#fff!important;background:linear-gradient(135deg,#2748d8,#4f7cf0)!important;border:0!important;border-radius:50%!important}.feedback-orb:focus-visible{outline-offset:-4px;outline:2px solid #fff}.feedback-spin{border-radius:50%;animation:6s linear infinite fb-rot;position:absolute;inset:0}.feedback-bl{filter:blur(7px);border-radius:50%;width:26px;height:26px;position:absolute}.feedback-bl.b1{background:#22d3ee;animation:4s ease-in-out infinite fb-b1;top:-4px;left:-4px}.feedback-bl.b2{background:#7c3aed;animation:5s ease-in-out infinite fb-b2;top:-2px;right:-4px}.feedback-bl.b3{opacity:.8;background:#ec4899;animation:4.5s ease-in-out infinite fb-b3;bottom:-8px;left:8px}.feedback-orb:after{content:"";pointer-events:none;background:radial-gradient(circle at 30% 25%,#ffffff8c,#fff0 48%);border-radius:50%;position:absolute;inset:0}.feedback-orb svg{z-index:2;position:relative}.feedback-error{color:#9b1c1c;background:#fde8e8;border-radius:10px;max-width:90vw;margin:0;padding:6px 10px;font-size:12px;position:absolute;bottom:calc(100% + 8px);right:0}@media (prefers-reduced-motion:reduce){.feedback-glow,.feedback-glow div,.feedback-spin,.feedback-bl{animation:none}}.admin-message{margin-bottom:10px;padding:14px 16px}.admin-message.is-unread{box-shadow:inset 3px 0 #2748d8}.admin-message-text{overflow-wrap:anywhere;margin:0 0 6px;font-size:15px;font-weight:600}.admin-message-meta{color:#6b7487;margin:0 0 10px;font-size:12px}.admin-message-actions{gap:8px;display:flex}@keyframes fb-turn{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.feedback-orb.turn{animation:.5s fb-turn}@media (prefers-reduced-motion:reduce){.feedback-orb.turn{animation:none}}.ftr2{text-align:center;background:0 0;border:0;margin:28px 16px 0;padding:0 0 24px;display:block}.ftr2 .ftr2-links{text-align:left;margin:0;padding:0;display:block}.ftr2 a.ftr2-link{box-sizing:border-box;color:#141a2e;border-bottom:1px solid #e6e9f5;justify-content:space-between;align-items:center;width:100%;padding:16px 4px;font-size:15px;font-weight:400;text-decoration:none;display:flex}.ftr2 a.ftr2-link:hover{color:#2748d8;text-decoration:none}.ftr2 a.ftr2-link svg{color:#8a93a8;flex:none;width:18px;height:18px}.ftr2 p{color:#7a8196;margin:8px 0 0;font-size:12.5px;line-height:1.5}.ftr2 p:first-of-type{margin-top:22px}.ftr2 strong{color:#141a2e;font-weight:600}@media (width<=767px){.ftr2{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}}@media (width>=768px){.app-shell>footer>*{box-sizing:border-box;max-width:1100px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,a{font:inherit}a{color:inherit}.app-shell{flex-direction:column;min-height:100vh;display:flex}.site-header{background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:1rem clamp(1rem,5vw,4rem);display:flex}.brand{color:var(--primary);letter-spacing:-.04em;white-space:nowrap;align-items:center;gap:.6rem;font-size:1.35rem;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{object-fit:contain;background:0 0;border-radius:0;flex:0 0 36px;width:36px;height:36px;display:block}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:.6rem;display:flex}.profile-menu{align-items:center;display:flex;position:relative}.profile-avatar{width:40px;height:40px;color:var(--bg);background:var(--color-primary);cursor:pointer;border:0;border-radius:30%;flex:0 0 40px;justify-content:center;align-items:center;padding:0;font-size:1.1rem;font-weight:700;display:inline-flex}.profile-avatar:hover{background:var(--color-primary-dark)}.profile-dropdown{z-index:1000;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);width:260px;max-width:90vw;box-shadow:0 12px 30px var(--shadow-ink-16);gap:.8rem;padding:1rem;display:grid;position:absolute;top:calc(100% + .6rem);right:0}.profile-detail{gap:.15rem;min-width:0;display:grid}.profile-label{color:var(--color-muted);letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:650}.profile-value{overflow-wrap:anywhere;color:var(--color-ink);font-size:.9rem}.profile-logout{cursor:pointer;width:100%}.profile-uploads-link{min-height:2.4rem;color:var(--color-primary);background:var(--primary-surface);border-radius:.5rem;justify-content:center;align-items:center;padding:.5rem .75rem;font-size:.9rem;font-weight:650;text-decoration:none;display:flex}.profile-uploads-link:hover{background:var(--primary-hover-surface)}.admin-dashboard>h1{margin-bottom:1.5rem}.admin-dashboard-layout{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.admin-sidebar{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.8rem;gap:.35rem;padding:.55rem;display:grid}.admin-sidebar-tab,.admin-paper-tab{color:var(--color-muted);background:var(--transparent);cursor:pointer;font:inherit;text-align:left;border:0;border-radius:.55rem;padding:.75rem .85rem;font-weight:650}.admin-sidebar-tab:hover,.admin-paper-tab:hover{background:var(--primary-wash)}.admin-sidebar-tab.is-active,.admin-paper-tab.is-active{color:var(--color-primary);background:var(--primary-subtle)}.admin-dashboard-content h2{margin-bottom:1rem;font-size:1.35rem}.admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.admin-stat-card{min-height:120px;color:var(--color-ink);background:var(--color-surface);border:1px solid var(--color-border);box-shadow:0 5px 16px var(--shadow-ink-4);font:inherit;text-align:left;border-radius:.85rem;align-content:space-between;gap:1rem;padding:1.2rem;display:grid}button.admin-stat-card{cursor:pointer}button.admin-stat-card:hover{border-color:var(--primary-border);box-shadow:0 10px 24px var(--shadow-ink-9)}@media (hover:hover){button.admin-stat-card:hover{transform:translateY(-2px)}}.admin-stat-card strong{color:var(--color-ink);font-size:2rem;line-height:1}.admin-stat-otp-limit{background:var(--danger-soft)}.admin-stat-otp-limit strong{color:var(--danger)}.admin-paper-tabs{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.7rem;flex-wrap:wrap;gap:.35rem;margin-bottom:1rem;padding:.3rem;display:flex}.admin-paper-tab{text-align:center;text-transform:capitalize;min-width:90px}.admin-paper-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:1rem;display:grid}.admin-paper-card{background:var(--color-surface);border:1px solid var(--color-border);min-width:0;box-shadow:0 5px 16px var(--shadow-ink-4);border-radius:.85rem;padding:1rem}.admin-paper-card-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.admin-paper-card-heading h3{color:var(--color-ink);margin:0;font-size:1.05rem}.admin-status-badge{text-transform:capitalize;border-radius:999px;flex:none;padding:.25rem .55rem;font-size:.75rem;font-weight:700}.status-pending{color:var(--warning-strong);background:var(--warning-tint)}.status-approved{color:var(--success-strong);background:var(--success-tint)}.status-rejected{color:var(--danger-strong);background:var(--danger-tint)}.admin-paper-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem .9rem;margin:0 0 1rem;display:grid}.admin-paper-fields div{min-width:0}.admin-paper-fields dt{color:var(--color-muted);letter-spacing:.03em;text-transform:uppercase;margin-bottom:.15rem;font-size:.72rem;font-weight:650}.admin-paper-fields dd{overflow-wrap:anywhere;color:var(--color-ink);margin:0;font-size:.88rem}.admin-rejection-reason{grid-column:1/-1}.admin-rejection-reason dd{white-space:pre-wrap}.admin-paper-actions{border-top:1px solid var(--color-border);flex-wrap:wrap;gap:.5rem;padding-top:.85rem;display:flex}.admin-action-button{min-height:2.4rem;color:var(--bg);cursor:pointer;font:inherit;border:0;border-radius:.5rem;padding:.5rem .75rem;font-size:.85rem;font-weight:650}.admin-action-button:disabled{cursor:not-allowed;opacity:.6}.action-preview{color:var(--color-primary);background:var(--primary-surface)}.action-approve{background:var(--success-button)}.action-approve:hover:not(:disabled){background:var(--success-button-hover)}.action-reject,.action-delete{background:var(--danger-button)}.action-reject:hover:not(:disabled),.action-delete:hover:not(:disabled){background:var(--danger-button-hover)}.admin-rejection-overlay{z-index:2100;background:var(--overlay-navy-72);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.admin-rejection-modal{background:var(--bg);border:1px solid var(--color-border);width:min(30rem,100%);box-shadow:0 18px 50px var(--shadow-black-24);border-radius:.85rem;padding:1.25rem}.admin-rejection-modal h2{color:var(--color-ink);margin:0 0 1rem;font-size:1.2rem}.admin-rejection-field{color:var(--color-ink);gap:.45rem;font-size:.9rem;font-weight:650;display:grid}.admin-rejection-field textarea{width:100%;min-height:7rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);font:inherit;resize:vertical;border-radius:.5rem;padding:.7rem;font-weight:400}.admin-rejection-field textarea:focus{border-color:var(--color-primary);outline:3px solid var(--focus-primary)}.admin-rejection-field small{color:var(--color-muted);justify-self:end;font-size:.75rem;font-weight:400}.admin-rejection-error{color:var(--danger-strong);margin:.65rem 0 0;font-size:.85rem}.admin-rejection-actions{justify-content:flex-end;gap:.6rem;margin-top:1rem;display:flex}.admin-rejection-actions button:disabled{cursor:not-allowed;opacity:.6}.my-upload-card{background:var(--color-surface);border:1px solid var(--color-border);min-width:0;box-shadow:0 5px 16px var(--shadow-ink-4);border-radius:.85rem;padding:1rem}.my-upload-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.my-upload-heading h2{color:var(--color-ink);margin:0;font-size:1.05rem}.my-upload-status-badge{text-transform:capitalize;border-radius:999px;flex:none;padding:.25rem .55rem;font-size:.75rem;font-weight:700}.my-upload-status-pending{color:var(--warning-strong);background:var(--warning-tint)}.my-upload-status-approved{color:var(--success-strong);background:var(--success-tint)}.my-upload-status-rejected{color:var(--danger-strong);background:var(--danger-tint)}.my-upload-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem .9rem;margin:0;display:grid}.my-upload-fields div{min-width:0}.my-upload-fields dt{color:var(--color-muted);letter-spacing:.03em;text-transform:uppercase;margin-bottom:.15rem;font-size:.72rem;font-weight:650}.my-upload-fields dd{overflow-wrap:anywhere;color:var(--color-ink);margin:0;font-size:.88rem}.my-upload-reason{grid-column:1/-1}.my-upload-reason dd{white-space:pre-wrap}.my-upload-actions{border-top:1px solid var(--color-border);justify-content:flex-end;margin-top:.85rem;padding-top:.85rem;display:flex}.my-uploads-empty{justify-items:start;gap:.75rem;display:grid}.my-uploads-empty p{margin:0}.admin-preview-overlay{z-index:2000;background:var(--overlay-navy-82);place-items:center;padding:2vh 2vw;display:grid;position:fixed;inset:0}.admin-preview-modal{background:var(--bg);border-radius:.8rem;flex-direction:column;width:min(1100px,96vw);max-height:96vh;display:flex;overflow:hidden}.admin-preview-toolbar{background:var(--bg);justify-content:space-between;align-items:center;gap:1rem;min-height:3.25rem;padding:.5rem .75rem .5rem 1rem;display:flex}.admin-preview-close{width:2.25rem;height:2.25rem;color:var(--color-ink);background:var(--border-subtle);cursor:pointer;border:0;border-radius:50%;place-items:center;font-size:1.5rem;line-height:1;display:inline-grid}.admin-preview-image{object-fit:contain;align-self:center;max-width:100%;max-height:80vh}.admin-users-search{max-width:28rem;color:var(--color-ink);gap:.4rem;margin-bottom:1rem;font-size:.9rem;font-weight:650;display:grid}.admin-users-search input{width:100%;min-height:2.7rem;color:var(--color-ink);background:var(--color-surface);border:1px solid var(--color-border);font:inherit;border-radius:.55rem;padding:.6rem .75rem}.admin-users-table-wrapper{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.8rem;overflow-x:auto}.admin-users-table{border-collapse:collapse;text-align:left;width:100%}.admin-users-table th,.admin-users-table td{border-bottom:1px solid var(--color-border);white-space:nowrap;padding:.8rem .75rem;font-size:.86rem}.admin-users-table th{color:var(--color-muted);background:var(--surface-alt);letter-spacing:.03em;text-transform:uppercase;font-size:.75rem}.admin-users-table tbody tr:last-child td{border-bottom:0}.admin-user-role-badge{text-transform:capitalize;border-radius:999px;padding:.25rem .55rem;font-size:.76rem;font-weight:700;display:inline-flex}.admin-user-role-badge.role-user{color:var(--slate-text);background:var(--slate-surface)}.admin-user-role-button{min-height:2.25rem;color:var(--bg);background:var(--color-primary);cursor:pointer;font:inherit;border:0;border-radius:.45rem;padding:.45rem .65rem;font-size:.8rem;font-weight:650}.admin-user-role-button.remove-admin{color:var(--danger-strong);background:var(--danger-tint)}.admin-user-role-button:disabled{cursor:not-allowed;opacity:.6}.admin-user-self{color:var(--color-muted);font-size:.85rem;font-weight:650}.admin-users-mobile-list{display:none}.admin-user-card{background:var(--color-surface);border:1px solid var(--color-border);min-width:0;box-shadow:0 5px 16px var(--shadow-ink-4);border-radius:.8rem;padding:1rem}.admin-user-card-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.85rem;display:flex}.admin-user-card-heading h3{overflow-wrap:anywhere;min-width:0;color:var(--color-ink);margin:0;font-size:1rem}.admin-user-card dl{gap:.65rem;margin:0 0 .9rem;display:grid}.admin-user-card dl div{grid-template-columns:minmax(5.5rem,.65fr) minmax(0,1fr);gap:.65rem;display:grid}.admin-user-card dt{color:var(--color-muted);font-size:.76rem;font-weight:650}.admin-user-card dd{overflow-wrap:anywhere;min-width:0;color:var(--color-ink);margin:0;font-size:.86rem}.admin-catalog-section{gap:1rem;display:grid}.admin-catalog-form{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.8rem;grid-template-columns:minmax(0,1fr) minmax(10rem,.45fr) auto;align-items:end;gap:.85rem;margin-bottom:.25rem;padding:1rem;display:grid}.admin-catalog-field{min-width:0;color:var(--color-ink);gap:.4rem;font-size:.85rem;font-weight:650;display:grid}.admin-catalog-field input,.admin-catalog-field select{width:100%;min-width:0;min-height:2.55rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);font:inherit;border-radius:.5rem;padding:.55rem .65rem;font-weight:400}.admin-course-list,.admin-subject-list{gap:.65rem;display:grid}.admin-course-row,.admin-subject-row{min-width:0;color:var(--color-ink);background:var(--color-surface);border:1px solid var(--color-border);border-radius:.7rem;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;display:flex}.admin-course-row>span,.admin-subject-row>span{overflow-wrap:anywhere;min-width:0}.admin-course-edit-form{grid-template-columns:minmax(0,1fr) minmax(10rem,.45fr) auto;display:grid}.admin-subject-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;max-width:38rem;margin-bottom:.25rem;display:grid}.admin-subject-create-form{grid-template-columns:minmax(0,1fr) minmax(8rem,.4fr) auto}.admin-subject-edit-form{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(7rem,.35fr) auto;display:grid}.admin-catalog-actions{align-items:center;gap:.5rem;display:flex}.admin-catalog-edit,.admin-catalog-cancel{min-height:2.25rem;color:var(--color-primary);background:var(--primary-surface);cursor:pointer;font:inherit;border:0;border-radius:.45rem;padding:.45rem .7rem;font-size:.82rem;font-weight:650}.admin-catalog-cancel{color:var(--color-muted);background:var(--neutral-surface)}.admin-catalog-delete{min-height:2.25rem;color:var(--bg);background:var(--danger-button-light);cursor:pointer;font:inherit;border:0;border-radius:.45rem;padding:.45rem .7rem;font-size:.82rem;font-weight:650}.admin-catalog-delete:hover:not(:disabled){background:var(--danger-button-light-hover)}.admin-catalog-delete:disabled,.admin-catalog-edit:disabled,.admin-catalog-cancel:disabled{cursor:not-allowed;opacity:.6}.admin-semester-actions{justify-content:flex-end;margin:.25rem 0 .75rem;display:flex}.button{border:1px solid var(--transparent);text-align:center;border-radius:.55rem;justify-content:center;align-items:center;min-height:2.65rem;padding:.6rem 1rem;font-size:.9rem;font-weight:650;text-decoration:none;transition:background-color .14s,border-color .14s,transform .14s;display:inline-flex}.button:hover{transform:translateY(-1px)}.button-primary{color:var(--bg);background:var(--color-primary)}.button-primary:hover{background:var(--color-primary-dark)}.button-secondary{color:var(--color-primary);background:var(--bg);border-color:var(--primary-border-soft)}.button-secondary:hover{background:var(--primary-wash)}.site-content{flex:1;width:100%}.subject-search{z-index:20;width:min(100%,38rem);margin-bottom:1.5rem;position:relative}.subject-search input{width:100%;min-height:3rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);box-shadow:0 3px 12px var(--shadow-ink-5);font:inherit;border-radius:.65rem;padding:.7rem .85rem}.subject-search input:focus{border-color:var(--color-primary);outline:3px solid var(--focus-primary)}.subject-search-results{background:var(--bg);border:1px solid var(--color-border);max-height:min(65vh,26rem);box-shadow:0 12px 30px var(--shadow-ink-16);border-radius:.65rem;position:absolute;top:calc(100% + .35rem);left:0;right:0;overflow-y:auto}.subject-search-result,.subject-search-message{color:var(--color-ink);overflow-wrap:anywhere;padding:.8rem .9rem;font-size:.9rem;display:block}.subject-search-result{text-decoration:none}.subject-search-result+.subject-search-result{border-top:1px solid var(--border-subtle)}.subject-search-result:hover,.subject-search-result:focus{background:var(--surface-soft);outline:none}.subject-search-message{color:var(--color-muted);margin:0}.subject-search-error{color:var(--danger-strong)}.page-heading{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.75rem;display:flex}.error-page{place-items:center;min-height:55vh;display:grid}.error-page-card{background:var(--color-surface);border:1px solid var(--color-border);width:min(100%,34rem);box-shadow:0 8px 26px var(--shadow-ink-7);text-align:center;border-radius:1rem;justify-items:center;gap:.75rem;padding:clamp(1.5rem,5vw,2.5rem);display:grid}.error-page-card h1{margin:0}.error-page-card p{color:var(--color-muted);margin:0 0 .5rem;line-height:1.55}.error-page-code{color:var(--color-primary);letter-spacing:.12em;font-size:.8rem;font-weight:800}h1,h2,p{margin-top:0}h1{color:var(--color-ink);letter-spacing:-.045em;margin-bottom:.65rem;font-size:clamp(1.75rem,6vw,2.8rem);line-height:1.15}h2{color:var(--color-ink)}.section-title{margin-bottom:1rem;font-size:1.2rem}.loading-skeleton{pointer-events:none}.skeleton-placeholder{background:var(--skeleton);border:1px solid var(--skeleton-border);border-radius:.8rem;position:relative;overflow:hidden}.skeleton-placeholder:after{background:linear-gradient(90deg, var(--transparent), var(--shimmer-highlight), var(--transparent));content:"";animation:1.5s infinite skeleton-shimmer;position:absolute;inset:0;transform:translate(-100%)}.skeleton-block{min-height:1rem}.skeleton-course-card,.skeleton-subject-card{min-height:6rem}.skeleton-semester-card{min-height:7rem}.skeleton-upload-card{min-height:13rem}.skeleton-card{align-items:center;min-height:6rem;padding:1.25rem;display:flex}.semester-grid .skeleton-card{min-height:7rem}.skeleton-line{background:var(--neutral-divider);border-radius:999px;height:.7rem;display:block}.skeleton-line-main{width:52%;height:.9rem}.skeleton-line-short{width:30%}.skeleton-paper-row{justify-content:space-between;align-items:center;gap:1rem;min-height:5rem;padding:1rem;display:flex}.skeleton-lines{gap:.55rem;width:min(45%,15rem);display:grid}.skeleton-action{border-radius:.5rem;flex:0 0 5rem;width:5rem;height:2.4rem}.skeleton-admin-card{align-content:space-between;gap:1rem;min-height:15rem;padding:1rem;display:grid}.skeleton-admin-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.admin-users-skeleton-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:.75rem;display:grid}.skeleton-user-card{align-content:center;gap:.8rem;min-height:8rem;padding:1rem;display:grid}@keyframes skeleton-shimmer{to{transform:translate(100%)}}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:1rem;display:grid}.browse-card{min-height:6rem;color:var(--color-ink);background:var(--color-surface);border:1px solid var(--color-border);box-shadow:0 5px 16px var(--shadow-ink-4);border-radius:.85rem;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem;font-size:1.05rem;font-weight:650;text-decoration:none;display:flex}.browse-card:hover{border-color:var(--primary-border);box-shadow:0 10px 24px var(--shadow-ink-9)}.card-arrow{color:var(--color-primary)}.semester-card{min-height:7rem;color:var(--color-primary);justify-content:center;font-size:1.5rem}.status-message{color:var(--color-muted);background:var(--color-surface);border:1px solid var(--color-border);border-radius:.65rem;padding:1rem 1.1rem}.error-message{color:var(--danger-strong);background:var(--danger-surface);border-color:var(--danger-border)}.paper-list{gap:.85rem;margin:0;padding:0;list-style:none;display:grid}.papers-toolbar{flex-wrap:wrap;gap:.85rem;margin-bottom:1rem;display:flex}.papers-filter{min-width:min(100%,12rem);color:var(--color-ink);gap:.35rem;font-size:.85rem;font-weight:650;display:grid}.papers-filter select{min-height:2.65rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);font:inherit;border-radius:.5rem;padding:.55rem .7rem;font-weight:400}.papers-filter select:focus{border-color:var(--color-primary);outline:3px solid var(--focus-primary)}.papers-pagination{justify-content:center;align-items:center;gap:1rem;margin-top:1.25rem;display:flex}.papers-pagination span{color:var(--color-ink);white-space:nowrap;font-size:.9rem;font-weight:650}.papers-pagination button:disabled{cursor:not-allowed;opacity:.55}.paper-item{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.75rem;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;display:flex}.paper-item h2{margin-bottom:.3rem;font-size:1.15rem}.paper-item p{color:var(--color-muted);margin-bottom:0}.paper-viewer-overlay{z-index:2100;background:var(--overlay-navy-88);place-items:center;display:grid;position:fixed;inset:0}.paper-viewer-dialog{background:var(--dark-surface);flex-direction:column;width:100%;height:100%;max-height:100vh;display:flex;overflow:hidden}.paper-viewer-toolbar{min-height:3.5rem;color:var(--bg);background:var(--dark-surface);justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;display:flex}.paper-viewer-close{width:2.5rem;height:2.5rem;color:var(--color-ink);background:var(--bg);cursor:pointer;border:0;border-radius:50%;flex:0 0 2.5rem;place-items:center;font-size:1.6rem;line-height:1;display:inline-grid}.paper-viewer-actions{flex:none;align-items:center;gap:8px;display:flex}.paper-viewer-download{white-space:nowrap;min-height:44px;padding:0 14px}.paper-download-error{flex:none;margin:0;padding:8px 16px}.pdf-viewer{background:var(--skeleton);flex-direction:column;flex:1;width:100%;min-width:0;min-height:0;display:flex}.pdf-viewer-zoom-controls{background:var(--light-surface);border-bottom:1px solid var(--color-border);flex:none;justify-content:center;align-items:center;gap:.5rem;min-height:2.75rem;padding:.35rem .6rem;display:flex}.pdf-viewer-zoom-controls button{min-width:2.5rem;min-height:2rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);cursor:pointer;font:inherit;border-radius:.4rem;padding:.25rem .6rem;font-weight:650}.pdf-viewer-zoom-controls button:disabled{cursor:not-allowed;opacity:.5}.pdf-viewer-scroll{touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;column-rule:0 solid transparent;flex:1;justify-content:center;width:100%;min-width:0;min-height:0;display:flex;overflow:auto}.pdf-viewer-scroll:before,.pdf-viewer-scroll:after,.pdf-viewer-scroll .react-pdf__Page:before,.pdf-viewer-scroll .react-pdf__Page:after{content:none;display:none}.pdf-viewer-scroll.is-zoomed{-webkit-overflow-scrolling:touch;justify-content:flex-start;overflow:auto}.pdf-viewer-scroll>.react-pdf__Document{width:100%;min-width:0;box-shadow:none;background:0 0;border:0;outline:0;flex:none;margin:auto 0}.pdf-viewer-scroll.is-zoomed>.react-pdf__Document{margin:0}.pdf-viewer-scroll .react-pdf__Page{box-shadow:none;background:0 0;border:0;outline:0;margin-left:auto;margin-right:auto}.pdf-viewer-scroll .react-pdf__Page.rendered{box-shadow:0 2px 12px var(--shadow-ink-18)}.pdf-viewer-scroll .react-pdf__Page__canvas{width:100%;height:auto;display:block}.viewer-loading{box-sizing:border-box;width:100%;min-width:0;min-height:60vh;color:var(--color-ink);background:var(--surface);box-shadow:none;border:0;justify-content:center;align-items:center;gap:.6rem;padding:1rem;font-size:.95rem;display:flex}.pdf-viewer-message{color:var(--color-ink);text-align:center;align-self:center;margin:auto;padding:1rem;font-size:.95rem}.pdf-viewer-pagination{min-height:3.25rem;color:var(--bg);background:var(--dark-surface);justify-content:center;align-items:center;gap:1rem;padding:.5rem;display:flex}.pdf-viewer-pagination button{min-height:2.25rem;color:var(--bg);background:var(--dark-muted);cursor:pointer;font:inherit;border:0;border-radius:.45rem;padding:.4rem .75rem;font-size:.85rem}.pdf-viewer-pagination button:disabled{cursor:not-allowed;opacity:.5}.pdf-viewer-pagination span{white-space:nowrap;font-size:.85rem}.paper-viewer-dialog>.pdf-viewer,.admin-preview-modal>.pdf-viewer{max-height:calc(100vh - 3.5rem)}.admin-preview-modal>.pdf-viewer{flex:0 80vh;width:100%;min-width:0;height:80vh;max-height:calc(96vh - 3.25rem)}.paper-viewer-image{object-fit:contain;align-self:center;max-width:100%;max-height:calc(100vh - 3.5rem)}@media (prefers-reduced-motion:reduce){.skeleton-placeholder:after{animation:none}}.auth-page{justify-content:center;display:flex}.auth-card{background:var(--color-surface);border:1px solid var(--color-border);width:min(100%,30rem);box-shadow:0 12px 32px var(--shadow-ink-7);border-radius:1rem;padding:clamp(1.25rem,5vw,2rem)}.auth-card h1{margin:0 0 1.25rem;font-size:clamp(1.7rem,6vw,2.2rem)}.auth-toggle{background:var(--surface-muted);border-radius:.65rem;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-bottom:1.25rem;padding:.25rem;display:grid}.auth-toggle-button,.text-button{cursor:pointer;border:0}.auth-toggle-button{min-height:2.6rem;color:var(--color-muted);background:var(--transparent);border-radius:.45rem;font-weight:650}.auth-toggle-button[aria-pressed=true]{color:var(--color-primary);background:var(--color-surface);box-shadow:0 1px 4px var(--shadow-ink-12)}.auth-toggle-button:disabled,.text-button:disabled{cursor:not-allowed;opacity:.6}.auth-form{gap:1rem;display:grid}.form-field{color:var(--color-ink);gap:.4rem;font-size:.92rem;font-weight:600;display:grid}.form-field input{width:100%;min-height:2.8rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);border-radius:.5rem;padding:.65rem .75rem;font-weight:400}.form-field input:focus{border-color:var(--color-primary);outline:3px solid var(--focus-primary)}.form-field input.input-invalid{border-color:var(--danger-button)}.form-field input.input-invalid:focus{border-color:var(--danger-button);outline:3px solid var(--focus-danger)}.field-error{color:var(--danger-button);overflow-wrap:anywhere;font-size:.78rem;font-weight:500;line-height:1.35}.auth-submit{cursor:pointer;width:100%}.auth-submit:disabled{cursor:not-allowed;opacity:.65}.auth-message{border-radius:.55rem;margin:0 0 1rem;padding:.75rem;font-size:.9rem}.success-message{color:var(--success-strong);background:var(--success-surface);border:1px solid var(--success-border)}.otp-instructions{color:var(--color-muted);overflow-wrap:anywhere;margin:0;line-height:1.5}.otp-input{text-align:center;letter-spacing:.4em}.text-button{color:var(--color-primary);background:var(--transparent);justify-self:center;padding:.35rem;font-size:.9rem;font-weight:600}.text-button:hover:not(:disabled){text-decoration:underline}.upload-page{justify-content:center;display:flex}.upload-card{background:var(--color-surface);border:1px solid var(--color-border);width:min(100%,38rem);box-shadow:0 12px 32px var(--shadow-ink-7);border-radius:1rem;padding:clamp(1.25rem,5vw,2rem)}.upload-card h1{margin-bottom:.6rem;font-size:clamp(1.7rem,6vw,2.2rem)}.upload-note{color:var(--color-muted);background:var(--primary-wash);border:1px solid var(--primary-border-muted);border-radius:.55rem;margin-bottom:1.25rem;padding:.8rem .9rem;font-size:.9rem}.upload-form{gap:1rem;display:grid}.form-field select,.form-field input[type=file]{width:100%;min-height:2.8rem;color:var(--color-ink);background:var(--bg);border:1px solid var(--input-border);font:inherit;border-radius:.5rem;padding:.6rem .7rem;font-weight:400}.form-field select:disabled{color:var(--muted-strong);background:var(--neutral-surface-soft);cursor:not-allowed}.form-field select:focus,.form-field input[type=file]:focus{border-color:var(--color-primary);outline:3px solid var(--focus-primary)}.selected-file{overflow-wrap:anywhere;color:var(--color-muted);font-size:.85rem;font-weight:400}.upload-progress{color:var(--color-muted);gap:.5rem;font-size:.9rem;display:grid}.upload-progress progress{width:100%;height:.55rem;accent-color:var(--color-primary)}.privacy-content{color:var(--color-ink);background:var(--color-surface);border:1px solid var(--color-border);border-radius:.85rem;padding:clamp(1.1rem,3vw,1.75rem);line-height:1.65}.privacy-content p:last-child{margin-bottom:0}.site-footer{color:var(--color-muted);background:var(--color-surface);border-top:1px solid var(--color-border);text-align:center;justify-items:center;gap:.8rem;padding:1.4rem 1rem;display:grid}.site-footer p{max-width:58rem;margin:0;font-size:.9rem;line-height:1.5}.footer-links{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem 1.25rem;font-size:.9rem;display:flex}.footer-links a{color:var(--color-primary);font-weight:650;text-decoration:none}.footer-links a:hover{text-decoration:underline}@media (width<=480px){.footer-links{flex-direction:column;gap:.45rem}}.site-header{z-index:1200;background:var(--bg);width:100%;height:56px;min-height:56px;box-shadow:0 1px 0 var(--border);border:0;align-items:center;padding:0 max(1rem,50% - 550px);position:sticky;top:0}.brand{min-height:44px;color:var(--primary);letter-spacing:-.02em;gap:.55rem;font-size:1.05rem}.brand-mark{object-fit:contain;background:0 0;border-radius:0;flex-basis:36px;width:36px;height:36px}.header-actions{align-items:center;gap:.65rem}.profile-avatar{-webkit-tap-highlight-color:var(--transparent);flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px;text-decoration:none}.home-page{padding-top:1.4rem;padding-bottom:2rem}.home-intro{margin-bottom:1.1rem}.home-intro .page-title-block{margin:0}.home-greeting{color:var(--muted-contrast);margin:0 0 .35rem;font-size:.85rem;font-weight:550}.home-intro h1{letter-spacing:-.035em;margin:0;font-size:22px;font-weight:750}.home-search{width:100%;margin-bottom:1.55rem}.home-search input{background:var(--surface);border-radius:var(--radius-md);height:48px;min-height:48px;box-shadow:none;border:0;padding:0;font-size:.95rem}.home-search input:focus{outline:2px solid var(--primary)}.home-search-icon{z-index:1;pointer-events:none;width:20px;height:20px;stroke:var(--muted);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}.subject-search-results{box-shadow:0 12px 30px var(--shadow-ink-14);border:0;border-radius:14px;top:calc(100% + .5rem);overflow:hidden auto}.subject-search-result,.subject-search-message{min-height:44px;padding:.8rem 1rem}.home-courses{margin-bottom:1rem}.home-section-heading{justify-content:space-between;align-items:center;gap:.75rem;min-height:28px;margin-bottom:.75rem;display:flex}.home-section-heading h2{color:var(--text);letter-spacing:-.015em;margin:0;font-size:16px;font-weight:750}.home-course-count{color:var(--primary);flex:none;font-size:.78rem;font-weight:650}.home-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.home-course-tile{min-width:0;height:104px;color:var(--course-foreground);background:var(--course-background);border-radius:var(--radius-lg);-webkit-tap-highlight-color:var(--transparent);border:0;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:13px 14px;text-decoration:none;display:flex;position:relative;overflow:hidden}.home-course-tile:active{transform:scale(.97)}.home-course-name{letter-spacing:-.045em;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 3px);font-size:24px;font-weight:750;line-height:1.05;overflow:hidden}.home-course-semesters{opacity:.82;font-size:12px;font-weight:550}.home-course-arrow{width:26px;height:26px;color:var(--course-foreground);background:var(--bg);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:10px;right:10px}.home-course-arrow svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:15px;height:15px}.home-course-skeleton{border:0;border-radius:18px;height:104px;min-height:104px}.home-upload-banner{min-height:66px;color:var(--bg);background:var(--primary);border-radius:var(--radius-md);-webkit-tap-highlight-color:var(--transparent);-webkit-tap-highlight-color:var(--transparent);align-items:center;gap:.75rem;margin-top:1.1rem;padding:.9rem 1rem;text-decoration:none;display:flex}.home-upload-icon{background:var(--overlay-white-17);border-radius:11px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.home-upload-icon svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.home-upload-copy{gap:.2rem;min-width:0;display:grid}.home-upload-copy strong{font-size:14px;font-weight:700}.home-upload-copy>span{color:var(--primary-soft);font-size:12px}.home-upload-chevron{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;flex:0 0 20px;width:20px;height:20px;margin-left:auto}@media (width>=768px){.home-page{padding-top:2rem}}@media (width<=767px){:root,body,.app-shell{background:var(--bg)}.site-header{padding:0 1rem}.header-actions>.btn{min-height:44px}.header-upload{display:none}.site-content{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.home-page{width:100%;padding:1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom))}.home-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-course-tile{padding:13px 12px}.home-course-name{font-size:23px}.home-upload-banner{min-height:68px;margin-top:1rem}}@media (width>=481px) and (width<=767px){.home-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=767px){.admin-dashboard-layout{grid-template-columns:minmax(0,1fr)}.papers-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.papers-filter{min-width:0}.papers-pagination{gap:.6rem}.papers-pagination .button{flex:1;min-width:0;padding-left:.5rem;padding-right:.5rem}.admin-sidebar{display:flex;overflow-x:auto}.admin-sidebar-tab{text-align:center;white-space:nowrap;flex:1 0 auto}.admin-users-table-wrapper{display:none}.admin-users-mobile-list{gap:.75rem;display:grid}.admin-catalog-form,.admin-course-edit-form,.admin-subject-create-form,.admin-subject-edit-form{grid-template-columns:minmax(0,1fr)}.admin-course-row,.admin-subject-row{align-items:flex-start}.admin-course-row:not(.admin-course-edit-form),.admin-subject-row:not(.admin-subject-edit-form){flex-wrap:wrap}.admin-course-edit-form,.admin-subject-edit-form{display:grid}.admin-subject-filters{grid-template-columns:minmax(0,1fr)}.admin-catalog-actions{flex-wrap:wrap}.admin-course-row:not(.admin-course-edit-form) .admin-catalog-actions,.admin-subject-row:not(.admin-subject-edit-form) .admin-catalog-actions{width:100%}.admin-semester-actions{justify-content:stretch}.admin-semester-actions .admin-catalog-delete{width:100%}}@media (width<=480px){.site-header{align-items:flex-start}.papers-toolbar{grid-template-columns:minmax(0,1fr)}.header-actions{gap:.4rem}.button{min-height:2.4rem;padding:.5rem .7rem;font-size:.8rem}.admin-stats-grid{grid-template-columns:minmax(0,1fr)}.admin-preview-overlay{padding:0}.admin-rejection-overlay{padding:.75rem}.admin-rejection-modal{padding:1rem}.admin-rejection-actions{flex-direction:column-reverse}.admin-rejection-actions button{width:100%}.my-upload-fields{grid-template-columns:minmax(0,1fr)}.admin-preview-modal{border-radius:0;width:100vw;height:100vh;max-height:100vh}.admin-preview-image{max-width:100vw}}.page-title-block{margin-bottom:16px}.semester-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.semester-tile,.semester-tile-skeleton{border:0;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;min-width:0;height:84px;display:flex}.semester-tile{color:var(--semester-text);background:var(--semester-bg);-webkit-tap-highlight-color:var(--transparent);gap:2px;text-decoration:none}.semester-tile:active{transform:scale(.97)}.semester-tile-number{font-size:24px;font-weight:750;line-height:1.1}.semester-tile-label{font-size:11px;font-weight:600}.semester-tile-skeleton{background:var(--skeleton);min-height:84px}.subject-row-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:16px;display:grid}.subject-row{min-width:0;height:64px;color:var(--text);-webkit-tap-highlight-color:var(--transparent);justify-content:space-between;align-items:center;gap:12px;padding:0 16px;text-decoration:none;display:flex}.subject-row-name{text-overflow:ellipsis;font-size:16px;font-weight:700;overflow:hidden}.subject-row-chevron{width:30px;height:30px;color:var(--muted);background:var(--surface);border-radius:50%;flex:0 0 30px;place-items:center;display:grid}.subject-row-chevron svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:17px;height:17px}.subject-row-skeleton{border:1px solid var(--border);border-radius:var(--radius-md);height:64px;min-height:64px}.subject-row-grid .skeleton-placeholder:after{border-radius:inherit}.subjects-empty-state{margin-top:24px}.subjects-empty-state p{margin:0}.empty-state-icon svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6px;width:26px;height:26px}.page>.alert-error{margin-top:16px}@media (width>=768px){.semester-tile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.subject-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1024px){.semester-tile-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}.papers-access-note{color:var(--muted);margin:0 0 16px;font-size:13px}.papers-toolbar{scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;gap:8px;margin:0 -16px 16px;padding:2px 16px 8px;display:flex;overflow-x:auto}.papers-toolbar::-webkit-scrollbar{display:none}.papers-chip-label{flex:none;display:block}.papers-visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.papers-chip{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b7487' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;min-width:104px;max-width:170px;min-height:36px;padding-right:32px;font-size:13px}.papers-chip.chip-active{background-color:var(--primary);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='var(--bg)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E")}.paper-list{gap:10px}.paper-item{background:var(--bg);border:1px solid var(--border);text-align:left;border-radius:16px;flex-flow:row;justify-content:space-between;align-items:center;gap:12px;min-height:68px;padding:12px 14px;transition:background-color .14s;display:flex}.paper-item:hover,.paper-item:active,.paper-item:focus-within{background:var(--surface)}.paper-item-details{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.paper-file-icon{width:44px;height:44px;color:var(--primary);background:var(--primary-soft);border-radius:12px;flex:0 0 44px;place-items:center;display:grid}.paper-file-icon svg,.papers-empty-state .empty-state-icon svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:23px;height:23px}.paper-item-copy{text-align:left;flex:1;min-width:0}.paper-item h2{color:var(--text);text-align:left;white-space:nowrap;margin:0;font-size:18px;font-weight:750;line-height:1.25}.paper-item-copy p{color:var(--muted);text-align:left;text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font-size:13px;overflow:hidden}.paper-item-action{flex-shrink:0}.paper-item-action .btn{min-width:68px;height:40px;min-height:40px;color:var(--primary);background:var(--primary-soft);text-align:left;white-space:nowrap;border-radius:12px;justify-content:flex-start;margin:0;padding:0 18px;font-size:14px;font-weight:700}.paper-item-action .btn:active:not(:disabled){transform:scale(.97)}.spinner{vertical-align:middle;border:2px solid;border-left-color:#0000;border-radius:50%;flex:0 0 16px;width:16px;height:16px;animation:.7s linear infinite spinner-rotate;display:inline-block}.btn .spinner{margin-right:8px}@keyframes spinner-rotate{to{transform:rotate(360deg)}}.route-progress{z-index:100;background:var(--primary);pointer-events:none;height:3px;transition:opacity .18s ease-out;position:fixed;top:0;left:0}.server-waking-card{z-index:1050;max-width:min(420px,100vw - 32px);color:var(--text);background:var(--surface);border:1px solid var(--primary-soft);box-shadow:0 8px 24px var(--shadow-ink-12);border-radius:14px;align-items:center;gap:10px;padding:12px 16px;font-size:14px;display:flex;position:fixed;bottom:16px;right:16px}.server-waking-card .spinner{color:var(--primary)}.server-waking-card>span:last-child{color:var(--muted)}@media (width<=767px){.server-waking-card{right:12px;bottom:calc(76px + env(safe-area-inset-bottom));max-width:none;left:12px}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}.route-progress{transition:opacity .01ms}}.paper-file-error{max-width:12rem;margin:6px 0 0;padding:6px 8px;font-size:12px}.profile-dropdown,.subject-search-results{animation:.15s ease-out dropdown-fade-in}@keyframes dropdown-fade-in{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}.paper-viewer-overlay,.admin-rejection-overlay,.admin-preview-overlay{animation:.18s ease-out overlay-fade-in}@keyframes overlay-fade-in{0%{opacity:0}to{opacity:1}}.admin-rejection-modal{animation:.22s ease-out dialog-slide-in}.paper-viewer-dialog,.admin-preview-modal{animation:.22s ease-out viewer-sheet-slide-in}@keyframes dialog-slide-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes viewer-sheet-slide-in{0%{transform:translateY(16px)}to{transform:translateY(0)}}.papers-pagination{gap:12px;margin-top:20px}.papers-pagination .btn{min-width:92px}.papers-page-count{color:var(--muted);white-space:nowrap;font-size:13px;font-weight:600}.papers-empty-state{min-height:220px}.papers-empty-state p{margin:0 0 4px}.papers-empty-state .btn{margin-top:4px}.skeleton-paper-row{border:1px solid var(--border);border-radius:var(--radius-md);height:76px;min-height:76px;padding:12px}.paper-viewer-overlay{background:var(--overlay-ink-68);padding:24px}.paper-viewer-dialog{background:var(--bg);width:min(100%,980px);height:min(94vh,1000px);max-height:100%;box-shadow:0 24px 70px var(--shadow-black-24);border-radius:20px}.paper-viewer-toolbar{height:auto;min-height:56px;color:var(--text);background:var(--bg);border-bottom:1px solid var(--border);flex:none;padding:0 16px}.paper-viewer-title{min-width:0;padding:8px 0}.paper-viewer-title>span{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700;display:block;overflow:hidden}.paper-viewer-uploader{color:var(--muted);margin:2px 0 0;font-size:12px;font-weight:400}.paper-viewer-close{width:44px;height:44px;color:var(--text);background:var(--surface);border:0;flex-basis:44px;padding:0;font-size:1.5rem}.paper-viewer-content{background:var(--surface);flex:1;justify-content:center;width:100%;min-width:0;min-height:0;display:flex;overflow:hidden}.paper-viewer-content>.pdf-viewer{background:var(--surface);width:100%;height:100%;max-height:none}.paper-viewer-content .pdf-viewer-zoom-controls{background:var(--bg);border-top:1px solid var(--border);border-bottom:0;order:2;min-height:48px;padding:4px 12px}.paper-viewer-content .pdf-viewer-scroll{order:1}.paper-viewer-content .pdf-viewer-pagination{min-height:56px;padding:6px 12px calc(8px + env(safe-area-inset-bottom));color:var(--text);background:var(--bg);border-top:1px solid var(--border);order:3}.paper-viewer-content .pdf-viewer-zoom-controls button,.paper-viewer-content .pdf-viewer-pagination button{min-width:60px;min-height:44px;color:var(--primary);background:var(--primary-soft);border:0;border-radius:14px;padding:0 14px;font-size:14px;font-weight:700}.paper-viewer-content .pdf-viewer-zoom-controls button:disabled,.paper-viewer-content .pdf-viewer-pagination button:disabled{opacity:.5}.paper-viewer-content .pdf-viewer-pagination span{color:var(--muted);font-size:13px}.paper-viewer-image{max-height:100%;margin:auto}@media (width<=767px){.paper-viewer-overlay{background:var(--bg);padding:0}.paper-viewer-dialog{width:100%;height:100dvh;max-height:none;box-shadow:none;border-radius:0}.paper-viewer-content .pdf-viewer-pagination{padding-bottom:calc(8px + env(safe-area-inset-bottom))}}@media (width<=480px){.papers-pagination{gap:6px}.papers-pagination .btn{min-width:76px;padding:0 12px}}.auth-page{justify-content:center;align-items:flex-start;display:flex}.auth-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);width:min(100%,420px);box-shadow:none;padding:24px}.auth-brand-icon{object-fit:contain;background:0 0;border-radius:0;width:56px;height:56px;margin-bottom:16px;display:block}.auth-card h1{color:var(--text);margin:0;font-size:24px;font-weight:750;line-height:1.25}.auth-subtitle{color:var(--muted);margin:8px 0 20px;font-size:14px}.auth-origin-message{text-align:center;border-radius:12px;margin:0 0 16px;padding:10px 12px;display:block}.auth-mode-toggle{background:var(--transparent);gap:8px;margin:0 0 20px;padding:0;display:flex}.auth-mode-chip{flex:1;min-height:40px}.auth-mode-chip:disabled{cursor:not-allowed;opacity:.5}.auth-form-error{margin:0 0 16px}.auth-form{gap:16px}.form-field{color:var(--text);gap:6px;font-size:14px;font-weight:600}.form-field-label{color:var(--text);font-size:13px;font-weight:650}.auth-page .form-field input.input{min-height:48px;color:var(--text);background:var(--surface);border:0;border-radius:14px;padding:0 14px;font-size:16px;font-weight:400}.auth-page .form-field input.input:focus{outline:2px solid var(--primary);outline-offset:1px}.auth-page .form-field input.input.input-error,.auth-page .form-field input.input.input-error:focus{outline:2px solid var(--danger);outline-offset:1px}.auth-page .field-error{color:var(--danger);font-size:12px;font-weight:400}.auth-submit:disabled{opacity:.5}.auth-page .form-field input.input.otp-input{letter-spacing:8px;text-align:center;height:56px;font-size:24px}.auth-message.success-message{color:var(--success);background:var(--success-soft);border:0;margin:0 0 16px}.upload-page{display:block}.upload-card.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);width:min(100%,560px);box-shadow:none;margin:0 auto;padding:20px}.upload-form{gap:16px}.upload-form .form-field{gap:6px}.upload-form .form-field select.select{min-height:48px;color:var(--text);background:var(--surface);border:0;border-radius:14px;padding:0 14px;font-size:16px;font-weight:400}.upload-form .form-field select.select:focus{outline:2px solid var(--primary);outline-offset:1px}.upload-form .form-field select.select:disabled{color:var(--muted);background:var(--surface);cursor:not-allowed;opacity:.65}.upload-file-picker{min-height:120px;color:var(--text);background:var(--surface);border:1px dashed var(--primary);cursor:pointer;text-align:center;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;display:flex;position:relative;overflow:hidden}.upload-file-native{z-index:1;opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.upload-file-picker:focus-within{outline:2px solid var(--primary);outline-offset:2px}.upload-file-icon{width:36px;height:36px;color:var(--primary);background:var(--primary-soft);border-radius:12px;place-items:center;display:grid}.upload-file-icon svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.upload-file-prompt{overflow-wrap:anywhere;max-width:100%;font-size:14px;font-weight:700}.upload-file-hint{color:var(--muted);font-size:12px}.upload-success{color:var(--success);background:var(--success-soft);border-radius:14px;margin:0 0 16px;padding:12px 14px}.upload-progress{gap:6px;font-size:13px}.upload-progress-bar{width:100%;height:4px;accent-color:var(--primary);overflow:hidden}.upload-form>.btn{width:100%}.my-uploads-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:12px;display:grid}.my-upload-card.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);min-width:0;box-shadow:none;padding:16px}.my-upload-heading{align-items:center;margin-bottom:8px}.my-upload-heading h2{min-width:0;color:var(--text);overflow-wrap:anywhere;font-size:16px;font-weight:700}.my-upload-summary,.my-upload-date{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:13px}.my-upload-date{margin-top:6px;font-size:12px}.my-upload-reason{white-space:pre-wrap;overflow-wrap:anywhere;gap:4px;margin:12px 0 0;display:grid}.my-upload-actions{border-top:1px solid var(--border);justify-content:flex-end;margin-top:12px;padding-top:12px}.my-upload-actions .btn{min-width:96px}.my-uploads-empty{justify-items:center}@media (width<=480px){.auth-card{padding:20px 16px}.upload-card.card{padding:16px}}.admin-dashboard>h1{margin-bottom:16px;font-size:24px;font-weight:750;line-height:1.25}.admin-dashboard-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.admin-sidebar{background:var(--transparent);border:0;align-content:start;gap:8px;padding:0;display:grid}.admin-sidebar-tab.chip{text-align:left;border-radius:14px;justify-content:flex-start;width:100%;min-height:44px;padding:0 14px}.admin-sidebar-tab.chip-active{color:var(--bg);background:var(--primary)}.admin-dashboard-content{min-width:0}.admin-dashboard-content h2,.admin-catalog-section h2,.admin-papers-section h2,.admin-users-section h2{color:var(--text)}.admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-stat-card.card{min-height:116px;color:var(--text);border-radius:var(--radius-md);box-shadow:none;border:0;gap:12px;padding:16px}.admin-stat-card span{color:var(--text);font-size:13px;font-weight:650}.admin-stat-card strong{color:var(--text);font-size:28px;font-weight:750}.admin-stat-pending{background:var(--warning-soft)}.admin-stat-approved{background:var(--success-soft)}.admin-stat-rejected{background:var(--danger-soft)}.admin-stat-total-users{background:var(--primary-soft)}.admin-stat-card.admin-stat-otp-limit{background:var(--danger-soft)}.admin-stat-card.admin-stat-otp-limit strong{color:var(--danger)}button.admin-stat-card{cursor:pointer;text-align:left;border:0}button.admin-stat-card:hover{box-shadow:0 6px 16px var(--overlay-ink-10);transform:translateY(-1px)}.admin-sidebar,.admin-paper-tabs{scrollbar-width:none}.admin-sidebar::-webkit-scrollbar{display:none}.admin-paper-tabs::-webkit-scrollbar{display:none}.admin-paper-tabs{background:var(--transparent);-webkit-overflow-scrolling:touch;border:0;flex-wrap:nowrap;gap:8px;padding:0 0 8px;display:flex;overflow-x:auto}.admin-paper-tab.chip{text-align:center;border-radius:999px;flex:none;min-width:90px;min-height:36px}.admin-paper-tab.chip-active{color:var(--bg);background:var(--primary)}.admin-paper-card.card,.admin-user-card.card,.admin-course-row.card,.admin-subject-row.card{min-width:0;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:none;padding:16px}.admin-paper-grid,.admin-course-list,.admin-subject-list{gap:12px}.admin-paper-card h3,.admin-user-card h3{color:var(--text)}.admin-paper-actions,.admin-catalog-actions,.admin-rejection-actions{gap:8px}.admin-action-button.btn,.admin-catalog-edit.btn,.admin-catalog-cancel.btn,.admin-catalog-delete.btn,.admin-user-role-button.btn{border-radius:14px;min-height:44px;padding:0 14px;font-size:13px;font-weight:700}.admin-action-button.action-preview.btn-soft,.admin-catalog-edit.btn-soft{color:var(--primary);background:var(--primary-soft)}.admin-action-button.action-approve{color:var(--bg);background:var(--success);border:0}.admin-action-button.action-reject.btn-danger,.admin-action-button.action-delete.btn-danger,.admin-catalog-delete.btn-danger{color:var(--danger);background:var(--danger-soft);border:0}.admin-catalog-cancel.btn-ghost{color:var(--text);background:var(--transparent);border:1px solid var(--border)}.admin-user-role-button.btn-primary{color:var(--bg);background:var(--primary)}.admin-user-role-button.remove-admin.btn-danger{color:var(--danger);background:var(--danger-soft)}.admin-catalog-form.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);align-items:end;padding:16px}.admin-catalog-field{color:var(--text);gap:6px;font-size:13px}.admin-catalog-field input.input,.admin-catalog-field select.select,.admin-users-search input.input{min-height:48px;color:var(--text);background:var(--surface);border:0;border-radius:14px;padding:0 14px;font-size:16px}.admin-catalog-field input.input:focus,.admin-catalog-field select.select:focus,.admin-users-search input.input:focus{outline:2px solid var(--primary);outline-offset:1px}.admin-rejection-field textarea.textarea{background:var(--surface);border:0;border-radius:14px;min-height:120px;padding:12px 14px}.admin-rejection-field textarea.textarea:focus{outline:2px solid var(--primary);outline-offset:1px}.admin-user-role-badge.badge{color:var(--primary);background:var(--primary-soft)}.admin-user-role-badge.role-admin{color:var(--bg);background:var(--primary)}.admin-user-card dl{margin-bottom:12px}.admin-user-card .admin-user-role-button{width:100%}.admin-rejection-overlay,.admin-preview-overlay{background:var(--overlay-ink-72)}.admin-rejection-modal{background:var(--bg);box-shadow:0 20px 60px var(--shadow-black-28);border:0;border-radius:20px;padding:16px}.admin-rejection-modal-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.admin-rejection-modal-header h2{color:var(--text);margin:0;font-size:20px}.admin-modal-close.btn,.admin-preview-close.btn{width:44px;height:44px;min-height:44px;color:var(--text);background:var(--surface);border:0;border-radius:50%;flex:0 0 44px;padding:0;font-size:24px;line-height:1}.admin-rejection-error{margin:12px 0 0;font-size:13px}.admin-rejection-actions{justify-content:flex-end;margin-top:16px}.admin-preview-modal{background:var(--bg);max-height:96vh;box-shadow:0 20px 60px var(--shadow-black-28);border-radius:20px;padding:16px}.admin-preview-toolbar{justify-content:flex-end;min-height:44px;padding:0 0 12px}.admin-preview-image{max-height:calc(80vh - 76px)}.site-footer{color:var(--muted);background:var(--surface);border-top:0;gap:10px;padding:20px 16px;font-size:13px}.site-footer p,.footer-links{color:var(--muted);font-size:13px}.footer-links a{color:var(--primary);font-weight:600}.privacy-page{max-width:760px}.privacy-page .privacy-content.card{color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);padding:20px;line-height:1.75}.privacy-content p{margin-bottom:16px}.error-page{min-height:55vh}.error-page-card.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:none;gap:12px;padding:24px}.error-page-code{color:var(--primary);letter-spacing:normal;font-size:64px;font-weight:750;line-height:1}.error-page-card h1{color:var(--text);margin:0;font-size:24px;font-weight:700}.error-page-card p{color:var(--muted);margin:0}@media (width>=768px){.admin-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.site-footer{padding:20px 16px}}@media (width<=767px){.admin-dashboard-layout{grid-template-columns:minmax(0,1fr);gap:16px}.admin-sidebar{-webkit-overflow-scrolling:touch;gap:8px;padding:0 0 6px;display:flex;overflow-x:auto}.admin-sidebar-tab.chip{white-space:nowrap;flex:none;justify-content:center;width:auto}.admin-catalog-form.card,.admin-course-edit-form,.admin-subject-create-form,.admin-subject-edit-form{grid-template-columns:minmax(0,1fr)}.admin-course-row:not(.admin-course-edit-form),.admin-subject-row:not(.admin-subject-edit-form){flex-wrap:wrap}.admin-course-row:not(.admin-course-edit-form) .admin-catalog-actions,.admin-subject-row:not(.admin-subject-edit-form) .admin-catalog-actions{width:100%}.admin-rejection-overlay{padding:12px}.admin-rejection-actions{flex-direction:row}.admin-preview-overlay{padding:12px}.admin-preview-modal{border-radius:20px;width:100%;max-height:96vh}.admin-preview-modal>.pdf-viewer{min-height:0}.site-footer{padding-bottom:calc(90px + env(safe-area-inset-bottom))}}@media (width<=480px){.site-header{align-items:center}.admin-rejection-actions{flex-direction:column-reverse}.admin-rejection-actions .btn{width:100%}.admin-preview-overlay{padding:0}.admin-preview-modal{border-radius:0;width:100%;height:100dvh;max-height:100dvh}.admin-preview-image{max-height:calc(100dvh - 100px)}}.page-title-block{margin-bottom:var(--space);padding:var(--space);background:var(--page-title-background,var(--surface));border-radius:var(--radius-lg)}.auth-mode-chip,.papers-chip.chip,.admin-paper-tab.chip{min-height:44px}.page-title-heading,.home-intro .page-title-heading,.auth-card .page-title-heading,.admin-dashboard .page-title-heading,.error-page-card .page-title-heading{color:var(--page-title-color,var(--text));letter-spacing:normal;margin:0;font-size:24px;font-weight:700;line-height:1.25}.page-title-subtitle{color:var(--page-title-subtitle,var(--muted));margin:4px 0 0;font-size:13px}.home-intro .page-title-block{padding:var(--space);background:var(--surface)}.auth-card #auth-heading .page-title-block{margin-bottom:0}.auth-card #auth-heading .page-title-heading{font-size:24px}.profile-uploads-link{min-height:44px}.footer-links a{justify-content:center;align-items:center;min-height:3px;padding:0 8px;display:inline-flex}.footer-contact{align-items:center;min-height:3px;display:inline-flex}.home-search input.input{min-height:48px;padding-left:3rem;font-size:16px}.home-search input.input:focus{outline:2px solid var(--primary)}.home-greeting{color:var(--muted)}.home-course-skeleton{border-radius:var(--radius-md)}.paper-viewer-close.btn-ghost{border:0}.home-seo-intro,.page-seo-intro{color:var(--muted);margin:0 0 20px;font-size:14px;line-height:1.65}.home-faq{margin-top:24px}.home-faq h2{color:var(--text);margin:0 0 12px;font-size:18px}.home-faq-list{gap:8px;display:grid}.home-faq-item.card{border-radius:var(--radius-md);padding:0 14px}.home-faq-item summary{min-height:48px;color:var(--text);cursor:pointer;align-items:center;font-weight:650;list-style-position:inside;display:flex}.home-faq-item p{color:var(--muted);margin:0;padding:0 0 14px 20px;font-size:14px;line-height:1.55}
