/* ==========================================================================
   Design tokens. Change --accent to rebrand the whole site.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e6e9ee;
  --border: #e1e4ea;
  --border-strong: #cdd2db;
  --text: #0e1525;
  --text-2: #3b4457;
  --muted: #657087;
  --accent: #2f62e0;
  --accent-hover: #2753c4;
  --accent-soft: #e8effe;
  --accent-text: #2350c4;
  --amber: #f2a516;
  --navy: #1d2a5c;
  --navy-2: #26356f;
  --on-accent: #ffffff;
  --ring: rgba(47, 98, 224, 0.35);

  --cat-classroom: #5b63d6;
  --cat-pe: #1f9d72;
  --cat-office: #c98a1b;

  --red: #e5484d;
  --amber: #f2a516;
  --green: #2fa66a;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 37, 0.05);
  --shadow: 0 1px 2px rgba(14, 21, 37, 0.04), 0 4px 16px -4px rgba(14, 21, 37, 0.08);
  --shadow-lg: 0 2px 4px rgba(14, 21, 37, 0.04), 0 16px 40px -12px rgba(14, 21, 37, 0.16);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0a0d14;
  --surface: #11161f;
  --surface-2: #171d28;
  --surface-3: #202837;
  --border: #232b3a;
  --border-strong: #313b4e;
  --text: #ecf0f6;
  --text-2: #c2c9d6;
  --muted: #8b95a8;
  --accent: #7fa8ff;
  --accent-hover: #9dbcff;
  --accent-soft: #172446;
  --accent-text: #a9c4ff;
  --navy: #131c40;
  --navy-2: #1b2753;
  --on-accent: #0a0d14;
  --ring: rgba(127, 168, 255, 0.4);
  --cat-classroom: #8f95ff;
  --cat-pe: #3fc796;
  --cat-office: #e3a83a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 48px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01';
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 3px; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum', 'cv11', 'ss01', 'zero' 0; }

/* ==========================================================================
   Header and footer
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: #c9d3ee; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header .icon-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #dbe4fb; }
.site-header .icon-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
@media (max-width: 820px) { .site-nav { display: none; } .theme-toggle { margin-left: auto; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
[data-theme='light'] .when-dark, [data-theme='dark'] .when-light { display: none; }

.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 32px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
.footer-brand svg { width: 22px; height: 22px; }
.footer-note, .footer-copy { margin: 0; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 10px; } }

/* ==========================================================================
   Buttons and form controls
   ========================================================================== */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border);
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-border: transparent; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: 8px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
kbd {
  font: 600 0.72rem/1 var(--font); padding: 3px 6px; border-radius: 5px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface-2); color: var(--muted);
}
.btn-primary kbd { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: inherit; }
[data-theme='dark'] .btn-primary kbd { background: rgba(0, 0, 0, 0.12); border-color: rgba(0, 0, 0, 0.25); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field-label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
input[type='text'], input[type='number'], input[type='search'], textarea, select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 9px 12px; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 180px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23657087' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }

.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-2); cursor: pointer; margin-bottom: 10px; }
.check input { appearance: none; width: 36px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; margin: 0; }
.check input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--accent); }
.check input:checked::after { transform: translateX(14px); }

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; gap: 2px; width: 100%; }
.segmented button { flex: 1; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.segmented button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; border: 0; background: transparent; color: var(--text-2); font-size: 1.15rem; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 56px; border: 0; border-radius: 0; text-align: center; font-weight: 650; padding: 8px 0; -moz-appearance: textfield; box-shadow: none !important; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { background: radial-gradient(760px 520px at 78% 40%, rgba(62, 123, 250, 0.42), transparent 70%), var(--navy); color: #fff; padding: 56px 0 128px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: #dbe6ff; background: rgba(255, 255, 255, 0.12); padding: 6px 12px; border-radius: 99px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 18px; }
.hero h1 .accent { color: #7fb0ff; }
.hero .lede { font-size: 1.15rem; color: #c9d3ee; max-width: 32em; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn-amber { --btn-bg: var(--amber); --btn-fg: #14110a; --btn-border: transparent; font-weight: 750; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.btn-amber:hover { background: #f7b73a; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.hero-stats { display: flex; gap: 36px; margin: 30px 0 0; }
.hero-stats dt { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats dd { margin: 2px 0 0; color: #9fb0d8; font-size: 0.82rem; }

/* Live dashboard preview in the hero */
.hp { background: #fff; color: #0e1525; border-radius: 22px; padding: 16px; transform: rotate(-2deg); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.hp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.88rem; }
.hp-head span { background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hp-t { --c: var(--accent); border-radius: 14px; padding: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); border-top: 4px solid var(--c); display: grid; gap: 4px; align-content: start; min-height: 92px; }
.hp-t small { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: color-mix(in srgb, var(--c) 75%, #000); }
.hp-lesson { grid-column: span 2; background: linear-gradient(135deg, #3b3fc4, #2a2d8f); color: #fff; border: 0; }
.hp-lesson small { color: rgba(255, 255, 255, 0.75); }
.hp-lesson strong { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; }
.hp-lesson em { font-style: normal; font-size: 0.82rem; opacity: 0.85; }
.hp-num { font-size: 1.85rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hp-bar { height: 6px; border-radius: 9px; background: rgba(0, 0, 0, 0.08); display: block; }
.hp-bar i { display: block; width: 62%; height: 100%; border-radius: 9px; background: var(--c); transition: width 1s linear; }
.hp-lamps { display: flex; gap: 6px; margin-top: 6px; }
.hp-lamps i { width: 22px; height: 22px; border-radius: 50%; background: #e8dede; }
.hp-lamps i:nth-child(2) { background: #eee5d2; }
.hp-lamps i.on { background: #2fa66a; box-shadow: 0 0 12px #2fa66a; }
.hp-name { font-size: 1.7rem; color: #3e7bfa; letter-spacing: -0.03em; transition: opacity 0.25s; }
.hp-word { font-size: 1.05rem; }
.hp-wide { grid-column: span 3; min-height: 0; }
.hp-steps { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; }
.hp-steps i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #2fa66a; color: #fff; font-style: normal; font-size: 0.62rem; margin-right: 6px; }
.hp-steps i.o { background: var(--amber); }

/* Popular tools sit across the bottom edge of the hero */
.popular { margin-top: -84px; position: relative; z-index: 1; }
.bento-popular { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.popular-note { text-align: center; color: var(--muted); margin: 18px 0 36px; font-size: 0.95rem; }
.all-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
.all-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -0.03em; }
.all-head .search { flex: 1; max-width: 440px; }
.coming-soon { margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.coming-soon b { color: var(--text-2); }
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hp { max-width: 540px; transform: rotate(-1.5deg); }
  .bento-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero { padding: 36px 0 110px; }
  .hp { padding: 12px; }
  .hp-t { min-height: 78px; padding: 10px; }
  .hp-lesson strong { font-size: 1.1rem; }
  .hero-stats { gap: 22px; }
  .hp-wide { display: none; }
  .bento-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-popular .tile { min-height: 0; padding: 14px; gap: 8px; }
  .bento-popular .tile-blurb { display: none; }
  .bento-popular .tile-icon { width: 40px; height: 40px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hp-bar i, .hp-name { transition: none; } }
.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { height: 50px; padding-left: 48px; padding-right: 48px; font-size: 1rem; border-radius: 14px; box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }

.tool-group { margin-top: 40px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot-classroom { background: var(--cat-classroom); }
.dot-pe { background: var(--cat-pe); }
.dot-office { background: var(--cat-office); }
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 12px;
  padding: 20px; min-height: 160px; border-radius: var(--radius-lg);
  --c: var(--accent);
  background: color-mix(in srgb, var(--c) 6%, var(--surface));
  border: 2px solid color-mix(in srgb, var(--c) 45%, var(--surface)); border-top: 5px solid var(--c);
  box-shadow: 0 10px 26px -16px rgba(14, 21, 37, 0.35);
  color: var(--text); text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
a.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(14, 21, 37, 0.45); border-color: color-mix(in srgb, var(--c) 70%, var(--surface)); border-top-color: var(--c); }
.tile-feature { grid-column: span 2; }
@media (max-width: 620px) { .tile-feature { grid-column: auto; } }
.tile-feature .tile-name { font-size: 1.3rem; }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c, var(--accent)); color: #fff; transition: transform 0.2s var(--ease); }
a.tile:hover .tile-icon { transform: rotate(-6deg) scale(1.05); }
.related-link .tile-icon { background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); color: var(--c, var(--accent)); }
.tile-icon.sm { width: 32px; height: 32px; border-radius: 9px; }
.tile-icon.sm svg { width: 18px; height: 18px; }
.tile-body { display: grid; gap: 4px; align-content: start; }
.tile-name { font-weight: 650; font-size: 1.08rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.tile-blurb { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.tile-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 550; color: var(--muted); }
.tile-soon { background: transparent; box-shadow: none; border-style: dashed; }
.tile-soon .tile-icon { background: var(--surface-2); color: var(--muted); }
.tile-soon .tile-name { color: var(--text-2); }
.badge { font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 99px; }
.no-results { color: var(--muted); padding: 24px 0; display: none; }

/* ==========================================================================
   Tool pages
   ========================================================================== */
.tool-head { padding: 36px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tool-head h1 { margin-bottom: 6px; }
.tool-head .lede { color: var(--text-2); margin: 0; max-width: 60ch; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } }

.stage {
  position: relative; display: flex; flex-direction: column;
  min-height: min(68vh, 640px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden;
}
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.stage-bar .status { font-size: 0.85rem; color: var(--muted); margin-right: auto; padding-left: 6px; }
.stage-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; gap: 24px; min-height: 0; }
.stage-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 20px 24px; }
.brand-mark { display: none; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1rem; margin-bottom: 14px; }
.panel hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.panel-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.shortcuts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.shortcuts span { display: inline-flex; align-items: center; gap: 6px; }

.below { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 48px; }
@media (max-width: 960px) { .below { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; color: var(--text-2); }
.prose h2 { color: var(--text); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 6px; }
.related h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.related-link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 550; }
.related-link:hover { background: var(--surface); }
.faq { margin-top: 32px; max-width: 68ch; }
.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin: 10px 0 0; color: var(--text-2); }

/* ==========================================================================
   Present mode: the stage fills the screen and everything else hides.
   ========================================================================== */
body.presenting { overflow: hidden; }
body.presenting .site-header, body.presenting .site-footer, body.presenting .tool-head,
body.presenting .panel, body.presenting .below, body.presenting .hide-in-present { display: none !important; }
body.presenting .tool-layout { display: block; }
body.presenting .wrap { max-width: none; padding: 0; }
body.presenting .stage { position: fixed; inset: 0; z-index: 50; border-radius: 0; border: 0; min-height: 0; box-shadow: none; background: var(--bg); }
body.presenting .stage-bar { position: absolute; top: 0; right: 0; left: 0; border: 0; background: transparent; z-index: 2; opacity: 1; transition: opacity 0.4s; }
body.presenting.idle .stage-bar, body.presenting.idle .stage-controls { opacity: 0; }
body.presenting.idle { cursor: none; }
body.presenting .stage-controls { transition: opacity 0.4s; padding-bottom: 4vh; }
body.presenting .stage-controls .btn { height: 60px; padding: 0 28px; font-size: 1.15rem; border-radius: 14px; }
body.presenting .brand-mark { display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 24px; bottom: 20px; font-size: 0.95rem; font-weight: 650; color: var(--muted); opacity: 0.8; z-index: 2; }
body.presenting .brand-mark svg { width: 22px; height: 22px; }
.exit-present { display: none; }
body.presenting .exit-present { display: inline-flex; }
body.presenting .enter-present { display: none; }

/* ==========================================================================
   Name picker
   ========================================================================== */
.picked-name {
  font-size: clamp(2.6rem, 8vw, 6.5rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05;
  max-width: 100%; overflow-wrap: anywhere; color: var(--text);
}
.picked-name.placeholder { color: var(--muted); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; }
.picked-name.rolling { color: var(--text-2); }
.picked-name.landed { animation: land 0.5s var(--ease); color: var(--accent); }
.picked-multi { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.picked-multi span { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; padding: 10px 22px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); animation: land 0.5s var(--ease) backwards; }
@keyframes land { 0% { transform: scale(0.92); opacity: 0.4; } 60% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }
.meter { width: min(320px, 70%); height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.4s var(--ease); }
.history { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 720px; }
.chip { font-size: 0.82rem; font-weight: 550; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
body.presenting .picked-name { font-size: clamp(4rem, 13vw, 14rem); }
body.presenting .picked-name.placeholder { font-size: clamp(2rem, 4vw, 3.5rem); }
body.presenting .picked-multi span { font-size: clamp(2rem, 5.5vw, 5rem); }
body.presenting .chip { font-size: 1rem; padding: 6px 14px; }

/* ==========================================================================
   Team maker
   ========================================================================== */
.teams { --cols: 4; width: 100%; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; align-self: stretch; text-align: left; }
.team { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; animation: land 0.45s var(--ease) backwards; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--team) 10%, var(--surface)); }
.team-name { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.015em; }
.team-name::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--team); }
.team-count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.team ol { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 4px; }
.team li { font-weight: 550; font-size: 1rem; }
.empty-state { color: var(--muted); max-width: 40ch; }
.empty-state strong { display: block; color: var(--text); font-size: 1.2rem; margin-bottom: 6px; }
body.presenting .stage-body { padding: 72px 4vw 24px; }
body.presenting .teams { gap: 2vh 1.5vw; }
@media (max-width: 900px) { .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .teams { grid-template-columns: 1fr; } }
body.presenting .team-head { padding: 1.4vh 1.2vw; }
body.presenting .team-name { font-size: clamp(1.2rem, 2.2vw, 2.4rem); }
body.presenting .team li { font-size: clamp(1rem, 1.9vw, 2rem); }
body.presenting .team-count { font-size: clamp(0.8rem, 1.2vw, 1.2rem); }

/* ==========================================================================
   Stopwatch
   ========================================================================== */
.clock {
  font-size: clamp(3.4rem, 12vw, 9.5rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum', 'cv11', 'ss01';
  display: flex; align-items: baseline; justify-content: center;
}
.clock .cs { font-size: 0.5em; color: var(--muted); margin-left: 0.04em; letter-spacing: -0.03em; }
.clock.running { color: var(--text); }
.clock.paused { color: var(--text-2); }
.lap-now { font-size: 1.05rem; color: var(--muted); font-weight: 550; min-height: 1.6em; }
.lap-now b { color: var(--text-2); font-weight: 650; }
.laps { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.laps th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; padding: 0 10px 8px; }
.laps td { padding: 9px 10px; border-top: 1px solid var(--border); }
.laps td:not(:first-child), .laps th:not(:first-child) { text-align: right; }
.laps tr.fastest td:nth-child(2) { color: var(--green); font-weight: 650; }
.laps tr.slowest td:nth-child(2) { color: var(--red); font-weight: 650; }
.laps-wrap { max-height: 420px; overflow: auto; }
.laps-empty { color: var(--muted); font-size: 0.9rem; margin: 0; }
.stage-laps { display: none; }
body.presenting .clock { font-size: clamp(5rem, 22vw, 24rem); }
body.presenting .lap-now { font-size: clamp(1.2rem, 2.6vw, 2.4rem); }
body.presenting .stage-laps { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 90vw; }
body.presenting .stage-laps .chip { font-size: clamp(0.9rem, 1.5vw, 1.4rem); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Traffic light
   ========================================================================== */
.signal { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 72px); width: 100%; }
.housing {
  --lamp: clamp(72px, 11vh, 120px);
  display: grid; gap: calc(var(--lamp) * 0.18); padding: calc(var(--lamp) * 0.2);
  background: #1a1f2b; border-radius: calc(var(--lamp) * 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -16px rgba(10, 13, 20, 0.45);
}
[data-theme='dark'] .housing { background: #05070b; box-shadow: inset 0 0 0 1px #232b3a, 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
.lamp {
  width: var(--lamp); height: var(--lamp); border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--c) 16%, #0b0e14);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lamp[data-light='red'] { --c: var(--red); }
.lamp[data-light='amber'] { --c: var(--amber); }
.lamp[data-light='green'] { --c: var(--green); }
.lamp[aria-pressed='true'] {
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 46%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  box-shadow: 0 0 calc(var(--lamp) * 0.5) color-mix(in srgb, var(--c) 60%, transparent), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
}
.lamp:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 50%; }
.signal-text { text-align: left; max-width: 520px; }
.signal-label { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; color: color-mix(in srgb, var(--sig, var(--text)) 78%, #000); transition: color 0.3s; }
[data-theme='dark'] .signal-label { color: var(--sig, var(--text)); }
.signal-desc { font-size: clamp(1rem, 1.8vw, 1.5rem); color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .signal { flex-direction: column; } .signal-text { text-align: center; } }
.light-edit { display: grid; grid-template-columns: 14px 1fr; gap: 6px 10px; align-items: center; margin-bottom: 14px; }
.light-edit .dot { width: 12px; height: 12px; }
.light-edit input:last-child { grid-column: 2; font-size: 0.85rem; }
body.presenting .housing { --lamp: clamp(90px, 25vh, 260px); }
body.presenting .signal-label { font-size: clamp(3rem, 8vw, 9rem); }
body.presenting .signal-desc { font-size: clamp(1.2rem, 2.6vw, 2.6rem); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 550; box-shadow: var(--shadow-lg); transition: opacity 0.2s, transform 0.2s var(--ease); z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound .big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -0.06em; color: var(--accent); line-height: 1; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer, .panel, .stage-bar, .stage-controls, .below { display: none !important; }
  .stage { border: 0; box-shadow: none; }
}
.icon-btn.armed { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .stage-body { padding: 20px 16px; }
  .search kbd { display: none; }
  .hero { padding: 40px 0 120px; }
}

/* ==========================================================================
   Countdown timer
   ========================================================================== */
.ring-wrap { position: relative; width: min(440px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke 0.3s; }
.is-running .ring-fill { transition: stroke 0.3s; }
.ring-center { position: relative; display: grid; gap: 6px; justify-items: center; }
.countdown { font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.countdown-label { font-size: clamp(1rem, 1.8vw, 1.3rem); color: var(--muted); font-weight: 550; max-width: 14em; min-width: 4em; outline: none; border-radius: 6px; padding: 2px 6px; }
.countdown-label:focus { background: var(--surface-2); color: var(--text); }
.is-warn .ring-fill { stroke: var(--amber); }
.is-warn .countdown { color: color-mix(in srgb, var(--amber) 80%, var(--text)); }
.is-done .ring-fill { stroke: var(--red); }
.is-done .countdown { color: var(--red); }
.is-done .stage-body { animation: flash 1s ease-in-out 4; }
@keyframes flash { 50% { background: color-mix(in srgb, var(--red) 14%, transparent); } }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.presenting .ring-wrap { width: min(78vh, 80vw); }
body.presenting .countdown { font-size: clamp(5rem, 17vh, 15rem); }
body.presenting .countdown-label { font-size: clamp(1.2rem, 3.2vh, 2.6rem); }

/* Ad slots: reserved space for future adverts. Hidden until enabled, never in Present mode. */
.ad-slot { margin: 32px auto 0; min-height: 90px; max-width: 970px; display: grid; place-items: center; border-radius: var(--radius); }
body.presenting .ad-slot { display: none !important; }

/* ==========================================================================
   Shared: board titles, editors, picture picker
   ========================================================================== */
.stage-body.stage-top { justify-content: flex-start; align-items: stretch; text-align: left; gap: 18px; }
.board-title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; letter-spacing: -0.03em; }
.board-title:empty { display: none; }
.meter.wide { width: 100%; height: 8px; }
.seg-compact { width: auto; }
.seg-compact button { padding: 5px 10px; font-size: 0.8rem; white-space: nowrap; }
@media (max-width: 560px) { .seg-compact { order: 5; width: 100%; } .stage-bar { flex-wrap: wrap; } }
.muted { color: var(--muted) !important; }

.item-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.item-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "pic text tools"; gap: 6px; align-items: center; }
.item-row:has(.item-time) { grid-template-areas: "pic text text" "pic time tools"; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.item-row input { padding: 8px 9px; font-size: 0.9rem; }
.item-pic { grid-area: pic; align-self: start; }
.item-time { grid-area: time; width: 120px; }
.item-text { grid-area: text; min-width: 0; }
.item-tools { grid-area: tools; justify-self: end; }
.item-pic { flex: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; cursor: pointer; padding: 5px; }
.item-pic svg { width: 26px; height: 26px; }
.item-pic.empty { background: var(--surface); color: var(--muted); border-style: dashed; font-size: 1.1rem; }
.item-tools { display: flex; flex: none; }
.mini { width: 24px; height: 30px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; font-size: 0.95rem; padding: 0; }
.mini:hover:not([disabled]) { background: var(--surface-2); color: var(--text); }
.mini[disabled] { opacity: 0.3; cursor: default; }

.picker { position: absolute; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: none; }
.picker.open { display: block; }
.picker-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 0.9rem; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.picker-grid button { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 0.68rem; line-height: 1.2; text-align: center; }
.picker-grid button:hover { background: var(--surface-2); }
.picker-grid button[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent); }
.picker-grid svg { width: 34px; height: 34px; color: var(--accent-text); }

/* ==========================================================================
   Visual schedule
   ========================================================================== */
.sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sc { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--border); cursor: pointer; transition: opacity 0.3s, border-color 0.3s, transform 0.2s var(--ease); }
.sc:hover { border-color: var(--border-strong); }
.sc-pic { aspect-ratio: 1; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.sc-pic svg { width: 68%; height: 68%; }
.sc-letter { font-size: 3rem; font-weight: 750; }
.sc-text { display: grid; gap: 2px; }
.sc-time { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.sc-label { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.sc-now { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); transform: translateY(-2px); }
.sc-now::before { content: 'Now'; position: absolute; top: -11px; left: 12px; background: var(--accent); color: var(--on-accent); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.sc-next { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.sc-next::before { content: 'Next'; position: absolute; top: -11px; left: 12px; background: var(--surface); color: var(--accent-text); border: 1px solid var(--accent); font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.sc-past { opacity: 0.42; }
.no-fade .sc-past { opacity: 1; }
.sc-done { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.nownext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; }
.nn { position: relative; border-radius: var(--radius-lg); border: 2px solid var(--border); padding: clamp(16px, 3vw, 32px); display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; background: var(--surface); }
.nn-now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.nn-tag { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); }
.nn-next .nn-tag { color: var(--muted); }
.nn .sc-pic { width: min(240px, 60%); }
.nn .sc-label { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.nn .sc-time { font-size: clamp(1rem, 1.6vw, 1.3rem); }
@media (max-width: 560px) { .nownext { grid-template-columns: 1fr; } .sched { grid-template-columns: repeat(2, 1fr); } }
body.presenting .stage-body.stage-top { padding: 64px 3vw 56px; }
body.presenting .board-title { font-size: clamp(1.6rem, 3.4vh, 3rem); }
body.presenting .sched { grid-template-columns: repeat(auto-fit, minmax(min(190px, 30vw), 1fr)); gap: 1.6vh 1.2vw; }
body.presenting .sc-label { font-size: clamp(1.1rem, 2.4vh, 2rem); }
body.presenting .sc-time { font-size: clamp(0.9rem, 1.8vh, 1.4rem); }
body.presenting .nn .sc-pic { width: min(44vh, 70%); }
body.presenting .nn .sc-label { font-size: clamp(2rem, 6vh, 5rem); }

/* ==========================================================================
   Task board
   ========================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: opacity 0.25s, border-color 0.25s, background 0.25s; }
.step-check { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-weight: 750; font-size: 1.05rem; color: var(--muted); }
.no-numbers .step-todo .step-check, .no-numbers .step-current .step-check { color: transparent; }
.step-pic { display: grid; flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); padding: 8px; }
.step-pic svg { width: 100%; height: 100%; }
.step-text { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 650; letter-spacing: -0.015em; }
.step-current { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.step-current .step-check { border-color: var(--accent); color: var(--accent-text); }
.step-done { opacity: 0.55; }
.step-done .step-check { background: var(--green); border-color: var(--green); color: #fff; }
.step-done .step-text { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.focus-step { flex: 1; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.focus-pic { display: grid; place-items: center; width: min(220px, 40vw); aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent-text); }
.focus-pic svg { width: 72%; height: 72%; }
.focus-text { font-size: clamp(1.8rem, 4.5vw, 3.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; margin: 0; max-width: 18ch; }
.focus-count { color: var(--muted); font-weight: 600; font-size: 1.1rem; margin: 0; }
.all-done { display: grid; justify-items: center; gap: 12px; }
.all-done p { font-size: clamp(2rem, 5vw, 4rem); font-weight: 750; margin: 0; color: var(--green); }
.step-check.big { width: 96px; height: 96px; font-size: 3rem; background: var(--green); border-color: var(--green); color: #fff; }
body.presenting .steps { gap: 1.4vh; }
body.presenting .step { padding: 1.4vh 1.6vw; }
body.presenting .step-text { font-size: clamp(1.3rem, 3.2vh, 2.8rem); }
body.presenting .step-check { width: clamp(40px, 6vh, 72px); height: clamp(40px, 6vh, 72px); font-size: clamp(1rem, 2.6vh, 2rem); }
body.presenting .step-pic { width: clamp(52px, 8vh, 96px); height: clamp(52px, 8vh, 96px); }
body.presenting .focus-pic { width: min(40vh, 40vw); }
body.presenting .focus-text { font-size: clamp(2.6rem, 8vh, 7rem); }
body.presenting .focus-count { font-size: clamp(1.2rem, 2.6vh, 2rem); }

/* ==========================================================================
   Plenary
   ========================================================================== */
.template-list { display: grid; gap: 6px; }
.tpl-btn { text-align: left; font: inherit; font-weight: 600; font-size: 0.92rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.tpl-btn:hover { background: var(--surface-2); }
.tpl-btn[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.plen-topic { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--accent-text); }
.plen-title { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.035em; margin: 0; }
.plen { display: grid; gap: 14px; flex: 1; }
.plen-stars, .plen-321 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plen-card { border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(16px, 2.4vw, 28px); display: grid; align-content: start; gap: 14px; }
.plen-card p { margin: 0; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.plen-icon { width: clamp(44px, 6vw, 72px); color: var(--amber); }
.plen-card.wish .plen-icon { color: var(--accent); }
.plen-card.wish { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.plen-big { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--accent); }
.plen-lines { display: grid; gap: clamp(20px, 4.5vh, 52px); margin-top: 10px; }
.plen-lines i { display: block; height: 0; border-bottom: 2px dashed var(--border-strong); }
.plen-q { display: flex; gap: 18px; align-items: center; padding: 16px 20px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.plen-q p { margin: 0; font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.plen-n { flex: none; width: clamp(44px, 5vw, 64px); height: clamp(44px, 5vw, 64px); border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 750; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.plen-foot { color: var(--muted); margin: 4px 0 0; font-weight: 550; }
.plen-fist { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; }
.plen-scale { border-radius: var(--radius-lg); padding: 18px 12px; text-align: center; display: grid; align-content: center; gap: 10px; background: color-mix(in srgb, var(--accent) calc(4% + var(--i) * 5%), var(--surface)); border: 2px solid color-mix(in srgb, var(--accent) calc(10% + var(--i) * 10%), var(--border)); }
.plen-scale p { margin: 0; font-weight: 650; font-size: clamp(0.9rem, 1.4vw, 1.2rem); line-height: 1.25; }
@media (max-width: 720px) { .plen-stars, .plen-321 { grid-template-columns: 1fr; } .plen-fist { grid-template-columns: repeat(3, 1fr); } }
body.presenting .plen-title { font-size: clamp(2.4rem, 7vh, 5.5rem); }
body.presenting .plen-topic { font-size: clamp(1.1rem, 2.6vh, 2rem); }
body.presenting .plen-card p, body.presenting .plen-q p { font-size: clamp(1.4rem, 4vh, 3.2rem); }
body.presenting .plen-scale p { font-size: clamp(1rem, 2.6vh, 2rem); }
body.presenting .plen-big { font-size: clamp(3rem, 12vh, 10rem); }

/* Exit ticket print sheet */
.print-sheet { display: none; }
@media print {
  body.printing-slips > *:not(.print-sheet) { display: none !important; }
  body.printing-slips .print-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .slip { border: 1px dashed #999; padding: 12px 14px; break-inside: avoid; font-size: 11pt; color: #000; min-height: 6.4cm; }
  .slip-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .slip-head span { color: #555; }
  .slip-name { margin: 0 0 6px; }
  .slip-q { margin: 6px 0 2px; font-weight: 600; }
  .slip-lines i { display: block; border-bottom: 1px solid #bbb; height: 18px; }
}

/* Home: dashboards strip */
.home-dash { margin-bottom: 40px; }
.home-dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-dash-head h2 { margin: 0; font-size: 1.25rem; }
.home-dash-all { font-weight: 600; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.home-dash-all:hover { text-decoration: underline; }
.home-dash-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.home-dash-card { --c: var(--accent); display: grid; gap: 4px; align-content: start; padding: 16px 16px 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--c); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.home-dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.home-dash-card b { font-size: 1.02rem; }
.home-dash-card span { color: var(--muted); font-size: 0.88rem; }
.home-dash-card.mine { border-top-color: var(--accent); }
.home-dash-sub { margin: 18px 0 10px; color: var(--muted); font-size: 0.9rem; }
.home-dash-row.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.home-dash-row.compact .home-dash-card { padding: 10px 14px; border-top-width: 3px; }
.home-dash-row.compact .home-dash-card span { display: none; }

/* Advert spaces: hidden until ads are switched on. ?ads=preview shows placeholders. */
.ad-slot.ad-side { margin: 24px 0 0; max-width: 300px; min-height: 250px; }
.ad-slot.ad-preview { border: 1.5px dashed var(--border-strong); background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--surface-3) 55%, transparent) 12px 24px); color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; padding: 12px; }
.ad-slot.ad-preview::before { content: 'Advert space · ' attr(data-size); }
.ad-slot.ad-preview:not(.ad-side) { max-width: 728px; }
