/* =====================================================================
   Reusable components: glass panels, buttons, forms, tables, tabs,
   tiles, badges, progress bars, modal, toast and chart chrome.
   ===================================================================== */

/* ---------------------------------------------------------------- glass */
.glass {
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- panel
   A titled glass card. Its body is the only part that scrolls. */
.panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel::before {                    /* glossy top sheen */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.panel-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 10px 5px 12px;
}
.panel-head::after {                /* brand hairline under every panel title */
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(11, 139, 208, 0.35), rgba(18, 181, 166, 0.2) 40%, transparent);
}
.panel-head h3 {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ocean-900);
}
.panel-head h3 .ico {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 7px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(11, 128, 196, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.panel-head h3 .ico svg { width: 13px; height: 13px; }
.panel-head .sub { color: var(--text-muted); font-size: var(--font-size-xs); font-weight: 500; }
.panel-head .actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.panel-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 6px 12px 10px;
}
.panel-body.flush { padding: 0; }
.panel-body.chart { overflow: hidden; padding: 4px 8px 6px; }
.panel-foot {
    padding: 8px 14px;
    border-top: 1px solid var(--hairline);
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.35);
}

/* scrollbars: thin and invisible until the element scrolls (app.js adds .is-scrolling for a moment).
   The track keeps its width, so content never shifts when the thumb appears. */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.is-scrolling { scrollbar-color: rgba(10, 79, 128, 0.38) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; }
.is-scrolling::-webkit-scrollbar-thumb { background: rgba(10, 79, 128, 0.32); }
.scroll { overflow: auto; min-height: 0; }

/* ---------------------------------------------------------------- icons */
svg.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }

/* ---------------------------------------------------------------- buttons */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: var(--control-height);
    padding: 0 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hairline-strong);
    background: linear-gradient(180deg, #ffffff, #eef6fc);
    color: var(--ocean-800);
    font: inherit; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.06s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 1px 2px rgba(10, 46, 79, 0.08), inset 0 1px 0 #fff;
}
.btn:hover { filter: brightness(1.03); box-shadow: 0 2px 8px rgba(10, 46, 79, 0.12), inset 0 1px 0 #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn.primary {
    background: var(--grad-button);
    border-color: #0a74b3;
    color: #fff;
    box-shadow: 0 2px 8px rgba(11, 128, 196, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.primary::after, .btn.glossy::after {
    content: ""; position: absolute; inset: 1px 1px 50% 1px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}
.btn.glossy {
    background: var(--grad-aqua);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    height: 30px;
    border-radius: 999px;
    padding: 0 13px;
    box-shadow: 0 3px 12px rgba(18, 181, 166, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.danger { color: var(--negative); }
.btn.danger.solid { background: linear-gradient(180deg, #e85a5d, #c2363a); color: #fff; border-color: #a92c30; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-hover); }
.btn.sm { height: 24px; padding: 0 8px; font-size: var(--font-size-sm); border-radius: 7px; }
.btn.sm svg { width: 13px; height: 13px; }
.btn.icon { width: var(--control-height); padding: 0; }
.btn.icon.sm { width: 24px; }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- forms */
input, select, textarea {
    font: inherit;
    color: var(--text-primary);
    height: var(--control-height);
    padding: 0 9px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    min-width: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 60px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--ocean-400);
    box-shadow: 0 0 0 3px rgba(51, 174, 232, 0.22);
}
input[type="checkbox"] { height: auto; width: 16px; accent-color: var(--ocean-500); }
input[type="range"] { padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--ocean-500); }
input.num, .num input { text-align: right; font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.field small { color: var(--text-muted); font-size: var(--font-size-xs); }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check > span { text-transform: none; letter-spacing: 0; font-size: var(--font-size); }

.form-grid { display: grid; gap: 8px 10px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }
.form-error { color: var(--negative); min-height: 18px; margin: 8px 0 0; font-weight: 500; }
.hint { color: var(--text-muted); font-size: var(--font-size-xs); margin: 0; }

.filters { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.filters .field { min-width: 120px; }

/* ---------------------------------------------------------------- tabs & segmented */
.tabs {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
    background: var(--surface-sunken);
    border: 1px solid var(--hairline);
}
.tab {
    display: inline-flex; align-items: center; gap: 6px;
    height: 25px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.tab svg { width: 14px; height: 14px; }
.tab:hover { color: var(--ocean-700); }
.tab.active {
    background: linear-gradient(180deg, #fff, #f0f8fd);
    color: var(--ocean-700);
    box-shadow: 0 1px 4px rgba(10, 46, 79, 0.12);
}
.tabs.sm .tab { height: 22px; padding: 0 8px; font-size: var(--font-size-sm); }

/* ---------------------------------------------------------------- tables */
table.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-size);
}
table.grid th {
    position: sticky; top: 0; z-index: 1;
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 6px 9px;
    background: linear-gradient(180deg, #f6fbfe, #e9f4fb);
    border-bottom: 1px solid var(--hairline-strong);
    white-space: nowrap;
}
table.grid td {
    padding: 5px 9px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
}
table.grid tbody tr { transition: background 0.1s; }
table.grid tbody tr:hover { background: var(--surface-hover); }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid tbody tr.selected { background: var(--surface-selected); }
table.grid tr.group td {
    background: rgba(201, 236, 251, 0.35);
    font-weight: 650;
    color: var(--ocean-800);
}
table.grid tr.total td {
    font-weight: 700;
    border-top: 2px solid var(--hairline-strong);
    background: rgba(255, 255, 255, 0.6);
}
table.grid .r, table.grid th.r { text-align: right; }
table.grid .c { text-align: center; }
table.grid td.r, .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid td.muted { color: var(--text-muted); }
table.grid td .actions { display: flex; gap: 4px; justify-content: flex-end; }
table.grid.compact td { padding: 4px 8px; }
table.grid.compact th { padding: 5px 8px; }

.pos { color: var(--positive); }
.neg { color: var(--negative); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.strong { font-weight: 650; }
.small { font-size: var(--font-size-sm); }
.mono { font-variant-numeric: tabular-nums; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- badges & pills */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 650;
    background: var(--glacier-100);
    color: var(--ocean-700);
    border: 1px solid rgba(11, 139, 208, 0.18);
    white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge.aqua { background: var(--aqua-100); color: #0b6f66; border-color: rgba(18, 181, 166, 0.25); }
.badge.violet { background: #eeecfd; color: #4a3aa7; border-color: rgba(91, 79, 201, 0.25); }
.badge.gray { background: #eef2f6; color: var(--text-secondary); border-color: var(--hairline); }
.badge.good { background: #e3f6e3; color: #0a6b0a; border-color: rgba(12, 163, 12, 0.25); }
.badge.warning { background: #fff4d6; color: #8a5b00; border-color: rgba(250, 178, 25, 0.4); }
.badge.serious { background: #fde9df; color: #9a3f19; border-color: rgba(236, 131, 90, 0.4); }
.badge.critical { background: #fbe3e3; color: #a32626; border-color: rgba(208, 59, 59, 0.3); }

/* ---------------------------------------------------------------- KPI tiles */
.kpis { display: grid; gap: var(--gap); }
.kpi {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}
.kpi::before {
    content: ""; position: absolute; inset: 0 0 55% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.kpi-icon {
    position: relative;
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--grad-button);
    box-shadow: 0 4px 12px rgba(11, 128, 196, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-icon.aqua { background: var(--grad-aqua); box-shadow: 0 4px 12px rgba(18, 181, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.kpi-icon.deep { background: linear-gradient(180deg, #2b5f95, #163f6b); box-shadow: 0 4px 12px rgba(22, 63, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.kpi-icon.coral { background: linear-gradient(180deg, #f08a6a, #d9603c); box-shadow: 0 4px 12px rgba(217, 96, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.kpi-icon.violet { background: linear-gradient(180deg, #8a7ff0, #5b4fc9); box-shadow: 0 4px 12px rgba(91, 79, 201, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.kpi-icon.gold { background: linear-gradient(180deg, #f6c445, #d99a00); box-shadow: 0 4px 12px rgba(217, 154, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.kpi-text { position: relative; display: flex; flex-direction: column; min-width: 0; }
.kpi-label {
    font-size: var(--font-size-xs);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
.kpi-value {
    font-size: 16.5px;
    font-weight: 750;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kpi-sub { font-size: var(--font-size-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub .pos, .kpi-sub .neg { font-weight: 650; }

/* ---------------------------------------------------------------- progress */
.progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(10, 79, 128, 0.09);
    overflow: hidden;
}
.progress > span {
    display: block; height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ocean-400), var(--ocean-500));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.progress.good > span { background: linear-gradient(90deg, #3cc06b, var(--status-good)); }
.progress.warning > span { background: linear-gradient(90deg, #ffd060, var(--status-warning)); }
.progress.over > span, .progress.critical > span { background: linear-gradient(90deg, #ef6b6b, var(--status-critical)); }
.progress.aqua > span { background: linear-gradient(90deg, #3fd6c6, var(--aqua-500)); }

/* ---------------------------------------------------------------- list items */
.list { display: flex; flex-direction: column; }
.list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 4px;
    border-bottom: 1px solid var(--hairline);
    min-width: 0;
}
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; border-radius: var(--radius-sm); padding: 6px 8px; }
.list-item.clickable:hover { background: var(--surface-hover); }
.list-item.selected { background: var(--surface-selected); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: var(--font-size-xs); color: var(--text-muted); }
.chip-icon {
    width: 28px; height: 28px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--glacier-50), var(--glacier-200));
    color: var(--ocean-600);
    box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(10, 46, 79, 0.1);
}
.chip-icon svg { width: 14px; height: 14px; }
.chip-icon.aqua { background: linear-gradient(180deg, #ecfbf9, var(--aqua-100)); color: #0b8a7e; }
.chip-icon.coral { background: linear-gradient(180deg, #fff3ee, #fddccf); color: #c2532c; }
.chip-icon.gold { background: linear-gradient(180deg, #fffaea, #fde9b0); color: #a06d00; }
.chip-icon.violet { background: linear-gradient(180deg, #f3f1ff, #dcd7fb); color: #4a3aa7; }
.chip-icon.red { background: linear-gradient(180deg, #fff1f1, #f9d4d4); color: #b02a2a; }
.chip-icon.gray { background: linear-gradient(180deg, #f7f9fb, #e4e9ef); color: var(--text-secondary); }
.chip-icon.sm { width: 22px; height: 22px; border-radius: 7px; }
.chip-icon.sm svg { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- empty state & loading */
.empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    height: 100%;
    min-height: 120px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
}
.empty svg { width: 30px; height: 30px; color: var(--ocean-300); }
.loading {
    display: grid; place-items: center;
    height: 100%;
    color: var(--text-muted);
}
.spinner {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 3px solid var(--glacier-200);
    border-top-color: var(--ocean-500);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- modal */
.modal-backdrop {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    padding: 16px;
    background: rgba(6, 32, 56, 0.35);
    backdrop-filter: blur(3px);
    z-index: 100;
    animation: fade-in 0.15s ease-out;
}
.modal {
    display: flex; flex-direction: column;
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    border-radius: 18px;
    background: rgba(250, 253, 255, 0.96);
    border: 1px solid #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: pop-in 0.18s ease-out;
}
.modal.lg { width: min(820px, 100%); }
.modal.xl { width: min(1040px, 100%); }
.modal-head {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--grad-ocean);
    color: #fff;
}
.modal-head::before {
    content: ""; position: absolute; inset: 0 0 50% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
    pointer-events: none;
}
.modal-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.modal-head svg { width: 18px; height: 18px; }
.modal-head .btn.ghost { margin-left: auto; color: #fff; }
.modal-head .btn.ghost:hover { background: rgba(255, 255, 255, 0.15); }
.modal-body { padding: 14px; overflow: auto; min-height: 0; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--hairline);
    background: rgba(240, 248, 253, 0.7);
}
.modal-foot .left { margin-right: auto; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------------------------------------------------------------- toast */
.toast-host {
    position: fixed; right: 16px; bottom: 16px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 200;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    min-width: 260px; max-width: 420px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #fff;
    border-left: 4px solid var(--info);
    box-shadow: var(--shadow-lg);
    animation: pop-in 0.2s ease-out;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success { border-left-color: var(--status-good); }
.toast.success svg { color: var(--status-good); }
.toast.error { border-left-color: var(--status-critical); }
.toast.error svg { color: var(--status-critical); }
.toast.info svg { color: var(--info); }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; height: 100%; min-height: 0; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--font); font-size: 10.5px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--chart-axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .mark { transition: opacity 0.15s; }
.chart.dim .mark:not(.hover) { opacity: 0.55; }
.chart .crosshair { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .center-value { font-size: 17px; font-weight: 700; fill: var(--text-primary); }
.chart .center-label { font-size: 10.5px; fill: var(--text-muted); }

.legend {
    display: flex; flex-wrap: wrap; gap: 4px 12px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-swatch.line { height: 3px; border-radius: 2px; width: 14px; }

.chart-tooltip {
    position: fixed;
    z-index: 300;
    pointer-events: none;
    min-width: 140px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--hairline-strong);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}
.chart-tooltip .tt-title { font-weight: 700; margin-bottom: 4px; color: var(--ocean-800); }
.chart-tooltip .tt-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.chart-tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.chart-tooltip .tt-row b { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- misc */
.divider { height: 1px; background: var(--hairline); margin: 8px 0; }
.section-title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 6px 0;
}
.stat-strip { display: grid; gap: 8px; }
.stat {
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--hairline);
    min-width: 0;
}
.stat .label { font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat .note { font-size: var(--font-size-xs); color: var(--text-muted); }
.kbd {
    display: inline-block; padding: 0 5px;
    border: 1px solid var(--hairline-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}
