/*
 * Theme tokens: the pine/saffron Jobs by Fixdesk design system
 * (jobs-by-fixdesk-brand/tokens.json; owner decision 2026-11-20).
 * The live names are kept so page CSS keeps working. How they map:
 *   --canvas         = surface         (page background)
 *   --surface        = surface-raised  (cards, inputs, menus, sheets)
 *   --surface-muted  = surface-sunken  (wells, hover fills, quiet chips;
 *                                       in dark it sits a step above the card)
 *   --surface-raised = surface-sunken  (table headers, sub-panels)
 *   --text, --muted  = ink, ink-muted;  --border = rule
 *   --brand*         = brand*          (pine)
 *   --saffron*       = accent*         (saffron: the agent signal only,
 *                                       never text on light; use --saffron-ink)
 *   --accent         = brand: the PRIMARY ACTION colour, not the design
 *                      system's "accent" (that is --saffron).
 *   --success*       = brand*;  --warning* = accent-tint / accent-ink
 *   --focus          = info (focus ring)
 * Fonts are the former Geist set (owner preference, 2026-11-20): Geist for
 * text and headings, Geist Mono for data, Fraunces only for the wordmark.
 * The design system's own names (--ink, --rule, --surface-sunken,
 * --brand-tint, --info-tint, --danger-tint, --radius-*, --shadow-*,
 * --space-*) are defined too, for new CSS.
 */
:root {
    color-scheme: light;
    --font-display: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --font-wordmark: "Fraunces", Georgia, serif;

    /* Design system colours */
    --ink: #10201c;
    --ink-muted: #46554f;
    --rule: #d9d4c6;
    --surface-sunken: #ece8dd;
    --brand: #0b5d4b;
    --brand-deep: #073b30;
    --brand-tint: #d8ebe4;
    --on-brand: #ffffff;
    --saffron: #f2a93b;
    --saffron-tint: #fcebcb;
    --saffron-ink: #7a4b00;
    --on-saffron: #1f1400;
    --info-tint: #dce9f7;
    --danger-tint: #f8ddd5;

    /* Surfaces and ink */
    --canvas: #f7f5ef;
    --surface: #ffffff;
    --surface-muted: #ece8dd;
    --surface-raised: #f3f0e7;
    --text: #10201c;
    --text-soft: #26352f;
    --muted: #46554f;
    --subtle: #46554f;
    --border: #d9d4c6;
    --border-strong: #7b8a82;
    --border-emphasis: #7b8a82;

    /* Primary actions are pine with white text. */
    --accent: #0b5d4b;
    --accent-hover: #073b30;
    --on-accent: #ffffff;
    --focus: #1d5fa6;
    --focus-ring-soft: rgb(29 95 166 / 18%);

    /* Sent, applied and good scores. */
    --success: #0b5d4b;
    --success-soft: #d8ebe4;
    --success-border: #a9d2c4;
    /* Needs the person's attention (accent-tint / accent-ink). */
    --warning: #7a4b00;
    --warning-soft: #fcebcb;
    --warning-border: #f2a93b;
    /* Failed, declined or overdue. Always with a word and an icon. */
    --danger: #b23a1e;
    --danger-soft: #f8ddd5;
    --danger-border: #e9b3a5;
    --info: #1d5fa6;
    --info-soft: #dce9f7;
    --info-soft-hover: #cfe0f3;
    --info-border: #b3cde9;
    --info-border-strong: #1d5fa6;

    /* The dark "Next step" band: brand-deep ground in light mode. */
    --band: #073b30;
    --band-ink: #ffffff;
    --band-muted: #d8ebe4;
    --band-action: #ffffff;
    --band-action-ink: #073b30;

    --overlay: rgb(247 245 239 / 88%);
    --backdrop: rgb(16 32 28 / 45%);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-control: 10px;
    --radius-panel: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgb(16 32 28 / 8%);
    --shadow-md: 0 8px 24px rgb(16 32 28 / 12%);
    --shadow-panel: var(--shadow-sm);
    --shadow-overlay: var(--shadow-md);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --ink: #edf3f0;
        --ink-muted: #a9bab2;
        --rule: #26382f;
        --surface-sunken: #0a1411;
        --brand: #4fd1ae;
        --brand-deep: #8fe6cd;
        --brand-tint: #17382f;
        --on-brand: #07251d;
        --saffron: #f2b24d;
        --saffron-tint: #3a2c0f;
        --saffron-ink: #f6c679;
        --on-saffron: #1f1400;
        --info-tint: #14283d;
        --danger-tint: #3f1a12;

        --canvas: #0e1a17;
        --surface: #15251f;
        --surface-muted: #1c2e27;
        --surface-raised: #112019;
        --text: #edf3f0;
        --text-soft: #d5e0da;
        --muted: #a9bab2;
        --subtle: #a9bab2;
        --border: #26382f;
        --border-strong: #6f8a7e;
        --border-emphasis: #6f8a7e;

        --accent: #4fd1ae;
        --accent-hover: #8fe6cd;
        --on-accent: #07251d;
        --focus: #7db4ee;
        --focus-ring-soft: rgb(125 180 238 / 22%);
        --success: #4fd1ae;
        --success-soft: #17382f;
        --success-border: #2a5c4d;
        --warning: #f6c679;
        --warning-soft: #3a2c0f;
        --warning-border: #f2b24d;
        --danger: #ff9b84;
        --danger-soft: #3f1a12;
        --danger-border: #6b2a1c;
        --info: #7db4ee;
        --info-soft: #14283d;
        --info-soft-hover: #1a3350;
        --info-border: #24476b;
        --info-border-strong: #7db4ee;

        /* In dark mode the band is a pine tint with a mint action. */
        --band: #17382f;
        --band-ink: #edf3f0;
        --band-muted: #a9bab2;
        --band-action: #4fd1ae;
        --band-action-ink: #07251d;

        --overlay: rgb(14 26 23 / 88%);
        --backdrop: rgb(0 0 0 / 60%);
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
        --shadow-md: 0 8px 24px rgb(0 0 0 / 45%);
    }
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Links are pine. Zero specificity, so any component colour wins. */
:where(a) {
    color: var(--brand);
}

:where(a):hover {
    color: var(--brand-deep);
}

/* Page titles: Geist, tightly tracked. */
h1,
.display-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* Brand lockup: the tile mark is never recoloured; dark grounds get its outlined variant. */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}

.brand-name {
    display: grid;
    line-height: 1;
}

.brand-name-word {
    font-family: var(--font-wordmark);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-name-by {
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.keyword-chip {
    max-width: 100%;
}

.keyword-chip > span:first-child {
    overflow-wrap: anywhere;
}

.keyword-chip-remove {
    flex: 0 0 auto;
}

.keyword-suggestion {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 8px 2px 1px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.keyword-suggestion-label {
    color: var(--subtle);
}

.keyword-suggestion-reason {
    color: var(--muted);
}

.keyword-suggestion-choice {
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid var(--info-border);
    border-radius: 5px;
    background: var(--info-soft);
    color: var(--info);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.keyword-suggestion-choice:hover,
.keyword-suggestion-choice:focus-visible {
    border-color: var(--info-border-strong);
    background: var(--info-soft-hover);
}

.keyword-suggestion-hint {
    margin-left: auto;
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: 12px;
}

[hidden] {
    display: none !important;
}

.app-shell {
    display: block;
    min-height: 100vh;
    max-width: 1680px;
    margin: 0 auto;
    background: var(--canvas);
}

.dashboard-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) minmax(0, 1fr);
    min-height: 68px;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(18px, 3.5vw, 48px);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.dashboard-header-start,
.dashboard-header-status {
    display: flex;
    min-width: 0;
    align-items: center;
}

.dashboard-header-start {
    gap: 18px;
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}


.dashboard-menu {
    position: relative;
    flex: 0 0 auto;
}

.dashboard-menu > summary {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 550;
    list-style: none;
}

.dashboard-menu > summary::-webkit-details-marker {
    display: none;
}

.dashboard-menu > summary:hover,
.dashboard-menu[open] > summary {
    border-color: var(--border);
    background: var(--surface-muted);
}

.hamburger-icon {
    display: grid;
    width: 17px;
    gap: 4px;
}

.hamburger-icon i {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
}

.dashboard-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: flex;
    width: 230px;
    min-height: 254px;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.dashboard-menu-panel nav,
.dashboard-menu-footer {
    display: grid;
    gap: 3px;
}

.dashboard-menu-panel a,
.dashboard-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    padding: 0 11px;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
}

.dashboard-menu-panel a:hover,
.dashboard-menu-panel button:hover,
.dashboard-menu-panel [aria-current="page"] {
    background: var(--surface-muted);
}

.dashboard-menu-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.dashboard-menu-footer form {
    margin: 0;
}

.dashboard-current-page {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-header-status {
    justify-content: flex-end;
    gap: 10px;
}

/* Header chips: credits and the agent status pill. */
.dashboard-metric,
.dashboard-agent-status {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-metric strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.dashboard-agent-status {
    gap: 5px;
    border-color: transparent;
    background: var(--surface-muted);
    color: var(--muted);
}

/* Reads "Agent working"; "Get Premium" keeps its capitals. */
.dashboard-agent-status strong {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-agent-status:not([data-state="inactive"]) strong {
    text-transform: lowercase;
}

.dashboard-metric:hover {
    border-color: var(--border-strong);
}

.dashboard-agent-status:hover {
    color: var(--text);
}

/* Saffron is the agent's live signal: only the working state uses it. */
.dashboard-agent-status[data-state="working"] {
    background: var(--saffron-tint);
    color: var(--saffron-ink);
}

.agent-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
}

.dashboard-agent-status[data-state="working"] .agent-status-dot {
    background: var(--saffron);
    box-shadow: 0 0 0 0 var(--saffron);
    animation: agent-dot-pulse 2.4s ease-out infinite;
}

.dashboard-agent-status[data-state="resting"] .agent-status-dot {
    background: var(--brand);
}

@keyframes agent-dot-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--saffron) 55%, transparent);
    }
    70%,
    100% {
        box-shadow: 0 0 0 6px transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-agent-status .agent-status-dot {
        animation: none !important;
    }
}

.dashboard-user-name {
    max-width: 130px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 400px);
    padding: clamp(26px, 5vw, 38px);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.login-card h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.login-card > p {
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.google-access-form {
    min-height: 44px;
}

.login-provider-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}

.google-signin-button {
    min-height: 44px;
}

.google-signin-error,
.google-signin-status {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    padding: 24px 16px 16px;
    border-right: 1px solid var(--border);
    background: var(--surface-raised);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
}


.sidebar-section {
    margin-top: 48px;
}

.sidebar-label,
.header-meta,
.eyebrow,
.profile-card-meta,
.panel-footnote,
.switch-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sidebar-label {
    display: block;
    margin: 0 0 12px 9px;
    color: var(--subtle);
}

.app-nav {
    display: grid;
    gap: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-link:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.nav-link.active {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
}

.nav-index,
.summary-index,
.empty-index {
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.nav-link.active .nav-index {
    color: var(--text);
}

.sidebar-note,
.sidebar-profile {
    margin-top: auto;
    padding: 15px 9px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.sidebar-note {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.sidebar-profile {
    display: grid;
    gap: 10px;
}

.sidebar-profile .sidebar-label {
    margin: 0;
}

.sidebar-profile-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.mini-avatar {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 14px 9px 0;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.workspace {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}

.workspace-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 clamp(22px, 4vw, 56px);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--border-strong);
}

.header-meta {
    color: var(--subtle);
}

.profile-switch {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.profile-switch:hover {
    border-color: var(--border-strong);
    background: var(--surface-raised);
}

a.profile-switch {
    text-decoration: none;
}

.switch-label {
    color: var(--subtle);
    font-size: 12px;
}

.switch-icon {
    color: var(--muted);
    font-size: 15px;
}

.workspace-main {
    width: min(1120px, 100%);
    flex: 1;
    margin: 0 auto;
    padding: 48px clamp(22px, 4vw, 56px) 50px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-heading {
    margin-bottom: 30px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 12px;
}

.eyebrow span {
    color: var(--border-strong);
}

/* Page title: Geist 28/34 on phones, larger on desktop, with an
 * ink-muted subline. */
.page-heading h1,
.success-header h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-heading > p,
.success-header > p {
    max-width: 580px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 899.98px) {
    .page-heading {
        margin-bottom: 16px;
    }

    .page-heading h1,
    .success-header h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .page-heading > p,
    .success-header > p {
        margin-top: 4px;
        font-size: 14px;
        line-height: 20px;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 22px;
}

.access-form {
    display: grid;
    max-width: 520px;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.access-form label,
.resume-upload-page label {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.access-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--text);
}

.access-button {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 12px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-control);
    background: var(--accent);
    color: var(--on-accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.access-button:hover {
    background: var(--accent-hover);
}

.google-access-form {
    align-content: start;
    min-height: 120px;
}

.google-signin-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.google-signin-button {
    width: 100%;
    min-height: 42px;
}

.google-signin-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.google-signin-error,
.google-signin-status.is-error {
    color: var(--danger);
}

.google-signin-status:empty {
    display: none;
}

.access-error {
    margin: 0;
    color: var(--danger);
    font-size: 12px;
}

.resume-upload-form.resume-upload-page {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.resume-upload-page label,
.resume-upload-page .resume-status {
    grid-column: auto;
}

.resume-upload-page input[type="file"] {
    font-size: 12px;
}

.resume-upload-page .resume-upload-button {
    min-height: 42px;
    font-size: 12px;
}

.profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
    text-align: left;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-panel);
}

.profile-select-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.profile-select-button:focus-visible {
    outline-offset: 5px;
}

.profile-select-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.profile-select-button:disabled:hover .profile-arrow {
    transform: none;
    color: var(--subtle);
}

.profile-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--profile-accent) 13%, var(--surface));
    color: var(--profile-accent);
    font-size: 15px;
    font-weight: 600;
}

.profile-arrow {
    color: var(--subtle);
    font-size: 18px;
    transition: color 140ms ease, transform 140ms ease;
}

.profile-card:hover .profile-arrow {
    transform: translate(2px, -2px);
    color: var(--text);
}

.profile-info {
    display: grid;
    gap: 4px;
    margin-top: 17px;
}

.profile-name {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.profile-description {
    color: var(--muted);
    font-size: 12px;
}

.profile-card-meta {
    display: block;
    margin-top: 12px;
    color: var(--subtle);
    font-size: 12px;
}

.resume-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.resume-upload-form label {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.resume-upload-form input[type="file"] {
    width: 100%;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}

.resume-upload-form input[type="file"]::file-selector-button {
    max-width: 100%;
    margin-right: 6px;
    padding: 5px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.resume-upload-button {
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.resume-upload-button:hover:not(:disabled) {
    background: var(--surface-muted);
}

.resume-upload-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.resume-status {
    grid-column: 1 / -1;
    min-height: 14px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.resume-status.is-ready {
    color: var(--success);
}

.resume-status.is-error {
    color: var(--danger);
}

.context-panel {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.panel-mark {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.context-panel > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.panel-rule {
    height: 1px;
    margin: 15px 0 12px;
    background: var(--border);
}

.panel-footnote {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.65;
}

.workspace-footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 clamp(22px, 4vw, 56px);
    border-top: 1px solid var(--border);
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: 12px;
}

.workspace-footer a {
    color: var(--muted);
    text-underline-offset: 3px;
}

.workspace-footer a:hover {
    color: var(--text);
}

.workspace-footer button {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.workspace-footer button:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-context {
        max-width: none;
    }
}

@media (max-width: 650px) {
    .app-shell {
        display: flex;
        flex-direction: column;
    }

    .workspace {
        min-height: 100vh;
    }

    .dashboard-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 10px;
        padding: 8px 14px;
    }

    .dashboard-current-page {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        padding: 0 0 5px 4px;
    }

    .workspace-main {
        padding: 24px 16px 32px;
    }

    .workspace-footer {
        margin: 0 18px;
    }
}

@media (max-width: 430px) {
    .dashboard-user-name {
        display: none;
    }

    .dashboard-header-start {
        gap: 7px;
    }

    .dashboard-header-status {
        gap: 5px;
    }


    .dashboard-menu > summary {
        min-width: 38px;
        padding: 0 8px;
    }

    .menu-summary-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ATS score badge (templates/ats_badge.html) ----------------------------- */

.ats-slot {
    margin: 11px 0 2px;
}

.ats-badge {
    --ats-color: var(--danger);
    --ats-soft: var(--danger-soft);
    --ats-edge: var(--danger-border);
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--ats-edge);
    border-radius: 999px;
    background: var(--surface);
    animation: ats-pop 420ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.ats-badge.is-excellent,
.ats-badge.is-good {
    --ats-color: var(--success);
    --ats-soft: var(--success-soft);
    --ats-edge: var(--success-border);
}

.ats-badge.is-fair {
    --ats-color: var(--warning);
    --ats-soft: var(--warning-soft);
    --ats-edge: var(--warning-border);
}

.ats-ring {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        var(--ats-color) calc(var(--ats-score) * 1%),
        var(--ats-soft) 0
    );
}

.ats-ring::before {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--surface);
    content: "";
}

.ats-ring-value {
    position: relative;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ats-badge-text {
    display: grid;
    min-width: 0;
    gap: 1px;
    line-height: 1.25;
}

.ats-badge-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.ats-badge-text strong {
    color: var(--ats-color);
    font-size: 12px;
    font-weight: 650;
}

.ats-badge-text small {
    color: var(--muted);
    font-size: 12px;
}

.ats-sparkle {
    display: inline-block;
    color: var(--ats-color);
    animation: ats-twinkle 2.4s ease-in-out infinite;
}

.ats-tips {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.ats-tips summary {
    width: fit-content;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ats-tips ul {
    display: grid;
    gap: 5px;
    margin: 7px 0 0;
    padding-left: 15px;
    line-height: 1.5;
}

.ats-pending {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

@keyframes ats-pop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
}

@keyframes ats-twinkle {
    50% {
        opacity: 0.35;
        transform: scale(0.8) rotate(20deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ats-badge,
    .ats-sparkle {
        animation: none;
    }
}

/* Human agent hand-over status on listing tables. */
/* Status badges (design system): radius 6, 12px/600, a tint fill.
 *   Ready        brand-tint / brand-deep
 *   Sent         surface-sunken / ink-muted
 *   Human agent  accent-tint / accent-ink, with a saffron dot
 * .listing-email-status and .human-status are the two badge families. */
.listing-email-status,
.human-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.listing-email-status.ready {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.listing-email-status.sent,
.listing-email-status.not-sent {
    background: var(--surface-muted);
    color: var(--muted);
}

.human-status.is-waiting {
    background: var(--saffron-tint);
    color: var(--saffron-ink);
}

.human-status.is-applied {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* Frozen by the human agent: neutral, nothing failed on the user's side. */
.human-status.is-frozen {
    background: var(--surface-muted);
    color: var(--muted);
}

.human-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--saffron);
}

.human-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.human-agent-badge img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.human-agent-badge strong {
    color: var(--text);
}

/* ------------------------------------------------------------------------
 * Design system type and controls (shared with the landing page).
 * Headings are Geist with tight tracking (the former type treatment).
 * ---------------------------------------------------------------------- */

body {
    font-feature-settings: "ss01", "cv11";
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.025em;
}

h1 {
    letter-spacing: -0.035em;
}

/* The wordmark keeps the brand serif; only "Jobs" is loaded in it. */
.brand-name-word {
    font-family: var(--font-wordmark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Primary actions: pine, radius 10, 44px (48px on phones). The body prefix
 * lets this win over each page's own button rules without !important. */
body :is(
    .search-button,
    .billing-button,
    .setup-save-button,
    .confirm-button,
    .success-button,
    .resume-upload-button,
    .public-search-button,
    .access-button,
    .ha-button-primary,
    .landing-primary-action,
    .public-header-cta
) {
    min-height: 44px;
    border-color: var(--accent);
    border-radius: var(--radius-control);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

body :is(
    .search-button,
    .billing-button,
    .setup-save-button,
    .confirm-button,
    .success-button,
    .resume-upload-button,
    .public-search-button,
    .access-button,
    .ha-button-primary,
    .landing-primary-action,
    .public-header-cta
):hover:not(:disabled) {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

@media (max-width: 899.98px) {
    body :is(.search-button, .billing-button, .setup-save-button, .confirm-button, .success-button) {
        min-height: 48px;
    }
}

/* Secondary actions: outlined, same radius as primary ones. */
body :is(
    .cancel-button,
    .ha-button-quiet,
    .ha-button-secondary,
    .agent-pause-button,
    .replace-resume-button,
    .profile-select-button
) {
    border-radius: var(--radius-control);
}

body :is(.ha-button-secondary) {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
}

/* ------------------------------------------------------------------------
 * App navigation: sections are visible on wide screens (tabs), with the
 * account menu on the right; phones keep the single menu.
 * ---------------------------------------------------------------------- */

.dashboard-tabs {
    display: none;
}

.dashboard-account {
    position: relative;
    display: none;
}

@media (min-width: 900px) {
    .dashboard-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .dashboard-menu {
        display: none;
    }

    .dashboard-tabs {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .dashboard-tabs a {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        padding: 0 14px;
        border-radius: var(--radius-pill);
        color: var(--muted);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: color 140ms ease, background-color 140ms ease;
    }

    .dashboard-tabs a:hover {
        color: var(--text);
    }

    .dashboard-tabs a[aria-current="page"] {
        background: var(--brand-tint);
        color: var(--brand-deep);
        font-weight: 600;
    }

    .dashboard-account {
        display: block;
    }

    .dashboard-account > summary {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        gap: 6px;
        padding: 0 12px;
        border-radius: var(--radius-pill);
        color: var(--text);
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        list-style: none;
        white-space: nowrap;
    }

    .dashboard-account > summary::-webkit-details-marker {
        display: none;
    }

    .dashboard-account > summary:hover,
    .dashboard-account[open] > summary {
        background: var(--surface-muted);
    }

    .dashboard-account > summary span {
        color: var(--muted);
        font-size: 12px;
    }

    .dashboard-account-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 10;
        display: grid;
        width: 190px;
        gap: 2px;
        padding: 6px;
        border: 1px solid var(--border);
        border-radius: var(--radius-panel);
        background: var(--surface);
        box-shadow: var(--shadow-overlay);
    }

    .dashboard-account-panel form {
        margin: 0;
    }

    .dashboard-account-panel a,
    .dashboard-account-panel button {
        display: flex;
        width: 100%;
        min-height: 40px;
        align-items: center;
        padding: 0 12px;
        border: 0;
        border-radius: var(--radius-control);
        background: transparent;
        color: var(--text);
        cursor: pointer;
        font: inherit;
        font-size: 14px;
        text-align: left;
        text-decoration: none;
    }

    .dashboard-account-panel a:hover,
    .dashboard-account-panel button:hover,
    .dashboard-account-panel [aria-current="page"] {
        background: var(--surface-muted);
    }
}

/* Header and page title used to repeat each other; the page's own heading
 * is the title now, so phones lose the extra row. */
.dashboard-current-page {
    display: none;
}

/* Developer sign-in link on the login page (local development only). */
.login-dev-link {
    margin: 16px 0 0;
    font-size: 12px;
}

.login-dev-link a {
    color: var(--muted);
}

/* ------------------------------------------------------------------------
 * Phones and tablets (under 900px): app-style layout. A sticky, translucent
 * header on top and a bottom tab bar (templates/app_tabbar.html) replace
 * the hamburger menu. "More" opens a bottom sheet. Desktop is unchanged.
 * ---------------------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.app-tabbar {
    display: none;
}

@media (max-width: 899.98px) {
    :root {
        --tabbar-height: 64px;
        --tabbar-space: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
    }

    html {
        -webkit-tap-highlight-color: transparent;
        scroll-padding-bottom: var(--tabbar-space);
    }

    /* The tab bar replaces the hamburger menu. */
    .dashboard-menu {
        display: none;
    }

    /* Header: sticky 56px, logo tile and "Jobs", agent chip on the right. */
    .dashboard-header {
        position: sticky;
        top: 0;
        z-index: 30;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: calc(56px + env(safe-area-inset-top, 0px));
        gap: 12px;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: 0;
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        background: color-mix(in srgb, var(--surface) 88%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
    }

    .dashboard-brand {
        gap: 8px;
    }

    .dashboard-brand .brand-mark {
        width: 28px;
        height: 28px;
    }

    .dashboard-brand .brand-name-by {
        display: none;
    }

    /* Credits live in the More sheet on phones. */
    .dashboard-metric {
        display: none;
    }

    .workspace {
        padding-bottom: var(--tabbar-space);
    }

    .app-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: var(--tabbar-space);
        padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    }

    /* The blur sits on a layer, not the bar: backdrop-filter on the bar
     * would make it the containing block for the fixed sheet and backdrop. */
    .app-tabbar::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-top: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 88%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
    }

    .app-tab {
        display: flex;
        min-width: 0;
        height: var(--tabbar-height);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--muted);
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
        list-style: none;
        text-decoration: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .app-tab::-webkit-details-marker {
        display: none;
    }

    .app-tab-icon {
        position: relative;
        display: grid;
        width: 56px;
        height: 32px;
        place-items: center;
        border-radius: var(--radius-pill);
        transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
    }

    .app-tab svg,
    .app-sheet-item svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.75;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Active tab: icon in a 56x32 brand-tint pill, icon and label in brand. */
    .app-tab[aria-current="page"] {
        color: var(--brand);
        font-weight: 600;
    }

    .app-tab[aria-current="page"] .app-tab-icon,
    .app-tab-more[open] > .app-tab .app-tab-icon {
        background: var(--brand-tint);
    }

    .app-tab-more[open] > .app-tab {
        color: var(--brand);
    }

    .app-tab[aria-current="page"] svg {
        stroke-width: 2;
    }

    .app-tab:active .app-tab-icon {
        transform: scale(0.92);
    }

    .app-tab:focus-visible {
        outline: none;
    }

    .app-tab:focus-visible .app-tab-icon {
        outline: 2px solid var(--focus);
        outline-offset: 2px;
    }

    .app-tab-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-tab-badge {
        position: absolute;
        top: -2px;
        left: 34px;
        display: grid;
        min-width: 18px;
        height: 18px;
        place-items: center;
        padding: 0 5px;
        border: 2px solid var(--surface);
        border-radius: var(--radius-pill);
        background: var(--danger);
        color: var(--surface);
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
    }

    /* More: a bottom sheet. The summary's ::before is the backdrop, so a
     * tap outside the sheet toggles the <details> closed. */
    .app-tab-more {
        display: contents;
    }

    .app-tab-more[open] > summary::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: var(--backdrop);
        animation: app-fade 180ms ease-out;
    }

    .app-sheet {
        position: fixed;
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: calc(var(--tabbar-space) + 8px);
        left: max(8px, env(safe-area-inset-left, 0px));
        z-index: 1;
        display: grid;
        max-width: 520px;
        margin: 0 auto;
        gap: 2px;
        padding: 8px 8px 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow-overlay);
        animation: app-sheet-in 240ms var(--ease-out);
    }

    .app-sheet-grip {
        width: 36px;
        height: 4px;
        margin: 2px auto 6px;
        border-radius: var(--radius-pill);
        background: var(--border-strong);
    }

    .app-sheet-account {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 12px 12px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 4px;
        font-size: 15px;
    }

    .app-sheet-account span {
        color: var(--muted);
        font-family: var(--font-mono);
        font-size: 12px;
    }

    .app-sheet form {
        margin: 0;
    }

    .app-sheet-item {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        gap: 14px;
        padding: 0 12px;
        border: 0;
        border-radius: var(--radius-control);
        background: transparent;
        color: var(--text);
        cursor: pointer;
        font: inherit;
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        text-decoration: none;
    }

    .app-sheet-item span {
        flex: 1;
    }

    .app-sheet-item em {
        color: var(--muted);
        font-size: 12px;
        font-style: normal;
    }

    .app-sheet-item:hover,
    .app-sheet-item:active {
        background: var(--surface-muted);
    }

    .app-sheet-item[aria-current="page"] {
        background: var(--brand-tint);
        color: var(--brand-deep);
    }

    .app-sheet-item.is-quiet {
        color: var(--muted);
    }

    @keyframes app-fade {
        from { opacity: 0; }
    }

    @keyframes app-sheet-in {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
    }
}

@media (max-width: 899.98px) and (prefers-reduced-motion: reduce) {
    .app-sheet,
    .app-tab-more[open] > summary::before {
        animation: none;
    }
}
