:root{--navy:#0b1b3a;--navy-2:#12306b;--blue:#0a7be6;--cyan:#3be6f5;--bg:#f4f7fc;--surface:#fff;--surface-2:#eef3fb;--text:#0e1a33;--muted:#5a6b88;--line:#e1e8f3;--primary:#0a63c9;--on-primary:#fff;--accent-soft:#e4f1ff;--danger:#c43b3b;--warn:#b86a00;--warn-bg:#fff3dc;--ok:#137a4b;--ok-bg:#e2f6ec;--due-bg:#ffe9e6;--due:#b3261e;--shadow:0 1px 2px #0b1b3a0f, 0 8px 24px #0b1b3a12;--radius:18px;--radius-sm:12px;--font:"Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--tab-h:64px;--top-h:56px}:root[lang=ar]{--font:"IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-tap-highlight-color:transparent;margin:0;font-size:16px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:8px}h1,h2,h3{letter-spacing:-.01em;margin:0;line-height:1.2}h1{font-size:1.6rem;font-weight:800}h2{font-size:1.15rem;font-weight:700}h3{font-size:1rem;font-weight:700}p{margin:0}.muted{color:var(--muted)}.small{font-size:.85rem}.sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.shell{flex-direction:column;min-height:100dvh;display:flex}.top{z-index:20;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top);position:sticky;top:0}.top-in{height:var(--top-h);align-items:center;gap:10px;max-width:1120px;margin:0 auto;padding:0 16px;display:flex}.brand{align-items:center;gap:10px;font-size:1.15rem;font-weight:800;display:flex}.spacer{flex:1}.main{width:100%;max-width:1120px;padding:16px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom));flex:1;margin:0 auto}.demo-banner{background:var(--warn-bg);color:var(--warn);border-bottom:1px solid color-mix(in srgb, var(--warn) 25%, transparent);text-align:center;padding:6px 12px;font-size:.8rem;font-weight:600}.tabbar{inset-inline:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0}.tabbar-in{max-width:560px;height:var(--tab-h);grid-template-columns:repeat(5,1fr);margin:0 auto;display:grid}.tab{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:48px;font-size:.72rem;font-weight:600;display:flex}.tab[aria-current=page]{color:var(--primary)}.tab[aria-current=page] .tab-ic{background:var(--accent-soft)}.tab-ic{border-radius:15px;place-items:center;width:52px;height:30px;transition:background .15s;display:grid}.side{display:none}@media (width>=900px){.tabbar{top:var(--top-h);background:0 0;border:0;padding:0;position:sticky;bottom:auto}.shell{--tab-h:0px}.main{padding-bottom:48px}.tabbar{display:none}.nav-d{display:flex!important}}.nav-d{gap:4px;margin-inline-start:16px;display:none}.nav-d a{color:var(--muted);border-radius:999px;padding:8px 14px;font-weight:600}.nav-d a[aria-current=page]{background:var(--accent-soft);color:var(--primary)}.btn{border:1px solid var(--line);background:var(--surface);border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 20px;font-weight:700;display:inline-flex}.btn-primary{background:linear-gradient(135deg, var(--navy-2), var(--blue));color:#fff;border:0}.btn-ghost{background:0 0}.btn-sm{border-radius:12px;min-height:40px;padding:0 14px;font-size:.9rem}.btn-block{width:100%}.icon-btn{width:44px;height:44px;color:var(--text);background:0 0;border:0;border-radius:12px;flex:none;place-items:center;display:grid}.icon-btn:hover{background:var(--surface-2)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.pad{padding:16px}.chip{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;font-weight:700;display:inline-flex}.chip.warn{background:var(--warn-bg);color:var(--warn)}.chip.due{background:var(--due-bg);color:var(--due)}.chip.ok{background:var(--ok-bg);color:var(--ok)}.chip.blue{background:var(--accent-soft);color:var(--primary)}.row{align-items:center;gap:12px;display:flex}.wrap{flex-wrap:wrap}.col{flex-direction:column;gap:12px;display:flex}.sec{margin-top:28px}.sec-h{justify-content:space-between;align-items:baseline;margin-bottom:12px;display:flex}.link{color:var(--primary);font-size:.9rem;font-weight:700}.grid{gap:12px;display:grid}.grid-2{grid-template-columns:repeat(2,1fr)}@media (width>=640px){.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2-md{grid-template-columns:repeat(2,1fr)}}@media (width>=900px){.grid-4{grid-template-columns:repeat(4,1fr)}.two-col{grid-template-columns:1.6fr 1fr;align-items:start;gap:24px;display:grid}}.hero{color:#fff;background:radial-gradient(120% 140% at 100% 0,#1b7fe8 0%,#0000 55%),radial-gradient(90% 120% at 0 100%,#3be6f5 0%,#0000 45%),linear-gradient(135deg,#0b1b3a,#12306b);border-radius:24px;padding:24px 20px;position:relative;overflow:hidden}.hero h1{max-width:18ch;font-size:1.7rem}.hero p{opacity:.9;max-width:38ch;margin-top:8px}.hero .nodes{inset-inline-end:-20px;opacity:.18;width:190px;position:absolute;top:-10px}@media (width>=900px){.hero{padding:40px}.hero h1{font-size:2.3rem}}.grade-card{align-items:center;gap:14px;min-height:76px;padding:16px;display:flex}.grade-badge{color:#fff;background:linear-gradient(135deg, var(--navy-2), var(--blue));border-radius:16px;flex:none;place-items:center;width:52px;height:52px;font-size:1.4rem;font-weight:800;display:grid}.grade-card .meta{flex:1;min-width:0}.chev{color:var(--muted)}:root[dir=rtl] .chev{transform:scaleX(-1)}.subj{flex-direction:column;gap:10px;min-height:120px;padding:14px;display:flex;position:relative}.subj-ic{background:hsl(var(--h) 90% 94%);width:44px;height:44px;color:hsl(var(--h) 70% 38%);border-radius:14px;place-items:center;display:grid}.subj b{font-size:1rem}.subj .count{color:var(--muted);font-size:.8rem}.dot{top:12px;position:absolute;inset-inline-end:12px}.item{align-items:flex-start;gap:12px;min-height:64px;padding:14px;display:flex}.item+.item{border-top:1px solid var(--line)}.item .ic{background:var(--accent-soft);width:40px;height:40px;color:var(--primary);border-radius:12px;flex:none;place-items:center;display:grid}.item .body{flex-direction:column;flex:1;align-items:flex-start;min-width:0;display:flex}.item .t{font-weight:700}.item .sub{color:var(--muted);margin-top:2px;font-size:.82rem}.list{overflow:hidden}.due-pill{text-align:center;background:var(--surface-2);border-radius:12px;flex:none;min-width:58px;padding:6px 10px;font-weight:800;line-height:1.1}.due-pill small{opacity:.85;font-size:.68rem;font-weight:600;display:block}.due-pill.today,.due-pill.tomorrow{background:var(--due-bg);color:var(--due)}.due-pill.week{background:var(--warn-bg);color:var(--warn)}.due-pill.past{opacity:.65}.seg{scrollbar-width:none;scroll-snap-type:x proximity;gap:8px;margin-inline:-16px;padding:4px 16px;scroll-padding-inline:16px;display:flex;overflow-x:auto}.seg::-webkit-scrollbar{display:none}.seg button{border:1px solid var(--line);background:var(--surface);scroll-snap-align:start;border-radius:999px;flex:none;min-height:44px;padding:0 16px;font-size:.9rem;font-weight:700}.seg button[aria-selected=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.field{border:1px solid var(--line);background:var(--surface);border-radius:14px;width:100%;min-height:48px;padding:0 14px}.otp-steps{margin:6px 0 0;padding-inline-start:1.15rem}.otp-steps li{margin:3px 0}.otp-addr{word-break:break-all;margin:2px 0 0;font-weight:600}.otp-head{line-height:1.25}.search{position:relative}.search input{padding-inline-start:44px}.search svg{inset-inline-start:14px;color:var(--muted);position:absolute;top:14px}label.lab{margin-bottom:6px;font-size:.85rem;font-weight:700;display:block}.banner-sync{border-radius:var(--radius-sm);background:var(--surface-2);border:1px dashed var(--line);gap:12px;padding:14px;display:flex}.crumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;font-size:.85rem;display:flex}.crumbs a,.crumbs button{min-height:44px;color:var(--blue);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;padding:0 2px;display:inline-flex}.crumbs [aria-current=page]{color:var(--text);align-items:center;min-height:44px;font-weight:700;display:inline-flex}.crumbs .crumb-here{align-items:center;gap:2px;min-width:0;max-width:100%;display:inline-flex}.crumbs .crumb-here [aria-current=page]{min-width:0}.crumbs .crumb-here [aria-current=page] bdi{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.crumbs .crumb-here .icon-btn{width:44px;min-width:44px;height:44px;min-height:44px;color:var(--text);flex:none;place-items:center;padding:0;display:grid}.skel{background:linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));background-size:200% 100%;border-radius:12px;animation:1.2s infinite sh}@keyframes sh{to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.skel{animation:none}*{scroll-behavior:auto!important}}.scrim{z-index:50;background:#050c1c8c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:520px;padding:12px 20px calc(24px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;max-height:92dvh;overflow:auto}.sheet .grab{background:var(--line);border-radius:3px;width:44px;height:5px;margin:0 auto 14px}@media (width>=640px){.scrim{align-items:center}.sheet{border-radius:24px}}.pdf-wrap{background:var(--surface-2);border-radius:var(--radius);flex-direction:column;align-items:center;gap:12px;min-height:240px;padding:12px;display:flex}.pdf-wrap canvas{width:100%;height:auto;box-shadow:var(--shadow);background:#fff;border-radius:8px}.pdf-bar{top:calc(var(--top-h) + env(safe-area-inset-top));z-index:10;background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px;display:flex;position:sticky}.stepper{gap:6px;display:flex}.stepper i{background:var(--line);border-radius:3px;flex:1;height:5px}.stepper i.on{background:var(--blue)}.empty{text-align:center;color:var(--muted);padding:32px 16px}.stats{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.stats .card{padding:14px}.stats b{font-size:1.5rem}.adm-nav{scrollbar-width:none;scroll-snap-type:x proximity;gap:6px;padding:4px 0 12px;display:flex;overflow-x:auto}.adm-nav::-webkit-scrollbar{display:none}.adm-nav a{min-height:44px;color:var(--muted);border:1px solid var(--line);background:var(--surface);scroll-snap-align:start;border-radius:999px;flex:none;align-items:center;padding:0 16px;font-size:.9rem;font-weight:700;display:inline-flex}.adm-nav a[aria-current=page]{background:var(--navy);color:#fff;border-color:var(--navy)}.adm-bar{inset-inline:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0}.adm-bar .tabbar-in{grid-template-columns:repeat(5,1fr)}@media (width>=900px){.adm-bar{display:none}}.switch{background:var(--line);border:0;border-radius:16px;flex:none;width:56px;height:32px;padding:0;transition:background .15s;position:relative}.switch:after{content:"";top:4px;background:#fff;border-radius:50%;width:24px;height:24px;transition:inset-inline-start .15s;position:absolute;inset-inline-start:4px;box-shadow:0 1px 3px #0000004d}.switch[aria-checked=true]{background:var(--ok)}.switch[aria-checked=true]:after{inset-inline-start:28px}.switch:disabled{opacity:.5}.row-card{align-items:center;gap:12px;min-height:64px;padding:14px;display:flex}.row-card+.row-card{border-top:1px solid var(--line)}.row-card .grow{flex:1;min-width:0}.row-card .t{font-weight:700}.row-card .s{color:var(--muted);font-size:.82rem}.fgrid{gap:12px;display:grid}@media (width>=640px){.fgrid.two{grid-template-columns:1fr 1fr}}textarea.field{resize:vertical;min-height:96px;padding:12px 14px}.err{color:var(--due);font-size:.85rem}.ok-note{color:var(--ok);font-size:.85rem}.btn-danger{color:var(--due);border-color:color-mix(in srgb, var(--due) 40%, var(--line))}.kpis{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}@media (width>=640px){.kpis{grid-template-columns:repeat(4,1fr)}}.kpi{padding:14px}.kpi b{font-size:1.6rem;line-height:1.1;display:block}.kpi span{color:var(--muted);font-size:.8rem}.chip.draft{background:var(--warn-bg);color:var(--warn)}.chip.archived{background:var(--surface-2);color:var(--muted);text-decoration:line-through}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem}.sheet.wide{max-width:640px}.sheet-top{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.not-impl{border:1px dashed var(--line);border-radius:var(--radius-sm);background:repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--line) 35%, transparent) 8px 9px);padding:12px}.dash-top{flex-direction:column;gap:10px;display:flex}.status-line{color:var(--muted);align-items:center;gap:8px;font-size:.82rem;display:flex}.status-line .dot{background:var(--ok);border-radius:50%;flex:none;width:9px;height:9px;display:inline-block}.status-line.warn .dot{background:var(--warn)}.status-line.never .dot{background:var(--muted)}.check-card{border:2px solid var(--primary);border-radius:var(--radius);background:var(--surface);overflow:hidden}.check-h{justify-content:space-between;align-items:baseline;gap:8px;padding:14px 16px 6px;display:flex}.check-h h2{font-size:1.15rem}.check-h .prog{color:var(--muted);font-size:.8rem;font-weight:700}.due-row{align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.due-row+.due-row{border-top:1px solid var(--line)}.due-row.done .due-t{opacity:.6;text-decoration:line-through}.due-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.due-t{font-weight:800}.due-s{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:.82rem;display:flex}.due-s .dot{background:hsl(var(--h) 70% 50%);border-radius:50%;flex:none;width:8px;height:8px}.due-tags{flex-wrap:wrap;gap:6px;margin-top:3px;display:flex}.due-pill.announcement{background:var(--ok-bg);color:var(--ok)}.chk{cursor:pointer;flex:none;place-items:center;width:44px;height:44px;margin-inline-start:-6px;display:grid;position:relative}.chk input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.chk .box{border:2px solid var(--line);background:var(--surface);color:#0000;border-radius:8px;place-items:center;width:26px;height:26px;display:grid}.chk input:checked+.box{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.chk input:focus-visible+.box{outline:3px solid color-mix(in srgb, var(--primary) 45%, transparent);outline-offset:2px}.empty-ok{text-align:center;color:var(--muted);padding:18px 16px 20px}.empty-ok b{color:var(--text);margin-bottom:2px;font-size:1rem;display:block}.day-h{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--surface-2);padding:10px 14px 4px;font-size:.8rem;font-weight:800}.recent-row{align-items:flex-start;gap:12px;padding:12px 14px;display:flex}.recent-row+.recent-row{border-top:1px solid var(--line)}.recent-row .when{color:var(--muted);white-space:nowrap;margin-inline-start:auto;font-size:.75rem}.print-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.subj-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}@media (width>=700px){.subj-grid{grid-template-columns:repeat(3,1fr)}}.subj-tile{flex-direction:column;gap:6px;min-height:92px;padding:14px;display:flex}.subj-tile .nm{font-weight:800}.subj-tile .ct{color:var(--muted);font-size:.78rem}.dash-grid{gap:0;display:grid}@media (width>=900px){.dash-grid{grid-template-columns:1.15fr 1fr;align-items:start;gap:0 24px}.dash-grid>.wide{grid-column:1/-1}}.dash-grid>*{min-width:0}.due-t,.recent-row .t{overflow-wrap:anywhere}.tab-add{place-items:center;display:grid}.tab-add button{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:50%;place-items:center;width:56px;height:56px;margin-top:-20px;display:grid;box-shadow:0 4px 14px #00000047}.add-d{display:none}@media (width>=900px){.add-d{margin-inline-start:auto;display:inline-flex}}.add-row{border:1px solid var(--line);cursor:pointer;min-height:68px;color:inherit;background:var(--surface);border-radius:14px;align-items:center;gap:12px;padding:14px;text-decoration:none;display:flex}.add-ic{background:var(--accent-soft);width:48px;height:48px;color:var(--primary);border-radius:14px;flex:none;place-items:center;display:grid}.avatar{object-fit:cover;color:#fff;border-radius:50%;flex:none;place-items:center;font-weight:700;display:inline-grid}.thumb{object-fit:cover;background:var(--accent-soft);border-radius:10px;flex:none;width:48px;height:48px}.thumb.ph{color:var(--primary);place-items:center;display:grid}.buddy-btn{align-items:center;gap:8px;font-weight:700;display:inline-flex}.buddy-sheet{flex-direction:column;min-width:0;max-width:100%;height:min(94vh,940px);display:flex;overflow:hidden}.sheet.buddy-sheet{padding:8px 16px calc(6px + env(safe-area-inset-bottom));position:relative;overflow:hidden}.sheet.buddy-sheet .grab{margin-bottom:6px}@media (width>=760px){.sheet.wide.buddy-sheet{width:min(900px,96vw);max-width:900px}}.buddy-limit{margin:0 0 8px}.buddy-limit progress{width:100%;height:8px;display:block}.buddy-limit p{margin:4px 0 0}.buddy-head{flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;margin-bottom:4px;display:flex}.buddy-head h2{flex:auto;min-width:0;font-size:1rem!important}.credit{width:100%;min-width:0;height:24px;min-height:0;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;margin:0 0 6px;padding:0;line-height:1.2;display:flex}.credit-bar{appearance:none;background:var(--surface-2);border:0;flex:auto;width:auto;min-width:0;height:6px}.credit-bar::-webkit-progress-bar{background:var(--surface-2);border-radius:99px}.credit-bar::-webkit-progress-value{background:var(--blue);border-radius:99px}.credit-bar::-moz-progress-bar{background:var(--blue);border-radius:99px}.credit-pct{font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:.78rem;font-weight:700}.credit-detail{margin:-2px 0 6px}.buddy-quick{scrollbar-width:none;gap:6px;max-width:100%;margin-top:4px;padding:4px 0;display:flex;overflow-x:auto}.buddy-quick .btn,.tr-menu .btn{white-space:nowrap;flex:none;min-height:44px}.buddy-head .grow{min-width:0}.buddy-head h2,.buddy-head .small{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}@media (width>=760px){.buddy-quick{flex-wrap:wrap;overflow-x:visible}}.buddy-head-actions{flex:none;align-items:center;gap:8px;margin-inline-start:auto;display:flex}.buddy-head-actions .btn,.buddy-head-actions .icon-btn{flex:none;min-width:44px;min-height:44px}.buddy-ctx{align-items:center;min-width:0;margin-bottom:6px}.tr-menu,.tr-panel{align-items:center;gap:6px;min-width:0;max-width:100%;display:flex;overflow-x:auto}.tr-panel{flex-wrap:wrap;padding:2px 0 6px}.tr-panel p{flex:180px;margin:0}.buddy-composer,.buddy-form{min-width:0}.buddy-composer{flex:none}.buddy-msgs{flex-direction:column;flex:1;gap:10px;min-height:0;padding:4px 2px 8px;display:flex;overflow-y:auto}.bub{align-items:flex-end;gap:8px;max-width:100%;display:flex}.bub.me{justify-content:flex-end}.bub.bot{flex-direction:column;align-items:flex-start;gap:4px}.bub.bot .bubt{max-width:100%}.bubt{background:var(--surface-2);word-break:break-word;overflow-wrap:anywhere;border-radius:16px;max-width:min(96%,700px);padding:10px 14px}.bub.me .bubt{background:var(--primary);color:var(--on-primary);border-end-end-radius:4px}.bub.bot .bubt{border-end-start-radius:4px}.buddy-text{white-space:normal}.md p{margin:0 0 8px}.md p:last-child{margin-bottom:0}.md .md-h{margin-top:6px}.md ul,.md ol{margin:0 0 8px;padding-inline-start:22px}.md li{margin:2px 0}.md code{background:var(--surface);border-radius:6px;padding:1px 5px;font-size:.92em}.md pre{background:var(--surface);border-radius:10px;margin:0 0 8px;padding:10px;overflow-x:auto}.md hr{border:0;border-top:1px solid var(--line);margin:8px 0}.buddy-hit{background:var(--surface)}.buddy-actions{padding-inline-start:36px}.buddy-form{gap:8px;margin-top:6px}.buddy-foot{text-align:center;margin:2px 0 0;font-size:.72rem}.ftabs{scrollbar-width:none;border-bottom:2px solid var(--line);scroll-snap-type:x proximity;gap:2px;margin-inline:-16px;padding-inline:16px;display:flex;overflow-x:auto}.ftabs::-webkit-scrollbar{display:none}.ftab{min-height:46px;color:var(--muted);scroll-snap-align:start;white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:12px 12px 0 0;flex:none;align-items:center;gap:8px;margin-bottom:-2px;padding:0 14px;font-size:.92rem;font-weight:700;display:inline-flex}.ftab:hover{background:var(--surface-2);color:var(--text)}.ftab .n{background:var(--surface-2);color:var(--muted);font-variant-numeric:tabular-nums;border-radius:999px;padding:4px 8px;font-size:.72rem;line-height:1}.ftab[aria-selected=true]{color:var(--navy);background:var(--accent-soft);border-bottom-color:var(--blue)}.ftab[aria-selected=true] .n{background:var(--blue);color:#fff}.ftab.new{color:var(--primary);font-weight:600}.ftab.tint{background:hsl(var(--h) 85% 96%);color:hsl(var(--h) 50% 26%);border-bottom-color:hsl(var(--h) 65% 82%);margin-inline-end:4px}.ftab.tint svg{color:hsl(var(--h) 65% 42%)}.ftab.tint .n{background:hsl(var(--h) 70% 90%);color:hsl(var(--h) 55% 24%)}.ftab.tint:hover{background:hsl(var(--h) 85% 92%);color:hsl(var(--h) 55% 20%)}.ftab.tint[aria-selected=true]{background:hsl(var(--h) 80% 90%);color:hsl(var(--h) 60% 18%);border-bottom-color:hsl(var(--h) 70% 42%);box-shadow:inset 0 3px 0 hsl(var(--h) 70% 52%)}.ftab.tint[aria-selected=true] .n{background:hsl(var(--h) 70% 38%);color:#fff}.ftabs-wrap{position:relative}.ftab-arrow{display:none}@media (hover:hover) and (pointer:fine){.ftab-arrow{border:1px solid var(--line);width:34px;height:34px;color:var(--navy);cursor:pointer;z-index:2;background:#fff;border-radius:50%;place-items:center;margin:0;padding:0 0 3px;font-size:1.5rem;font-weight:700;line-height:1;display:grid;position:absolute;top:7px;box-shadow:0 2px 8px #0e1a332e}.ftab-arrow.start{inset-inline-start:2px}.ftab-arrow.end{inset-inline-end:2px}.ftab-arrow:hover{color:#fff;background:var(--blue);border-color:var(--blue)}.ftab-arrow:focus-visible{outline:2px solid var(--blue);outline-offset:2px}}.ftab.new:hover{background:var(--accent-soft)}.folder-block{margin:10px 0 4px}.folder-block h2,.docs-label{color:var(--muted);margin:8px 0;font-size:.82rem;font-weight:700}.folder-grid{gap:8px;display:grid}@media (width>=800px){.folder-grid{grid-template-columns:1fr 1fr}}.folder-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;align-items:center;gap:4px;min-height:72px;padding:8px 8px 8px 14px;padding-inline:14px 8px;display:flex}.view-switch{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex:none;display:inline-flex;overflow:hidden}.view-switch .icon-btn{border-radius:0;width:44px;min-width:44px;height:44px;min-height:44px}.view-switch .icon-btn[aria-pressed=true]{background:var(--accent-soft);color:var(--navy)}.explorer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}@media (width>=640px){.explorer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=900px){.explorer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.explorer-tile{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;min-width:0;display:flex;position:relative}.explorer-open{text-align:start;min-width:0;min-height:96px;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:stretch;gap:6px;padding:10px;padding-inline-end:44px;text-decoration:none;display:flex}.explorer-tile.selecting .explorer-open{padding-inline-start:44px}.explorer-ic{border-radius:12px;flex:none;place-items:center;width:44px;height:44px;display:grid}.explorer-ic.folder{background:var(--warn-bg);color:var(--warn)}.explorer-ic.doc{background:var(--accent-soft);color:var(--primary)}.explorer-thumb{aspect-ratio:4/3;object-fit:cover;background:var(--accent-soft);border-radius:10px;width:100%;max-height:88px}.explorer-name{overflow-wrap:anywhere;font-size:.88rem;font-weight:700;line-height:1.25}.explorer-meta{color:var(--muted);overflow-wrap:anywhere;font-size:.72rem;line-height:1.3}.explorer-tile>.icon-btn{top:0;position:absolute;inset-inline-end:0}.explorer-tile>.icon-btn.doc-buddy{top:auto;bottom:0}.explorer-tile .explorer-check{top:0;z-index:1;place-items:center;width:44px;height:44px;margin:0;display:grid;position:absolute;inset-inline-start:0}.explorer-tile .explorer-check input{width:22px;height:22px;margin:0}.folder-open{text-align:start;min-width:0;min-height:48px;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:12px;padding:0;display:flex}.folder-open .fname{font-weight:700;display:block}.folder-open .fmeta{color:var(--muted);margin-top:2px;font-size:.78rem;display:block}.doc-main{min-width:0;color:inherit;flex:1;align-items:center;gap:12px;text-decoration:none;display:flex}.action-list{flex-direction:column;gap:6px;display:flex}.action-list button{text-align:start;justify-content:flex-start}.dest-list{flex-direction:column;gap:6px;max-height:42dvh;display:flex;overflow:auto}.dest-list label{border:1px solid var(--line);border-radius:12px;align-items:center;gap:10px;min-height:48px;padding:8px 10px;display:flex}.lib-tools{flex-wrap:wrap;align-items:end;gap:8px;margin-top:12px;display:flex}.lib-tools .f{flex-direction:column;flex:150px;gap:4px;min-width:0;display:flex}.lib-tools .f>span{color:var(--muted);font-size:.72rem;font-weight:700}.lib-tools .field{min-height:44px}.lib-tools .range{flex:2 280px;gap:8px;display:flex}.lib-tools .range .f{flex:130px}.lib-date{color:var(--muted);margin-top:1px;font-size:.76rem;display:block}.lib-date b{color:var(--text);font-weight:700}.buddy-fab{left:auto;right:14px;bottom:calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));z-index:25;pointer-events:none;direction:ltr;flex-direction:column;align-items:flex-end;gap:8px;display:flex;position:fixed}.buddy-fab>*{pointer-events:auto}.buddy-fab .bubble{background:var(--surface);border:1px solid var(--line);max-width:230px;box-shadow:var(--shadow);border-radius:16px 16px 4px;padding:10px 12px;font-size:.88rem;animation:.25s ease-out buddy-in}:root[dir=rtl] .buddy-fab .bubble{direction:rtl}.buddy-fab .bubble .row{gap:6px;margin-top:8px}.buddy-fab .bubble.coach{border-radius:16px;max-width:min(290px,100vw - 28px);margin-bottom:10px;padding:12px 14px;font-size:.95rem;position:relative}.buddy-fab .bubble.coach>b{margin-bottom:4px;font-size:1rem;display:block}.buddy-fab .bubble.coach .small{color:var(--muted);line-height:1.45}.buddy-fab .bubble.coach:after{content:"";background:var(--surface);border-right:1px solid var(--line);border-bottom:1px solid var(--line);width:12px;height:12px;position:absolute;bottom:-7px;right:20px;transform:rotate(45deg)}.buddy-fab .bubble .x{color:var(--muted);background:0 0;border:0;border-radius:8px;min-width:32px;min-height:32px;margin-inline-start:auto;font-size:1rem}.buddy-fab .orb{border:1px solid var(--line);background:var(--surface);width:52px;height:52px;box-shadow:var(--shadow);border-radius:50%;place-items:center;padding:0;animation:6s ease-in-out infinite buddy-idle;display:grid}.buddy-fab .orb:hover,.buddy-fab .orb:focus-visible{animation-play-state:paused}@keyframes buddy-idle{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes buddy-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (width>=900px){.buddy-fab{bottom:20px}}@media (prefers-reduced-motion:reduce){.buddy-fab .orb,.buddy-fab .bubble{animation:none}}.ctx-chip{border:1.5px solid var(--blue);background:var(--accent-soft);width:100%;height:44px;min-height:44px;max-height:44px;color:var(--navy);text-align:start;border-radius:12px;align-items:center;gap:8px;min-width:0;padding:0 12px;display:flex;position:relative;overflow:hidden}.ctx-chip:hover{background:#d9ebff}.ctx-chip .l1{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-weight:700;overflow:hidden}.ctx-chip .caret{margin-inline-start:auto;font-size:1.1rem;transition:transform .15s}.ctx-chip[aria-expanded=true] .caret{transform:rotate(180deg)}.ctx-chip.lost{border-color:var(--due);background:var(--due-bg)}.ctx-panel{border:1px solid var(--line);background:var(--surface);border-radius:16px;max-height:min(52vh,420px);margin-top:8px;padding:4px 0 8px;overflow-y:auto}.ctx-panel h3{letter-spacing:.02em;text-transform:uppercase;color:var(--muted);padding:12px 14px 4px;font-size:.74rem}.ctx-opt{text-align:start;border:0;background:0 0;border-inline-start:4px solid #0000;align-items:center;gap:8px;width:100%;min-height:46px;padding:6px 14px;font-weight:600;display:flex}.ctx-opt:hover,.ctx-opt:focus-visible{background:var(--surface-2)}.ctx-opt[aria-current=true]{background:var(--accent-soft);border-inline-start-color:var(--blue);color:var(--navy)}.ctx-opt .n{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline-start:auto;font-size:.78rem}.ctx-opt .sub{color:var(--muted);font-size:.8rem;font-weight:500}.ctx-divider{color:var(--muted);background:var(--surface-2);text-align:center;border-radius:999px;align-self:center;max-width:100%;margin:6px 0;padding:4px 12px;font-size:.78rem}.ctx-ex{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.ctx-ex .btn{white-space:normal;text-align:start;max-width:100%}.topmenu{align-items:center;gap:8px;display:inline-flex;position:relative}.tm-quick{font-weight:700}.topmenu .btn{align-items:center;gap:6px;display:inline-flex}.tm-lang{font-size:.8rem;font-weight:700}.tm-panel{inset-inline-end:0;z-index:60;background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:2px;width:min(300px,92vw);padding:8px;display:flex;position:absolute;top:calc(100% + 8px);box-shadow:0 12px 32px #0a193c2e}.tm-sec{flex-direction:column;gap:8px;padding:8px 10px 10px;display:flex}.tm-h{color:var(--muted);font-size:.78rem;font-weight:700}.tm-item{width:100%;min-height:44px;color:var(--text);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:8px 12px;font-weight:600;text-decoration:none;display:flex}.tm-item:hover,.tm-item:focus-visible{background:var(--surface-2)}.tm-danger{color:var(--danger,#b42318)}.tm-about{margin:0;padding:0 12px 8px}.tm-langs{flex-direction:column;gap:2px;display:flex}.tm-lang-opt{min-height:44px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:space-between;align-items:center;padding:8px 12px;font-weight:600;display:flex}.tm-lang-opt:hover{background:var(--surface-2)}.tm-lang-opt[aria-checked=true]{background:var(--accent-soft);color:var(--navy)}.tm-row{justify-content:space-between;flex-direction:row!important;align-items:center!important}.tm-cur{color:var(--muted);align-items:center;gap:6px;font-size:.9rem;font-weight:600;display:inline-flex}.tm-sub{margin-bottom:4px;padding-inline-start:10px}.tree-pick{flex-direction:column;gap:4px;max-height:46vh;padding:2px;display:flex;overflow-y:auto}.tree-row{align-items:center;gap:2px;display:flex}.tree-caret{width:44px;height:48px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;justify-content:center;align-items:center;font-size:1.7rem;line-height:1;display:inline-flex}button.tree-caret:hover{background:var(--surface-2);color:var(--text)}.tree-opt{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:12px;flex:1;align-items:center;gap:10px;min-height:44px;padding:8px 12px;font-weight:600;display:flex}.tree-opt:has(input:checked){background:var(--accent-soft);border-color:var(--blue)}.term-sel{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.term-lab{flex:0 0 100%;font-weight:600}.term-chip{border:1.5px solid var(--line);background:var(--surface);min-height:40px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:0 16px;font-weight:600}.term-chip:hover{background:var(--surface-2)}.term-chip[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}.term-year{width:auto;min-height:40px;padding-block:0}@media (width>=560px){.term-lab{flex:none}}.sort-list{flex-direction:column;gap:10px;max-height:55vh;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.sort-row{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.sort-head{align-items:center;gap:10px;display:flex}.sort-head input{flex:none;width:22px;height:22px}.sort-title{overflow-wrap:anywhere}.ok-tag{color:var(--blue);font-weight:600}.sort-pick{grid-template-columns:1fr;gap:8px;display:grid}@media (width>=520px){.sort-pick{grid-template-columns:1fr 1fr}}@property --study-a{syntax:"<angle>";inherits:false;initial-value:0deg}.study-card{background:linear-gradient(135deg, #f3f9ff, #e6f2ff 55%, #f1edff) padding-box, conic-gradient(from var(--study-a), #3be6f5, #0a7be6, #8b5cf6, #3be6f5) border-box;border:2px solid #0000;min-height:76px;animation:6s linear infinite study-spin}.study-card .t{color:var(--navy);font-size:1.05rem;font-weight:800}.study-card .s{color:var(--navy-2)}.study-card:hover{box-shadow:0 2px 4px #0b1b3a14,0 12px 28px #0a7be638}.study-ic{background:linear-gradient(135deg, var(--blue), #8b5cf6);color:#fff;box-shadow:0 4px 12px #0a7be659}@keyframes study-spin{to{--study-a:360deg}}@media (prefers-reduced-motion:reduce){.study-card{animation:none}}.home .sec-h h2{color:var(--navy);align-items:center;gap:8px;font-size:1.1rem;font-weight:800;display:flex}.home .sec-h h2:before{content:"";background:linear-gradient(var(--blue), #8b5cf6);border-radius:2px;block-size:1.05em;inline-size:4px}.home-list{overflow:hidden}.home-list .row-card{transition:background .15s}.home-list .row-card:hover{background:#f4f9ff}.home-ic{color:var(--primary);background:linear-gradient(135deg,#e4f1ff,#efeaff)}.home-list .row-card .t{color:var(--navy)}.home .btn-sm{border-color:color-mix(in srgb, var(--blue) 25%, var(--line))}.buddy-hbtn{color:var(--text);touch-action:manipulation;-webkit-tap-highlight-color:transparent}.buddy-hbtn svg{pointer-events:none;display:block}.buddy-hbtn:hover,.buddy-hbtn:active{background:var(--surface-2);color:var(--navy)}.buddy-hbtn:focus-visible{outline:3px solid var(--blue);outline-offset:2px;background:var(--surface-2)}@media (hover:none){.buddy-hbtn:hover{background:0 0}.buddy-hbtn:active{background:var(--surface-2)}}.nbadge{color:#fff;text-align:center;background:#c62828;border-radius:9px;min-width:18px;margin-inline-start:6px;padding:0 5px;font-size:.7rem;font-weight:800;line-height:18px;display:inline-block}.tab-ic{position:relative}.nbadge.nb-tab{top:-6px;margin:0;position:absolute;inset-inline-end:-10px}.gd-actions,.gd-more{position:relative}@media (width<=640px){.gd-more{position:static}.gd-more .tm-panel{width:auto;inset-inline:0}}
