/* DiceBack Admin. MudBlazor supplies the components and theme variables (--mud-palette-*); this file
   adds the page chrome, the dashboard pieces and the static sign-in pages (which run without MudBlazor's theme). */

h1:focus { outline: none; }

/* ------------------------------------------------------------------ shell */

.admin-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.admin-brand {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.admin-drawer {
    border-right: 1px solid var(--mud-palette-lines-default);
}

.admin-content {
    padding-top: 24px;
    padding-bottom: 48px;
}

.admin-nav-section {
    display: block;
    padding: 16px 16px 4px;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.08em;
}

.admin-user-activator {
    text-transform: none !important;
    gap: 8px;
    padding-left: 6px !important;
    padding-right: 6px !important;
}
/* The button lays its content out inside its label: the room between the avatar and the name goes there. */
.admin-user-activator .mud-button-label { gap: 8px; }

.admin-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    max-width: 200px;
}

.admin-user-email {
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.admin-user-role {
    font-size: 0.6875rem;
    opacity: 0.7;
}

.admin-logout-form { margin: 0; }

.admin-maintenance {
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-right: 4px;
    border-radius: 999px;
    border: 1px solid var(--mud-palette-lines-default);
    height: 34px;
}

.admin-maintenance .mud-typography { font-size: 0.8125rem; white-space: nowrap; }

.admin-maintenance-on {
    border-color: var(--mud-palette-error);
    background: rgba(214, 69, 69, 0.12);
}

@media (max-width: 600px) {
    .admin-user-text, .admin-brand { display: none; }
    .admin-maintenance .mud-typography { display: none; }
    .admin-content { padding-top: 16px; }
}

/* ------------------------------------------------------------------ page header */

.admin-page-header { margin-bottom: 20px; }

.admin-breadcrumbs { margin-bottom: 4px; }
.admin-breadcrumbs li { font-size: 0.8125rem; }

.admin-page-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}

.admin-page-title { min-width: 0; }
.admin-page-title h1 { overflow-wrap: anywhere; }

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ------------------------------------------------------------------ panels, KPIs */

.admin-panel {
    padding: 16px 20px;
    border-radius: var(--mud-default-borderradius);
    height: 100%;
    min-width: 0;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-kpi {
    padding: 16px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: var(--mud-default-borderradius);
}

.admin-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-kpi-value {
    font-variant-numeric: tabular-nums;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.admin-kpi-selected { border-color: var(--mud-palette-primary) !important; }

/* A KPI card that opens the page behind its number. */
.admin-kpi-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: var(--mud-default-borderradius); }
.admin-kpi-link:hover .admin-kpi { border-color: var(--mud-palette-primary); }
.admin-kpi-link:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.admin-kpi-icons { display: inline-flex; align-items: center; gap: 6px; }
/* The "opens a page" arrow is drawn, not written: it stays out of the card's text (screen readers, copy). */
.admin-kpi-go::before {
    content: "→";
    color: var(--mud-palette-primary);
    font-weight: 700;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    display: inline-block;
}
.admin-kpi-link:hover .admin-kpi-go::before, .admin-kpi-link:focus-visible .admin-kpi-go::before { opacity: 1; transform: none; }

/* The player search in the top bar. */
.admin-appbar-search { width: 260px; margin-right: 12px; }
.admin-appbar-search .mud-input-control { margin-top: 0 !important; }
.admin-appbar-search .mud-input.mud-input-outlined { background: var(--mud-palette-background); }
@media (max-width: 960px) { .admin-appbar-search { display: none; } }

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 32px 16px;
    color: var(--mud-palette-text-primary);
}

.admin-empty-page { min-height: 50vh; }

/* ------------------------------------------------------------------ tables & text helpers */

.admin-table .mud-table-cell { vertical-align: middle; }
.admin-table th { white-space: nowrap; }

.admin-clickable { cursor: pointer; }

.admin-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

span.admin-sub { display: inline; }

.admin-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.8125rem;
}

.admin-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
    display: block;
}

.admin-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-nowrap { white-space: nowrap; }
.admin-positive { color: var(--mud-palette-success); }
.admin-negative { color: var(--mud-palette-error); }
.admin-grow { flex: 1 1 280px; }
.text-right { text-align: right !important; }

.admin-filter { min-width: 160px; max-width: 220px; }
.admin-filter-wide { min-width: 220px; max-width: 320px; flex: 1 1 220px; }
.admin-search { max-width: 520px; }

.admin-list { margin: 4px 0 0 18px; }

.admin-facts {
    display: grid;
    grid-template-columns: minmax(110px, max-content) 1fr;
    gap: 6px 16px;
    margin: 0;
}

.admin-facts dt { color: var(--mud-palette-text-secondary); font-size: 0.875rem; }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-facts-wide { grid-template-columns: minmax(140px, max-content) 1fr; }

.admin-code {
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    border-radius: 8px;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre;
}

.admin-copy { display: inline-flex; align-items: center; gap: 2px; }

.admin-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--mud-palette-error);
    vertical-align: middle;
}

.admin-dot-on { background: var(--mud-palette-success); }

.admin-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.admin-row-disabled td { opacity: 0.55; }

.admin-timeline { padding-top: 0 !important; }

/* ------------------------------------------------------------------ live match & replay */

.admin-player { border-width: 2px !important; }
.admin-player-active { border-color: var(--mud-palette-primary) !important; box-shadow: 0 0 0 3px rgba(91, 69, 214, 0.12); }

.admin-slot {
    display: inline-block;
    min-width: 28px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-right: 6px;
}

.admin-slot-1 { background: #F2744B; }
.admin-slot-2 { background: #2D7FF9; }

.admin-board {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--mud-palette-background-gray);
    overflow-wrap: anywhere;
}

.admin-replay { max-height: 560px; overflow: auto; }

.admin-die {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--mud-palette-lines-inputs);
    font-weight: 700;
    margin-right: 6px;
    background: var(--mud-palette-surface);
}

/* A move in the roll log (a Box Duel line): words where a roll shows its die. */
.admin-move { font-weight: 600; margin-right: 6px; white-space: nowrap; }

/* The die a Double Dice roll did not count: smaller, struck out, beside the one that did. */
.admin-die-other {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px dashed var(--mud-palette-lines-inputs);
    color: var(--mud-palette-text-secondary);
    text-decoration: line-through;
    font-size: 0.8125rem;
    margin-right: 6px;
}

/* The badge on a roll made with a booster (and on an Undo). */
.admin-booster { margin: 0 6px 0 0 !important; }

.admin-row-auto td { background: rgba(224, 154, 26, 0.12); }
.admin-row-final td { background: rgba(46, 158, 91, 0.12); font-weight: 600; }

/* ------------------------------------------------------------------ store */

.admin-cosmetic { width: 40px; height: 40px; display: inline-block; }
.admin-cosmetic svg { width: 100%; height: 100%; display: block; }
.admin-cosmetic-lg { width: 110px; height: 110px; margin: 8px auto; display: block; }

.admin-preview {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
}

/* A heading inside a long form ("What it is", "Price" ...): the groups read as a list down the left edge. */
.admin-form-heading {
    font-weight: 700;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.admin-form-heading:first-child { margin-top: 0; }

/* Offers list. */
.admin-store-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    vertical-align: middle;
}
.admin-store-thumb img { width: 38px; height: 38px; object-fit: contain; display: block; }
.admin-store-thumb img.admin-store-thumb-picture { width: 100%; height: 100%; object-fit: cover; }
.admin-store-thumb img.admin-store-thumb-mark { width: 26px; height: 26px; }
/* A lot to say about an offer in nine columns: the cells are tight, the long ones wrap, and a row's buttons
   stay in reach when a narrow window makes the table scroll sideways. */
.admin-store-offers.mud-table-dense .mud-table-row .mud-table-cell { padding-left: 8px; padding-right: 8px; }
.admin-store-offer-cell { min-width: 150px; }
.admin-store-offer-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.admin-store-offer-kind .mud-chip { margin: 0; }
/* A product id is never cut: it wraps, so it can be read and compared with Play Console letter for letter. */
.admin-store-product { max-width: 190px; overflow-wrap: anywhere; }
.admin-store-gives { min-width: 150px; max-width: 260px; }
@media (min-width: 960px) {
    .admin-table .admin-store-actions { position: sticky; right: 0; background: var(--mud-palette-surface); }
    /* A dimmed row's buttons are not dimmed: what is behind them must not show through, and they still work. */
    .admin-table tr.admin-row-disabled td.admin-store-actions { opacity: 1; }
}

/* Why players do not see an offer, what a sale does right now: one quiet line under its row, tied to it by
   having no line between them. */
.admin-table tr.admin-store-note-row td { padding-top: 0; padding-bottom: 10px; border-top: 0; }
.admin-table tr:has(+ tr.admin-store-note-row) td { border-bottom-color: transparent; }
.admin-store-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.admin-store-note + .admin-store-note { margin-top: 6px; }
.admin-store-note .mud-icon-root { flex: none; margin-top: 1px; }
.admin-store-note-warning { background: rgba(224, 154, 26, 0.12); }
.admin-store-note-warning .mud-icon-root { color: var(--mud-palette-warning); }
.admin-store-note-info { background: rgba(45, 127, 249, 0.1); }
.admin-store-note-info .mud-icon-root { color: var(--mud-palette-info); }
.admin-store-note-ok { background: rgba(46, 158, 91, 0.12); }
.admin-store-note-ok .mud-icon-root { color: var(--mud-palette-success); }

/* Offer editor: the form scrolls on the left, the preview stays in view on the right. */
.admin-store-preview-column { position: sticky; top: 0; }
.admin-store-local { padding-top: 0 !important; }
.admin-store-skin-option { display: inline-flex; align-items: center; gap: 10px; }
.admin-store-skin-option .admin-cosmetic { width: 28px; height: 28px; flex: none; }
.admin-store-skin-option .admin-sub { margin-left: 8px; }
.admin-store-theme-option { display: inline-flex; align-items: center; gap: 8px; }
.admin-store-picked { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.admin-store-picture-field { display: flex; align-items: center; gap: 12px; }
.admin-store-picture-thumb {
    width: 72px;
    height: 72px;
    flex: none;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
}
/* What stands in the way of a save, beside the Save button. */
.admin-store-problems { flex: 1 1 auto; min-width: 0; margin-right: 8px; }
.admin-store-problems .mud-alert { max-height: 132px; overflow-y: auto; }
.admin-store-problems .admin-list { margin: 0; padding-left: 18px; }

/* Picture library. */
/* The upload button keeps its own width when a refusal appears under it: the sentence wraps, the button does not stretch. */
.admin-store-upload { display: flex; flex-direction: column; align-items: flex-end; flex: 0 1 auto; max-width: min(100%, 420px); }
.admin-store-upload .mud-file-upload { flex: none; width: auto; margin: 0; }
.admin-store-upload-problem { text-align: left; }
.admin-store-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.admin-store-picture-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.admin-store-picture-view {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    /* A light and a dark square: a picture with see-through parts shows what is behind it. */
    background: repeating-conic-gradient(rgba(127, 127, 140, 0.16) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}
.admin-store-picture-view img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.admin-store-picture-facts { padding: 10px 12px 12px; min-width: 0; }
.admin-store-picture-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.admin-store-picture-used { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 6px; }
.admin-store-picture-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    border-radius: 50%;
    background: var(--mud-palette-surface);
}
.admin-store-pick {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 0 8px;
    border: 2px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: inherit;
    font: inherit;
    cursor: pointer;
    overflow: hidden;
}
.admin-store-pick:hover, .admin-store-pick:focus-visible { border-color: var(--mud-palette-primary); outline: none; }
.admin-store-pick-on { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 2px var(--mud-palette-primary); }
.admin-store-pick .admin-store-picture-name, .admin-store-pick .admin-sub { padding: 0 10px; }
.admin-store-pick .admin-store-picture-name { margin-top: 8px; }

/* Overview. The line that says when the numbers are from, the row of headline numbers, the list of things to
   look at. Every block keeps its size while it loads and while it refreshes, so the page never jumps. */
.admin-store-updated { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 32px; margin-bottom: 16px; }
.admin-store-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-store-kpis .admin-kpi { min-height: 124px; }
.admin-store-attention { display: flex; flex-direction: column; gap: 8px; }
.admin-store-attention-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    line-height: 1.45;
}
.admin-store-attention-item > .mud-icon-root { flex: none; margin-top: 1px; }
.admin-store-attention-item > .admin-grow { flex-basis: 220px; min-width: 0; }
.admin-store-attention-item > .mud-button-root { flex: none; margin: -2px 0; }
.admin-store-attention-text { color: var(--mud-palette-text-secondary); overflow-wrap: anywhere; }
.admin-store-attention-problem { background: rgba(214, 69, 69, 0.1); border-left-color: var(--mud-palette-error); }
.admin-store-attention-problem > .mud-icon-root { color: var(--mud-palette-error); }
.admin-store-attention-warning { background: rgba(224, 154, 26, 0.12); border-left-color: var(--mud-palette-warning); }
.admin-store-attention-warning > .mud-icon-root { color: var(--mud-palette-warning); }
.admin-store-attention-info { background: rgba(45, 127, 249, 0.08); border-left-color: var(--mud-palette-info); }
.admin-store-attention-info > .mud-icon-root { color: var(--mud-palette-info); }

/* The four things a game server reports about money purchases. */
.admin-store-switches { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-store-switches li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.45; }
.admin-store-switches .mud-icon-root { flex: none; margin-top: 1px; }
.admin-store-switches .admin-sub { margin-left: 8px; }
.admin-store-switch-on .mud-icon-root { color: var(--mud-palette-success); }
.admin-store-switch-off .mud-icon-root { color: var(--mud-palette-error); }
.admin-store-switch-unknown .mud-icon-root { color: var(--mud-palette-text-secondary); }

/* Shown, tapped, bought: numbers in columns that line up. */
.admin-store-funnel td, .admin-store-funnel th { font-variant-numeric: tabular-nums; }
.admin-store-funnel-toggle { width: 44px; padding-right: 0 !important; }
.admin-store-funnel-offer { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.admin-store-funnel tr.admin-store-funnel-place td { background: var(--mud-palette-background-gray); font-size: 0.8125rem; }
.admin-store-funnel tr.admin-row-disabled td { opacity: 0.7; }

/* Sales. */
.admin-store-percent { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The strip a sale puts above its section, in its colour: enough to see the words and the percent together. */
.admin-store-sale-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--strip, #2F78E6), color-mix(in srgb, var(--strip, #2F78E6) 72%, #000));
}
.admin-store-sale-strip-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.admin-store-sale-strip-words span { font-size: 0.8125rem; opacity: 0.9; }
.admin-store-sale-strip-percent {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1D1B2B;
    font-weight: 700;
    white-space: nowrap;
}
.admin-store-sale-list { list-style: none; margin: 0; padding: 0; }
.admin-store-sale-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--mud-palette-table-lines);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}
.admin-store-sale-list li:last-child { border-bottom: 0; }
.admin-store-sale-list .admin-cosmetic { width: 28px; height: 28px; flex: none; }
.admin-store-sale-list .admin-store-thumb { width: 32px; height: 32px; flex: none; }
.admin-store-sale-list .admin-store-thumb img { width: 26px; height: 26px; }
.admin-store-sale-list .admin-grow { flex-basis: 120px; min-width: 0; }
/* What a coin pack gives today, on a line of its own under its name. */
.admin-store-sale-list .admin-grow > .admin-sub { display: block; }

/* Overview: the box the daily chart fills. */
.admin-store-chart { height: 200px; }

/* Purchases: the two filter buttons stay side by side. */
.admin-store-filter-buttons { display: flex; align-items: center; gap: 8px; flex: none; }

/* Skins. */
.admin-store-skin-price { min-width: 110px; }
.admin-cosmetic-sale { margin-top: 6px; }

/* Layout: the sections as blocks in the order the Store shows them, and beside them the Store itself in outline. */
.admin-store-sections { display: flex; flex-direction: column; gap: 10px; }
.admin-store-section {
    padding: 10px 12px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}
.admin-store-section-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.admin-store-section-top > .admin-grow { flex-basis: 200px; min-width: 0; }
.admin-store-section-move { display: flex; flex: none; }
.admin-store-section-fields { margin-top: 2px; }
.admin-store-section-hidden { background: var(--mud-palette-background-gray); }
.admin-store-section-hidden .admin-store-section-top > .admin-grow,
.admin-store-section-hidden .admin-store-section-fields { opacity: 0.6; }
.admin-store-outline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-width: 360px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 20px;
    background: var(--mud-palette-background-gray);
}
.admin-store-outline-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--mud-palette-surface);
    font-size: 0.875rem;
    line-height: 1.4;
}
.admin-store-outline-section .mud-icon-root { flex: none; margin-top: 1px; color: var(--mud-palette-primary); }
.admin-store-outline-section > div { min-width: 0; overflow-wrap: anywhere; }
.admin-store-outline-holds { font-size: 0.75rem; color: var(--mud-palette-text-secondary); }
.admin-store-outline-featured { padding-top: 14px; padding-bottom: 14px; }
.admin-store-outline-empty { padding: 16px 10px; text-align: center; font-size: 0.875rem; color: var(--mud-palette-text-secondary); }

/* Motion. Small and short, where it says what happened: a tab's content arrives, a row changes state, a note
   appears under a row, a section is hidden. Nothing moves by itself, and nothing moves for a reader who asked
   their system for less motion. */
@keyframes admin-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
@keyframes admin-fade { from { opacity: 0; } to { opacity: 1; } }
.admin-store-tabs > .mud-tabs-panels > .mud-tab-panel > * { animation: admin-fade-in 0.18s ease-out; }
.admin-store-tabs tr.admin-store-note-row .admin-store-note { animation: admin-fade 0.2s ease-out; }
.admin-store-tabs .admin-table tbody tr td { transition: opacity 0.2s ease, background-color 0.2s ease; }
.admin-store-section, .admin-store-section-top > .admin-grow, .admin-store-section-fields { transition: opacity 0.2s ease, background-color 0.2s ease; }
.admin-store-pick, .admin-store-picture-card { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
@media (prefers-reduced-motion: reduce) {
    .admin-store-tabs > .mud-tabs-panels > .mud-tab-panel > *, .admin-store-tabs tr.admin-store-note-row .admin-store-note { animation: none; }
    .admin-store-tabs .admin-table tbody tr td, .admin-store-section, .admin-store-section-top > .admin-grow,
    .admin-store-section-fields, .admin-store-pick, .admin-store-picture-card { transition: none; }
}

/* A narrow window: the tab strip scrolls, the lists stack (MudTable does that itself), blocks lose their side room. */
@media (max-width: 600px) {
    .admin-store-gives { max-width: none; text-align: right; }
    .admin-store-kpis { gap: 12px; margin-bottom: 16px; }
    .admin-store-kpis .admin-kpi { padding: 12px 14px; min-height: 112px; }
    .admin-store-outline { max-width: none; }
    .admin-store-funnel-offer { min-width: 160px; }
}

/* Store, after the owner's review. */

/* Every row action carries its word; two by two, so four of them take the room of two. */
.admin-row-actions { display: grid; grid-template-columns: auto auto; gap: 2px 2px; justify-content: end; min-width: max-content; }
.admin-row-actions .mud-button-root { justify-content: flex-start; padding: 2px 8px; min-width: 0; font-size: 0.8125rem; white-space: nowrap; }
.admin-row-actions .mud-button-icon-start { margin-right: 4px; margin-left: -2px; }
.admin-row-actions .mud-button-icon-start .mud-icon-root { font-size: 1.05rem; }
.admin-row-actions .mud-tooltip-root { display: block; }
.admin-row-actions .mud-tooltip-root .mud-button-root { width: 100%; }
.admin-store-status { font-weight: 600; }
.admin-store-code { margin-top: 2px; overflow-wrap: anywhere; }
.admin-store-search { flex: 1 1 240px; max-width: 340px; }
.admin-store-search.mud-input-control { margin: 0; }
.admin-store-money-banner { margin-bottom: 14px; }
.admin-store-note-error { background: rgba(214, 69, 69, 0.1); }
.admin-store-note-error .mud-icon-root { color: var(--mud-palette-error); }
.admin-store-cell-thumb { width: 56px; }
.admin-store-contents { font-size: 0.8125rem; line-height: 1.4; }
.admin-store-sale-list .admin-nowrap > .admin-sub { display: block; margin: 0; text-align: right; }
.admin-store-cell-numbers { min-width: 104px; }
.admin-store-switches li > div { min-width: 0; }
.admin-store-cell-when { min-width: 118px; }
.admin-filter-wider { min-width: 280px; max-width: 380px; flex: 1 1 280px; }

/* The editors: their own title bar (closing asks when something was typed), fields that say what is wrong under them. */
.admin-dialog-title { display: flex; align-items: flex-start; gap: 12px; }
.admin-dialog-title .mud-icon-button { margin: -6px -8px 0 0; }
.admin-store-type-option { display: flex; flex-direction: column; line-height: 1.3; padding: 2px 0; white-space: normal; }
.admin-store-type-option .admin-sub { margin: 0; }
/* In the closed field only the name is shown: the line under it is for the open list. */
.mud-input-slot .admin-store-type-option .admin-sub { display: none; }
.mud-input-slot .admin-store-type-option b { font-weight: inherit; }
.admin-store-art-option { display: inline-flex; align-items: center; gap: 10px; }
.admin-store-art-option img { width: 32px; height: 32px; object-fit: contain; }
.admin-store-suggest.mud-button-root { margin-top: 2px; text-align: left; justify-content: flex-start; height: auto; white-space: normal; }
.admin-store-subtitle-mismatch { margin-top: 6px; }
.admin-store-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 0 !important; }
.admin-store-quick .mud-button-root { padding: 1px 10px; }
.admin-store-preview-note { margin-top: 8px; }
.admin-store-short-switch { margin-top: 4px; }
.admin-store-short-switch .mud-typography { font-size: 0.8125rem; }
.admin-store-value-line { margin-top: 14px; }
.admin-store-worth-sum { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-store-money-steps { margin: 6px 0 0; padding-left: 20px; }
.admin-store-picked .admin-cosmetic, .mud-chip .admin-cosmetic { width: 20px; height: 20px; }
.admin-cosmetic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.admin-store-review-lines { margin: 12px 0 0; padding-left: 20px; }
.admin-store-review-lines li + li { margin-top: 4px; }
/* On a phone the preview is far below the form: a button beside Save brings it into view. */
.admin-store-preview-jump.mud-button-root { display: none; }
@media (max-width: 959px) {
    .admin-store-preview-jump.mud-button-root { display: inline-flex; }
    .admin-store-preview-column { position: static; }
}

/* A dialog stands out from the dimmed page behind it in both themes. */
.mud-dialog { border: 1px solid var(--mud-palette-lines-inputs); }

/* The emergency stop: quiet while everything runs, red while deals and gifts are stopped. */
.admin-store-stop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    font-size: 0.875rem;
    line-height: 1.45;
}
.admin-store-stop > .admin-grow { flex-basis: 240px; min-width: 0; }
.admin-store-stop > .mud-icon-root { flex: none; color: var(--mud-palette-text-secondary); }
.admin-store-stop-on { border-color: var(--mud-palette-error); background: rgba(214, 69, 69, 0.1); }
.admin-store-stop-on > .mud-icon-root { color: var(--mud-palette-error); }

/* The picture picker marks what the offer's frame keeps of each picture: the rest is shaded. */
.admin-store-crop { position: relative; display: block; max-width: 100%; overflow: hidden; }
.admin-store-crop img { width: 100%; height: 100%; max-width: none; max-height: none; display: block; object-fit: fill; }
.admin-store-crop-keep {
    position: absolute;
    box-shadow: 0 0 0 999px rgba(15, 14, 24, 0.55);
    outline: 2px solid #fff;
    outline-offset: -2px;
    border-radius: 6px;
    pointer-events: none;
}
.admin-store-picture-actions .mud-icon-button:not(.mud-disabled) { color: var(--mud-palette-error); }
.admin-store-picture-actions { box-shadow: 0 0 0 1px var(--mud-palette-lines-default); }

/* Layout: the outline looks a little like the game's Store, with its tab row on top. */
.admin-store-outline-tabs { display: flex; gap: 4px; }
.admin-store-outline-tabs span {
    flex: 1;
    padding: 4px 0;
    border-radius: 8px;
    background: #2F6FDB;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}
.admin-store-outline-tabs span.admin-store-outline-tab-on { background: #F2A81D; }
.admin-store-section-move { gap: 4px; }
.admin-store-section-tabs { margin-top: 2px; }

/* The Store's eight tabs as one list, for a phone: the strip cannot show them all there. */
.admin-store-tab-select { display: none; }
@media (max-width: 600px) {
    .admin-store-tab-select {
        display: block;
        width: 100%;
        height: 44px;
        margin-bottom: 12px;
        padding: 0 12px;
        border: 1px solid var(--mud-palette-lines-inputs);
        border-radius: var(--mud-default-borderradius);
        background: var(--mud-palette-surface);
        color: var(--mud-palette-text-primary);
        font: inherit;
        font-weight: 600;
    }
    .admin-store-tabs > .mud-tabs-tabbar { display: none; }
    .admin-hide-phone { display: none !important; }
    .admin-maintenance .mud-typography { display: inline; font-size: 0.75rem; }

    /* An offer as a short card: its picture beside its name and status, one line of numbers, its actions. What it
       gives, its dates and its places are a tap away in the editor. */
    .admin-store-offers .mud-table-body .mud-table-row:not(.admin-store-note-row) { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding: 8px 0; }
    .admin-store-offers .mud-table-body .mud-table-row > td.mud-table-cell { border: 0; padding: 2px 8px; }
    .admin-store-offers .mud-table-body .mud-table-row > td.mud-table-cell::before { display: none; }
    .admin-store-offers td.admin-store-cell-thumb { grid-row: 1 / span 3; width: auto; justify-content: flex-start; }
    .admin-store-offers td.admin-store-offer-cell, .admin-store-offers td.admin-store-cell-price,
    .admin-store-offers td[data-label="Status"] { grid-column: 2; justify-content: flex-start; text-align: left; }
    .admin-store-offers td.admin-store-gives, .admin-store-offers td.admin-store-cell-when, .admin-store-offers td.admin-store-cell-places { display: none; }
    .admin-store-offers td.admin-store-cell-numbers, .admin-store-offers td.admin-store-actions { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
    .admin-store-offers td.admin-store-cell-numbers > div { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
    .admin-store-offers .admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
    .admin-store-offers .mud-table-body .mud-table-row.admin-store-note-row { display: block; }
}

/* Buying with money. The line the Store page keeps above its tabs while a mode is on; on the overview, the one
   sentence that says what is true now, the four modes as a list of choices (the chosen one framed, a choice
   that is not open greyed with its reason under it), the game server's readiness, and the tester list. */
.admin-store-buying-notice { align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; margin-bottom: 16px; font-size: 0.875rem; }
.admin-store-buying-notice > .admin-grow { flex-basis: 240px; min-width: 0; }
/* The way to the card and the switch-off, side by side; under the sentence where the window is narrow. */
.admin-store-buying-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: none; margin: -2px 0; }
.admin-store-buying-notice-actions > .mud-button-root { flex: none; }
.admin-store-buying-now { margin-bottom: 18px; padding: 8px 12px; font-size: 0.875rem; }
.admin-store-buying-heading { font-weight: 700; margin-bottom: 8px; }
.admin-store-modes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-store-mode {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
}
.admin-store-mode > .mud-icon-root { flex: none; margin-top: 1px; color: var(--mud-palette-text-secondary); }
.admin-store-mode > .admin-grow { flex-basis: 220px; min-width: 0; }
/* MudBlazor wraps a chip in a box that takes no room of its own (display: contents): the chip itself is the row's child. */
.admin-store-mode > .mud-button-root, .admin-store-mode > .mud-chip-container > .mud-chip { flex: none; margin: 0; }
.admin-store-mode-on { border-color: var(--mud-palette-primary); background: var(--mud-palette-primary-hover); }
.admin-store-mode-on > .mud-icon-root { color: var(--mud-palette-primary); }
.admin-store-mode-why {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    overflow-wrap: anywhere;
}
.admin-store-mode-why .mud-icon-root { flex: none; font-size: 1rem; margin-top: 1px; }
.admin-store-ready { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.admin-store-ready .mud-chip { margin: 0; }
.admin-store-buying-step { margin-top: 4px; }
.admin-store-testers-head { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--mud-palette-lines-default); align-items: flex-start; }
.admin-store-testers-count { margin-left: 6px; font-weight: 400; }
.admin-store-tester-cell { min-width: 150px; }
.admin-store-tester-note, .admin-store-tester-by { overflow-wrap: anywhere; }
.admin-row-actions.admin-store-tester-actions { grid-template-columns: auto; }
.admin-store-buying-lead { margin-bottom: 4px; }
/* The things to tick before real money: each box beside the first line of its sentence, with air between them. */
.admin-store-live-checks { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 12px; }
.admin-store-live-check label.mud-checkbox { align-items: flex-start; }
.admin-store-live-check label.mud-checkbox > .mud-typography { font-size: 0.875rem; line-height: 1.4; padding-top: 6px; }
/* What the service refused, above a small dialog's buttons. */
.admin-store-buying-refusal { margin: 0; }
.admin-store-buying-refusal .mud-alert { margin-top: 16px; }
/* Why the real-money button is still closed (other capitals, a line not ticked): right under the field it is about. */
.admin-store-live-hint { min-height: 0; margin-top: 4px; }
.admin-store-tester-now { font-size: 0.8125rem; }
.admin-store-tester-hint { margin-top: 4px; }
/* The counter under the note stays on one line beside its helper text. */
.admin-store-tester-note-field .mud-input-helper-text .ms-auto { white-space: nowrap; padding-left: 8px; }
.admin-store-tester-picked { margin-top: 10px; }
.admin-store-tester-picked > div { min-width: 0; overflow-wrap: anywhere; }
.admin-store-test-chip { font-weight: 600; }
@media (max-width: 600px) {
    .admin-store-mode > .mud-button-root, .admin-store-mode > .mud-chip-container > .mud-chip { margin-left: 32px; }
    .admin-store-testers .admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
    /* Stacked, a cell's value stands on the right: so do the two lines of a name or a date. */
    .admin-store-testers td.mud-table-cell > div { text-align: right; }
}

/* ------------------------------------------------------------------ config editor & diff */

.admin-editor { border-color: var(--mud-palette-primary) !important; }

.admin-config-form .mud-expand-panel-header { font-weight: 600; }

.admin-rewards input { text-align: right; }
.admin-rewards td { min-width: 90px; }

/* Bot strength and booster tables: the name column takes the room, the number columns stay narrow. */
.admin-bot-strength td:first-child,
.admin-booster-items td:first-child,
.admin-booster-games td:first-child { width: 40%; }

/* The estimate: one block of rows per game, numbers right-aligned, the per-game cells readable at a glance. */
.admin-estimate-table td { vertical-align: top; }
.admin-estimate-table tr.admin-estimate-first td { border-top: 2px solid var(--mud-palette-lines-default); }
.admin-estimate-table td[rowspan] { min-width: 140px; }
.admin-estimate-table td:first-child { min-width: 190px; }
.admin-estimate-table th { white-space: normal; }

.admin-booster-count { min-width: 120px; }

.admin-json-editor textarea,
.admin-mono-input textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
}

.admin-diff {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.admin-diff-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--mud-palette-background-gray);
    font-weight: 700;
}

.admin-diff-head span { padding: 6px 12px; }

.admin-diff-body { max-height: 560px; overflow: auto; }

.admin-diff-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
    line-height: 1.55;
}

.admin-diff-no {
    text-align: right;
    padding-right: 8px;
    color: var(--mud-palette-text-secondary);
    user-select: none;
}

.admin-diff-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 8px; }
.admin-diff-changed .admin-diff-left, .admin-diff-removed .admin-diff-left { background: rgba(214, 69, 69, 0.14); }
.admin-diff-changed .admin-diff-right, .admin-diff-added .admin-diff-right { background: rgba(46, 158, 91, 0.16); }

.admin-diff-fold {
    padding: 2px 12px;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-background-gray);
    font-style: italic;
}

/* ------------------------------------------------------------------ connection lost bar */

#blazor-error-ui {
    background: #fff4d6;
    color: #4a3b00;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

/* ================================================================== sign-in pages (static, no MudBlazor theme) */

.auth-shell {
    --auth-bg: #f5f5fa;
    --auth-surface: #ffffff;
    --auth-text: #1d1b2b;
    --auth-muted: #5f5c78;
    --auth-line: #e4e3ee;
    --auth-primary: #5b45d6;
    --auth-primary-text: #ffffff;
    --auth-danger: #d64545;
    --auth-ok: #2e9e5b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    .auth-shell {
        --auth-bg: #121118;
        --auth-surface: #1e1d28;
        --auth-text: #eceaf7;
        --auth-muted: #a9a6c2;
        --auth-line: #2e2c3c;
        --auth-primary: #8f7cff;
        --auth-primary-text: #120f24;
        --auth-danger: #ff6b6b;
        --auth-ok: #4cc47f;
    }
}

.auth-shell *, .auth-shell *::before, .auth-shell *::after { box-sizing: border-box; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 8px 0 24px;
}

.auth-main { width: 100%; display: flex; justify-content: center; }

.auth-footer { margin-top: 24px; color: var(--auth-muted); font-size: 0.8125rem; }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 8px 30px rgba(20, 16, 50, 0.08);
}

.auth-card-wide { max-width: 640px; }

.auth-title { font-size: 1.5rem; margin: 0 0 8px; font-weight: 700; }
.auth-subtitle { font-size: 1.05rem; margin: 24px 0 8px; font-weight: 700; }
.auth-text { margin: 0 0 12px; line-height: 1.5; }
.auth-muted { color: var(--auth-muted); }

.auth-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.auth-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.auth-label { font-size: 0.875rem; font-weight: 600; margin-top: 8px; }

.auth-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--auth-line);
    background: var(--auth-bg);
    color: var(--auth-text);
    font-size: 1rem;
}

.auth-input:focus { outline: 2px solid var(--auth-primary); outline-offset: 1px; border-color: transparent; }

/* Password field with an eye button inside its right edge (PasswordReveal + admin.js). */
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 48px; }
.auth-password input::-ms-reveal, .auth-password input::-ms-clear { display: none; }   /* Edge's own eye would double ours */
.auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}
.auth-eye:hover { color: var(--auth-primary); }
.auth-eye:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 1px; }
.auth-eye .auth-eye-hide, .auth-eye[aria-pressed="true"] .auth-eye-show { display: none; }
.auth-eye[aria-pressed="true"] .auth-eye-hide { display: block; }

.auth-code { letter-spacing: 0.3em; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.2rem; }

.auth-field-error, .auth-form .validation-message { color: var(--auth-danger); font-size: 0.8125rem; }

.auth-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.9375rem; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--auth-primary); cursor: pointer; }
.auth-check-hint { margin: 0 0 0 28px; color: var(--auth-muted); font-size: 0.8125rem; line-height: 1.4; }

.auth-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-primary);
    color: var(--auth-primary-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-button:hover { filter: brightness(1.08); }

.auth-button-secondary {
    background: transparent;
    color: var(--auth-text);
    border: 1px solid var(--auth-line);
}

.auth-button-danger { background: var(--auth-danger); color: #fff; }

.auth-link { color: var(--auth-primary); text-decoration: none; font-size: 0.9rem; }
.auth-text a { color: var(--auth-primary); }

.auth-link-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--auth-primary);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.auth-inline-form { display: inline; margin-left: 8px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-muted);
    margin: 20px 0 4px;
    font-size: 0.8125rem;
}

.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--auth-line); }

.auth-status { border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; font-size: 0.9rem; }
.auth-status-error { background: rgba(214, 69, 69, 0.12); color: var(--auth-danger); }
.auth-status-ok { background: rgba(46, 158, 91, 0.12); color: var(--auth-ok); }

.auth-warning {
    border-left: 4px solid #e09a1a;
    background: rgba(224, 154, 26, 0.12);
    padding: 10px 12px;
    border-radius: 6px;
    margin: 8px 0 12px;
}

.auth-codes {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1rem;
}

.auth-steps { padding-left: 20px; line-height: 1.5; }
.auth-steps li { margin-bottom: 10px; }

.auth-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.auth-qr img { background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--auth-line); }

.auth-key {
    display: block;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1rem;
    word-break: break-all;
    margin: 4px 0 8px;
}

.auth-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 8px 0 0;
}

.auth-facts dt { color: var(--auth-muted); }
.auth-facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 480px) {
    .auth-card { padding: 20px 16px; }
    .auth-codes { grid-template-columns: 1fr; }
}
