/* ==========================================================================
   Pacer Academy — stylesheet
   Brand colours taken from the ML Pacer Coaching logo (navy + orange).
   ========================================================================== */

:root {
    --navy-900: #0a1c36;
    --navy-800: #0f2a4f;
    --navy-700: #163a6b;
    --navy-600: #1f4d8a;
    --orange-500: #f08a24;
    --orange-600: #e0761a;
    --orange-100: #fdeedd;
    --ink: #13213a;
    --text: #3b4658;
    --muted: #6b7587;
    --line: #e3e7ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --cream: #fbf8f2;
    --green-600: #1f8a5b;
    --green-100: #e3f5ec;
    --blue-600: #2563b8;
    --blue-100: #e6eefb;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Montserrat", "Inter", system-ui, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 42, 79, .06), 0 2px 8px rgba(15, 42, 79, .05);
    --shadow: 0 10px 30px -10px rgba(15, 42, 79, .22);
    --shadow-lg: 0 30px 60px -20px rgba(10, 28, 54, .45);
    --container: 1180px;
    --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 4px; }
mark { background: #ffe2bf; color: inherit; padding: 0 .15em; border-radius: 3px; }
kbd { font-family: var(--font-body); font-size: .72rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); background: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-600);
    margin-bottom: .8rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.accent { color: var(--orange-500); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(240, 138, 36, .7); }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { color: var(--orange-600); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-outline { color: var(--navy-800); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn-small { padding: .45rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; }
.text-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy-800); letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .6); }
.brand-light img { background: #fff; border-radius: 10px; padding: 6px; width: 68px; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: .5rem .9rem; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    color: var(--ink); text-decoration: none;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy-700); }
.main-nav a[aria-current="page"] { color: var(--orange-600); background: var(--orange-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: var(--bg-soft);
    color: var(--muted); font: inherit; font-size: .9rem;
    padding: .45rem .6rem .45rem .8rem; border-radius: 999px; cursor: pointer; min-width: 180px;
    transition: border-color .15s ease, background .15s ease;
}
.search-trigger:hover { border-color: var(--navy-600); background: #fff; }
.search-trigger span { margin-right: auto; }
.search-trigger svg, .hero-search svg, .search-dialog-form svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10, 28, 54, .55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: flex-start;
    padding: 10vh 16px 16px;
    animation: fade .15s ease;
}
.search-overlay[hidden] { display: none; }
.search-dialog { width: 100%; max-width: 680px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease; }
.search-dialog-form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-dialog-form input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; min-width: 0; }
.search-dialog-form input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 8px; font-size: .75rem; color: var(--muted); padding: 4px 8px; cursor: pointer; }
.live-results { max-height: min(60vh, 520px); overflow-y: auto; }
.live-results:empty { display: none; }
.live-result { display: block; padding: 14px 20px; text-decoration: none; border-bottom: 1px solid var(--line); color: var(--text); }
.live-result:last-child { border-bottom: 0; }
.live-result:hover, .live-result.is-active { background: var(--bg-soft); color: var(--text); }
.live-result-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); }
.live-result-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.live-result-snippet { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.live-footer { display: block; padding: 12px 20px; font-size: .9rem; font-weight: 600; background: var(--bg-soft); text-decoration: none; }
.live-empty { padding: 22px 20px; color: var(--muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
    color: rgba(255, 255, 255, .82);
    padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(240, 138, 36, .18), transparent 60%),
        radial-gradient(700px 500px at 10% 110%, rgba(31, 77, 138, .55), transparent 60%);
}
.hero-bg::after {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%;
    height: 90%; border-radius: 50%; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .lead { color: rgba(255, 255, 255, .75); margin-bottom: 2rem; }
.hero .eyebrow { color: var(--orange-500); }

.hero-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-lg); max-width: 560px; color: var(--muted);
}
.hero-search input { flex: 1; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; min-width: 0; padding: .55rem 0; }
.hero-search-light { box-shadow: var(--shadow); border: 1px solid var(--line); margin: 1.5rem 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.hero-visual { position: relative; height: 420px; }
.ring {
    position: absolute; inset: 0; margin: auto; width: 380px; height: 380px; border-radius: 50%;
    border: 2px dashed rgba(240, 138, 36, .7);
    animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pace-card {
    position: absolute; display: flex; flex-direction: column; gap: 2px;
    background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 16px;
    padding: 16px 20px; box-shadow: var(--shadow-lg); min-width: 200px;
    animation: float 6s ease-in-out infinite;
}
.pace-card-1 { top: 30px; left: 0; }
.pace-card-2 { top: 160px; right: 0; animation-delay: -2s; }
.pace-card-3 { bottom: 30px; left: 40px; background: var(--orange-500); color: #fff; min-width: 0; animation-delay: -4s; }
.pace-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.pace-time { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.pace-detail { font-size: .85rem; color: var(--muted); }
.pace-card-3 .pace-detail { color: rgba(255, 255, 255, .9); }
.pace-flag { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .12em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: 40px 0 80px; }
.section-tint { background: var(--bg-soft); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 { margin-bottom: .4rem; }
.section-intro { color: var(--muted); font-size: 1.08rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; }
.section-head-row h2 { margin-bottom: 0; }

/* Journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.journey-step a {
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; text-decoration: none; color: var(--text); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.journey-step a::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); transition: width .3s ease;
}
.journey-step a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.journey-step a:hover::before { width: 100%; }
.journey-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--orange-100); line-height: 1; margin-bottom: 14px; -webkit-text-stroke: 1.5px var(--orange-500); }
.journey-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.journey-desc { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.journey-count { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--navy-600); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-cover {
    position: relative; display: flex; align-items: flex-end; justify-content: space-between;
    height: 160px; padding: 18px 22px; overflow: hidden; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.card-cover::before {
    content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .28); transition: transform .6s ease;
}
.card:hover .card-cover::before { transform: rotate(60deg); }
.cover-icon { position: relative; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.cover-icon svg { width: 100%; height: 100%; }
.cover-part { position: relative; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.cover-pacing-philosophy { background: linear-gradient(135deg, #f39a3d, #d9681a); }
.cover-recruitment { background: linear-gradient(135deg, #7a55c7, #4b2f95); }
.cover-technology { background: linear-gradient(135deg, #2f74cf, #173f86); }
.cover-training { background: linear-gradient(135deg, #2aa26d, #146a46); }
.cover-race-day { background: linear-gradient(135deg, #1f4d8a, #0a1c36); }
.cover-race-day .cover-icon { background: var(--orange-500); }
.cover-after-the-race { background: linear-gradient(135deg, #e6a91d, #b77a06); }
.card-body { display: flex; flex-direction: column; padding: 24px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.card-title { font-size: 1.15rem; margin-bottom: .55rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--orange-600); }
.card-summary { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.card-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--navy-700); }
.card-link span { display: inline-block; transition: transform .2s ease; }
.card:hover .card-link span { transform: translateX(4px); }
.card-featured { border-top: 4px solid var(--orange-500); }

/* Pills, chips, tags */
.pill {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px; text-decoration: none;
    background: var(--blue-100); color: var(--blue-600);
}
.pill:hover { filter: brightness(.96); }
.pill-pacing-philosophy { background: var(--orange-100); color: #b65a0c; }
.pill-recruitment { background: #efe8fb; color: #6a3fb5; }
.pill-technology { background: var(--blue-100); color: var(--blue-600); }
.pill-training { background: var(--green-100); color: var(--green-600); }
.pill-race-day { background: #fde7e7; color: #c0392b; }
.pill-after-the-race { background: #fff4d6; color: #9a6a00; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: .5rem 1rem; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: .9rem; transition: all .15s ease;
}
.chip span { font-size: .75rem; color: var(--muted); background: var(--bg-soft); padding: 0 .5rem; border-radius: 999px; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.is-active span { background: rgba(255, 255, 255, .15); color: #fff; }
.chip-small { padding: .3rem .8rem; font-size: .82rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.tag { font-size: .85rem; padding: .3rem .75rem; border-radius: 8px; background: var(--bg-soft); color: var(--muted); text-decoration: none; }
.tag:hover { background: var(--orange-100); color: var(--orange-600); }

/* Quote */
.quote-section { background: var(--navy-800); position: relative; overflow: hidden; }
.quote-section::before {
    content: "\201C"; position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
    font-family: Georgia, serif; font-size: 280px; color: rgba(240, 138, 36, .15); line-height: 1;
}
.big-quote { position: relative; margin: 0 auto; max-width: 860px; text-align: center; }
.big-quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; color: #fff; line-height: 1.45; }
.big-quote em { color: var(--orange-500); font-style: normal; }
.big-quote footer { color: rgba(255, 255, 255, .6); font-size: .95rem; margin-top: 1.2rem; }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.about-logo { background: var(--cream); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero-center { text-align: center; padding: 96px 0; border: 0; }
.page-hero-center .lead { margin-left: auto; margin-right: auto; }
.page-hero-center .hero-search { margin-left: auto; margin-right: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-600); }
.suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }

/* ---------- Article ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); }
.article-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 48px 0 40px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: .9rem; color: var(--muted); margin-top: 1.4rem; }
.author-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.author-chip img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 24px; padding-bottom: 80px; }
.article-layout.has-toc { grid-template-columns: 240px minmax(0, 760px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 18px; }
.toc-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 .55rem; }
.toc .toc-l3 { padding-left: 12px; font-size: .85rem; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--orange-600); }
.toc a.is-active { font-weight: 600; }

.prose { font-size: 1.08rem; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; font-size: 1.65rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { margin-left: .4em; color: var(--line); text-decoration: none; opacity: 0; transition: opacity .15s ease; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .6em; padding-left: .2em; }
.prose ul li::marker { color: var(--orange-500); }
.prose ol li::marker { color: var(--orange-600); font-weight: 700; font-family: var(--font-head); }
.prose blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--orange-500); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }

.figure { margin: 2em 0; }
.figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.figure figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .7em; font-style: italic; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.prose th { background: var(--navy-800); color: #fff; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: .8em 1em; vertical-align: bottom; }
.prose td { padding: .75em 1em; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--bg-soft); }
.prose td strong { color: var(--navy-700); }

.callout { position: relative; margin: 1.8em 0; padding: 1.1em 1.3em 1.1em 1.3em; border-radius: var(--radius-sm); border: 1px solid; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35em; }
.callout-note { background: var(--blue-100); border-color: #c9daf5; }
.callout-note .callout-label { color: var(--blue-600); }
.callout-tip { background: var(--green-100); border-color: #bfe6d2; }
.callout-tip .callout-label { color: var(--green-600); }
.callout-warning { background: var(--orange-100); border-color: #f7cfa6; }
.callout-warning .callout-label { color: var(--orange-600); }
.callout-quote { background: transparent; border: 0; border-left: 4px solid var(--orange-500); border-radius: 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--navy-800); padding: .4em 0 .4em 1.2em; }
.callout-quote strong { color: var(--orange-600); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.share span { margin-right: 6px; font-weight: 600; }

.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.series-link { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: all .2s ease; }
.series-link span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-600); font-weight: 700; }
.series-link strong { font-family: var(--font-head); color: var(--ink); line-height: 1.35; }
.series-link:hover { border-color: var(--orange-500); box-shadow: var(--shadow); }
.series-link.next { text-align: right; grid-column: 2; }

/* ---------- Search page ---------- */
.result-count { color: var(--muted); margin-bottom: 24px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 24px 0; border-bottom: 1px solid var(--line); }
.search-result h2 { font-size: 1.3rem; margin: .6rem 0 .4rem; }
.search-result h2 a { color: var(--ink); text-decoration: none; }
.search-result h2 a:hover { color: var(--orange-600); }
.search-result p { color: var(--muted); margin: 0; font-size: .97rem; }

.empty-state { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--navy-700); }
.pagination a[aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.profile-card img { background: var(--cream); border-radius: 16px; padding: 12px; margin: 0 auto 20px; }
.profile-card h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.profile-role { color: var(--muted); font-size: .9rem; }
.facts { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; font-size: .92rem; }
.facts li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts strong { min-width: 72px; color: var(--orange-600); font-family: var(--font-head); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 420px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-motto strong { color: var(--orange-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .article-layout.has-toc { grid-template-columns: minmax(0, 760px); }
    .toc { display: none; }
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .journey, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .about-teaser { grid-template-columns: 1fr; gap: 32px; }
    .about-logo { max-width: 300px; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-aside { position: static; max-width: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 12px 16px 20px; display: none;
    }
    .main-nav.is-open { display: block; animation: fade .15s ease; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: .8rem 1rem; border-radius: 10px; }
    .search-trigger { min-width: 0; padding: .55rem; width: 44px; height: 44px; justify-content: center; }
    .search-trigger span, .search-trigger kbd { display: none; }
    .brand-sub { display: none; }
    .container { padding: 0 16px; }
    .journey, .card-grid { grid-template-columns: 1fr; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .hero-search { padding-left: 16px; }
    .hero-search .btn { padding: .7rem 1rem; }
    .series-nav { grid-template-columns: 1fr; }
    .series-link.next { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .prose { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .toc, .share, .series-nav, .reading-progress, .search-overlay { display: none !important; }
    .article-layout { display: block; }
    body { font-size: 12pt; }
}

/* ==========================================================================
   Member accounts, read tracking and cover photos
   ========================================================================== */

/* Header */
.signin-link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .5rem .6rem; }
.signin-link:hover { color: var(--orange-600); }
.join-btn { padding: .55rem 1rem; }
.account-link {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    transition: border-color .15s ease;
}
.account-link:hover, .account-link.is-active { border-color: var(--orange-500); color: var(--ink); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; font-weight: 800; font-size: .9rem;
}
.nav-mobile-only { display: none; }

.badge { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; line-height: 1.2; }
.badge-new { background: var(--orange-500); color: #fff; }
.account-link .badge-new { min-width: 20px; padding: .2rem .4rem; }

/* Flash messages and alerts */
.flash-wrap { padding-top: 16px; }
.alert { position: relative; padding: .9rem 2.6rem .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: var(--green-100); border-color: #bfe6d2; color: #145c3c; }
.alert-error { background: #fde7e7; border-color: #f5c2c2; color: #9b2c2c; }
.alert-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.3rem; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }
.alert-close:hover { opacity: 1; }

/* Auth pages */
.auth-page { padding: clamp(40px, 6vw, 80px) 0; background: linear-gradient(180deg, var(--bg-soft), #fff 60%); }
.auth-grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
.auth-narrow { max-width: 480px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h2, .auth-card .h2 { font-size: 1.6rem; }
.auth-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.benefits { list-style: none; padding: 0; margin: 24px 0 0; }
.benefits li { position: relative; padding: 0 0 16px 40px; color: var(--muted); }
.benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.benefits strong { color: var(--ink); }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: .95rem; }
.muted { color: var(--muted); }

.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid #cfd6e1; border-radius: 10px; padding: .75rem .9rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(31, 77, 138, .12); }
.form input:disabled { background: var(--bg-soft); color: var(--muted); }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: .9rem; line-height: 1.5; }
.field-check input { margin-top: 4px; accent-color: var(--orange-500); width: 16px; height: 16px; flex-shrink: 0; }
.field-hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .85rem; color: #c0392b; margin: 6px 0 0; }
.has-error input { border-color: #e57373; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a53125; color: #fff; }

/* Read toggle */
.read-toggle-form { margin: 0; }
.read-toggle {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
    font-family: var(--font-head); font-weight: 700; font-size: .82rem;
    padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy-700);
    transition: all .15s ease;
}
.read-toggle:hover { border-color: var(--navy-700); }
.read-toggle .when-read { display: none; }
.read-toggle.is-read { background: var(--green-100); border-color: #9fd8bd; color: var(--green-600); }
.read-toggle.is-read .when-read { display: inline; }
.read-toggle.is-read .when-unread { display: none; }
.read-toggle-lg { font-size: .92rem; padding: .7rem 1.2rem; }
.read-toggle:disabled { opacity: .6; cursor: wait; }
.hero-read { margin-top: 1.4rem; }

.finish-box {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
}
.finish-box strong { display: block; font-family: var(--font-head); color: var(--ink); }
.finish-box span { color: var(--muted); font-size: .92rem; }
.finish-box-cta { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); border: 0; }
.finish-box-cta strong { color: #fff; }
.finish-box-cta span { color: rgba(255, 255, 255, .75); }
.finish-actions { display: flex; gap: 10px; }
.finish-box-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* Article hero with cover photo */
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.article-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }

/* Card cover photos and status */
.card-cover.has-photo { height: 160px; }
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 54, 0) 40%, rgba(10, 28, 54, .7)); }
.card-cover.has-photo::before { display: none; }
.card-cover.has-photo .cover-icon, .card-cover.has-photo .cover-part { z-index: 1; }
.card-cover.has-photo .cover-icon { background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.cover-status { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.status-read { background: #fff; color: var(--green-600); }
.status-new { background: var(--orange-500); color: #fff; box-shadow: 0 4px 12px rgba(240, 138, 36, .5); }
.card.is-read .card-title a { color: var(--muted); }

.figure-small { max-width: 360px; margin-left: auto; margin-right: auto; }
.figure-small img { border: 0; }

/* About page */
.about-photo { width: 100%; max-width: 340px; aspect-ratio: 480 / 511; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.profile-photo { width: 100%; border-radius: 16px; margin-bottom: 20px; aspect-ratio: 480 / 511; object-fit: cover; }
.profile-card .profile-logo { max-width: 160px; margin: 24px auto 0; background: var(--cream); border-radius: 12px; padding: 8px; }

/* Account / progress page */
.account-hero { padding-bottom: 40px; }
.account-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.account-hero .lead { margin-bottom: 1.4rem; }
.new-link { color: var(--orange-600); font-weight: 600; }
.done-msg { font-weight: 600; color: var(--green-600); }
.progress-ring { position: relative; width: 168px; height: 168px; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--orange-500); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label span { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--navy-800); line-height: 1; }
.ring-label small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--navy-800); line-height: 1.1; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-new .stat-num { color: var(--orange-600); }

.progress-group { margin-bottom: 32px; }
.progress-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress-group-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin: 0; }
.progress-group-head .cover-icon { width: 36px; height: 36px; padding: 8px; color: #fff; border-radius: 10px; }
.group-count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.progress-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.progress-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); transition: background .15s ease; }
.progress-item:first-child { border-top: 0; }
.progress-item:hover { background: var(--bg-soft); }
.status-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd6e1; flex-shrink: 0; position: relative; transition: all .2s ease; }
.progress-item.is-read .status-dot { background: var(--green-600); border-color: var(--green-600); }
.progress-item.is-read .status-dot::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.progress-main { flex: 1; min-width: 0; }
.progress-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.progress-title:hover { color: var(--orange-600); }
.progress-item.is-read .progress-title { color: var(--muted); }
.progress-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-top: 2px; }

.settings { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.settings-card h3 { font-size: 1.05rem; }
.danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: #c0392b; font-weight: 600; font-size: .9rem; }
.danger-zone form { margin-top: 14px; }

@media (max-width: 960px) {
    .auth-grid { grid-template-columns: 1fr; gap: 32px; }
    .article-hero-grid { grid-template-columns: 1fr; }
    .article-cover { max-width: 300px; }
    .article-cover img { transform: none; }
    .settings-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .signin-link, .join-btn, .account-label { display: none; }
    .account-link { padding: 4px; }
    .nav-mobile-only { display: block; }
    .account-hero-grid { grid-template-columns: 1fr; }
    .progress-ring { width: 130px; height: 130px; }
    .progress-item { flex-wrap: wrap; padding: 14px; }
    .progress-item .read-toggle-form { margin-left: 38px; }
    .auth-card { padding: 24px 20px; }
    .finish-box { flex-direction: column; align-items: flex-start; }
}

/* Prevent long content from widening grids on small screens */
.hero-grid > *, .account-hero-grid > *, .article-hero-grid > *, .auth-grid > * { min-width: 0; }
.account-hero .btn { white-space: normal; text-align: left; }
@media (max-width: 760px) {
    .progress-main { flex-basis: calc(100% - 40px); }
    .hero-search .btn { padding: .7rem .9rem; }
}

/* ---------- About the Author ---------- */
.author-hero {
    position: relative; overflow: hidden; color: rgba(255, 255, 255, .8);
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 75%);
    padding: clamp(48px, 7vw, 96px) 0;
}
.author-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(560px 380px at 80% 30%, rgba(240, 138, 36, .16), transparent 60%);
}
.author-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.author-hero h1 { color: #fff; margin-bottom: .3rem; }
.author-hero .eyebrow { color: var(--orange-500); }
.author-role { font-family: var(--font-head); font-weight: 600; color: var(--orange-500); font-size: 1.05rem; margin-bottom: 1.2rem; }
.author-hero .lead { color: rgba(255, 255, 255, .78); }
.breadcrumbs-light, .breadcrumbs-light a { color: rgba(255, 255, 255, .6); }
.breadcrumbs-light a:hover { color: #fff; }
.author-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 2rem 0 0; }
.author-stats div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.author-stats dt { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.15rem; line-height: 1.2; }
.author-stats dd { margin: 4px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .65); line-height: 1.35; }
.author-portrait { position: relative; max-width: 400px; justify-self: center; width: 100%; }
.author-portrait img { position: relative; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.portrait-ring {
    position: absolute; width: 112%; aspect-ratio: 1; left: -6%; top: 8%; border-radius: 50%;
    border: 2px dashed rgba(240, 138, 36, .65); animation: spin 80s linear infinite;
}

.author-story { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 56px; justify-content: center; }
.story-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.story-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.career-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.career-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.career-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 1.2rem; }
.career-card .cover-icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; color: #fff; flex-shrink: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 0 0 16px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--orange-500); }
.timeline-years { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--orange-600); padding-top: 1px; white-space: nowrap; }
.timeline-body { display: flex; flex-direction: column; line-height: 1.45; }
.timeline-body strong { color: var(--ink); font-size: .97rem; }
.timeline-body span { color: var(--muted); font-size: .9rem; }

.author-cta { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 960px; }
.author-cta img { background: var(--cream); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }

@media (max-width: 960px) {
    .author-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .author-portrait { max-width: 320px; order: -1; }
    .author-stats { grid-template-columns: repeat(2, 1fr); }
    .author-story { grid-template-columns: 1fr; gap: 16px; }
    .story-head { position: static; }
    .career-grid { grid-template-columns: 1fr; }
    .author-cta { grid-template-columns: 1fr; gap: 28px; }
    .author-cta img { max-width: 220px; }
}
@media (max-width: 520px) {
    .timeline li { grid-template-columns: 1fr; gap: 2px; }
    .career-card { padding: 22px 18px; }
}

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.admin-head .lead { margin-bottom: 0; }
.stat-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-sm { font-size: 1.25rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.admin-toolbar input, .admin-toolbar select {
    font: inherit; font-size: .95rem; padding: .55rem .9rem; border: 1px solid #cfd6e1; border-radius: 999px; background: #fff; color: var(--ink);
}
.admin-toolbar input { flex: 1; min-width: 200px; max-width: 360px; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-family: var(--font-head); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:first-child td { border-top: 0; }
.admin-table tbody tr:hover td { background: #fafbfd; }
.admin-table td a { text-decoration: none; color: var(--ink); font-weight: 600; }
.admin-table td a:hover { color: var(--orange-600); }
.member-cell { display: flex; align-items: center; gap: 12px; }
.member-cell strong { display: block; }
.member-cell small { display: block; color: var(--muted); font-weight: 400; }
.cell-actions { text-align: right; }
.mini-progress { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.mini-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); border-radius: 999px; }
.mini-label { font-size: .82rem; color: var(--muted); white-space: nowrap; min-width: 52px; }
.status-chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.status-chip.is-read { background: var(--green-100); color: var(--green-600); }
.admin-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.admin-section { margin-top: 56px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 960px) { .stat-row-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr { padding: 12px 16px; border-top: 1px solid var(--line); }
    .admin-table tbody tr:first-child { border-top: 0; }
    .admin-table td { border: 0; padding: 4px 0; }
    .admin-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
    .cell-actions { text-align: left; }
}
@media (min-width: 961px) {
    .career-grid .career-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .career-grid .career-card:nth-child(2) { grid-column: 1; grid-row: 2; }
    .career-grid .career-card:nth-child(3) { grid-column: 2; grid-row: 1 / span 3; }
    .career-grid .career-card:nth-child(4) { grid-column: 1; grid-row: 3; }
}

/* ==========================================================================
   Pacer recruitment
   ========================================================================== */
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h3 { font-size: 1.25rem; }
.mt { margin-top: 2rem; }
.req { color: #c0392b; font-weight: 700; }
.label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.link-btn { border: 0; background: none; color: var(--navy-600); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; text-decoration: underline; }

/* Header bell */
.bell-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.bell-link:hover, .bell-link.is-active { border-color: var(--orange-500); color: var(--orange-600); }
.bell-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #e0452b; color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
@media (max-width: 1180px) { .search-trigger { min-width: 0; } .search-trigger span, .search-trigger kbd { display: none; } .search-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; } }

/* Status chips */
.status-chip.status-submitted { background: var(--blue-100); color: var(--blue-600); }
.status-chip.status-in_review { background: #efe8fb; color: #6a3fb5; }
.status-chip.status-shortlisted { background: #fff4d6; color: #9a6a00; }
.status-chip.status-selected { background: var(--green-100); color: var(--green-600); }
.status-chip.status-backup { background: #e3f3f7; color: #1d7488; }
.status-chip.status-rejected { background: #f1f2f4; color: #6b7587; }
.status-chip.status-open { background: var(--green-100); color: var(--green-600); }
.status-chip.status-upcoming { background: #fff4d6; color: #9a6a00; }
.status-chip.status-closed { background: #f1f2f4; color: #6b7587; }
.margin-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.margin-ok { background: var(--green-100); color: var(--green-600); }
.margin-below { background: var(--orange-100); color: #b65a0c; }
.margin-unverified { background: #f1f2f4; color: #6b7587; }
.role-badge { display: inline-block; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .45rem; border-radius: 6px; background: var(--navy-800); color: #fff; vertical-align: middle; }
.badge-draft { background: #fff4d6; color: #9a6a00; display: inline-block; margin-bottom: 10px; }

/* Home: recruiting band */
.recruit-band { background: var(--orange-100); border-bottom: 1px solid #f7cfa6; padding: 14px 0; }
.recruit-band .container { display: flex; flex-direction: column; gap: 8px; }
.recruit-band-item { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.recruit-band-item:hover { color: var(--ink); }
.recruit-band-item:hover .recruit-cta { transform: translateX(3px); }
.recruit-cta { margin-left: auto; font-family: var(--font-head); font-weight: 800; color: var(--orange-600); transition: transform .2s ease; }
.recruit-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-top: 12px; border-radius: var(--radius); background: var(--orange-100); border: 1px solid #f7cfa6; }
.my-apps { margin-bottom: 36px; }
.my-apps .progress-group-head h2 { font-size: 1.2rem; margin: 0; }

/* Events */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); overflow: hidden; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; }
.event-card-media .window { position: absolute; top: 12px; left: 12px; }
.event-card h2.card-title { font-size: 1.2rem; }
.window { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.window-open { background: #22a06b; color: #fff; }
.window-upcoming { background: #f6c142; color: #4a3500; }
.window-closed { background: rgba(255, 255, 255, .85); color: #4b5563; }

.event-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: rgba(255, 255, 255, .85); padding: 56px 0 48px; }
.event-hero.has-banner { padding-top: clamp(140px, 20vw, 260px); }
.event-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero.has-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 54, .15) 0%, rgba(10, 28, 54, .9) 75%); }
.event-hero-inner { position: relative; z-index: 1; }
.event-hero h1 { color: #fff; margin-bottom: .6rem; }
.event-hero .eyebrow { color: var(--orange-500); }
.event-facts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-weight: 600; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.event-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.apply-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.apply-card h3 { margin: 0; }
.apply-dates { margin: 0 0 4px; }
.apply-dates div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.apply-dates dt { color: var(--muted); }
.apply-dates dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.apply-note { color: var(--muted); margin: 0; }
.apply-status { margin: 0; }
.slot-groups { display: grid; gap: 20px; margin-top: 16px; }
.slot-group h3 { font-size: 1rem; margin-bottom: 10px; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot-list li { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.slot-list strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy-800); }
.slot-list span { font-size: .85rem; color: var(--muted); }
.slot-list small { font-size: .75rem; color: var(--orange-600); font-weight: 600; margin-top: 4px; }

/* Application form */
.apply-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.apply-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.apply-nav ol { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: s -1; border-left: 2px solid var(--line); }
.apply-nav li { counter-increment: s; }
.apply-nav a { display: block; padding: 7px 14px; color: var(--muted); text-decoration: none; font-size: .92rem; margin-left: -2px; border-left: 2px solid transparent; }
.apply-nav a::before { content: counter(s) " · "; color: var(--orange-600); font-weight: 700; }
.apply-nav a:hover { color: var(--ink); border-left-color: var(--orange-500); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 24px; min-width: 0; }
.form-card > legend, .form-card > h2 { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.form-card > legend + * { clear: both; }
.form-card > legend small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--orange-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.sub-head { font-size: 1.05rem; margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); clear: both; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; clear: both; }
.form-grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; }
.form select, .form textarea, .form input[type="url"], .form input[type="tel"], .form input[type="date"], .form input[type="datetime-local"], .form input[type="number"], .form input.flatpickr-input, .add-slot input, .add-slot select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid #cfd6e1; border-radius: 10px; padding: .7rem .85rem;
}
.form textarea { resize: vertical; line-height: 1.55; }
.form select:focus, .form textarea:focus, .form input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(31, 77, 138, .12); }
.form input:disabled { background: var(--bg-soft); }
.has-error select, .has-error textarea, .has-error input[type="url"], .has-error input[type="tel"] { border-color: #e57373; }
.input-group { display: flex; gap: 8px; }
.input-group select { width: 46%; flex-shrink: 0; }
.inline-check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; font-size: .9rem !important; margin: 8px 0 0; color: var(--text) !important; }
.inline-check input { accent-color: var(--orange-500); width: 16px; height: 16px; }
.notice { color: #b65a0c; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { display: inline-flex !important; align-items: center; gap: 8px; padding: .5rem .9rem; border: 1px solid #cfd6e1; border-radius: 999px; cursor: pointer; font-weight: 500 !important; font-size: .92rem !important; margin: 0 !important; background: #fff; }
.radio-pill:has(input:checked) { border-color: var(--orange-500); background: var(--orange-100); }
.radio-pill input { accent-color: var(--orange-500); }
.field-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-inline label { margin: 0; }
.field-inline select { width: auto; min-width: 120px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%); padding: 20px 0 16px; z-index: 5; }

.slot-picker-group { margin-bottom: 16px; }
.slot-picker-group h3 { font-size: .95rem; margin-bottom: 8px; color: var(--muted); }
.slot-options { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-option { position: relative; cursor: pointer; margin: 0 !important; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option span { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 10px 14px; border: 1.5px solid #cfd6e1; border-radius: 12px; background: #fff; transition: all .15s ease; }
.slot-option strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-800); }
.slot-option small { font-size: .78rem; color: var(--muted); }
.slot-option input:checked + span { border-color: var(--orange-500); background: var(--orange-100); box-shadow: 0 0 0 3px rgba(240, 138, 36, .2); }
.slot-option input:focus-visible + span { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.slot-picker.has-error .slot-option span { border-color: #e57373; }

.advice-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--blue-100); border: 1px solid #c9daf5; }
.advice-card p { margin: 4px 0 0; font-size: .93rem; }
.advice-icon { font-size: 1.3rem; line-height: 1.2; }

.history-block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 18px; clear: both; }
.history-block > summary { cursor: pointer; padding: 14px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.history-block[open] { padding-bottom: 18px; }
.repeater-row { border: 1px dashed #cfd6e1; border-radius: 12px; padding: 14px 16px 6px; margin: 12px 0; background: var(--bg-soft); }
.repeater-row.has-error { border-color: #e57373; background: #fff7f7; }
.row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.verify-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.verify-choice .label { margin: 0 6px 0 0; }
.file-current { font-size: .9rem; margin: 0 0 8px; }
.word-count.is-ok { color: var(--green-600); }
.word-count.is-bad { color: #c0392b; }
.consent label { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.consent.has-error label { border-color: #e57373; background: #fff7f7; }
.guidelines { margin: 8px 0 4px; padding-left: 1.3em; }
.guidelines li { margin-bottom: 4px; }

/* Candidate status page */
.status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.status-card h2 { font-size: 1.5rem; }
.status-card-selected { border-top: 5px solid var(--green-600); }
.status-card-backup { border-top: 5px solid #1d7488; }
.status-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.status-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.status-steps li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.status-steps li:first-child::before { display: none; }
.status-steps li.is-done::before, .status-steps li.is-current::before { background: var(--orange-500); }
.step-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.status-steps li.is-done .step-dot { background: var(--orange-500); border-color: var(--orange-500); }
.status-steps li.is-current .step-dot { border-color: var(--orange-500); box-shadow: 0 0 0 5px rgba(240, 138, 36, .2); }
.status-steps li.is-current { color: var(--ink); font-weight: 700; }
.status-steps li.is-rejected .step-dot { border-color: #9aa3b2; background: #9aa3b2; box-shadow: none; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.summary-details { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.summary-details > summary { cursor: pointer; padding: 18px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.summary-details[open] { padding-bottom: 24px; }

/* Application summary */
.summary-block { padding: 20px 0; border-top: 1px solid var(--line); }
.summary-block:first-child { border-top: 0; padding-top: 0; }
.summary-block h3 { font-size: 1.05rem; margin-bottom: 12px; }
.summary-block h4 { font-size: .95rem; margin: 14px 0 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.summary-grid dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.summary-grid dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.answer { background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; white-space: normal; }
.admin-table.compact td, .admin-table.compact th { padding: 8px 12px; }

/* Review */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.review-layout > div:first-child { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review-aside { display: flex; flex-direction: column; gap: 16px; }
.score-card, .side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 1rem; }
.score-main { display: flex; align-items: baseline; gap: 10px; }
.score-main span { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--navy-800); line-height: 1; }
.score-main small { color: var(--muted); }
.score-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.score-split div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.score-split strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.score-split small { font-size: .78rem; color: var(--muted); }
.score-parts { list-style: none; padding: 0; margin: 10px 0 0; font-size: .88rem; }
.score-parts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.score-parts small { display: block; color: var(--muted); font-size: .78rem; }
.margin-line { font-size: .88rem; margin: 12px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.margin-line .margin-chip { align-self: flex-start; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.status-option { margin: 0 !important; cursor: pointer; }
.status-option input { position: absolute; opacity: 0; }
.status-option .status-chip { border: 2px solid transparent; padding: .3rem .7rem; }
.status-option input:checked + .status-chip { border-color: var(--ink); }
.status-option input:focus-visible + .status-chip { outline: 3px solid var(--orange-500); }
.score-picker { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 14px; }
.score-picker label { margin: 0 !important; cursor: pointer; }
.score-picker input { position: absolute; opacity: 0; }
.score-picker span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; border: 1px solid #cfd6e1; font-weight: 700; font-size: .9rem; }
.score-picker input:checked + span { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.score-picker input:focus-visible + span { outline: 3px solid var(--navy-600); }
.review-item { padding: 12px 0; border-top: 1px solid var(--line); }
.review-item:first-of-type { border-top: 0; }
.review-item p { margin: 6px 0; font-size: .92rem; }
.review-head { display: flex; justify-content: space-between; }
.review-score { font-family: var(--font-head); font-weight: 800; color: var(--orange-600); }
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { padding: 6px 0; }
.composite { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); }
.capacity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.capacity-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--text); font-size: .82rem; }
.capacity-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.capacity-card:hover, .capacity-card.is-active { border-color: var(--orange-500); color: var(--text); }
.cap-line.is-full { color: var(--green-600); font-weight: 700; }
.event-review-list { display: grid; gap: 12px; margin-top: 16px; }
.event-review-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.event-review-card:hover { border-color: var(--orange-500); color: var(--text); box-shadow: var(--shadow-sm); }
.event-review-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.event-review-card small { color: var(--muted); }

/* Admin tabs and event editor */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs a { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.admin-tabs a[aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.event-form .form-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.banner-preview img { max-width: 420px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--line); }
.publish-toggle { align-items: flex-start !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); margin-top: 26px !important; }
.publish-toggle input { margin-top: 3px; }
.slots-table td { padding: 8px 12px; }
.slots-table tr.is-disabled td { opacity: .5; }
.slots-table tr.is-disabled td:first-child { opacity: 1; }
.num-input { width: 72px !important; padding: .4rem .5rem !important; font-size: .9rem !important; }
.leader-select { min-width: 160px; font-size: .85rem !important; padding: .3rem !important; }
.add-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.add-slot select, .add-slot input { width: auto; padding: .5rem .7rem; }
.danger-form { margin-top: 24px; text-align: right; }
.role-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.role-card p { margin: 4px 0 0; }

/* Notifications */
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.notification:hover { border-color: var(--orange-500); }
.notification.is-unread { background: #fffaf3; border-color: #f7cfa6; }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.notification.is-unread .notification-dot { background: var(--orange-500); }
.notification-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notification-body small { color: var(--muted); }

/* flatpickr theme tweaks */
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--orange-500); border-color: var(--orange-500); }

@media (max-width: 1080px) {
    .apply-layout { grid-template-columns: 1fr; }
    .apply-nav { display: none; }
    .review-layout, .status-layout, .event-layout { grid-template-columns: 1fr; }
    .event-aside { position: static; }
}
@media (max-width: 760px) {
    .form-card { padding: 20px 16px; }
    .form-grid, .form-grid.grid-4 { grid-template-columns: 1fr; }
    .span-2, .span-4 { grid-column: auto; }
    .summary-grid { grid-template-columns: 1fr; }
    .status-steps { font-size: .75rem; }
    .input-group { flex-direction: column; }
    .input-group select { width: 100%; }
    .bell-link { width: 40px; height: 40px; }
}

.add-slot input[type="text"] { width: 200px !important; }
.add-slot select { width: auto !important; }
.flatpickr-input[readonly] { background: #fff; cursor: pointer; }
@media (max-width: 420px) { .brand-name { font-size: 1rem; } .brand img { width: 46px; } .header-actions { gap: 6px; } }

/* ---------- RunAway.fit recommendation ---------- */
.section-tight-top { padding-top: 0; }
.runaway {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
    padding: clamp(28px, 4vw, 48px); border-radius: 24px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fff7ee 0%, #fdeedd 55%, #fbe1c4 100%); border: 1px solid #f7cfa6;
}
.runaway::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    border: 2px dashed rgba(240, 138, 36, .35); pointer-events: none;
}
.runaway h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.runaway-copy p { color: var(--text); }
.runaway-copy a:not(.btn) { color: var(--orange-600); font-weight: 600; }
.runaway-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.runaway-features li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.runaway-features strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 2px; }
.runaway-features span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.runaway-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--orange-100); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.runaway-wrap { margin-top: 48px; }
.runaway-mini { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--orange-100); border: 1px solid #f7cfa6; color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.45; }
.runaway-mini:hover { border-color: var(--orange-500); color: var(--text); }
.runaway-mini strong { display: block; color: var(--ink); font-family: var(--font-head); }
.runaway-mini-icon { font-size: 1.3rem; }
@media (max-width: 860px) { .runaway { grid-template-columns: 1fr; gap: 24px; } }
.num-input.is-locked { background: var(--bg-soft) !important; color: var(--muted); }

/* ==========================================================================
   Leadership, informed status, team summary, profile photos
   ========================================================================== */
.block { display: block; }
.settings-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Profile photos */
.photo { display: inline-flex; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e8ecf2; color: #9aa6b8; align-items: center; justify-content: center; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.photo-placeholder svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.photo-sm { width: 36px; height: 36px; }
.photo-md { width: 64px; height: 64px; }
.photo-lg { width: 80px; height: 80px; }
.photo-xl { width: 104px; height: 104px; }
.photo-empty { border: 2px dashed #cfd6e1; box-shadow: none; background: #fff; font-size: 1.4rem; color: #b3bcc9; }
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.candidate-head { display: flex; align-items: center; gap: 20px; }
.candidate-head .lead { margin-bottom: .3rem; }

/* Qualities */
.qualities { margin-top: 8px; }
.quality-field label { display: flex !important; align-items: center; gap: 8px; }
.quality-num { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.quality-list { margin: 0; padding-left: 1.3em; }
.quality-list li { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }

/* Informed status */
.inform-chip { display: inline-block; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #f1f2f4; color: #6b7587; white-space: nowrap; }
.inform-done { background: var(--green-100); color: var(--green-600); }
.inform-pending { background: #fff1d6; color: #9a5b00; }
.badge-pending { background: #fff1d6; color: #9a5b00; }
.inform-card.is-pending { border: 2px solid var(--orange-500); }
.inform-facts { margin: 12px 0 16px; }
.inform-facts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.inform-facts dt { color: var(--muted); }
.inform-facts dd { margin: 0; text-align: right; }
.inform-ok { color: var(--green-600); font-weight: 600; margin: 0; }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; background: #fff7e8; border: 1px solid #f7cfa6; }

/* Views and roles */
.view-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.view-tabs a { padding: .7rem 1.1rem; text-decoration: none; color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: .95rem; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.view-tabs a span { font-size: .75rem; background: var(--bg-soft); padding: 0 .45rem; border-radius: 999px; margin-left: 4px; }
.view-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange-500); }
.role-badge.role-lead { background: var(--orange-500); }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.copy-input { font: inherit; font-size: .78rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; width: 220px; background: #fff; color: var(--muted); }
.alert .copy-input { width: 100%; margin-top: 8px; }
.invite-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.invite-form input[type="email"] { flex: 1; min-width: 220px; font: inherit; padding: .55rem .8rem; border: 1px solid #cfd6e1; border-radius: 10px; }
.invite-form select { font: inherit; padding: .55rem .8rem; border: 1px solid #cfd6e1; border-radius: 10px; }
.invite-banner { padding: 16px 18px; border-radius: 14px; background: var(--orange-100); border: 1px solid #f7cfa6; margin-bottom: 20px; }
.invite-banner strong:first-child { display: block; font-family: var(--font-head); }
.invite-list { display: grid; gap: 12px; margin-bottom: 32px; }
.invite-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: #fff7ee; border: 2px solid var(--orange-500); }
.invite-card .eyebrow { margin-bottom: 4px; }
.invite-card p.muted { margin: 4px 0 0; font-size: .88rem; }
.lead-events { margin: 6px 0 0; padding-left: 1.2em; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; margin: 0 !important; font-weight: 500 !important; }
.switch input { width: 36px; height: 20px; appearance: none; -webkit-appearance: none; background: #cfd6e1; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s ease; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch input:checked { background: var(--green-600); }
.switch input:checked::after { transform: translateX(16px); }
.vote-toggle { margin: 0; }

/* Team summary */
.summary-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.summary-toolbar p { margin: 0; }
.team-distance { margin-bottom: 36px; }
.team-distance > h2 { font-size: 1.35rem; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.team-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.team-slot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; break-inside: avoid; }
.team-slot header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.team-slot h3 { margin: 0 auto 0 0; font-size: 1.3rem; }
.team-slot h3 small { font-size: .8rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.team-slot .cap-line { font-size: .8rem; color: var(--muted); font-weight: 600; }
.team-group { padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 10px; }
.team-group h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.team-selected h4 { color: var(--green-600); }
.team-backup h4 { color: #1d7488; }
.team-shortlisted h4 { color: #9a6a00; }
.team-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
.team-people li a, .team-open { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); }
.team-people li a:hover .tp-name { color: var(--orange-600); }
.tp-name { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.tp-meta { font-size: .72rem; color: var(--muted); }
.team-open .tp-name { color: #b3bcc9; font-weight: 500; }

@media (max-width: 1080px) { .team-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .candidate-head { flex-direction: column; align-items: flex-start; } .team-slots { grid-template-columns: 1fr; } }
@media print {
    .view-tabs, .publish-bar, .summary-toolbar button, .admin-tabs, .admin-head-actions, .breadcrumbs { display: none !important; }
    .team-slot { box-shadow: none; }
}

/* ==========================================================================
   Certification course, tools & calculators, scoring, roadmap
   ========================================================================== */
.span-3 { grid-column: span 3; }
@media (max-width: 760px) { .span-3 { grid-column: auto; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-input { width: 6.5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .92rem; }
.section-title { margin-top: 40px; }

/* Progress bar */
.progress-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); }

/* Course overview */
.course-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dbe4f3; border-bottom: 0; }
.course-hero h1, .course-hero .lead { color: #fff; }
.course-hero .eyebrow { color: var(--orange-500); }
.course-hero .breadcrumbs a, .course-hero .breadcrumbs span { color: #c3cfe4; }
.course-hero .btn-outline.btn-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
.course-hero .btn { margin: 6px 8px 0 0; }
.course-progress-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 22px; }
.course-progress-card .cp-pct { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.course-progress-card .progress-bar { background: rgba(255, 255, 255, .18); }
.course-progress-card p { margin: 0; font-size: .9rem; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.level-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.level-card.is-earned { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.level-card h3 { margin-top: 12px; }
.level-card p { font-size: .94rem; margin-bottom: .5em; }
.cert-seal { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; font-family: var(--font-head); font-weight: 800; box-shadow: 0 0 0 4px var(--orange-100); flex: none; }
.cert-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.cert-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.cert-badge small { display: block; color: var(--muted); }
.cert-badge.is-expired { opacity: .6; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; display: flex; flex-direction: column; }
.module-card header { display: flex; gap: 14px; align-items: flex-start; }
.module-card header .badge { margin-left: auto; background: var(--orange-100); color: var(--orange-600); }
.module-card header .badge-muted { background: var(--bg-soft); color: var(--muted); }
.module-card h3 { margin-bottom: .2em; }
.module-card header p { font-size: .9rem; margin: 0; }
.module-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; }
.module-card footer { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.lesson-list { list-style: none; padding: 0; margin: 14px 0; }
.lesson-list li { border-radius: 10px; }
.lesson-list a, .lesson-list li > span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.lesson-list a:hover { background: var(--bg-soft); }
.lesson-list .is-current a { background: var(--orange-100); font-weight: 600; }
.lesson-check { flex: none; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lesson-list .is-done .lesson-check { background: var(--green-600); color: #fff; }
.lesson-list small { margin-left: auto; white-space: nowrap; }

/* Lesson */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.lesson-body { max-width: 760px; }
.lesson-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.lesson-aside h3 { margin-bottom: .2em; }
.lesson-complete { margin: 2.2em 0 1em; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
.lesson-complete p { margin: 0; }
.lesson-complete .inline-form { display: inline; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.5em; }
.lesson-nav a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.lesson-nav a:hover { border-color: var(--orange-500); }
.lesson-nav small { display: block; color: var(--muted); }
.lesson-nav span { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.lesson-nav-next { text-align: right; grid-column: 2; }

/* Quiz */
.quiz-form { display: grid; gap: 18px; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; background: #fff; min-width: 0; }
.quiz-q legend { font-family: var(--font-head); font-weight: 600; color: var(--ink); padding: 0 4px; display: flex; gap: 10px; float: left; width: 100%; margin-bottom: 10px; }
.quiz-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.quiz-option { clear: both; display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; font-size: .97rem; }
.quiz-option input { margin-top: .3em; flex: none; }
.quiz-option:hover { border-color: var(--navy-600); }
.quiz-option.is-correct { border-color: var(--green-600); background: var(--green-100); }
.quiz-option.is-given { border-color: #c0392b; background: #fdecea; }
.quiz-q.is-right { border-color: var(--green-600); }
.quiz-q.is-wrong { border-color: #e5a29b; }
.quiz-explain { clear: both; margin: 10px 0 0; font-size: .92rem; color: var(--text); }
.quiz-result { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 20px; }
.quiz-result strong { font-family: var(--font-head); font-size: 1.5rem; }
.quiz-result.is-pass { background: var(--green-100); color: #145c3c; }
.quiz-result.is-fail { background: #fdecea; color: #8c2a20; }
.quiz-result .btn { margin-left: auto; }

/* Account */
.course-account-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dbe4f3; margin-bottom: 32px; }
.course-account-card > div { flex: 1 1 320px; min-width: 0; }
.course-account-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: .2em; }
.course-account-card .eyebrow { color: var(--orange-500); margin-bottom: 4px; }
.course-account-card .muted { color: #c3cfe4; margin: 0; }
.course-account-card a:not(.btn) { color: #fff; }
.course-account-card .progress-bar { background: rgba(255, 255, 255, .18); max-width: 520px; }

/* Certificate */
.verify-banner { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.verify-banner.is-valid { background: var(--green-100); color: #145c3c; }
.verify-banner.is-invalid { background: #fdecea; color: #8c2a20; }
.certificate { max-width: 900px; margin: 0 auto; padding: 14px; background: linear-gradient(135deg, var(--navy-800), var(--orange-500)); border-radius: 6px; box-shadow: var(--shadow); }
.cert-inner { background: #fff; padding: 48px 56px 36px; text-align: center; border-radius: 2px; outline: 1px solid var(--line); outline-offset: -12px; }
.cert-logo { margin: 0 auto 6px; }
.cert-org { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); letter-spacing: .04em; margin: 0; }
.cert-kicker { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--muted); margin: 18px 0 4px; }
.cert-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; color: var(--navy-800); }
.cert-level { font-family: var(--font-head); font-weight: 700; color: var(--orange-600); font-size: 1.15rem; }
.cert-presented { margin: 22px 0 0; color: var(--muted); }
.cert-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); margin: 4px 0 10px; border-bottom: 2px solid var(--orange-500); display: inline-block; padding: 0 24px 6px; }
.cert-text { max-width: 600px; margin: 0 auto 26px; }
.cert-foot { display: grid; grid-template-columns: repeat(3, 1fr) 96px; gap: 16px; align-items: center; text-align: left; border-top: 1px solid var(--line); padding-top: 20px; }
.cert-foot small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.cert-qr svg { width: 96px; height: 96px; display: block; }
.cert-verify { font-size: .76rem; color: var(--muted); margin: 14px 0 0; word-break: break-all; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.verify-form { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; }
.verify-form input { flex: 1; min-width: 0; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; }

/* Tools hub */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.tool-card:hover { border-color: var(--orange-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text); }
.tool-card strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.tool-card .tool-body > span { display: block; font-size: .92rem; line-height: 1.5; }
.tool-card small { display: inline-block; margin-top: 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-600); }
.tool-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-100); color: var(--orange-600); display: inline-flex; align-items: center; justify-content: center; }
.tool-icon svg { width: 24px; height: 24px; }
.tool-icon-lg { width: 60px; height: 60px; border-radius: 16px; }
.tool-icon-lg svg { width: 32px; height: 32px; }
.tool-title { display: flex; gap: 18px; align-items: center; }
.tool-title h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.tool-title .lead { margin: 0; }
.tool-note { margin-top: 28px; }

/* Tool pages */
.tool-app { display: grid; gap: 18px; }
.tool-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 6px; }
.tool-form h2 { margin-top: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tool-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; min-width: 0; }
.tool-stat small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tool-stat strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.tool-stat span { display: block; font-size: .84rem; color: var(--muted); }
.tool-stat.is-key { border-color: var(--orange-500); background: var(--orange-100); }
.tool-stat.is-ok strong { color: var(--green-600); }
.tool-stat.is-warn strong { color: var(--orange-600); }
.tool-stat.is-danger strong { color: #c0392b; }
.tool-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin: 0 0 12px; }
.tool-msg-error { background: #fdecea; color: #8c2a20; }
.tool-msg-warning { background: var(--orange-100); color: #8a4a0c; }
.tool-msg-info { background: var(--blue-100); color: #1d4a8a; }
.tool-table td, .tool-table th { white-space: nowrap; }
.tool-table tr.is-best td { background: var(--orange-100); font-weight: 600; }
.tool-more { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.tool-more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-more a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; }
.dev-chart { display: flex; gap: 4px; height: 160px; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 22px; background: linear-gradient(to bottom, transparent calc(50% - 6px), var(--line) calc(50% - 6px), var(--line) calc(50% - 5px), transparent calc(50% - 5px)); overflow-x: auto; }
.dev-col { position: relative; flex: 1 0 14px; min-width: 14px; }
.dev-bar { position: absolute; left: 15%; right: 15%; border-radius: 3px; }
.dev-bar.is-fast { background: var(--blue-600); }
.dev-bar.is-slow { background: var(--orange-500); }
.dev-col small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--muted); }
.prob-rows { display: grid; gap: 10px; }
.prob-rows small { color: var(--muted); }
.prob-bar { height: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prob-bar span { display: block; height: 100%; }
.prob-bar .is-ok { background: var(--green-600); }
.prob-bar .is-warn { background: var(--orange-500); }

/* Wristband */
.wristband-sheet { display: flex; flex-wrap: wrap; gap: 6mm; align-items: flex-start; }
.wristband { border: 1px dashed #999; padding: 2mm 1.5mm; font-family: var(--font-body); color: #000; background: #fff; }
.wristband .wb-head { font-family: var(--font-head); font-weight: 800; font-size: 8pt; line-height: 1.15; text-align: center; border-bottom: 1px solid #000; padding-bottom: 1mm; margin-bottom: 1mm; }
.wristband .wb-head small { display: block; font-weight: 600; font-size: 7pt; }
.wristband table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.25; }
.wristband th { font-size: 7pt; text-align: left; }
.wristband td, .wristband th { padding: .4mm .5mm; }
.wristband tbody tr:nth-child(odd) td { background: #e8e8e8; }
.wristband td:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Scoring */
.rec-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.rec-auto-accept { background: var(--green-100); color: #145c3c; }
.rec-manual-review { background: var(--orange-100); color: #8a4a0c; }
.rec-reject { background: #fdecea; color: #8c2a20; }
.score-rec { margin: 8px 0 0; }
.score-rec small { display: block; color: var(--muted); margin-top: 4px; }
.subscore-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
.subscore-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.subscore-list .bar span { display: block; height: 100%; background: var(--navy-600); }
.log-note { display: block; font-style: italic; color: var(--text); }
.compare-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.col-check { width: 36px; }
.compare-wrap { overflow-x: auto; }
.compare-table th[scope="row"] { white-space: nowrap; font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.compare-table td { white-space: nowrap; }
.compare-table td.is-best { background: var(--green-100); font-weight: 700; color: #145c3c; }
.compare-head { flex-direction: column; text-align: center; gap: 4px; font-size: .85rem; }
.weights-grid input { max-width: 120px; }
[data-weight-total].is-wrong { color: #c0392b; }

/* Roadmap */
.roadmap-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rm-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.rm-live { background: var(--green-100); color: #145c3c; }
.rm-partial { background: var(--orange-100); color: #8a4a0c; }
.rm-planned { background: var(--bg-soft); color: var(--muted); }
.roadmap-table td:last-child { white-space: normal; font-size: .9rem; }
.scoring-explainer { margin-top: 48px; max-width: 900px; }

@media (max-width: 1080px) {
    .lesson-layout, .course-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .lesson-aside { position: static; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .level-grid, .module-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .tool-grid { grid-template-columns: 1fr; }
    .tool-title { align-items: flex-start; }
    .tool-icon-lg { width: 48px; height: 48px; }
    .cert-inner { padding: 28px 18px 24px; }
    .cert-foot { grid-template-columns: 1fr 1fr; }
    .lesson-nav { grid-template-columns: 1fr; }
    .lesson-nav-next { grid-column: auto; }
    .tool-table td, .tool-table th { white-space: normal; }
}

@media print {
    .tool-hero, .tool-more, .tool-form, .tool-actions, .tool-app > p, .flash-wrap { display: none !important; }
    .wristband-sheet { gap: 4mm; }
    .wristband { break-inside: avoid; }
    .cert-page .verify-banner, .cert-actions { display: none !important; }
    .cert-page { padding: 0; }
    .certificate { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .compare-bar, .col-check { display: none !important; }
    @page { margin: 10mm; }
}

/* Header with more menu items: keep everything on one line. */
.brand-text, .main-nav a, .signin-link, .account-link, .module-card header .badge { white-space: nowrap; }
.cert-page { padding-top: 24px; }
@media (max-width: 1360px) {
    .account-label { display: none; }
    .account-link { padding: 4px; }
    .main-nav a { padding: .5rem .7rem; }
    .header-inner { gap: 16px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .brand-sub { display: none; }
    .main-nav ul { gap: 2px; }
    .main-nav a { padding: .45rem .55rem; font-size: .9rem; }
    .main-nav li:first-child { display: none; } /* "Home": the logo links home */
    .join-btn { display: none; }
}
.brand { flex-shrink: 0; }
.main-nav { min-width: 0; }
@media (max-width: 920px) and (min-width: 761px) { .brand-text { display: none; } }
/* The avatar alone links to "My progress" (title + mobile menu item), leaving room for the menu. */
.account-label { display: none; }
.account-link { padding: 4px; }

/* ==========================================================================
   Admin → Pacer reports (plan vs actual)
   ========================================================================== */
.verdict-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.verdict-good { background: var(--green-100); color: #145c3c; }
.verdict-fast { background: var(--orange-100); color: #8a4a0c; }
.verdict-late { background: #fdecea; color: #8c2a20; }
.verdict-stat-good strong { color: var(--green-600); }
.verdict-stat-fast strong { color: var(--orange-600); }
.verdict-stat-late strong { color: #c0392b; }
.tool-stat.verdict-stat-good { border-color: var(--green-600); background: var(--green-100); }
.tool-stat.verdict-stat-late { border-color: #e5a29b; background: #fdecea; }
.team-report { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
.team-report > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.team-report h3 { margin-bottom: .2em; }
.team-report header p { margin: 0; font-size: .9rem; }
.team-report .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pacer-upload { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.pacer-upload .field { margin: 0; flex: 1 1 200px; min-width: 0; }
.pacer-upload .field-small { flex: 0 1 140px; }
.pacer-upload input[type=file] { max-width: 100%; }
.plan-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; background: var(--bg-soft); }
.plan-drop label { display: block; margin-bottom: 6px; }
.plan-status { margin: 8px 0 0; font-size: .92rem; }
.plan-status:empty { display: none; }
.plan-status.is-ok { color: #145c3c; font-weight: 600; }
.plan-status.is-error { color: #8c2a20; }
.seg-edit input { width: 100%; min-width: 70px; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem; }
.seg-edit td:first-child input { min-width: 160px; }
.report-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 24px; background: var(--bg-soft); }
.report-frame iframe { display: block; width: 100%; height: 80vh; min-height: 520px; border: 0; }
.danger-link { color: #c0392b; margin-top: 8px; }
/* Phones, signed in (bell + avatar + menu): logo only, so the header fits. */
@media (max-width: 760px) {
    .header-inner { gap: 10px; }
    .header-actions { gap: 6px; }
}
@media (max-width: 460px) {
    .header-inner:has(.bell-link) .brand-text { display: none; }
}
.pacer-upload .field label { margin-bottom: 4px; }
.pacer-upload .btn { margin-bottom: 2px; }
.plan-drop { clear: both; margin-top: 14px; }

/* ==========================================================================
   Pacer reports → organisation chart
   ========================================================================== */
.org-head h2 span { font-weight: 600; color: var(--muted); }
.org-head p { margin-top: -6px; }
.org-toggles { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 8px; margin-bottom: 28px; }
.org-toggles-title { font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.org-toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.org-toggle { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink); cursor: pointer; }
.org-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 32px; height: 18px; border-radius: 999px; background: #c8d0dc; position: relative; cursor: pointer; transition: background .2s ease; margin: 0; }
.org-toggle input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.org-toggle input:checked { background: var(--navy-700); }
.org-toggle input:checked::before { transform: translateX(14px); }
.org-toggle input:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.org-toggle.is-fixed { cursor: default; }
.org-toggle.is-fixed input { background: var(--navy-700); opacity: .55; cursor: default; }
.org-toggle-actions { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

.org-chart { min-height: 200px; }
.org-chart.is-loaded .org-tree { animation: fade .25s ease; }
.org-tree summary { list-style: none; cursor: pointer; }
.org-tree summary::-webkit-details-marker { display: none; }
.org-bar { background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 8px 12px; border-radius: 10px 10px 0 0; font-size: .95rem; }
.org-level { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.org-leaders { max-width: 640px; margin: 0 auto; border-color: var(--navy-800); }
.org-leaders::after { content: ''; position: absolute; left: 50%; bottom: -34px; height: 34px; border-left: 2px solid #94a3b8; }
.org-leader-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 18px; }
.org-leader-cards .org-card { width: 230px; }
.org-teams-label { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 8px 0 0; height: 26px; }
.org-categories { position: relative; display: flex; flex-wrap: wrap; gap: 28px 24px; align-items: flex-start; justify-content: center; padding-top: 22px; }
.org-categories::before { content: ''; position: absolute; top: 0; left: 50%; height: 12px; border-left: 2px solid #94a3b8; }
.org-cat { flex: 1 1 calc(var(--cols) * 165px); max-width: calc(var(--cols) * 200px + 40px); min-width: 0; }
.org-cat::before { content: ''; position: absolute; top: -10px; left: -12px; right: -12px; border-top: 2px solid #94a3b8; }
.org-cat::after { content: ''; position: absolute; top: -10px; left: 50%; height: 10px; border-left: 2px solid #94a3b8; }
.org-cat:first-child::before { left: 50%; }
.org-cat:last-child::before { right: 50%; }
.org-cat:only-child::before { display: none; }
.org-groups { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; padding: 14px; background: var(--bg-soft); border-radius: 0 0 12px 12px; }
.org-group { min-width: 0; }
.org-time { text-align: center; font-family: var(--font-head); font-weight: 800; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 8px; }
.org-group-cards { display: grid; gap: 10px; }
.org-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 14px 12px 12px; text-align: center; min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
.org-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.org-card.is-double { border: 2px solid var(--orange-500); box-shadow: 0 0 0 3px var(--orange-100), var(--shadow-sm); }
.org-card.is-team-leader { border-top: 3px solid var(--navy-700); }
.org-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--orange-500); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.org-verdict { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; padding: 0; }
.org-verdict.verdict-good { background: var(--green-600); }
.org-verdict.verdict-fast { background: var(--orange-500); }
.org-verdict.verdict-late { background: #c0392b; }
.org-photo { position: relative; display: inline-block; margin-bottom: 6px; }
.org-photo .photo { margin: 0 auto; }
.org-tag { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; background: var(--orange-500); color: #fff; font-size: .64rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.org-tag-team { background: var(--navy-700); }
.org-name { font-size: .98rem; margin: 6px 0 8px; overflow-wrap: anywhere; }
.org-name a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.org-name a:hover { color: var(--orange-600); }
.org-metrics { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); text-align: left; font-size: .78rem; line-height: 1.35; }
.org-metrics li { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 2px 0; animation: fade .2s ease; }
.org-metrics li span { color: var(--muted); }
.org-metrics li b { color: var(--ink); font-weight: 600; }
.org-nodata { font-size: .74rem; color: var(--muted); margin: 6px 0 0; }
.org-skeleton { display: grid; gap: 16px; }
.org-skeleton .sk-bar, .org-skeleton .sk-card { border-radius: 12px; background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.org-skeleton .sk-bar { height: 36px; max-width: 640px; width: 100%; margin: 0 auto; }
.org-skeleton .sk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.org-skeleton .sk-card { width: 170px; height: 190px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 760px) {
    .org-leaders::after, .org-categories::before, .org-cat::before, .org-cat::after { display: none; }
    .org-categories { display: block; padding-top: 0; }
    .org-cat { margin-bottom: 14px; max-width: none; }
    .org-groups { grid-template-columns: 1fr; padding: 10px; }
    .org-bar { text-align: left; border-radius: 10px; }
    .org-level[open] > .org-bar { border-radius: 10px 10px 0 0; }
    .org-bar::after, .org-time::after { content: '▾'; float: right; transition: transform .2s ease; }
    details:not([open]) > .org-bar::after, details:not([open]) > .org-time::after { transform: rotate(-90deg); }
    .org-time { text-align: left; padding: 8px 12px; }
    .org-leader-cards .org-card { width: 100%; }
    .org-group-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .org-teams-label { margin-top: 18px; }
}
@media print {
    .org-toggles, .org-head + p { display: none !important; }
    .org-card { box-shadow: none; break-inside: avoid; }
}

/* Pacer report on screen */
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-view { margin-bottom: 28px; }
.rv-meta p { font-size: .92rem; color: var(--text); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.rv-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy-800); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 30px 0 12px; }
.rv-table td, .rv-table th { vertical-align: top; }
.rv-table .rv-note { font-size: .85rem; min-width: 200px; }
.rv-table .rv-total td { background: #e9eef5; }
.delta-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; white-space: nowrap; }
.delta-good { background: var(--green-100); color: #145c3c; }
.delta-fast { background: var(--orange-100); color: #8a4a0c; }
.delta-slow { background: var(--blue-100); color: #1d4a8a; }
.rv-chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.rv-chart-card h4 { font-size: .85rem; text-transform: uppercase; color: var(--navy-800); margin: 0 0 6px; }
.rv-chart { width: 100%; height: auto; display: block; font-family: var(--font-body); font-size: 11px; }
.rv-chart text { fill: var(--muted); }
.rv-chart .grid { stroke: #e6ebf2; stroke-width: 1; }
.rv-chart .dot { fill: #f0b496; opacity: .7; }
.rv-legend { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.rv-legend span { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin: 0 4px 0 10px; }
.rv-legend .lg-plan { border-top: 2px dashed #dd6b20; }
.rv-legend .lg-act { border-top: 2px solid #1e3a5f; }
.rv-feedback { display: grid; gap: 12px; }
.rv-box { border-radius: var(--radius-sm); padding: 14px 18px; border-left: 4px solid; }
.rv-box h4 { margin: 0 0 6px; font-size: .95rem; }
.rv-box ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.rv-box li { margin: 3px 0; }
.rv-good { background: #ebf5ff; border-color: #2b6cb0; }
.rv-good h4 { color: #2b6cb0; }
.rv-improve { background: #fff3f3; border-color: #c53030; }
.rv-improve h4 { color: #c53030; }
.rv-summary { background: #edf2f7; border-color: var(--navy-700); margin-top: 18px; }
.rv-summary p { margin: 0; font-size: .92rem; }
.rv-comments { margin-top: 14px; background: #fff7e6; border: 1px solid #f5c88c; border-left: 6px solid #d67814; border-radius: var(--radius-sm); padding: 16px 20px; }
.rv-comments h4 { color: #d67814; margin: 0 0 6px; }
.rv-comments p { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.rv-comments small { color: var(--muted); font-weight: 600; }
.rv-group { font-size: .85rem; text-transform: uppercase; color: var(--navy-800); margin: 16px 0 8px; }
.rv-tiles .tool-stat strong em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 600; }
.rv-status { font-weight: 700; }
.rv-status-good { color: var(--green-600) !important; }
.rv-status-warn { color: var(--orange-600) !important; }
.rv-status-bad { color: #c0392b !important; }
.rv-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rv-glossary { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; background: #fff; }
.rv-glossary summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); }
.rv-glossary h4 { font-size: .85rem; text-transform: uppercase; color: var(--navy-800); margin: 16px 0 6px; }
.rv-glossary dl { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.rv-glossary dt { font-weight: 700; color: var(--ink); }
.rv-glossary dd { margin: 0; }
.comments-input { min-height: 220px; font-size: 1rem; line-height: 1.5; background: #fffcf5; border-color: #f5c88c !important; }
@media (max-width: 760px) {
    .rv-charts { grid-template-columns: 1fr; }
    .rv-glossary dl { grid-template-columns: 1fr; }
    .rv-glossary dd { margin-bottom: 8px; }
}
.org-metrics li[hidden] { display: none; }
.report-view .table-card { overflow-x: auto; }
.rv-table { min-width: 980px; font-size: .9rem; }
.rv-table td:first-child { min-width: 170px; }
.rv-table td, .rv-table th { white-space: normal; }
.rv-table .rv-note { min-width: 260px; }
@media (max-width: 760px) { .rv-table { min-width: 0; } .rv-table td:first-child { min-width: 0; } }
.rv-chart { font-size: 8.5px; max-height: 340px; }

/* ==========================================================================
   Pacer reports: compact layout, card tabs, roster, metrics matrix
   ========================================================================== */
.page-hero-compact { padding: 20px 0 14px; }
.page-hero-compact h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 2px; }
.page-hero-compact h1 a { color: inherit; text-decoration: none; }
.page-hero-compact .lead { font-size: .95rem; margin: 0; }
.page-hero-compact .admin-tabs { margin-bottom: 0; }
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin-bottom: 14px; }
.rp-head h2 { margin-bottom: 2px; }
.rp-head p { margin: 0; font-size: .9rem; }
.ctabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ctab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ctab:hover { border-color: #b8c2d0; box-shadow: var(--shadow-sm); color: var(--text); }
.ctab.is-active { border: 2px solid var(--navy-800); padding: 11px 13px; box-shadow: var(--shadow-sm); }
.ctab-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 1.2rem; line-height: 1; }
.ctab-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctab-txt strong { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .98rem; color: var(--navy-800); }
.ctab-txt small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.ctab.is-active .rp-count { background: var(--orange-100); color: var(--orange-600); }
.ctabs-sub { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ctabs-sub .ctab { padding: 8px 12px; gap: 10px; }
.ctabs-sub .ctab.is-active { padding: 7px 11px; }
.ctabs-sub .ctab-ico { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; }
.ctabs-sub .ctab-txt strong { font-size: .92rem; }
.ctabs-sub .ctab-txt small { font-size: .76rem; }
.ctabs-teams { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ctabs-teams .ctab { padding: 7px 10px; }
.ctabs-teams .ctab.is-active { padding: 6px 9px; background: var(--bg-soft); }
.rp-count { font-size: .72rem; font-weight: 700; background: var(--line); color: var(--ink); border-radius: 999px; padding: .05rem .45rem; }
.rp-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.rp-tabs:not(.js-tabs) .rp-panel { margin-bottom: 16px; }
.rp-panel .rp-tabs .rp-panel { border: 0; border-radius: 0; padding: 0; }
.rp-panel .rp-tabs { margin-top: 4px; }
@media (max-width: 640px) {
    .ctabs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ctab { padding: 9px 10px; gap: 8px; align-items: flex-start; }
    .ctab.is-active { padding: 8px 9px; }
    .ctab-ico { width: 30px; height: 30px; font-size: 1rem; }
    .ctab-txt small { font-size: .72rem; }
    .ctabs-teams { grid-template-columns: repeat(3, 1fr); }
    .ctabs-teams .ctab-txt small { display: none; }
}
.rp-panel > .form-card { border: 0; padding: 0; box-shadow: none; }
.rp-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rp-team-card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.rp-team-card:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); color: var(--text); }
.rp-team-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.rp-team-card header strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); }
.rp-team-card header small { color: var(--muted); font-size: .76rem; }
.rp-team-card ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.rp-team-card li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.rp-team-card li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rp-team-card li em { font-style: normal; font-size: .66rem; font-weight: 700; color: #fff; background: var(--navy-700); border-radius: 4px; padding: 0 .3rem; }
.rp-team-card li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-team-card li.is-extra span { color: #8a4a0c; font-style: italic; }
.rp-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d4dae3; vertical-align: middle; }
.rp-dot.verdict-good { background: var(--green-600); }
.rp-dot.verdict-fast { background: var(--orange-500); }
.rp-dot.verdict-late { background: #c0392b; }
.rp-legend { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.rp-legend .rp-dot { margin: 0 3px 0 10px; }
.rp-team-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.rp-team-head h3 { margin: 0; font-size: 1.1rem; }
.rp-team-head p { margin: 2px 0 0; font-size: .84rem; }
.rp-roster td { padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
.rp-roster tr.is-extra td { background: #fffaf0; }
.rp-roster .row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rp-roster .inline-form { display: inline; margin: 0; }
.rp-tag { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; background: var(--navy-700); border-radius: 999px; padding: .05rem .5rem; margin-left: 4px; vertical-align: middle; }
.rp-tag-warn { background: var(--orange-500); }
.btn-ghost-danger { background: #fff; color: #c0392b; border: 1px solid #f0c2bc; }
.btn-ghost-danger:hover { background: #fdecea; color: #a12d22; }
.pacer-upload { margin-top: 12px; padding: 12px; transition: box-shadow .3s ease; }
.pacer-upload .field-hint { flex: 1 1 100%; margin: 0; }
.pacer-upload.is-highlight { box-shadow: 0 0 0 3px var(--orange-500); }
.pacer-upload select { width: 100%; }

.mx-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.mx-block + .mx-block { margin-top: 12px; }
.mx-label { font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.mx-presets { font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 8px; font-family: var(--font-body); color: var(--muted); }
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .88rem; cursor: pointer; }
.mx-chip:has(input:checked) { border-color: var(--navy-700); background: var(--blue-100); }
.mx-chip-plain { border-style: dashed; }
.mx-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mx-group { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.mx-group legend { font-weight: 700; font-size: .82rem; color: var(--navy-800); padding: 0 4px; }
.mx-group .org-toggle { padding: 2px 0; font-size: .84rem; }
.mx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mx-wrap { overflow: auto; max-height: 75vh; }
.mx-table { font-size: .86rem; }
.mx-table th { position: sticky; top: 0; z-index: 2; background: var(--navy-800); color: #fff; cursor: pointer; white-space: normal; min-width: 90px; vertical-align: bottom; }
.mx-table th[aria-sort="ascending"]::after { content: ' ▲'; }
.mx-table th[aria-sort="descending"]::after { content: ' ▼'; }
.mx-table td { white-space: nowrap; }
.mx-table .mx-num { text-align: right; font-variant-numeric: tabular-nums; }
.mx-table .mx-sticky { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
.mx-table th.mx-sticky { z-index: 3; background: var(--navy-800); }
.mx-table tr.mx-team-start td { border-top: 2px solid var(--navy-700); }
.mx-team { font-weight: 700; color: var(--navy-800); }
.mx-tl { font-size: .66rem; font-weight: 700; color: #fff; background: var(--navy-700); border-radius: 4px; padding: 0 .3rem; margin-left: 4px; }
.mx-verdict { font-weight: 700; }
.mx-good { color: var(--green-600); }
.mx-fast { color: var(--orange-600); }
.mx-late { color: #c0392b; }
@media (max-width: 760px) {
    .rp-panel { padding: 10px; }
    .rp-roster .row-actions { justify-content: flex-start; }
}
.rp-overview { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.rp-team-card li .rp-dot { flex: 0 0 9px; width: 9px; }
.rp-team-card header strong { white-space: nowrap; }
.rp-team-card header small { text-align: right; }

/* ==========================================================================
   Key Stakeholder Feedback
   ========================================================================== */
.sh-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-bottom: 0; color: #dbe4f3; }
.sh-hero h1 { color: #fff; }
.sh-hero h1 span { color: #c3cfe4; font-weight: 600; }
.sh-hero .lead { color: #c3cfe4; }
.sh-hero .eyebrow { color: var(--orange-500); margin-bottom: 4px; }
.sh-welcome { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 12px; font-size: .92rem; }
.sh-welcome strong { color: #fff; }
.sh-days { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .2rem .75rem; color: #fff; font-weight: 600; }
.sh-days.is-soon { background: var(--orange-500); border-color: var(--orange-500); }
.sh-h { font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-800); margin: 22px 0 10px; }
.sh-h small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.rp-panel > .sh-h:first-child { margin-top: 4px; }
.sh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.sh-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-kpi { border: 1px solid var(--line); border-top: 3px solid var(--navy-600); border-radius: 10px; background: var(--bg-soft); padding: 10px 12px; text-align: center; min-width: 0; }
.sh-kpi small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sh-kpi strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); line-height: 1.25; margin: 4px 0; overflow-wrap: anywhere; }
.sh-kpi strong em { font-style: normal; font-size: .8rem; color: var(--muted); }
.sh-kpi span { display: block; font-size: .78rem; color: var(--muted); }
.sh-verdict-good { border-top-color: var(--green-600); background: var(--green-100); }
.sh-verdict-good strong { color: var(--green-600); }
.sh-verdict-fast { border-top-color: var(--orange-500); background: var(--orange-100); }
.sh-verdict-fast strong { color: var(--orange-600); }
.sh-verdict-late { border-top-color: #c0392b; background: #fdecea; }
.sh-verdict-late strong { color: #c0392b; }
.sh-table { font-size: .86rem; }
.sh-table th { background: var(--navy-800); color: #fff; white-space: normal; vertical-align: bottom; }
.sh-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.seg-good { background: var(--green-100) !important; color: #145c3c; }
.seg-amber { background: #fff1d6 !important; color: #8a4a0c; }
.seg-red { background: #fde2df !important; color: #8c2a20; }
.sh-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff7e0; border: 1px solid #f5d48c; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.sh-pick label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.sh-pick select { min-width: 220px; padding: .45rem .6rem; border: 1px solid #e3c06a; border-radius: 8px; font: inherit; font-size: .95rem; text-transform: none; font-weight: 500; background: #fff; }
.sh-prof-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; border-bottom: 3px solid var(--navy-800); padding-bottom: 8px; margin-bottom: 12px; }
.sh-prof-head h2 { margin: 0; }
.sh-prof-head p { margin: 2px 0 0; font-size: .88rem; }
.sh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sh-compare { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sh-compare th { background: var(--navy-800); color: #fff; text-align: left; padding: 6px 8px; font-size: .78rem; }
.sh-compare td { padding: 5px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sh-compare td + td, .sh-compare th + th { text-align: right; }
.sh-compare tbody tr:nth-child(even) td { background: var(--bg-soft); }
.sh-compare tr.sh-lead td { font-weight: 700; border-top: 2px solid var(--navy-800); }
.sh-chart { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.sh-chart svg { width: 100%; height: auto; display: block; font-family: var(--font-body); font-size: 10px; }
.sh-chart text { fill: var(--muted); }
.sh-chart .t { fill: var(--navy-800); font-weight: 700; }
.sh-chart .g { stroke: #e6ebf2; }
.sh-chart .bar { fill: #9fb3d1; }
.sh-chart .bar.seg-good { fill: #58b886; }
.sh-chart .bar.seg-amber { fill: #f0b14d; }
.sh-chart .bar.seg-red { fill: #e07466; }
.sh-chart .plan { stroke: var(--navy-800); stroke-width: 3; }
.sh-chart figcaption { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.sh-chart .lg-bar, .sh-chart .lg-plan { display: inline-block; width: 14px; vertical-align: middle; margin: 0 3px 0 6px; }
.sh-chart .lg-bar { height: 10px; background: #58b886; }
.sh-chart .lg-plan { height: 0; border-top: 3px solid var(--navy-800); }
.sh-glossary { display: grid; grid-template-columns: 260px 1fr; gap: 8px 18px; margin: 0; font-size: .92rem; }
.sh-glossary dt { font-weight: 700; color: var(--ink); }
.sh-glossary dd { margin: 0; }
.rp-team-card li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
/* Admin: stakeholder link cards */
.sh-add { margin: 4px 0 16px; }
.sh-links { display: grid; gap: 12px; }
.sh-link-card { display: flex; flex-wrap: wrap; gap: 14px; border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: 12px; padding: 12px 14px; background: #fff; }
.sh-link-card.is-expired, .sh-link-card.is-revoked { border-left-color: #c0c8d4; background: var(--bg-soft); }
.sh-link-main { flex: 1 1 420px; min-width: 0; }
.sh-link-main p { margin: 0 0 4px; font-size: .88rem; }
.sh-link-who { font-size: 1rem !important; }
.sh-badge { display: inline-block; margin-left: 6px; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.sh-badge-active { background: var(--green-100); color: #145c3c; }
.sh-badge-expired { background: #e6ebf2; color: var(--muted); }
.sh-badge-revoked { background: #fdecea; color: #8c2a20; }
.sh-copy { display: flex; gap: 6px; margin: 8px 0; }
.sh-copy input { flex: 1; min-width: 0; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .82rem; background: var(--bg-soft); }
.sh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sh-actions .inline-input { width: 4.5rem; }
.sh-qr { flex: 0 0 120px; text-align: center; }
.sh-qr svg { width: 120px; height: 120px; display: block; }
@media (max-width: 860px) {
    .sh-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-two { grid-template-columns: 1fr; }
    .sh-glossary { grid-template-columns: 1fr; }
    .sh-glossary dd { margin-bottom: 6px; }
}
@media (max-width: 520px) {
    .sh-pick select { min-width: 0; width: 100%; }
    .sh-pick label { flex: 1 1 100%; }
    .sh-copy { flex-wrap: wrap; }
}

/* Stakeholder tables: header with Excel button, team-leader rows */
.sh-table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 4px 0 6px; }
.sh-table-head .sh-h { margin: 0; }
.sh-note { margin: 0 0 8px; color: var(--muted); font-size: .86rem; }
.sh-table tr.sh-lead td, .sh-compare tr.sh-lead td { background: #fdebd3; font-weight: 600; }
.sh-table tr.sh-lead td:first-child { box-shadow: inset 3px 0 0 var(--orange-500); }
.sh-tl { font-style: normal; font-size: .66rem; font-weight: 700; color: #fff; background: var(--navy-700); border-radius: 4px; padding: 0 .3rem; vertical-align: middle; }
.sh-two > div > .table-card { margin-bottom: 0; }
.sh-subtabs-label { margin: 0 0 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ctabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sh-more { margin: 12px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sh-more a { font-weight: 600; }
@media (max-width: 640px) { .ctabs-3 { grid-template-columns: 1fr; } }
.sh-gl-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sh-gl-nav a { font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--navy-800); text-decoration: none; }
.sh-gl-nav a:hover { border-color: var(--navy-800); }
#about .sh-h { margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
#about .sh-glossary { margin-top: 8px; }

/* ==========================================================================
   Coming soon overlay (Admin → Settings) and the settings page
   ========================================================================== */
.cs-main { position: relative; }
.cs-content { filter: grayscale(.35) blur(1.2px); opacity: .55; pointer-events: none; user-select: none; }
.cs-overlay { position: absolute; inset: 0; z-index: 40; background: linear-gradient(180deg, rgba(246, 248, 251, .35), rgba(246, 248, 251, .75)); }
.cs-card { position: sticky; top: 110px; margin: 70px auto 40px; max-width: 460px; width: calc(100% - 32px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange-500); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 42, 79, .18); padding: 26px 26px 22px; text-align: center; }
.cs-badge { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--orange-100); font-size: 1.6rem; margin-bottom: 6px; }
.cs-card h2 { margin: 4px 0 8px; font-size: 1.6rem; color: var(--navy-800); }
.cs-card p { color: var(--muted); margin: 0 0 16px; }
.cs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cs-card .cs-preview { margin: 14px 0 0; font-size: .82rem; }
.cs-admin-bar { background: #fff4e0; border-bottom: 1px solid #f5d48c; font-size: .88rem; }
.cs-admin-bar .container { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.cs-admin-bar span { flex: 1 1 320px; color: #7a4a06; }
.cs-admin-bar a { font-weight: 600; }
.settings-card h2 { margin: 0; font-size: 1.3rem; }
.settings-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.settings-status { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; }
.settings-status.is-live { background: var(--green-100); color: #145c3c; }
.settings-status.is-soon { background: var(--orange-100); color: var(--orange-600); }
.form .check-row, .form .choice-card { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 0; font-weight: 400; }
.check-row input, .choice-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy-800); flex: none; }
.check-row > span, .choice-card > span { display: flex; flex-direction: column; gap: 2px; }
.check-row small, .choice-card small { color: var(--muted); font-size: .84rem; }
.form .check-row { margin-bottom: 18px; }
.status-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.choice-card:has(input:checked) { border: 2px solid var(--navy-800); padding: 11px 13px; background: var(--bg-soft); }
.settings-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: .9rem; }
@media (max-width: 640px) { .status-choice { grid-template-columns: 1fr; } .cs-card { margin-top: 40px; padding: 20px 18px; } }

/* Wristband tool: mode switch and advanced A4 race sheet preview */
.wb-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wb-modes .ctab { font: inherit; text-align: left; cursor: pointer; }
.wb-h { font-size: .95rem; margin: 14px 0 8px; color: var(--navy-800); }
.wb-h:first-child { margin-top: 0; }
.wb-h small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 6px; }
[data-wb-panel] { min-width: 0; max-width: 100%; }
.wb-sheet-wrap { overflow-x: auto; max-width: 100%; padding: 4px 0 8px; }
.wb-sheet { width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 42, 79, .1); padding: 42px 46px 22px; font-family: var(--font-body); color: #1e293b; }
.wbs-title { font-family: var(--font-head); font-size: 1.65rem; color: #0f172a; margin: 0; letter-spacing: .01em; }
.wbs-sub { color: #64748b; margin: 2px 0 0; padding-bottom: 10px; border-bottom: 2px solid #0284c7; font-size: .92rem; }
.wbs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 6px; margin: 16px 0; }
.wbs-tiles small { display: block; font-size: .68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.wbs-tiles strong { color: #0284c7; font-size: 1.1rem; }
.wbs-cut { border: 2px dashed #94a3b8; border-radius: 10px; padding: 10px 14px 14px; }
.wbs-cut-label { margin: 0 0 8px; font-size: .74rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.wbs-band { border: 2px solid #0f172a; border-radius: 4px; overflow: hidden; }
.wbs-band-head { display: flex; justify-content: space-between; gap: 10px; background: #0f172a; color: #fff; font-weight: 700; font-size: .86rem; padding: 7px 10px; }
.wbs-band-head b { color: #38bdf8; }
.wbs-band table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.wbs-band th { background: #f1f5f9; color: #475569; text-align: left; font-size: .68rem; text-transform: uppercase; padding: 4px 6px; border-bottom: 1px solid #cbd5e1; }
.wbs-band td { padding: 0 6px; height: 22px; border-bottom: 1px solid #e2e8f0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wbs-band tbody tr:nth-child(even) td { background: #f8fafc; }
.wbs-band tr.is-final td { font-weight: 700; }
.wbs-act { width: calc(100% - 4px); border: 1px dashed transparent; background: transparent; font: inherit; color: inherit; padding: 1px 3px; border-radius: 4px; }
.wbs-act:hover { border-color: #cbd5e1; background: #fff; }
.wbs-act:focus { outline: none; border-color: var(--orange-500); background: #fff; }
.wbs-band tr.is-gel .wbs-act, .wbs-band tr.is-final .wbs-act { font-weight: 700; }
.wbs-band tr.is-gel .wbs-act { color: #d97706; width: calc(100% - 26px); }
.wbs-gel { font-size: .85rem; }
.wbs-tape { background: #e2e8f0; color: #64748b; font-size: .68rem; font-weight: 700; text-align: center; padding: 3px; }
.wbs-howto { background: #f0f9ff; border-left: 4px solid #0284c7; border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 16px 0; font-size: .84rem; }
.wbs-howto h3 { color: #0369a1; font-size: .98rem; margin: 0 0 6px; }
.wbs-howto ol { margin: 0; padding-left: 18px; }
.wbs-howto li { margin-bottom: 3px; }
.wbs-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wbs-notes div { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.wbs-notes h4 { margin: 0 0 4px; font-size: .88rem; color: #0f172a; }
.wbs-notes p { margin: 0; font-size: .8rem; color: #64748b; }
.wbs-foot { display: flex; justify-content: space-between; margin: 18px 0 0; font-size: .72rem; color: #64748b; }
.tool-order { list-style: none; margin: 12px 0 8px; padding: 0; counter-reset: tool; display: grid; gap: 6px; }
.tool-order li { counter-increment: tool; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 10px; background: #fff; transition: background .3s ease; }
.tool-order li::before { content: counter(tool); flex: none; width: 22px; text-align: center; font-weight: 700; color: var(--muted); font-size: .85rem; }
.tool-order li.is-moved { background: var(--orange-100); }
.form .tool-order-check { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; cursor: pointer; min-width: 0; }
.tool-order-check input { width: 18px; height: 18px; accent-color: var(--navy-800); flex: none; }
.tool-order-check .tool-icon { width: 32px; height: 32px; flex: none; }
.tool-order-check > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tool-order-check small { color: var(--muted); font-size: .8rem; }
.tool-order-check input:not(:checked) ~ span { opacity: .45; }
.tool-order-move { display: flex; gap: 4px; flex: none; }
.tool-order-move .btn { padding: .2rem .55rem; min-width: 0; }
.tool-card.is-hidden-tool { opacity: .6; border-style: dashed; }
.wb-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.wb-fs:disabled { opacity: .45; }
.wb-dist-hint { align-self: center; margin: 0; }
.pace-card-4 { top: 12px; right: 10px; min-width: 0; padding: 12px 18px; background: rgba(15, 42, 79, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .18); animation-delay: -3s; }
.pace-card-4 .pace-label { color: rgba(255, 255, 255, .7); }
.pace-card-4 .pace-time { color: #fff; display: flex; align-items: center; gap: 8px; }
.pace-card-4 .pace-detail { color: rgba(255, 255, 255, .8); }
.pace-check { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 1rem; }
.rm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin-bottom: 6px; }
.rm-head h2 { margin: 0; font-size: 1.35rem; }
.rm-head p { margin: 2px 0 0; }
.rm-filter { display: flex; flex-wrap: wrap; gap: 6px; }
button.rm-chip { border: 2px solid transparent; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; padding: .25rem .75rem; }
button.rm-chip:hover { border-color: #c6cfdb; }
button.rm-chip.is-on { border-color: var(--navy-800); }
.rm-all { background: #fff; color: var(--navy-800); border-color: var(--line) !important; }
.rm-all.is-on { border-color: var(--navy-800) !important; }
.rm-section .section-title { font-size: 1.05rem; margin: 22px 0 8px; }
#platform .scoring-explainer { margin-top: 32px; }
@media (min-width: 1100px) { .ctabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pace-card-4 .pace-time { font-size: 1.7rem; }
/* Roadmap: priority list with drag and drop */
.rm-views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rm-view { font: inherit; font-size: .82rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.rm-view.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.rm-head { align-items: center; }
.rm-head > div:first-child { flex: 1 1 260px; }
.rm-prio-hint { font-size: .86rem; margin: 10px 0 8px; }
.rm-saved { color: var(--green-600); font-weight: 600; }
.rm-prio { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-prio li { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; transition: background .3s ease; }
.rm-prio li.is-moved { background: var(--orange-100); }
.rm-prio li.is-dragging { position: fixed; z-index: 100; box-shadow: 0 14px 34px rgba(15, 42, 79, .25); background: #fff; pointer-events: none; }
.rm-prio li.rm-ph { border: 2px dashed var(--orange-500); background: var(--orange-100); padding: 0; }
.rm-rank { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--navy-800); color: #fff; font-weight: 800; font-size: .85rem; }
.rm-handle { flex: none; width: 26px; height: 30px; border: 0; background: var(--bg-soft); border-radius: 6px; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: grab; touch-action: none; }
.rm-handle:active { cursor: grabbing; }
.rm-prio-main { flex: 1; min-width: 0; }
.rm-prio-main > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rm-prio-main p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.rm-prio-main small { color: #8a96a8; font-size: .76rem; }
.rm-move { flex: none; display: flex; flex-direction: column; gap: 2px; }
.rm-move button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 26px; height: 18px; font-size: .7rem; line-height: 1; cursor: pointer; color: var(--navy-800); padding: 0; }
.rm-move button:hover { border-color: var(--navy-800); }
.rm-prio li[hidden] { display: none; }
.rm-all-export { margin: 10px 0 0; }
.sh-report-dl { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .sh-report-dl span { font-size: .85rem; opacity: .8; }
.admin-head-actions .inline-form, .cell-actions .inline-form { display: inline; margin: 0; }
.cell-actions { white-space: nowrap; }
.status-chip.chip-hidden { background: #e6ebf2; color: #475569; }
.status-chip.chip-example { background: #ede9fe; color: #5b21b6; }
/* Review: slot cards by state */
.cap-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.cap-key::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--k); }
.cap-key.st-empty { --k: #cbd5e1; } .cap-key.st-review { --k: #f59e0b; } .cap-key.st-partial { --k: #3b82f6; } .cap-key.st-full { --k: var(--green-600); }
.cap-warn-key { color: #b45309; }
.cap-group { font-size: .9rem; margin: 14px 0 6px; color: var(--navy-800); }
.capacity-grid { margin-bottom: 8px; }
.capacity-card { position: relative; border-left: 5px solid var(--k, var(--line)); gap: 3px; }
.capacity-card.st-empty { --k: #cbd5e1; background: #f8fafc; border-style: dashed; border-left-style: solid; }
.capacity-card.st-empty strong, .capacity-card.st-empty .cap-line { color: #94a3b8; }
.capacity-card.st-review { --k: #f59e0b; }
.capacity-card.st-partial { --k: #3b82f6; }
.capacity-card.st-pacers, .capacity-card.st-full { --k: var(--green-600); }
.capacity-card.st-full { background: #f0fbf4; }
.capacity-card.is-active { box-shadow: 0 0 0 2px var(--orange-500); }
.cap-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cap-applied { min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.st-empty .cap-applied { background: #cbd5e1; }
.cap-state { font-size: .74rem; font-weight: 700; color: var(--k); text-transform: uppercase; letter-spacing: .03em; }
.st-empty .cap-state { color: #94a3b8; }
.st-review .cap-state { color: #b45309; }
.cap-bar { height: 6px; border-radius: 999px; background: #e5e9f0; overflow: hidden; margin: 2px 0; }
.cap-bar span { display: block; height: 100%; background: var(--k); border-radius: 999px; }
.cap-line b { font-weight: 700; }
.cap-warn { font-size: .74rem; color: #b45309; font-weight: 600; }
/* Review: compact applications table, column chooser, scoring summary */
.rv-wide { width: min(1500px, calc(100vw - 32px)); position: relative; left: 50%; margin-left: calc(-1 * min(750px, calc(50vw - 16px))); }
.rv-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.rv-table th { background: var(--navy-800); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 6px 7px; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.rv-table td { padding: 3px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; height: 30px; }
.rv-table tbody tr:nth-child(even) td { background: #f8fafc; }
.rv-table tbody tr:hover td { background: #fff4e6; }
.rv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rv-table [hidden] { display: none; }
.rv-table .status-chip, .rv-table .margin-chip, .rv-table .rec-chip, .rv-table .inform-chip { font-size: .68rem; padding: .08rem .45rem; }
.rv-table .rv-name a { font-weight: 700; color: var(--ink); text-decoration: none; }
.rv-table .rv-name a:hover { text-decoration: underline; }
.rv-table .col-check { width: 22px; padding-right: 0; }
.rv-rank { width: 46px; color: var(--muted); }
.rv-handle { cursor: grab; color: #94a3b8; margin-right: 5px; touch-action: none; user-select: none; font-size: .95rem; }
.rv-handle:active { cursor: grabbing; }
.rv-table tr.rv-dragging { position: fixed; z-index: 50; display: table; table-layout: fixed; box-shadow: 0 12px 30px rgba(15, 42, 79, .25); background: #fff; pointer-events: none; }
.rv-table tr.rv-ph td { background: var(--orange-100) !important; border: 2px dashed var(--orange-500); }
.rv-table tr.rv-moved td { background: var(--orange-100) !important; transition: background .6s; }
.rv-mine { text-align: center; background: #fff7ed; }
.rv-table th.rv-mine { background: var(--orange-600); }
.rv-score { font: inherit; font-weight: 700; width: 58px; padding: 2px 4px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; text-align: center; cursor: pointer; }
.rv-score.is-set { border-color: var(--orange-500); background: var(--orange-100); color: var(--orange-600); }
.rv-score.is-saving { opacity: .5; }
.rv-score.is-saved { box-shadow: 0 0 0 3px rgba(56, 161, 105, .45); }
.rv-score.is-error { box-shadow: 0 0 0 3px rgba(197, 48, 48, .45); }
.rv-note { font-size: .8rem; margin: 8px 0 0; }
.rv-cols-btn { margin-left: auto; }
.rv-cols-panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; margin: 0 0 12px; box-shadow: var(--shadow-sm); }
.rv-cols-panel p { margin: 0 0 8px; font-size: .85rem; }
.rv-cols-panel ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.rv-cols-panel li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; font-size: .85rem; }
.rv-cols-panel li.rv-dragging { position: fixed; z-index: 50; box-shadow: 0 10px 24px rgba(15, 42, 79, .2); pointer-events: none; }
.rv-cols-panel li.rv-ph { border: 2px dashed var(--orange-500); background: var(--orange-100); }
.rv-cols-panel label { flex: 1; display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.rv-cols-panel button { border: 1px solid var(--line); background: #fff; border-radius: 5px; width: 22px; height: 20px; font-size: .7rem; padding: 0; cursor: pointer; }
.rv-grip { cursor: grab; color: #94a3b8; touch-action: none; user-select: none; }
.rv-scores-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rv-scores-head .admin-toolbar { margin: 0; }
.rv-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .86rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.rv-mode label { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; font-weight: 400; }
.rv-scores td.rv-shi { color: #145c3c; font-weight: 700; } .rv-scores td.rv-smid { color: #8a4a0c; font-weight: 600; } .rv-scores td.rv-slo { color: #8c2a20; font-weight: 600; }
.rv-scores .rv-comp { background: #eef2f7; }
.rv-scores th.rv-comp { background: #334e75; }
.rv-scores .rv-total { background: #fff1de; font-size: .85rem; }
.rv-scores th.rv-total { background: var(--orange-600); }
.reset-link-box { border: 1px solid #f5d48c; background: #fff7e0; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; } .reset-link-box label { font-size: .9rem; }
.rv-autoscore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #fff7ed; border: 1px solid #fbd5a5; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: .85rem; }
.rv-autoscore label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
.rv-autoscore-msg { color: var(--green-600); font-weight: 600; }
.rv-note-top { margin: 0 0 8px; }
/* Selection workflow */
.flow { list-style: none; display: flex; margin: 0; padding: 6px 0 0; counter-reset: none; }
.flow li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 70px; }
.flow li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #d6dbe3; z-index: 0; }
.flow li:first-child::before { display: none; }
.flow li.is-done::before, .flow li.is-current::before, .flow li.is-warn::before { background: #334155; }
.flow-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: #fff; border: 2px solid #d6dbe3; color: #94a3b8; }
.flow li.is-done .flow-dot { background: #334155; border-color: #334155; color: #fff; }
.flow li.is-current .flow-dot { border-color: #334155; color: #334155; box-shadow: 0 0 0 3px #e2e8f0; }
.flow li.is-warn .flow-dot { border-color: #c0392b; background: #fdecea; color: #c0392b; }
.flow-label { font-size: .78rem; color: #475569; }
.flow li.is-current .flow-label { font-weight: 700; color: var(--ink); }
.flow li.is-todo .flow-label { color: #94a3b8; }
.flow small { font-size: .68rem; color: var(--muted); }
.flow li.is-warn small { color: #c0392b; font-weight: 600; }
.flow-compact { flex: 1 1 420px; padding: 0; }
.flow-compact .flow-dot { width: 20px; height: 20px; font-size: .66rem; }
.flow-compact li::before { top: 9px; }
.flow-compact .flow-label { font-size: .7rem; }
.flow-compact small { font-size: .62rem; }
.slot-flowbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin: 0 0 10px; box-shadow: var(--shadow-sm); }
.slot-flowbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.slot-flowbar-actions form { margin: 0; }
.slot-block { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0 0 10px; }
.slot-block > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; cursor: pointer; list-style: none; }
.slot-block > summary::-webkit-details-marker { display: none; }
.slot-block > summary strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); min-width: 80px; }
.slot-need { font-size: .78rem; color: var(--muted); min-width: 190px; }
.slot-block.st-agreement { border-left: 5px solid #3b82f6; }
.slot-block.st-selected, .slot-block.st-informed { border-left: 5px solid var(--green-600); }
.slot-block.st-scoring { border-left: 5px solid #f59e0b; }
.slot-body { padding: 0 14px 14px; }
.slot-leaders { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.leader-chip { font-size: .74rem; padding: .2rem .6rem; border-radius: 999px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.leader-chip.is-finished { background: #e0ecff; color: #1d4ed8; border-color: #bfdbfe; }
.leader-chip.v-agree { background: var(--green-100); color: #145c3c; border-color: #a7e3c0; }
.leader-chip.v-disagree { background: #fdecea; color: #8c2a20; border-color: #f5c2bc; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.slot-actions form { margin: 0; }
.verdict-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.verdict-form input[type=text] { min-width: 260px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; }
.rv-scores tr.prop-selected td { background: #ecfdf3 !important; }
.rv-scores tr.prop-backup td { background: #eff6ff !important; }
.rv-scores tr.is-excluded td { color: #94a3b8; background: #f8fafc !important; }
.rv-scores td.rv-sx { color: #c0392b; font-weight: 700; }
.rv-scores sup { font-size: .6rem; margin-left: 1px; }
.prop-chip { font-size: .68rem; font-weight: 700; padding: .08rem .5rem; border-radius: 999px; }
.prop-chip.prop-selected { background: var(--green-100); color: #145c3c; }
.prop-chip.prop-backup { background: #dbeafe; color: #1e40af; }
.prop-chip.prop-x { background: #fdecea; color: #8c2a20; }
.slot-chat { border-top: 1px solid var(--line); padding-top: 8px; max-width: 900px; }
.slot-chat h4 { margin: 0 0 6px; font-size: .85rem; color: var(--navy-800); }
.chat-msg { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 10px; margin: 0 0 6px; font-size: .84rem; }
.chat-msg.is-mine { background: #fff7ed; border-color: #fbd5a5; }
.chat-msg small { color: var(--muted); }
.chat-msg p { margin: 2px 0 0; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; }
.rv-score.is-x { border-color: #c0392b; background: #fdecea; color: #c0392b; }
.rv-score:disabled { opacity: .65; cursor: not-allowed; }
.rv-comment { min-width: 180px; background: #fff7ed; }
.rv-table th.rv-comment { background: var(--orange-600); }
.rv-cmt { width: 100%; min-width: 160px; font: inherit; font-size: .76rem; padding: 2px 6px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.rv-cmt.is-saved { box-shadow: 0 0 0 3px rgba(56, 161, 105, .45); }
.rv-cmt.is-error { box-shadow: 0 0 0 3px rgba(197, 48, 48, .45); }
.rv-status { font: inherit; font-size: .7rem; font-weight: 700; padding: 1px 4px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.rv-status.status-selected { background: var(--green-100); color: #145c3c; border-color: #a7e3c0; }
.rv-status.status-backup { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.rv-status.status-rejected { background: #fdecea; color: #8c2a20; border-color: #f5c2bc; }
.rv-status.status-shortlisted { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.rv-status.status-in_review { background: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.rv-status.is-saved { box-shadow: 0 0 0 3px rgba(56, 161, 105, .45); }
.admin-tabs .admin-tab-switch { margin-left: auto; border-style: dashed; color: var(--orange-600); }
/* Compare per slot */
.cmp-toolbar label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; margin: 0; }
.cmp-note { font-size: .85rem; margin: 0 0 8px; }
.compare-table th .cmp-remove { float: right; margin: -2px -4px 0 6px; font-size: .75rem; color: #94a3b8; text-decoration: none; border: 1px solid transparent; border-radius: 4px; padding: 0 4px; }
.compare-table th .cmp-remove:hover { color: #c0392b; border-color: #f5c2bc; background: #fdecea; }
.compare-table tr.cmp-key td, .compare-table tr.cmp-key th { font-weight: 700; }
.compare-table tr.cmp-key td { font-size: 1.02em; }
.compare-table tr.cmp-leader th small { font-size: .7em; color: var(--muted); text-transform: uppercase; }
.compare-table td.rv-sx { color: #c0392b; font-weight: 700; }
.cmp-comment { display: inline-block; max-width: 180px; white-space: normal; font-size: .85em; color: var(--text); }
