/* ==========================================================
   AskLoop design system v2
   Display: Bricolage Grotesque  |  UI: Geist  |  Codes: Geist Mono
   ========================================================== */

/* Self-hosted fonts (OFL). Nothing is fetched from third parties. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/geist-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/geist-mono-700.woff2') format('woff2'); }
/* Latin Extended: macrons for te reo Maori (a e i o u with a bar) and other accented letters. Loads only when those letters appear. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2'); 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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2'); 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: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/geist-mono-500-latin-ext.woff2') format('woff2'); 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: 'Geist Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/geist-mono-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    /* Brand */
    --blue-deep: #004AAD;
    --blue: #1F44FF;
    --blue-600: #1734D6;
    --blue-50: #EEF1FF;
    --blue-100: #DCE3FF;
    --violet: #7B3FF2;
    --violet-50: #F3EDFF;
    --lime: #D4FF3F;
    --grad: linear-gradient(120deg, #004AAD 0%, #1F44FF 45%, #7B3FF2 100%);

    /* Ink & neutrals */
    --ink: #0A0E27;
    --ink-2: #3A3F5C;
    --muted: #767B96;
    --faint: #A6AABF;
    --line: #E7E5DF;
    --line-2: #D9D6CE;
    --canvas: #F7F6F2;
    --canvas-2: #EFEDE7;
    --surface: #FFFFFF;

    /* Status */
    --green: #12A150;
    --green-50: #E3F8EC;
    --red: #E5383B;
    --red-50: #FDECEC;
    --amber: #D98A00;
    --amber-50: #FFF4DB;

    /* Chart palette (validated for contrast on white and ink) */
    --c1: #3B5BFF; --c2: #8A4DFF; --c3: #FF4F8B; --c4: #FFAA1C;
    --c5: #16C79A; --c6: #00B4E6; --c7: #FF7A3D; --c8: #A8D916;

    /* Type */
    --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

    /* Shape */
    --r-sm: 8px;
    --r: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-full: 999px;

    --shadow-sm: 0 1px 2px rgba(10, 14, 39, .06);
    --shadow: 0 1px 2px rgba(10, 14, 39, .05), 0 4px 14px rgba(10, 14, 39, .06);
    --shadow-lg: 0 2px 6px rgba(10, 14, 39, .06), 0 18px 48px rgba(10, 14, 39, .12);
    --ring: 0 0 0 4px rgba(31, 68, 255, .18);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --t: 160ms var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--canvas);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--blue-100); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
    color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; font-weight: 700; }
h4 { font-size: 1rem; letter-spacing: -.01em; font-weight: 700; }

.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }
.page { flex: 1; padding: 36px 0 72px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--sm { gap: 8px; }
.stack > * + * { margin-top: 16px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 246, 242, .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t);
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 30px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 8px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    border-radius: var(--r);
    font-weight: 600; font-size: 14.5px; letter-spacing: -.005em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
    user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -6px rgba(31, 68, 255, .6); }
.btn--primary:hover:not(:disabled) { background: var(--blue-600); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover:not(:disabled) { background: #1C2145; }
.btn--outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover:not(:disabled) { border-color: var(--ink); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover:not(:disabled) { background: var(--canvas-2); color: var(--ink); }
.btn--danger { background: var(--red-50); color: var(--red); }
.btn--danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover:not(:disabled) { filter: brightness(.96); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--xl { height: 60px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 38px; padding: 0; }
.btn--icon.btn--sm { width: 32px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    font-size: 15px;
    transition: border-color var(--t), box-shadow var(--t);
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.input--lg { height: 56px; font-size: 17px; }
.input--code {
    height: 72px; text-align: center;
    font-family: var(--font-mono); font-weight: 700;
    font-size: 30px; letter-spacing: .28em; text-transform: uppercase;
    border-radius: var(--r-md);
    padding-left: .28em;
}
.input--code::placeholder { color: var(--line-2); letter-spacing: .28em; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row + .input-row { margin-top: 8px; }
.input-row__handle { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* Toggle */
.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--line-2); border-radius: var(--r-full); transition: background var(--t); cursor: pointer; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t); }
.toggle input:checked + span { background: var(--blue); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { box-shadow: var(--ring); }

.setting { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting__title { font-weight: 600; }
.setting__desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

/* ---------- Pills & badges ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px;
    border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; letter-spacing: .01em;
    background: var(--canvas-2); color: var(--ink-2);
    white-space: nowrap;
}
.pill--blue { background: var(--blue-50); color: var(--blue); }
.pill--violet { background: var(--violet-50); color: var(--violet); }
.pill--green { background: var(--green-50); color: var(--green); }
.pill--red { background: var(--red-50); color: var(--red); }
.pill--amber { background: var(--amber-50); color: var(--amber); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--live { background: var(--ink); color: var(--lime); }
.pill--live::before, .dot-live::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
    animation: pulse 1.6s ease-in-out infinite;
}
.dot-live { display: inline-flex; align-items: center; gap: 7px; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ---------- Tabs (segmented) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--canvas-2); border-radius: 14px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    height: 38px; padding: 0 16px; border-radius: 10px;
    font-weight: 600; font-size: 14px; color: var(--muted);
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    transition: background var(--t), color var(--t), box-shadow var(--t);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px 12px 14px;
    background: var(--ink); color: #fff;
    border-radius: 14px; box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500;
    animation: toastIn .35s var(--ease);
    max-width: calc(100vw - 32px);
}
.toast__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast__dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.toast--success .toast__dot { background: var(--lime); color: var(--ink); }
.toast--error .toast__dot { background: var(--red); }
.toast--info .toast__dot { background: var(--blue); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(10, 14, 39, .45);
    backdrop-filter: blur(4px);
    display: grid; place-items: center; padding: 20px;
    animation: fadeIn .2s ease;
}
.modal { background: var(--surface); border-radius: var(--r-xl); padding: 32px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease); max-height: calc(100vh - 40px); overflow: auto; }
.modal--wide { max-width: 640px; }
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty__art { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.empty__art .icon { width: 28px; height: 28px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 360px; margin: 0 auto; }

/* ---------- Type tiles ---------- */
.type-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.type-ico .icon { width: 20px; height: 20px; }
.type-ico--mc { background: #E6EBFF; color: #2A49F0; }
.type-ico--wordcloud { background: #F1E9FF; color: #7B3FF2; }
.type-ico--open { background: #FFE8F0; color: #E0346F; }
.type-ico--rating { background: #FFF2D9; color: #C27A00; }
.type-ico--survey { background: #DDF7EE; color: #0E9A72; }
.type-ico--qa { background: #E1F5FC; color: #0085AD; }

/* ---------- Result bars ---------- */
.bar { margin-bottom: 14px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.bar__label { font-weight: 600; }
.bar__val { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.bar__val b { color: var(--ink); font-weight: 700; }
.bar__track { height: 12px; border-radius: 6px; background: var(--canvas-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 6px; width: 0; transition: width .8s var(--ease); }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 110px; background: var(--canvas); border-radius: var(--r); padding: 14px 16px; }
.stat__v { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.stat__l { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* Word cloud */
.wordcloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; padding: 12px; }
.wordcloud span { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; animation: popIn .5s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }

/* Open text wall */
.wall { columns: 2 240px; column-gap: 12px; }
.wall__item { break-inside: avoid; margin-bottom: 12px; background: var(--canvas); border-radius: var(--r); padding: 14px 16px; font-size: 14.5px; animation: popIn .4s var(--ease) both; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--canvas-2), #F6F4EF, var(--canvas-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    body { font-size: 15px; }
    .container { padding: 0 18px; }
    .card { padding: 22px; border-radius: var(--r-md); }
    .page { padding: 24px 0 56px; }
    .modal { padding: 24px; border-radius: var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Legal documents ---------- */
.legal-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.045em; margin: 12px 0 10px; }
.legal-hero p { color: var(--ink-2); max-width: 46rem; font-size: 1.05rem; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.legal-toc { position: sticky; top: 92px; font-size: 13.5px; }
.legal-toc b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc a { display: block; color: var(--ink-2); font-weight: 500; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.legal-toc a:hover { color: var(--blue); border-left-color: var(--blue); text-decoration: none; }
.legal-body { max-width: 46rem; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-body h2 { font-size: 1.45rem; letter-spacing: -.03em; color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; color: var(--ink); margin: 24px 0 8px; }
.legal-body p, .legal-body ul, .legal-body ol { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.legal-body th, .legal-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--canvas); color: var(--ink); font-weight: 600; font-size: 13px; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-callout { background: var(--blue-50); border-radius: var(--r-md); padding: 18px 20px; color: var(--ink); margin: 0 0 24px; }
.legal-callout ul { margin: 8px 0 0; }
.legal-fill { background: #FFF4DB; color: #8A5A00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.footer a { color: var(--muted); font-weight: 500; }
.footer a:hover { color: var(--ink); }
.footer__links { display: flex; gap: 18px; }
@media (max-width: 860px) {
    .legal { grid-template-columns: 1fr; gap: 24px; }
    .legal-toc { position: static; display: none; }
}
@media print {
    .header, .legal-toc, .footer, .site-footer { display: none; }
    .legal { display: block; padding: 0; }
    .legal-hero { border: 0; padding: 0 0 16px; }
}

/* ---------- Quizzes, slides, images, leaderboard ---------- */
.type-ico--quiz, .type-ico--blank { background: #FFE9DC; color: #E05A12; }
.type-ico--slide { background: #ECEEF4; color: #3A4266; }
.bar--right .bar__label { color: #0E9A72; }
.bar--right .bar__fill { background: var(--c5) !important; }
.bar--wrong { opacity: .55; }
.bar--wrong .bar__fill { background: #B9BCCB !important; }

.lb { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--canvas-2); font-weight: 600; }
.lb-row__rank { font-family: var(--font-mono); font-weight: 700; color: var(--muted); text-align: center; }
.lb-row:nth-child(1) .lb-row__rank { color: #C27A00; }
.lb-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__score { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lb-row--me { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue); }
.lb-gap { height: 2px; margin: 4px 30%; border-top: 2px dotted var(--line-2); }

.cdown { position: relative; width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; }
.cdown svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cdown circle { fill: none; stroke-width: 4; }
.cdown__bg { stroke: var(--canvas-2); }
.cdown__fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.cdown span { font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.cdown--low .cdown__fg { stroke: var(--c3); }
.cdown--low span { color: var(--c3); }

/* Image field in the editor */
.img-field { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface); }
.img-field__thumb { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--canvas-2); flex-shrink: 0; }
.img-field__empty { width: 96px; height: 64px; border-radius: 10px; background: var(--canvas-2); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.img-field.drag { border-color: var(--blue); background: var(--blue-50); }

/* Quiz option rows in the editor */
.opt-correct { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: all var(--t); }
.opt-correct:hover { border-color: var(--c5); color: #9BDCC7; }
.opt-correct.on { background: var(--c5); border-color: var(--c5); color: #fff; }

/* Templates and the question bank */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.tpl { text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color var(--t), box-shadow var(--t); display: flex; flex-direction: column; gap: 6px; }
.tpl:hover { border-color: var(--line-2); }
.tpl.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.tpl h4 { font-size: 14.5px; }
.tpl p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tpl__types { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.tpl__types .type-ico { width: 22px; height: 22px; border-radius: 6px; }
.tpl__types .type-ico .icon { width: 12px; height: 12px; }

.bank { margin-top: 36px; }
.bank__bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 14px; }
.bank__search { position: relative; flex: 1; min-width: 200px; }
.bank__search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.bank__search .input { padding-left: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; background: var(--surface); color: var(--ink-2, var(--ink)); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bank__list { display: flex; flex-direction: column; gap: 6px; }
.bank-q { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.bank-q__t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.bank-q__m { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.icon--xs { width: 12px; height: 12px; vertical-align: -1px; }
.bar__label .icon, .col__label .icon { display: inline-block; vertical-align: -2px; }
.bar--right .bar__label .icon { stroke-width: 3; }

/* ---------- In-app help: tips and side panel ---------- */
.tip { margin: 0 0 22px; border: 1px solid #DCE3FF; background: #F5F7FF; border-radius: 14px; font-size: 14px; color: var(--ink-2, var(--ink)); }
.tip summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-weight: 600; color: var(--blue); user-select: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary > span:first-of-type { flex: 1; }
.tip__chev { display: inline-flex; transition: transform var(--t); }
.tip[open] .tip__chev { transform: rotate(180deg); }
.tip ul { margin: 0; padding: 0 16px 4px 36px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.tip__more { margin: 8px 14px 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--blue); }
.tip__more:hover { text-decoration: underline; }

.helpdrawer { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(480px, 100vw); z-index: 90; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 60px -20px rgba(10,14,39,.25); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .32s var(--ease); }
body.help-open .helpdrawer { transform: none; }
.helpdrawer__scrim { position: fixed; inset: 0; z-index: 89; background: rgba(10,14,39,.18); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.help-open .helpdrawer__scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1280px) { .helpdrawer__scrim { display: none; } body.help-open .page { margin-right: 480px; transition: margin .32s var(--ease); } }
.helpdrawer__head { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.helpdrawer__head b { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.helpdrawer__body { flex: 1; overflow: auto; padding: 22px 24px 40px; }
.helpdrawer__body h1 { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; }
.helpdrawer__body h2 { font-size: 1.2rem; margin: 26px 0 8px; letter-spacing: -.02em; }
.helpdrawer__body h3 { font-size: 1rem; margin: 18px 0 6px; }
.helpdrawer__body p, .helpdrawer__body li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2, var(--ink)); }
.helpdrawer__body ul, .helpdrawer__body ol { padding-left: 20px; margin: 8px 0; }
.helpdrawer__body ul { list-style: disc; } .helpdrawer__body ol { list-style: decimal; }
.helpdrawer__body li + li { margin-top: 4px; }
.helpdrawer__body p + p { margin-top: 10px; }
.helpdrawer__body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.helpdrawer__body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; display: block; overflow-x: auto; }
.helpdrawer__body th, .helpdrawer__body td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.helpdrawer__body .quick-answer { background: var(--blue-50); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.helpdrawer__body .quick-answer b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 4px; }
.helpdrawer__body blockquote { border-left: 3px solid var(--blue); padding-left: 12px; margin: 10px 0; }
.helpdrawer__body code { font-family: var(--font-mono); font-size: .9em; background: var(--canvas-2); padding: 1px 5px; border-radius: 5px; }
.helpdrawer__body .faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.helpdrawer__body .faq summary { font-weight: 600; cursor: pointer; font-size: 14.5px; }
.help-list { display: flex; flex-direction: column; gap: 6px; }
.help-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: var(--surface); }
.help-link:hover { border-color: var(--line-2); background: var(--canvas); }
a.help-link { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { .hide-sm { display: none; } }
@media (min-width: 1280px) { body.help-open .header { padding-right: 480px; transition: padding .32s var(--ease); } }

/* ---------- Brand kits editor ---------- */
.modal--xl { max-width: 1080px; width: calc(100vw - 32px); }
.bk { display: grid; grid-template-columns: 220px 1fr; gap: 26px; min-height: 520px; }
.bk__side { border-right: 1px solid var(--line); padding-right: 22px; }
.bk__list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.bk__item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1.5px solid transparent; }
.bk__item:hover { background: var(--canvas); }
.bk__item.on { border-color: var(--blue); background: var(--blue-50); }
.bk__item b { display: block; font-size: 14px; }
.bk__item small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.bk__sw { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; }
.bk__form .field { margin-bottom: 14px; }
.bk__col input[type=color] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; flex-shrink: 0; }
.bk__col .input { width: 120px; text-transform: uppercase; }
.bk__logo .img-field__empty, .bk__logoimg { width: 120px; height: 52px; }
.bk__logoimg { object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#F1EFEA 0 25%, #fff 0 50%) 50% / 14px 14px; padding: 4px; }
.bk__logo--dark .bk__logoimg { background: #0A0E27; }
.bk__bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk__bg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; }
.bk__bg.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.bk__bgsw { width: 100%; height: 30px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bk__bgsw--dark { background: #070A1F; }
.bk__bgsw--light { background: #FBFAF7; }
.bk__warn { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--amber-50); color: #7A5200; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.bk__warn p { display: flex; gap: 6px; align-items: flex-start; }
.bk__prev { position: sticky; top: 0; align-self: start; }

/* Preview: mini big screen and phone */
.bp { display: flex; flex-direction: column; gap: 14px; }
.bp__stage { aspect-ratio: 16 / 9; border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.bp__bar { display: flex; align-items: center; gap: 10px; font-size: 10px; opacity: .92; }
.bp__bar img { height: 16px; max-width: 90px; object-fit: contain; }
.bp__bar b { font-weight: 700; }
.bp__q { font-weight: 800; font-size: 19px; letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 10px; max-width: 20ch; }
.bp__cols { flex: 1; display: flex; align-items: flex-end; gap: 14px; }
.bp__cols > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.bp__pct { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.bp__col { border-radius: 6px 6px 2px 2px; }
.bp__lbl { font-size: 10px; font-weight: 600; margin-top: 5px; opacity: .85; }
.bp__phone { width: 210px; align-self: center; border-radius: 22px; border: 6px solid #0A0E27; background: var(--canvas); padding: 10px; color: var(--ink); }
.bp__ptop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bp__ptop img { height: 16px; max-width: 100px; object-fit: contain; }
.bp__ptop span { font-family: var(--font-mono); font-size: 9px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 2px 5px; background: #fff; }
.bp__card { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.bp__pill { display: inline-block; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.bp__pq { font-weight: 800; font-size: 15px; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 10px; }
.bp__opt { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; padding: 7px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.bp__opt span { width: 18px; height: 18px; border-radius: 5px; color: #fff; font-size: 9px; display: grid; place-items: center; font-family: var(--font-mono); }
.bp__btn { margin-top: 8px; color: #fff; text-align: center; font-weight: 700; font-size: 12px; padding: 9px; border-radius: 10px; }
.bp__made { text-align: center; font-size: 9px; color: var(--muted); margin-top: 8px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row select { flex: 1; }
@media (max-width: 860px) { .bk { grid-template-columns: 1fr; } .bk__side { border-right: 0; padding-right: 0; } .bk__grid { grid-template-columns: 1fr; } }

/* ---------- Result cards studio ---------- */
.modal--cs { max-width: 1180px; padding: 26px 28px; }
.cs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cs__head h3 { margin-bottom: 2px; }
.cs__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.cs__left { position: sticky; top: 0; }
.cs__sizes { margin-bottom: 12px; }
.cs__sizes .chip small { font-weight: 500; opacity: .6; margin-left: 4px; }
.cs__stage { background: repeating-conic-gradient(#F1EFEA 0 25%, #fff 0 50%) 50% / 18px 18px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; justify-content: center; align-items: center; height: min(62vh, 620px); }
.cs__stage canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(10,14,39,.18); }
.cs__right { max-height: calc(100vh - 170px); overflow: auto; padding-right: 6px; }
.cs__sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cs__sec:first-child { padding-top: 0; }
.cs__sec--tight { padding-top: 0; }
.cs__sec .setting { padding: 10px 0; border-bottom: 0; }
.cs__sec .setting__title { font-size: 14px; }
.cs__sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cs__words { max-height: 180px; overflow: auto; }
.cs__words .chip { text-decoration: line-through; opacity: .55; }
.cs__words .chip.on { text-decoration: none; opacity: 1; }
.cs__words .chip small { opacity: .6; margin-left: 3px; }
.cs__picks { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.cs__pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cs__pick:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.cs__pick input { margin-top: 3px; accent-color: var(--blue); }
.cs__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cs__prog { height: 6px; background: var(--line); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.cs__prog span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.cs__done { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--green-50); }
.cs__done .input { height: 38px; font-size: 13px; }
.cs__item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.cs__item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--canvas); }
.cs__item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs__item small { font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
    .cs__grid { grid-template-columns: 1fr; }
    .cs__left { position: static; }
    .cs__stage { height: 46vh; }
    .cs__right { max-height: none; overflow: visible; }
}

/* ---------- Results report ---------- */
.rp__grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.rp__opts { max-height: calc(100vh - 170px); overflow: auto; padding-right: 6px; }
.rp__opts .cs__sec .setting { padding: 10px 0; border-bottom: 0; }
.rp__slides { display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.rp__list { flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; min-height: 240px; }
.rp__group { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 6px; }
.rp__slide { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; opacity: .55; }
.rp__slide.on { opacity: 1; }
.rp__slide:hover { background: var(--canvas); }
.rp__slide input { accent-color: var(--blue); flex-shrink: 0; }
.rp__thumb { flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--canvas-2); box-shadow: 0 1px 4px rgba(10,14,39,.15); }
.rp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp__thumb--wide { width: 112px; height: 63px; }
.rp__thumb--square { width: 70px; height: 70px; }
.rp__thumb--portrait { width: 60px; height: 75px; }
.rp__txt { min-width: 0; }
.rp__txt b { display: block; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rp__txt small { color: var(--muted); font-size: 12.5px; }
.rp__foot { padding-top: 14px; }
.rp__foot .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .rp__grid { grid-template-columns: 1fr; } .rp__opts, .rp__slides { max-height: none; overflow: visible; } }

/* ---------- Feedback tab and panel ---------- */
.fb-tab { position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 8px; border-radius: 0 10px 10px 0; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; opacity: .78; box-shadow: 0 4px 14px rgba(10,14,39,.18); transition: opacity .2s, padding .2s; }
.fb-tab:hover, .fb-tab:focus-visible { opacity: 1; padding-right: 11px; }
body.help-open .fb-tab, body.fb-open .fb-tab, body:has(.modal-backdrop) .fb-tab { display: none; }
@media (max-width: 760px) { .fb-tab { display: none; } }
@media print { .fb-tab { display: none; } }
.fbpanel { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(400px, 100vw); z-index: 95; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 60px -20px rgba(10,14,39,.25); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s var(--ease); }
body.fb-open .fbpanel { transform: none; }
.fbpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fbpanel__head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.fbpanel__body { flex: 1; overflow: auto; padding: 22px 22px 28px; }
.fbpanel__body textarea { min-height: 140px; }
.fbpanel__ideas { margin-top: 28px; padding: 16px; border-radius: 14px; background: var(--canvas); }
.fbpanel__ideas p { margin: 4px 0 12px; }
.fbpanel__done { text-align: center; padding: 40px 10px; }
.fbpanel__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-bottom: 14px; }
.fbpanel__tick .icon { width: 26px; height: 26px; }
.helpdrawer__foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--canvas); }

/* ---------- Ideas board ---------- */
.ideas { display: flex; flex-direction: column; gap: 10px; }
.idea { display: flex; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.idea--hidden { opacity: .55; }
.idea__vote { flex: none; width: 58px; height: 64px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); transition: all .15s; }
.idea__vote b { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.idea__vote:hover { border-color: var(--blue); color: var(--blue); }
.idea__vote.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.idea__title { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.idea__details { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin-top: 4px; white-space: pre-line; }
.idea__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.idea__note { color: var(--ink-2); font-style: italic; }
.idea__admin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.idea__admin .input { height: 36px; font-size: 13.5px; width: auto; }
.idea__admin input.input { flex: 1; min-width: 200px; }
.idea-sim { margin: -6px 0 16px; padding: 12px; border-radius: 12px; background: var(--blue-50); }
.idea-sim__row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 4px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--blue-100); margin-top: 6px; }

/* Class stats on phones */
.cstats { margin: 14px 0 16px; padding: 14px; border-radius: 16px; background: var(--blue-50); }
.cstats__you { font-weight: 800; font-size: 17px; margin-bottom: 10px; color: var(--blue); }
.cstats__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.cstats__grid div { display: flex; flex-direction: column; }
.cstats__grid b { font-size: 16px; font-weight: 800; }
.cstats__grid span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cstats__n { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Macron keys for te reo Maori */
.macron-bar { position: fixed; z-index: 9999; display: flex; gap: 2px; padding: 4px; background: var(--ink); border-radius: 8px; box-shadow: 0 2px 8px rgba(10,14,39,.18); }
.macron-bar[hidden] { display: none; }
.macron-bar button { min-width: var(--mk, 30px); height: var(--mk, 30px); padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; font: 600 15px/1 'Geist', system-ui, sans-serif; cursor: pointer; }
.macron-bar button:hover, .macron-bar button:focus-visible { background: var(--lime); color: var(--ink); }
