/* Конспект · quiet surfaces, optical spacing, one accent family. */
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7fafc;
  --bg-deep: #e0eaf0;
  --surface: rgba(255, 255, 255, .16);
  --surface-solid: #f8fcfe;
  --surface-2: rgba(255, 255, 255, .24);
  --surface-3: rgba(173, 204, 222, .24);
  --sidebar: rgba(250, 253, 255, .24);
  --text: #183443;
  --text-2: #3c5665;
  --text-3: #4c6473;
  --heading: #163242;
  --hairline: #94b0c075;
  --hairline-strong: #83a6ba;
  --blue: #347b9e;
  --blue-soft: #d6e8f0;
  --blue-strong: #2a6f92;
  --glass-rim: #7096ad80;
  --glass-highlight: #ffffffbf;
  --green: #648c7b;
  --orange: #8a6c40;
  --red: #9a525c;
  --tint-bg: #e5eff4;
  --tint-text: #5c8ba3;
  --homework: var(--surface);
  --homework-line: var(--glass-rim);
  --homework-accent: #395969;
  --launcher-bg: var(--surface);
  --glass: rgba(240, 246, 254, .30);
  --glass-edge: rgba(255, 255, 255, .9);
  --shadow-sm: 0 2px 4px #263a5c03, 0 4px 16px #263a5c03;
  --shadow-md: 0 8px 28px -12px #33496b1a, 0 2px 6px #33496b04;
  --shadow-lg: 0 28px 90px -30px #263a5c33;
  --font: Manrope, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101116;
  --bg-deep: #1a1c24;
  --surface: rgba(255, 255, 255, .035);
  --surface-solid: #1c1e26;
  --surface-2: rgba(255, 255, 255, .055);
  --surface-3: #303541;
  --sidebar: rgba(20, 21, 26, .46);
  --text: #e4e7ee;
  --heading: #f0f1f5;
  --text-2: #b9bdc9;
  --text-3: #a2a9b9;
  --hairline: #ffffff1f;
  --hairline-strong: #5c6475;
  --blue: #adc0d9;
  --blue-soft: #2c333f;
  --blue-strong: #adc0d9;
  --green: #9bb8aa;
  --orange: #c8b28e;
  --red: #d5a0a5;
  --tint-bg: #2b3341;
  --tint-text: #bcc6d8;
  --homework: var(--surface);
  --homework-line: var(--glass-rim);
  --homework-accent: #b5d1df;
  --launcher-bg: var(--surface);
  --glass: rgba(35, 36, 44, .44);
  --glass-edge: #ffffff44;
  --glass-rim: #b2bac14d;
  --glass-highlight: #ffffff30;
  --shadow-sm: 0 2px 8px #00000008;
  --shadow-md: 0 8px 28px -12px #00000033;
  --shadow-lg: 0 28px 90px -30px #00000080;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--blue-soft); color: var(--text); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, input, a { touch-action: manipulation; }
button { border: 0; }
button:disabled { cursor: default; opacity: .5; }
input { min-width: 0; }
input::placeholder { color: var(--text-3); opacity: 1; }
input::-webkit-search-cancel-button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { text-wrap: balance; color: var(--heading); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spacer { flex: 1; }

/* Application frame */
.app-shell { min-height: 100dvh; }
.sidebar { width: 242px; position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; padding: 36px 20px 20px; background: var(--sidebar); border-right: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px; }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; opacity: .88; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.9px; line-height: 1.3; }
.brand-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; letter-spacing: .1px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: var(--text-3); margin: 54px 14px 14px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 14px; border-radius: 13px; color: var(--text-2); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.nav-item .ic { width: 19px; height: 19px; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.is-active { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }
.nav-item.is-active::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: -20px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); opacity: .7; }
.nav-item .assistant-mark { width: 21px; height: 21px; }
.nav-tag { margin-left: auto; font-size: 11px; letter-spacing: .4px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; padding: 1px 5px; }
.side-spacer { flex: 1; min-height: 44px; }
.group-mini { display: flex; gap: 11px; align-items: center; padding: 14px 10px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; transition: border-color .2s; }
.group-mini:hover { border-color: var(--hairline-strong); }
.group-monogram { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: -.3px; flex: none; }
.group-mini-text { display: flex; flex-direction: column; gap: 1px; }
.group-mini-name { font-size: 14px; font-weight: 750; }
.group-mini-sub { font-size: 12px; color: var(--text-2); }
.group-mini-arrow { margin-left: auto; width: 15px; color: var(--text-3); }
.side-profile { display: flex; align-items: center; gap: 10px; padding: 20px 6px 0; border-top: 1px solid var(--hairline); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: hsl(var(--avatar-h, 260) 35% 88%); color: hsl(var(--avatar-h, 260) 30% 43%); font-size: 13px; font-weight: 750; }
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-btn { transition: box-shadow .2s; }
.avatar-btn:hover { box-shadow: 0 0 0 4px var(--surface-3); }
[data-theme="dark"] .avatar { background: hsl(var(--avatar-h, 260) 22% 28%); color: hsl(var(--avatar-h, 260) 32% 78%); }
.profile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.profile-name { font-size: 12px; font-weight: 750; }
.profile-role { color: var(--text-2); font-size: 12px; }
.app-main { margin-left: 242px; position: relative; isolation: isolate; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 48px; max-width: 1336px; margin: 0 auto; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-brand { display: none; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; letter-spacing: -.7px; }
.topbar-brand img { width: 30px; height: 30px; border-radius: 9px; opacity: .88; }
.topbar-brand small { display: block; margin-top: 1px; color: var(--text-2); font-size: 9px; font-weight: 600; line-height: 1.4; letter-spacing: .1px; }
.group-pill { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.group-pill > .ic { width: 18px; height: 18px; color: var(--text-3); }
.group-pill-sub { margin-left: 5px; padding-left: 13px; border-left: 1px solid var(--hairline-strong); color: var(--text-3); font-size: 12px; font-weight: 500; }
.search-shortcut { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: transparent; color: var(--text-3); font-size: 13px; }
.search-shortcut .ic { width: 15px; height: 15px; }
kbd { padding: 2px 5px; border: 1px solid var(--hairline); border-radius: 5px; font: 9px var(--font); margin-left: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--text-2); background: transparent; flex: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .ic { width: 18px; height: 18px; }
.theme-btn { width: 34px; height: 34px; }
.view { max-width: 1240px; margin: 0 auto; padding: 32px 48px 80px; animation: fade-in .3s var(--ease); outline: none; }

/* Type, controls and surfaces */
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.5px; line-height: 1.6; text-transform: uppercase; color: var(--text-3); }
.large-title { font-size: clamp(32px, 3.6vw, 46px); font-weight: 650; line-height: 1.2; letter-spacing: -1.9px; margin: 11px 0 13px; }
.title-period { color: #6d9eb3; }
.greeting-name { color: #4c89ac; }
[data-theme="dark"] .greeting-name { color: #9ac6d9; }
.lede { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.fine { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.screen-head { margin-bottom: 34px; }
.screen-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.screen-head-row .large-title { margin-bottom: 10px; }
.screen-head-row > .segmented, .screen-head-row > .btn { margin-bottom: 4px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; min-height: 48px; }
.section-head .eyebrow { margin-bottom: 7px; font-size: 10px; }
h2, .section-head h2 { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
h3 { font-size: 15px; font-weight: 650; letter-spacing: -.35px; }
.section-link { display: inline-flex; gap: 7px; align-items: center; color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; min-height: 36px; }
.section-link:hover { color: var(--blue); }
.section-link .ic { width: 15px; height: 15px; }
.card, .panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.5; transition: background .2s, border-color .2s, transform .2s; }
.btn:active, .icon-btn:active { transform: scale(.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.btn-primary { color: var(--blue-strong); background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 14%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--blue-soft) 80%, var(--blue) 20%); }
.btn-secondary { background: var(--surface); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--hairline-strong); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.segmented { display: inline-flex; align-items: center; padding: 4px; gap: 3px; border: 1px solid var(--hairline); background: var(--bg-deep); border-radius: 12px; }
.segmented button { min-height: 32px; padding: 7px 13px; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 650; line-height: 1.5; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge-notes { background: var(--blue-soft); color: var(--blue); }
.badge-homework { background: color-mix(in srgb, var(--orange) 10%, var(--surface)); color: var(--orange); }
.badge-off { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.tint { color: hsl(var(--h) 32% 38%); background: hsl(var(--h) 48% 93%); }
[data-theme="dark"] .tint { color: hsl(var(--h) 36% 75%); background: hsl(var(--h) 22% 24%); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; padding: 5px 0; margin-bottom: 28px; }
.back-link .ic { width: 16px; height: 16px; }
.back-link:hover { color: var(--blue); }

/* Home: only the next assignment and today's notes. */
.home-hero { padding-top: 3px; margin-bottom: 33px; }
.date-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1px; }
.date-dot { width: 5px; height: 5px; background: #99b8a2; border-radius: 50%; box-shadow: 0 0 0 3px #99b8a217; }
.home-hero .large-title { margin-top: 15px; font-size: clamp(36px, 4vw, 48px); font-weight: 650; }
.ai-launcher { display: flex; position: relative; isolation: isolate; align-items: center; gap: 22px; padding: 25px 28px; margin-bottom: 45px; min-height: 126px; border-radius: 24px; border: 1px solid var(--glass-rim); background: var(--launcher-bg); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 1px 0 0 #ffffff66, var(--shadow-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.ai-launcher::before { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 88% 10%, #99b2d026, transparent 68%), radial-gradient(ellipse at 10% 110%, #899fbe20, transparent 65%); }
.ai-launcher::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(300px circle at var(--spot-x, 50%) var(--spot-y, 50%), #91a8d414, transparent 80%); }
.ai-launcher:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-md); }
.ai-launcher:hover::after { opacity: 1; }
.launcher-art { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: transparent; }
.assistant-mark { display: inline-block; flex: none; width: 44px; height: 44px; background: url("assets/assistant.svg") center/contain no-repeat; vertical-align: middle; }
[data-theme="dark"] .assistant-mark { filter: grayscale(1) brightness(1.75); }
.launcher-art .assistant-mark { width: 58px; height: 58px; transition: transform .8s var(--ease); }
.ai-launcher:hover .assistant-mark { transform: rotate(20deg); }
.ai-launcher-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-launcher-kicker { font-size: 10px; font-weight: 750; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 2px; }
.ai-launcher-copy b { font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.ai-launcher-copy small { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ai-launcher-arrow { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; margin-left: auto; color: var(--blue); background: color-mix(in srgb, var(--surface) 65%, transparent); transition: transform .25s; }
.ai-launcher:hover .ai-launcher-arrow { transform: translate(2px, -2px); }
.ai-launcher-arrow .ic { width: 18px; height: 18px; }
.home-focus { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; }
.home-block { min-width: 0; }
.homework-card { position: relative; display: flex; flex-direction: column; padding: 25px 26px 18px; min-height: 275px; background: var(--homework); border-color: var(--homework-line); box-shadow: none; transition: border-color .25s, transform .25s var(--ease); }
.homework-card:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--homework-line)); transform: translateY(-2px); }
.homework-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px; }
.homework-card-label { font-size: 9px; font-weight: 750; color: var(--homework-accent); letter-spacing: 1px; }
.homework-card-date { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--homework-accent); padding: 4px 7px; margin-right: -7px; border-radius: 7px; background: color-mix(in srgb, var(--surface) 50%, transparent); }
.homework-card-date .ic { width: 13px; height: 13px; }
.homework-card-subject { display: flex; align-items: center; gap: 7px; color: var(--homework-accent); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.homework-card-subject .ic { width: 16px; height: 16px; }
.homework-card h3 { font-size: 26px; font-weight: 650; letter-spacing: -1px; margin-bottom: 10px; }
.homework-card > p { color: var(--text-2); font-size: 13px; line-height: 1.8; max-width: 300px; margin-bottom: 20px; }
.homework-card-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--homework-line); color: var(--homework-accent); font-weight: 650; font-size: 12px; }
.homework-card-open > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 65%, transparent); }
.homework-card-open .ic { width: 15px; height: 15px; }
.homework-empty { justify-content: center; align-items: flex-start; gap: 18px; }
.homework-empty > .ic { width: 30px; height: 30px; color: var(--green); }
.homework-empty h3 { font-size: 18px; }
.homework-empty p { font-size: 13px; color: var(--text-2); }
.today-note-list { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: var(--surface); border-radius: 22px; overflow: hidden; }
.today-note { display: flex; align-items: flex-start; gap: 13px; min-height: 137px; padding: 22px 20px; position: relative; transition: background .2s; }
.today-note + .today-note::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--hairline); }
.today-note:first-child { background: linear-gradient(115deg, #fbf5e936, transparent 75%); }
.today-note:last-child { background: linear-gradient(115deg, #dbeef540, transparent 75%); }
.today-note:hover { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.subject-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; flex: none; }
.subject-icon .ic { width: 21px; height: 21px; }
.today-note-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.today-note-subject { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); line-height: 1.5; margin-bottom: 7px; }
.today-note-subject > span { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.today-note-copy b { font-size: 14px; line-height: 1.6; font-weight: 650; letter-spacing: -.15px; text-wrap: pretty; }
.today-note-copy small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 10px; color: var(--text-3); margin-top: 10px; }
.today-note-copy small .ic { width: 11px; height: 11px; }
.today-note > .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--text-3); }
.today-notes-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 240px; border: 1px dashed var(--hairline-strong); border-radius: 22px; gap: 16px; color: var(--text-2); font-size: 14px; }

/* Assistant: restrained ambient light, no global aurora. */
.search-layout { max-width: 780px; margin: 0 auto; padding-top: 26px; }
.ai-search-hero { text-align: center; position: relative; padding: 25px 0 38px; }
.assistant-stage { position: relative; display: grid; place-items: center; margin: 0 auto 27px; width: 128px; height: 128px; isolation: isolate; }
.assistant-stage::before { content: ""; position: absolute; inset: -50px -100px; z-index: -1; background: radial-gradient(ellipse at 28% 40%, #b7d9e35c, transparent 60%), radial-gradient(ellipse at 76% 64%, #a8c6e65c, transparent 60%); filter: blur(22px); animation: ambient 12s ease-in-out infinite alternate; }
.assistant-mark-lg { width: 105px; height: 105px; animation: iris-breathe 9s ease-in-out infinite; }
.ai-search-hero .eyebrow { color: var(--blue); letter-spacing: 1.8px; }
.ai-search-hero h1 { font-size: clamp(28px, 3.7vw, 42px); line-height: 1.3; letter-spacing: -1.7px; font-weight: 600; margin: 13px 0 15px; }
.ai-search-hero .lede { line-height: 1.9; }
.ai-search { display: flex; gap: 13px; align-items: center; position: relative; min-height: 70px; padding: 10px 11px 10px 23px; border: 1px solid var(--hairline-strong); border-radius: 22px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue-soft) 32%, transparent), var(--shadow-md), inset 0 1px var(--glass-edge); transition: border-color .2s, box-shadow .2s; }
.ai-search:focus-within { border-color: color-mix(in srgb, var(--blue) 60%, var(--hairline)); box-shadow: 0 0 0 5px var(--blue-soft), var(--shadow-md); }
.ai-search > .ic { width: 19px; height: 19px; color: var(--text-3); }
.ai-input { border: 0; outline: 0; box-shadow: none; min-width: 0; flex: 1; background: transparent; height: 45px; font-size: 14px; }
.send-btn { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); transition: background .2s, transform .2s; }
.send-btn:hover { background: color-mix(in srgb, var(--blue) 18%, var(--blue-soft)); }
.send-btn:active { transform: scale(.95); }
.send-btn .ic { width: 20px; height: 20px; }
.search-suggestions { margin-top: 32px; text-align: center; }
.search-suggestions > .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 13px auto 0; max-width: 600px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text-2); font-size: 12px; min-height: 38px; transition: background .2s, border-color .2s; }
.chip .ic { width: 13px; height: 13px; color: #91a1bd; }
.chip:hover { background: var(--blue-soft); border-color: var(--homework-line); }
.search-scope { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--text-3); font-size: 11px; margin: 28px 0; }
.search-scope .ic { width: 11px; height: 11px; }
.thinking { display: flex; gap: 20px; padding: 26px; margin-top: 28px; }
.thinking .assistant-mark { width: 35px; height: 35px; }
.is-thinking { animation: iris-think 8s linear infinite; }
.thinking-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.skeleton { height: 8px; background: linear-gradient(90deg, var(--surface-2) 20%, var(--surface-3) 50%, var(--surface-2) 80%); background-size: 200% 100%; border-radius: 5px; animation: shimmer 2s ease infinite; }
.skeleton:nth-child(2) { width: 86%; }
.skeleton:nth-child(3) { width: 60%; }
.thinking-lines > span { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.ai-answer { padding: 28px; border: 1px solid var(--homework-line); border-radius: 22px; background: var(--surface); animation: appear .35s var(--ease); }
.ai-answer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.ai-answer-head .assistant-mark { width: 35px; height: 35px; }
.ai-answer-title { display: flex; flex-direction: column; }
.ai-answer-title strong { font-size: 14px; font-weight: 700; }
.ai-answer-title span { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ai-answer-body { font-size: 14px; line-height: 1.95; }
.ai-answer-body p + p { margin-top: 11px; }
.ai-answer-body strong { color: var(--text); font-weight: 750; }
.sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.source-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 11px; color: var(--text-2); }
.source-chip:hover { border-color: var(--hairline-strong); background: var(--surface-2); }
.source-chip .ic { width: 12px; height: 12px; }
.source-chip b { font-weight: 600; }
.ai-foot { display: flex; gap: 6px; align-items: flex-start; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--text-3); line-height: 1.8; }
.ai-foot .ic { width: 12px; height: 12px; margin-top: 2px; }
.results-head { margin: 30px 0 17px; }
.empty-state, .empty-search { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 60px 24px; color: var(--text-2); }
.empty-state > .ic, .empty-search > .ic { width: 34px; height: 34px; color: var(--tint-text); margin-bottom: 12px; stroke-width: 1.3; }
.empty-state h3, .empty-search h2 { color: var(--text); }
.empty-state p, .empty-search p { font-size: 13px; max-width: 360px; }

/* Materials and documents */
.filter-row { display: flex; margin-bottom: 25px; }
.filter-input { display: flex; align-items: center; gap: 9px; min-height: 43px; width: 320px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 8px 13px; }
.filter-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.filter-input .ic { width: 16px; height: 16px; color: var(--text-3); }
.filter-input input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 13px; }
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.subject-card { display: flex; align-items: center; gap: 13px; padding: 20px 17px; min-height: 96px; border: 1px solid var(--hairline); border-radius: 17px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.subject-card:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.subject-card.is-empty { background: var(--surface); }
.subject-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 6px; }
.subject-name { font-size: 13px; font-weight: 700; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.subject-meta { font-size: 10px; color: var(--text-3); }
.subject-card > .ic { width: 14px; height: 14px; color: var(--text-3); }
.subject-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 33px; }
.subject-hero > .subject-icon { width: 62px; height: 62px; border-radius: 18px; }
.subject-hero > .subject-icon .ic { width: 29px; height: 29px; }
.subject-hero h1 { font-size: 31px; letter-spacing: -1px; font-weight: 650; line-height: 1.4; }
.subject-hero p { font-size: 13px; color: var(--text-2); margin-top: 5px; }
.search-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.entry-list { display: flex; flex-direction: column; gap: 10px; }
.entry-row { display: flex; align-items: center; gap: 17px; padding: 19px 20px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); transition: border-color .2s, background .2s; }
.entry-row:hover { border-color: var(--hairline-strong); background: color-mix(in srgb, var(--surface-2) 25%, var(--surface)); }
.entry-date { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 43px; height: 49px; border-radius: 11px; background: var(--surface-2); color: var(--text-2); flex: none; }
.entry-date-day { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.entry-date-mon { font-size: 10px; }
.entry-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.entry-title { font-size: 14px; font-weight: 650; line-height: 1.7; margin-bottom: 8px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text-3); font-size: 11px; }
.entry-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.entry-meta .badge { font-size: 10px; }
.entry-meta .ic { width: 11px; height: 11px; }
.entry-thumb { display: grid; place-items: center; width: 42px; height: 50px; flex: none; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 7px; }
.entry-thumb::after { content: ""; width: 21px; height: 25px; background: repeating-linear-gradient(transparent 0 4px, var(--hairline-strong) 4px 5px); transform: rotate(-8deg); opacity: .7; }
.entry-chevron { display: flex; color: var(--text-3); }
.entry-chevron .ic { width: 15px; height: 15px; }
.article { max-width: 880px; margin: 0 auto; }
.article-card { padding: 36px 40px; }
.article-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.article-date { font-size: 12px; color: var(--text-3); margin-left: auto; }
.article-title { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -1.1px; line-height: 1.4; }
.article-byline { display: flex; align-items: center; gap: 10px; margin: 23px 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.article-byline .avatar { width: 34px; height: 34px; font-size: 11px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; }
.byline-text b { font-size: 12px; font-weight: 650; }
.byline-text > span { font-size: 11px; color: var(--text-3); }
.article-text { font-size: 14px; line-height: 2.05; color: var(--text-2); }
.article-text p + p { margin-top: 17px; }
.article-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.photo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 175px; padding: 22px; border-radius: 14px; border: 1px dashed var(--hairline-strong); background: var(--surface-2); color: var(--text-3); font-size: 12px; }
.photo .ic { width: 23px; height: 23px; stroke-width: 1.3; margin-bottom: 3px; }
.photo small { font-size: 10px; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 23px; margin-top: 30px; }
.related { margin-top: 40px; }

/* Timetable */
.week-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; }
.week-label { font-size: 14px; letter-spacing: -.3px; font-weight: 650; padding: 0 5px; }
.week-nav { display: flex; }
.week-bar .icon-btn { width: 33px; height: 33px; border: 1px solid var(--hairline); background: var(--surface); border-radius: 10px; }
.week-bar > .btn { margin-left: 8px; }
.week-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.day-col { min-width: 0; }
.day-head { display: flex; flex-direction: column; align-items: center; padding: 14px 10px 18px; gap: 4px; }
.day-name { font-size: 12px; color: var(--text-3); }
.day-date { display: grid; place-items: center; width: 34px; height: 34px; font-size: 19px; font-weight: 600; border-radius: 11px; }
.is-today .day-date { background: var(--blue-soft); color: var(--blue); }
.is-today .day-name { color: var(--blue); }
.day-lessons { display: flex; flex-direction: column; gap: 7px; }
.lesson { display: flex; flex-direction: column; gap: 7px; min-height: 82px; border-radius: 12px; padding: 12px; background: hsl(var(--h) 40% 96% / .78); border: 1px solid var(--glass-highlight); box-shadow: 0 0 0 1px var(--glass-rim); position: relative; }
[data-theme="dark"] .lesson { background: hsl(var(--h) 17% 24% / .7); }
.lesson::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 2px; border-radius: 2px; background: hsl(var(--h) 22% 76%); }
.lesson-time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lesson-subject { font-size: 12px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.lesson.is-long { min-height: 350px; background: color-mix(in srgb, var(--tint-bg) 60%, var(--surface)); }
.lesson-long-note { font-size: 11px; color: var(--text-3); margin-top: auto; }
.empty-day { color: var(--text-3); font-size: 13px; padding: 30px 10px; text-align: center; }
.day-chips, .schedule-mobile { display: none; }
.assistant-band { display: flex; align-items: center; gap: 16px; padding: 20px; }
.assistant-band-text { flex: 1; }
.assistant-band-text h3 { font-size: 14px; margin-bottom: 5px; }
.assistant-band-text p { color: var(--text-2); font-size: 12px; line-height: 1.8; }

/* Group and preferences */
.group-hero { display: flex; align-items: flex-start; gap: 25px; padding: 10px 0 37px; }
.group-hero > .group-monogram { width: 90px; height: 90px; border-radius: 25px; font-size: 20px; font-weight: 600; letter-spacing: -1px; }
.group-hero-text { flex: 1; min-width: 0; }
.group-hero h1 { font-size: 37px; line-height: 1.25; font-weight: 600; letter-spacing: -1.4px; margin: 8px 0 10px; }
.group-hero-text > p:not(.eyebrow) { font-size: 13px; color: var(--text-2); max-width: 420px; line-height: 1.9; }
.group-facts { display: flex; gap: 7px; margin-top: 14px; }
.group-facts .badge { padding: 4px 8px; font-size: 11px; }
.group-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 24px; border-bottom: 1px solid var(--hairline); }
.panel-head h2 { font-size: 14px; letter-spacing: -.2px; }
.panel-head > span { font-size: 11px; color: var(--text-3); }
.role-card { display: flex; align-items: center; gap: 12px; padding: 25px 24px 20px; }
.role-card > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.role-card b { font-size: 14px; font-weight: 700; }
.role-card > div > span { font-size: 11px; color: var(--text-2); }
.role-card > .ic { width: 17px; height: 17px; color: var(--text-3); }
.role-note { margin: 0 24px 23px; font-size: 12px; line-height: 1.95; color: var(--text-2); }
.role-note > b { font-weight: 650; }
.role-scope { display: flex; gap: 6px; align-items: flex-start; margin-top: 15px; font-size: 11px; color: var(--text-3); }
.role-scope .ic { width: 12px; height: 12px; margin-top: 3px; }
.role-action { margin: 0 24px 24px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.pref-label { display: flex; flex-direction: column; gap: 3px; }
.pref-label > b { font-size: 13px; font-weight: 650; }
.pref-label > span { font-size: 11px; color: var(--text-3); }
.pref-row .segmented { width: 100%; display: flex; }
.pref-row .segmented button { flex: 1; }
.group-shortcuts { padding: 7px 24px; }
.group-shortcut { display: flex; align-items: center; gap: 13px; padding: 19px 0; }
.group-shortcut + .group-shortcut { border-top: 1px solid var(--hairline); }
.group-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.group-shortcut b { display: block; font-size: 13px; font-weight: 650; }
.group-shortcut small { display: block; font-size: 11px; color: var(--text-3); margin-top: 5px; }
.group-shortcut > .ic { width: 14px; height: 14px; color: var(--text-3); }
.group-shortcut:hover b { color: var(--blue); }
.group-privacy { display: flex; gap: 6px; color: var(--text-3); font-size: 11px; line-height: 1.9; border-top: 1px solid var(--hairline); padding: 18px 24px; }
.group-privacy .ic { width: 12px; height: 12px; margin-top: 3px; }

/* Sheets and transient feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: center; padding: 30px; background: #29334629; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-in .2s ease; }
.sheet { width: min(540px, 100%); max-height: min(86dvh, 860px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface-solid); box-shadow: var(--shadow-lg); animation: sheet-in .35s var(--ease); }
.sheet-head { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 2; padding: 20px 24px 16px; background: var(--surface-solid); border-bottom: 1px solid var(--hairline); }
.sheet-head h2 { font-size: 16px; font-weight: 650; }
.sheet-head .icon-btn { margin-left: auto; width: 34px; height: 34px; background: var(--surface-2); border-radius: 50%; }
.sheet-body { padding: 23px 24px calc(24px + env(safe-area-inset-bottom)); }
.sheet-body-actions { padding-bottom: 0; }
.sheet-actions { position: sticky; bottom: 0; display: flex; gap: 10px; margin: 24px -24px 0; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--surface-solid); }
.sheet-actions .btn { flex: 1; }
.add-options { display: flex; flex-direction: column; gap: 10px; }
.add-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 18px; border: 1px solid var(--hairline); border-radius: 15px; background: transparent; text-align: left; transition: background .2s; }
.add-option:hover { background: var(--surface-2); }
.add-option > span:nth-child(2) { flex: 1; }
.add-option b { display: block; font-size: 14px; font-weight: 650; }
.add-option span span { display: block; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.add-option > .ic { width: 15px; height: 15px; color: var(--text-3); }
.import-card { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 17px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px; }
.import-card > div { flex: 1; min-width: 100px; }
.import-card b { display: block; font-size: 13px; }
.import-card span:not(.assistant-mark) { display: block; font-size: 11px; color: var(--text-2); margin-top: 4px; }
.import-card .assistant-mark { width: 30px; height: 30px; }
.edit-table { margin-top: 22px; }
.edit-day + .edit-day { margin-top: 18px; }
.edit-day-name { color: var(--text-3); font-size: 11px; font-weight: 750; margin-bottom: 8px; }
.edit-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 5px; border-radius: 9px; background: var(--surface-2); font-size: 12px; }
.edit-row .time { width: 82px; flex: none; color: var(--text-3); font-size: 11px; }
.edit-row .name { flex: 1; }
.edit-row .ic { width: 13px; height: 13px; color: var(--text-3); }
.toast-root { position: fixed; left: 50%; bottom: calc(25px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: max-content; max-width: min(90vw, 460px); }
.toast { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.8; padding: 13px 20px; box-shadow: var(--shadow-lg); animation: sheet-in .3s var(--ease); }
.tabbar { display: none; }
.card:not(.homework-card), .panel, .subject-card, .today-note-list, .entry-row { border-color: var(--glass-rim); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 1px 0 0 #ffffff66, 0 8px 24px -16px #456b853b; }

/* Responsive layout: mobile is the primary product surface. */
@media (min-width: 1600px) {
  .view { padding-top: 55px; }
  .home-hero { margin-bottom: 40px; }
  .home-focus { gap: 36px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 218px; padding-inline: 16px; }
  .app-main { margin-left: 218px; }
  .topbar { padding-inline: 32px; }
  .view { padding-inline: 32px; }
  .home-focus { grid-template-columns: 1fr 1.08fr; gap: 23px; }
  .homework-card { padding-inline: 20px; }
  .homework-card-top { flex-wrap: wrap; row-gap: 8px; }
  .today-note { padding-inline: 16px; gap: 10px; }
  .today-note > .subject-icon { width: 36px; height: 36px; border-radius: 11px; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-head-row { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .screen-head-row > .segmented { margin-bottom: 0; }
  .group-grid { gap: 16px; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .sidebar { width: 195px; padding-inline: 13px; }
  .app-main { margin-left: 195px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 18px; }
  .brand-icon { width: 34px; height: 34px; }
  .side-label { font-size: 10px; margin-inline: 12px; }
  .topbar { padding-inline: 25px; }
  .view { padding-inline: 25px; }
  .home-focus { grid-template-columns: 1fr; gap: 27px; }
  .homework-card { min-height: 260px; }
  .today-note { min-height: 120px; padding: 20px; }
  .group-grid { grid-template-columns: 1fr; }
  .week-grid { gap: 5px; }
  .lesson { padding: 9px 7px; }
  .lesson-time { font-size: 10px; }
  .lesson-subject { font-size: 11px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { position: sticky; top: 0; height: calc(69px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 24px 0; background: color-mix(in srgb, var(--bg) 83%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 35; }
  .topbar-brand { display: flex; }
  .topbar-brand { min-height: 44px; }
  .topbar .theme-btn { width: 42px; height: 42px; }
  .avatar-btn { position: relative; }
  .avatar-btn::after { content: ""; position: absolute; inset: -5px; }
  .topbar-left { gap: 0; }
  .topbar-right { gap: 9px; }
  .topbar .group-pill { display: none; }
  .search-shortcut { display: none; }
  .view { padding: 32px 24px calc(128px + env(safe-area-inset-bottom)); max-width: 650px; }
  .large-title { font-size: 34px; letter-spacing: -1.5px; }
  .home-hero { margin-bottom: 28px; padding-top: 2px; }
  .home-hero .large-title { font-size: 38px; margin-top: 14px; margin-bottom: 10px; }
  .date-eyebrow { font-size: 10px; letter-spacing: .85px; }
  .lede { font-size: 13px; }
  .ai-launcher { min-height: 111px; padding: 18px 19px; gap: 14px; border-radius: 21px; margin-bottom: 32px; }
  .launcher-art { width: 44px; height: 48px; }
  .launcher-art .assistant-mark { width: 46px; height: 46px; }
  .ai-launcher-copy { gap: 3px; }
  .ai-launcher-kicker { font-size: 9px; letter-spacing: 1.2px; }
  .ai-launcher-copy b { font-size: 14px; letter-spacing: -.3px; }
  .ai-launcher-copy small { font-size: 11px; line-height: 1.7; max-width: 210px; }
  .ai-launcher-arrow { width: 29px; height: 29px; }
  .ai-launcher-arrow .ic { width: 15px; height: 15px; }
  .home-focus { grid-template-columns: 1fr; gap: 29px; }
  .section-head { margin-bottom: 16px; min-height: 40px; }
  h2, .section-head h2 { font-size: 16px; }
  .section-head .eyebrow { font-size: 9px; margin-bottom: 6px; letter-spacing: 1.1px; }
  .homework-card { min-height: 256px; padding: 22px 22px 16px; border-radius: 21px; }
  .homework-card-top { margin-bottom: 23px; flex-wrap: nowrap; }
  .homework-card-label { font-size: 9px; }
  .homework-card h3 { font-size: 25px; margin-bottom: 8px; }
  .homework-card > p { max-width: 290px; margin-bottom: 17px; }
  .today-note { min-height: 127px; padding: 21px 18px; }
  .today-note > .subject-icon { width: 39px; height: 39px; }
  .today-note-copy b { font-size: 14px; }
  .today-note-copy small { font-size: 10px; }
  .today-note-subject { font-size: 11px; }
  .screen-head { margin-bottom: 27px; }
  .screen-head-row { gap: 20px; flex-direction: column; align-items: stretch; }
  .screen-head-row > .segmented { align-self: flex-start; }
  .screen-head-row > .btn { align-self: flex-start; }
  .filter-row { margin-bottom: 18px; }
  .filter-input { width: 100%; min-height: 46px; }
  .filter-input input { font-size: 14px; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subject-card { position: relative; flex-direction: column; align-items: flex-start; gap: 15px; padding: 18px 15px 16px; min-height: 155px; border-radius: 17px; }
  .subject-card > .ic { position: absolute; top: 24px; right: 14px; width: 13px; }
  .subject-card .subject-icon { width: 37px; height: 37px; border-radius: 11px; }
  .subject-card .subject-icon .ic { width: 19px; height: 19px; }
  .subject-info { flex: 1; gap: 6px; justify-content: space-between; }
  .subject-name { font-size: 12px; line-height: 1.65; }
  .subject-meta { font-size: 10px; }
  .subject-hero { gap: 14px; margin-bottom: 26px; }
  .subject-hero > .subject-icon { width: 54px; height: 54px; border-radius: 16px; }
  .subject-hero h1 { font-size: 25px; letter-spacing: -.8px; }
  .subject-hero p { font-size: 12px; }
  .search-toolbar { flex-wrap: wrap; gap: 12px; }
  .segmented button { min-height: 36px; font-size: 12px; padding-inline: 14px; }
  .back-link { margin-bottom: 22px; }
  .entry-row { padding: 17px 14px; gap: 12px; }
  .entry-title { font-size: 13px; line-height: 1.7; }
  .entry-meta { font-size: 10px; gap: 5px; }
  .entry-thumb { display: none; }
  .entry-date { width: 37px; height: 45px; border-radius: 10px; }
  .entry-date-day { font-size: 18px; }
  .entry-chevron .ic { width: 13px; }
  .article-card { padding: 24px 20px; border-radius: 20px; }
  .article-head { gap: 6px; margin-bottom: 19px; }
  .article-head .badge { font-size: 10px; }
  .article-date { font-size: 11px; }
  .article-title { font-size: 25px; letter-spacing: -.8px; }
  .article-text { font-size: 14px; }
  .article-byline { margin-block: 21px 25px; padding-bottom: 22px; }
  .article-actions { gap: 8px; }
  .article-actions .btn { min-height: 40px; font-size: 11px; padding-inline: 10px; }
  .article-photos { gap: 9px; }
  .photo { min-height: 140px; padding: 14px 8px; font-size: 11px; }
  .photo small { font-size: 9px; }
  .related { margin-top: 30px; }
  .week-bar { margin-top: -5px; margin-bottom: 24px; }
  .week-label { font-size: 14px; }
  .week-grid { display: none; }
  .day-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 25px; }
  .day-chip { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 6px; border: 1px solid var(--hairline); border-radius: 15px; background: var(--surface); color: var(--text-2); }
  .day-chip > span { font-size: 11px; }
  .day-chip b { font-size: 19px; font-weight: 600; line-height: 1.3; }
  .day-chip.is-on { background: var(--blue-soft); color: var(--blue); border-color: var(--homework-line); }
  .schedule-mobile { display: block; }
  .schedule-mobile .day-head { border-bottom: 1px solid var(--hairline); margin-bottom: 14px; }
  .schedule-mobile .day-name { font-size: 12px; }
  .schedule-mobile .fine { font-size: 11px; }
  .schedule-mobile .day-lessons { gap: 10px; }
  .schedule-mobile .lesson { min-height: 77px; padding: 15px 17px !important; gap: 5px; }
  .schedule-mobile .lesson-subject { font-size: 14px !important; }
  .schedule-mobile .lesson-time { font-size: 12px; }
  .schedule-mobile .lesson::before { top: 17px; bottom: 17px; width: 3px; }
  .assistant-band { flex-wrap: wrap; gap: 12px; }
  .assistant-band-text { min-width: 180px; }
  .assistant-band > .assistant-mark { width: 32px; height: 32px; }
  .assistant-band > .btn { margin-left: 44px; }
  .group-hero { gap: 17px; padding: 4px 0 28px; }
  .group-hero > .group-monogram { width: 68px; height: 68px; border-radius: 20px; font-size: 16px; }
  .group-hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .group-hero h1 { font-size: 30px; margin: 5px 0 9px; }
  .group-hero-text > p:not(.eyebrow) { font-size: 12px; line-height: 1.9; }
  .group-grid { grid-template-columns: 1fr; gap: 20px; }
  .panel-head { padding: 20px; }
  .role-card { padding: 23px 20px 18px; }
  .role-note { margin-inline: 20px; }
  .pref-row { padding: 20px; }
  .group-shortcuts { padding-inline: 20px; }
  .group-privacy { padding-inline: 20px; }
  .search-layout { padding-top: 0; }
  .ai-search-hero { padding: 15px 0 33px; }
  .assistant-stage { width: 110px; height: 110px; margin-bottom: 25px; }
  .assistant-mark-lg { width: 91px; height: 91px; }
  .assistant-stage::before { inset: -25px -70px; }
  .ai-search-hero .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
  .ai-search-hero h1 { font-size: 31px; letter-spacing: -1.3px; margin-top: 12px; }
  .ai-search-hero .lede { font-size: 12px; line-height: 1.95; }
  .ai-search { padding: 7px 8px 7px 16px; min-height: 62px; gap: 10px; border-radius: 19px; }
  .ai-search > .ic { width: 17px; height: 17px; }
  .ai-input { font-size: 16px; height: 44px; letter-spacing: -.4px; }
  .ai-input::placeholder { font-size: 13px; letter-spacing: 0; }
  .send-btn { width: 42px; height: 42px; border-radius: 13px; }
  .search-suggestions { margin-top: 30px; }
  .chips { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
  .chip { padding: 13px 15px; font-size: 12px; border-radius: 12px; justify-content: flex-start; gap: 10px; }
  .chip .ic { width: 14px; height: 14px; }
  .chip::after { content: "↗"; margin-left: auto; color: var(--text-3); font-size: 14px; }
  .search-scope { font-size: 10px; margin: 24px 0; }
  .ai-answer { padding: 22px 19px; border-radius: 20px; }
  .ai-answer-body { font-size: 13px; }
  .source-chip { font-size: 10px; padding: 7px 8px; }
  .ai-foot { font-size: 10px; }
  .thinking { padding: 22px; }
  .modal-backdrop { align-items: flex-end; padding: 12px; }
  .sheet { max-height: 88dvh; border-radius: 25px; }
  .sheet-head { padding: 18px 20px 15px; }
  .sheet-body { padding-inline: 20px; }
  .sheet-actions { margin-inline: -20px; padding-inline: 20px; }
  .sheet-head h2 { font-size: 15px; }
  .add-option { padding: 15px; }
  .add-option b { font-size: 13px; }
  .add-option span span { font-size: 11px; }
  .toast-root { bottom: calc(108px + env(safe-area-inset-bottom)); }

  /* Translucent glass, diffuse shadow and a specular edge over scrolling content. */
  .tabbar { position: fixed; isolation: isolate; z-index: 50; bottom: calc(15px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr .9fr 1fr 1fr; align-items: center; width: min(calc(100% - 32px), 430px); height: 71px; padding: 6px 8px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); backdrop-filter: blur(26px) saturate(1.08); -webkit-backdrop-filter: blur(26px) saturate(1.08); box-shadow: 0 8px 30px -8px #344b7433, 0 1px 3px #344b7408, inset 0 1px 1px #ffffffa8, inset 0 -1px 1px #ffffff29; }
  .tabbar::before { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(125deg, #ffffff32, transparent 30%, transparent 70%, #ffffff1c); }
  .tab-item { position: relative; height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 20px; color: var(--text-2); transition: color .2s, background .25s; }
  .tab-item .ic { width: 21px; height: 21px; stroke-width: 1.55; }
  .tab-item > span:not(.assistant-mark) { font-size: 9px; font-weight: 650; line-height: 1.3; }
  .tab-item.is-active { color: var(--blue); background: color-mix(in srgb, var(--blue-soft) 70%, transparent); }
  .tab-item:active { transform: scale(.95); }
  .tab-item-ai { margin: 0 3px; border-radius: 20px; }
  .tab-item-ai .assistant-mark { width: 37px; height: 37px; transition: transform .5s var(--ease); }
  .tab-item-ai:hover .assistant-mark, .tab-item-ai.is-active .assistant-mark { transform: rotate(15deg); }
  .tab-item-ai.is-active { background: color-mix(in srgb, var(--blue-soft) 85%, transparent); }
  [data-theme="dark"] .tabbar { box-shadow: 0 8px 30px -8px #00000065, inset 0 1px 1px #cbd7ef14, inset 0 -1px 1px #00000020; }
  [data-theme="dark"] .tabbar::before { opacity: .15; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 20px; }
  .view { padding-inline: 20px; padding-top: 28px; }
  .home-hero .large-title { font-size: 35px; }
  .ai-launcher { padding-inline: 15px; gap: 11px; }
  .ai-launcher-copy b { font-size: 14px; }
  .ai-launcher-copy small { font-size: 10px; }
  .ai-launcher-arrow { width: 25px; height: 25px; }
  .homework-card { padding-inline: 20px; }
  .today-note { padding-inline: 16px; gap: 10px; }
  .today-note-copy b { font-size: 13px; }
  .today-note > .ic { width: 12px; }
  .subject-card { padding-inline: 13px; }
  .subject-name { font-size: 11px; }
  .article-card { padding-inline: 17px; }
  .article-date { margin-left: 0; }
  .group-hero { gap: 13px; }
  .group-hero > .group-monogram { width: 57px; height: 57px; border-radius: 17px; font-size: 14px; }
  .ai-search-hero h1 { font-size: 28px; }
  .tabbar { width: calc(100% - 28px); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar, .ai-search, .topbar { background: var(--surface); }
}
@media (hover: none) {
  .subject-card:hover, .homework-card:hover { transform: none; }
}
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes ambient { from { transform: translate(-7px, 3px) rotate(-8deg); opacity: .65; } to { transform: translate(7px, -3px) rotate(8deg); opacity: 1; } }
@keyframes iris-breathe { 0%, 100% { transform: rotate(-7deg) scale(.97); } 50% { transform: rotate(7deg) scale(1.02); } }
@keyframes iris-think { to { transform: rotate(180deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
