@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: "Unbounded";
  src: url("/static/fonts/unbounded-var-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("/static/fonts/manrope-var-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-var-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Kazakh language pair from the brandbook: Geologica + Golos Text + IBM Plex Mono. */
@font-face {
  font-family: "Geologica";
  src: url("/static/fonts/geologica-400-900-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geologica";
  src: url("/static/fonts/geologica-400-900-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("/static/fonts/geologica-400-900-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: "Golos Text";
  src: url("/static/fonts/golos-text-400-800-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/golos-text-400-800-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/golos-text-400-800-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-400-cyrillic-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-500-cyrillic-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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;
}

/* Light theme is the default. Dark theme is explicit via html[data-theme="dark"]. */
:root {
  color-scheme: light;
  --bg: #f2f7ff;
  --bg-soft: #ffffff;
  --paper: #ffffff;
  --surface-2: #f7faff;
  --surface-3: #eaf4ff;
  --ink: #0a1a3a;
  --ink-soft: #17345f;
  --muted: #58709a;
  --blue: #1b6fd6;
  --blue-deep: #155ab2;
  --sky: #5cc8ff;
  --sky-soft: #e8f6ff;
  --green: #087a55;
  --green-soft: #e9f8f1;
  --yellow: #9a6a00;
  --line: #d6e3f5;
  --hairline: #d6e3f5;
  --shadow-hard: 5px 5px 0 #d7e8fb;
  --shadow-card: 0 10px 28px rgba(10, 26, 58, .08);
  --grad: linear-gradient(90deg, #1b6fd6 0%, #5cc8ff 100%);
  --topbar: rgba(255, 255, 255, .92);
  --body-glow-1: rgba(92, 200, 255, .18);
  --body-glow-2: rgba(27, 111, 214, .10);
  --dot-color: rgba(27, 111, 214, .12);
  --hero-bg: linear-gradient(135deg, #edf7ff 0%, #dbeaff 100%);
  --hero-ink: #0a1a3a;
  --hero-muted: #3c5b85;
  --hero-eyebrow: #1b6fd6;
  --hero-glow: rgba(27, 111, 214, .18);
  --hero-ring: rgba(27, 111, 214, .18);
  --notice-bg: #eff8ff;
  --notice-quiet-bg: #f7faff;
  --hint-bg: #f7faff;
  --input-bg: #ffffff;
  --placeholder: #7f91b2;
  --table-head: #f1f7ff;
  --row-border: #e3eefb;
  --success-border: #b7e5d4;
  --error-bg: #fff1f0;
  --error-text: #b42318;
  --done-bg: linear-gradient(145deg, #ffffff, #ecfaf4);
  --done-border: #9bd9c2;
  --accent-border: #9cc9f3;
  --accent-glow: rgba(27, 111, 214, .12);
  --button-shadow: 3px 3px 0 #d7e8fb;
  --on-action: #ffffff;
  --link-hover: #155ab2;
  --theme-icon: "◐";
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1a3a;
  --bg-soft: #061129;
  --paper: #061129;
  --surface-2: #081b38;
  --surface-3: #102a52;
  --ink: #eef3ff;
  --ink-soft: #d9e6ff;
  --muted: #a9b8dc;
  --blue: #5cc8ff;
  --blue-deep: #5cc8ff;
  --sky: #5cc8ff;
  --sky-soft: #102a52;
  --green: #4fe0a0;
  --green-soft: #0b332a;
  --yellow: #ffc24b;
  --line: #22407e;
  --hairline: #22407e;
  --shadow-hard: 4px 4px 0 #061129;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .24);
  --grad: linear-gradient(90deg, #5cc8ff 0%, #a8e5ff 100%);
  --topbar: rgba(6, 17, 41, .9);
  --body-glow-1: rgba(92, 200, 255, .11);
  --body-glow-2: rgba(34, 64, 126, .5);
  --dot-color: rgba(169, 184, 220, .12);
  --hero-bg: #061129;
  --hero-ink: #eef3ff;
  --hero-muted: #a9b8dc;
  --hero-eyebrow: #5cc8ff;
  --hero-glow: rgba(92, 200, 255, .24);
  --hero-ring: rgba(92, 200, 255, .22);
  --notice-bg: #0b2547;
  --notice-quiet-bg: #081b38;
  --hint-bg: #081b38;
  --input-bg: #061129;
  --placeholder: #8fa3c9;
  --table-head: #081b38;
  --row-border: rgba(34, 64, 126, .55);
  --success-border: #2b6b58;
  --error-bg: #3a1525;
  --error-text: #ff9b9b;
  --done-bg: linear-gradient(145deg, #061129, #0b332a);
  --done-border: #2b6b58;
  --accent-border: #2c5d96;
  --accent-glow: rgba(92, 200, 255, .18);
  --button-shadow: 3px 3px 0 #061129;
  --on-action: #061129;
  --link-hover: #a8e5ff;
}

/* Brandbook KZ pair overrides only the Kazakh language. */
html[lang="kk"] {
  --display: "Geologica", "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, var(--body-glow-1), transparent 32rem),
    radial-gradient(circle at 92% 5%, var(--body-glow-2), transparent 30rem),
    var(--bg);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 85%);
}
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
code, kbd, pre { font-family: var(--mono); font-size: .86em; color: var(--blue); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: .55rem .8rem; border-radius: 6px; }
.skip-link:focus { left: 8px; color: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar__inner { min-height: 78px; display: flex; align-items: center; gap: 1rem; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar__right { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__logo { width: 188px; height: auto; display: block; }
.brand__logo--dark { display: none; }
html[data-theme="dark"] .brand__logo--light { display: none; }
html[data-theme="dark"] .brand__logo--dark { display: block; }
.brand__product { font-family: var(--display); font-size: .58rem; color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .5rem; letter-spacing: .1em; }
.nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; font-weight: 600; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav__user { color: var(--muted); font-weight: 500; }
.inline-form { display: inline; margin: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.lang-switch__item { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; padding: .2rem .42rem; border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 800; line-height: 1.2; text-decoration: none; letter-spacing: .02em; }
.lang-switch__item:hover { color: var(--blue); }
.lang-switch__item.is-active { background: var(--blue); color: var(--on-action); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); border-radius: 999px; padding: .38rem .7rem; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle__icon { font-family: var(--display); font-size: .9rem; line-height: 1; color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line); border-radius: 9px; padding: .62rem 1rem; cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--blue); color: var(--on-action); border-color: var(--blue); box-shadow: var(--button-shadow); }
.button--primary:hover { background: var(--blue-deep); color: var(--on-action); box-shadow: 4px 4px 0 var(--line); }
.button--light { background: var(--blue); color: var(--on-action); border-color: var(--blue); }
.button--light:hover { background: var(--blue-deep); color: var(--on-action); }
.button--quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.button--quiet:hover { color: var(--ink); border-color: var(--blue); }
.button--small { padding: .38rem .7rem; font-size: .82rem; }
.button--wide { width: 100%; }
.page { padding-block: 2.2rem 4rem; }
.flash { border-bottom: 1px solid var(--line); padding: .7rem 0; font-weight: 600; }
.flash--success { background: var(--green-soft); color: var(--green); }
.flash--error { background: var(--error-bg); color: var(--error-text); }
.flash--info { background: var(--sky-soft); color: var(--ink-soft); }
.eyebrow { margin: 0 0 .55rem; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; margin: 0; color: var(--ink); }
h1.display { font-size: clamp(2rem, 5vw, 3.7rem); }
h2.display { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.35rem; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.3rem; align-items: stretch; margin-bottom: 1.4rem; }
.hero__main { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 4vw, 2.6rem); position: relative; overflow: hidden; box-shadow: var(--shadow-hard); }
.hero__main::after { content: ""; position: absolute; right: -100px; top: -120px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, var(--hero-glow), transparent 68%); }
.hero__main .eyebrow { color: var(--hero-eyebrow); }
.hero__main .display { color: var(--hero-ink); position: relative; z-index: 1; }
.hero__main p { color: var(--hero-muted); max-width: 55ch; position: relative; z-index: 1; }
.hero__side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.progress { height: 13px; background: var(--line); border-radius: 999px; border: 1px solid var(--line); overflow: hidden; }
.progress__bar { height: 100%; width: var(--progress, 0%); background: var(--grad); transition: width .4s ease; }
.metric { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dashed var(--line); padding: .55rem 0; }
.metric:last-child { border-bottom: 0; }
.metric strong { font-family: var(--display); font-size: 1.25rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.week-card { position: relative; display: flex; flex-direction: column; gap: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; min-height: 245px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.week-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--blue), 0 14px 30px rgba(0, 0, 0, .12); }
.week-card--done { background: var(--done-bg); border-color: var(--done-border); }
.week-card__top { display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.week-card__num { font-family: var(--display); font-size: .75rem; color: var(--blue); letter-spacing: .08em; }
.week-card h3 { font-family: var(--display); font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; }
.week-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.week-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .28rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .22rem .55rem; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.pill--done { background: var(--green-soft); color: var(--green); border-color: var(--done-border); }
.pill--open { background: var(--sky-soft); color: var(--blue); }
.pill--muted { background: var(--surface-3); color: var(--muted); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.week-hero { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 1.4rem; }
.week-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.materials { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.materials__label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.lab-layout { display: grid; grid-template-columns: 1fr .75fr; gap: 1.2rem; align-items: start; }
.lab-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.4rem; }
.lab-panel--accent { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-glow), 0 14px 30px rgba(0, 0, 0, .12); }
.steps { white-space: pre-line; color: var(--ink-soft); font-size: .94rem; line-height: 1.7; }
.flag-form { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--input-bg); padding: .7rem .8rem; color: var(--ink); }
.input::placeholder { color: var(--placeholder); }
.input:focus { outline: 3px solid var(--accent-glow); border-color: var(--blue); }
input[type="checkbox"] { accent-color: var(--blue); }
.file-picker { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0; }
.file-picker__input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-picker__button { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-3); color: var(--ink); padding: .48rem .7rem; font-weight: 700; cursor: pointer; }
.file-picker__input:focus-visible + .file-picker__button { outline: 3px solid var(--blue); outline-offset: 2px; }
.file-picker__name { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success-box { background: var(--green-soft); border: 1px solid var(--success-border); border-radius: var(--radius-sm); padding: 1rem; color: var(--green); font-weight: 700; }
.notice { border-left: 4px solid var(--blue); background: var(--notice-bg); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); }
.notice--quiet { margin-top: 1rem; border-left-color: var(--line); background: var(--notice-quiet-bg); }
.notice + .notice { margin-top: .8rem; }
.hint-box { margin-top: .8rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; background: var(--hint-bg); }
.hint-box summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.hint-box .steps { margin-top: .5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.announcement-list { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.announcement { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.announcement h2 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .35rem; letter-spacing: -.02em; }
.announcement__body { color: var(--ink-soft); white-space: pre-line; }
.announcement-mini { border-top: 1px dashed var(--line); margin-top: .8rem; padding-top: .7rem; }
.announcement-mini form { display: inline; }
.link-button { border: 0; background: transparent; color: var(--muted); padding: 0; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.check-line { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.stat strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .7rem .65rem; text-align: left; border-bottom: 1px solid var(--row-border); vertical-align: middle; }
th { background: var(--table-head); color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.check { color: var(--green); font-weight: 900; }
.dash { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.admin-left { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.textarea { min-height: 100px; resize: vertical; }
.footer { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; color: var(--muted); font-size: .8rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.login-page { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: stretch; min-height: 62vh; }
.login-hero { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(2rem, 6vw, 4rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; box-shadow: var(--shadow-hard); }
.login-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid var(--hero-ring); border-radius: 50%; right: -170px; bottom: -190px; }
.login-hero .display { color: var(--hero-ink); font-size: clamp(2rem, 5vw, 4rem); }
.login-hero p { color: var(--hero-muted); max-width: 46ch; }
.login-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-card); }
.login-form h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .35rem; color: var(--ink); }
.login-form form { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.1rem; }
.login-help { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.error-page { max-width: 680px; margin: 3rem auto; }
.error-page h1 { margin-bottom: .8rem; }
.error-page .materials { margin-top: 1.2rem; }
@media (max-width: 980px) {
  .hero, .lab-layout, .admin-grid, .login-page { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container, .topbar__inner { width: min(100% - 24px, 1180px); }
  .topbar__inner { flex-wrap: wrap; align-items: flex-start; padding: .65rem 0; gap: .5rem; }
  .topbar__right { width: 100%; justify-content: space-between; align-items: center; gap: .5rem; }
  .brand__logo { width: 150px; }
  .brand__product { font-size: .52rem; }
  .nav { width: auto; flex: 1; justify-content: flex-start; gap: .7rem; font-size: .8rem; }
  .nav__user { display: none; }
  .theme-toggle__label { display: none; }
  .theme-toggle { padding: .4rem .55rem; }
  .week-grid, .two-col, .form-grid { grid-template-columns: 1fr; }
  .week-hero { grid-template-columns: 1fr; }
  .week-hero h1 { font-size: clamp(1.45rem, 6.5vw, 1.7rem); line-height: 1.12; }
  .week-hero .pill { justify-self: start; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .display { overflow-wrap: anywhere; }
  .week-card__foot { align-items: flex-end; }
}
