/* Support messaging, the player's side (js/support.js): the unread count on the account
   buttons and the menu tile, the #MS# page (the list | one request, a new request), the
   Raporto buttons in My Bets, and the sheets (report, ticket picker, the operator's pop-up).
   Tokens only (DESIGN-SYSTEM.md). Mobile first; the page takes two columns from 901px,
   the sheets become centred panels from 600px. */

/* ---- the unread count ------------------------------------------------------------------- */
.sup-badge {
    min-width: 18px;
    height: 18px;
    box-sizing: border-box;
    padding: 0 5px;
    border-radius: var(--radius-lg25);
    background: var(--accent-odds);
    color: var(--bg-deep);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-secondary);
    pointer-events: none;
}
/* Top LEFT: staff alerts' red count sits top right of the same button. */
.sup-badge-avatar { position: absolute; top: -3px; left: -5px; }
/* A square tile like the rest (user 2026-11-18: empty cells after it are fine); count top right as staff alerts'. */
.sup-badge-tile { position: absolute; top: 6px; right: 8px; }

/* ---- Raporto in My Bets ----------------------------------------------------------------- */
.mybets-legs-actions [data-mb-report] { color: var(--accent-orange); }
.sup-leg-btn {
    flex: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--accent-orange);
    cursor: pointer;
}
.sup-leg-btn svg { width: 15px; height: 15px; }
.sup-leg-btn:hover { background: var(--bg-hover); }
/* Bet Details (classic): the flag after the price. */
.mybets-sel-row.sup-has-report { grid-template-columns: auto 1fr auto auto; }
/* b365 skin: the flag right of the day and the match (rows 1-2), the price stays under it. */
html.b365 .b365mb-l.sup-has-report > :is(.b365mb-l-meta, .b365mb-l-match) { grid-column: 2; }
html.b365 .b365mb-l.sup-has-report > .sup-leg-btn { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; width: 30px; height: 30px; }
html.b365 .b365mb-bb-pick.sup-has-report { grid-template-columns: 18px 18px minmax(0, 1fr) auto; }
html.b365 .b365mb-bb-pick > .sup-leg-btn { width: 30px; height: 30px; }
html.b365 .b365mb-act.sup-act-report { color: var(--accent-orange); }

/* ---- shared pieces ---------------------------------------------------------------------- */
.sup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.sup-btn svg { width: 16px; height: 16px; flex: none; }
.sup-btn:hover { background: var(--bg-hover); }
.sup-btn-primary { border-color: transparent; background: var(--accent-green-grad); color: var(--bg-deep); }
.sup-btn-primary:hover { background: var(--accent-green-grad); opacity: 0.9; }
.sup-btn-sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.sup-btn-block { width: 100%; min-height: 48px; font-size: 15px; }
.sup-btn:disabled { opacity: 0.55; cursor: default; }
.sup-btn:focus-visible, .sup-tab:focus-visible, .sup-item:focus-visible, .sup-topic:focus-visible,
.sup-icon-btn:focus-visible, .sup-x:focus-visible, .sup-add-tk:focus-visible, .sup-back:focus-visible,
.sup-leg-btn:focus-visible, .sup-reason:focus-within, .sup-pk-row:focus-within {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.sup-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    font-size: 16px;   /* 16px: iOS does not zoom into the field */
    line-height: 1.4;
}
textarea.sup-input { resize: none; }
.sup-input::placeholder { color: var(--text-muted); }
.sup-input:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 0; border-color: transparent; }

.sup-tabs { display: flex; gap: 6px; overflow-x: auto; }
.sup-tab {
    flex: none;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg25);
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.sup-tab[aria-selected="true"] {
    border-color: var(--accent-green);
    background: color-mix(in srgb, var(--accent-green) 10%, transparent);
    color: var(--accent-green);
}

.sup-x {
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}
.sup-x svg { width: 18px; height: 18px; }
.sup-x:hover { background: var(--bg-hover); color: var(--text-primary); }

/* A request's status: 0 open, 1 in review, 2 waiting for the player, 3 resolved. */
.sup-st {
    --sup-st: var(--text-secondary);
    flex: none;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--sup-st) 14%, transparent);
    color: var(--sup-st);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.sup-st-1 { --sup-st: var(--accent-orange); }
.sup-st-2 { --sup-st: var(--accent-odds); }
.sup-st-3 { --sup-st: var(--accent-teal-light); }

.sup-odd { color: var(--accent-odds); font-weight: 700; }
.sup-err { margin: 0; font-size: 13px; color: var(--accent-red-soft); }
.sup-err:empty { display: none; }
.sup-foot-note { margin: 0; font-size: 12px; color: var(--text-muted); text-align: center; }
.sup-empty { padding: 28px 12px; font-size: 13px; color: var(--text-muted); text-align: center; }
.sup-off {
    max-width: 480px;
    margin: 24px auto;
    padding: 24px 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
}
.sup-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.sup-h { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.sup-h-sm { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.sup-p { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); }

/* ---- the #MS# page ---------------------------------------------------------------------- */
.sup-wrap { max-width: 1200px; margin: 0 auto; }
.sup-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    /* 16px under the site header, as My Bets keeps (its b365 head sits 20px down): the title row's
       buttons ran into the header. The phone thread's height below takes the 12px more off. */
    padding: 16px 6px 16px;
    color: var(--text-primary);
}
/* A phone: one pane at a time. */
.sup-page[data-view="thread"] .sup-side,
.sup-page[data-view="new"] .sup-side,
.sup-page[data-view="list"] .sup-main { display: none; }

.sup-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sup-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sup-title { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.sup-list { display: flex; flex-direction: column; gap: 8px; }
/* A day's line over its requests (newest first). */
.sup-day { margin: 6px 2px 0; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.sup-day:first-child { margin-top: 0; }
/* The resolved tab's period, My Bets' own (Support._periodHtml): b365's pills (select + calendar)
   beside the tabs, or the classic bar under them. The open tab has none. */
/* Wraps at 320-360 px: the pill keeps its longest option's width and squeezed the tabs. */
.sup-tabs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sup-tabs-row .sup-tabs { min-width: 0; }
#sup-period { flex: none; }
.sup-per-pills { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
#sup-period:empty, #sup-dates[hidden] { display: none; }
.sup-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sup-item:hover { background: var(--bg-hover); }
.sup-item.is-on { border-color: var(--accent-green); background: color-mix(in srgb, var(--accent-green) 6%, var(--bg-secondary)); }
.sup-item-top, .sup-item-last { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-item-topic { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.sup-item-meta { font-size: 12px; color: var(--text-muted); }
.sup-item-prev { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-secondary); }
.sup-item.is-unread .sup-item-prev { color: var(--text-primary); font-weight: 600; }
.sup-item-when { flex: none; font-size: 12px; color: var(--text-muted); }
.sup-dot { flex: none; width: 8px; height: 8px; border-radius: var(--radius-lg25); background: var(--accent-odds); }

.sup-main { min-width: 0; }
.sup-main > .sup-empty { border: 1px dashed var(--border-color); border-radius: var(--radius-md); }
.sup-thread, .sup-new {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}
.sup-th-head { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.sup-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    margin: -6px 0 -4px -8px;
    padding: 0 10px 0 4px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.sup-back svg { width: 18px; height: 18px; }
.sup-th-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sup-th-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sup-th-title { margin: 0; font-size: 18px; font-weight: 700; }
.sup-th-sub { font-size: 13px; color: var(--text-muted); }
.sup-th-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* The status stepper: done in green, the current one orange (resolved: all teal). */
.sup-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sup-step { min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--text-muted); }
.sup-step-bar { height: 4px; border-radius: var(--radius-sm); background: var(--bg-hover); }
.sup-step.is-done .sup-step-bar { background: var(--accent-green); }
.sup-step.is-on .sup-step-bar { background: var(--accent-orange); }
.sup-steps[data-st="3"] .sup-step-bar { background: var(--accent-teal-light); }
.sup-step.is-on { color: var(--text-primary); font-weight: 700; }
.sup-step-txt { overflow-wrap: anywhere; }

.sup-msgs {
    min-height: 200px;
    max-height: 58dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}
/* A chat: a short conversation sits at the foot, right above the reply box, not at the top with
   an empty middle (user 2026-11-18); a long one scrolls as before (auto margin collapses to 0). */
.sup-msgs > :first-child { margin-top: auto; }
.sup-msg { align-self: flex-start; max-width: 85%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sup-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.sup-bubble {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.sup-msg.is-mine .sup-bubble { border-color: transparent; background: var(--bg-tertiary); }
.sup-msg-meta { font-size: 11px; color: var(--text-muted); }
.sup-msg.is-staff .sup-msg-meta { color: var(--accent-teal-light); font-weight: 600; }
.sup-ev { align-self: center; font-size: 12px; color: var(--text-muted); text-align: center; }

/* An attached ticket in the thread. */
.sup-tk {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 13px;
    text-align: left;
}
.sup-tk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sup-tk-states { display: inline-flex; align-items: center; gap: 6px; }
.sup-tk-arrow { color: var(--text-muted); }
.sup-tk-meta { font-size: 12px; color: var(--text-muted); }
.sup-tk-leg { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; border-top: 1px solid var(--border-subtle); }
.sup-tk-leglbl { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--accent-orange); }

.sup-compose { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-color); }
/* A resolved request takes no more messages from the player: this note and a way to a new one instead. */
.sup-closed { align-items: center; gap: 10px; text-align: center; }
.sup-closed p { margin: 0; font-size: 13px; color: var(--text-secondary); }
/* Under 900px, a chat: the thread fills the screen between the header and the bottom nav, the
   messages scroll inside it and the reply box sits at its foot right above the nav (user
   2026-11-18: with a few messages it floated mid-screen). Sticky only for a screen too short for
   the min-height (clip, not hidden, so the card is no scroll box sticky would pin to). */
@media (max-width: 900px) {
    .sup-thread {
        overflow: clip;
        height: calc(100dvh - var(--header-height) - var(--bottom-nav-height) - 36px);
        min-height: 360px;
    }
    .sup-thread .sup-th-head, .sup-compose { flex: none; }
    .sup-msgs { flex: 1 1 auto; min-height: 120px; max-height: none; }
    .sup-compose { position: sticky; bottom: var(--bottom-nav-height); z-index: 2; background: var(--bg-secondary); }
}
.sup-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.sup-compose-row .sup-input { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: vertical; }
.sup-compose-row .sup-btn { min-height: 44px; }
.sup-icon-btn {
    flex: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--accent-odds);
    cursor: pointer;
}
.sup-icon-btn svg { width: 18px; height: 18px; }
.sup-icon-btn:hover { background: var(--bg-hover); }

/* A1: a new request. */
.sup-new-body { display: flex; flex-direction: column; gap: 20px; padding: 16px; }
.sup-sec { display: flex; flex-direction: column; gap: 8px; }
.sup-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-hint { font-size: 12px; color: var(--text-muted); }
.sup-hint.is-need { color: var(--accent-odds); }
.sup-select { min-height: 44px; cursor: pointer; }
.sup-topic-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--accent-odds); white-space: nowrap; }
.sup-add-tk {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--bg-lightg);
    border-radius: var(--radius-md);
    background: none;
    color: var(--accent-green);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.sup-add-tk svg { width: 16px; height: 16px; }
.sup-new-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--border-subtle); }

/* A picked ticket (new request, reply). */
.sup-chosen { display: flex; flex-direction: column; gap: 8px; }
.sup-chosen:empty { display: none; }
.sup-chip-tk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}
.sup-chip-ico {
    flex: none;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--accent-odds);
}
.sup-chip-ico svg { width: 18px; height: 18px; }
.sup-chip-body, .sup-pk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-muted); }
.sup-chip-top, .sup-pk-top { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-primary); }
.sup-pk-top { justify-content: space-between; }
.sup-pk-money { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--text-secondary); }

/* Wide: the list and the open request side by side, the back links gone. */
@media (min-width: 901px) {
    .sup-page {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
        padding: 16px 0 24px;
    }
    .sup-page[data-view] .sup-side { display: flex; }
    .sup-page[data-view] .sup-main { display: block; }
    .sup-back { display: none; }
}

/* ---- sheets: report, ticket picker, the operator's pop-up ------------------------------- */
.sup-dlg {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    overscroll-behavior: contain;
}
.sup-dlg::backdrop { background: var(--scrim); }
.sup-sheet {
    box-sizing: border-box;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--bg-secondary);
}
.sup-grab { flex: none; align-self: center; width: 40px; height: 4px; margin: 8px 0 2px; border-radius: var(--radius-sm); background: var(--bg-lightg); }
.sup-dlg-head { flex: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 0 16px; }
.sup-dlg-title { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.sup-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 4px; }
.sup-dlg-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px 16px; }
.sup-dlg-foot-col { flex-direction: column; align-items: stretch; }

/* C1 / C2: report. */
.sup-rp-sum { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-primary); font-size: 13px; color: var(--text-secondary); }
.sup-rp-sum b { font-size: 14px; color: var(--text-primary); overflow-wrap: anywhere; }
.sup-rp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-reasons { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.sup-reasons legend { margin-bottom: 8px; padding: 0; }
.sup-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
}
.sup-reason:has(input:checked) { border-color: var(--accent-green); background: color-mix(in srgb, var(--accent-green) 8%, var(--bg-primary)); }
.sup-reason input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-green); }
.sup-reason > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sup-reason > span > span { font-size: 12px; color: var(--text-muted); }
.sup-reason > span > span:empty { display: none; }

/* A2: the ticket picker, tall on a phone. */
.sup-picker .sup-sheet { height: 90dvh; }
.sup-pk-tools { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 10px; }
/* My Bets' period control (Support._periodHtml), held at its height in the sheet: b365's pills
   (select + calendar) in the sheet's 16px gutter, the classic bar edge to edge as on My Bets. */
.sup-pk-period { flex: none; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border-subtle); }
html.b365 .sup-pk-period { padding: 0 16px 10px; }
html.b365 .sup-pk-period .sup-per-pills { align-self: flex-start; }
.sup-pk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; }
.sup-pk-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
}
.sup-pk-row.is-on { border-color: var(--accent-green); }
.sup-pk-row:has(input:disabled) { opacity: 0.5; cursor: default; }
.sup-pk-row input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-green); }
.sup-pk-count { flex: 1; font-size: 13px; color: var(--text-secondary); }
.sup-picker .sup-dlg-foot { border-top: 1px solid var(--border-subtle); }

/* The operator's new message. */
.sup-pop-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; }
.sup-pop-ico {
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg25);
    background: color-mix(in srgb, var(--accent-green) 14%, transparent);
    color: var(--accent-green);
}
.sup-pop-ico svg { width: 20px; height: 20px; }
.sup-pop-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-pop-topic { font-size: 12px; color: var(--text-muted); }
.sup-pop-body {
    max-height: 40dvh;
    overflow-y: auto;
    margin: 8px 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.sup-pop-more { margin: 8px 16px 0; font-size: 12px; color: var(--text-muted); }
.sup-pop .sup-dlg-foot .sup-btn { flex: 1; }

@media (min-width: 600px) {
    .sup-dlg { width: min(460px, calc(100vw - 32px)); margin: auto; }
    .sup-sheet {
        max-height: min(86dvh, 760px);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-drawer);
    }
    .sup-grab { display: none; }
    .sup-dlg-head { padding-top: 8px; }
    .sup-picker { width: min(520px, calc(100vw - 32px)); }
    .sup-picker .sup-sheet { height: min(80dvh, 720px); }
}

/* "Sent", in the staff alerts' toast stack (style.css .staff-toast), in green. */
.staff-toast.sup-toast { border-left-color: var(--accent-green); }
.sup-toast .staff-toast-icon { color: var(--accent-green); }
.sup-toast .staff-toast-icon svg { width: 18px; height: 18px; }
