/* Schedule 242 — monthly shift grid (port of the WFM schedule page).
 * Colours come from the page tokens, so the [data-theme="dark"] switch needs
 * nothing extra here. Monochrome on purpose: only problems (red) get a colour. */
#tab-schedule242 {
    --s242-tint: color-mix(in srgb, var(--text) 4%, transparent);
    --s242-tint-strong: color-mix(in srgb, var(--text) 9%, transparent);
    --s242-hover: color-mix(in srgb, var(--text) 6%, transparent);
    --s242-range: color-mix(in srgb, var(--text) 14%, transparent);
    --s242-danger-tint: color-mix(in srgb, var(--danger) 18%, transparent);
    --s242-hatch: repeating-linear-gradient(45deg, transparent 0 4px, var(--border) 4px 5px);
    /* Weekend columns: Saturday bluish, Sunday reddish. */
    --s242-sat: #2563eb;
    --s242-sun: #dc2626;
    --s242-sat-tint: color-mix(in srgb, var(--s242-sat) 9%, transparent);
    --s242-sun-tint: color-mix(in srgb, var(--s242-sun) 9%, transparent);
    /* Icon tones, one per absence family. Muted, so the grid stays calm. */
    --s242-c-vacation: #d97706;
    --s242-c-sick: #dc2626;
    --s242-c-study: #7c3aed;
    --s242-c-child: #db2777;
    --s242-c-duty: #0d9488;
    --s242-c-missing: #ea580c;
    --s242-c-trip: #2563eb;
    --s242-c-hours: #0891b2;
    --s242-c-health: #4f46e5;
    --s242-c-off: #64748b;
    --s242-c-holiday: #ca8a04;
    /* Changed-cell glow */
    --s242-glow: #16a34a;
    --s242-glow-soft: color-mix(in srgb, var(--s242-glow) 45%, transparent);
    --s242-glow-tint: color-mix(in srgb, var(--s242-glow) 12%, transparent);
    padding: 16px 22px;
}
[data-theme="dark"] #tab-schedule242 {
    --s242-sat: #60a5fa;
    --s242-sun: #f87171;
    --s242-sat-tint: color-mix(in srgb, var(--s242-sat) 12%, transparent);
    --s242-sun-tint: color-mix(in srgb, var(--s242-sun) 12%, transparent);
    --s242-c-vacation: #fbbf24;
    --s242-c-sick: #f87171;
    --s242-c-study: #a78bfa;
    --s242-c-child: #f472b6;
    --s242-c-duty: #2dd4bf;
    --s242-c-missing: #fb923c;
    --s242-c-trip: #60a5fa;
    --s242-c-hours: #22d3ee;
    --s242-c-health: #818cf8;
    --s242-c-off: #94a3b8;
    --s242-c-holiday: #facc15;
    --s242-glow: #4ade80;
}

/* ---- Toolbar ---- */
.s242-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
    padding: 10px 12px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.s242-toolbar .s242-btn, .s242-toolbar .s242-stepper { height: 34px; }

/* ---- Summary cards ---- */
.s242-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.s242-stat {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.s242-stat-ico {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 10px; background: var(--s242-tint-strong); color: var(--text);
}
.s242-stat-ico .s242-icon { width: 18px; height: 18px; }
.s242-stat-body { display: flex; flex-direction: column; min-width: 0; }
.s242-stat-value { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.s242-stat-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s242-stat.is-bad .s242-stat-value,
.s242-stat.is-bad .s242-stat-ico { color: var(--danger); }
.s242-stat.is-bad .s242-stat-ico { background: var(--s242-danger-tint); }

/* ---- Quick filters ---- */
.s242-quick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.s242-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s242-quick-label {
    display: inline-flex; align-items: center; gap: 6px; min-width: 78px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.s242-qchip, .s242-qclear {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
    font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums;
}
.s242-qchip:hover, .s242-qclear:hover { background: var(--s242-tint-strong); }
.s242-qchip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.s242-qchip-n { font-size: 11px; color: var(--text-secondary); }
.s242-qchip[aria-pressed="true"] .s242-qchip-n { color: inherit; opacity: .7; }
.s242-qclear { border-style: dashed; color: var(--text-secondary); }
.s242-spacer { flex: 1; }
.s242-icon { width: 16px; height: 16px; flex-shrink: 0; }
.s242-icon-sm { width: 14px; height: 14px; }
.s242-spin { animation: s242-spin 1s linear infinite; }
@keyframes s242-spin { to { transform: rotate(360deg); } }

.s242-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.s242-btn:hover { background: var(--s242-tint-strong); }
.s242-btn[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.s242-btn-icon { width: 32px; padding: 0; justify-content: center; }

.s242-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border: 1px dashed var(--border); border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.s242-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.s242-check input { accent-color: var(--text); margin: 0; }
.s242-meta { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.s242-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); min-width: 90px; }
.s242-status.is-error { color: var(--danger); }

.s242-stepper {
    display: inline-flex; align-items: center; height: 32px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.s242-stepper button {
    display: flex; align-items: center; justify-content: center; width: 30px; height: 100%;
    border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.s242-stepper button:disabled { opacity: .3; cursor: default; }
.s242-step-value { min-width: 116px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Dropdowns (branch picker, legend) ---- */
.s242-dd { position: relative; }
.s242-dd-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
    min-width: 220px; max-height: 70vh; overflow: auto; padding: 6px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.s242-dd.open .s242-dd-panel { display: block; }
.s242-dd-panel.is-right { left: auto; right: 0; }
.s242-dd-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.s242-dd-item:hover { background: var(--s242-tint-strong); }
.s242-dd-item input { accent-color: var(--text); margin: 0; }
.s242-dd-sep { height: 1px; margin: 6px 0; background: var(--border-light); }
.s242-dd-title { padding: 6px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }

.s242-legend { width: 340px; }
.s242-legend-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; padding: 4px 8px; font-size: 13px; }
.s242-legend-key { display: flex; align-items: center; justify-content: center; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.s242-legend-code { color: var(--text-secondary); font-size: 11px; margin-left: 4px; }
.s242-swatch-weekend { background: var(--s242-tint); }
.s242-swatch-holiday { background: var(--s242-tint-strong); }
.s242-swatch-locked { background: var(--s242-hatch); }
.s242-swatch-foreign { background: var(--s242-danger-tint); }
.s242-kbd {
    display: inline-block; padding: 1px 6px; font: inherit; font-size: 11px; white-space: nowrap;
    border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--bg);
}
.s242-legend-keys .s242-legend-row { grid-template-columns: 150px 1fr; }
.s242-legend-keys .s242-legend-key { justify-content: flex-start; gap: 4px; flex-wrap: wrap; height: auto; }

/* ---- Grid ---- */
.s242-grid { width: 100%; height: calc(100vh - 330px); min-height: 420px; }
.s242-grid .ag-cell { user-select: none; -webkit-user-select: none; }
.s242-grid .s242-num { color: var(--text-secondary); }
.s242-grid .s242-name { font-weight: 600; }

/* Day headers: weekday over date, centred, tight padding so 34px columns fit. */
.s242-grid .ag-header-cell.s242-hdr-day { padding-left: 0; padding-right: 0; }
.s242-grid .s242-hdr-day .ag-header-cell-label { justify-content: center; }
.s242-grid .s242-hdr-day .ag-header-cell-text { white-space: pre; text-align: center; line-height: 1.25; }
.s242-grid .s242-hdr-weekend .ag-header-cell-text { color: var(--text-secondary); }
.s242-grid .ag-header-cell.s242-hdr-sat { background-color: var(--s242-sat-tint); }
.s242-grid .ag-header-cell.s242-hdr-sun { background-color: var(--s242-sun-tint); }
.s242-grid .s242-hdr-sat .ag-header-cell-text { color: var(--s242-sat); font-weight: 700; }
.s242-grid .s242-hdr-sun .ag-header-cell-text { color: var(--s242-sun); font-weight: 700; }
.s242-grid .s242-hdr-holiday .ag-header-cell-text { text-decoration: underline; text-underline-offset: 3px; }

/* Day cells. Hover uses background-image so it layers over weekend/holiday tints. */
.s242-grid .s242-day { display: flex; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; }
.s242-grid .ag-row-hover .ag-cell,
.s242-grid .ag-cell.ag-column-hover { background-image: linear-gradient(var(--s242-hover), var(--s242-hover)); }
.s242-grid .ag-row-hover .ag-cell.ag-column-hover { background-image: linear-gradient(var(--s242-range), var(--s242-range)); }
.s242-grid .s242-cell-weekend { background-color: var(--s242-tint); }
.s242-grid .s242-cell-sat { background-color: var(--s242-sat-tint); }
.s242-grid .s242-cell-sun { background-color: var(--s242-sun-tint); }
.s242-grid .s242-cell-holiday { background-color: var(--s242-tint-strong); }
.s242-grid .s242-cell-absent { opacity: .9; }
.s242-grid .s242-cell-locked { background: var(--s242-hatch); color: var(--text-secondary); cursor: not-allowed; }
/* Outline too, so a foreign day still stands out on a reddish Sunday. */
.s242-grid .s242-cell-foreign { background-color: var(--s242-danger-tint) !important; box-shadow: inset 0 0 0 1px var(--danger); }

/* Cell looks. Applied to the grid cell itself (text + classes, no renderer)
 * and to .s242-look spans in the legend. */
.s242-grid .s242-day, .s242-look { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.3px; font-weight: 500; }
/* "08-20" must fit a 40px day column without clipping. */
.s242-grid .s242-day { font-size: 11px; }
.s242-look { display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
.s242-ghost { font-style: italic; color: var(--text-secondary); opacity: .75; }
/* Icon = mask of the shared Lucide path (rules injected by schedule242.js);
 * any text in the cell (ДДО 2 / 3) sits after it as a small index. */
.s242-ico { color: var(--text-secondary); font-size: 8px; font-weight: 700; }
.s242-ico::before {
    content: ''; flex-shrink: 0; width: 15px; height: 15px; background-color: currentColor;
    -webkit-mask: var(--s242-ico) center / contain no-repeat; mask: var(--s242-ico) center / contain no-repeat;
}
/* Absence cells: icon colour + background + border per code, the /table
 * palette (PayrollTable.jsx VACATION_META / getVacStyle). Class s242-abs-<tone>
 * comes from ABSENT_TONE in schedule242.js; the id selector lets it beat the
 * weekend tints and the plain icon colour, while range selection (!important)
 * still shows on top. Same classes paint the legend swatches. */
#tab-schedule242 .s242-abs-blue   { --abs-c: #1d4ed8; --abs-bg: #dbeafe; --abs-bd: #93c5fd; }
#tab-schedule242 .s242-abs-red    { --abs-c: #dc2626; --abs-bg: #fef2f2; --abs-bd: #fca5a5; }
#tab-schedule242 .s242-abs-yellow { --abs-c: #a16207; --abs-bg: #fef9c3; --abs-bd: #fde68a; }
#tab-schedule242 .s242-abs-sky    { --abs-c: #0369a1; --abs-bg: #e0f2fe; --abs-bd: #7dd3fc; }
#tab-schedule242 .s242-abs-teal   { --abs-c: #0f766e; --abs-bg: #ccfbf1; --abs-bd: #5eead4; }
#tab-schedule242 .s242-abs-rose   { --abs-c: #9f1239; --abs-bg: #fff1f2; --abs-bd: #fecdd3; }
#tab-schedule242 .s242-abs-amber  { --abs-c: #b45309; --abs-bg: #fffbeb; --abs-bd: #fde68a; }
#tab-schedule242 .s242-abs-slate  { --abs-c: #475569; --abs-bg: #f1f5f9; --abs-bd: #cbd5e1; }
#tab-schedule242 .s242-abs-cyan   { --abs-c: #0e7490; --abs-bg: #ecfeff; --abs-bd: #a5f3fc; }
#tab-schedule242 .s242-abs-green  { --abs-c: #166534; --abs-bg: #dcfce7; --abs-bd: #86efac; }
#tab-schedule242 .s242-abs-other  { --abs-c: #64748b; --abs-bg: #f1f5f9; --abs-bd: #cbd5e1; }
[data-theme="dark"] #tab-schedule242 .s242-abs-blue   { --abs-c: #93c5fd; --abs-bg: #1c2e4a; --abs-bd: #2c4e7a; }
[data-theme="dark"] #tab-schedule242 .s242-abs-red    { --abs-c: #fca5a5; --abs-bg: #3a1818; --abs-bd: #5c2828; }
[data-theme="dark"] #tab-schedule242 .s242-abs-yellow { --abs-c: #fcd34d; --abs-bg: #3a2a08; --abs-bd: #5a4818; }
[data-theme="dark"] #tab-schedule242 .s242-abs-sky    { --abs-c: #7dd3fc; --abs-bg: #1a2a3a; --abs-bd: #2c5c75; }
[data-theme="dark"] #tab-schedule242 .s242-abs-teal   { --abs-c: #5eead4; --abs-bg: #1a3530; --abs-bd: #2c5e58; }
[data-theme="dark"] #tab-schedule242 .s242-abs-rose   { --abs-c: #fda4af; --abs-bg: #3a1825; --abs-bd: #5c2a40; }
[data-theme="dark"] #tab-schedule242 .s242-abs-amber  { --abs-c: #fcd34d; --abs-bg: #3a2a08; --abs-bd: #5a4818; }
[data-theme="dark"] #tab-schedule242 .s242-abs-slate  { --abs-c: #cbd5e1; --abs-bg: #3d3d3a; --abs-bd: #52524f; }
[data-theme="dark"] #tab-schedule242 .s242-abs-cyan   { --abs-c: #67e8f9; --abs-bg: #1a2e35; --abs-bd: #2a6a82; }
[data-theme="dark"] #tab-schedule242 .s242-abs-green  { --abs-c: #86efac; --abs-bg: #1a3520; --abs-bd: #2c5c3a; }
[data-theme="dark"] #tab-schedule242 .s242-abs-other  { --abs-c: #94a3b8; --abs-bg: #363634; --abs-bd: #4a4a47; }
#tab-schedule242 [class*="s242-abs-"] {
    color: var(--abs-c);
    background-color: var(--abs-bg);
    box-shadow: inset 0 0 0 1px var(--abs-bd);
}
#tab-schedule242 .s242-legend-key .s242-look[class*="s242-abs-"] { width: 100%; height: 100%; border-radius: 4px; }
.s242-ico.s242-i-star, .s242-swatch-holiday .s242-icon { color: var(--s242-c-holiday); }
.s242-badge { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-secondary); }

/* Changed cell: a soft border glow + tint that fades out over 2 s (class is
 * removed by schedule242.js when the 2 s are up). */
.s242-grid .ag-cell.s242-cell-changed { animation: s242-changed 2s ease-out; }
@keyframes s242-changed {
    0%, 35% {
        background-color: var(--s242-glow-tint);
        box-shadow: inset 0 0 0 1.5px var(--s242-glow), inset 0 0 8px var(--s242-glow-soft);
    }
    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 1.5px transparent, inset 0 0 8px transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .s242-grid .ag-cell.s242-cell-changed {
        animation: none;
        box-shadow: inset 0 0 0 1.5px var(--s242-glow);
    }
}

/* Range selection: fill on every cell, border on the outer edges only. */
.s242-grid .ag-cell.s242-cell-range { background-color: var(--s242-range) !important; }
.s242-grid .ag-cell.s242-range-t { border-top: 1px solid var(--text) !important; }
.s242-grid .ag-cell.s242-range-b { border-bottom: 1px solid var(--text) !important; }
.s242-grid .ag-cell.s242-range-l { border-left: 1px solid var(--text) !important; }
.s242-grid .ag-cell.s242-range-r { border-right: 1px solid var(--text) !important; }

/* ДНИ: shifts / norm — the count turns red when it misses the norm. */
.s242-days { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.s242-days-bad { color: var(--danger); }
.s242-days-norm { color: var(--text-secondary); font-weight: 600; }

/* Chunk rows: header (name + count), per-day count, one empty gap row. */
.s242-grid .ag-row.s242-row-chunk-head .ag-cell { background-color: var(--s242-tint-strong); font-weight: 700; }
.s242-grid .ag-row.s242-row-chunk-head .s242-name { font-size: 13px; }
.s242-grid .ag-row.s242-row-chunk-foot .ag-cell { background-color: var(--bg); color: var(--text-secondary); font-weight: 700; }
.s242-grid .s242-footer-count { color: var(--text); font-weight: 700; }
.s242-grid .ag-row.s242-row-chunk-gap,
.s242-grid .ag-row.s242-row-chunk-gap .ag-cell { background: var(--surface) !important; border-color: transparent; }
.s242-grid .ag-row.s242-row-chunk-head .ag-cell,
.s242-grid .ag-row.s242-row-chunk-foot .ag-cell,
.s242-grid .ag-row.s242-row-chunk-gap .ag-cell { cursor: default; }

/* Totals row */
.s242-grid .ag-row-pinned { font-weight: 700; background-color: var(--bg); }

/* ---- Selection bar (floats over the grid while cells are selected) ---- */
.s242-selbar {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70;
    display: flex; flex-direction: column; gap: 8px;
    width: min(860px, calc(100vw - 32px)); padding: 12px 14px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.s242-selbar[hidden] { display: none; }
.s242-selbar-head { display: flex; align-items: center; gap: 8px; }
.s242-selbar-count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s242-selbar-buf { font-weight: 700; }
.s242-selbar-shifts { display: flex; flex-wrap: wrap; gap: 6px; }
.s242-selbar-shift {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
    font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.s242-selbar-shift:hover { background: var(--s242-tint-strong); }
.s242-selbar-shift.is-match { border-color: var(--text); background: var(--s242-tint-strong); }
.s242-selbar-shift .s242-kbd { min-width: 22px; text-align: center; }
.s242-selbar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.s242-selbar-actions .s242-btn .s242-kbd { margin-left: 2px; }

/* Add-mode badge (Shift+F8 / Alt held), above the selection bar */
.s242-modebadge {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 71;
    padding: 6px 14px; border-radius: 999px;
    background: var(--text); color: var(--surface);
    font-size: 12px; font-weight: 600; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.s242-modebadge[hidden] { display: none; }
.s242-selbar:not([hidden]) ~ .s242-modebadge { bottom: auto; top: 76px; }

/* ---- Popup list editor (shift / lunch) ---- */
.s242-pop {
    width: 150px; padding: 6px 0; outline: none;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
    font-family: 'Google Sans','Product Sans',Roboto,-apple-system,'Segoe UI',sans-serif;
    font-size: 14px; font-weight: 600;
}
.s242-pop-list { max-height: 280px; overflow-y: auto; }
.s242-pop-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 18px; cursor: pointer; user-select: none; font-variant-numeric: tabular-nums;
}
.s242-pop-item.is-focus { background: color-mix(in srgb, var(--text) 9%, transparent); }
.s242-pop-empty { padding: 7px 18px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.s242-pop-foot {
    margin-top: 4px; padding: 8px 0 2px; text-align: center;
    border-top: 1px solid var(--border-light); font-size: 12px; font-weight: 500; color: var(--text-secondary);
}

@media (max-width: 900px) {
    .s242-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    #tab-schedule242 { padding: 12px 16px; }
    .s242-spacer { display: none; }
    .s242-legend { width: min(340px, calc(100vw - 32px)); }
}

/* Sync button while the sheet re-imports */
.s242-btn.is-busy .s242-icon { animation: s242-spin 1s linear infinite; }

/* Download menu (Excel / PDF): buttons styled as dropdown items */
.s242-dl-panel { min-width: 180px; }
.s242-dd-btn { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: left; }

/* SMENA (selection bar): 2/2 pattern picker with a live preview in the grid. */
.s242-btn-smena { font-weight: 600; letter-spacing: .4px; }
.s242-smena-hint { margin-left: 10px; font-size: 11px; color: var(--text-secondary); }
.s242-smena-opt { display: inline-flex; align-items: center; gap: 8px; }
.s242-smena-key { display: inline-flex; gap: 1px; font-family: ui-monospace, Consolas, monospace; }
.s242-smena-key b { width: 13px; text-align: center; font-weight: 700; }
.s242-smena-key b.off { color: var(--text-secondary); font-weight: 500; }
.s242-grid .s242-smena-ghost { font-style: italic; outline: 1px dashed var(--text-secondary); outline-offset: -3px; }
