/*
SPDX-FileCopyrightText: 2026 Uwe Jugel
SPDX-License-Identifier: AGPL-3.0-or-later
*/

:root {
    color-scheme: light dark;
}

.sim-container {
    padding: 24px 0;
}
.sim-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.sim-header p {
    color: var(--muted, #666);
    margin-bottom: 24px;
}
.sim-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.game-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(480px, 1fr) minmax(220px, 280px);
    grid-template-rows: minmax(0, auto) auto;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    background: #101418;
    border: 1px solid #27313a;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}
.sim-controls {
    flex: 1 1 300px;
    background: var(--surface, #f9f9f9);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border, #ddd);
}
.scenario-rail,
.telemetry-panel,
.advanced-drawer-region {
    min-width: 0;
}
.scenario-rail {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sim-stage {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    background: #22272e;
    border: 1px solid #33404c;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.telemetry-panel {
    grid-column: 3;
    grid-row: 1;
}
.advanced-drawer-region {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.scenario-panel,
.compact-panel,
.game-drawer {
    background: #151b20;
    color: #eef5f7;
    border: 1px solid #2d3b45;
    border-radius: 8px;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.scenario-panel h3,
.compact-panel h3,
.game-drawer h3 {
    color: #f6fafb;
    border-bottom-color: #2d3b45;
}
.scenario-panel label,
.compact-panel label,
.game-drawer label {
    color: #dce7ea;
}
.scenario-panel select {
    width: 100%;
    margin-top: 6px;
}
.game-drawer {
    padding: 0;
    overflow: hidden;
}
.game-drawer summary {
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: #63f0d4;
    font-weight: 700;
    letter-spacing: 0;
    border-bottom: 1px solid transparent;
}
.game-drawer summary::-webkit-details-marker {
    display: none;
}
.game-drawer summary::after {
    content: '+';
    float: right;
    color: #94a3b8;
}
.game-drawer[open] summary {
    border-bottom-color: #2d3b45;
}
.game-drawer[open] summary::after {
    content: '-';
}
.game-drawer .control-group,
.game-drawer .assistive-geom-container {
    margin: 0;
    padding: 14px;
}
.canvas-wrapper {
    flex: 2 1 600px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border, #ddd);
}
/* issues/027: keep the canvas near the viewport top while the (long)
   .sim-controls column scrolls underneath it. Only above the width where
   .sim-layout still lays the two out side by side — below that they stack
   in document order (controls above canvas) and sticky positioning would
   just pin an already-scrolled-past element. */
@media (min-width: 960px) {
    .canvas-wrapper {
        position: sticky;
        top: 20px;
    }
}
#sim-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #333;
    display: block;
}
.sim-stage #sim-canvas {
    flex: 1 1 auto;
    object-fit: contain;
    border-bottom: 1px solid #33404c;
}
.hud-bar {
    display: grid;
    grid-template-columns: minmax(300px, auto) minmax(170px, 1fr) minmax(170px, 1fr) minmax(210px, auto) minmax(150px, auto);
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #0d1115;
    color: #e5f8f5;
}
.hud-play-group,
.render-switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-hud-primary,
.btn-hud-icon,
.btn-render-toggle {
    border: 1px solid #2d3b45;
    background: #151b20;
    color: #eef5f7;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0;
}
.btn-hud-primary {
    min-width: 94px;
    padding: 10px 16px;
    color: #04120f;
    background: #63f0d4;
    border-color: #63f0d4;
}
.btn-hud-icon {
    min-width: 54px;
    padding: 8px 10px;
}
.btn-hud-primary:hover,
.btn-hud-icon:hover,
.btn-render-toggle:hover:not(:disabled) {
    filter: brightness(1.08);
}
.hud-control {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    margin: 0 !important;
    color: #dce7ea;
    font-size: 0.82rem !important;
}
.hud-control span {
    white-space: nowrap;
}
.hud-control input[type="range"] {
    grid-column: 1 / -1;
}
.hud-control strong {
    color: #63f0d4;
}
.hud-check {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    color: #dce7ea;
    white-space: nowrap;
}
.hud-compute {
    margin: 0;
}
.render-switch-container {
    justify-content: flex-end;
    color: #dce7ea;
    font-size: 0.82rem;
}
.render-switch-group {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
    background: #0a0e11;
    border: 1px solid #26323b;
}
.btn-render-toggle {
    padding: 6px 9px;
    font-size: 0.78rem;
}
.btn-render-toggle.active {
    color: #04120f;
    background: #63f0d4;
    border-color: #63f0d4;
}
.btn-render-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.control-group {
    margin-bottom: 24px;
}
.control-group h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border, #ddd);
    padding-bottom: 4px;
}
.control-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.scenario-info-card {
    background: var(--bg-alt, #f0f4f8);
    border: 1px solid var(--border, #d2dbe5);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.scenario-desc {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text, #2c3e50);
}
.scenario-rationale-box {
    margin-bottom: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.scenario-rationale-box p {
    margin: 4px 0 0 0;
    color: var(--muted, #4a5568);
}
.scenario-sources-box {
    padding-top: 6px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.scenario-sources-box ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
    color: var(--muted, #4a5568);
}
.scenario-sources-box li {
    margin-bottom: 2px;
}
.turn-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
}
.turn-control-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--bg-alt, #f8fafc);
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid var(--border, #e2e8f0);
}
.turn-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text, #333);
}
.btn-turn-toggle {
    padding: 4px 8px;
    border: 1px solid var(--border, #cbd5e1);
    background: var(--surface, #ffffff);
    color: var(--text, #1e293b);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    text-align: center;
}
.btn-turn-toggle:hover {
    background: #f1f5f9;
}
.btn-turn-toggle[data-state="left"] {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
}
.btn-turn-toggle[data-state="right"] {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}
.btn-turn-toggle[data-state="straight"] {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}
.dof-hint {
    font-size: 0.75rem;
    color: var(--muted, #4a5568);
    margin: 0 0 6px 0;
}
.dof-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dof-stable-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dof-advanced-details {
    margin-top: 6px;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    background: var(--bg-alt, #f8fafc);
}
.dof-advanced-details summary {
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text, #333);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dof-advanced-details summary::-webkit-details-marker {
    display: none;
}
.dof-advanced-details summary::before {
    content: '▶';
    font-size: 0.65rem;
    transition: transform 0.15s ease;
    display: inline-block;
}
.dof-advanced-details[open] summary::before {
    transform: rotate(90deg);
}
.dof-advanced-details[open] summary {
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.dof-advanced-details summary:hover {
    background: rgba(0, 0, 0, 0.03);
}
.dof-advanced-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.dof-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text, #333);
    padding: 3px 6px;
    border-radius: 4px;
}
.dof-item:hover {
    background: var(--bg-alt, #f8fafc);
}
.dof-item.dof-deviates {
    background: #fffbeb;
    border: 1px solid #f59e0b;
}
.dof-item .dof-name,
.dof-item span:not(.maturity-pill) {
    text-transform: capitalize;
    flex: 1;
}
.maturity-pill {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    user-select: none;
    line-height: 1.2;
    flex-shrink: 0;
}
.maturity-pill.maturity-stable {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.maturity-pill.maturity-beta {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.maturity-pill.maturity-exp {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
@media (prefers-color-scheme: dark) {
    .maturity-pill.maturity-stable {
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
        border-color: rgba(52, 211, 153, 0.4);
    }
    .maturity-pill.maturity-beta {
        background: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
        border-color: rgba(251, 191, 36, 0.4);
    }
    .maturity-pill.maturity-exp {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
        border-color: rgba(248, 113, 113, 0.4);
    }
    .dof-item.dof-deviates {
        background: rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.5);
    }
}
.control-group input[type="range"] {
    width: 100%;
    margin-top: 4px;
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.dof-preset-group button {
    font-size: 0.78rem;
    padding: 5px 10px;
}
.button-group button {
    padding: 6px 12px;
    border: 1px solid var(--border, #ddd);
    background: var(--surface, #fff);
    cursor: pointer;
    border-radius: 4px;
}
.button-group button:hover {
    background: #eee;
}
/* Assistive Geometry category details foldout */
.assistive-geom-container {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.assistive-layers-details {
    margin-top: 2px;
    margin-bottom: 8px;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 6px;
    background: var(--bg-alt, #f8fafc);
}
.assistive-layers-details summary {
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text, #333);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.assistive-layers-details summary::-webkit-details-marker {
    display: none;
}
.assistive-layers-details summary::before {
    content: '▶';
    font-size: 0.65rem;
    transition: transform 0.15s ease;
    display: inline-block;
}
.assistive-layers-details[open] summary::before {
    transform: rotate(90deg);
}
.assistive-layers-details[open] summary {
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.assistive-layers-details summary:hover {
    background: rgba(0, 0, 0, 0.03);
}
.assistive-layers-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
}
.assistive-layer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text, #333);
    padding: 3px 4px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 0 !important;
}
.assistive-layer-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.assistive-layer-item span {
    flex: 1;
}

/* Throughput Metrics / Stats Panel positioned under simulation canvas */
.stats-panel {
    background: #1a202c;
    color: #e2e8f0;
    padding: 12px 16px;
    border-top: 1px solid #2d3748;
    border-radius: 0 0 8px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}
.telemetry-panel .stats-panel {
    height: 100%;
    border: 1px solid #2d3b45;
    border-radius: 8px;
    background: #10161c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stats-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #f7fafc;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
}
.telemetry-panel .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0;
    font-size: 0.84rem;
}
.telemetry-panel .stat-row {
    padding: 9px 0;
    border-bottom: 1px solid #26323b;
}
.telemetry-panel .stat-row:last-child {
    border-bottom: 0;
}
.stat-row span {
    color: #a0aec0;
}
.stat-row strong {
    color: #48bb78;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.compute-switch-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.compute-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text, #333);
}
.compute-switch-group {
    display: flex;
    background: var(--bg-alt, #e2e8f0);
    padding: 2px;
    border-radius: 6px;
    gap: 2px;
}
.hud-bar .compute-switch-group {
    background: #0a0e11;
    border: 1px solid #26323b;
}
.btn-compute-toggle {
    flex: 1;
    padding: 5px 8px;
    border: none;
    background: transparent;
    color: var(--muted, #64748b);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    text-align: center;
}
.btn-compute-toggle:hover {
    color: var(--text, #1e293b);
}
.btn-compute-toggle.active {
    background: var(--surface, #ffffff);
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.hud-bar .btn-compute-toggle.active {
    background: #26323b;
    color: #63f0d4;
}
.btn-compute-toggle[data-mode="webgpu"].active {
    color: #059669;
    font-weight: 700;
}
.btn-engine-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    text-align: center;
    font-family: inherit;
    box-sizing: border-box;
}
.btn-engine-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-engine-pill strong {
    cursor: pointer;
    white-space: nowrap;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (prefers-color-scheme: dark) {
    .assistive-layers-details {
        background: #1e293b;
        border-color: #334155;
    }
    .assistive-layers-details summary {
        color: #f1f5f9;
    }
    .assistive-layers-details[open] summary {
        border-bottom-color: #334155;
    }
    .assistive-layers-details summary:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .assistive-layer-item {
        color: #e2e8f0;
    }
    .assistive-layer-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    .stats-panel {
        background: #0f172a;
        border-top-color: #1e293b;
    }
    .stats-panel h3 {
        color: #f1f5f9;
        border-bottom-color: #1e293b;
    }
    .stat-row span {
        color: #94a3b8;
    }
    .stat-row strong {
        color: #4ade80;
    }
}

@media (max-width: 1180px) {
    .game-shell {
        grid-template-columns: minmax(200px, 260px) minmax(420px, 1fr);
    }
    .scenario-rail {
        grid-column: 1;
    }
    .sim-stage {
        grid-column: 2;
    }
    .telemetry-panel {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .advanced-drawer-region {
        grid-row: 3;
    }
    .telemetry-panel .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 6px 14px;
    }
    .telemetry-panel .stat-row {
        border-bottom: 0;
        padding: 4px 0;
    }
    .hud-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .game-shell {
        display: flex;
        flex-direction: column;
        padding: 8px;
    }
    .sim-stage {
        order: 1;
    }
    .scenario-rail {
        order: 2;
    }
    .telemetry-panel {
        order: 3;
    }
    .advanced-drawer-region {
        order: 4;
        grid-template-columns: 1fr;
    }
    .hud-bar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .hud-play-group,
    .render-switch-container {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* issues/026: browser comparison panel (comparison.js) */
.comparison-panel {
    margin-top: 24px;
    background: var(--surface, #f9f9f9);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border, #ddd);
}
.comparison-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border, #ddd);
    padding-bottom: 4px;
}
.cmp-hint {
    font-size: 0.85rem;
    color: var(--muted, #4a5568);
    margin: 0 0 12px 0;
}
.cmp-models {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 12px;
}
.cmp-model-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cmp-inflow-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.cmp-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.cmp-actions button {
    padding: 6px 12px;
    border: 1px solid var(--border, #ddd);
    background: var(--surface, #fff);
    cursor: pointer;
    border-radius: 4px;
}
.cmp-actions button:hover:not(:disabled) {
    background: #eee;
}
.cmp-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.cmp-progress {
    font-size: 0.85rem;
    color: var(--muted, #4a5568);
    min-height: 1.2em;
}
.cmp-table-wrap {
    overflow-x: auto;
}
.cmp-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
    margin-top: 8px;
}
.cmp-table th, .cmp-table td {
    border: 1px solid var(--border, #ddd);
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}
.cmp-table th {
    background: var(--bg-alt, #f0f4f8);
    font-weight: 600;
}
.cmp-provenance {
    font-size: 0.75rem;
    color: var(--muted, #4a5568);
    margin-top: 12px;
    line-height: 1.4;
}

/* ── Help ("?") button and modal ───────────────────────────── */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    margin-left: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid var(--border, #bbb);
    border-radius: 50%;
    background: var(--bg-alt, #f0f4f8);
    color: var(--muted, #555);
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}
.help-btn:hover {
    background: #3b82f6;
    border-color: #2563eb;
    color: #fff;
}

/* Modal overlay */
.help-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}
.help-modal-overlay.open {
    display: flex;
}
.help-modal {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 10px;
    padding: 24px 28px;
    max-width: 480px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    position: relative;
}
.help-modal h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--text, #1e293b);
    text-transform: capitalize;
}
.help-modal p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text, #334155);
}
.help-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--muted, #888);
    line-height: 1;
    padding: 2px 6px;
}
.help-modal-close:hover { color: var(--text, #333); }
