/* Plus Jakarta Sans (SIL OFL 1.1, see fonts/OFL-plus-jakarta-sans.txt), self-hosted. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-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;
}

/* ==== Tokens ============================================================== */
:root {
  /* Palette shared with BookrNest: indigo primary, orange accent, slate neutrals. */
  --bg: #fafafa;
  --bg-image: none;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand-navy: #0f172a;
  --brand-plum: #3730a3;
  --brand-teal: #f97316;
  --brand-dark: #1e1b4b;
  --accent: #4f46e5;
  --accent-2: #ea580c;
  --accent-text: #ffffff;
  --accent-soft: #eef2ff;
  --danger: #dc2626;
  --ok: #059669;
  --track: #e2e8f0;
  --c1: #4f46e5; --c2: #f97316; --c3: #0ea5e9; --c4: #f59e0b; --c5: #db2777; --c6: #059669;
  --radius: 14px;
  --shadow: 0 1px 3px rgb(15 23 42 / 6%), 0 4px 20px rgb(79 70 229 / 8%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Side navigation: a calm indigo-tinted panel (flat colours, no gradients). */
  --side-w: 256px;
  --side-bg: #f3f4fb;
  --side-hover: #e8eaf7;
  --side-active: #e0e3fb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1120;
    --surface: #131c2e;
    --surface-2: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #263247;
    --brand-navy: #f1f5f9;
    --brand-plum: #c7d2fe;
    --accent: #818cf8;
    --accent-2: #fb923c;
    --accent-text: #0f172a;
    --accent-soft: #1e1b4b;
    --danger: #f87171;
    --ok: #34d399;
    --track: #263247;
    --c1: #818cf8; --c2: #fb923c; --c3: #38bdf8; --c4: #fbbf24; --c5: #f472b6; --c6: #34d399;
    --shadow: none;
    --side-bg: #0f1729;
    --side-hover: #18233a;
    --side-active: #1f2a4a;
    color-scheme: dark;
  }
}

/* Presentation themes (presenter screen and participants' phones). */
[data-theme='light'] {
  --bg: #fafafa; --bg-image: none; --surface: #ffffff; --surface-2: #f1f5f9; --text: #0f172a;
  --muted: #64748b; --border: #e2e8f0; --accent: #4f46e5; --accent-text: #ffffff; --accent-soft: #eef2ff;
  --track: #e2e8f0; --brand-navy: #0f172a; --brand-plum: #3730a3;
  --c1: #4f46e5; --c2: #f97316; --c3: #0ea5e9; --c4: #f59e0b; --c5: #db2777; --c6: #059669;
  --shadow: 0 1px 2px rgb(16 16 32 / 4%), 0 4px 16px rgb(16 16 32 / 6%);
  color-scheme: light;
}
[data-theme='dark'], [data-theme='ocean'] { --brand-navy: #dfe7f7; --brand-plum: #ecd5ef; }
[data-theme='dark'] {
  --bg: #0e0f1d;
  --surface: #191a2e;
  --surface-2: #222340;
  --text: #f4f4fb;
  --muted: #a4a6c4;
  --border: #2d2f4e;
  --accent: #8f84ff;
  --accent-text: #0e0f1d;
  --accent-soft: #2a2b55;
  --track: #24264a;
  --c1: #8f84ff; --c2: #ff6fa3; --c3: #fbbf24; --c4: #34d399; --c5: #38bdf8; --c6: #c084fc;
  --shadow: none;
  color-scheme: dark;
}
[data-theme='ocean'] {
  --bg: #08324d;
  --bg-image: none;
  --surface: rgb(255 255 255 / 10%);
  --surface-2: rgb(255 255 255 / 16%);
  --text: #f0fbff;
  --muted: #a9d6e8;
  --border: rgb(255 255 255 / 18%);
  --accent: #5eead4;
  --accent-text: #06263a;
  --accent-soft: rgb(94 234 212 / 18%);
  --track: rgb(255 255 255 / 12%);
  --c1: #5eead4; --c2: #fde047; --c3: #fb923c; --c4: #a3e635; --c5: #7dd3fc; --c6: #f9a8d4;
  --shadow: none;
  color-scheme: dark;
}
[data-theme='sunset'] {
  --bg: #fff3ea;
  --bg-image: none;
  --surface: #ffffff;
  --surface-2: #fff4ee;
  --text: #3a1a1f;
  --muted: #8a5a5f;
  --border: #f3d9cf;
  --accent: #e8505b;
  --accent-text: #ffffff;
  --accent-soft: #ffe1dc;
  --track: #f7e3da;
  --c1: #e8505b; --c2: #f59e0b; --c3: #8b5cf6; --c4: #0d9488; --c5: #ec4899; --c6: #2563eb;
  color-scheme: light;
}

/* ==== Base ================================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-image), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 .75em; }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==== Layout ============================================================== */
.page { max-width: 880px; margin: 0 auto; padding: 20px clamp(16px, 2.5vw, 32px) 96px; }
.page.wide { max-width: 1440px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark .lm-s { stroke: var(--accent); }
.brand-mark .lm-f { fill: var(--accent); }
.brand-name b { color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.brand-name span { color: var(--brand-plum); font-weight: 650; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { padding: 6px 8px; font-size: 13px; letter-spacing: .04em; }
.lang-switch button[aria-pressed='true'] { background: var(--surface-2); }
.code-tag { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { display: none; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ==== Controls ============================================================ */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--border); }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, .chip:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
}
button:hover:not(:disabled), .btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover:not(:disabled) { border-color: var(--accent); filter: brightness(1.06); }
button.ghost { background: transparent; border-color: transparent; }
button.ghost:hover:not(:disabled) { background: var(--surface-2); }
button.danger { color: var(--danger); }
button.icon-btn { padding: 8px; }
button:disabled { opacity: .4; cursor: default; }
button.big { padding: 14px 22px; font-size: 17px; border-radius: 12px; }

/* ==== Home ================================================================ */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin: 24px 0 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}
.hero .lead { font-size: 18px; color: var(--muted); max-width: 34ch; }
.join-card h2 { font-size: 20px; }
.join-form { display: flex; gap: 8px; }
.join-form input { font-size: 26px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 12px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 20px; margin-top: 8px; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 40px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.feature .badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.feature strong { display: block; }
.feature span { color: var(--muted); font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list .title { font-weight: 600; }
.code-tag { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }

/* ==== Editor ============================================================== */
.question-card { position: relative; }
.question-card header { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.q-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.question-card header select { width: auto; padding: 7px 10px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.option-row { display: flex; gap: 8px; align-items: center; }
.option-row + .option-row { margin-top: 8px; }
.option-letter { width: 28px; flex: none; text-align: center; font-weight: 700; color: var(--muted); }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.add-row button { font-size: 14px; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 520px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.chip { position: relative; display: block; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .swatch {
  display: flex; align-items: flex-end; gap: 4px;
  height: 64px; border-radius: 10px; padding: 10px;
  background: var(--bg-image), var(--bg);
  border: 2px solid var(--border);
}
.chip .swatch i { display: block; width: 10px; border-radius: 3px; }
.chip .swatch i:nth-child(1) { height: 60%; background: var(--c1); }
.chip .swatch i:nth-child(2) { height: 100%; background: var(--c2); }
.chip .swatch i:nth-child(3) { height: 40%; background: var(--c3); }
.chip input:checked + .swatch { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip .name { display: block; text-align: center; font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--text); }
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.savebar .inner { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.danger-zone {
  margin-top: 8px;
}
@media (max-width: 520px) { .hide-sm { display: none; } }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

/* ==== Participant ========================================================= */
.participant { max-width: 540px; }
.participant h1 { font-size: 26px; }
.q-meta { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px; text-align: left; justify-content: flex-start;
  padding: 14px 16px; font-size: 18px; font-weight: 600; border-radius: 12px; border-width: 2px;
}
.choice .letter {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-size: 15px; color: #fff;
}
.choice[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { padding: 18px 0; font-size: 22px; font-weight: 700; border-radius: 12px; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.done { text-align: center; padding: 36px 20px; }
.done-mark {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-text);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.done-mark .icon { width: 36px; height: 36px; }
.done-mark.paused { background: var(--surface-2); color: var(--muted); }
.waiting-dots { display: inline-flex; gap: 6px; margin: 8px 0 16px; }
.waiting-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite ease-in-out; }
.waiting-dots i:nth-child(2) { animation-delay: .15s; }
.waiting-dots i:nth-child(3) { animation-delay: .3s; }
.slide-body { font-size: 18px; white-space: pre-wrap; }
.status { font-size: 14px; color: var(--muted); text-align: center; margin-top: 16px; }

/* ==== Presenter =========================================================== */
.present {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 2.4vw, 36px) clamp(16px, 4vw, 64px);
  gap: 16px;
}
.present-head { display: flex; align-items: center; gap: 16px; }
.join-pill {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 12px clamp(16px, 2vw, 32px) 12px 12px; box-shadow: var(--shadow);
  font-weight: 400; cursor: zoom-in;
}
.qr { width: clamp(120px, 13vw, 240px); height: auto; background: #fff; border-radius: 12px; padding: 6px; display: block; }
.qr-overlay {
  position: fixed; inset: 0; z-index: 50; cursor: zoom-out;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh;
  background: var(--bg-image), var(--bg);
}
.qr-overlay img { width: min(68vh, 80vw); height: auto; background: #fff; border-radius: 20px; padding: 14px; }
.qr-overlay-text { font-size: clamp(20px, 2.6vw, 40px); color: var(--muted); text-align: center; line-height: 1.3; }
.qr-overlay-text strong { color: var(--text); margin: 0 .3em; }
.qr-overlay-text .code { letter-spacing: .08em; font-weight: 800; }
.join-text { font-size: clamp(14px, 1.3vw, 20px); color: var(--muted); line-height: 1.3; }
.join-text strong { color: var(--text); font-size: 1.3em; display: block; }
.join-text .code { font-size: 1.8em; letter-spacing: .08em; font-weight: 800; }
.people { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(16px, 1.4vw, 22px); font-weight: 700; }
.present-body { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.present-title { font-size: clamp(30px, 4.2vw, 64px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 clamp(16px, 3vh, 40px); }
.present-sub { font-size: clamp(16px, 1.4vw, 22px); color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.present-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.present-foot button { font-size: 14px; padding: 7px 12px; }
.dots { display: flex; gap: 6px; align-items: center; margin: 0 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--track); transition: all .25s; }
.dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }
.pill { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.slide-text { font-size: clamp(20px, 2vw, 32px); max-width: 60ch; white-space: pre-wrap; color: var(--muted); }

/* Columns (choice / scale) */
.columns {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: clamp(10px, 2vw, 32px); align-items: end;
  height: min(48vh, 520px);
}
.col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 10px; min-width: 0; }
.col .val { font-size: clamp(18px, 2.2vw, 36px); font-weight: 800; font-variant-numeric: tabular-nums; }
.col .val small { display: block; font-size: .5em; color: var(--muted); font-weight: 600; }
.col .track { display: flex; align-items: flex-end; background: var(--track); border-radius: 12px; overflow: hidden; }
.col .fill { width: 100%; height: 0; border-radius: 12px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.col .lbl { font-size: clamp(14px, 1.4vw, 22px); font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.col:nth-child(6n+1) .fill { background: var(--c1); }
.col:nth-child(6n+2) .fill { background: var(--c2); }
.col:nth-child(6n+3) .fill { background: var(--c3); }
.col:nth-child(6n+4) .fill { background: var(--c4); }
.col:nth-child(6n+5) .fill { background: var(--c5); }
.col:nth-child(6n+6) .fill { background: var(--c6); }
.avg { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 20px; font-size: clamp(18px, 1.8vw, 28px); color: var(--muted); font-weight: 600; }
.avg strong { font-size: 2em; color: var(--text); font-weight: 800; }

/* Word cloud */
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 28px; padding: 8px; }
.word { position: relative; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; transition: font-size .5s ease; animation: pop .4s ease; }
.cloud .word:nth-child(6n+1) { color: var(--c1); }
.cloud .word:nth-child(6n+2) { color: var(--c2); }
.cloud .word:nth-child(6n+3) { color: var(--c3); }
.cloud .word:nth-child(6n+4) { color: var(--c4); }
.cloud .word:nth-child(6n+5) { color: var(--c5); }
.cloud .word:nth-child(6n+6) { color: var(--c6); }

/* Open answers */
.open-grid { columns: 3 280px; column-gap: 14px; max-height: 58vh; overflow: auto; padding: 4px; }
.open-card {
  position: relative; break-inside: avoid; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; font-size: clamp(16px, 1.4vw, 22px); overflow-wrap: anywhere; box-shadow: var(--shadow);
  animation: rise .35s ease;
}

/* Moderation button on words and open answers */
.mod {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; font-size: 13px; opacity: 0; pointer-events: none;
  background: var(--surface); color: var(--danger); border-color: var(--border);
}
.word:hover .mod, .open-card:hover .mod, .mod:focus-visible { opacity: 1; pointer-events: auto; }

/* Hidden results */
.veil { text-align: center; padding: 48px 16px; }
.veil .icon { width: 56px; height: 56px; color: var(--muted); margin-bottom: 12px; }
.veil strong { display: block; font-size: clamp(22px, 2.4vw, 36px); }
.empty { text-align: center; color: var(--muted); font-size: clamp(18px, 2vw, 28px); }

@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ==== Accounts, admin, help ================================================ */
.page.narrow { max-width: 520px; }
.nav { display: flex; gap: 4px; }
.small { font-size: 13px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-weight: 600;
}
.notice-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cred {
  background: var(--surface-2); border-radius: 10px; padding: 14px 16px; margin: 0;
  font: 15px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Two-factor authentication */
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li { padding-left: 4px; }
.mfa-qr { display: block; width: 200px; height: 200px; margin: 12px 0 8px; background: #fff; border-radius: 10px; padding: 6px; }
.mfa-secret { flex: 1 1 200px; min-width: 0; font: 600 15px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; user-select: all; -webkit-user-select: all; }
.mfa-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 10px; }
.mfa-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.mfa-option h3 { margin: 0; font-size: 16px; }
.mfa-key-row { gap: 8px; flex-wrap: wrap; }
.code-input { font: 600 22px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; max-width: 260px; }
.recovery-codes { columns: 2; column-gap: 24px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions button { font-size: 13px; padding: 6px 10px; }
.table tr.dim td { opacity: .55; }
.help h2 { margin-top: 8px; }
.help ol, .help ul { padding-left: 1.3em; margin: 0 0 .75em; }
.help li + li { margin-top: 6px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; }
kbd {
  display: inline-block; min-width: 28px; text-align: center; padding: 3px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px;
  font: 600 13px/1.3 ui-monospace, Menlo, monospace;
}

/* ==== Legal ================================================================ */
.site-foot {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.site-foot a { color: var(--muted); }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p { max-width: 70ch; }
.legal .lead { font-size: 17px; }
.doc-list { margin: 0; padding-left: 1.2em; }
.doc-list li + li { margin-top: 6px; }
.accept-check { align-items: flex-start; font-weight: 600; margin-top: 16px; }
.accept-check input { margin-top: 2px; flex: none; }
.part-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.part-note a { color: var(--muted); }

/* ==== Home showcase (animated demo) ======================================== */
.demo { position: relative; padding: 0 40px 40px 0; }
.d-screen {
  background: var(--bg-image), var(--bg); color: var(--text);
  border-radius: 18px; padding: 18px 22px 20px; aspect-ratio: 16 / 10;
  display: grid; grid-template-rows: auto auto 1fr; gap: 10px;
  box-shadow: 0 20px 50px rgb(10 20 40 / 25%);
  border: 6px solid #10192e;
}
.d-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.d-live {
  background: #e5484d; color: #fff; font-weight: 800; font-size: 10px; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 5px; animation: blink 1.6s infinite;
}
.d-q { font-size: clamp(16px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; }
.d-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; min-height: 0; }
.d-col { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 5px; text-align: center; min-height: 0; }
.d-val { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.d-track { display: flex; align-items: flex-end; background: var(--track); border-radius: 7px; overflow: hidden; min-height: 40px; }
.d-fill { width: 100%; height: 0; border-radius: 7px; transition: height .5s cubic-bezier(.2, .9, .3, 1.2); }
.d-col:nth-child(1) .d-fill { background: var(--c1); }
.d-col:nth-child(2) .d-fill { background: var(--c2); }
.d-col:nth-child(3) .d-fill { background: var(--c3); }
.d-col:nth-child(4) .d-fill { background: var(--c4); }
.d-lbl { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-plus {
  position: absolute; left: 50%; bottom: 40%; transform: translateX(-50%);
  font-weight: 800; color: #fff; font-size: 13px; pointer-events: none;
  animation: floatUp .9s ease-out forwards;
}
.d-phone {
  position: absolute; right: 0; bottom: 0; width: 34%; min-width: 150px; max-width: 190px;
  background: var(--surface); color: var(--text); border: 7px solid #10192e; border-radius: 26px;
  padding: 22px 10px 12px; box-shadow: 0 18px 40px rgb(10 20 40 / 30%);
  display: grid; gap: 6px; animation: bob 4s ease-in-out infinite;
}
.d-notch { position: absolute; top: 6px; left: 50%; width: 38%; height: 6px; transform: translateX(-50%); background: #10192e; border-radius: 4px; }
.d-pq { font-size: 11px; font-weight: 800; margin-bottom: 2px; }
.d-opt {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 6px;
  transition: transform .15s, border-color .15s, background .15s;
}
.d-opt.tap { transform: scale(.94); border-color: var(--accent); background: var(--accent-soft); }
.d-badge { width: 16px; height: 16px; border-radius: 5px; color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; flex: none; }@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -36px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ==== Home content sections */
.btn, .nav a, .topbar .btn { white-space: nowrap; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.section-title.center { text-align: center; }
.section-lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.btn.big-light { background: #fff; color: #4f46e5; border-color: #fff; padding: 14px 24px; font-size: 17px; border-radius: 12px; }
@media (max-width: 600px) {
  .demo { padding: 0 0 70px; }
  .d-screen { aspect-ratio: 4 / 3; padding: 14px; border-width: 5px; }
  .d-phone { width: 46%; min-width: 0; right: -4px; padding: 18px 7px 8px; border-width: 5px; border-radius: 20px; }
  .d-opt { font-size: 10px; padding: 4px 5px; }
  .d-lbl { font-size: 10px; }
}

/* ==== Landing page (signed out) — flat colours only ======================== */
.landing { --paper: #f4f2ec; background: var(--paper); min-height: 100vh; overflow-x: clip; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .landing { --paper: #121218; } }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.head-inner { display: flex; align-items: center; gap: 8px; height: 68px; }
.anchors { display: flex; gap: 2px; margin-left: 20px; }
.anchors button { font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 12px; }
.anchors button:hover { color: var(--text); }
@media (max-width: 900px) { .anchors { display: none; } }

.hero2 { position: relative; padding: clamp(48px, 9vw, 110px) 0 40px; }
.hero2-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 800; letter-spacing: -.01em;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 22px; margin-bottom: 28px;
}
.hero2 h1 { font-size: clamp(44px, 8.4vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 0 0 24px; }
.hero2 h1 .accent { color: var(--accent-2); }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #f97316; }
.hero-lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 40ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.hero-ctas .big { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.hero-join { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-weight: 600; color: var(--muted); }
.join-pill { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; }
.join-pill input {
  width: 150px; border: 0; background: transparent; font-size: 20px; font-weight: 800; letter-spacing: .12em;
  text-align: center; padding: 6px 10px;
}
.join-pill input:focus { outline: none; }
.join-pill:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.join-pill button { border-radius: 999px; padding: 9px 18px; }
.stage { position: relative; z-index: 1; max-width: 880px; margin-top: 64px; }

.steps3 { margin: clamp(64px, 9vw, 120px) auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step3 { background: var(--surface); border-radius: 22px; padding: 28px; }
.step-num { display: block; font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: var(--accent-2); line-height: 1; margin-bottom: 18px; }
.step3 h3 { font-size: 21px; margin-bottom: 6px; }
.step3 p { color: var(--muted); margin: 0; }

#features { margin: clamp(64px, 9vw, 120px) auto; scroll-margin-top: 90px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card { background: var(--surface); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; overflow: hidden; }
.bento-card h3 { font-size: 22px; margin: 18px 0 6px; }
.bento-card p { color: var(--muted); margin: 0; }
.b-choice, .b-wordcloud { grid-column: span 3; }
.b-scale, .b-open, .b-join { grid-column: span 2; }
.b-join { background: #17294a; color: #fff; }
.b-join p { color: #c9d3ea; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento-card { grid-column: span 1 !important; } .b-join { grid-column: span 2 !important; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .b-join { grid-column: span 1 !important; } }
.bv { height: 150px; border-radius: 16px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; }
.b-join .bv { background: #22375f; }
.bv-bars { align-items: flex-end; gap: 14px; padding: 18px 26px 0; }
.bv-bars i { width: 38px; height: var(--h); border-radius: 9px 9px 0 0; animation: barGrow 3.2s ease-in-out infinite; animation-delay: var(--d); transform-origin: bottom; }
.bv-words { flex-wrap: wrap; gap: 2px 14px; padding: 14px; align-content: center; }
.bv-words span { font-weight: 800; letter-spacing: -.02em; animation: wordPop 4.8s ease-in-out infinite; animation-delay: var(--d); }
.bv-scale { flex-direction: column; gap: 12px; }
.bv-avg { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-2); }
.bv-dots { display: flex; gap: 8px; }
.bv-dots span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface); color: var(--muted); }
.bv-dots span.on { background: var(--accent); color: var(--accent-text); }
.bv-open { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; }
.bv-open span { background: var(--surface); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 14px; font-weight: 600; animation: slideIn 5.4s ease-in-out infinite; animation-delay: var(--d); }
.bv-join { gap: 18px; }
.bv-qr { width: 92px; height: 92px; border-radius: 16px; background: #fff; color: #17294a; display: grid; place-items: center; }
.bv-qr .icon { width: 64px; height: 64px; }
.bv-langs { display: grid; gap: 6px; }
.bv-langs span { background: #5ab5ae; color: #0c1a1a; font-weight: 800; border-radius: 8px; padding: 4px 12px; font-size: 14px; text-align: center; }

.uses { margin: clamp(64px, 9vw, 120px) auto; scroll-margin-top: 90px; }
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.use { background: var(--surface); border-radius: 22px; padding: 24px; }
.feature .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.use-mark { display: block; margin-bottom: 14px; }
.use-mark .icon { width: 38px; height: 38px; stroke-width: 1.6; }
.use h3 { font-size: 20px; margin-bottom: 8px; }
.use ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.use li + li { margin-top: 5px; }

.trust-band { background: #1e1b4b; color: #fff; padding: clamp(56px, 8vw, 100px) 0; scroll-margin-top: 68px; }
.trust-band h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; color: #fff; max-width: 18ch; }
.trust-band .lead { color: #c9d3ea; font-size: 19px; margin-bottom: 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 36px; }
.trust-item { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 4px; color: #c9d3ea; align-content: start; }
.trust-item .icon { grid-row: span 2; width: 26px; height: 26px; color: #fb923c; }
.trust-item strong { color: #fff; font-size: 17px; }

.faq2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; margin: clamp(64px, 9vw, 120px) auto; scroll-margin-top: 90px; }
@media (max-width: 800px) { .faq2 { grid-template-columns: 1fr; gap: 12px; } }
.faq2 details { border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.faq2 summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--accent-2); transition: transform .2s; }
.faq2 details[open] summary::after { transform: rotate(45deg); }
.faq2 details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 60ch; }

.cta2 {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #4f46e5; color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 60px); margin-bottom: 24px;
}
.cta2 > div { position: relative; z-index: 1; }
.cta2 h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.cta2 p { color: #e6d8ea; margin: 0; font-size: 18px; }
.cta2 .btn { position: relative; z-index: 1; }
.landing .site-foot { margin-top: 24px; }

/* Signed-in home */
.welcome { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 24px; align-items: center; margin: 8px 0 24px; }
.welcome h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; } }

/* Question ideas marquee */
.ideas { margin: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.ideas .section-title { margin-bottom: 28px; }
.marquee { overflow: hidden; padding: 6px 0; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.idea {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--surface); border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 16px;
}
.idea .icon { width: 20px; height: 20px; }
.idea-choice .icon { color: var(--c1); }
.idea-wordcloud .icon { color: var(--c2); }
.idea-scale .icon { color: var(--c3); }
.idea-open .icon { color: var(--c4); }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; } .marquee-track > [aria-hidden] { display: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--rd, 0ms); }
.reveal.shown { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1; transform: none; } }

/* Live word cloud */
.livecloud { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; margin: clamp(64px, 9vw, 120px) 0; }
@media (max-width: 860px) { .livecloud { grid-template-columns: 1fr; gap: 20px; } }
.lc-panel { background: var(--surface); border-radius: 24px; padding: 22px; min-width: 0; }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lc-q { font-weight: 700; font-size: 17px; }
.lc-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.lc-count strong { color: var(--text); }
.lc-field {
  min-height: 260px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center;
  gap: 4px 16px; padding: 12px 0; transition: opacity .8s ease;
}
.lc-field.fade { opacity: 0; }
.lc-word {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: calc(clamp(18px, 3.4vw, 30px) * var(--s, .5));
  opacity: 0; transform: scale(.4); transition: font-size .45s ease, opacity .4s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1);
  max-width: 100%; overflow-wrap: anywhere;
}
.lc-word.on { opacity: 1; transform: none; }
@media (max-width: 520px) { .lc-panel { padding: 16px; } .lc-field { min-height: 170px; gap: 2px 10px; } }

/* Mobile density for the marquee */
@media (max-width: 600px) {
  .idea { font-size: 14px; padding: 9px 14px; gap: 8px; }
  .idea .icon { width: 17px; height: 17px; }
  .marquee-track { gap: 8px; animation-duration: 36s; }
  .marquee.rev .marquee-track { animation-duration: 42s; }
}

/* Small screens: compact top bars, thinner chart labels */
@media (max-width: 520px) {
  .topbar { gap: 4px; }
  .topbar .btn.ghost, .topbar .nav a { padding: 8px; }
  .nav { gap: 2px; }
  .lang-switch button { padding: 6px 5px; }
  .head-inner { gap: 4px; }
  .head-inner .btn { padding: 8px 10px; }
  .savebar .inner { gap: 6px; padding: 10px 12px; }
  .cc-col:nth-child(odd) .cc-x { visibility: hidden; }
}
.card { min-width: 0; }

@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes barGrow { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes wordPop { 0%, 100% { opacity: .35; transform: scale(.92); } 40%, 60% { opacity: 1; transform: scale(1); } }
@keyframes slideIn { 0%, 8% { opacity: 0; transform: translateX(-14px); } 18%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ==== Dashboards (single-series charts, flat colours) ======================= */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 860px) { .chart-grid { grid-template-columns: 1fr; } }
.chart { margin: 0; }
.chart figcaption { font-weight: 700; margin-bottom: 14px; }
.cc { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 200px; }
.cc-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; padding-bottom: 20px; font-variant-numeric: tabular-nums; }
.cc-plot { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; border-bottom: 1px solid var(--border); }
.cc-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--text) 10%, transparent); pointer-events: none; }
.cc-grid.g1 { top: 0; }
.cc-grid.g2 { top: calc((100% - 20px) / 2); }
.cc-col { display: grid; grid-template-rows: 1fr 20px; min-width: 0; }
.cc-slot { display: flex; align-items: flex-end; justify-content: center; }
.cc-bar { position: relative; width: min(28px, 70%); background: var(--accent); border-radius: 4px 4px 0 0; outline-offset: 2px; }
.cc-bar:hover, .cc-bar:focus-visible { filter: brightness(1.2); }
.cc-bar:hover::after, .cc-bar:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; z-index: 5; pointer-events: none;
}
.cc-x { font-size: 10px; color: var(--muted); text-align: center; line-height: 20px; white-space: nowrap; overflow: visible; }
.chart-table { margin-top: 10px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.bar-list { display: grid; gap: 8px; max-width: 520px; }
.bl-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.bl-track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bl-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.bl-row b { text-align: right; font-variant-numeric: tabular-nums; }
.plan-tag { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 9px; background: var(--surface-2); color: var(--text); }
.plan-tag.p-pro { background: #d8efed; color: #13423f; }
.plan-tag.p-org { background: #eef2ff; color: #3730a3; }
.plan-tag.p-public { background: #4f46e5; color: #fff; }
.plan-tag.p-event { background: #fff7ed; color: #9a3412; }
.edit-row td { background: var(--surface-2); }
.plan-form { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; align-items: end; margin-top: 10px; }
.plan-form label { font-size: 13px; margin: 0; display: grid; gap: 4px; }
.plan-form .wide { grid-column: 1 / -1; }
.plan-form .row { grid-column: 1 / -1; }
@media (max-width: 760px) { .plan-form { grid-template-columns: 1fr 1fr; } }
.org-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.org-head h1 { margin: 0; }
.people.at-limit { color: var(--danger); }

/* ==== Printable report ===================================================== */
.report { max-width: 820px; }
.rp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.rp-head { margin-bottom: 28px; }
.rp-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 18px; }
.rp-brand .brand-mark { width: 34px; height: 34px; }
.rp-head h1 { font-size: 34px; letter-spacing: -.02em; margin: 4px 0; }
.rp-kpis { margin-top: 16px; }
.rp-q { border-top: 1px solid var(--border); padding: 20px 0; break-inside: avoid; }
.rp-q header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.rp-q h2 { font-size: 20px; margin: 0 0 2px; }
.rp-num { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.rp-bars { display: grid; gap: 6px; }
.rp-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; gap: 10px; align-items: center; font-size: 14px; }
.rp-label { overflow-wrap: anywhere; }
.rp-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rp-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.rp-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rp-avg { font-size: 16px; }
.rp-avg strong { font-size: 22px; }
.rp-open { margin: 0; padding-left: 1.2em; columns: 2 280px; column-gap: 28px; }
.rp-open li { break-inside: avoid; margin-bottom: 6px; overflow-wrap: anywhere; }
.rp-foot { margin-top: 24px; }
@media print {
  @page { margin: 16mm; }
  :root, :root:not([data-theme]) {
    --bg: #fff; --surface: #fff; --surface-2: #eef0f3; --text: #111; --muted: #555; --border: #d8dbe0;
    --accent: #4f46e5; --accent-text: #fff;
  }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .site-foot { display: none !important; }
  .report { max-width: none; padding: 0; }
  .minutes .rp-q h2 { font-size: 16px; }
  .signatures { break-inside: avoid; }
  .kpi { border-color: #d8dbe0; }
}


/* Phones: KPI tiles two per row */
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi strong { font-size: 22px; }
}

/* ==== Governing bodies ===================================================== */
.body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.body-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border, #dde1ea);
  border-radius: var(--radius); color: inherit; text-decoration: none; background: var(--surface, #fff);
}
.body-card:hover, .body-card:focus-visible { border-color: var(--accent); }
.body-card.dim { opacity: .6; }
.body-name { font-size: 17px; }
.kind-tag { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 9px; background: var(--surface-2); color: var(--text); }
.kind-tag.k-board { background: var(--accent); color: var(--accent-text); }
.kind-tag.k-management { background: var(--accent-2); color: #fff; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.body-desc { margin-top: -6px; }
.home-head { margin-bottom: 16px; }
.home-head h1 { margin-bottom: 4px; }
.home-head p { margin: 0; }
.table td select { min-width: 150px; }

/* ==== Meetings ============================================================== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.meeting-list li { padding: 0; }
.meeting-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; width: 100%; color: inherit; text-decoration: none; flex-wrap: wrap; }
.meeting-row:hover strong { text-decoration: underline; }
.meeting-date { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 150px; }
.status-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 9px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.status-tag .icon { width: 13px; height: 13px; }
.status-tag.s-draft { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.status-tag.s-upcoming { background: var(--accent-soft); color: var(--accent); }
.status-tag.s-approved { background: var(--ok); color: #fff; }
.status-tag.s-cancelled { text-decoration: line-through; color: var(--muted); }
.status-tag.s-confidential { background: #fbe9e7; color: #8a2a16; }
.new-meeting > summary, .new-item > summary { list-style: none; display: inline-flex; cursor: pointer; }
.new-meeting > summary::-webkit-details-marker, .new-item > summary::-webkit-details-marker { display: none; }
.new-meeting[open] > summary, .new-item[open] > summary { margin-bottom: 12px; }
.meeting-when { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: -8px 0 16px; }
.meeting-actions { margin-bottom: 16px; gap: 8px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-item { border-top: 1px solid var(--border); padding: 16px 0; }
.agenda-item:first-child { border-top: 0; padding-top: 4px; }
.agenda-item header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agenda-item h3 { margin: 0; font-size: 17px; }
.item-num { font-weight: 800; color: var(--accent); min-width: 34px; }
.item-tools { display: inline-flex; gap: 2px; }
.item-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
.item-block { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--border); }
.item-block.decision { border-left-color: var(--accent-2); }
.item-block strong { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hidden-item header { color: var(--muted); }
.item-form { margin-top: 10px; }
.conf-check { padding-bottom: 10px; }
.access-picker { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; margin: 0; }
.access-picker legend { font-weight: 700; padding: 0 4px; }
.access-picker p { margin: 0 0 4px; }
.attendance { list-style: none; margin: 0; padding: 0; }
.attendance li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.attendance li:first-child { border-top: 0; }
.attendance select { width: auto; min-width: 120px; }
.draft-mark { display: inline-block; border: 2px dashed #8a2a16; color: #8a2a16; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.minutes-facts { margin-bottom: 20px; }
.minutes-att { margin-bottom: 12px; }
.minutes-att h2 { font-size: 18px; }
.minutes-att p { margin: 4px 0; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 56px 0 24px; }
.signatures div { display: flex; flex-direction: column; gap: 4px; }
.sig-line { border-bottom: 1px solid var(--text); height: 40px; }
.status-tag.s-signing { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.signed { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
.signed .icon { width: 16px; height: 16px; }
.sign-form { border-top: 1px solid var(--border); padding-top: 12px; }
.sig-done { display: flex; align-items: flex-end; gap: 6px; height: 40px; border-bottom: 1px solid var(--text); font-size: 13px; padding-bottom: 4px; }
.sig-done .icon { width: 16px; height: 16px; }
.signatures { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ==== Decisions, actions, kanban ============================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 20px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.st-open { background: #8a93a6; }
.st-in_progress { background: #d08a1e; }
.st-done { background: var(--ok); }
.st-cancelled { background: transparent; border: 2px solid #8a93a6; }
.status-cell { display: inline-flex; align-items: center; gap: 6px; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.due .icon { width: 14px; height: 14px; }
.due.overdue { color: #b3261e; font-weight: 700; }
.board-tools { margin-bottom: 16px; gap: 12px; align-items: center; flex-wrap: wrap; }
.board-tools input[type=search] { max-width: 420px; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--surface); }
.segmented .seg { border: 0; border-radius: 8px; padding: 6px 14px; }
.segmented .seg.active { background: var(--accent); color: var(--accent-text); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kanban.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .kanban, .kanban.cols-4 { grid-template-columns: 1fr; } }
.kcol { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 160px; border: 2px solid transparent; transition: border-color .15s; }
.kcol.drop { border-color: var(--accent); border-style: dashed; }
.kcol header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kcol h2 { font-size: 15px; margin: 0; }
.kcount { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.kcards { display: grid; gap: 10px; }
.kempty { text-align: center; padding: 18px 6px; margin: 0; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 8px; cursor: default; }
.kcard[draggable=true] { cursor: grab; }
.kcard.dragging { opacity: .5; }
.kcard.overdue { border-left: 4px solid #b3261e; }
.kcard-title { font-weight: 700; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.kcard-title:hover { text-decoration: underline; }
.kcard-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.kcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.kcard-meta .icon { width: 14px; height: 14px; }
.kcard-status { font-size: 13px; padding: 6px 8px; }
.new-action-pop { position: relative; }
.new-action-pop > summary { list-style: none; cursor: pointer; }
.new-action-pop > summary::-webkit-details-marker { display: none; }
.new-action-pop .pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 90vw); z-index: 20; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.item-actions { border-left-color: #d08a1e; }
.mini-actions { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.mini-actions li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.small-btn { padding: 4px 10px; font-size: 13px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { border-left: 3px solid var(--border); padding-left: 12px; }
.decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.decisions h3 { margin: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.decisions .muted a { color: inherit; }
.overdue-row td:first-child { box-shadow: inset 4px 0 0 #b3261e; }

/* ==== KPIs ================================================================== */
:root { --st-good: #0ca30c; --st-warning: #fab219; --st-critical: #d03b3b; --delta-good: #006300; --delta-bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --delta-good: #0ca30c; --delta-bad: #ff8a80; } }
:root[data-theme="dark"] { --delta-good: #0ca30c; --delta-bad: #ff8a80; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.ktiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ktile { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.ktile:hover, .ktile:focus-visible { border-color: var(--accent); }
.ktile.dim { opacity: .6; }
.ktile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ktile-name { font-weight: 700; }
.ktile-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ktile-sub { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ktile-due { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--delta-bad); }
.ktile-due .icon { width: 14px; height: 14px; }
.kstatus { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text); }
.kstatus-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; }
.kstatus-icon .icon { width: 11px; height: 11px; stroke-width: 3; }
.k-good .kstatus-icon { background: var(--st-good); }
.k-warning .kstatus-icon { background: var(--st-warning); color: #0b0b0b; }
.k-critical .kstatus-icon { background: var(--st-critical); }
.k-none { color: var(--muted); font-weight: 500; }
.delta { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.delta.up-good { color: var(--delta-good); }
.delta.down-bad { color: var(--delta-bad); }
.spark { width: 100%; height: 36px; }
.spark-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .6; }
.spark-target { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.spark-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.kpi-summary { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.archived-kpis { margin-top: 20px; }
.archived-kpis summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.kpi-facts { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: -4px 0 16px; }
.kpi-big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-facts .facts { grid-template-columns: max-content 1fr max-content 1fr; }
@media (max-width: 700px) { .kpi-facts .facts { grid-template-columns: max-content 1fr; } }
.kchart figcaption { font-weight: 700; margin-bottom: 8px; }
.kc-wrap { position: relative; }
.kchart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.kc-grid { stroke: var(--border); stroke-width: 1; }
.kc-axis { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.kc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kc-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.kc-focus { stroke-width: 3; }
.kc-target { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 6 4; opacity: .7; }
.kc-warn { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.kc-ref-label { fill: var(--muted); font-size: 12px; font-weight: 600; }
.kc-cross { stroke: var(--muted); stroke-width: 1; }
.kc-overlay { cursor: crosshair; outline: none; }
.kc-overlay:focus-visible { stroke: var(--accent); stroke-width: 2; }
.kc-tip { position: absolute; transform: translate(-50%, -100%); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); display: grid; gap: 2px; font-size: 13px; pointer-events: none; white-space: nowrap; }
.kc-tip span:first-of-type { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.kpi-chip .icon { width: 14px; height: 14px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ==== Attachments ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.files { margin-top: 10px; display: grid; gap: 6px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.file-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-list li .icon { width: 15px; height: 15px; color: var(--muted); flex: none; }
.file-list .fname { font-weight: 600; overflow-wrap: anywhere; }
.wrap-btn { white-space: normal; max-width: 100%; text-align: left; }
.file-list li .file-notes { flex-basis: 100%; margin-left: 23px; min-width: 0; }
.file-notes summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.file-notes > .stack { margin-top: 6px; padding: 8px 10px; border-left: 2px solid var(--border); }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.note-list li { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.note-list .item-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.note-page { flex: none; min-width: 48px; }
.note-form .page-input { width: 80px; }
.file-list li.deleted .fname { text-decoration: line-through; color: var(--muted); }
.upload { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.upload label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==== Live meeting =========================================================== */
.live-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } .live-main { order: -1; } }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.live-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-pill.on { background: #e3f5e3; color: #0a6b0a; }
.live-pill.off { background: #fdecea; color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .live-pill.on { background: #123a12; color: #7ee07e; } }
.live-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.live-timer.over { color: var(--delta-bad); }
.live-controls { margin-bottom: 16px; gap: 8px; }
.live-agenda { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.live-item-btn { box-sizing: border-box; min-width: 0; display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font: inherit; color: inherit; }
button.live-item-btn { cursor: pointer; }
button.live-item-btn:hover { background: var(--surface-2); }
.live-agenda li.current .live-item-btn { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.live-main { min-height: 320px; display: grid; gap: 12px; align-content: start; }
.live-item-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live-item-head h2 { margin: 0; font-size: 24px; }
.live-desc { font-size: 17px; }
.live-waiting { text-align: center; padding: 48px 12px; }
.live-editor { border-top: 1px solid var(--border); padding-top: 12px; }
.hands { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.hands li { display: flex; align-items: center; gap: 8px; }
.presence { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.presence.on { background: var(--st-good); border-color: var(--st-good); }

/* ==== Landing: KPI -> item -> decision -> action chain ======================= */
.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 0; }
.chain-step { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.chain-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chain-label b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 12px; }
.chain-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; align-content: start; box-shadow: 0 8px 24px rgba(15, 30, 60, .08); }
.chain-card .ktile-value { font-size: 26px; }
.chain-card .kcard { box-shadow: none; }
.chain-item { display: flex; gap: 8px; align-items: baseline; }
.chain-arrow { align-self: center; font-size: 22px; color: var(--muted); padding-top: 26px; }
@media (max-width: 960px) {
  .chain { grid-template-columns: 1fr 1fr; }
  .chain-arrow { display: none; }
}
@media (max-width: 560px) { .chain { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.feature h3 { margin: 4px 0 0; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon { width: 22px; height: 22px; }
.use-mark { color: var(--accent); }
.stage:has(.chain) { max-width: 1120px; }
.chain-card { font-size: 15px; padding: 16px; }
.chain-label { font-size: 14px; }

/* ==== Annual cycle (vuosikello) ============================================== */
.annual-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 900px) { .annual-grid { grid-template-columns: 1fr; } }
.wheel-card { display: grid; justify-items: center; }
.wheel { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.wheel g { cursor: pointer; outline: none; }
.wheel path { fill: var(--surface-2); stroke: var(--surface); stroke-width: 2; transition: fill .15s; }
.wheel g:hover path { fill: var(--accent-soft); }
.wheel g.now path { fill: var(--accent-soft); }
.wheel g.sel path { fill: var(--accent); }
.wheel g:focus-visible path { stroke: var(--text); stroke-width: 3; }
.wheel-label { font-size: 13px; font-weight: 700; fill: var(--text); text-transform: capitalize; pointer-events: none; }
.wheel g.sel .wheel-label { fill: var(--accent-text); }
.wheel-count { fill: var(--surface); stroke: var(--accent); stroke-width: 2; pointer-events: none; }
.wheel-count-text { font-size: 11px; font-weight: 800; fill: var(--accent); pointer-events: none; }
.wheel g.sel .wheel-count { fill: var(--accent-text); stroke: var(--accent-text); }
.wheel-meeting { fill: var(--accent-2); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.wheel-centre { font-size: 22px; font-weight: 800; fill: var(--text); text-transform: capitalize; }
.wheel-sub { font-size: 14px; fill: var(--muted); }
.wheel-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend-count { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); display: inline-block; }
.legend-meeting { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); display: inline-block; margin-left: 10px; }
h3.sub { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 0; }
.annual-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.annual-topic { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.raise-row { gap: 8px; margin-top: 4px; }
.raise-row select { width: auto; flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; }
.month-picker { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.month-picker legend { font-weight: 700; padding: 0 4px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px 10px; }
.month-picker .row { flex-wrap: wrap; }
.month-grid .check { text-transform: capitalize; font-size: 14px; }
@media (max-width: 520px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.year-label { font-size: 20px; font-variant-numeric: tabular-nums; }
.flip .icon { transform: scaleX(-1); }
.cap::first-letter { text-transform: uppercase; }

/* ==== Evaluations ============================================================ */
.likert { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.likert legend, .likert > label { font-weight: 600; padding: 0; margin-bottom: 8px; }
.likert-row { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 6px; }
@media (max-width: 700px) { .likert-row { grid-template-columns: 1fr; } }
.likert-opt { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-align: center; background: var(--surface); }
@media (max-width: 700px) { .likert-opt { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; text-align: left; } }
.likert-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.likert-opt input { margin: 0; }
.likert-num { font-weight: 800; font-size: 18px; }
.likert-text { font-size: 12px; color: var(--muted); line-height: 1.3; }
.likert-opt.none { align-content: center; }
.q-edit { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.q-edit li { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 6px; align-items: center; }
@media (max-width: 700px) { .q-edit li { grid-template-columns: 1fr auto auto; } .q-edit li select { grid-column: 1 / -1; } }
.preview-q { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.meter { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.eval-result { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
@media (max-width: 600px) { .eval-result { grid-template-columns: 1fr; } }
.eval-avg strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.eval-result .bl-row { grid-template-columns: minmax(150px, 220px) 1fr 32px; }
.export-card { align-items: center; gap: 16px; margin-bottom: 16px; }
.export-card p { margin: 4px 0 0; }

/* ==== Tour =================================================================== */
.tour-head { padding-top: 32px; max-width: 760px; }
.tour-head h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; margin: 8px 0; }
.tour-steps { list-style: none; padding-top: 16px; padding-bottom: 32px; display: grid; gap: clamp(40px, 7vw, 88px); }
.tour-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.tour-step:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tour-step:nth-child(even) .tour-text { order: 2; }
@media (max-width: 860px) { .tour-step, .tour-step:nth-child(even) { grid-template-columns: 1fr; gap: 14px; } .tour-step:nth-child(even) .tour-text { order: 0; } }
.tour-text h2 { margin: 6px 0 8px; font-size: 24px; }
.tour-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.tour-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 40px rgb(15 23 42 / 10%); background: var(--surface); }
.tour-shot img { display: block; width: 100%; height: auto; }
.tour .cta2 .row { gap: 10px; flex-wrap: wrap; }

/* ==== Quick decisions ========================================================= */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chip-btn { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.quick-decision { display: grid; gap: 6px; }
.quick-decision textarea { min-height: 60px; }

/* ==== Home: meetings; screen view for the meeting room ======================= */
.live-now { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.live-now .row { align-items: center; gap: 12px; }
body.screen-mode { background: var(--surface); }
.screen { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 100vh; }
.scr-item { padding: 6vh 5vw; display: grid; align-content: center; }
.scr-item h1 { font-size: clamp(36px, 5vw, 76px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 24px; }
.scr-kicker { font-size: clamp(18px, 2vw, 30px); font-weight: 800; color: var(--accent); margin: 0 0 12px; }
.scr-sub, .scr-desc { font-size: clamp(18px, 1.8vw, 28px); color: var(--muted); max-width: 46ch; margin: 0; }
.scr-decision { margin-top: 32px; padding: 16px 20px; border-left: 6px solid var(--accent-2); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: clamp(18px, 1.6vw, 26px); }
.scr-decision p { margin: 6px 0 0; }
.scr-side { background: var(--surface-2); padding: 32px 28px; display: grid; align-content: start; gap: 24px; }
.scr-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.scr-timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.scr-timer.over { color: var(--delta-bad); }
.scr-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 18px; }
.scr-agenda li { display: grid; grid-template-columns: 48px 1fr; gap: 6px; color: var(--muted); }
.scr-agenda li.past { opacity: .55; }
.scr-agenda li.current { color: var(--text); font-weight: 800; }
.scr-agenda li.current span:first-child { color: var(--accent); }
.scr-present { color: var(--muted); }
@media (max-width: 900px) { .screen { grid-template-columns: 1fr; } }

/* ==== Calendar ================================================================ */
.cal-title { margin: 0; font-size: 28px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); gap: 1px; }
.cal-wd { background: var(--surface-2); padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.cal-day { background: var(--surface); min-height: 112px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.other .cal-num { opacity: .45; }
.cal-num { font-size: 13px; font-weight: 700; color: var(--muted); }
.cal-day.today .cal-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); }
.cal-ev { display: block; font-size: 12.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; color: var(--text); overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.cal-ev.meeting { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.cal-ev.meeting.draft { border-left-style: dashed; }
.cal-ev.meeting.cancelled { text-decoration: line-through; opacity: .6; }
.cal-ev.meeting.live { border-left-color: var(--st-good); }
.cal-ev.action { background: transparent; color: var(--muted); padding-left: 2px; }
.cal-ev.action .icon { width: 12px; height: 12px; }
.cal-ev.action.overdue { color: var(--delta-bad); font-weight: 600; }
.cal-body { display: block; font-size: 11px; color: var(--muted); }
.cal-legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.cal-legend .cal-ev { display: inline-flex; align-items: center; gap: 4px; }
.cal-list { display: none; }
.cal-list-day { border-top: 1px solid var(--border); padding: 12px 0; display: grid; gap: 6px; }
.cal-list-day h3 { margin: 0; font-size: 15px; text-transform: capitalize; }
.cal-list-day.today h3 { color: var(--accent); }
.cal-list .cal-ev { font-size: 15px; padding: 8px 10px; }
@media (max-width: 760px) { .cal-grid { display: none; } .cal-list { display: block; } }
.org-switch { width: auto; max-width: 200px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .org-switch { max-width: 120px; } }

/* ==== Registration ============================================================ */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reg-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }
.signup { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.signup .row { gap: 8px; flex-wrap: wrap; }
.signup select { width: auto; }
.cta2 .row { gap: 10px; flex-wrap: wrap; }

/* ==== Billing ================================================================== */
.price-line { font-size: 20px; font-weight: 700; margin: 0; }
/* Landing page pricing (Admin → Site) */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; position: relative; min-width: 0; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card h3 { margin: 0; }
.price-card p { margin: 0; }
.price-badge { justify-self: start; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.price-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.price-items li { display: flex; gap: 8px; align-items: flex-start; }
.price-items .icon { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 2px; }
.price-card .btn { justify-self: start; }
.price-note { margin-top: 14px; }
.price-admin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .price-admin { grid-template-columns: 1fr; } }
.methods { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.methods legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.price-input { width: 150px; }

/* ==== KPI chart types, ring, quick entry ===================================== */
.ktile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; }
.ktile:hover, .ktile:focus-within { border-color: var(--accent); }
.ktile-main { display: grid; gap: 6px; padding: 16px 16px 8px; color: inherit; text-decoration: none; }
.ktile-quick { padding: 0 16px 14px; }
.quick-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.quick-form select, .quick-form input { width: auto; flex: 1 1 90px; min-width: 0; padding: 6px 8px; font-size: 14px; }
.spark-bar { fill: var(--muted); opacity: .45; }
.spark-bar.last { fill: var(--accent); opacity: 1; }
.spark-pt { fill: var(--muted); opacity: .6; }
.kc-bar { fill: var(--accent); }
.ring { width: 120px; height: 120px; justify-self: center; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.ring-fill.k-good { stroke: var(--st-good); }
.ring-fill.k-warning { stroke: var(--st-warning); }
.ring-fill.k-critical { stroke: var(--st-critical); }
.ring-pct { font-size: 22px; font-weight: 800; fill: var(--text); }
.ring-sub { font-size: 11px; fill: var(--muted); }

/* ==== Slightly smaller on desktop (phones and the meeting screen view unchanged) */
@media screen and (min-width: 900px) { body:not(.screen-mode) { zoom: .9; } }

/* ==== Paged lists ============================================================= */
.paged { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pager-search { max-width: 360px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pager.single button { display: none; }
.admin-tiles { margin-bottom: 8px; }
.admin-panel { display: grid; gap: 16px; }
.panel-tools { align-items: center; gap: 12px; }
td.nowrap { white-space: nowrap; }
.tabs button.tab { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ==== Page guides ("How this works") ======================================= */
.guide {
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px;
  background: var(--surface); padding: 0 14px; margin: 4px 0 16px;
}
.guide > summary {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; cursor: pointer; list-style: none;
  padding: 10px 0; font-size: 14px; color: var(--muted);
}
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.guide > summary strong { color: var(--text); }
.guide[open] > summary { border-bottom: 1px solid var(--border); }
.guide ul { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.guide-foot { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.guide ul { max-width: 860px; }
.cal-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }

/* ==== Responsive fixes (scripts/responsive-check.mjs) ===================== */
/* Long unbroken words (names, titles) must wrap instead of widening the page. */
h1, h2, h3, .ktile-name, .scr-agenda span, .live-item-btn .spacer, .item-title, .kcard-title { overflow-wrap: anywhere; }
body { overflow-wrap: break-word; }
/* Top bar: the user's name is capped; on narrower screens only icons; wraps as a last resort. */
.topbar { flex-wrap: wrap; row-gap: 6px; }
.topbar .nav { flex-wrap: wrap; min-width: 0; }
.topbar .nav a .hide-sm { display: inline-block; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.page.narrow .topbar .hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1100px) { .topbar .hide-sm { display: inline-block !important; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* KPI tiles: name and status badge wrap inside the tile. */
.ktile { min-width: 0; }
.ktile-head { flex-wrap: wrap; }
.ktiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
/* Grids whose children may hold wide content (charts, tables). */
.admin-grid > *, .live-grid > *, .stack > * { min-width: 0; }
.admin-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 760px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
/* "New action" / "New KPI" pop-overs: a sheet on phones and tablets (the toolbar wraps, so a
   box anchored to its button could open off screen), centred and narrower on tablets. */
@media (max-width: 1023px) {
  .new-action-pop .pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .new-action-pop .pop { left: 0; right: 0; margin-inline: auto; width: min(520px, calc(100vw - 24px)); }
}
/* Annual cycle month picker at 320 px. */
@media (max-width: 360px) { .month-grid { grid-template-columns: repeat(3, 1fr); } }
/* Screen view: the side column never grows past its track. */
.screen { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.scr-agenda li { grid-template-columns: 48px minmax(0, 1fr); }
@media (max-width: 900px) { .screen { grid-template-columns: minmax(0, 1fr); } .scr-item { padding: 32px 16px; } }

/* ==== Subscription banner, code dialog, bot check ========================== */
.org-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin: -8px 0 20px; font-size: 14px; }
.org-banner > .icon { color: var(--accent); flex: none; }
.org-banner.warn { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.org-banner.warn > .icon { color: var(--danger); }
.code-dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 24px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 48px rgb(0 0 0 / 20%); }
.code-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.code-dialog h2 { margin: 0; }
.code-dialog .code-input { font: 600 22px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .2em; width: 100%; margin-top: 6px; }
button.danger-bg { background: var(--danger); border-color: var(--danger); color: #fff; }
.turnstile { min-height: 65px; }
.code-dialog label { display: grid; gap: 6px; }

/* ==== Walkthrough tour ===================================================== */
.tour-spot { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgb(15 23 42 / 45%); pointer-events: none; transition: all .25s ease; }
.tour-spot.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgb(15 23 42 / 45%); }
.tour-pop { position: fixed; z-index: 91; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 16px 40px rgb(0 0 0 / 22%); display: grid; gap: 10px; }
.tour-pop .tour-text { margin: 0; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* ==== Onboarding checklist ================================================== */
.onboarding { border-color: var(--accent); }
.onboarding .meter { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.onboarding .meter > span { display: block; height: 100%; background: var(--accent); }
.ob-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ob-steps li { display: flex; gap: 10px; align-items: center; }
.ob-steps li.ob-done { color: var(--muted); text-decoration: line-through; }
.ob-mark { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); }
.ob-steps li.ob-done .ob-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.ob-mark .icon { width: 14px; height: 14px; }
.mt-12 { margin-top: 12px; }
.tour-pop.docked { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }

/* ---- People: avatars, @mentions, notifications bell ---- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; line-height: 1; letter-spacing: 0; user-select: none; }
.av-xs { width: 18px; height: 18px; font-size: 8px; }
.av-sm { width: 24px; height: 24px; font-size: 10px; }
.av-md { width: 32px; height: 32px; font-size: 12px; }
.av-t0 { background: #4f46e5; } .av-t1 { background: #0f766e; } .av-t2 { background: #a16207; } .av-t3 { background: #be185d; }
.av-t4 { background: #1d4ed8; } .av-t5 { background: #7c3aed; } .av-t6 { background: #15803d; } .av-t7 { background: #475569; }
.person { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.person-name { overflow: hidden; text-overflow: ellipsis; }
.kcard-meta .person { max-width: 100%; }
.account-link .avatar { margin-right: 2px; }

.mention { display: inline; padding: 1px 6px 1px 2px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mention .avatar { vertical-align: -4px; margin-right: 3px; }
.mention-me { outline: 1px solid var(--accent); }
.mention-wrap { position: relative; }
.mention-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); max-width: 360px; }
.mention-menu li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; cursor: pointer; }
.mention-menu li.active, .mention-menu li:hover { background: var(--accent-soft); }

.bell-box { position: relative; display: inline-flex; }
.topbar button.bell { position: relative; background: var(--surface); border-color: var(--border); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
.bell-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bell-head h2 { margin: 0; font-size: inherit; flex: 1; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li + li { border-top: 1px solid var(--border); }
.bell-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 6px; background: none; border: 0; border-radius: 6px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.bell-item:hover, .bell-item:focus-visible { background: var(--surface-2); }
.bell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.bell-list li:not(.unread) .bell-text { color: var(--muted); }
.unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 640px) {
  .bell-box { position: static; }
  .bell-panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* Superadmin: email templates */
.var-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.var-chip { padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; font-family: ui-monospace, Menlo, monospace; cursor: pointer; }
.email-preview { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--surface-2); }
.email-subject { margin-bottom: 8px; overflow-wrap: anywhere; }
.email-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

/* Password field with show/hide button */
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 48px; }
.pw-field .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 8px; min-height: 0; color: var(--muted); }
.pw-field .pw-toggle:hover:not(:disabled) { color: var(--text); }
.pw-field .pw-toggle:active:not(:disabled) { transform: translateY(-50%); }

/* Annual calendar: a year of meetings at once */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.series-preview li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.series-preview li.dim { opacity: .6; }
.tpl-preview { margin-top: 6px; }

/* Home: upcoming meetings summary */
.upcoming .when-badge { display: flex; flex-direction: column; width: 184px; flex: none; gap: 2px; }
.upcoming .upcoming-meta { display: block; margin-top: 2px; }
@media (max-width: 640px) {
  .upcoming .meeting-row { flex-wrap: wrap; }
  .upcoming .when-badge { width: 100%; flex-direction: row; gap: 8px; align-items: baseline; width: 100%; }
}

/* AI connections (MCP) */
.mcp-scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mcp-scope li { display: flex; align-items: center; gap: 8px; }
.mcp-scope li .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
.mcp-scope li.no .icon { color: var(--muted); }
.help-group { margin-top: 16px; }
.help-group h3 { margin: 0 0 6px; }
.help-group ol { padding-left: 22px; }
.help-group li { margin: 4px 0; }

/* Home: archive tiles and list */
.archive-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.archive-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.archive-tile:hover { border-color: var(--accent); }
.archive-icon .icon { width: 18px; height: 18px; color: var(--accent); }
.archive-num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.archive-row { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.archive-row > summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; list-style: none; }
.archive-row > summary::-webkit-details-marker { display: none; }
.archive-row[open] > summary { border-bottom: 1px solid var(--border); }
.archive-detail { padding: 12px 14px; }
.archive-items { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.archive-files { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.archive-files .fname { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .archive-tiles { grid-template-columns: 1fr; }
  .archive-tile { grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; }
  .archive-num { font-size: 22px; }
}

/* KPI dashboard: personal order, sizes, hidden; full-screen view */
.dash-tools { align-items: center; flex-wrap: wrap; gap: 8px; }
.kdash .ktile { position: relative; }
.kdash .ks-wide { grid-column: span 2; }
.kdash .ks-large { grid-column: span 2; grid-row: span 2; }
.kdash .ks-full { grid-column: 1 / -1; }
.kdash .ks-large .ktile-value, .kdash .ks-full .ktile-value { font-size: 40px; }
.kdash .ks-large figure.kchart, .kdash .ks-full figure.kchart { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.kdash .ks-large figure.kchart figcaption, .kdash .ks-full figure.kchart figcaption { display: none; }
.kdash .khidden { opacity: .45; border-style: dashed; }
.kdash.editing .ktile { cursor: grab; }
.kdash.editing .ktile-main { pointer-events: none; }
.kdash .ktile.dragging { opacity: .4; }
.kdash .ktile.drop { border-color: var(--accent); }
.kdash-controls { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.kdash-grip { color: var(--muted); letter-spacing: -2px; padding: 0 6px; user-select: none; }
.ktile-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.ktile-actions .small-btn { padding: 4px 8px; }
@media (max-width: 640px) { .kdash .ks-wide, .kdash .ks-large { grid-column: span 1; grid-row: span 1; } }
dialog.kpi-zoom { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); }
dialog.kpi-zoom::backdrop { background: rgba(15, 23, 42, .55); }
.kpi-zoom-body { padding: 20px; }
.kpi-zoom-body h2 { margin: 0; }
.kpi-zoom-figures { display: flex; flex-wrap: wrap; gap: 24px; }
.kpi-zoom-figures > div { display: grid; gap: 2px; }

/* Site content (superadmin) and a custom logo */
.brand-img { width: 32px; height: 32px; object-fit: contain; }
.site-row { display: grid; gap: 8px; padding: 12px; }
.site-row label { display: grid; gap: 4px; }
.site-logo { align-items: center; gap: 12px; }
.site-logo-preview, .site-logo .brand-mark { width: 48px; height: 48px; object-fit: contain; }

/* Profile pictures */
img.avatar { object-fit: cover; background: var(--surface-2); }
.av-xl { width: 72px; height: 72px; font-size: 26px; }
.avatar-row { align-items: center; gap: 12px; flex-wrap: wrap; }

/* Actions with several people */
.people .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.people-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.assignee-picker summary { cursor: pointer; font-weight: 600; }
.assignee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin-top: 8px; }
.assignee-grid label { display: flex; align-items: center; gap: 6px; }

/* Writing mode: the agenda and minutes fill the screen */
body.focus-mode .topbar, body.focus-mode .org-banner, body.focus-mode .guide, body.focus-mode .back-link,
body.focus-mode .meeting-side, body.focus-mode .meeting-actions, body.focus-mode .site-foot, body.focus-mode .notice { display: none; }
body.focus-mode .page { max-width: none; padding-top: 56px; }
body.focus-mode .meeting-grid { grid-template-columns: minmax(0, 1fr); }
body.focus-mode .meeting-grid textarea { min-height: 28vh; font-size: inherit; }
.focus-exit { position: fixed; top: 12px; right: 16px; z-index: 50; }

/* Audit log (organisation admin) */
.audit-filters { flex-wrap: wrap; gap: 8px; align-items: center; }
.audit-filters select, .audit-filters input { width: auto; min-width: 0; }
.audit-target { overflow-wrap: anywhere; max-width: 520px; }

/* Drawn signatures */
.sig-pad { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; height: auto; border: 1px dashed var(--border); border-radius: var(--radius); background: #fff; touch-action: none; cursor: crosshair; }
.sig-current { display: grid; gap: 4px; }
.sig-image { max-width: 240px; max-height: 80px; object-fit: contain; }
.signatures .sig-box { display: grid; gap: 2px; align-content: end; }
@media print { .signatures .sig-image { max-width: 200px; } }

/* Company details and logo on the minutes */
.company-logo { align-items: center; gap: 12px; }
.company-logo-img { max-height: 56px; max-width: 200px; object-fit: contain; }
.rp-company { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.rp-logo { max-height: 56px; max-width: 180px; object-fit: contain; }
.home-logo img { max-height: 56px; max-width: 180px; object-fit: contain; }

/* ==== Side navigation (signed-in pages) =================================== */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; padding: 16px 12px 14px; overflow-y: auto; z-index: 60; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.side-head .brand { font-size: 20px; }
.side-head .brand-mark { width: 34px; height: 34px; }
.side-close { margin-left: auto; display: none; }
.side .brand-name { display: inline !important; }
.side-org { margin: 0; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.side .org-switch { max-width: none; width: 100%; }
.side-group { display: grid; gap: 2px; }
.side-label { margin: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 14px; min-width: 0; }
.side-link .icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.side-link:hover { background: var(--side-hover); }
.side-link.active { background: var(--side-active); color: var(--accent); }
.side-link.active .icon { color: var(--accent); }
.side-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-body.open > .side-body-link { font-weight: 700; }
.side-sub { display: grid; gap: 1px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 2px solid var(--border); }
.side-sub .side-link { padding: 6px 10px; font-size: 13px; }
.side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.side-backdrop { display: none; }
.app-top { gap: 8px; }
.app-top .menu-btn, .app-top .app-brand { display: none; }
.app-top .app-brand .brand { font-size: 19px; }
.app-top .app-brand .brand-mark { width: 30px; height: 30px; }

@media (min-width: 1024px) {
  body.with-side { padding-left: var(--side-w); }
  body.with-side .page.wide { max-width: none; }
  body.with-side .page { max-width: 1040px; }
  body.with-side .page.narrow { max-width: 560px; }
  /* The open body's sections are in the side navigation. */
  body.with-side .tabs.body-tabs { display: none; }
}
@media (max-width: 1023.98px) {
  /* Closed: off screen and hidden (not reachable with Tab or a screen reader). */
  .side { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; width: min(86vw, 300px); }
  body.side-open .side { transform: none; visibility: visible; transition: transform .2s ease; box-shadow: 0 10px 40px rgb(15 23 42 / 25%); }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: rgb(15 23 42 / 40%); border: 0; border-radius: 0; padding: 0; }
  body.side-open { overflow: hidden; }
  .side-close { display: inline-flex; }
  .app-top .menu-btn, .app-top .app-brand { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media print { .side, .side-backdrop { display: none !important; } body.with-side { padding-left: 0 !important; } }
body.focus-mode .side, body.focus-mode .side-backdrop { display: none; }
body.focus-mode.with-side { padding-left: 0; }

/* Memos */
.memo-tools { align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.memo-topics { flex-wrap: wrap; }
.memo-row { display: grid; gap: 6px; }
.memo-row h3 { margin: 0; }
.memo-row .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.memo-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
textarea.memo-text { min-height: 40vh; }
.kpi-overview .kpi-summary { display: flex; gap: 10px; flex-wrap: wrap; }
.small-title { font-size: 15px; margin: 6px 0 0; }

/* Organisation overview: a tile per section */
.org-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 12px; }
.org-tile { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.org-tile:hover { border-color: var(--accent); }
.org-tile .feature-icon { width: 36px; height: 36px; }

/* ==== New meeting from the calendar, add-to-calendar menu ================== */
dialog.form-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); color: var(--text); box-shadow: 0 20px 48px rgb(0 0 0 / 20%); }
dialog.form-dialog::backdrop { background: rgb(15 23 42 / 45%); }
dialog.form-dialog h2 { margin: 0; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 26px; }
.cal-add.icon-btn { width: 26px; height: 26px; min-height: 26px; padding: 0; opacity: 0; }
.cal-add .icon { width: 16px; height: 16px; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
@media (hover: none) { .cal-add.icon-btn { opacity: .7; } }
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-menu-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 220px; display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgb(0 0 0 / 12%); padding: 4px; }
.cal-menu-list a { padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.cal-menu-list a:hover, .cal-menu-list a:focus-visible { background: var(--side-hover); }

/* ==== Majsu, the mascot (public/majsu.js) ================================== */
:root {
  --mj-beam: #fed7aa; --mj-island: #cbd5e1; --mj-tower: #4f46e5; --mj-band: #eef2ff; --mj-ink: #1e1b4b;
  --mj-lamp: #fb923c; --mj-lamp-dim: #fed7aa; --mj-waves: #a5b4fc; --mj-ok: #059669; --mj-glint: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --mj-beam: #3b4170; --mj-island: #334155; --mj-tower: #818cf8; --mj-band: #e0e7ff; --mj-ink: #312e81;
    --mj-lamp: #fb923c; --mj-lamp-dim: #fdba74; --mj-waves: #6366f1; --mj-ok: #34d399; --mj-glint: #ffffff;
  }
}
.majsu { display: block; width: 100%; height: auto; overflow: visible; }
.majsu .mj-beam { fill: var(--mj-beam); }
.majsu .mj-island { fill: var(--mj-island); }
.majsu .mj-tower { fill: var(--mj-tower); }
.majsu .mj-band { fill: var(--mj-band); }
.majsu .mj-ink { fill: var(--mj-ink); }
.majsu .mj-roof { stroke: var(--mj-ink); stroke-width: 1.5; stroke-linejoin: round; }
.majsu .mj-line { stroke: var(--mj-ink); stroke-width: 1.6; }
.majsu .mj-lamp { fill: var(--mj-lamp); }
.majsu .mj-lamp.dim { fill: var(--mj-lamp-dim); }
.majsu .mj-glint { fill: var(--mj-glint); }
.majsu .mj-stroke { fill: none; stroke: var(--mj-ink); stroke-width: 2; stroke-linecap: round; }
.majsu .mj-arm { fill: none; stroke: var(--mj-tower); stroke-width: 4.5; stroke-linecap: round; }
.majsu .mj-hand { fill: var(--mj-tower); }
.majsu .mj-waves { fill: none; stroke: var(--mj-waves); stroke-width: 2.2; stroke-linecap: round; }
.majsu .mj-moon { fill: var(--mj-beam); }
.majsu .mj-ok { fill: var(--mj-ok); }
.majsu .mj-ok-mark { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* Life: a gentle bob, blinking, waving, a pulsing light. */
.majsu .mj-body { animation: mj-bob 3.6s ease-in-out infinite; }
.majsu .mj-eyes { transform-box: fill-box; transform-origin: center; animation: mj-blink 5.5s infinite; }
.majsu .mj-beam { animation: mj-beam 2.8s ease-in-out infinite; }
.majsu-greet .mj-arm-r { transform-box: view-box; transform-origin: 72px 82px; animation: mj-wave 1.6s ease-in-out infinite; }
.majsu-point .mj-arm-r { animation: mj-nudge 1.4s ease-in-out infinite; }
.majsu-done .mj-moon { animation: mj-beam 4s ease-in-out infinite; }
@keyframes mj-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes mj-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes mj-beam { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes mj-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(10deg); } }
@keyframes mj-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.5px); } }

/* Majsu with a speech bubble. */
.majsu-say { display: flex; align-items: flex-end; gap: 12px; max-width: 560px; }
.majsu-say.right { flex-direction: row-reverse; margin-left: auto; }
.majsu-fig { flex: none; width: 96px; }
.majsu-bubble { position: relative; margin: 0 0 22px; padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; line-height: 1.45; box-shadow: var(--shadow); }
.majsu-bubble::before { content: ''; position: absolute; bottom: 14px; left: -7px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.majsu-say.right .majsu-bubble::before { left: auto; right: -7px; transform: rotate(-135deg); }
/* Peek: rises from behind the edge, hops, waves; the bubble follows. */
.majsu-say.peek .majsu-fig { clip-path: inset(-200px -200px 0 -200px); padding-top: 12px; }
.majsu-say.peek .majsu { transform: translateY(105%); }
.majsu-say.peek .majsu-bubble { opacity: 0; transform: translateY(6px); }
.majsu-say.peek.in .majsu { animation: mj-peek 1s cubic-bezier(.3, 1.4, .5, 1) forwards, mj-hop 7s ease-in-out 2.5s infinite; }
.majsu-say.peek.in .majsu-bubble { animation: mj-bubble .4s ease-out .8s forwards; }
@keyframes mj-peek { 0% { transform: translateY(105%); } 70% { transform: translateY(-6%); } 100% { transform: translateY(0); } }
@keyframes mj-hop { 0%, 86%, 100% { transform: translateY(0); } 91% { transform: translateY(-9%); } 95% { transform: translateY(0); } 97% { transform: translateY(-3%); } }
@keyframes mj-bubble { to { opacity: 1; transform: translateY(0); } }

.landing .majsu-hero { margin-top: 28px; }
.landing .majsu-cta { margin-bottom: 20px; }
.landing .cta2 .majsu-bubble { color: var(--text); }
.help .majsu-say, .tour-head .majsu-say { margin: 8px 0 20px; }
.majsu-mini { width: 40px; flex: none; }
.guide > summary .majsu { width: 26px; flex: none; }
.tour-pop .majsu-head { display: flex; gap: 10px; align-items: flex-start; }
.tour-pop .majsu-head .tour-pop-text { margin: 0; }
.majsu-empty { display: flex; align-items: center; gap: 12px; }
.majsu-empty .majsu { width: 56px; flex: none; }

@media (max-width: 640px) {
  .majsu-fig { width: 72px; }
  .majsu-say { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .majsu *, .majsu-say.peek.in .majsu, .majsu-say.peek.in .majsu-bubble { animation: none !important; }
  .majsu-say.peek .majsu, .majsu-say.peek .majsu-bubble { transform: none; opacity: 1; }
}
/* Landing: Majsu peeks from behind the product visual and the tour card. */
.landing .majsu-hero { display: flex; justify-content: center; margin: 36px auto -22px; position: relative; z-index: 0; }
.landing .majsu-cta { position: relative; z-index: 0; margin: 40px 0 -20px; }
.landing .majsu-cta + .cta2 { position: relative; z-index: 1; }
.landing .majsu-fig, .tour-head .majsu-fig { width: 120px; }
.landing .majsu-hero .majsu-bubble { text-align: left; }
.majsu-say.right .majsu-fig .majsu { transform: scaleX(-1); }
.majsu-say.right.peek .majsu-fig .majsu { transform: scaleX(-1) translateY(105%); }
.majsu-say.right.peek.in .majsu-fig .majsu { animation: mj-peek-r 1s cubic-bezier(.3, 1.4, .5, 1) forwards, mj-hop-r 7s ease-in-out 2.5s infinite; }
@keyframes mj-peek-r { 0% { transform: scaleX(-1) translateY(105%); } 70% { transform: scaleX(-1) translateY(-6%); } 100% { transform: scaleX(-1) translateY(0); } }
@keyframes mj-hop-r { 0%, 86%, 100% { transform: scaleX(-1) translateY(0); } 91% { transform: scaleX(-1) translateY(-9%); } 95% { transform: scaleX(-1) translateY(0); } 97% { transform: scaleX(-1) translateY(-3%); } }
@media (max-width: 640px) { .landing .majsu-fig, .tour-head .majsu-fig { width: 84px; } }
@media (prefers-reduced-motion: reduce) { .majsu-say.right.peek .majsu-fig .majsu { transform: scaleX(-1); animation: none !important; } }
@media (max-width: 640px) { .cal-menu-list { position: static; margin-top: 4px; min-width: 0; } }

/* Pages of cards (account, subscription, help): cards side by side on wide screens. */
.page.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.page.cols > * { margin-top: 0; margin-bottom: 0; }
.page.cols > :not(.card) { grid-column: 1 / -1; }
.page.cols > .card { min-width: 0; }
.check input[type="radio"], .check input[type="checkbox"] { width: auto; flex: none; }
.methods .check { white-space: nowrap; }
button.side-link { justify-content: flex-start; color: var(--text); width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 550; font-size: 14px; min-height: 0; box-shadow: none; }
button.side-link:hover { background: var(--side-hover); }

/* Public header on phones: help icon (name kept for screen readers), "Register" and a short "Sign in". */
.show-sm { display: none; }
@media (max-width: 520px) {
  .show-sm { display: inline; }
  .head-help .hide-sm { display: inline-block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-head .head-inner .btn { padding-left: 10px; padding-right: 10px; }
}
.lang-select { display: none; width: auto; min-height: 0; padding: 6px 24px 6px 8px; font-size: 13px; font-weight: 600; }
@media (max-width: 520px) {
  .lang-switch .lang-btn { display: none; }
  .lang-select { display: block; }
}
@media (max-width: 360px) {
  .site-head .head-help { display: none; }
}
@media (max-width: 520px) {
  .site-head .lang-select { width: 62px; flex: none; padding-left: 8px; padding-right: 20px; background-position: right 6px center; }
}
@media (max-width: 460px) {
  .site-head .head-inner { gap: 4px; }
  .site-head .head-inner .btn { padding-left: 8px; padding-right: 8px; }
  .site-head .brand-mark { width: 30px; height: 30px; }
}
.notif-warn { color: var(--danger); font-weight: 600; }
.notif-warn .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Body sections on phones and tablets: wrapped chips, no sideways scrolling. */
@media (max-width: 1023px) {
  .tabs.body-tabs { flex-wrap: wrap; overflow: visible; gap: 6px; border-bottom: 0; }
  .tabs.body-tabs .tab { border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; margin: 0; font-size: 14px; background: var(--surface); }
  .tabs.body-tabs .tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
}
.presenter-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.presenter-tag .icon { width: 14px; height: 14px; }
.roles-box > summary { cursor: pointer; font-weight: 600; }
.roles-box[open] > summary { margin-bottom: 8px; }
.meeting-roles { margin-top: -6px; }
.signup-actions { flex-wrap: wrap; min-width: 0; }
.signup-actions select, .signup-actions input { width: auto; max-width: 100%; min-width: 0; }
@media (max-width: 520px) { .signup-actions > * { flex: 1 1 100%; } }
.org-type { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.org-type legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.ytj-note:empty { display: none; }
.ytj-note.ok { color: var(--ok); }

/* ==== Setup and modules ===================================================== */
.setup-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.setup-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.setup-step.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.setup-step.is-done .setup-num { background: var(--ok); color: #fff; }
.setup-step.is-skipped { opacity: .75; }
.setup-num { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; }
.setup-num .icon { width: 18px; height: 18px; }
.setup-body h2 { margin: 0; font-size: 18px; }
.module-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.module-row input { margin-top: 3px; width: auto; flex: none; }
.setup-body .row { flex-wrap: wrap; }
.setup-body .btn { white-space: normal; text-align: left; max-width: 100%; }
@media (max-width: 420px) { .setup-step { grid-template-columns: 1fr; padding: 14px; } }

.module-row > span { display: grid; gap: 2px; }
.import-dialog { width: min(820px, calc(100vw - 32px)); }
.import-dialog textarea { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
pre.code { background: var(--surface-2); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 12.5px; white-space: pre; }
.api-key { display: block; word-break: break-all; background: var(--surface-2); padding: 10px; border-radius: 8px; }

/* ==== Strategy, objectives, projects ======================================== */
.prog { display: flex; align-items: center; gap: 10px; }
.prog .meter { flex: 1; margin: 0; }
.prog-n { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 42px; text-align: right; }
.health-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: middle; }
.h-green { background: var(--ok); }
.h-yellow { background: #d08a1e; }
.h-red { background: var(--danger); }
.st-obj-on_track { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.st-obj-at_risk { background: color-mix(in srgb, #d08a1e 16%, transparent); color: #a86a0c; }
.st-obj-off_track { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.st-obj-done { background: var(--surface-2); color: var(--muted); }
.label-sm { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.vision { font-size: 20px; font-weight: 600; margin: 0; }
.strat-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.goal-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; flex: none; }
.strat-goal h2 { margin: 0; }
.strat-objs, .krs, .strat-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strat-obj { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 6px; }
.strat-projects li { font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.strat-objs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.strat-obj-card h2 { margin: 0; font-size: 18px; }
.kr { display: grid; gap: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wrap-row { flex-wrap: wrap; }
.wrap-row > input[name="atitle"], .wrap-row > input[name="mtitle"] { flex: 1 1 220px; min-width: 0; }
.milestones li { gap: 10px; }

/* ==== Risks ================================================================ */
.risk-score { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.lv-low { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok); }
.lv-medium { background: color-mix(in srgb, #d6b21e 26%, var(--surface)); color: #8a6d00; }
.lv-high { background: color-mix(in srgb, #e07b1a 26%, var(--surface)); color: #a4500a; }
.lv-critical { background: color-mix(in srgb, var(--danger) 22%, var(--surface)); color: var(--danger); }
.risk-matrix { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px; align-items: center; }
.rm-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; color: var(--muted); text-align: center; }
.rm-x { grid-column: 2; text-align: center; font-size: 12px; color: var(--muted); }
.rm-grid { display: grid; grid-template-columns: 20px repeat(5, minmax(0, 1fr)); gap: 4px; }
.rm-axis { font-size: 12px; color: var(--muted); text-align: center; align-self: center; }
.rm-cell { aspect-ratio: 1; border: 0; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 0; padding: 0; opacity: .55; }
.rm-cell.has { opacity: 1; }
.rm-cell.on { outline: 3px solid var(--text); outline-offset: 1px; }
.risk-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.risk-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.risk-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
@media (max-width: 900px) { .risk-layout { grid-template-columns: 1fr; } }
tr.dim td { opacity: .6; }

/* Policies */
.policy-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.approve-box { border-top: 1px solid var(--border); padding-top: 12px; }

/* Continuous improvement */
.chip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.review-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.review-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.review-stat strong { font-size: 20px; }
.review-stat.warn { border-color: var(--st-critical); }
.dev-path { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; counter-reset: dev; }
.dev-path li { counter-increment: dev; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.dev-path li::before { content: counter(dev) ". "; }
.dev-path li.done { border-color: var(--ok); color: var(--text); }
.dev-path li.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.status-tag.dev-closed { background: var(--ok); color: #fff; }
.status-tag.dev-verify, .status-tag.dev-action { background: var(--accent-soft); color: var(--accent); }

/* Landing: from strategy to action */
.section-lead.center { text-align: center; }
.story-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: story; }
.story-step { counter-increment: story; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.story-step::after { content: counter(story); position: absolute; top: 14px; right: 16px; font-weight: 700; color: var(--muted); }
.story-step h3 { margin: 4px 0 0; font-size: 18px; }
.story-step p { margin: 0; color: var(--muted); }
@media (max-width: 1100px) { .story-grid { grid-template-columns: repeat(2, 1fr); } .story-step:last-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .story-grid { grid-template-columns: 1fr; } }
.review-create input { width: auto; flex: 0 1 200px; min-width: 0; }

/* Help: contents + one reading column */
.help-grid { display: grid; grid-template-columns: 250px minmax(0, 860px); gap: 28px; align-items: start; }
.help-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.help-toc summary { font-weight: 700; padding: 6px 8px; cursor: pointer; list-style: none; }
.help-toc summary::-webkit-details-marker { display: none; }
.help-toc nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.help-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; }
.help-toc a:hover { background: var(--accent-soft); color: var(--accent); }
.help-toc a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.help-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.help-sec { scroll-margin-top: 16px; }
.help-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.help-groups .help-group { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.help-group p.muted { margin: 0 0 8px; }
.help-group ol, .help-group ul { margin-bottom: 0; }
@media (min-width: 901px) { .help-toc summary { pointer-events: none; } }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr; gap: 16px; }
  .help-toc { position: static; max-height: none; }
}
.small-head { font-size: 14px; margin: 8px 0 0; color: var(--muted); }

/* Landing: reference logos – same size, greyscale, six in a row, rows centred */
.ref-logos { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ref-logos li { flex: 0 0 calc((100% - 5 * 16px) / 6); height: 72px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; min-width: 0; }
.ref-logos img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ref-logos img { filter: grayscale(1) invert(1); } }
:root[data-theme="dark"] .ref-logos img { filter: grayscale(1) invert(1); }
@media (max-width: 860px) { .ref-logos li { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 420px) { .ref-logos li { flex-basis: calc((100% - 16px) / 2); } }
.ref-admin li { flex-direction: column; height: auto; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); }
.ref-admin img { opacity: 1; }
.ref-tools { gap: 2px; justify-content: center; }
.pack-table input { width: 100%; min-width: 0; }
.pack-table td:nth-child(3) input { max-width: 110px; }
.example-chain summary { cursor: pointer; }
.example-steps { padding-left: 1.3em; margin: 0; }
.example-steps li + li { margin-top: 6px; }

/* Progress bars (setup, strategy, OKR, projects): the fill is a span */
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.prog .meter { display: block; min-width: 60px; }

/* Code fields: the placeholder must not look like a typed code */
.code-input::placeholder { font-weight: 400; color: var(--muted); opacity: .55; letter-spacing: .05em; }
/* Overdue: said in words too, not only in red */
.due-word { font-weight: 600; }
.review-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--danger); }
/* Long Finnish words in narrow columns (live meeting, cards) */
.live-side, .live-agenda, .kcard, .card h2, .card h3 { overflow-wrap: anywhere; hyphens: auto; }

/* Tables on phones: each row as a card of "heading: value" lines, nothing cut off. */
@media (max-width: 600px) {
  .table.stack-sm thead { display: none; }
  .table.stack-sm, .table.stack-sm tbody, .table.stack-sm tr, .table.stack-sm td { display: block; width: 100%; }
  .table.stack-sm tr { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
  .table.stack-sm td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .table.stack-sm td::before { content: attr(data-label); flex: 0 0 auto; max-width: 45%; text-align: left; color: var(--muted); font-size: 13px; }
  .table.stack-sm td:not([data-label])::before, .table.stack-sm td[data-label=""]::before { content: none; }
  .table.stack-sm td:first-child { font-weight: 600; text-align: left; justify-content: flex-start; }
  .table.stack-sm td:first-child::before { content: none; }
  .table-wrap:has(.stack-sm) { overflow: visible; }
}

/* Touch screens: icon buttons big enough to hit (about 44 px). */
@media (pointer: coarse) {
  button.icon-btn, a.icon-btn { min-width: 44px; min-height: 44px; }
}
.manage-zone { border-style: dashed; }
@media (max-width: 600px) { .ksize-btn { display: none; } }

/* Meeting page: "More" menu for the less frequent actions */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; padding: 8px; gap: 2px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.more-pop > button, .more-pop > a, .more-pop > details > summary { justify-content: flex-start; width: 100%; text-align: left; }
@media (max-width: 640px) { .more-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; } }
/* Live meeting on a laptop (side menu open): agenda + current item side by side, the speaking
   queue and attendance below, so long Finnish words are not broken in narrow columns. */
@media (min-width: 1001px) and (max-width: 1499px) {
  .live-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .live-grid > .live-side { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* Row buttons in a card wrap onto lines instead of running off the screen. */
  .table.stack-sm td.actions, .table.stack-sm td:last-child:not([data-label]) { flex-wrap: wrap; justify-content: flex-start; gap: 6px; text-align: left; }
  .table.stack-sm td.actions > * { flex: 0 1 auto; max-width: 100%; }
}
/* Side menu: a body the admin manages but does not belong to */
.side-not-member { opacity: .65; }

/* Body roles under a person's name in the user list. */
.user-seats { display: block; overflow-wrap: anywhere; }

/* Public demo: the strip in the app and the landing section (flat colours). */
.demo-banner { border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.demo-banner .demo-switch { gap: 6px; flex-wrap: wrap; }
.demo-section { margin-top: 8px; }
.demo-card { padding: 24px; }
.demo-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-roles button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; white-space: normal; height: auto; padding: 14px 16px; }
.demo-roles button .small { font-weight: 400; opacity: .85; }
@media (max-width: 760px) { .demo-roles { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .demo-banner { gap: 6px 8px; padding: 8px 12px; font-size: 13px; }
  .demo-banner > .spacer { flex-basis: calc(100% - 30px); }
}

/* KPI year view and period targets. */
.year-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.year-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.year-stat strong { font-size: 20px; overflow-wrap: anywhere; }
.year-table td.up { color: var(--ok, #15803d); }
.year-table td.down { color: var(--danger); }
.targets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.targets-grid label { display: flex; flex-direction: column; gap: 2px; }
.targets-grid input { width: 100%; min-width: 0; }
@media (max-width: 760px) { .year-stats { grid-template-columns: 1fr; } }
.kpi-year .row > select, .targets-grid ~ .row select, details .row > select { width: auto; flex: none; }
.year-table td { white-space: nowrap; }
/* Phones: the status as its icon only (the text is in the title), so five columns fit. */
@media (max-width: 760px) {
  .year-table .kstatus { font-size: 0; gap: 0; padding: 2px; }
  .year-table .kstatus .kstatus-icon { font-size: 12px; }
  .year-table th, .year-table td { padding-left: 4px; padding-right: 4px; }
}

/* Quick start and year planning (quickstartView, planYearView) */
.plan-meeting { display: block; }
.plan-meeting.dim { opacity: .55; }
.plan-meeting .check { align-items: flex-start; }
.plan-topics { margin: 2px 0 0 28px; overflow-wrap: anywhere; }
.plan-topic-list li, .plan-kpis li { padding: 6px 0; }
.plan-kpis li { flex-wrap: wrap; gap: 8px; }
.plan-kpis .check { min-width: 0; overflow-wrap: anywhere; }
.plan-kpi-target input { width: 7.5em; }
.quickstart-card h2 { display: flex; align-items: center; gap: 6px; }
.quickstart-card { margin-top: 12px; }
