:root {
    color-scheme: dark;
    --bg: #060309;
    --bg-2: #0b0710;
    --surface: rgba(18, 12, 22, 0.72);
    --surface-strong: rgba(27, 18, 32, 0.86);
    --surface-soft: rgba(255, 255, 255, 0.055);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 151, 0, 0.38);
    --text: #ffffff;
    --muted: #b9acbf;
    --muted-2: #8f8197;
    --primary: #ff9700;
    --secondary: #8c00ff;
    --success: #41e88b;
    --danger: #ff5f7d;
    --warning: #ffd36c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --font-primary: "Inter", Arial, sans-serif;
    --font-display: "Outfit", "Inter", Arial, sans-serif;
}

body[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f6fb;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(11, 7, 16, 0.05);
    --border: rgba(23, 14, 31, 0.1);
    --border-strong: rgba(255, 151, 0, 0.46);
    --text: #160d1d;
    --muted: #625569;
    --muted-2: #8a7d91;
    --shadow: 0 24px 60px rgba(45, 34, 64, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 151, 0, 0.28), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(140, 0, 255, 0.22), transparent 36%),
        radial-gradient(circle at 55% 86%, rgba(255, 151, 0, 0.14), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

body[data-theme="light"] {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 151, 0, 0.16), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(140, 0, 255, 0.12), transparent 36%),
        linear-gradient(180deg, #fbfaff, #f1edf8 65%, #ffffff);
}

#smoke-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.5;
}

body[data-theme="light"] #smoke-canvas {
    opacity: 0.2;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.topbar,
.app-shell {
    position: relative;
    z-index: 1;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    width: min(1520px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 58px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand img {
    width: 138px;
    max-height: 36px;
    object-fit: contain;
}

.topbar__content {
    display: flex;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.topbar h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
    letter-spacing: 0;
}

.topbar p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.theme-toggle,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.ghost-button:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.theme-toggle {
    gap: 10px;
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(255, 151, 0, 0.45);
}

.app-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    width: min(1520px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 40px;
}

.dashboard-footer {
    position: relative;
    z-index: 1;
    width: min(1520px, calc(100% - 32px));
    margin: -18px auto 32px;
    padding: 0 8px;
}

.dashboard-footer p {
    max-width: 980px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.72;
}

.app-shell--wide {
    grid-template-columns: minmax(0, 1fr);
    width: min(1840px, calc(100% - 24px));
}

.app-shell--wide .controls-panel,
.app-shell--wide .hero-panel {
    display: none;
}

.app-shell--wide .tab-nav {
    position: sticky;
    top: 10px;
    z-index: 5;
    backdrop-filter: blur(18px);
}

.controls-panel,
.hero-panel,
.kpi-card,
.chart-card,
.insight-card,
.table-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.controls-panel {
    position: sticky;
    top: 16px;
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
}

.panel-head,
.card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-kicker {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.control-block {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.control-block:first-of-type {
    margin-top: 18px;
}

.control-block h2,
.card-title h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
}

.card-title p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.segmented--stack {
    grid-template-columns: 1fr;
}

.segmented label {
    min-width: 0;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.segmented input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 151, 0, 0.22);
}

.custom-select {
    position: relative;
    margin-top: 12px;
}

.custom-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.custom-select__button i {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.custom-select.open .custom-select__button {
    border-color: var(--border-strong);
}

.custom-select.open .custom-select__button i {
    transform: rotate(225deg) translate(-2px, -1px);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 10;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255, 151, 0, 0.26);
    border-radius: 8px;
    background: rgba(22, 13, 26, 0.98);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .custom-select__menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(45, 34, 64, 0.18);
}

.custom-select.open .custom-select__menu {
    display: grid;
}

.custom-select__menu button {
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.custom-select__menu button:last-child {
    border-bottom: 0;
}

.custom-select__menu button:hover,
.custom-select__menu button[aria-selected="true"] {
    background: linear-gradient(135deg, rgba(255, 151, 0, 0.22), rgba(140, 0, 255, 0.22));
    color: #fff;
}

body[data-theme="light"] .custom-select__menu button:hover,
body[data-theme="light"] .custom-select__menu button[aria-selected="true"] {
    color: #160d1d;
}

.control-grid {
    display: grid;
    gap: 14px;
}

.range-control {
    display: grid;
    gap: 9px;
}

.range-control span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.range-control strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

input[type="range"] {
    width: 100%;
    min-width: 0;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    accent-color: var(--primary);
}

.dashboard {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tab-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.tab-button {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.tab-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 151, 0, 0.2);
}

.tab-panel {
    display: none;
    gap: 18px;
}

.tab-panel.active {
    display: grid;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    min-height: 252px;
    overflow: hidden;
}

.hero-panel__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 46px);
}

.model-source {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-panel h2 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 62px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-panel__copy > p:last-child {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-panel__visual {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.hero-panel__visual::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, var(--surface) 0%, transparent 48%);
}

.hero-panel__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 12px;
}

.kpi-card {
    min-height: 128px;
    padding: 16px;
    overflow: hidden;
}

.kpi-card--hot {
    background:
        linear-gradient(135deg, rgba(255, 151, 0, 0.2), rgba(140, 0, 255, 0.14)),
        var(--surface);
}

.kpi-card span,
.kpi-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.kpi-card strong {
    display: block;
    margin: 13px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: normal;
}

.charts-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 18px;
}

.chart-card,
.insight-card,
.table-card {
    min-width: 0;
    padding: 18px;
}

.chart-card canvas {
    display: block;
    width: 100%;
    min-height: 260px;
    margin-top: 18px;
}

#cashflow-chart,
#sales-chart {
    height: 320px;
}

#cost-chart {
    height: 280px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}

.legend-dot--orange { background: var(--primary); }
.legend-dot--purple { background: var(--secondary); }
.legend-dot--green { background: var(--success); }

.cost-list,
.stack-list,
.recommendations,
.mini-metrics,
.risk-list,
.comparison-grid,
.sensitivity-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.cost-row,
.stack-row {
    display: grid;
    gap: 8px;
}

.cost-row__meta,
.stack-row__meta,
.mini-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.mini-metric {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.mini-metric strong {
    color: var(--text);
    white-space: nowrap;
}

.risk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.risk-item,
.comparison-card,
.sensitivity-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.risk-item {
    min-height: 94px;
    padding: 14px;
}

.risk-item span,
.comparison-card span,
.sensitivity-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.risk-item strong,
.comparison-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.05;
}

.risk-item small,
.comparison-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.risk-item--ok {
    border-color: rgba(65, 232, 139, 0.36);
}

.risk-item--warn {
    border-color: rgba(255, 211, 108, 0.42);
}

.risk-item--bad {
    border-color: rgba(255, 95, 125, 0.42);
}

.comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-card {
    padding: 14px;
}

.comparison-card__rows {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.comparison-card__rows p,
.sensitivity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.comparison-card__rows b,
.sensitivity-row b {
    color: var(--text);
    white-space: nowrap;
}

.sensitivity-row {
    min-height: 48px;
    padding: 0 12px;
}

.sensitivity-row b.negative {
    color: var(--danger);
}

.sensitivity-row b.positive {
    color: var(--success);
}

.action-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.action-button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 151, 0, 0.18), rgba(140, 0, 255, 0.18));
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

#copy-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cost-row__bar,
.stack-row__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.cost-row__bar span,
.stack-row__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.status-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.status-box strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.1;
}

.status-box p,
.recommendations p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.recommendations p {
    padding: 12px 12px 12px 14px;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    background: var(--surface-soft);
}

.table-wrap {
    width: 100%;
    margin-top: 16px;
    overflow-x: auto;
}

.table-wrap--wide {
    max-height: calc(100vh - 190px);
    overflow: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
}

.detail-table {
    min-width: 900px;
}

.detail-table th:nth-child(2),
.detail-table td:nth-child(2) {
    max-width: 520px;
    text-align: left;
    white-space: normal;
}

.horizontal-table {
    min-width: 2400px;
}

.app-shell--wide .table-card {
    padding: 16px;
}

.app-shell--wide .horizontal-table {
    min-width: 2750px;
}

.app-shell--wide .horizontal-table th,
.app-shell--wide .horizontal-table td {
    min-width: 118px;
}

.app-shell--wide .horizontal-table th:first-child,
.app-shell--wide .horizontal-table td:first-child {
    min-width: 310px;
    max-width: 310px;
}

.horizontal-table th,
.horizontal-table td {
    min-width: 112px;
    vertical-align: top;
}

.horizontal-table th:first-child,
.horizontal-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 250px;
    max-width: 250px;
    background: rgba(18, 12, 22, 0.98);
    color: var(--text);
    white-space: normal;
}

body[data-theme="light"] .horizontal-table th:first-child,
body[data-theme="light"] .horizontal-table td:first-child {
    background: rgba(255, 255, 255, 0.98);
}

.row-section td,
.row-section th {
    padding-top: 18px;
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    white-space: nowrap;
}

th:first-child,
td:first-child {
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: var(--text);
    font-weight: 700;
}

.negative {
    color: var(--danger);
}

.positive {
    color: var(--success);
}

@media (max-width: 1440px) {
    .topbar,
    .app-shell,
    .dashboard-footer {
        width: calc(100% - 24px);
    }

    .app-shell {
        grid-template-columns: minmax(280px, 328px) minmax(0, 1fr);
        gap: 14px;
    }

    .app-shell--wide {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 16px);
    }

    .controls-panel,
    .chart-card,
    .insight-card,
    .table-card {
        padding: 16px;
    }

    .control-block {
        padding: 15px 0;
    }

    .hero-panel {
        min-height: 220px;
    }

    .hero-panel__copy {
        padding: 28px;
    }

    .hero-panel h2 {
        font-size: clamp(30px, 3.2vw, 48px);
    }

    #cashflow-chart,
    #sales-chart {
        height: 300px;
    }

    #cost-chart {
        height: 260px;
    }

    .charts-grid,
    .detail-grid {
        gap: 14px;
    }

    .tab-button {
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 1260px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-shell--wide {
        width: calc(100% - 16px);
    }

    .controls-panel {
        position: static;
        max-height: none;
    }

    .control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-block h2 {
        grid-column: 1 / -1;
    }

    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tab-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
        max-width: 1520px;
    }

    .topbar__content,
    .panel-head,
    .card-title {
        align-items: stretch;
        flex-direction: column;
    }

    .app-shell {
        width: calc(100% - 20px);
        max-width: 1520px;
    }

    .dashboard-footer {
        width: calc(100% - 20px);
    }

    .hero-panel,
    .charts-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel__visual {
        min-height: 190px;
    }

    .hero-panel__visual::before {
        background: linear-gradient(180deg, var(--surface), transparent 46%);
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab-nav {
        grid-template-columns: 1fr;
    }

    .risk-list,
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .segmented {
        grid-template-columns: 1fr;
    }

    .control-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .controls-panel,
    .hero-panel__copy,
    .chart-card,
    .insight-card,
    .table-card {
        padding: 14px;
    }

    .topbar,
    .app-shell,
    .dashboard-footer,
    .controls-panel,
    .topbar__content {
        width: calc(100% - 20px);
        max-width: none;
    }

    .range-control span {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hero-panel h2 {
        font-size: 32px;
        line-height: 1.05;
    }

    .theme-toggle,
    .ghost-button,
    .action-button {
        width: 100%;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    #smoke-canvas,
    .controls-panel,
    .theme-toggle,
    .action-strip {
        display: none;
    }

    .topbar,
    .app-shell {
        width: 100%;
        max-width: none;
    }

    .app-shell {
        display: block;
    }

    .topbar__content,
    .hero-panel,
    .kpi-card,
    .chart-card,
    .insight-card,
    .table-card,
    .tab-nav {
        box-shadow: none;
        break-inside: avoid;
    }

    .tab-panel {
        display: grid;
        margin-top: 18px;
    }
}
