@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fraunces-vietnamese-600-normal-BjlAJixd.woff2) format("woff2"),url(/assets/fraunces-vietnamese-600-normal-DlAl5EAR.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fraunces-latin-ext-600-normal-BtzmzP0X.woff2) format("woff2"),url(/assets/fraunces-latin-ext-600-normal-B0Dy4lqi.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fraunces-latin-600-normal-BFCDtZfi.woff2) format("woff2"),url(/assets/fraunces-latin-600-normal-DL5QCzvS.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fraunces-vietnamese-700-normal-DH94m5DZ.woff2) format("woff2"),url(/assets/fraunces-vietnamese-700-normal-DxawQjq2.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fraunces-latin-ext-700-normal-CanUGppC.woff2) format("woff2"),url(/assets/fraunces-latin-ext-700-normal-DuBstVeD.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fraunces-latin-700-normal-CEOla-zY.woff2) format("woff2"),url(/assets/fraunces-latin-700-normal-DTjk5d1Q.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format("woff2"),url(/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-cyrillic-400-normal-obahsSVq.woff2) format("woff2"),url(/assets/inter-cyrillic-400-normal-HOLc17fK.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2) format("woff2"),url(/assets/inter-greek-ext-400-normal-KugGGMne.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-greek-400-normal-B4URO6DV.woff2) format("woff2"),url(/assets/inter-greek-400-normal-q2sYcFCs.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-vietnamese-400-normal-DMkecbls.woff2) format("woff2"),url(/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-ext-400-normal-C1nco2VV.woff2) format("woff2"),url(/assets/inter-latin-ext-400-normal-77YHD8bZ.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-400-normal-C38fXH4l.woff2) format("woff2"),url(/assets/inter-latin-400-normal-CyCys3Eg.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2) format("woff2"),url(/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-cyrillic-500-normal-BasfLYem.woff2) format("woff2"),url(/assets/inter-cyrillic-500-normal-CxZf_p3X.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-greek-ext-500-normal-C4iEst2y.woff2) format("woff2"),url(/assets/inter-greek-ext-500-normal-2j5mBUwD.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-greek-500-normal-BIZE56-Y.woff2) format("woff2"),url(/assets/inter-greek-500-normal-Xzm54t5V.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-vietnamese-500-normal-DOriooB6.woff2) format("woff2"),url(/assets/inter-vietnamese-500-normal-mJboJaSs.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2) format("woff2"),url(/assets/inter-latin-ext-500-normal-BxGbmqWO.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-500-normal-Cerq10X2.woff2) format("woff2"),url(/assets/inter-latin-500-normal-BL9OpVg8.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2) format("woff2"),url(/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-cyrillic-600-normal-CWCymEST.woff2) format("woff2"),url(/assets/inter-cyrillic-600-normal-4D_pXhcN.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2) format("woff2"),url(/assets/inter-greek-ext-600-normal-B8X0CLgF.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-greek-600-normal-plRanbMR.woff2) format("woff2"),url(/assets/inter-greek-600-normal-BZpKdvQh.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2) format("woff2"),url(/assets/inter-vietnamese-600-normal-BuLX-rYi.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2) format("woff2"),url(/assets/inter-latin-ext-600-normal-CIVaiw4L.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-600-normal-LgqL8muc.woff2) format("woff2"),url(/assets/inter-latin-600-normal-CiBQ2DWP.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--brand: #8a1c2b;--brand-ink: #ffffff;--bg: #faf7f4;--surface: #ffffff;--surface-2: #f3ede8;--text: #221b18;--muted: #6d615b;--border: #e5ddd6;--accent: #a8324a;--ring: #8a1c2b;--shadow: 0 1px 2px rgba(34, 27, 24, .06), 0 8px 24px rgba(34, 27, 24, .06);--radius: 14px;--font-display: "Fraunces", Georgia, "Times New Roman", serif;--font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif}@media(prefers-color-scheme:dark){:root:not([data-theme]){--bg: #16110f;--surface: #211a17;--surface-2: #2b221e;--text: #f4ece7;--muted: #b7a89f;--border: #3a2e29;--accent: #e08699;--ring: #e08699;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35)}}:root[data-theme=dark]{--bg: #16110f;--surface: #211a17;--surface-2: #2b221e;--text: #f4ece7;--muted: #b7a89f;--border: #3a2e29;--accent: #e08699;--ring: #e08699;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35)}:root[data-theme=contrast]{--brand: #000000;--brand-ink: #ffffff;--bg: #000000;--surface: #000000;--surface-2: #0a0a0a;--text: #ffffff;--muted: #e6e6e6;--border: #ffffff;--accent: #ffd400;--ring: #ffd400;--shadow: none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);line-height:1.55;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}:focus-visible{outline:3px solid var(--ring);outline-offset:2px;border-radius:6px}@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}.page{min-height:100vh;display:flex;flex-direction:column;overflow-x:clip}.hero-carousel{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-bottom:1.75rem}.hc-frame{position:relative;height:clamp(240px,42vw,460px);overflow:hidden;background:var(--surface-2)}.hc-img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;transition:opacity .9s ease}.hc-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(1rem,4vw,3rem);background:linear-gradient(to top,#0000009e,#00000014 55%,#00000026);color:#fff}.hc-overlay h1{font-family:var(--font-display);font-weight:700;font-size:clamp(1.8rem,4.2vw,3rem);margin:0 0 .4rem;line-height:1.05;text-wrap:balance;text-shadow:0 2px 14px rgba(0,0,0,.45)}.hc-overlay p{margin:0;max-width:58ch;font-size:clamp(.95rem,1.6vw,1.1rem);text-shadow:0 1px 8px rgba(0,0,0,.55)}.hc-dots{position:absolute;bottom:.85rem;right:clamp(1rem,4vw,3rem);display:flex;gap:.45rem}.hc-dots button{width:11px;height:11px;border-radius:999px;border:1px solid rgba(255,255,255,.7);background:#ffffff59;cursor:pointer;padding:0}.hc-dots button.on{background:#fff}.hc-play{position:absolute;bottom:.7rem;left:clamp(1rem,4vw,3rem);width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid rgba(255,255,255,.7);background:#0006;color:#fff;cursor:pointer;padding:0}.hc-play:hover{background:#0009}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skip-link{position:absolute;left:.5rem;top:.5rem;z-index:100;background:var(--brand);color:var(--brand-ink);padding:.6rem 1rem;border-radius:8px;font-weight:600;transform:translateY(-160%);transition:transform .15s ease}.skip-link:focus{transform:translateY(0)}.masthead{background:var(--brand);color:var(--brand-ink);border-bottom:1px solid var(--border)}.masthead-inner{width:100%;padding:.9rem clamp(1rem,4vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{display:flex;align-items:center;gap:.6rem;min-width:0}.brand a{display:flex;align-items:center;gap:.6rem}.brand-logo{height:54px;width:auto;display:block}.brand-mark{font-family:var(--font-display);font-weight:700;font-size:1.15rem;letter-spacing:-.01em}.brand-sub{font-family:var(--font-display);font-weight:600;font-size:clamp(1.05rem,2.4vw,1.35rem);letter-spacing:-.01em;opacity:.96;white-space:nowrap}.theme-toggle{display:inline-flex;gap:.25rem;background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.2rem}.theme-toggle button{border:0;background:transparent;color:var(--brand-ink);cursor:pointer;width:40px;height:40px;min-height:40px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}.theme-toggle button[aria-pressed=true]{background:var(--brand-ink);color:var(--brand)}main{flex:1;width:100%;padding:clamp(1.25rem,4vw,2.5rem) clamp(1rem,4vw,3rem) 3rem}.hero{max-width:60ch;margin-bottom:1.75rem}.hero h1{font-family:var(--font-display);font-weight:700;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.08;margin:0 0 .5rem;letter-spacing:-.02em;text-wrap:balance}.hero p{color:var(--muted);margin:0;font-size:1.05rem}.searchbar{position:relative;margin:1.25rem 0 1.75rem;max-width:640px}.searchbar input{width:100%;font:inherit;font-size:1rem;padding:.8rem 3rem .8rem 1rem;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.searchbar input::placeholder{color:var(--muted)}.search-clear{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer;border-radius:999px}.search-clear:hover{color:var(--text);background:var(--surface-2)}.search-hint{position:absolute;right:.9rem;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:.05rem .5rem;font:inherit;font-size:.85rem}.crumbs{display:flex;gap:.5rem;align-items:center;color:var(--muted);font-size:.85rem;margin-bottom:1rem;flex-wrap:wrap}.crumbs a{color:var(--accent);font-weight:600}.crumbs a:hover{text-decoration:underline}.section-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:1.75rem 0 .75rem}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:1rem}.card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.15rem 1.25rem;box-shadow:var(--shadow);transition:transform .16s ease,border-color .16s ease}.card:hover{transform:translateY(-2px);border-color:var(--accent)}.card .badge{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.06em;color:var(--brand-ink);background:var(--brand);padding:.2rem .55rem;border-radius:999px;margin-bottom:.6rem}:root[data-theme=contrast] .card .badge{background:var(--accent);color:#000}.card h3{font-family:var(--font-display);font-weight:600;font-size:1.2rem;margin:0 0 .35rem;line-height:1.2}.card p{margin:0;color:var(--muted);font-size:.92rem}.card .meta{margin-top:.8rem;font-size:.8rem;color:var(--muted);font-weight:600}.course-row{display:flex;gap:1rem;align-items:baseline;width:100%;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.85rem 1rem;min-height:44px;cursor:pointer;color:inherit;font:inherit;transition:border-color .16s ease,background .16s ease}.course-row:hover{border-color:var(--accent);background:var(--surface-2)}.course-row .code{flex:0 0 auto;font-family:var(--font-body);font-weight:700;color:var(--accent);min-width:6.5ch;white-space:nowrap;font-variant-numeric:tabular-nums}.course-row .ct{min-width:0}.course-row .ct strong{font-weight:600}.course-row .ct span{display:block;color:var(--muted);font-size:.86rem}.sem-group{margin-bottom:1.5rem}.sem-group>.stack{display:flex;flex-direction:column;gap:.5rem}.detail{max-width:1180px;margin-inline:auto}.detail h1{font-family:var(--font-display);font-weight:700;font-size:clamp(1.5rem,3.5vw,2.2rem);margin:.25rem 0 .35rem;line-height:1.1}.detail .code-lg{color:var(--accent);font-weight:700;letter-spacing:.04em}.detail .lede{color:var(--text);font-size:1.05rem}.detail-grid{display:grid;grid-template-columns:1fr;gap:1.25rem 2.5rem;margin-top:1rem}@media(min-width:900px){.detail-grid{grid-template-columns:minmax(0,1fr) 320px;gap:1.25rem 3rem;align-items:start}.detail-side{position:sticky;top:1rem}}.detail-main{min-width:0}.detail-main .lede,.detail-main .course-section{max-width:90ch}.detail .facts{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin:0;padding:1rem 1.25rem;background:var(--surface-2);border-radius:12px}.detail-side .facts{flex-direction:column;gap:.85rem}.detail .facts div{font-size:.9rem}.detail .facts b{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.15rem}.detail .side-block{margin-top:1.25rem}.detail-main .course-section:first-child{margin-top:0}.detail .course-section{max-width:90ch;margin:1.25rem 0}.detail .course-section p{margin:0;color:var(--text)}.detail .detail-list{margin:0;padding-left:1.4rem}.detail .detail-list li{color:var(--text);margin:.35rem 0}.detail .detail-list li::marker{color:var(--muted)}.detail .detail-list.refs{list-style:none;padding-left:0}.detail .detail-list.refs li{color:var(--muted);font-size:.92rem;padding-left:1rem;text-indent:-1rem;margin:.5rem 0}.lect{display:inline-flex;align-items:center;gap:.4rem;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.3rem .7rem;font-size:.86rem;margin:0 .4rem .4rem 0}.state{padding:3rem 1rem;text-align:center;color:var(--muted)}.state h1{font-family:var(--font-display);font-size:clamp(1.4rem,3vw,1.9rem);color:var(--text);margin:0 0 .4rem}.spinner{width:26px;height:26px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--accent);animation:spin .8s linear infinite;margin:0 auto 1rem}@keyframes spin{to{transform:rotate(360deg)}}.retry{margin-top:1rem;font:inherit;font-weight:600;cursor:pointer;background:var(--brand);color:var(--brand-ink);border:0;border-radius:999px;padding:.5rem 1.1rem}footer{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:.85rem;padding:1.25rem clamp(1rem,4vw,3rem);text-align:center}footer a{color:var(--accent);font-weight:600}.bot-launcher{position:fixed;right:clamp(.75rem,3vw,1.5rem);bottom:clamp(.75rem,3vw,1.5rem);z-index:90;display:inline-flex;align-items:center;gap:.5rem;min-height:48px;padding:0 1rem 0 .85rem;border:0;border-radius:999px;background:var(--brand);color:var(--brand-ink);cursor:pointer;font:inherit;font-weight:600;box-shadow:0 6px 20px #00000047}.bot-launcher:hover{filter:brightness(1.06)}:root[data-theme=contrast] .bot-launcher{border:2px solid var(--brand-ink)}.bot-panel{position:fixed;right:clamp(.5rem,3vw,1.5rem);bottom:clamp(.5rem,3vw,1.5rem);z-index:95;width:min(380px,calc(100vw - 1rem));height:min(560px,calc(100vh - 1.5rem));display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 40px #00000059}.bot-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .9rem;background:var(--brand);color:var(--brand-ink)}.bot-title{font-family:var(--font-display);font-weight:700;font-size:1.05rem}.bot-close{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--brand-ink);cursor:pointer;border-radius:999px}.bot-close:hover{background:#ffffff2e}.bot-log{flex:1;overflow-y:auto;padding:1rem .9rem;display:flex;flex-direction:column;gap:.6rem}.bot-msg{display:flex}.bot-msg.user{justify-content:flex-end}.bot-bubble{max-width:85%;padding:.55rem .8rem;border-radius:14px;font-size:.92rem;line-height:1.4;background:var(--surface-2);color:var(--text)}.bot-msg.user .bot-bubble{background:var(--brand);color:var(--brand-ink);border-bottom-right-radius:4px}.bot-msg.model .bot-bubble{border-bottom-left-radius:4px}.bot-bubble p{margin:0 0 .4rem}.bot-bubble p:last-child{margin:0}.bot-bubble ul{margin:.2rem 0;padding-left:1.2rem}.bot-bubble li{margin:.15rem 0}.bot-typing{display:inline-flex;gap:.25rem}.bot-typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:bot-blink 1.2s infinite both}.bot-typing span:nth-child(2){animation-delay:.2s}.bot-typing span:nth-child(3){animation-delay:.4s}@keyframes bot-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.bot-input{display:flex;align-items:flex-end;gap:.5rem;padding:.6rem;border-top:1px solid var(--border)}.bot-input textarea{flex:1;resize:none;max-height:96px;font:inherit;font-size:.92rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text)}.bot-input textarea::placeholder{color:var(--muted)}.bot-send{width:44px;height:44px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--brand);color:var(--brand-ink);cursor:pointer}.bot-send:disabled{opacity:.5;cursor:default}.tooltip{position:fixed;z-index:1000;width:max-content;max-width:min(18rem,calc(100vw - 16px));padding:4px 8px;border-radius:8px;background:var(--text);color:var(--bg);font:600 .875rem/1.35 var(--font-body);box-shadow:var(--shadow);animation:tooltip-in .15s ease-out}@keyframes tooltip-in{0%{opacity:0}to{opacity:1}}
