/* ==========================================================================
   FounderOS — dark, high-contrast assessment theme
   ========================================================================== */

:root {
    --bg: #07070c;
    --bg-2: #0c0c16;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .055);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    --text: #f2f2f7;
    --muted: #9d9daf;
    --dim: #6e6e83;

    --violet: #7c5cff;
    --violet-soft: #a58bff;
    --cyan: #33e1ed;
    --lime: #b8f34a;
    --amber: #ffb648;
    --rose: #ff5c7a;

    --grad: linear-gradient(135deg, var(--violet) 0%, #b06bff 45%, var(--cyan) 100%);
    --grad-text: linear-gradient(120deg, #fff 10%, var(--violet-soft) 55%, var(--cyan) 95%);

    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 24px 70px -28px rgba(0, 0, 0, .9);
    --glow: 0 0 0 1px rgba(124, 92, 255, .35), 0 18px 50px -20px rgba(124, 92, 255, .55);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-display: "Space Grotesk", "Inter", -apple-system, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient background ------------------------------------------------------ */

.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
}

.aurora::before {
    top: -22vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%);
    animation: drift 26s ease-in-out infinite alternate;
}

.aurora::after {
    bottom: -28vw;
    right: -14vw;
    background: radial-gradient(circle, rgba(51, 225, 237, .3), transparent 65%);
    animation: drift 34s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6vw, 5vh, 0) scale(1.18); }
}

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

/* Layout ------------------------------------------------------------------ */

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.stack > * + * { margin-top: 18px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 12, .72);
    border-bottom: 1px solid var(--line);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -.02em;
    color: var(--text);
    text-decoration: none;
}

.brand .mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 800;
    color: #0a0a12;
    box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .8);
}

.nav-links { display: flex; align-items: center; gap: 8px; }

/* Typography -------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -.028em;
    line-height: 1.13;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violet-soft);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet));
}

/* Buttons ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    background: var(--surface-2);
    cursor: pointer;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; }

.btn-primary {
    background: var(--grad);
    color: #08080f;
    font-weight: 700;
    box-shadow: 0 14px 40px -16px rgba(124, 92, 255, .95);
}

.btn-primary:hover { box-shadow: 0 20px 52px -16px rgba(124, 92, 255, 1); }

.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--violet); }

.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-danger { background: rgba(255, 92, 122, .12); border-color: rgba(255, 92, 122, .35); color: #ffb3c1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Cards ------------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(14px);
}

.card-lg { border-radius: var(--radius-lg); padding: 34px; }
.card-glow { box-shadow: var(--glow); border-color: rgba(124, 92, 255, .3); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
}

.pill-accent { color: var(--violet-soft); border-color: rgba(124, 92, 255, .38); background: rgba(124, 92, 255, .1); }
.pill-good { color: var(--lime); border-color: rgba(184, 243, 74, .35); background: rgba(184, 243, 74, .08); }
.pill-warn { color: var(--amber); border-color: rgba(255, 182, 72, .35); background: rgba(255, 182, 72, .08); }
.pill-bad { color: var(--rose); border-color: rgba(255, 92, 122, .35); background: rgba(255, 92, 122, .08); }

/* Landing ----------------------------------------------------------------- */

.hero { padding: clamp(70px, 12vw, 140px) 0 70px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 22px; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.hero-stat .n {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.hero-stat .l { font-size: .8rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.feature {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .25s ease, transform .25s ease;
}

.feature:hover { border-color: rgba(124, 92, 255, .4); transform: translateY(-3px); }

.feature .ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .3);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.step-row { display: flex; gap: 18px; align-items: flex-start; }

.step-num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--violet-soft);
}

/* Progress ---------------------------------------------------------------- */

.progress-bar {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.progress-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--grad);
    border-radius: 999px;
    transition: width .55s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 0 14px rgba(124, 92, 255, .8);
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}

.progress-head strong { color: var(--violet-soft); font-weight: 700; }

/* Question screen --------------------------------------------------------- */

.q-shell { padding: 44px 0 80px; min-height: 100vh; display: flex; flex-direction: column; }
.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 42px 0; }

.q-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.35rem);
    line-height: 1.24;
    letter-spacing: -.028em;
    margin: 0 0 14px;
    max-width: 24ch;
}

.q-helper { color: var(--muted); margin-bottom: 30px; max-width: 60ch; }

.options { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }

.option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 20px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.option:hover { border-color: rgba(124, 92, 255, .5); background: var(--surface-2); transform: translateX(3px); }

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option .key {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    transition: all .18s ease;
}

.option .opt-text { padding-top: 3px; font-size: 1.005rem; }

.option:has(input:checked) {
    border-color: var(--violet);
    background: linear-gradient(100deg, rgba(124, 92, 255, .16), rgba(51, 225, 237, .06));
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .5), 0 14px 40px -22px rgba(124, 92, 255, .9);
}

.option:has(input:checked) .key {
    background: var(--grad);
    color: #08080f;
    border-color: transparent;
}

.option:has(input:focus-visible) { outline: 2px solid var(--violet-soft); outline-offset: 3px; }

.q-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.kbd-hint { font-size: .78rem; color: var(--dim); }

kbd {
    font-family: var(--mono);
    font-size: .72rem;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

/* Forms ------------------------------------------------------------------- */

.field { display: block; margin-bottom: 18px; }

.field > label,
.label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 7px;
}

input[type="text"], input[type="email"], input[type="url"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
    font-size: .97rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

textarea { resize: vertical; min-height: 150px; line-height: 1.65; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(124, 92, 255, .07);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
}

input::placeholder, textarea::placeholder { color: #55556a; }

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239d9daf' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

select option { background: #14141f; color: var(--text); }

.checkbox-row { display: flex; align-items: flex-start; gap: 11px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 3px; }

.error { color: #ff97ab; font-size: .84rem; margin-top: 6px; }

.alert {
    padding: 14px 18px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .92rem;
    margin-bottom: 20px;
}

.alert-good { border-color: rgba(184, 243, 74, .35); background: rgba(184, 243, 74, .08); color: #dcf9a3; }
.alert-bad { border-color: rgba(255, 92, 122, .35); background: rgba(255, 92, 122, .08); color: #ffbccb; }
.alert-warn { border-color: rgba(255, 182, 72, .35); background: rgba(255, 182, 72, .08); color: #ffdfae; }

/* Analysing --------------------------------------------------------------- */

.analysing { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }

.orb {
    width: 132px;
    height: 132px;
    margin: 0 auto 36px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--violet), var(--cyan), #b06bff, var(--violet));
    animation: spin 2.6s linear infinite;
    position: relative;
    filter: blur(.4px);
}

.orb::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #08080f;
}

@keyframes spin { to { transform: rotate(360deg); } }

.analysing-steps { list-style: none; margin: 34px 0 0; padding: 0; display: inline-grid; gap: 12px; text-align: left; }

.analysing-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dim);
    font-size: .95rem;
    opacity: .35;
    transition: opacity .4s ease, color .4s ease;
}

.analysing-steps li.on { opacity: 1; color: var(--text); }
.analysing-steps li.done { opacity: .85; color: var(--muted); }

.analysing-steps .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    flex: none;
    transition: background .4s ease, box-shadow .4s ease;
}

.analysing-steps li.on .dot { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.analysing-steps li.done .dot { background: var(--lime); }

/* Report ------------------------------------------------------------------ */

.report-hero { padding: 60px 0 44px; }

.score-ring {
    --v: 0;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background:
        conic-gradient(var(--violet) calc(var(--v) * 1%), rgba(255, 255, 255, .07) 0),
        #0b0b14;
    position: relative;
    box-shadow: 0 0 60px -18px rgba(124, 92, 255, .8);
}

.score-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #0a0a13;
    border: 1px solid var(--line);
}

.score-ring .val { position: relative; text-align: center; }
.score-ring .n { font-family: var(--font-display); font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.score-ring .d { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 6px; max-width: 120px; line-height: 1.3; }

.report-section { padding: 44px 0; border-top: 1px solid var(--line); }
.report-section:first-of-type { border-top: 0; }

.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }

.section-num {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--violet-soft);
    letter-spacing: .1em;
}

/* Sections are only hidden once JS has armed the observer — without this the
   whole report would be invisible if the script fails to run. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

.bar-row { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bar-row:last-child { border-bottom: 0; }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.bar-name { font-weight: 600; font-size: .96rem; }
.bar-val { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }

.bar-fill {
    display: block;   /* a bare <span> is inline, which ignores width entirely */
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

.bar-fill.g { background: linear-gradient(90deg, #7ee08a, var(--lime)); }
.bar-fill.b { background: var(--grad); }
.bar-fill.a { background: linear-gradient(90deg, #ffca7a, var(--amber)); }
.bar-fill.r { background: linear-gradient(90deg, #ff8fa3, var(--rose)); }

.bar-note { font-size: .84rem; color: var(--dim); }

.stat-tile { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stat-tile .n { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat-tile .l { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-top: 9px; }

.finding { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.finding + .finding { margin-top: 14px; }
.finding h4 { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }

.finding .idx {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    flex: none;
}

.finding-good .idx { background: rgba(184, 243, 74, .16); color: var(--lime); }
.finding-bad .idx { background: rgba(255, 92, 122, .16); color: var(--rose); }
.finding-blind .idx { background: rgba(124, 92, 255, .18); color: var(--violet-soft); }

.finding-good { border-left: 2px solid rgba(184, 243, 74, .5); }
.finding-bad { border-left: 2px solid rgba(255, 92, 122, .5); }
.finding-blind { border-left: 2px solid rgba(124, 92, 255, .55); }

.detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.detail .k { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.detail p { font-size: .95rem; color: #d6d6e2; }

.bottleneck {
    border-radius: var(--radius-lg);
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 92, 122, .14), rgba(124, 92, 255, .1));
    border: 1px solid rgba(255, 92, 122, .32);
}

.bottleneck h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 16px; }

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }

.list-check .mk {
    flex: none;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    margin-top: 2px;
}

.list-stop .mk { background: rgba(255, 92, 122, .16); color: var(--rose); }
.list-start .mk { background: rgba(184, 243, 74, .16); color: var(--lime); }

.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); position: relative; }
.phase::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; border-radius: 2px; background: var(--grad); }
.phase .ph { font-family: var(--font-display); font-weight: 700; color: var(--violet-soft); font-size: .92rem; letter-spacing: .04em; }
.phase ol { margin: 14px 0 0; padding-left: 19px; display: grid; gap: 8px; font-size: .95rem; }

.quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.42rem);
    line-height: 1.55;
    letter-spacing: -.02em;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 92, 255, .13), rgba(51, 225, 237, .07));
    border: 1px solid rgba(124, 92, 255, .28);
}

/* Tables ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }

th {
    text-align: left;
    padding: 13px 16px;
    font-size: .72rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--dim);
    background: rgba(255, 255, 255, .035);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }

td a { color: var(--violet-soft); text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }

.score-chip {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    padding: 3px 9px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .86rem;
}

.chip-g { background: rgba(184, 243, 74, .14); color: var(--lime); }
.chip-b { background: rgba(124, 92, 255, .16); color: var(--violet-soft); }
.chip-a { background: rgba(255, 182, 72, .14); color: var(--amber); }
.chip-r { background: rgba(255, 92, 122, .14); color: var(--rose); }

/* Admin ------------------------------------------------------------------- */

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.admin-nav {
    border-right: 1px solid var(--line);
    padding: 22px 16px;
    background: rgba(255, 255, 255, .017);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 11px;
    color: var(--muted);
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
    transition: background .16s ease, color .16s ease;
}

.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.on { background: rgba(124, 92, 255, .14); color: var(--violet-soft); font-weight: 600; }
.admin-nav .sep { height: 1px; background: var(--line); margin: 14px 6px; }
.admin-main { padding: 32px 34px 70px; min-width: 0; }

.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }

details.qedit { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); margin-bottom: 9px; }
details.qedit > summary { padding: 14px 18px; cursor: pointer; list-style: none; display: flex; gap: 13px; align-items: center; }
details.qedit > summary::-webkit-details-marker { display: none; }
details.qedit[open] > summary { border-bottom: 1px solid var(--line); }
details.qedit .body { padding: 18px; }

.code-tag {
    font-family: var(--mono);
    font-size: .74rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(124, 92, 255, .14);
    color: var(--violet-soft);
    flex: none;
}

.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; margin-top: 60px; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; }
    .admin-nav .sep { display: none; }
    .admin-main { padding: 24px 20px 60px; }
    .score-ring { width: 150px; height: 150px; }
    .score-ring .n { font-size: 2.5rem; }
}

@media print {
    .aurora, .grid-overlay, .site-header, .no-print { display: none !important; }
    body { background: #fff; color: #111; }
    .card, .finding, .phase { border-color: #ddd; background: #fff; }
}
