    }
    .group-title { color: var(--highlight-soft, #f0c878); font-size: var(--type-section-title, 1rem); line-height: 1.35; font-weight: 800; margin-top: var(--space-4, 16px); border-left: 3px solid rgba(230, 160, 69, 0.55); padding-left: 10px; margin-bottom: var(--space-3, 12px); display: flex; justify-content: space-between; align-items: center; gap: var(--space-2, 8px); letter-spacing: 0.2px; }
    .input-row { display: flex; gap: 8px; margin-bottom: 8px; }
    .input-wrapper { flex: 1; }
    .input-wrapper label { display: block; font-size: var(--type-meta, 0.82rem); color: #bed0df; margin-bottom: 6px; letter-spacing: 0.2px; font-weight: 650; }
    .input-wrapper input, .input-wrapper select { width: 100%; padding: 11px 12px; background: rgba(8, 16, 28, 0.62); border: 1px solid var(--line-soft, rgba(148, 188, 220, 0.14)); color: #f2f6fa; border-radius: var(--radius-sm, 10px); box-sizing: border-box; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
    .input-wrapper input:focus, .input-wrapper select:focus { border-color: rgba(110, 201, 235, 0.45); outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(110, 201, 235, 0.16)); }
    .material-quick-bar { display: flex; gap: 10px; align-items: center; margin-top: 8px; margin-bottom: 12px; }
    .material-chip { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-soft, rgba(148, 188, 220, 0.14)); background: rgba(255,255,255,0.04); color: #d0e0ef; font-size: 0.8em; }
    .material-chip strong { color: var(--highlight-soft, #f0c878); }
    .material-chip.material-chip-warning { border-color: rgba(255, 132, 132, 0.55); background: rgba(255, 72, 72, 0.14); color: #ffd8d8; }
    .material-chip.material-chip-warning strong { color: #ffe6a7; }
    .bim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 8px; }
    .control-grid { display: grid; grid-template-columns: repeat(6, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
    .status-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 11px; font-size: 0.74em; color: #cfe4f8; background: rgba(255,255,255,0.02); box-shadow: none; }
    .bim-card { border: 0; border-radius: 0; padding: 8px 6px; font-size: 0.76em; color: #d9e8f6; background: transparent; box-shadow: none; }
    .bim-card strong { display: block; font-size: 1.24em; color: var(--highlight-soft, #f0c878); margin-top: 6px; letter-spacing: 0.2px; }
    .bim-note { font-size: var(--type-hint, 0.78rem); line-height: var(--leading-body, 1.5); color: #aebfd0; margin-top: 6px; }
    .precision-review-panel {
        margin-top: 8px;
        border: 0;
        border-top: 1px solid rgba(140, 214, 255, 0.2);
        border-radius: 0;
        padding: 8px 0;
        background: transparent;
    }
    .precision-review-panel[hidden] { display: none; }
    .precision-review-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }
    .precision-review-title {
        color: #dff6ff;
        font-weight: 800;
        font-size: 0.92em;
    }
    .precision-review-badge {
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 0.72em;
        color: #dff2ff;
        background: rgba(255,255,255,0.02);
    }
    .precision-review-summary {
        font-size: 0.78em;
        color: #cfe8ff;
        line-height: 1.45;
        margin-bottom: 8px;
    }
    .precision-review-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 8px;
    }
    .precision-review-field {
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 6px;
        padding: 7px;
        background: rgba(6, 14, 24, 0.2);
    }
    .precision-review-field-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }
    .precision-review-field-label {
        color: #fff3bf;
        font-weight: 700;
        font-size: 0.8em;
    }
    .precision-review-field-note {
        color: #9ad4ff;
        font-size: 0.72em;
    }
    .precision-review-field-note.warn {
        color: #ffd48a;
    }
    .precision-review-field-note.bad {
        color: #ffb5b5;
    }
    .precision-review-candidates {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .precision-review-btn {
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 6px;
        background: rgba(255,255,255,0.02);
        color: #eaf6ff;
        padding: 6px 8px;
        font-size: 0.72em;
        cursor: pointer;
        text-align: left;
    }
    .precision-review-btn.active {
        border-color: var(--cm-line);
        background: var(--cm-line);
        color: #fff3bf;
    }
    .precision-review-btn:hover {
        background: rgba(255,255,255,0.06);
    }
    .precision-review-detail {
        margin-top: 6px;
        font-size: 0.72em;
        color: #c6dcff;
        line-height: 1.45;
    }
    .precision-review-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
    .formula-trace-sheet {
        position: fixed;
        inset: 0;
        z-index: 3200;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .formula-trace-sheet[hidden] {
        display: none;
    }
    .formula-trace-sheet__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(4, 12, 24, 0.72);
    }
    .formula-trace-sheet__panel {
        position: relative;
        width: min(720px, 100%);
        max-height: min(78vh, 720px);
        overflow: hidden;
        border-radius: 18px 18px 0 0;
        border: 1px solid rgba(179, 157, 219, 0.35);
        background: linear-gradient(180deg, rgba(18, 28, 44, 0.98), rgba(10, 18, 30, 0.98));
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    }
    .formula-trace-sheet__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px 10px;
        border-bottom: 1px solid rgba(179, 157, 219, 0.18);
    }
    .formula-trace-sheet__title {
        font-size: 1rem;
        font-weight: 700;
        color: #efe3ff;
    }
    .formula-trace-sheet__subtitle {
        margin-top: 4px;
        font-size: 0.78rem;
        color: #a8c0d8;
    }
    .formula-trace-sheet__close {
        border: 1px solid rgba(179, 157, 219, 0.35);
        background: rgba(179, 157, 219, 0.12);
        color: #efe3ff;
        border-radius: 999px;
        width: 34px;
        height: 34px;
        cursor: pointer;
    }
    .formula-trace-sheet__body {
        padding: 12px 18px 22px;
        overflow: auto;
        max-height: calc(min(78vh, 720px) - 72px);
    }
    .formula-trace-step {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 10px;
        border: 1px solid rgba(126, 214, 223, 0.18);
        background: rgba(88, 170, 255, 0.06);
    }
    .formula-trace-step__title {
        font-size: 0.82rem;
        font-weight: 700;
        color: #dff6ff;
        margin-bottom: 4px;
    }
    .formula-trace-step__formula {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 0.76rem;
        color: #ffe9b0;
        line-height: 1.45;
    }
    .formula-trace-step__result {
        margin-top: 4px;
        font-size: 0.78rem;
        color: #c6dcff;
        line-height: 1.45;
    }
    .weather-news-marquee {
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }
    .weather-news-text {
        display: inline-block;
        min-width: 100%;
        padding-left: 100%;
        will-change: transform;
        animation: weather-news-marquee 16s linear infinite;
    }
    @keyframes weather-news-marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    .global-weather-ticker {
        position: sticky;
        top: 0;
        z-index: 2100;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px;
        border-top: 1px solid var(--glass-border, rgba(126, 200, 232, 0.16));
        border-bottom: 1px solid var(--glass-border, rgba(126, 200, 232, 0.16));
        background: rgba(9, 17, 30, 0.72);
        backdrop-filter: blur(10px) saturate(115%);
    }
    .global-weather-ticker .ticker-label {
        flex: 0 0 auto;
        font-size: 0.76em;
        color: var(--accent, #6ec9eb);
        font-weight: 700;
    }
    .global-weather-ticker .weather-news-marquee {
        flex: 1;
        margin-top: 0;
    }
    @media (prefers-reduced-motion: reduce) {
        .weather-news-text {
            animation: none;
            padding-left: 0;
            min-width: 0;
        }
    }
    .bim-table-wrap { max-height: 180px; overflow: auto; border: 0; border-top: 1px solid rgba(255,255,255,0.09); border-radius: 0; margin-top: 6px; background: transparent; }
    .bim-table-wrap table { margin-top: 0; }
    .bim-warn { margin-top: 8px; border: 1px solid var(--cm-line, var(--cm-line)); background: rgba(10, 8, 6, 0.55); color: var(--cm-muted, #d2c4a8); border-radius: var(--cm-radius-panel, 12px); padding: 8px 10px; font-size: 0.78em; }
    .bim-warn:empty { display: none; }
    .bim-viewer-panel { margin-top: 10px; border: 1px solid rgba(126, 196, 255, 0.22); border-radius: 10px; background: rgba(8, 16, 28, 0.72); overflow: hidden; }
    .bim-viewer-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px 6px; border-bottom: 1px solid rgba(126, 196, 255, 0.12); }
    .bim-viewer-panel__title { font-size: 0.92em; color: #e8f4ff; font-weight: 600; }
    .bim-viewer-panel__status { margin-top: 4px; font-size: 0.74em; color: #9eb6cc; }
    .bim-viewer-panel__status[data-ok="1"] { color: #a8e6bf; }
    .bim-viewer-panel__close { min-width: 36px; padding: 6px 10px; }
    .bim-viewer-stage { position: relative; height: min(52vh, 420px); min-height: 260px; background: linear-gradient(180deg, #c7deef 0%, #b8d4ea 100%); }
    .bim-viewer-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
    .bim-viewer-tree { position: absolute; top: 10px; left: 10px; width: min(220px, 42vw); max-height: calc(100% - 20px); overflow: auto; background: rgba(10, 18, 30, 0.82); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 8px; z-index: 2; }
    .bim-viewer-tree__title { font-size: 0.72em; color: #9bc2e5; margin-bottom: 6px; }
    .bim-viewer-tree__list { display: flex; flex-direction: column; gap: 4px; }
    .bim-viewer-tree__item { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #e7f2ff; border-radius: 6px; padding: 6px 8px; font-size: 0.72em; cursor: pointer; }
    .bim-viewer-tree__item.is-active { border-color: rgba(126, 231, 255, 0.55); background: rgba(70, 130, 180, 0.28); color: #fff; }
    .bim-viewer-tree__empty { list-style: none; font-size: 0.72em; color: #9eb6cc; padding: 4px 2px; }
    .bim-viewer-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid rgba(126, 196, 255, 0.12); background: rgba(6, 12, 22, 0.55); }
    .bim-viewer-toolbar__btn { border: 1px solid rgba(126, 196, 255, 0.28); background: rgba(255,255,255,0.05); color: #dff5ff; border-radius: 999px; padding: 6px 10px; font-size: 0.72em; cursor: pointer; }
    .bim-viewer-toolbar__btn.is-active { border-color: rgba(126, 231, 255, 0.55); background: rgba(70, 130, 180, 0.28); }
    .bim-viewer-toolbar__btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .bim-viewer-cut { display: flex; flex-direction: column; gap: 4px; margin-left: auto; min-width: min(220px, 100%); font-size: 0.72em; color: #cfe7ff; }
    .bim-viewer-cut input[type="range"] { width: 100%; }
    .bim-viewer-note { margin: 0; padding: 0 12px 10px; font-size: 0.72em; color: #8fa8bf; }
    @media (max-width: 720px) {
        .bim-viewer-cut { margin-left: 0; width: 100%; }
        .bim-viewer-tree { width: min(180px, 56vw); }
    }
    .bim-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
    .bim-estimate-wrap { max-height: 200px; overflow: auto; border: 0; border-top: 1px solid rgba(135, 220, 170, 0.12); border-radius: 0; margin-top: 8px; background: transparent; }
    .bim-rule-wrap { margin-top: 8px; border: 0; border-top: 1px solid rgba(120, 180, 255, 0.1); border-radius: 0; padding: 8px 0; background: transparent; }
    .bim-rule-grid { display: grid; grid-template-columns: 1.1fr 1fr auto auto; gap: 8px; align-items: end; }
    .bim-rule-grid input, .bim-rule-grid select { width: 100%; padding: 9px; background: rgba(10, 20, 36, 0.56); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 6px; box-sizing: border-box; }
    .bim-rule-table { max-height: 150px; overflow: auto; margin-top: 8px; border: 0; border-top: 1px solid rgba(120, 180, 255, 0.08); border-radius: 0; background: transparent; }
    .bim-rule-table table { margin-top: 0; }
    .bim-unmatched-wrap { margin-top: 8px; border: 0; border-top: 1px solid var(--cm-line); border-radius: 0; padding: 8px 0; background: transparent; }
    .bim-unmatched-grid { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: end; }
    .bim-unmatched-grid select { width: 100%; padding: 9px; background: rgba(10, 20, 36, 0.56); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 6px; box-sizing: border-box; }
    .audit-wrap { margin-top: 8px; border: 0; border-top: 1px solid rgba(160, 255, 210, 0.1); border-radius: 0; padding: 8px 0; background: transparent; }
    .audit-table { max-height: 150px; overflow: auto; border: 0; border-top: 1px solid rgba(160, 255, 210, 0.08); border-radius: 0; margin-top: 8px; background: transparent; }
    .audit-table table { margin-top: 0; }
    .snapshot-wrap { margin-top: 8px; border: 0; border-top: 1px solid var(--cm-line); border-radius: 0; padding: 8px 0; background: transparent; }
    .snapshot-table { max-height: 160px; overflow: auto; border: 0; border-top: 1px solid var(--cm-line); border-radius: 0; margin-top: 8px; background: transparent; }
    .snapshot-table table { margin-top: 0; }
    .member-wrap { margin-top: 8px; border: 0; border-top: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 8px 0; background: transparent; }
    .member-table { max-height: 140px; overflow: auto; border: 0; border-top: 1px solid rgba(255,255,255,0.08); border-radius: 0; margin-top: 8px; background: transparent; }
    .member-table table { margin-top: 0; }
    .unit-wrap { margin-top: 8px; border: 0; border-top: 1px solid rgba(180, 180, 255, 0.1); border-radius: 0; padding: 8px 0; background: transparent; }
    .unit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
    .unit-grid input, .unit-grid select { width: 100%; padding: 9px; background: rgba(10, 20, 36, 0.56); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 6px; box-sizing: border-box; }
    .security-lock { position: fixed; inset: 0; z-index: 99999; background: rgba(3, 8, 18, 0.92); display: none; align-items: flex-start; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .security-lock.show { display: flex; }
    .security-panel { width: min(420px, 92vw); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; background: rgba(12, 22, 38, 0.96); box-shadow: 0 12px 30px rgba(0,0,0,0.35); padding: 16px; margin: 0 auto; }
    .security-panel h3 { margin: 0 0 8px; color: #ffd287; letter-spacing: 0.5px; }
    .security-panel p { margin: 0 0 10px; color: #c4d9ee; font-size: 0.86em; line-height: 1.45; }
    .security-auth-tabs { display: flex; gap: 8px; margin: 0 0 10px; }
    .security-auth-tab {
        flex: 1;
        min-height: 36px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(8, 16, 28, 0.85);
        color: #cfe0f3;
        font-weight: 700;
        cursor: pointer;
    }
    .security-auth-tab.is-active {
        border-color: var(--cm-line);
        background: linear-gradient(135deg, rgba(80, 54, 20, 0.95), rgba(36, 28, 14, 0.95));
        color: #ffe2b0;
    }
    .billing-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
    .billing-block-title { color: #9deaff; font-size: 0.82em; font-weight: 700; margin-bottom: 6px; }
    .billing-block-desc { color: #8aa3bd; font-size: 0.72em; line-height: 1.4; margin: 0 0 8px; }
    .billing-block-desc--tight { margin-top: -4px; margin-bottom: 8px; opacity: 0.95; }
    .billing-block-desc code { font-size: 0.95em; color: #c8e6ff; }
    .billing-tiers-host { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
    .billing-tier-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78em; }
    .billing-tier-label { color: #e6f0ff; }
    .billing-tier-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .billing-link { display: inline-block; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95em; }
    .billing-link-stripe { background: linear-gradient(135deg, #635bff, #0a2540); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
    .billing-iap-hint { color: #a8c6ff; font-size: 0.9em; }
    .billing-muted { color: #7a8fa3; font-size: 0.75em; margin: 0; }
    .billing-stripe-session-preview {
        margin: 0 0 8px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(99, 91, 255, 0.35);
        background: rgba(16, 22, 42, 0.75);
    }
    .billing-stripe-session-preview-label {
        display: block;
        font-size: 0.68em;
        font-weight: 700;
        color: #a8c6ff;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
    }
    .billing-stripe-session-preview-code {
        display: block;
        font-size: 0.7em;
        line-height: 1.35;
        word-break: break-all;
        color: #dff5ff;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .billing-stripe-session-input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.82em; }
    .billing-manual-row { display: flex; flex-direction: column; gap: 8px; }
    .billing-redeem-btn { width: 100%; }

    .billing-status-chip {
        max-width: min(46vw, 260px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border: 1px solid rgba(167, 139, 250, 0.4) !important;
        background: rgba(24, 18, 48, 0.55) !important;
        color: #d4c4ff !important;
        font-size: 0.72em !important;
        font-weight: 600;
    }
    .security-input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22); background: rgba(4, 10, 20, 0.84); color: #fff; box-sizing: border-box; margin-bottom: 10px; }
    .security-hint { font-size: 0.78em; color: #9fb9d3; min-height: 1.2em; }
    .security-api-fix-btn { width: 100%; margin: 6px 0 4px; font-size: 0.82em; box-sizing: border-box; }
    .security-self-delete-btn { width: 100%; margin: 4px 0 4px; font-size: 0.8em; box-sizing: border-box; opacity: 0.96; border-style: dashed; border-color: rgba(255, 140, 140, 0.5); color: #ffd6d6; }
    .security-self-delete-hint { margin: 0 0 10px; font-size: 0.68em; line-height: 1.35; color: #9a8a8a; }
    .security-offline-demo-btn { width: 100%; margin: 0 0 10px; font-size: 0.78em; box-sizing: border-box; opacity: 0.92; border-style: dashed; }
    .security-onboarding-hint { margin: 0 0 10px; font-size: 0.72em; line-height: 1.4; color: #8aa3bd; }
    .security-api-url-hint { border-left: 3px solid var(--cm-line); padding-left: 10px; color: #c5d4e8; }
    .security-api-url-hint code { font-size: 0.92em; color: #b8e0ff; }
    .free-war-room-card {
        margin: 8px 0 14px;
        padding: 12px 12px 10px;
        border-radius: 12px;
        border: 1px solid rgba(0, 230, 118, 0.48);
        background: linear-gradient(135deg, rgba(0, 102, 76, 0.35), rgba(14, 33, 54, 0.58));
        box-shadow: 0 8px 18px rgba(0, 120, 88, 0.22);
    }
    .member-chat-spotlight {
        position: relative;
        margin: 12px 0 18px;
        padding: 16px 16px 14px;
        border-radius: 18px;
        border: 1px solid rgba(110, 210, 255, 0.46);
        background:
            linear-gradient(145deg, rgba(14, 42, 62, 0.94), rgba(9, 32, 44, 0.96) 48%, rgba(12, 25, 42, 0.98)),
            radial-gradient(circle at 12% 0%, rgba(122, 216, 255, 0.14), transparent 52%);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 14px 34px rgba(0, 20, 40, 0.3);
    }
    .member-chat-spotlight::before {
        content: '';
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 5px;
        border-radius: 0 6px 6px 0;
        background: var(--cm-accent);
        box-shadow: 0 0 16px rgba(122, 216, 255, 0.55);
    }
    @keyframes member-chat-spotlight-glow {
        0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 14px 34px rgba(0, 40, 80, 0.34), 0 0 28px rgba(78, 180, 255, 0.16); }
        50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 16px 38px rgba(0, 40, 80, 0.38), 0 0 40px rgba(78, 180, 255, 0.28); }
    }
    .free-war-room-card-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        color: #dcffed;
        font-size: 0.92em;
        margin-bottom: 6px;
    }
    .member-chat-spotlight .free-war-room-card-head strong {
        font-size: var(--type-page-title, 1.2rem);
        line-height: 1.3;
        letter-spacing: 0.01em;
        color: #f7fbff;
        text-shadow: none;
    }
    .member-chat-quick-head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 4px 0 8px;
    }
    .member-chat-channel-tabs {
        display: flex;
        gap: 4px;
        margin: 0 0 var(--space-4, 16px);
        padding: 4px;
        border: 1px solid rgba(130, 190, 255, 0.18);
        border-radius: 12px;
        background: rgba(4, 12, 24, 0.58);
    }
    .member-chat-tab {
        flex: 1 1 0;
        min-height: 40px;
        border: 1px solid transparent;
        background: transparent;
        color: #b9cde0;
        border-radius: 9px;
        padding: 7px 6px;
        font-size: var(--type-meta, 0.82rem);
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .member-chat-unread-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.25em;
        min-height: 1.25em;
        padding: 0 6px;
        border-radius: 999px;
        background: #ff4d6d;
        color: #fff;
        font-size: 0.72em;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: 0;
    }
    .member-chat-unread-badge[hidden] {
        display: none !important;
    }
    .member-chat-tab.is-active {
        border-color: rgba(120, 220, 255, 0.48);
        background: #245b78;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 20, 36, 0.3);
    }
    .member-chat-panel.is-public-lobby #memberChatLocalTools {
        display: none;
    }
    .member-chat-quick-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 0;
        background: transparent;
        color: #c9e7f7;
        font-size: var(--type-meta, 0.82rem);
        font-weight: 800;
        letter-spacing: 0.02em;
        box-shadow: none;
    }
    .member-chat-quick-badge::before {
        content: '💬';
        font-size: 1.05em;
    }
    .member-chat-quick-input {
        min-height: 46px;
        margin-bottom: 0;
        padding: 12px 14px;
        font-size: 0.95em;
        border: 2px solid rgba(122, 216, 255, 0.45);
        background: rgba(4, 12, 24, 0.88);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 6px 18px rgba(0, 0, 0, 0.22);
    }
    .member-chat-quick-input:focus {
        outline: none;
        border-color: rgba(122, 216, 255, 0.85);
        box-shadow: 0 0 0 3px rgba(122, 216, 255, 0.22), 0 8px 22px rgba(0, 80, 140, 0.28);
    }
    .member-chat-quick-send {
        min-height: 46px;
        padding: 0 18px;
        font-size: 0.92em;
        font-weight: 800;
        border: 2px solid rgba(122, 216, 255, 0.72);
        color: #062033;
        background: linear-gradient(135deg, #9ee8ff, #5ec4ff 55%, #38a8ef);
        box-shadow: 0 8px 20px rgba(56, 168, 239, 0.35);
    }
    .member-chat-quick-send:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }
    .free-war-room-status {
        border: 1px solid rgba(184, 255, 219, 0.38);
        border-radius: 999px;
        padding: 3px 9px;
        font-size: var(--type-meta, 0.82rem);
        font-weight: 750;
        color: #d7ffe9;
        background: rgba(3, 25, 18, 0.45);
    }
    .free-war-room-card-note {
        margin: 0 0 var(--space-3, 12px);
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-hint, 0.78rem);
        line-height: var(--leading-body, 1.5);
    }
    .member-chat-quick-row,
    .member-chat-quick-compose,
    .free-war-room-actions,
    .member-chat-compose {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) auto;
        gap: 8px;
        align-items: center;
        margin-top: 8px;
        flex: 0 0 auto;
        min-height: 52px;
    }
    .member-chat-compose #memberChatMessageInput,
    #memberChatMessageInput.member-chat-input {
        min-height: 44px;
        height: 44px;
        box-sizing: border-box;
    }
    .free-war-room-actions {
        margin-top: var(--space-4, 16px);
        padding-top: var(--space-4, 16px);
        border-top: 1px solid rgba(148, 188, 220, 0.14);
    }
    .member-chat-voice-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    .member-chat-voice-coach-hint {
        flex: 1 1 100%;
        position: relative;
        margin: 0 0 2px;
        padding: 8px 28px 8px 12px;
        border-radius: 12px;
        background: rgba(11, 22, 38, 0.92);
        border: 1px solid rgba(255,255,255,0.2);
        color: #eaf6ff;
        font-size: 0.8em;
        line-height: 1.4;
        box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    }
    .member-chat-voice-coach-hint[hidden] { display: none !important; }
    .member-chat-voice-coach-hint__text { display: block; }
    .member-chat-voice-coach-hint__dismiss {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #8dbad8;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        padding: 2px 4px;
    }
    .member-chat-voice-coach-hint__dismiss:hover { color: white; }
    .member-chat-voice-btn {
        border-color: rgba(255, 138, 176, 0.72);
        color: #ffe9f0;
        background: linear-gradient(135deg, rgba(196, 58, 108, 0.42), rgba(72, 24, 52, 0.52));
        min-width: 132px;
        touch-action: none;
        user-select: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .member-chat-voice-mic-icon {
        display: inline-block;
        width: 12px;
        height: 18px;
        border-radius: 6px 6px 3px 3px;
        background: currentColor;
        position: relative;
        flex: 0 0 auto;
    }
    .member-chat-voice-mic-icon::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -5px;
        width: 14px;
        height: 8px;
        border: 2px solid currentColor;
        border-top: 0;
        border-radius: 0 0 10px 10px;
        transform: translateX(-50%);
    }
    .member-chat-voice-mic-icon::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -9px;
        width: 2px;
        height: 5px;
        background: currentColor;
        transform: translateX(-50%);
    }
    .member-chat-voice-mic-label {
        line-height: 1.2;
    }
    .member-chat-voice-btn.is-recording {
        border-color: rgba(255, 96, 120, 0.95);
        box-shadow: 0 0 18px rgba(255, 72, 112, 0.35);
        animation: member-chat-voice-pulse 1s ease-in-out infinite;
    }
    @keyframes member-chat-voice-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.03); }
    }
    .member-chat-voice-status {
        color: #ffb8cc;
        font-size: 0.78em;
        font-weight: 700;
    }
    .member-chat-voice-unavailable {
        margin: 6px 0 0;
        font-size: var(--type-hint, 0.78rem);
        line-height: var(--leading-body, 1.45);
        color: #8ea0b3;
        letter-spacing: 0.1px;
    }
    .member-chat-voice-bubble {
        min-width: 132px;
    }
    .member-chat-voice-play {
        width: 100%;
        border: 0;
        border-radius: 999px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.12);
        color: inherit;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
        text-align: left;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .member-chat-voice-play:hover {
        background: rgba(255, 255, 255, 0.18);
    }
    .member-chat-voice-play-icon {
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid currentColor;
        flex: 0 0 auto;
    }
    .member-chat-preview-voice {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .member-chat-voice-play-text {
        line-height: 1.2;
    }
    .member-chat-quick-hint,
    .member-chat-identity,
    .member-chat-empty {
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-meta, 0.82rem);
        line-height: var(--leading-body, 1.5);
        font-weight: 600;
    }
    .member-chat-quick-hint a {
        color: var(--cm-accent);
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .member-chat-notify-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        margin: 6px 0 2px;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid rgba(130, 180, 220, 0.28);
        background: rgba(18, 42, 64, 0.45);
    }
    .member-chat-notify-row[hidden] {
        display: none !important;
    }
    .member-chat-notify-status {
        margin: 0;
        flex: 1 1 220px;
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-meta, 0.82rem);
        line-height: var(--leading-body, 1.45);
        font-weight: 650;
    }
    .member-chat-notify-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .free-war-room-btn,
    .member-chat-btn {
        min-height: var(--tap-target, 46px);
        border-color: rgba(130, 180, 220, 0.3);
        color: #d7e6f2;
        background: rgba(24, 54, 78, 0.5);
        font-weight: 750;
        white-space: nowrap;
    }
    .free-war-room-btn--alt {
        border-color: rgba(180, 210, 235, 0.34);
        color: #e8f2fa;
        background: rgba(255, 255, 255, 0.055);
        box-shadow: none;
        font-weight: 800;
    }
    .free-war-room-btn--primary {
        grid-column: 1 / -1;
        min-height: 50px;
        font-size: var(--type-body, 0.9rem);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(158, 232, 255, 0.82);
        color: #04131f;
        background: linear-gradient(135deg, #b8ecff, #71cef5 52%, #49afe3);
        box-shadow: 0 8px 18px rgba(35, 135, 190, 0.3);
    }
    .free-war-room-btn--primary:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }
    .member-chat-panel {
        margin: 0 0 14px;
        padding: 14px;
        border-radius: var(--radius-md, 16px);
        border: 1px solid rgba(122, 216, 255, 0.34);
        background: linear-gradient(165deg, rgba(14, 32, 50, 0.96), rgba(9, 17, 30, 0.98));
        backdrop-filter: blur(18px) saturate(128%);
        -webkit-backdrop-filter: blur(18px) saturate(128%);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 36px rgba(78, 180, 230, 0.14);
    }
    .member-chat-panel[hidden] { display: none !important; }
    .member-chat-panel-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        color: #e8f5ff;
        font-size: var(--type-section-title, 1rem);
        font-weight: 800;
        margin-bottom: 8px;
    }
    .member-chat-panel-head #memberChatToggleBtn {
        margin-left: auto;
    }
    .member-chat-status {
        border: 1px solid rgba(162, 211, 255, 0.46);
        border-radius: 999px;
        padding: 3px 9px;
        color: #dceeff;
        background: rgba(8, 24, 45, 0.55);
        font-size: var(--type-meta, 0.82rem);
        font-weight: 750;
    }
    .member-chat-tools {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 0.9fr) auto;
        gap: 8px;
        align-items: center;
        margin: var(--space-3, 12px) 0;
        padding: var(--space-3, 12px);
        border: 1px solid rgba(148, 188, 220, 0.12);
        border-radius: 12px;
        background: rgba(4, 12, 22, 0.28);
    }
    .member-chat-select {
        width: 100%;
        min-height: 38px;
        color: #fff;
        background: rgba(10, 20, 36, 0.72);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 10px;
        padding: 8px 10px;
    }
    .member-chat-btn--ghost {
        border-color: rgba(148, 188, 220, 0.16);
        color: #aebfce;
        background: rgba(255, 255, 255, 0.02);
        box-shadow: none;
    }
    #memberChatSendBtn {
        border-color: rgba(122, 216, 255, 0.72);
        color: var(--cm-cta-text);
        background: var(--cm-cta);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    }
    .member-chat-message-list {
        min-height: 220px;
        max-height: 380px;
        overflow-y: auto;
        overflow-x: hidden;
        overflow-anchor: none;
        border: 2px solid rgba(122, 216, 255, 0.28);
        border-radius: var(--radius-md, 16px);
        padding: 14px 12px;
        background:
            linear-gradient(180deg, rgba(6, 12, 22, 0.62), rgba(8, 16, 28, 0.48)),
            radial-gradient(circle at 50% 0%, rgba(78, 180, 230, 0.12), transparent 55%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        scroll-behavior: auto;
    }
    .member-chat-quick-preview {
        margin-top: 10px;
        min-height: 108px;
        max-height: 200px;
        overflow: hidden auto;
        border: 2px solid rgba(122, 216, 255, 0.32);
        border-radius: var(--radius-md, 16px);
        padding: 12px 14px;
        background:
            linear-gradient(180deg, rgba(6, 12, 22, 0.58), rgba(8, 16, 28, 0.44)),
            radial-gradient(circle at 18% 0%, rgba(122, 216, 255, 0.14), transparent 58%);
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .member-chat-quick-preview:empty::before {
        content: '群組大廳預覽：送出第一則訊息後，泡泡對話會顯示在這裡';
        color: #b8d4ef;
        font-size: 0.82em;
        line-height: 1.5;
        font-weight: 600;
    }
    .member-chat-day-divider {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 8px 0 4px;
        color: #8fa8c4;
        font-size: 0.68em;
        letter-spacing: 0.4px;
    }
    .member-chat-day-divider::before,
    .member-chat-day-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(126, 200, 232, 0.22), transparent);
    }
    .member-chat-system {
        align-self: center;
        max-width: 92%;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid rgba(126, 200, 232, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #a8c0d8;
        font-size: 0.72em;
        text-align: center;
        line-height: 1.4;
    }
    .member-chat-row {
        display: flex;
        width: 100%;
        gap: 8px;
        align-items: flex-end;
    }
    .member-chat-row.is-enter {
        animation: member-chat-enter 0.32s ease;
    }
    .member-chat-row.is-compact {
        margin-top: -2px;
    }
    .member-chat-row.is-compact .member-chat-avatar {
        visibility: hidden;
    }
    .member-chat-row.is-compact .member-chat-sender {
        display: none;
    }
    @keyframes member-chat-enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .member-chat-row.me {
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    .member-chat-row.other {
        justify-content: flex-start;
    }
    .member-chat-avatar {
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 0.72em;
        font-weight: 800;
        color: #eef6ff;
        background: var(--chat-avatar-bg, linear-gradient(135deg, #3a6288, #264868));
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        letter-spacing: 0.3px;
    }
    .member-chat-row.me .member-chat-avatar {
        background: linear-gradient(135deg, rgba(230, 160, 69, 0.85), rgba(180, 120, 48, 0.78));
        border-color: rgba(240, 200, 120, 0.35);
        color: #1a1206;
    }
    .member-chat-bubble-wrap {
        display: flex;
        flex-direction: column;
        max-width: min(78%, 440px);
        gap: 4px;
    }
    .member-chat-row.me .member-chat-bubble-wrap {
        align-items: flex-end;
    }
    .member-chat-row.other .member-chat-bubble-wrap {
        align-items: flex-start;
    }
    .member-chat-sender {
        font-size: 0.68em;
        color: #8eb8dc;
        padding: 0 8px;
        line-height: 1.2;
        font-weight: 700;
    }
    .member-chat-bubble {
        position: relative;
        padding: 10px 13px 8px;
        border-radius: 18px;
        word-break: break-word;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    }
    .member-chat-row.me .member-chat-bubble {
        border-bottom-right-radius: 6px;
        background: linear-gradient(145deg, rgba(42, 118, 168, 0.88), rgba(24, 72, 112, 0.82));
        border: 1px solid rgba(126, 200, 232, 0.28);
    }
    .member-chat-row.me .member-chat-bubble::after {
        content: '';
        position: absolute;
        right: -5px;
        bottom: 10px;
        width: 10px;
        height: 10px;
        background: rgba(24, 72, 112, 0.82);
        border-right: 1px solid rgba(126, 200, 232, 0.22);
        border-bottom: 1px solid rgba(126, 200, 232, 0.12);
        transform: rotate(-45deg);
        border-radius: 0 0 3px 0;
    }
    .member-chat-row.other .member-chat-bubble {
        border-bottom-left-radius: 6px;
        background: linear-gradient(145deg, rgba(18, 34, 54, 0.88), rgba(12, 24, 40, 0.84));
        border: 1px solid rgba(126, 200, 232, 0.18);
    }
    .member-chat-row.other .member-chat-bubble::before {
        content: '';
        position: absolute;
        left: -5px;
        bottom: 10px;
        width: 10px;
        height: 10px;
        background: rgba(12, 24, 40, 0.84);
        border-left: 1px solid rgba(126, 200, 232, 0.14);
        border-bottom: 1px solid rgba(126, 200, 232, 0.08);
        transform: rotate(45deg);
        border-radius: 0 0 0 3px;
    }
    .member-chat-text {
        color: #f8fbff;
        font-size: 0.96em;
        line-height: 1.52;
        white-space: pre-wrap;
    }
    .member-chat-meta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        margin-top: 5px;
    }
    .member-chat-time {
        font-size: 0.62em;
        color: rgba(232, 245, 255, 0.62);
        line-height: 1.2;
    }
    .member-chat-tick {
        font-size: 0.58em;
        color: rgba(198, 168, 98, 0.88);
        letter-spacing: 0.2px;
    }
    .member-chat-row.other .member-chat-time {
        color: rgba(198, 220, 244, 0.58);
    }
    .member-chat-row.other .member-chat-tick {
        color: rgba(126, 200, 232, 0.72);
    }
    .member-chat-preview-row {
        display: flex;
        gap: 8px;
        align-items: flex-end;
    }
    .member-chat-preview-row.me {
        flex-direction: row-reverse;
    }
    .member-chat-preview-bubble {
        max-width: 88%;
        padding: 9px 12px;
        border-radius: 16px;
        font-size: 0.88em;
        line-height: 1.45;
        color: #eef6ff;
        border: 1px solid rgba(126, 200, 232, 0.22);
        background: rgba(12, 24, 40, 0.78);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }
    .member-chat-preview-row.me .member-chat-preview-bubble {
        background: linear-gradient(135deg, rgba(122, 216, 255, 0.38), rgba(56, 168, 239, 0.32));
        border-color: rgba(122, 216, 255, 0.45);
        color: #04131f;
        font-weight: 600;
    }
    .member-chat-calc-share-btn {
        width: 100%;
        margin: 0 0 12px;
        border-color: rgba(198, 168, 98, 0.42);
        color: #ffe8c8;
        background: linear-gradient(135deg, rgba(58, 92, 132, 0.62), rgba(28, 52, 82, 0.52));
        font-weight: 800;
    }
    .member-chat-row.calc-card-row .member-chat-bubble-wrap {
        max-width: min(92%, 480px);
    }
    .member-chat-calc-card {
        padding: 12px 14px 10px;
        border-radius: 18px;
        background: linear-gradient(155deg, rgba(18, 34, 54, 0.92), rgba(10, 20, 36, 0.88));
        border: 1px solid rgba(126, 200, 232, 0.24);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 24px rgba(78, 180, 230, 0.10);
    }
    .member-chat-row.me .member-chat-calc-card {
        background: linear-gradient(155deg, rgba(24, 58, 92, 0.92), rgba(16, 36, 62, 0.88));
        border-color: rgba(126, 200, 232, 0.30);
    }
    .member-chat-row.calc-card-row.is-deduct .member-chat-calc-card {
        border-color: rgba(255, 140, 140, 0.32);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 20px rgba(255, 100, 100, 0.08);
    }
    .member-chat-calc-kicker {
        font-size: 0.68em;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--accent, #6ec9eb);
        font-weight: 800;
        margin-bottom: 4px;
    }
    .member-chat-calc-title {
        color: #f3f8fc;
        font-size: 0.98em;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 10px;
    }
    .member-chat-calc-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        margin: 0 0 10px;
    }
    .member-chat-calc-grid > div {
        min-width: 0;
    }
    .member-chat-calc-grid dt {
        margin: 0 0 2px;
        font-size: 0.62em;
        color: #8fa8c4;
        letter-spacing: 0.3px;
    }
    .member-chat-calc-grid dd {
        margin: 0;
        font-size: 0.82em;
        color: #eef6ff;
        font-weight: 700;
        line-height: 1.35;
        word-break: break-word;
    }
    .member-chat-calc-subtotal {
        color: var(--highlight-soft, #f0c878) !important;
        font-size: 0.9em !important;
    }
    .member-chat-calc-formula,
    .member-chat-calc-note {
        font-size: 0.72em;
        line-height: 1.45;
        color: #b8cde0;
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(126, 200, 232, 0.10);
        margin-bottom: 8px;
    }
    .member-chat-calc-source {
        font-size: 0.64em;
        color: #8fa8c4;
        margin-bottom: 6px;
    }
    .member-chat-preview-calc {
        border-color: rgba(198, 168, 98, 0.28) !important;
        background: rgba(18, 36, 58, 0.78) !important;
        font-weight: 700;
    }
    .security-watermark { position: fixed; right: 10px; bottom: 10px; z-index: 9997; pointer-events: none; opacity: 0.36; font-size: 11px; color: #d5e7ff; background: rgba(8, 16, 28, 0.55); border: 1px dashed rgba(173, 216, 255, 0.3); border-radius: 6px; padding: 5px 8px; letter-spacing: 0.3px; }
    .price-input { border-color: var(--money) !important; color: var(--money) !important; font-weight: bold; }
    .preview-bar { margin-top: 16px; padding: 16px 18px; background: rgba(255,255,255,0.015); border-radius: 0; border: 0; border-top: 1px solid rgba(94, 203, 255, 0.18); font-size: 0.9em; box-shadow: none; }
    .preview-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .preview-bar-kicker { color: #9ad4ff; font-size: 0.72em; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
    .preview-unit-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(94, 203, 255, 0.2); background: rgba(94, 203, 255, 0.03); color: #dff5ff; font-size: 0.74em; font-weight: 800; }
    .preview-bar-main { color: #eef9ff; font-weight: 800; font-size: 1.02em; line-height: 1.6; }
    .preview-bar-sub { margin-top: 8px; color: #ffd9a1; font-weight: 700; font-size: 0.88em; line-height: 1.45; }
    .preview-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
    .preview-summary-card { border: 0; border-radius: 0; padding: 10px 8px; background: transparent; box-shadow: none; }
    .preview-summary-card--accent { border-top: 1px solid var(--cm-line); background: transparent; }
    .preview-summary-label { display: block; font-size: 0.72em; color: #9fc0da; margin-bottom: 6px; letter-spacing: 0.3px; }
    .preview-summary-card strong { display: block; color: #eef8ff; font-size: 1.04em; }
    .btn-add { min-height: 54px; background: var(--cm-cta); color: var(--cm-cta-text); font-size: 1.05rem; margin: 20px 0 16px; border: none; font-weight: 900; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); padding: 13px 16px; cursor: pointer; width: 100%; border-radius: 12px; transition: 0.2s; }
    .btn-add:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32); }
    .btn-add:active { transform: translateY(0) scale(1); opacity: 0.95; }
    .btn-add:disabled { cursor: not-allowed; opacity: 0.55; filter: grayscale(0.2); box-shadow: none; transform: none; }
    table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.84em; margin-top: 16px; overflow: hidden; }
    th { background: rgba(255,255,255,0.05); color: var(--highlight); padding: 11px 10px; border-bottom: 1px solid var(--line-soft); letter-spacing: 0.5px; font-weight: 700; }
    td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center; color: #e4eef8; }
    tbody tr:hover { background: rgba(255,255,255,0.04); }
    .footer-bar { background: rgba(255,255,255,0.01); padding: 16px 8px; border-radius: 0; border: 0; border-top: 1px solid rgba(255,152,0,0.18); margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; backdrop-filter: none; box-shadow: none; }
    .total-budget { grid-column: span 4; text-align: center; font-size: 1.5em; color: var(--money); font-weight: bold; border-top: 1px solid var(--line-soft); padding-top: 15px; }
    #toast { visibility: hidden; background: var(--highlight); color: black; padding: 12px 25px; position: fixed; left: 50%; bottom: 50px; transform: translateX(-50%); border-radius: 50px; font-weight: bold; z-index: 9999; }
    #toast.show { visibility: visible; animation: fadeInUp 0.5s; }
    @keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

    /* Electrical mode panel (V1.0) */
    .electrical-mode-page .electrical-mode-note {
        margin: 0 0 14px;
        font-size: 0.82em;
        line-height: 1.55;
        color: #b8cde0;
    }
    .electrical-mode-page .electrical-mode-note code {
        color: #94e2d5;
        font-size: 0.95em;
    }
    .electrical-panel {
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-width: 700px;
    }
    .electrical-section {
        background: rgba(24, 24, 37, 0.92);
        padding: 14px 15px;
        border-radius: 8px;
        border-left: 4px solid #a6e3a1;
    }
    .electrical-section--blue { border-left-color: #89b4fa; }
    .electrical-section--orange { border-left-color: #fab387; }
    .electrical-section-title {
        font-weight: 800;
        margin-bottom: 10px;
        color: #f5e0dc;
        font-size: 0.92em;
    }
    .electrical-section label {
        display: block;
        margin: 0 0 8px;
        font-size: 0.82em;
        color: #cdd6f4;
    }
    .electrical-input,
    .electrical-select {
        width: 100%;
        padding: 10px;
        background: rgba(49, 50, 68, 0.95);
        border: 1px solid #45475a;
        border-radius: 6px;
        color: #cdd6f4;
        box-sizing: border-box;
        font-size: 0.88em;
        margin-bottom: 10px;
    }
    .electrical-select { margin-bottom: 0; }
    .electrical-power-preview {
        margin-top: 4px;
        padding: 8px 10px;
        border-radius: 6px;
        background: rgba(166, 227, 161, 0.08);
        border: 1px solid rgba(166, 227, 161, 0.22);
        color: #a6e3a1;
        font-size: 0.84em;
        font-weight: 700;
    }
    .electrical-radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
        margin-top: 4px;
    }
    .electrical-radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        font-size: 0.84em;
        cursor: pointer;
    }
    .electrical-download-btn {
        width: 100%;
        margin-top: 2px;
        background: linear-gradient(135deg, #a6e3a1, #94e2d5) !important;
        color: #11111b !important;
        font-weight: 900 !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(166, 227, 161, 0.22);
    }
    .electrical-download-btn:hover {
        filter: brightness(1.05);
    }
    .electrical-footer-note {
        text-align: center;
        font-size: 0.68em;
        color: #6c7086;
        margin-top: 2px;
    }

    /* Field simulators (stake + electrical) */
    .field-simulator-note,
    .field-simulator-upload-label {
        display: block;
        margin: 0 0 8px;
        font-size: 0.82em;
        line-height: 1.5;
        color: #b8cde0;
    }
    .field-simulator-file {
        width: 100%;
        margin-bottom: 10px;
    }
    .field-simulator-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    .field-simulator-toolbar--secondary {
        margin-bottom: 6px;
    }
    .field-simulator-toolbar .tool-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }
    .field-simulator-op-label {
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px dashed rgba(137, 180, 250, 0.35);
        background: rgba(137, 180, 250, 0.06);
        color: #dceeff;
        font-size: 0.84em;
        line-height: 1.45;
        font-weight: 700;
    }
    .field-simulator-confirm-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        filter: grayscale(0.25);
    }
    .field-simulator-stage {
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(137, 180, 250, 0.28);
        background: #11111b;
        margin-bottom: 10px;
        position: relative;
        touch-action: none;
    }
    .field-simulator-stage--live {
        border-color: rgba(166, 227, 161, 0.45);
        box-shadow: 0 0 0 1px rgba(166, 227, 161, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.35);
    }
    .field-simulator-stage--live::after {
        content: '';
        pointer-events: none;
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 3px
        );
        opacity: 0.35;
    }
    .field-simulator-stage canvas {
        display: block;
        width: 100%;
        height: auto;
        min-height: 220px;
    }
    .field-simulator-status {
        margin-bottom: 10px;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 0.82em;
        font-weight: 700;
        border: 1px solid rgba(250, 179, 135, 0.28);
        background: rgba(250, 179, 135, 0.08);
        color: #fab387;
    }
    .field-simulator-status[data-ok="1"] {
        border-color: rgba(166, 227, 161, 0.35);
        background: rgba(166, 227, 161, 0.1);
        color: #a6e3a1;
    }
    .field-simulator-confirm-btn {
        width: 100%;
        border-color: rgba(166, 227, 161, 0.45) !important;
        color: #d8ffe0 !important;
        font-weight: 800 !important;
    }
    .openline-panel {
        margin: 0 0 14px;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid rgba(249, 226, 175, 0.32);
        background: rgba(249, 226, 175, 0.07);
    }
    .openline-panel__head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    .openline-panel__title {
        font-weight: 800;
        color: #fff1b8;
        font-size: 0.92em;
    }
    .openline-panel__note,
    .openline-panel__hint,
    .openline-panel__status,
    .openline-panel__spans {
        font-size: 0.8em;
        line-height: 1.5;
        color: #e8dcc0;
        margin: 0 0 8px;
    }
    .openline-panel__hint {
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px dashed rgba(137, 180, 250, 0.35);
        background: rgba(17, 17, 27, 0.35);
        color: #dceeff;
        font-weight: 700;
    }
    .openline-auto-btn {
        border-color: rgba(137, 220, 255, 0.72) !important;
        color: #dff8ff !important;
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(166, 227, 161, 0.12)) !important;
        font-weight: 800 !important;
    }
    .openline-auto-warning {
        margin: 0 0 8px;
        padding: 7px 9px;
        border-left: 3px solid var(--cm-line);
        background: var(--cm-line);
        color: #ffe7c7;
        font-size: 0.76em;
        line-height: 1.45;
    }
    .openline-panel__row {
        display: grid;
        grid-template-columns: minmax(8em, auto) minmax(6em, 1fr);
        gap: 6px 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    .openline-panel__row label {
        font-size: 0.78em;
        color: #ffd59c;
        font-weight: 700;
    }
    .openline-table-wrap {
        max-height: 280px;
        margin-top: 8px;
    }
    .openline-steps {
        font-size: 0.78em;
        line-height: 1.45;
        color: #d7e9ff;
    }

    .annotate-panel {
        margin: 0 0 14px;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid rgba(137, 180, 250, 0.38);
        background: rgba(137, 180, 250, 0.08);
    }
    .annotate-panel__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }
    .annotate-panel__title {
        font-weight: 800;
        color: #dceeff;
        font-size: 0.92em;
    }
    .annotate-panel__chip {
        font-size: 0.72em;
        font-weight: 800;
        letter-spacing: 0.04em;
        color: #89b4fa;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid rgba(137, 180, 250, 0.45);
        background: rgba(137, 180, 250, 0.12);
        white-space: nowrap;
    }
    .annotate-panel__note,
    .annotate-panel__hint,
    .annotate-panel__status,
    .annotate-panel__preview {
        font-size: 0.8em;
        line-height: 1.5;
        color: #d7e9ff;
        margin: 0 0 8px;
    }
    .annotate-panel__hint {
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px dashed rgba(137, 180, 250, 0.4);
        background: rgba(17, 17, 27, 0.4);
        color: #dceeff;
        font-weight: 700;
        min-height: 2.6em;
    }
    .annotate-panel__row {
        display: grid;
        grid-template-columns: minmax(8em, auto) minmax(6em, 1fr);
        gap: 8px 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    .annotate-panel__row label {
        font-size: 0.78em;
        color: #b8d4ff;
        font-weight: 700;
    }
    .annotate-tool-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr));
        gap: 8px;
        margin: 0 0 10px;
    }
    .annotate-tool-btn {
        min-height: 48px;
        font-weight: 800 !important;
    }
    .annotate-tool-btn.is-active,
    .annotate-panel[data-tool] .annotate-tool-btn[aria-pressed="true"] {
        border-color: var(--cm-line) !important;
        color: #fff2c4 !important;
        background: linear-gradient(135deg, var(--cm-line), rgba(137, 180, 250, 0.14)) !important;
        box-shadow: 0 0 0 1px var(--cm-line);
    }
    .annotate-actions .tool-btn {
        min-height: 44px;
    }
    .annotate-panel__preview {
        padding: 8px 10px;
        border-radius: 8px;
        background: rgba(17, 17, 27, 0.35);
        color: #ffe9a9;
        font-weight: 700;
        word-break: break-word;
    }
    #stakeFieldSimulator .field-simulator-stage canvas {
        min-height: 280px;
    }
    @media (max-width: 720px) {
        .annotate-tool-grid {
            grid-template-columns: 1fr 1fr;
        }
        .annotate-tool-btn,
        .annotate-actions .tool-btn {
            min-height: 52px;
            font-size: 0.95em;
        }
        .annotate-panel__row {
            grid-template-columns: 1fr;
            gap: 4px 0;
        }
        #stakeFieldSimulator .field-simulator-stage canvas {
            min-height: 320px;
        }
    }

    .electrical-section--sim {
        border-left-color: #cba6f7;
    }

    /* MEP dashboard V9.7 */
    .live-badge--mep {
        background: linear-gradient(135deg, rgba(203, 166, 247, 0.35), rgba(137, 180, 250, 0.28));
        border-color: rgba(203, 166, 247, 0.55);
        color: #f5e0ff;
    }
    .mep-dashboard {
        margin: 0 0 14px;
        padding: 14px 14px 12px;
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(24, 24, 37, 0.96), rgba(30, 30, 46, 0.92));
        border: 1px solid rgba(203, 166, 247, 0.28);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
        max-width: 700px;
    }
    .mep-dashboard-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }
    .mep-dashboard-badge {
        font-size: 0.78em;
        font-weight: 800;
        letter-spacing: 0.04em;
        color: #cba6f7;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid rgba(203, 166, 247, 0.45);
        background: rgba(203, 166, 247, 0.12);
    }
    .mep-align-score {
        font-size: 0.86em;
        font-weight: 800;
        color: #89dceb;
    }
    .mep-align-bar {
        height: 8px;
        border-radius: 999px;
        background: rgba(49, 50, 68, 0.95);
        overflow: hidden;
        margin-bottom: 12px;
        border: 1px solid rgba(137, 220, 235, 0.18);
    }
    .mep-align-bar__fill {
        height: 100%;
        width: 0%;
        border-radius: inherit;
        background: linear-gradient(90deg, #89b4fa, #a6e3a1, #f9e2af);
        transition: width 0.35s ease;
    }
    .mep-pipeline {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }
    .mep-pipeline-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 8px;
        border: 1px solid rgba(69, 71, 90, 0.9);
        background: rgba(30, 30, 46, 0.75);
        opacity: 0.72;
        transition: border-color 0.2s, background 0.2s, opacity 0.2s;
    }
    .mep-pipeline-step__num {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.72em;
        font-weight: 800;
        color: #cdd6f4;
        background: rgba(49, 50, 68, 0.95);
    }
    .mep-pipeline-step__label {
        font-size: 0.68em;
        text-align: center;
        line-height: 1.25;
        color: #bac2de;
        font-weight: 700;
    }
    .mep-pipeline-step--active {
        opacity: 1;
        border-color: rgba(137, 180, 250, 0.65);
        background: rgba(137, 180, 250, 0.1);
    }
    .mep-pipeline-step--done {
        opacity: 1;
        border-color: rgba(166, 227, 161, 0.55);
        background: rgba(166, 227, 161, 0.1);
    }
    .mep-pipeline-step--done .mep-pipeline-step__num {
        background: rgba(166, 227, 161, 0.22);
        color: #a6e3a1;
    }
    .mep-live-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .mep-live-card {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 10px;
        border-radius: 8px;
        background: rgba(49, 50, 68, 0.72);
        border: 1px solid rgba(69, 71, 90, 0.85);
    }
    .mep-live-card--power strong { color: #f9e2af; }
    .mep-live-card--wide {
        grid-column: span 3;
    }
    .mep-live-card__k {
        font-size: 0.68em;
        color: #9399b2;
        font-weight: 700;
    }
    .mep-live-card strong {
        font-size: 0.95em;
        color: #cdd6f4;
        font-weight: 800;
    }
    .electrical-section--purple {
        border-left-color: #cba6f7;
    }
    .electrical-section--preview {
        border-left-color: #94e2d5;
    }
    .mecha-config-preview {
        margin: 0;
        padding: 10px 12px;
        max-height: 220px;
        overflow: auto;
        border-radius: 8px;
        background: rgba(17, 17, 27, 0.95);
        border: 1px solid rgba(148, 226, 213, 0.22);
        color: #a6e3a1;
        font-size: 0.72em;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .electrical-download-btn--locked,
    .electrical-download-btn:disabled {
        opacity: 0.55;
        filter: grayscale(0.25);
    }
    .electrical-section--teal {
        border-left-color: #94e2d5;
    }
    .mep-calc-note,
    .mep-calc-footnote {
        margin: 0 0 10px;
        font-size: 0.8em;
        line-height: 1.5;
        color: #b8cde0;
    }
    .mep-calc-footnote {
        margin-top: 10px;
        margin-bottom: 0;
        color: #89dceb;
    }
    .mep-calc-results {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 4px;
    }
    .mep-calc-result-card {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(49, 50, 68, 0.72);
        border: 1px solid rgba(69, 71, 90, 0.85);
    }
    .mep-calc-result-card__k {
        font-size: 0.68em;
        color: #9399b2;
        font-weight: 700;
    }
    .mep-calc-result {
        font-size: 0.92em;
        color: #cdd6f4;
        font-weight: 800;
    }
    .mep-calc-result--ok { color: #a6e3a1; }
    .mep-calc-result--warn { color: #fab387; }
    .mep-calc-result--bad { color: #f38ba8; }
    @media (max-width: 520px) {
        .mep-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .mep-live-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .mep-live-card--wide { grid-column: span 2; }
        .mep-calc-results { grid-template-columns: 1fr; }
        .motor-control-toolbar { flex-direction: column; }
    }

    /* Motor control simulator */
    .electrical-section--motor {
        border-left-color: #f9e2af;
    }
    .motor-sim-note {
        margin: 0 0 12px;
        font-size: 0.8em;
        line-height: 1.5;
        color: #b8cde0;
    }
    .motor-status-row {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(49, 50, 68, 0.72);
        border: 1px solid rgba(69, 71, 90, 0.85);
    }
    .motor-status-lamp {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid rgba(205, 214, 244, 0.35);
        background: #585b70;
        box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
        flex-shrink: 0;
    }
    .motor-status-lamp--stop { background: #585b70; }
    .motor-status-lamp--forward {
        background: #a6e3a1;
        box-shadow: 0 0 14px rgba(166, 227, 161, 0.55);
    }
    .motor-status-lamp--reverse {
        background: #89b4fa;
        box-shadow: 0 0 14px rgba(137, 180, 250, 0.55);
    }
    .motor-status-lamp--tripped {
        background: #f38ba8;
        box-shadow: 0 0 14px rgba(243, 139, 168, 0.55);
    }
    .motor-status-readouts {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 0.82em;
        color: #bac2de;
    }
    .motor-state-label--forward { color: #a6e3a1; }
    .motor-state-label--reverse { color: #89b4fa; }
    .motor-state-label--tripped { color: #f38ba8; }
    .motor-thermal-label--tripped { color: #f38ba8; }
    .motor-control-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    .motor-control-toolbar--secondary { margin-bottom: 10px; }
    .motor-btn--forward { border-color: rgba(166, 227, 161, 0.5) !important; color: #d8ffe0 !important; }
    .motor-btn--stop { border-color: rgba(243, 139, 168, 0.45) !important; color: #ffd8e4 !important; }
    .motor-btn--reverse { border-color: rgba(137, 180, 250, 0.5) !important; color: #dceeff !important; }
    .motor-op-log {
        margin: 0 0 12px;
        padding: 10px 12px;
        min-height: 88px;
        max-height: 180px;
        overflow: auto;
        border-radius: 8px;
        background: rgba(17, 17, 27, 0.95);
        border: 1px solid rgba(249, 226, 175, 0.22);
        color: #cdd6f4;
        font-size: 0.72em;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .motor-report-title {
        margin-top: 4px;
        margin-bottom: 8px;
        font-size: 0.9em;
    }
    .motor-report-preview {
        max-height: 160px;
        margin-bottom: 10px;
    }

    /* Stair stake guide */
    .stair-stake-panel {
        margin: 0 0 12px;
        padding: 12px 14px;
        border-radius: 10px;
        background: rgba(30, 30, 46, 0.88);
        border: 1px solid rgba(249, 226, 175, 0.28);
    }
    .stair-stake-panel__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }
    .stair-stake-panel__title {
        font-size: 0.88em;
        font-weight: 800;
        color: #f9e2af;
    }
    .stair-stake-badge {
        font-size: 0.72em;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 999px;
        border: 1px solid rgba(249, 226, 175, 0.45);
        color: #ffe8b3;
        background: rgba(249, 226, 175, 0.12);
    }
    .stair-stake-note {
        margin: 0 0 10px;
        font-size: 0.78em;
        line-height: 1.5;
        color: #b8cde0;
    }
    .stair-stake-select {
        margin-bottom: 10px;
    }
    .stair-stake-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    .stair-dir-label {
        margin: 0;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 0.78em;
        line-height: 1.45;
        color: #cdd6f4;
        background: rgba(49, 50, 68, 0.85);
        border: 1px solid rgba(137, 180, 250, 0.25);
    }
    .stair-dir-label[data-level="ok"] {
        color: #a6e3a1;
        border-color: rgba(166, 227, 161, 0.45);
        background: rgba(166, 227, 161, 0.08);
    }
    .stair-dir-label[data-level="warn"] {
        color: #fab387;
        border-color: rgba(250, 179, 135, 0.45);
        background: rgba(250, 179, 135, 0.08);
    }
    .stair-dir-label[data-level="info"] {
        color: #89dceb;
        border-color: rgba(137, 220, 235, 0.35);
    }
    .stair-source-label {
        margin: 0 0 8px;
        font-size: 0.78em;
        font-weight: 700;
        color: #a6e3a1;
    }
    .stair-points-preview {
        margin: 0 0 10px;
        padding: 8px 10px;
        max-height: 120px;
        overflow: auto;
        border-radius: 8px;
        background: rgba(17, 17, 27, 0.95);
        border: 1px solid rgba(137, 180, 250, 0.22);
        color: #bac2de;
        font-size: 0.68em;
        line-height: 1.4;
        white-space: pre-wrap;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .stair-stake-toolbar--secondary { margin-bottom: 8px; }

    /* Convert mode panel (USDZ) */
    .convert-mode-page .convert-mode-note {
        margin: 0 0 14px;
        font-size: 0.82em;
        line-height: 1.55;
        color: #b8cde0;
    }
    .convert-panel {
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-width: 720px;
    }
    .convert-section {
        background: rgba(24, 24, 37, 0.92);
        padding: 14px 15px;
        border-radius: 8px;
        border-left: 4px solid #cba6f7;
    }
    .convert-section--guide { border-left-color: #89dceb; }
    .convert-section--upload { border-left-color: #cba6f7; }
    .convert-section--actions { border-left-color: #a6e3a1; }
    .convert-preview[data-empty="1"] {
        color: #89b4d4;
        border-style: dashed;
    }
    .convert-section-title {
        font-weight: 800;
        margin-bottom: 10px;
        color: #f5e0dc;
        font-size: 0.92em;
    }
    .convert-guide-list {
        margin: 0;
        padding-left: 1.2em;
        color: #cdd6f4;
        font-size: 0.82em;
        line-height: 1.55;
    }
    .convert-upload-label,
    .convert-field-row label {
        display: block;
        margin: 0 0 8px;
        color: #bac2de;
        font-size: 0.82em;
    }
    .convert-file-input,
    .convert-number-input,
    .convert-select {
        width: 100%;
        max-width: 420px;
        margin-bottom: 10px;
    }
    .convert-preview {
        margin: 8px 0;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(17, 17, 27, 0.95);
        border: 1px solid rgba(203, 166, 247, 0.25);
        color: #cdd6f4;
        font-size: 0.75em;
        line-height: 1.45;
        white-space: pre-wrap;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .convert-status {
        margin-top: 6px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 0.82em;
        background: rgba(243, 139, 168, 0.12);
        color: #f9e2af;
        border: 1px solid rgba(243, 139, 168, 0.25);
    }
    .convert-status[data-ok="1"] {
        background: rgba(166, 227, 161, 0.12);
        color: #a6e3a1;
        border-color: rgba(166, 227, 161, 0.28);
    }
    .convert-action-btn {
        border-color: #cba6f7 !important;
        color: #f5e0ff !important;
        font-weight: 800;
    }

    .calc-page1-top-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 10px;
    }
    .page1-calc-jump {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--cm-line);
        background: var(--cm-cta);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .page1-calc-jump__copy {
        min-width: 0;
        flex: 1 1 auto;
    }
    .page1-calc-jump__copy strong {
        display: block;
        font-size: 1.05rem;
        color: #ffe6b0;
    }
    .page1-calc-jump__copy p {
        margin: 4px 0 0;
        color: #cfe0f5;
        font-size: 0.86rem;
        line-height: 1.35;
    }
    .page1-calc-jump__btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 10px 16px;
        border-radius: 12px;
        border: 1px solid var(--cm-line);
        background: var(--cm-cta);
        color: var(--cm-cta-text);
        font-weight: 900;
        font-size: 0.95rem;
        cursor: pointer;
        touch-action: manipulation;
        white-space: nowrap;
    }
    .page2-lounge-jump {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 12px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid rgba(126, 200, 232, 0.42);
        background: linear-gradient(165deg, rgba(18, 42, 72, 0.78), rgba(12, 18, 30, 0.92));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .page2-lounge-jump__copy {
        min-width: 0;
        flex: 1 1 auto;
    }
    .page2-lounge-jump__copy strong {
        display: block;
        font-size: 1.05rem;
        color: #d7f3ff;
    }
    .page2-lounge-jump__copy p {
        margin: 4px 0 0;
        color: #cfe0f5;
        font-size: 0.86rem;
        line-height: 1.35;
    }
    .page2-lounge-jump__btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 10px 16px;
        border-radius: 12px;
        border: 1px solid rgba(126, 200, 232, 0.7);
        background: linear-gradient(135deg, #7ec8e8, #4aa3d4);
        color: #061018;
        font-weight: 900;
        font-size: 0.95rem;
        cursor: pointer;
        touch-action: manipulation;
        white-space: nowrap;
    }
    .material-chip-suggest {
        cursor: pointer;
        border-color: rgba(126, 214, 223, 0.55);
        background: rgba(24, 70, 78, 0.5);
        color: #dffcff;
        text-align: left;
    }
    .material-fallback-note {
        margin: 6px 0 0;
        color: #ffd8a8;
        font-size: 0.86rem;
        line-height: 1.4;
    }
    .calc-input-hint {
        margin: 6px 0 0;
        font-size: 0.88rem;
        line-height: 1.4;
        color: #cfe0f5;
    }
    .calc-input-hint[data-kind="error"] { color: #ffb4b4; }
    .calc-input-hint[data-kind="warn"] { color: #ffd48a; }
    .calc-input-hint[data-kind="ok"] { color: #9ef5c2; }
    .calc-list-empty {
        text-align: center;
        color: #9bc2e5;
        padding: 14px 10px;
        font-size: 0.92rem;
    }
    .page1-chat-hub {
        box-sizing: border-box;
    }
    body[data-work-mode="calc"][data-calc-page="1"] .page1-chat-hub .free-war-room-card {
        margin-top: 0;
    }
    .calc-page1-top-stack .free-war-room-card {
        margin-top: 0;
    }
    .page1-news-feed {
        padding: 12px 12px 10px;
        border-radius: 14px;
        border: 1px solid var(--cm-line);
        background: linear-gradient(165deg, rgba(36, 18, 28, 0.72), rgba(12, 18, 32, 0.88));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    .page1-news-tv-wall {
        position: relative;
        overflow: hidden;
        gap: 6px;
        margin: 0;
        border-color: var(--cm-line);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 10px 22px rgba(20, 8, 4, 0.28);
    }
    .page1-news-tv-wall::before {
        content: '';
        position: absolute;
        inset: 8px auto 8px 0;
        width: 4px;
        border-radius: 0 5px 5px 0;
        background: var(--cm-accent);
        pointer-events: none;
    }
    .page1-media-fold {
        gap: 0;
    }
    .page1-media-fold.is-collapsed {
        padding: 8px 12px;
    }
    .page1-leisure-hub.page1-news-tv-wall::before {
        background: var(--cm-accent);
    }
    .page1-media-fold__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        padding: 12px;
        margin: 0;
        border: 1px solid rgba(130, 190, 255, 0.22);
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(14, 42, 62, 0.88), rgba(12, 18, 32, 0.92));
        color: #eaf6ff;
        font: inherit;
        font-size: 1.06rem;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 1;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 8px 18px rgba(0, 20, 40, 0.18);
    }
    .page1-media-fold--radio .page1-media-fold__toggle {
        border-color: rgba(230, 160, 69, 0.42);
        background: linear-gradient(145deg, rgba(62, 36, 18, 0.92), rgba(18, 16, 22, 0.94));
        box-shadow:
            inset 4px 0 0 #d4b05a,
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 8px 18px rgba(40, 16, 4, 0.18);
    }
    .page1-media-fold--leisure .page1-media-fold__toggle {
        border-color: rgba(110, 210, 255, 0.38);
        background: linear-gradient(145deg, rgba(14, 42, 62, 0.94), rgba(9, 32, 44, 0.96));
        box-shadow:
            inset 4px 0 0 var(--cm-accent),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 8px 18px rgba(0, 20, 40, 0.2);
    }
    .page1-media-fold:not(.is-collapsed) .page1-media-fold__toggle {
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    .page1-media-fold__toggle:focus-visible {
        outline: 2px solid var(--cm-accent);
        outline-offset: 2px;
    }
    .page1-media-fold--radio .page1-media-fold__toggle:focus-visible {
        outline-color: #ffd27a;
    }
    .page1-media-fold__toggle:active {
        transform: translateY(1px);
    }
    .page1-media-fold__lead {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
    }
    .page1-media-fold__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }
    .page1-media-fold__tone {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        border-radius: 999px;
        border: 1px solid rgba(130, 190, 255, 0.28);
        background: rgba(4, 12, 24, 0.45);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        line-height: 1.2;
        color: #c9e7f7;
    }
    .page1-media-fold--radio .page1-media-fold__tone {
        border-color: rgba(230, 160, 69, 0.45);
        color: #ffe7c4;
        background: rgba(40, 22, 8, 0.45);
    }
    .page1-media-fold--leisure .page1-media-fold__tone {
        border-color: rgba(122, 216, 255, 0.4);
        color: #9ee8ff;
    }
    .page1-media-fold__title-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .page1-media-fold__lead strong {
        color: #f7fbff;
        letter-spacing: 0.01em;
        font-size: var(--type-page-title, 1.12rem);
        line-height: 1.3;
    }
    .page1-media-fold__actions {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
    }
    .page1-media-fold__action {
        min-width: 68px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        border-radius: 12px;
        border: 1px solid rgba(120, 220, 255, 0.48);
        background: #245b78;
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 12px rgba(0, 20, 36, 0.3);
    }
    .page1-media-fold--radio .page1-media-fold__action {
        border-color: rgba(230, 160, 69, 0.55);
        background: rgba(230, 160, 69, 0.18);
        color: #ffe7c4;
        box-shadow: 0 4px 12px rgba(40, 16, 4, 0.22);
    }
    .page1-media-fold__action[hidden] { display: none !important; }
    .page1-media-fold.is-collapsed .page1-media-fold__body {
        display: none !important;
    }
    .page1-media-fold:not(.is-collapsed) .page1-media-fold__body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
    }
    .page1-leisure-hub:not(.is-collapsed) {
        padding: 12px 12px 10px;
        border-radius: 14px;
    }
    .page1-leisure-tabs {
        display: flex;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 4px;
        margin: 0 0 var(--space-4, 16px);
        border-radius: 12px;
        background: rgba(4, 12, 24, 0.58);
        border: 1px solid rgba(130, 190, 255, 0.18);
        touch-action: pan-x;
    }
    .page1-leisure-tab {
        flex: 1 1 0;
        min-width: 5.6rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 7px 6px;
        border: 1px solid transparent;
        border-radius: 9px;
        background: transparent;
        color: #b9cde0;
        font: inherit;
        font-size: var(--type-meta, 0.88rem);
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
        scroll-snap-align: start;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .page1-leisure-tab.is-active,
    .page1-leisure-tab[aria-selected="true"] {
        border-color: rgba(120, 220, 255, 0.48);
        background: #245b78;
        color: #ffffff;
        font-weight: 800;
        box-shadow: 0 4px 12px rgba(0, 20, 36, 0.3);
    }
    .page1-leisure-tab:focus-visible {
        outline: 2px solid var(--cm-accent);
        outline-offset: 2px;
    }
    @media (hover: hover) and (pointer: fine) {
        .page1-leisure-tab:not(.is-active):not([aria-selected="true"]):hover {
            background: rgba(255, 255, 255, 0.05);
            color: #eaf6ff;
        }
    }
    .page1-leisure-pane {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
        padding: 12px 12px 10px;
        border-radius: 12px;
        border: 1px solid rgba(130, 190, 255, 0.18);
        background: linear-gradient(145deg, rgba(14, 42, 62, 0.55), rgba(9, 18, 32, 0.72));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    .page1-leisure-pane[hidden] { display: none !important; }
    .page1-leisure-pane__label {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        color: #dcffed;
        font-size: 0.92em;
        font-weight: 800;
    }
    .page1-leisure-pane .page1-news-feed__note {
        margin-bottom: 4px;
    }
    .page1-news-feed__head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
        color: #ffe8d2;
        font-size: var(--type-section-title, 1rem);
        font-weight: 800;
    }
    .page1-news-feed__tag {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        padding: 2px 8px;
        border-radius: 999px;
        border: 1px solid var(--cm-line);
        color: #ffd4b8;
        background: rgba(255, 120, 80, 0.16);
    }
    .page1-news-tv-wall__live {
        margin-left: auto;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        padding: 2px 8px;
        border-radius: 999px;
        color: #1a0a0a;
        background: #ff5a5a;
        box-shadow: 0 0 10px rgba(255, 80, 80, 0.45);
    }
    .page1-news-tv-wall__live[hidden] { display: none !important; }
    .page1-news-feed__note {
        margin: 0 0 10px;
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-hint, 0.78rem);
        line-height: 1.45;
        font-weight: 600;
    }
    .page1-news-tv-wall .page1-news-feed__note { margin-bottom: 6px; }
    .page1-news-feed__grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }
    .page1-news-tv-wall__ticker {
        overflow: hidden;
        min-height: 24px;
        border-radius: 8px;
        background: rgba(6, 10, 18, 0.72);
        border: 1px solid var(--cm-line);
        color: #fff1d4;
        font-size: var(--type-hint, 0.78rem);
        font-weight: 650;
    }
    .page1-news-tv-wall__ticker-track {
        display: flex;
        width: max-content;
        animation: page1-news-tv-wall-ticker 36s linear infinite;
    }
    .page1-news-tv-wall__ticker-track span {
        padding: 4px 12px;
        white-space: nowrap;
    }
    .page1-news-tv-wall:hover .page1-news-tv-wall__ticker-track,
    .page1-news-tv-wall:focus-within .page1-news-tv-wall__ticker-track {
        animation-play-state: paused;
    }
    @keyframes page1-news-tv-wall-ticker {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
    }
    .page1-news-tv-wall__board {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 8px;
        min-height: 148px;
    }
    .page1-news-tv-wall__hero,
    .page1-news-tv-wall__list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }
    .page1-news-card {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(8, 14, 26, 0.72);
        color: inherit;
        text-decoration: none;
        min-height: 64px;
    }
    a.page1-news-card:hover,
    a.page1-news-card:focus-visible {
        border-color: var(--cm-line);
        box-shadow: 0 0 0 1px var(--cm-line);
    }
    .page1-news-card--hero {
        flex: 1 1 auto;
        min-height: 132px;
        align-items: stretch;
        background:
            linear-gradient(160deg, rgba(52, 20, 14, 0.58), rgba(6, 10, 18, 0.92));
    }
    .page1-news-card--hero .page1-news-card__title {
        color: var(--text-bright, #f8fbff);
        font-size: clamp(1.08rem, 2.4vw + 0.72rem, var(--type-headline, 1.22rem));
        font-weight: 800;
        line-height: var(--leading-tight, 1.22);
        letter-spacing: -0.01em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .page1-news-card__thumb,
    .page1-news-card__img {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: rgba(255, 140, 100, 0.12);
        font-size: 1.35rem;
        object-fit: cover;
    }
    .page1-news-card--hero .page1-news-card__thumb,
    .page1-news-card--hero .page1-news-card__img {
        width: 86px;
        height: 86px;
        align-self: center;
    }
    .page1-news-card__body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .page1-news-card__title {
        margin: 0 0 4px;
        color: var(--text-bright, #f8fbff);
        font-size: var(--type-body, 0.9rem);
        font-weight: 750;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .page1-news-card--slot .page1-news-card__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin: 0;
        font-size: var(--type-body, 0.9rem);
        font-weight: 750;
        color: var(--text-bright, #f8fbff);
        line-height: 1.3;
    }
    .page1-news-card__meta {
        margin: 0;
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-hint, 0.78rem);
        font-weight: 600;
    }
    .page1-news-tv-wall__status {
        margin: 4px 0 0;
        color: #c5d4e8;
        font-size: 0.74rem;
    }
    .page1-news-tv-wall__status[data-kind="error"] { color: #ffc4a8; }
    .page1-news-tv-wall__empty {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        border: 1px dashed var(--cm-line);
        color: #d7e4f4;
        font-size: 0.86rem;
    }
    .page1-news-tv-wall__empty p { margin: 0; }
    .page1-fishing-tv-wall {
        border-color: rgba(120, 210, 255, 0.36);
    }
    .page1-fishing-tv-wall__stage {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }
    .page1-leisure-pane .page1-fishing-tv-wall__stage {
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(110, 210, 255, 0.22);
        background: rgba(4, 12, 24, 0.58);
        box-shadow: 0 8px 18px rgba(0, 20, 40, 0.2);
    }
    .page1-fishing-tv-wall__player {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 198px;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(6, 10, 18, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow:
            0 10px 22px rgba(20, 8, 4, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .page1-fishing-tv-wall__player::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
        background: radial-gradient(circle at center, transparent 36%, rgba(4, 8, 14, 0.32) 100%);
    }
    .page1-fishing-tv-wall__player:has(iframe)::after { display: none; }
    @media (min-width: 720px) {
        .page1-fishing-tv-wall__player { min-height: 280px; }
    }
    .page1-fishing-tv-wall__poster,
    .page1-fishing-tv-wall__frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        border: 0;
        object-fit: cover;
        object-position: center center;
    }
    .page1-fishing-tv-wall__poster {
        image-rendering: auto;
        -ms-interpolation-mode: bicubic;
    }
    .page1-fishing-tv-wall__frame {
        background: #0b1018;
    }
    .page1-fishing-tv-wall__play {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 56px;
        height: 56px;
        border: 0;
        border-radius: 50%;
        background: var(--cm-cta);
        color: var(--cm-cta-text);
        font-size: 1.15rem;
        font-weight: 900;
        letter-spacing: -0.04em;
        padding-left: 4px;
        cursor: pointer;
        z-index: 2;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .page1-fishing-tv-wall__play:hover,
    .page1-fishing-tv-wall__play:focus-visible {
        transform: translate(-50%, -50%) scale(1.06);
        filter: brightness(1.06);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
    }
    .page1-fishing-tv-wall__play:focus-visible {
        outline: 2px solid #ffd27a;
        outline-offset: 3px;
    }
    .page1-fishing-tv-wall__play[hidden] { display: none !important; }
    @media (prefers-reduced-motion: reduce) {
        .page1-media-fold__toggle,
        .page1-fishing-tv-wall__play {
            transition: none;
        }
        .page1-fishing-tv-wall__play:hover,
        .page1-fishing-tv-wall__play:focus-visible {
            transform: translate(-50%, -50%);
        }
    }
    .page1-fishing-tv-wall__next {
        min-height: var(--tap-target, 46px);
        font-weight: 800;
        color: #e8f2fa;
        border-color: rgba(180, 210, 235, 0.34);
    }
    .page1-fishing-tv-wall__caption {
        margin: 2px 0 0;
        padding: 6px 8px;
        border-radius: 9px;
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-hint, 0.78rem);
        font-weight: 600;
        line-height: 1.35;
        background: rgba(4, 12, 24, 0.4);
    }
    .page1-radio-wall.page1-news-tv-wall {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        padding: 6px 2px 10px;
    }
    .page1-radio-wall.page1-news-tv-wall::before { display: none; }
    .page1-radio-wall .page1-news-feed__note {
        margin: 8px 4px 0;
        color: var(--text-meta-readable, #c8d7ea);
    }
    .page1-radio-set {
        --radio-wood: #6d3c20;
        --radio-wood-dark: #3b1f10;
        --radio-cream: var(--cm-panel);
        --radio-brass: #d4b05a;
        margin: 0;
    }
    .page1-radio-set__handle {
        width: 42%;
        height: 10px;
        margin: 0 auto -2px;
        border: 2px solid #c9a24a;
        border-bottom: 0;
        border-radius: 12px 12px 0 0;
        background: linear-gradient(180deg, #e6c67a, #8a6230);
        box-shadow: 0 -1px 0 var(--cm-line);
    }
    .page1-radio-set__wood {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 10px 12px;
        border-radius: 18px 18px 14px 14px;
        background:
            linear-gradient(180deg, var(--cm-line), transparent 28%),
            repeating-linear-gradient(90deg, #7d4626 0 3px, #5a3018 3px 6px);
        border: 2px solid #26140b;
        box-shadow:
            inset 0 1px 0 var(--cm-line),
            0 10px 18px rgba(20, 8, 4, 0.34);
    }
    .page1-radio-set__plate {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 4px 10px;
        border-radius: 8px;
        background: linear-gradient(180deg, #f7e7b8, #c9a24a);
        color: #3a2414;
        font-size: var(--type-section-title, 1rem);
        font-weight: 800;
        box-shadow: inset 0 1px 0 #fff6d2, 0 1px 0 #6a4a18;
    }
    .page1-radio-set__plate-tag {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 2px 8px;
        border-radius: 999px;
        border: 1px solid #8a6230;
        background: rgba(255, 248, 220, 0.45);
    }
    .page1-radio-set__row {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    .page1-radio-set__speaker {
        display: grid;
        place-items: center;
        min-height: 108px;
        padding: 6px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 24%, #5a4030, #1a100c 72%);
        box-shadow:
            inset 0 0 0 3px rgba(201, 162, 74, 0.4),
            0 4px 0 #2a160c;
    }
    .page1-radio-set__grille {
        width: 96px;
        height: 96px;
        display: block;
    }
    .page1-radio-set.is-on-air .page1-radio-set__cone {
        filter: drop-shadow(0 0 8px var(--cm-line));
    }
    .page1-radio-set__face {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
        padding: 8px;
        border-radius: 12px;
        background: var(--cm-panel);
        color: var(--cm-ivory);
        box-shadow: inset 0 1px 0 #fffaf0;
    }
    .page1-radio-set__dial {
        position: relative;
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
    }
    .page1-radio-set__glass {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        height: 42px;
        border-radius: 8px;
        background: linear-gradient(180deg, #243044, #0b1018);
        border: 1px solid #8a6a32;
        overflow: hidden;
    }
    .page1-radio-set__ticks {
        position: absolute;
        left: 8px;
        right: 8px;
        top: 5px;
        height: 8px;
        background: repeating-linear-gradient(
            90deg,
            #f3e0a8 0 1px,
            transparent 1px 7px
        );
        opacity: 0.55;
    }
    .page1-radio-set__scale {
        display: flex;
        justify-content: space-between;
        padding: 16px 8px 2px;
        color: #f3e0a8;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.04em;
    }
    .page1-radio-set__mark {
        position: absolute;
        bottom: 3px;
        transform: translateX(-50%);
        color: #ffd27a;
        font-size: 0.58rem;
        font-weight: 800;
    }
    .page1-radio-set__mark--975 { left: 47.5%; }
    .page1-radio-set__mark--1049 { left: 84.5%; bottom: auto; top: 1px; }
    .page1-radio-set__mark--1027 { left: 73.5%; }
    .page1-radio-set__mark--1061 { left: 90.5%; }
    .page1-radio-set__needle {
        position: absolute;
        top: 3px;
        bottom: 3px;
        left: 50%;
        width: 2px;
        background: #ff5a3c;
        box-shadow: 0 0 8px rgba(255, 80, 50, 0.7);
        transform: translateX(-50%);
        transition: left 0.35s ease;
    }
    .page1-radio-set[data-station="finradio"] .page1-radio-set__needle { left: 47.5%; }
    .page1-radio-set[data-station="pbs"] .page1-radio-set__needle { left: 84.5%; }
    .page1-radio-set[data-station="vov3"] .page1-radio-set__needle { left: 73.5%; }
    .page1-radio-set[data-station="mradio"] .page1-radio-set__needle { left: 90.5%; }
    .page1-radio-set__band {
        flex: 0 0 auto;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        color: #6a4a1e;
    }
    .page1-radio-set__lamp {
        flex: 0 0 auto;
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        padding: 3px 6px;
        border-radius: 999px;
        color: #3a1808;
        background: #c9a24a;
        writing-mode: horizontal-tb;
    }
    .page1-radio-set.is-on-air .page1-radio-set__lamp,
    .page1-radio-set[data-station] .page1-radio-set__lamp:not([hidden]) {
        color: #1a0a0a;
        background: #ff5a5a;
        box-shadow: 0 0 10px rgba(255, 80, 80, 0.55);
    }
    .page1-radio-wall__chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .page1-radio-wall__chip {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 8px;
        min-height: 52px;
        padding: 10px 10px;
        border-radius: 10px;
        border: 1px solid #8a6230;
        background: linear-gradient(180deg, #3d2a18, #24180e);
        color: #fff4dc;
        font-weight: 800;
        font-size: 0.92rem;
        line-height: 1.2;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .page1-radio-wall__freq {
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.02em;
    }
    .page1-radio-wall__source {
        flex-basis: 100%;
        text-align: center;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1.25;
        opacity: 0.8;
    }
    .page1-radio-wall__live {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        padding: 1px 6px;
        border-radius: 999px;
        color: #1a0a0a;
        background: #ff5a5a;
        box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
    }
    .page1-radio-wall__chip.is-on-air {
        border-color: #ff8a6a;
        background: linear-gradient(165deg, #6a2418, #2a140e);
        box-shadow:
            0 0 0 1px rgba(255, 90, 90, 0.28),
            0 0 16px rgba(255, 80, 80, 0.2);
    }
    .page1-radio-set__knobs {
        display: flex;
        justify-content: space-between;
        padding: 0 8px 2px;
    }
    .page1-radio-set__knob-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    .page1-radio-set__knob {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background:
            repeating-conic-gradient(from 0deg, #f0d48a 0 8deg, #8a6230 8deg 16deg);
        box-shadow:
            inset 0 -3px 0 rgba(0, 0, 0, 0.28),
            0 1px 0 #fff3c8,
            0 3px 0 #3a2414;
        transform-origin: 50% 50%;
    }
    button.page1-radio-set__knob {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        touch-action: none;
        font: inherit;
    }
    button.page1-radio-set__knob:focus-visible {
        outline: 2px solid #8a6230;
        outline-offset: 2px;
    }
    .page1-radio-set__knob-label {
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        color: #6a4a1e;
    }
    .page1-radio-set__feet {
        display: flex;
        justify-content: space-between;
        width: 72%;
        margin: -2px auto 0;
    }
    .page1-radio-set__feet i {
        width: 22px;
        height: 8px;
        border-radius: 0 0 6px 6px;
        background: linear-gradient(180deg, #5a3018, #2a160c);
        box-shadow: 0 2px 0 #1a0e08;
    }
    .page1-radio-wall__refresh {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        width: 100%;
        margin-top: 2px;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #8a6230;
        background: var(--cm-cta);
        color: #3a2414;
        font-weight: 800;
        font-size: 0.78rem;
        letter-spacing: 0.02em;
        cursor: pointer;
        touch-action: manipulation;
    }
    .page1-radio-wall__refresh:hover {
        background: var(--cm-cta-hover);
    }
    .page1-radio-wall__status {
        margin: 6px 4px 0;
        color: var(--text-meta-readable, #c8d7ea);
        font-size: var(--type-hint, 0.78rem);
        font-weight: 600;
    }
    .page1-radio-wall__status[data-kind="error"] { color: #ffc4a8; }
