/* Source Serif 4 (variable, 400-700), self-hosted so visitors' browsers never contact Google.
   License: fonts/OFL.txt (SIL Open Font License 1.1). Files from Google Fonts v15, latin + latin-ext. */
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/source-serif-4-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/source-serif-4-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --ink: #12151b;
    --muted: #5c6472;
    --muted-soft: #8991a0;
    --line: #e2ded3;
    --panel: #ffffff;
    --page: #faf9f6;
    --paper-shade: #f1efe9;
    --primary: #12151b;
    --primary-dark: #05070a;
    --accent: #1b4d38;
    --accent-dark: #123526;
    --cta: #1b4d38;
    --cta-dark: #123526;
    --success: #2f6e4f;
    --success-tint: #e9f2ec;
    --gold: #b8730c;
    --danger: #a2331f;
    --shadow: 0 18px 45px rgba(18, 21, 27, 0.14);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    scroll-behavior: smooth;
}

/* Dark theme — applied via a data-theme attribute set by inline script before first paint (see foot of <head>).
   Defaults to dark for first-time visitors; a saved localStorage choice overrides it either way. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f2efe9;
    --muted: #d6cfc4;
    --muted-soft: #a39a8c;
    --line: #37322a;
    --panel: #201e19;
    --page: #161511;
    --paper-shade: #29251e;
    --primary: #0b0a08;
    --primary-dark: #000000;
    --accent: #4fae7a;
    --accent-dark: #3d8f65;
    --success: #3fc7b0;
    --success-tint: #163330;
    --gold: #d99a3f;
    --danger: #e2604c;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

h1, h2, h3, h4,
.brand,
.price-card strong {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--primary);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
}

.brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    position: relative;
    border-radius: 10px;
    color: #d7dde7;
    padding: 9px 11px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.theme-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 34px;
    align-items: center;
    padding: 56px 0 44px;
}

.hero h1,
.page h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
}

.hero p,
.page > p,
.about-layout p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.eyebrow.on-dark {
    color: #8fd6ab;
}

.eyebrow.on-dark::before {
    background: #8fd6ab;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 800;
    padding: 13px 18px;
    text-decoration: none;
    min-height: 44px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

button[hidden] {
    display: none;
}

.button:active,
button:not(:disabled):active,
.link-button:active {
    transform: scale(0.97);
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: var(--cta);
    color: #fff;
}

.primary:hover {
    background: var(--cta-dark);
    box-shadow: var(--shadow);
}

.secondary {
    background: var(--paper-shade);
    color: var(--ink);
}

.secondary:hover {
    background: var(--line);
}

.hero-panel,
.panel,
.side-panel,
.contact-card,
.timeline article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    padding: 30px;
    background: var(--page);
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

/* The hero's "resume image": a WebGL halftone print of the resume mockup that sharpens
   into focus around the cursor, driven by halftone.js. Sized/rounded to match the panel
   the old .paper mockup used to occupy. */
.hero-halftone {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 17 / 22;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(18, 21, 27, 0.14);
}

.hero-halftone-note {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted-soft);
}

/* Shown on touch devices and if WebGL/ogl fails to load — the same resume mockup image
   used by the interactive version, just static: no halftone print, no reveal loupe. */
.hero-halftone-fallback {
    background: #ffffff;
}

.hero-halftone-fallback-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-band {
    background: var(--paper-shade);
    padding: 34px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.timeline article,
.contact-card {
    padding: 24px;
}

.feature-grid article {
    border-top: 2px solid var(--accent);
    padding-top: 18px;
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 10px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}

.trust-row span + span {
    position: relative;
    padding-left: 24px;
}

.trust-row span + span::before {
    content: "\00b7";
    position: absolute;
    left: 9px;
}

.mini-steps {
    padding: 48px 0 8px;
}

.mini-steps h2 {
    max-width: 640px;
}

.mini-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.18;
}

.feature-grid p,
.timeline p,
.contact-card p,
.service-section p,
.human-help p,
.hint,
.muted {
    color: var(--muted);
}

/* Secondary copy reads as a quieter size, not just a greyer color, and its links
   take the accent instead of a grey underline. */
.hint {
    font-size: 15px;
    line-height: 1.5;
}

.hint a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fine-print {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.fine-print a {
    color: inherit;
    text-underline-offset: 2px;
}

.service-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 44px 0 52px;
}

.service-copy h2 {
    max-width: 720px;
    font-size: clamp(28px, 4vw, 44px);
}

.price-card,
.human-help {
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
    padding: 26px;
    box-shadow: var(--shadow);
}

.price-card p,
.human-help p {
    color: #cbd5e1;
}

.price-label {
    color: #8fd6ab;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.price-card strong {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin: 8px 0 12px;
}

.human-help {
    grid-column: 1 / -1;
}

.final-cta {
    background: var(--primary);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.final-cta h2 {
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    max-width: 640px;
    margin: 0 auto 12px;
}

.final-cta p {
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 17px;
}

.final-cta .button-row {
    justify-content: center;
    margin-top: 0;
}

.page {
    padding: 52px 0;
}

.timeline {
    display: grid;
    gap: 18px;
    margin: 28px 0;
}

.timeline article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px 18px;
}

.timeline span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--paper-shade);
    color: var(--accent);
    font-weight: 900;
}

.timeline h2,
.timeline p {
    grid-column: 2;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding: 24px 0 52px;
}

/* A hidden side panel (review results with nothing to show) gives its column back. */
.review-grid:has(> .side-panel[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}


.panel,
.side-panel {
    padding: 26px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
}

input[type="file"],
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="month"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

input[type="file"] {
    padding: 14px;
}

/* The browser draws its own "Choose File" button as a separate sub-element that
   ignores the input's own background/color/border — style it to match .secondary
   so it doesn't render as a stray native-OS widget inside an otherwise themed form. */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--paper-shade);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--line);
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="month"] {
    padding: 14px 15px;
}

textarea {
    min-height: 220px;
    resize: vertical;
}

.compact-textarea {
    min-height: 130px;
}

.medium-textarea {
    min-height: 160px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.alert {
    border: 1px solid #f1b8b3;
    background: #fff3f2;
    color: var(--danger);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-success {
    border-color: #bfe3c8;
    background: var(--success-tint);
    color: var(--success);
}

.inline-account-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-shade);
    padding: 16px;
    margin-bottom: 18px;
}

.inline-account-panel[hidden] {
    display: none;
}

.output {
    white-space: pre-wrap;
    border: 1px solid var(--line);
    background: var(--paper-shade);
    border-radius: 10px;
    padding: 18px;
    overflow-x: auto;
}

.output-actions {
    margin: 6px 0 18px;
}

/* Native <details> dropdown — no JS needed to open/close. */
.export-menu {
    position: relative;
    display: inline-block;
}

.export-menu > summary {
    list-style: none;
    cursor: pointer;
}

.export-menu > summary::-webkit-details-marker {
    display: none;
}

.export-menu > summary::after {
    content: ' \25BE';
}

.export-menu-list {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.export-menu-list .button,
.export-menu-list button {
    width: 100%;
}

.font-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.font-picker select {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    padding: 9px 10px;
}

.share-card-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

.share-card-preview {
    position: sticky;
    top: 20px;
    display: flex;
    justify-content: center;
}

.share-card-preview canvas {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.share-card-question-list {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 8px;
}

.share-card-question-item {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--panel);
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
}

.share-card-question-item:last-child {
    border-bottom: 0;
}

.share-card-question-item:hover {
    background: var(--paper-shade);
}

.share-card-question-niche {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--success);
    margin-bottom: 2px;
}

.share-card-question-text {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 780px) {
    .share-card-layout {
        grid-template-columns: 1fr;
    }

    .share-card-preview {
        position: static;
        order: -1;
    }
}

.admin-section {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    margin: 20px 0;
    overflow: hidden;
}

.admin-section > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-shade);
}

.admin-section > summary::-webkit-details-marker {
    display: none;
}

.admin-section > summary::before {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    width: 14px;
}

.admin-section[open] > summary::before {
    content: '\2212';
}

.admin-section-count {
    font-weight: 500;
    font-size: 14px;
    color: var(--muted);
}

.admin-section-body {
    padding: 18px;
    border-top: 1px solid var(--line);
}

/* Job feed swipe card (jobs.html, T18). pan-y: vertical drags still scroll the page. */
/* The deck clips the dragged card: a transform that pokes past the edge makes the page
   scrollable sideways, and the next tap was spent stopping that fling. */
.job-deck {
    overflow: hidden;
    margin: 0 -8px;
    padding: 0 8px;
}

.job-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(var(--swipe-tint, transparent), var(--swipe-tint, transparent)), var(--paper-shade);
    padding: 22px;
    margin: 12px 0 16px;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    transition: transform 0.2s ease;
}

.job-card-title {
    margin: 0 0 4px;
}

.job-card-company {
    margin: 0 0 6px;
    font-weight: 700;
}

.job-card-why {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.job-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.job-notice {
    margin-bottom: 8px;
}

.job-reasons {
    margin-top: 18px;
}

.job-reasons-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.job-reason-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.job-reason-grid .job-reason {
    min-height: 44px;
    padding-inline: 6px;
}

@media (max-width: 380px) {
    .job-reason-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* More About You (about-you.html, T19): topic chips that scroll sideways on a phone,
   and a question card that swipes between topics. */
/* Without this the chip row's full width stretches the grid column past the screen. */
.about-panel {
    min-width: 0;
}

.about-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 6px 0 4px;
    scrollbar-width: none;
}

.about-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-shade);
    color: var(--ink);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.about-chip[aria-selected="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.about-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    padding: 20px;
    margin: 10px 0 8px;
    touch-action: pan-y;
    transition: transform 0.2s ease;
}

.about-card-topic {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-card-question {
    margin: 0 0 6px;
    font-size: 20px;
}

/* About You knowledge map, phone layout (about-you.html mapHtml). */
.know-list-area {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.know-list-area:first-child {
    border-top: 0;
}

.know-list-area .know-area {
    margin: 0 0 4px;
    font-weight: 700;
}

.know-list-area ul {
    margin: 0;
    padding-left: 18px;
}

.know-list-area .hint {
    margin: 0;
}

.know-list-area.know-dim .know-area {
    color: var(--muted);
}

/* Dashboard "Next Up" card (T11). */
.next-up {
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--panel);
    padding: 18px 20px;
    margin: 18px 0 22px;
}

.next-up .eyebrow {
    margin-top: 0;
}

.next-up-question {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.tile {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    overflow: hidden;
    align-self: start;
}

/* Packed (dashboard.html setupTileLayout): thin 4px rows; the script puts each tile in the
   shortest column and spans as many rows as its height needs, so a minimized tile frees its
   space and the next tiles move up into it. Without the script the plain grid above still works. */
.dashboard-tiles.packed {
    grid-auto-rows: 4px;
    row-gap: 0;
}

.dashboard-tiles.packed > .tile {
    margin-bottom: 16px;
}

.tile.dragging {
    border-color: var(--accent);
    opacity: 0.75;
}

/* Same type and color as the "Resume Reviewer" title in the header. */
.tile > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* White on a white light-mode tile can't be read, so light mode keeps the dark ink. */
:root[data-theme="light"] .tile > summary {
    color: var(--ink);
}

.tile > summary::-webkit-details-marker {
    display: none;
}

.tile-open {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
}

.tile-open:hover,
.tile-open:focus-visible {
    color: var(--accent);
    background: var(--paper-shade);
}

.tile > summary:has(.tile-open)::after {
    margin-left: 4px;
}

.tile > summary::after {
    content: '+';
    margin-left: auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
}

.tile[open] > summary::after {
    content: '\2212';
}

.tile-handle {
    cursor: grab;
    color: var(--muted-soft);
    font-size: 14px;
    line-height: 1;
    padding: 6px 8px;
    margin: -6px 0 -6px -8px;
    letter-spacing: -2px;
    user-select: none;
    touch-action: none;
}

.tile-handle:active {
    cursor: grabbing;
}

.tile-body {
    padding: 0 18px 18px;
}

/* Dashboard section pages and Home's pinned sections: plain sections stacked in one column,
   each with its title, a Pin to Home / Unpin button and (some) a link to its full page. */
.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.pinned-heading {
    margin: 28px 0 0;
    font-size: 20px;
}

.dashboard-sections + .actions,
.pinned-heading + .dashboard-sections {
    margin-top: 12px;
}

.tile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 16px 18px 12px;
}

.tile-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 18px;
    color: #fff;
}

:root[data-theme="light"] .tile-head h2 {
    color: var(--ink);
}

.tile-head h2 a {
    color: inherit;
    text-decoration: none;
}

.tile-head h2 a:hover,
.tile-head h2 a:focus-visible {
    color: var(--accent);
}

.tile-from {
    color: var(--muted);
    font-size: 13px;
}

.tile-pin {
    margin-left: auto;
    width: auto;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tile-pin[aria-pressed="true"] {
    border-color: var(--accent);
    color: var(--accent);
}

.tile-pin:hover,
.tile-pin:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.tile-head .tile-open {
    margin-left: 0;
}

.pinpoint-trigger {
    position: absolute;
    z-index: 60;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pinpoint-quote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: var(--paper-shade);
    font-size: 14px;
    font-style: italic;
    max-height: 120px;
    overflow-y: auto;
}

.skill-rating-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 46px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.question-card .skill-rating-row label {
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    margin-top: 0;
}

/* Flip-tile readout (vanilla approximation of a split-flap display: no React/build
   step exists in this project, so this is plain CSS/JS rather than the full component). */
.skill-rating-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 5px 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    transform-origin: center top;
    justify-self: end;
}

.skill-rating-value.flip {
    animation: skill-rating-flip 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes skill-rating-flip {
    0% { transform: rotateX(0deg); }
    45% { transform: rotateX(-92deg); }
    55% { transform: rotateX(92deg); }
    100% { transform: rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .skill-rating-value.flip {
        animation: none;
    }
}

/* Elastic feel on the slider track/thumb (vanilla approximation of a spring-back
   drag interaction) — grab/drag scales the thumb up, release springs it back. */
.skill-rating-row input[type="range"] {
    accent-color: var(--accent);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-rating-row input[type="range"]::-webkit-slider-thumb {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-rating-row input[type="range"]::-moz-range-thumb {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-rating-row input[type="range"]:active {
    transform: scaleY(1.4);
}

.skill-rating-row input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.35);
}

.skill-rating-row input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.35);
}

@media (max-width: 480px) {
    .skill-rating-row {
        grid-template-columns: 1fr 46px;
        grid-template-areas:
            "label value"
            "slider slider";
        row-gap: 4px;
    }

    .skill-rating-row label {
        grid-area: label;
    }

    .skill-rating-value {
        grid-area: value;
    }

    .skill-rating-row input[type="range"] {
        grid-area: slider;
        width: 100%;
    }
}

.job-url-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.job-url-row input {
    flex: 1;
}

.version-history {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.version-row[hidden] {
    display: none;
}

.version-row + .version-row {
    border-top: 1px solid var(--line);
}

.tile-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 780px) {
    .dashboard-tiles {
        grid-template-columns: 1fr;
    }
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--paper-shade);
}

.admin-stat-card strong {
    display: block;
    font-size: 22px;
    color: var(--ink);
    margin-top: 4px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.admin-row-clickable {
    cursor: pointer;
}

.admin-row-clickable:hover {
    background: var(--paper-shade);
}

.admin-account-detail-row > td {
    background: var(--paper-shade);
    padding: 10px 10px 14px 30px;
}

.admin-account-detail-row .admin-table {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.admin-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-badge.on {
    background: var(--success-tint);
    color: var(--success);
}

.admin-badge.off {
    background: var(--paper-shade);
    color: var(--muted);
}

.result-section {
    margin-top: 24px;
}

.result-section > h3 {
    color: var(--ink);
    font-size: 20px;
    margin-bottom: 10px;
}

.review-document {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 10px;
    color: var(--ink);
    padding: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.review-document {
    --doc-body-font: Arial, Helvetica, sans-serif;
    --doc-heading-font: Arial, Helvetica, sans-serif;
    font-family: var(--doc-body-font);
}

/* The formatted resume preview is a print-ready page — always white paper with dark ink, in both themes */
.review-document.resume-document {
    --doc-body-font: Georgia, "Times New Roman", serif;
    --doc-heading-font: Arial, Helvetica, sans-serif;
    /* The page is always white paper, so its headings (which use --ink) must stay dark
       even in the dark theme, where --ink is near-white. */
    --ink: #1d2636;
    background: #ffffff;
    color: #1d2636;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 0.55in;
    line-height: 1.35;
}

/* Stays print-accurate white paper, but a pure #fff block on a dark page reads as a
   flash of light — soften the jump instead of dimming the page content itself. */
:root[data-theme="dark"] .review-document.resume-document {
    filter: brightness(0.93);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.review-document[data-resume-font="times"] {
    --doc-body-font: "Times New Roman", Times, serif;
    --doc-heading-font: "Times New Roman", Times, serif;
}

.review-document[data-resume-font="arial"] {
    --doc-body-font: Arial, Helvetica, sans-serif;
    --doc-heading-font: Arial, Helvetica, sans-serif;
}

.review-document.resume-document h2:first-child {
    border: 0;
    color: var(--ink);
    font-family: var(--doc-heading-font);
    font-size: 31px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    padding-bottom: 0;
    text-align: center;
    text-transform: uppercase;
}

.review-document.resume-document h2 {
    border-bottom: 1.5px solid var(--ink);
    color: var(--ink);
    font-family: var(--doc-heading-font);
    font-size: 15px;
    letter-spacing: 0.08em;
    margin: 22px 0 8px;
    padding-bottom: 4px;
    text-transform: uppercase;
}

/* "## Summary" renders as h3: ruled caps section headings, same as the DOCX (O3), so the
   model's "---" lines aren't needed to separate sections and are hidden. */
.review-document.resume-document h3 {
    border-bottom: 1.5px solid var(--ink);
    color: var(--ink);
    font-family: var(--doc-heading-font);
    font-size: 15px;
    letter-spacing: 0.08em;
    margin: 20px 0 8px;
    padding-bottom: 3px;
    text-transform: uppercase;
}

.review-document.resume-document hr {
    display: none;
}

/* The contact line under the name is centered, like the DOCX. */
.review-document.resume-document h2:first-child + p {
    text-align: center;
}

/* A job line ("**Title** | Company | Dates") gets room above, like the DOCX. */
.review-document.resume-document p:has(> strong:first-child) {
    margin-top: 12px;
}

.review-document.resume-document h4 {
    color: var(--ink);
    font-family: var(--doc-heading-font);
    font-size: 14px;
    margin: 12px 0 4px;
}

.review-document.resume-document p,
.review-document.resume-document li {
    font-size: 14px;
}

.review-document.resume-document ul {
    margin-bottom: 10px;
    padding-left: 20px;
}

.review-document.resume-document li {
    margin-bottom: 4px;
}

.review-document h2 {
    margin-top: 26px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-size: 28px;
}

.review-document h2:first-child {
    margin-top: 0;
}

.review-document h3 {
    margin-top: 24px;
    color: var(--accent-dark);
    font-size: 21px;
}

.review-document h4 {
    margin: 20px 0 8px;
    color: var(--ink);
    font-size: 17px;
}

.review-document p {
    margin: 0 0 12px;
}

.review-document ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.review-document li {
    margin-bottom: 7px;
}

.review-document blockquote {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: var(--paper-shade);
    color: var(--ink);
}

.review-document hr {
    height: 1px;
    border: 0;
    background: var(--line);
    margin: 24px 0;
}

.checkbox-mark {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.35em;
    border: 1.5px solid var(--muted-soft);
    border-radius: 3px;
    vertical-align: -0.12em;
}

.question-shell {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-shade);
    margin-top: 20px;
    overflow: hidden;
}

.question-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-shade);
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    padding: 13px 16px;
}

.progress-bar {
    height: 6px;
    background: var(--line);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.25s ease;
}

.question-card {
    padding: 20px;
}

.question-card[hidden] {
    display: none;
}

.question-card label {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    margin-top: 10px;
}

.question-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.86);
    overflow-y: auto;
}

.loading-screen[hidden] {
    display: none;
}

.loading-panel {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: var(--panel);
    padding: 30px;
}

.loading-panel h2 {
    font-size: clamp(28px, 5vw, 44px);
}

.loading-panel p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 22px;
}

.progress-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.progress-fill {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.4s ease;
}

.progress-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    color: #ffffff;
}

.progress-row strong {
    color: #ffffff;
}

.progress-row span {
    color: #ffffff;
    opacity: 0.85;
}

body.is-loading {
    overflow: hidden;
}

.steps {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--muted);
}

.step span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--paper-shade);
    color: var(--accent);
    font-weight: 900;
    flex-shrink: 0;
}

.quick-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.quick-link,
.quick-link-static {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
}

.quick-link {
    border: 1px solid var(--line);
    background: var(--paper-shade);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.quick-link:hover {
    background: var(--line);
    transform: translateY(-1px);
}

.quick-link:active {
    transform: scale(0.98);
}

.quick-link-static {
    border: 1px solid transparent;
    color: var(--muted);
}

.quick-link-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--panel);
    color: var(--accent);
    flex-shrink: 0;
}

.quick-link-icon svg {
    width: 16px;
    height: 16px;
}

.meta {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    margin-top: 40px;
    padding: 22px 0 34px;
    border-top: 1px solid var(--line);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    /* WCAG 2.2 SC 2.5.8: 24px minimum target height. */
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

/* Results page (R1): one obvious download above the resume, the rest a quiet list below. */
.download-bar {
    margin: 0 0 14px;
    align-items: center;
}

.next-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.next-steps .fine-print {
    margin: 0 0 0 6px;
}

.inline-form {
    display: inline;
}

/* A cover letter's print copy only shows when printing (see @media print). */
.print-letter {
    display: none;
}

.letter-header p {
    margin: 0;
}

.letter-header .letter-name {
    font-weight: 700;
    font-size: 1.15em;
}

.letter-header .letter-gap {
    margin-top: 14px;
}

.letter-header + p {
    margin-top: 14px;
}

.resume-lock {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 280px;
    overflow: hidden;
}

.resume-lock-preview {
    position: absolute;
    inset: 0;
    padding: 30px;
    filter: blur(5px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.lock-line {
    height: 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--line);
    width: 100%;
}

.lock-line.short {
    width: 55%;
}

.resume-lock-overlay {
    position: relative;
    display: grid;
    place-items: center;
    padding: 20px;
    min-height: 280px;
    background: rgba(249, 251, 253, 0.55);
}

.resume-lock-panel {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 24px;
    animation: resume-lock-panel-in 0.4s ease both;
}

@keyframes resume-lock-panel-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .resume-lock-panel {
        animation: none;
    }
}

.resume-lock-panel h4 {
    margin: 0 0 8px;
}

/* T9: the real top of the resume, fading out above the account panel. Both stay in
   normal flow (no overlay), so on a phone they stack without anything jumping. */
.resume-lock.has-preview,
.resume-lock.has-preview .resume-lock-overlay {
    min-height: 0;
}

.resume-lock.has-preview .resume-lock-overlay {
    background: none;
    padding-top: 0;
}

.resume-preview {
    border: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    user-select: none;
}

.example-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.86);
    overflow-y: auto;
}

.example-modal[hidden] {
    display: none;
}

.example-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    /* dvh = the height actually visible, so phone toolbars don't hide the buttons. */
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--panel);
    border-radius: 10px;
    padding: 30px;
}

/* The buttons stay pinned to the bottom of the card, side by side, so the main one is
   always reachable even when the slide is taller than the screen. */
.example-card > .actions {
    position: sticky;
    bottom: -30px;
    margin: 16px -30px -30px;
    padding: 12px 30px 30px;
    background: var(--panel);
    flex-wrap: nowrap;
}

.example-card > .actions > button {
    flex: 1 1 0;
}

.example-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--paper-shade);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.example-track-wrap {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-top: 18px;
    touch-action: pan-y;
}

.example-track {
    display: flex;
    transition: transform 0.35s ease;
}

.example-slide {
    min-width: 100%;
    padding: 22px;
    background: var(--paper-shade);
}

.example-tier {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.example-tier.bad {
    background: #fff3f2;
    color: var(--danger);
}

.example-tier.decent {
    background: #fff8e8;
    color: var(--gold);
}

.example-tier.great {
    background: var(--success-tint);
    color: var(--success);
}

.example-question {
    font-weight: 700;
    margin: 0 0 8px;
}

.example-answer {
    font-style: italic;
    color: var(--ink);
    margin: 0 0 10px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.example-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
}

.example-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
}

.example-dot.active {
    background: var(--accent);
}

.lead-row {
    cursor: pointer;
}

.lead-row:hover {
    background: var(--paper-shade);
}

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.86);
}

.lead-modal[hidden] {
    display: none;
}

.lead-modal-card {
    position: relative;
    width: min(760px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: var(--panel);
    border-radius: 10px;
    padding: 30px;
}

.lead-modal-body {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.lead-field p {
    margin: 6px 0 0;
    white-space: pre-wrap;
    background: var(--paper-shade);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* Staged intake (review.html setupIntakeStages). */
.intake-progress {
    margin-bottom: 18px;
}

.intake-progress[hidden],
.intake-stage[hidden] {
    display: none;
}

.intake-step-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.intake-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.intake-bar-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.25s ease;
}

.intake-intro-list {
    padding-left: 22px;
    line-height: 1.6;
}

.intake-intro-list li + li {
    margin-top: 6px;
}

/* Work-history step (review.html historyJobHtml). */
.history-job {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--paper-shade);
}

.history-job label {
    display: block;
    font-size: 13px;
}

/* Collapsed row: title on top, dates below, a chevron on the right. */
.history-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    cursor: pointer;
    list-style: none;
}

.history-summary::-webkit-details-marker {
    display: none;
}

.history-summary::after {
    content: '\203A';
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    font-size: 22px;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.history-job[open] > .history-summary::after {
    transform: rotate(90deg);
}

.history-summary-text {
    font-weight: 700;
    min-width: 0;
}

.history-summary-meta {
    font-size: 13px;
    color: var(--muted);
}

.history-job-flagged .history-summary-meta {
    color: #d97706;
    font-weight: 600;
}

.history-fields {
    margin-top: 12px;
}

.history-job input[type="text"],
.history-job input[type="month"] {
    margin-top: 4px;
}

.history-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* Month inputs have a wide built-in minimum; let them shrink to the column. */
.history-job label,
.history-job input {
    min-width: 0;
}

.history-job input[type="month"] {
    padding-left: 8px;
    padding-right: 8px;
}

.history-job .history-current {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 600;
}

.history-current input {
    width: auto;
}

.history-job-note[hidden] {
    display: none;
}

.history-job-note {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
    color: #d97706;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

/* "Pick any that fit, plus write your own" options (review.html choiceFieldHtml). */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.choice-options[hidden] {
    display: none;
}

.choice-options .hint {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.choice-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper-shade);
    color: var(--ink);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.choice-option::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid var(--line);
    border-radius: 5px;
    background: var(--panel);
    font-size: 13px;
    line-height: 14px;
    text-align: center;
    color: #fff;
}

.choice-option[aria-pressed="true"] {
    border-color: var(--accent);
}

.choice-option[aria-pressed="true"]::before {
    content: "\2713";
    border-color: var(--accent);
    background: var(--accent);
}

/* The user's own answer, drawn as one more option: same box and checkbox (checked once
   it has text), with a borderless text area inside that grows as they type. */
.choice-own {
    cursor: text;
    margin-bottom: 4px;
}

.choice-own:focus-within {
    border-color: var(--accent);
}

.choice-own.has-text {
    border-color: var(--accent);
}

.choice-own.has-text::before {
    content: "\2713";
    border-color: var(--accent);
    background: var(--accent);
}

.choice-own textarea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    resize: none;
    overflow: hidden;
    field-sizing: content;
}

.choice-own textarea:focus {
    outline: none;
}

.choice-own textarea::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.choice-refresh {
    align-self: flex-start;
}

.choice-refresh:disabled {
    opacity: 0.6;
    cursor: default;
}

.streaming-cursor {
    display: inline-block;
    width: 0.5em;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: streaming-blink 0.9s steps(1) infinite;
}

@keyframes streaming-blink {
    50% {
        opacity: 0;
    }
}

@keyframes panel-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#review-panel > * {
    animation: panel-fade-in 0.3s ease;
}

/* Scroll-reveal, applied by motion.js to elements present at page load (main section) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #review-panel > * {
        animation: none;
    }

    * {
        scroll-behavior: auto !important;
    }

    .reveal,
    .theme-toggle svg,
    .button,
    .nav-links a::after,
    .back-to-top {
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 840px) {
    .nav,
    .hero,
    .review-grid,
    .about-layout,
    .service-section {
        grid-template-columns: 1fr;
    }

    .nav {
        display: grid;
        justify-items: start;
        padding: 16px 0;
    }

    .feature-grid,
    .mini-steps-grid {
        grid-template-columns: 1fr;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .panel,
    .side-panel {
        padding: 22px;
    }

    .question-topline {
        grid-template-columns: 1fr;
    }

    .progress-row {
        flex-wrap: wrap;
    }

    .loading-panel {
        padding: 22px;
    }

    .output-actions .button,
    .output-actions button {
        flex: 1 1 100%;
    }

    .example-modal {
        padding: 16px;
    }

    .example-card {
        padding: 22px;
    }

    .example-card > .actions {
        bottom: -22px;
        margin: 12px -22px -22px;
        padding: 12px 22px 22px;
    }

    .example-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .review-document {
        padding: 18px;
    }

    .review-document.resume-document {
        padding: 0.3in 0.22in;
    }

    .resume-lock-panel {
        padding: 18px;
    }

    .example-slide {
        padding: 16px;
    }

    .question-card label {
        font-size: 18px;
    }

    .price-card strong {
        font-size: 40px;
    }

    .actions .button,
    .actions button {
        flex: 1 1 100%;
    }
}

@media print {
    /* 0.7in, same as the DOCX; estimateResumePageCount() in review.html measures against it. */
    @page {
        size: letter;
        margin: 0.7in;
    }

    /* Paper is white in both themes, so the dark theme's near-white ink can't print grey. */
    :root[data-theme] {
        --ink: #1d2636;
    }

    /* Save as PDF sits above the resume now, so it can be pressed while the page is still
       fading in; a mid-animation print came out washed out (Oct 9). Print the end state. */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    html,
    body,
    .panel,
    .resume-section {
        background: #fff !important;
    }

    body {
        color: #1d2636;
    }

    /* The dark theme dims the on-screen resume and floats it on a shadow; neither belongs on paper. */
    .review-document.resume-document {
        filter: none !important;
        box-shadow: none !important;
        background: #fff !important;
        /* The page margin is the margin; the on-screen paper padding doubled it. */
        padding: 0 !important;
        /* Spacing and name size like the DOCX's, so the PDF runs the same length. */
        line-height: 1.22;
    }

    .review-document.resume-document h2:first-child {
        font-size: 20pt;
        margin-bottom: 2px;
    }

    .review-document.resume-document p {
        margin: 0 0 4px;
    }

    .review-document.resume-document li {
        margin-bottom: 1px;
    }

    .review-document.resume-document ul {
        margin: 2px 0 6px;
    }

    .review-document.resume-document h3 {
        margin: 12px 0 5px;
    }

    .site-header,
    .site-footer,
    .next-steps-section,
    #sent-copy-note,
    .page,
    .side-panel,
    .alert,
    .output-actions,
    .lead-saved-hint,
    #start-over-form,
    .panel > h2,
    .intro-hint,
    .recommendations-section,
    .followup-section,
    .feedback-section,
    .cover-letter-section,
    .resume-section > h3,
    .loading-screen,
    .example-modal,
    .scroll-progress,
    .back-to-top,
    .cookie-banner,
    .search-modal {
        display: none !important;
    }

    /* Printing a cover letter prints only the letter (cover-letter.html appends it to <body>
       as .print-letter); everything else on the page used to print first (Oct 8). */
    body.printing-cover-letter > :not(.print-letter) {
        display: none !important;
    }

    body.printing-cover-letter > .print-letter {
        display: block !important;
        font-family: var(--doc-body-font, Georgia, "Times New Roman", serif);
        font-size: 11pt;
        line-height: 1.45;
        color: #1d2636;
    }

    .wrap,
    .review-grid {
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .panel > h2 {
        margin-bottom: 18px;
        font-size: 26px;
    }

    .review-document {
        border: 0;
        border-radius: 0;
        padding: 0;
        overflow: visible;
    }

    .resume-document {
        max-width: none;
        margin: 0;
        font-family: var(--doc-body-font, Georgia, "Times New Roman", serif);
    }

    .review-document h2,
    .review-document h3,
    .review-document h4 {
        break-after: avoid;
    }

    .review-document li,
    .review-document blockquote {
        break-inside: avoid;
    }
}

/* Site-wide UI additions (enhancements.js): scroll progress, back-to-top, mobile nav,
   cookie notice, site search, copy buttons. */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-progress-bar {
        transition: width 0.1s linear;
    }
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
    z-index: 900;
    cursor: pointer;
}

/* The loading overlay sits at z-index 20 (below this button's 900) so without this
   it floats awkwardly on top of the full-screen loading state. */
body:has(.loading-screen:not([hidden])) .back-to-top {
    display: none;
}

/* Inside the review flow the arrow read as "back to the options" and dumped
   people at the page top instead (Oct 4 meeting), so it's hidden there. */
body:has(#review-panel) .back-to-top {
    display: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-dark);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.nav-toggle {
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 950;
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 240px;
    font-size: 14px;
    color: var(--muted);
}

.cookie-banner a {
    color: var(--accent);
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.search-modal[hidden] {
    display: none;
}

.search-modal-inner {
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.search-input {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    font: inherit;
    font-size: 16px;
    background: transparent;
    color: var(--ink);
    outline: none;
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
}

.search-results li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
}

.search-results li a:hover {
    background: var(--paper-shade);
}

.search-empty {
    padding: 10px 12px;
    color: var(--muted);
}

@media (max-width: 640px) {
    /* Back to flex (the 840px rule makes it a 1-column grid): keeps the menu
       button beside the logo instead of on its own row under it. The link
       panel is absolutely positioned, so it doesn't take part in this row. */
    .nav {
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--primary);
        padding: 10px;
        border-bottom: 3px solid var(--accent);
        z-index: 500;
    }

    .nav-links.nav-links-open {
        display: flex;
    }

    .cookie-banner-inner {
        justify-content: center;
        text-align: center;
    }
}

/* Legal pages (privacy-policy.html, terms.html) */

.legal-page {
    counter-reset: legal-section;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: -4px 0 28px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.legal-callout {
    max-width: 720px;
    margin: 0 0 32px;
    padding: 16px 18px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: var(--paper-shade);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

.legal-callout strong {
    color: var(--gold);
}

.legal-fill {
    background: rgba(184, 115, 12, 0.16);
    color: var(--ink);
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 600;
}

.legal-toc {
    max-width: 720px;
    margin: 0 0 36px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.legal-toc h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 24px;
}

.legal-toc li {
    margin-bottom: 6px;
    break-inside: avoid;
}

.legal-toc a {
    text-decoration: none;
    color: var(--ink);
}

.legal-toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.legal-body {
    max-width: 720px;
}

.legal-body h2 {
    counter-increment: legal-section;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 40px 0 12px;
    font-size: 22px;
    scroll-margin-top: 20px;
}

.legal-body section:first-of-type h2 {
    margin-top: 0;
}

.legal-body h2::before {
    content: counter(legal-section) ".";
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.legal-body h3 {
    margin: 22px 0 8px;
    font-size: 16.5px;
}

.legal-body p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.65;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-body a {
    color: var(--accent);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 0 0 20px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.legal-table caption {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-table th {
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: var(--paper-shade);
}

.legal-crosslink {
    max-width: 720px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}

@media (max-width: 640px) {
    .legal-toc ol {
        columns: 1;
    }
}

/* Daily check-in streak history (dashboard tile + /daily-checkin page) */
.checkin-history-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.checkin-day-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.checkin-day-badge:hover {
    border-color: var(--accent);
}

.checkin-day-date {
    font-size: 12.5px;
    color: var(--muted);
}

.checkin-day-label {
    font-size: 13px;
    font-weight: 600;
}

.checkin-day-answered .checkin-day-label {
    color: var(--success);
}

.checkin-day-missed .checkin-day-label {
    color: var(--danger);
}

.checkin-day-today {
    border-color: var(--accent);
}

.checkin-day-today .checkin-day-label {
    color: var(--accent);
}

.checkin-history-detail:not(:empty) {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

/* Prove Your Top Skills: each skill is a button that opens its questions. */
.skill-probe + .skill-probe {
    margin-top: 8px;
}

.skill-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-shade);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.skill-row:disabled {
    cursor: default;
    opacity: 1;
    color: var(--ink);
}

.skill-row[aria-expanded="true"] {
    border-color: var(--accent);
}

.skill-row-meta {
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.skill-row:disabled .skill-row-meta {
    color: var(--accent);
}

.skill-probe-body:not(:empty) {
    padding: 12px 2px 4px;
}

/* Page explainer popup (enhancements.js initPageExplainer). */
.explainer-dialog {
    width: min(30rem, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.explainer-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.explainer-dialog h2 {
    margin-top: 0;
}

.explainer-open-row {
    display: flex;
    justify-content: center;
    padding-block: 8px 24px;
}

/* Question flow: a skipped question asked again at the end, and the finish screen. */
.question-reask {
    margin: 0 0 6px;
    color: #d97706;
    font-size: 14px;
    font-weight: 600;
}

.question-finish {
    padding: 16px 20px 20px;
}

.question-finish h3 {
    margin-top: 0;
}

/* Daily/Weekly check-in toggle (dashboard tile and /daily-checkin). */
.checkin-frequency {
    margin: 14px 0;
}

.checkin-frequency-label {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-shade);
}

.segmented .segment {
    min-height: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.segmented .segment[aria-pressed="true"] {
    background: var(--cta);
    color: #fff;
}

.checkin-frequency .fine-print:empty {
    display: none;
}

/* Week 1 funnel fixes ------------------------------------------------------- */

/* Logged-out visitors see Log In and Start; signed-in users see the tools. The
   class comes from the rr_signed_in hint cookie, read in each page's <head>. */
html:not(.signed-in) .nav-links a.nav-member,
html.signed-in .nav-links a.nav-guest {
    display: none;
}

.nav-links a.nav-start {
    background: var(--cta);
    color: #fff;
    font-weight: 700;
}

.nav-links a.nav-start:hover {
    background: var(--cta-dark);
    color: #fff;
}

.nav-links a.nav-start::after {
    content: none;
}

/* 1-5 rating rows: unlock forms and the post-download ask. */
.rating-row {
    margin: 12px 0;
}

.rating-label {
    margin: 0 0 8px;
    font-weight: 600;
}

.rating-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rating-btn {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-shade);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rating-btn[aria-pressed="true"] {
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
}

.rating-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

/* Hidden from view, still reachable by keyboard and screen readers. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Home page upload box. */
.home-upload {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 22px;
    padding: 26px 20px;
    border: 2px dashed var(--accent);
    border-radius: 14px;
    background: var(--paper-shade);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-upload:hover,
.home-upload.is-dragging,
.home-upload:focus-within {
    border-style: solid;
    background: var(--panel);
}

.home-upload:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.home-upload-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.home-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.home-upload-sub {
    font-size: 14px;
    color: var(--muted);
}

.home-upload-alt {
    margin: 10px 0 0;
    font-size: 14px;
    text-align: center;
}

.home-upload-alt a {
    color: var(--accent);
    text-underline-offset: 3px;
}

.skeleton-loader {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 12px 0;
}

.skeleton-line {
    display: block;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(100deg, var(--line) 25%, var(--paper-shade) 45%, var(--line) 65%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-heading { width: 44%; height: 24px; margin-bottom: 8px; }
.skeleton-short { width: 72%; }

@keyframes skeleton-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-line { animation: none; }
}

@media print {
    .skeleton-loader { display: none !important; }
}

/* Daily check-in answers share the same controls on both entry points. */
.checkin-question { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.checkin-question legend { font-weight: 600; margin-bottom: 12px; }
.checkin-choices { display: grid; gap: 8px; margin-bottom: 14px; }
.checkin-choice { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.checkin-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-light, var(--panel)); }
.checkin-choice input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.checkin-note-label { display: block; font-size: .9rem; }
.checkin-note-label textarea { display: block; margin-top: 8px; width: 100%; }
.checkin-followup { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 16px 0; }
.checkin-followup p { margin: 6px 0; }


/* Bulk Apply */
.bulk-row,
.bulk-job,
.bulk-bucket,
.bulk-linkedin {
    min-width: 0;
    margin-block: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.bulk-question + .bulk-question {
    margin-top: 24px;
}
.bulk-row h2,
.bulk-job h3 {
    margin-top: 0;
}
.bulk-row input,
.bulk-row textarea,
.bulk-question textarea {
    min-width: 0;
    max-width: 100%;
}
.bulk-meter {
    display: block;
    margin-block: 16px;
}
.bulk-meter meter {
    display: block;
    width: 100%;
    height: 24px;
    accent-color: var(--accent);
}
.bulk-resume-text {
    overflow-wrap: anywhere;
}

.know-turn { padding: 8px 0 8px 12px; margin: 8px 0; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.know-turn p { margin: 2px 0; }
.know-map { margin: 16px 0; }
.know-map svg { display: block; max-width: 100%; height: auto; font-family: var(--font-body); }
.know-dim { opacity: 0.55; }
.know-map a { text-decoration: none; }
.know-map svg { max-width: 360px; margin: 8px auto; }
.know-dot { cursor: pointer; }
.know-dot:hover, .know-dot:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.know-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.know-key { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.know-key[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-shade); }
.know-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; margin-right: 6px; vertical-align: middle; }
.know-key .know-swatch { margin-right: 0; }
.know-fact-list { margin: 6px 0 10px; padding-left: 20px; font-size: 15px; overflow-wrap: anywhere; }
.know-fact-list li { margin: 4px 0; }
.know-fact-active { font-weight: 600; }
.know-turn-bot { border-left-color: var(--accent); }

.resume-chat {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.chat-thread .chat-line {
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.chat-thread .chat-user {
    font-weight: 700;
}


/* Split save control; retain the site's primary buttons and mobile touch targets. */
.save-split { position: relative; display: inline-flex; max-width: 100%; vertical-align: middle; }
.save-split > .save-main { flex: 1 1 auto; border-radius: 10px 0 0 10px; }
.save-split > .save-arrow { flex: 0 0 44px; width: 44px; padding: 13px 10px; border-radius: 0 10px 10px 0; border-left: 1px solid rgba(255,255,255,.4); }
.save-split [role="menu"] { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 100%; width: max-content; max-width: calc(100vw - 48px); padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.save-split [role="menu"][hidden] { display: none; }
.save-split [role="menuitemradio"] { display: flex; width: 100%; gap: 8px; align-items: center; text-align: left; padding: 10px 12px; background: transparent; color: var(--ink); }
.save-split [role="menuitemradio"]::before { content: ''; width: 1em; }
.save-split [aria-checked="true"]::before { content: '\2713'; }
.save-split [role="menuitemradio"]:hover, .save-split [role="menuitemradio"]:focus-visible { background: var(--paper-shade); }
.save-split button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; }
@media (max-width: 480px) { .actions > .save-split { flex: 1 1 100%; } }
@media print { .save-split { display: none; } }
