/* ==========================================================================
   Suggester uploader — editorial eggshell, light serif headlines,
   black pill CTAs. Achromatic discipline; one Signal Blue dot as brand.
   ========================================================================== */

:root {
    /* Surfaces */
    --eggshell:   #fdfcfc;   /* page ground */
    --powder:     #f5f3f1;   /* hover, active row */
    --card:       #ffffff;   /* white surfaces that pop off eggshell */
    --obsidian:   #000000;

    /* Borders */
    --chalk:      #e5e5e5;   /* universal border */
    --fog:        #b1b0b0;

    /* Ink */
    --gravel:     #777169;   /* secondary text */
    --slate:      #a59f97;   /* tertiary text, placeholders */
    --cinder:     #575345;   /* mid-tone (DESIGN.md typo #57534 → fixed) */

    /* Reserved-for-dots accents */
    --signal-blue: #0447ff;
    --ember:       #ff4704;

    /* States — strictly achromatic per DESIGN.md; differentiated by sigil only */

    /* Type stacks */
    --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Hairline shadows — ElevenLabs cards float by 1px, not by depth */
    --shadow-card:   rgba(0, 0, 0, 0.4) 0 0 1px 0, rgba(0, 0, 0, 0.04) 0 2px 4px 0;
    --shadow-inset:  rgba(0, 0, 0, 0.075) 0 0 0 0.5px inset;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--eggshell);
    color: var(--obsidian);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

a {
    color: var(--obsidian);
    text-decoration: none;
    border-bottom: 1px solid var(--chalk);
    transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--obsidian); }
a:focus-visible {
    outline: 2px solid var(--obsidian);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Focus rings — keyboard users
   ------------------------------------------------------------------------ */

.btn-submit:focus-visible,
.masthead__signout:focus-visible {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.06) 0 0 0 1px, 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.fileinput:focus-within .fileinput__shell {
    border-style: solid;
    border-color: var(--obsidian);
    box-shadow: var(--shadow-inset), 0 0 0 3px rgba(0, 0, 0, 0.1);
}

em, i, cite, address { font-style: normal; }

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

.shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem 7rem;
    position: relative;
    z-index: 1;
}

.masthead {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--chalk);
    margin-bottom: 3rem;
}

.masthead__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--gravel);
    margin-bottom: 0.85rem;
}
.masthead__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: var(--signal-blue);
    flex-shrink: 0;
}

.masthead__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5.5vw, 3.5rem);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--obsidian);
}
.masthead__title em { font-style: normal; font-weight: 500; color: var(--obsidian); }

.masthead__signout {
    /* Ghost pill button */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 14px;
    background: var(--card);
    color: var(--obsidian);
    border: 1px solid var(--chalk);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-card);
    transition: background 0.15s, color 0.15s;
}
.masthead__signout:hover { background: var(--powder); }

/* Rules card
   ------------------------------------------------------------------------ */

.rules {
    background: var(--card);
    border: 1px solid var(--chalk);
    border-radius: 16px;
    padding: 2rem 2.25rem 2.25rem;
    margin-bottom: 2.75rem;
    box-shadow: var(--shadow-card);
}

.rules__heading {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1.13;
    letter-spacing: -0.02em;
    color: var(--obsidian);
    margin: 0 0 1.5rem;
}
.rules__heading em { font-style: normal; font-weight: 500; }
.rules__heading::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: var(--ember);
    transform: translateY(-4px);
    flex-shrink: 0;
}

.rules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rule;
    display: grid;
    gap: 0.6rem;
}

.rules__list li {
    counter-increment: rule;
    position: relative;
    padding-left: 2.7rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gravel);
}

.rules__list li::before {
    content: counter(rule, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.16em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.7px;
    color: var(--obsidian);
    line-height: 1.4;
}

.rules__list strong { color: var(--obsidian); font-weight: 500; }

.rules__list code {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 12px;
    color: var(--gravel);
    background: var(--powder);
    padding: 0.05em 0.35em;
    border-radius: 4px;
}

/* Form
   ------------------------------------------------------------------------ */

.form {
    display: grid;
    gap: 2rem;
}

.field {
    display: grid;
    gap: 0.6rem;
}

.field__label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.7rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--obsidian);
}
.field__label::before {
    content: attr(data-num);
    color: var(--gravel);
    font-weight: 700;
    letter-spacing: 0.7px;
}

.field__errors {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--obsidian);
}

/* Searchable combobox
   ------------------------------------------------------------------------ */

.combobox { position: relative; }

.combobox__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 48px;
    padding: 0 16px;
    background: var(--card);
    border: 1px solid var(--chalk);
    border-radius: 4px;
    color: var(--obsidian);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-inset);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.combobox__trigger:hover { border-color: var(--obsidian); }
.combobox__trigger:focus-visible,
.combobox.is-open .combobox__trigger {
    outline: none;
    border-color: var(--obsidian);
    box-shadow: var(--shadow-inset), 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.combobox__placeholder { color: var(--slate); }

.combobox__caret {
    width: 8px;
    height: 8px;
    border-right: 1.25px solid var(--obsidian);
    border-bottom: 1.25px solid var(--obsidian);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.combobox.is-open .combobox__caret {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.combobox__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    z-index: 20;
    max-height: 240px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.combobox.is-open .combobox__panel { display: flex; }

.combobox__search {
    position: relative;
    border-bottom: 1px solid var(--chalk);
    background: var(--card);
}

.combobox__search-input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.85rem 1.1rem 0.85rem 2.5rem;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--obsidian);
    outline: none;
}
.combobox__search-input::placeholder { color: var(--slate); }

.combobox__search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1.25px solid var(--gravel);
    border-radius: 50%;
    pointer-events: none;
}
.combobox__search-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 1.25px;
    background: var(--gravel);
    bottom: -2px;
    right: -3px;
    transform: rotate(45deg);
    transform-origin: left;
}

.combobox__list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    overflow-y: auto;
    flex: 1;
}
.combobox__list::-webkit-scrollbar { width: 8px; }
.combobox__list::-webkit-scrollbar-thumb { background: var(--chalk); border-radius: 9999px; }

.combobox__option {
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    font-size: 14px;
    color: var(--obsidian);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.1s;
}
.combobox__option[hidden] { display: none; }
.combobox__option:hover,
.combobox__option.is-active { background: var(--powder); }
.combobox__option.is-selected { font-weight: 500; }
.combobox__option.is-selected::after {
    content: '✓';
    color: var(--obsidian);
    font-weight: 500;
    font-size: 13px;
}

.combobox__option mark {
    background: transparent;
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    padding: 0;
}

.combobox__empty {
    padding: 1.25rem 1.1rem;
    text-align: center;
    color: var(--gravel);
    font-size: 13px;
}

.combobox__count {
    border-top: 1px solid var(--chalk);
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--gravel);
    background: var(--card);
}

/* File input — pill button + dashed receipt
   ------------------------------------------------------------------------ */

.fileinput { position: relative; }
.fileinput input[type="file"] {
    position: absolute;
    width: 1px; height: 1px; opacity: 0; overflow: hidden;
}

.fileinput__shell {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    border: 1px dashed var(--chalk);
    border-radius: 4px;
    background: var(--card);
    box-shadow: var(--shadow-inset);
    transition: border-color 0.15s, background 0.15s;
}
.fileinput__shell:hover { border-color: var(--obsidian); }
.fileinput.has-file .fileinput__shell { border-style: solid; border-color: var(--obsidian); }

.fileinput__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 8px 0 8px 8px;
    padding: 0 16px;
    height: 36px;
    background: var(--obsidian);
    color: var(--eggshell);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 0;
    border-radius: 9999px;
    box-shadow: rgba(0, 0, 0, 0.06) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 1px 2px 0, rgba(0, 0, 0, 0.04) 0 2px 4px 0;
    transition: background 0.15s;
}
.fileinput__btn:hover { background: var(--cinder); }

.fileinput__name {
    padding: 0.95rem 1.1rem 0.95rem 1.1rem;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gravel);
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fileinput.has-file .fileinput__name { color: var(--obsidian); }
.fileinput__name b { font-weight: 500; color: var(--obsidian); }

/* Submit button — primary black pill
   ------------------------------------------------------------------------ */

.actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--chalk);
}

.btn-submit {
    appearance: none;
    border: 1px solid var(--obsidian);
    background: var(--obsidian);
    color: var(--eggshell);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 0 20px;
    height: 44px;
    cursor: pointer;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: rgba(0, 0, 0, 0.06) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 1px 2px 0, rgba(0, 0, 0, 0.04) 0 2px 4px 0;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-submit:hover {
    background: var(--cinder);
    border-color: var(--cinder);
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled,
.btn-submit[disabled] {
    background: var(--card);
    color: var(--slate);
    border-color: var(--chalk);
    cursor: not-allowed;
    box-shadow: var(--shadow-inset);
    transform: none;
}
.btn-submit:disabled:hover,
.btn-submit[disabled]:hover { background: var(--card); transform: none; }
.btn-submit::after {
    content: '→';
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1;
}

.actions__hint {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gravel);
}

/* Banners — desaturated, framed, no rounded corners on the strip
   ------------------------------------------------------------------------ */

.banner {
    background: var(--card);
    color: var(--obsidian);
    border: 1px solid var(--chalk);
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
}
.banner strong { font-weight: 500; }
.banner--error { border-left: 3px solid var(--obsidian); }
.banner--ok    { border-left: 3px solid var(--obsidian); }
.banner__sigil {
    font-family: var(--font-body), 'Apple Color Emoji', 'Segoe UI Symbol';
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Result section
   ------------------------------------------------------------------------ */

.result {
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--chalk);
}

.result__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--obsidian);
    margin-bottom: 0.85rem;
}
.result__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: var(--signal-blue);
    flex-shrink: 0;
}

.result__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 1.13;
    margin: 0 0 1.75rem;
    color: var(--obsidian);
    letter-spacing: -0.02em;
}
.result__title em { font-style: normal; font-weight: 500; }

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0;
    background: var(--card);
    border: 1px solid var(--chalk);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.metric {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--chalk);
}
.metric:last-child { border-right: 0; }

.metric__label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--gravel);
    margin-bottom: 0.5rem;
}
.metric__value {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--obsidian);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.preview {
    margin-top: 1.5rem;
    border: 1px solid var(--chalk);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.preview > summary {
    padding: 0.95rem 1.25rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--obsidian);
    background: var(--card);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s;
}
.preview > summary::-webkit-details-marker { display: none; }
.preview > summary:hover { background: var(--powder); }
.preview > summary::before {
    content: '+';
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 0.6;
    color: var(--obsidian);
    width: 14px;
    text-align: center;
}
.preview[open] > summary::before { content: '−'; }
.preview[open] > summary { border-bottom: 1px solid var(--chalk); }

.preview__table-wrap { overflow-x: auto; }
.preview table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.69;
}
.preview td {
    border-top: 1px solid var(--chalk);
    border-right: 1px solid var(--chalk);
    padding: 0.55rem 0.85rem;
    white-space: pre;
    color: var(--gravel);
    vertical-align: top;
}
.preview td:last-child { border-right: 0; }
.preview tr:hover td { background: var(--powder); color: var(--obsidian); }

.preview__more {
    margin: 0;
    padding: 0.85rem 1.25rem;
    background: var(--card);
    border-top: 1px solid var(--chalk);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gravel);
}

/* Mobile
   ------------------------------------------------------------------------ */

@media (max-width: 640px) {
    .shell { padding: 2.5rem 1.25rem 4rem; }
    .masthead { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
    .masthead__signout { justify-self: start; }
    .rules { padding: 1.5rem; }
    .rules__list li { padding-left: 2.4rem; }
    .metrics { grid-template-columns: 1fr; }
    .metric { border-right: 0; border-bottom: 1px solid var(--chalk); }
    .metric:last-child { border-bottom: 0; }
    .actions { flex-direction: column; align-items: stretch; gap: 0.85rem; }
    .btn-submit { justify-content: center; }
}

/* ==========================================================================
   Modal — editorial overlay, eggshell aesthetic per DESIGN.md
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: modal-fade 180ms ease-out;
}
.modal.is-open { display: flex; }
body.has-modal { overflow: hidden; }

@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 4rem);
    overflow: auto;
    background: var(--card);
    color: var(--obsidian);
    border: 1px solid var(--chalk);
    border-radius: 24px;
    box-shadow:
        rgba(0, 0, 0, 0.4) 0 0 1px 0,
        rgba(0, 0, 0, 0.04) 0 2px 4px,
        rgba(0, 0, 0, 0.04) 0 16px 40px;
    padding: 3rem 3.25rem 2.25rem;
    animation: modal-rise 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal__close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: var(--gravel);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 9999px;
    transition: color 120ms ease, background 120ms ease;
}
.modal__close:hover { color: var(--obsidian); background: var(--powder); }

.modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.25rem;
}

.btn-submit--ghost {
    background: var(--card);
    color: var(--obsidian);
    border: 1px solid var(--chalk);
    box-shadow: var(--shadow-card);
}
.btn-submit--ghost:hover {
    background: var(--obsidian);
    color: var(--card);
    border-color: var(--obsidian);
}

/* Strip the result section's standalone framing when nested inside a modal. */
.modal .result {
    margin: 0;
    padding: 0;
    border: 0;
}
.modal .result__title {
    font-size: 2.5rem;
    margin: 0 0 2.5rem;
    letter-spacing: -0.025em;
}
.modal .result__eyebrow { margin-bottom: 1.25rem; }

/* Editorial two-up metrics — no card chrome, hairline divider only. */
.modal .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 2rem;
    padding: 1.5rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--chalk);
    border-bottom: 1px solid var(--chalk);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.modal .metric {
    padding: 0.25rem 1.5rem;
    border-right: 1px solid var(--chalk);
}
.modal .metric:last-child { border-right: 0; }
.modal .metric:first-child { padding-left: 0; }
.modal .metric:last-child  { padding-right: 0; }
.modal .metric__label {
    font-size: 11px;
    color: var(--gravel);
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}
.modal .metric__value {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.025em;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.metric__hint {
    color: var(--gravel);
    font-size: 0.8rem;
    margin-top: 0.65rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* Inline editorial status — replaces boxed banners inside the modal. */
.status {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--obsidian);
}
.status strong { font-weight: 500; }
.status__mark {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    color: var(--gravel);
    font-weight: 500;
}
.status--ok   .status__mark { color: var(--signal-blue); }
.status--warn .status__mark { color: var(--ember); }
.status--err  .status__mark { color: var(--ember); }
.status--err strong { color: var(--obsidian); }

/* Loader modal — same panel, reduced footprint. */
.modal__panel--loader {
    max-width: 380px;
    text-align: center;
    padding: 2.75rem 2.5rem 2.5rem;
}
.loader {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.loader__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid var(--chalk);
    border-top-color: var(--obsidian);
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}
.loader__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--obsidian);
    margin-bottom: 0.55rem;
}
.loader__hint {
    color: var(--gravel);
    font-size: 0.85rem;
    line-height: 1.55;
}
