/* AKDORAT launch dashboard — scoped to the home workspace. */
#dashboard-section {
    --dash-bg: #081015;
    --dash-surface: #0c151a;
    --dash-surface-soft: #0a1217;
    --dash-surface-strong: #111c22;
    --dash-line: rgba(183, 199, 204, .17);
    --dash-line-strong: rgba(211, 223, 226, .31);
    --dash-text: #e9e5df;
    --dash-heading: #f5f2ed;
    --dash-muted: #89969c;
    --dash-faint: #637178;
    --dash-accent: #df7c49;
    --dash-accent-soft: rgba(223, 124, 73, .13);
    --dash-positive: #52b978;
    --dash-positive-soft: rgba(82, 185, 120, .13);
    --dash-blue: #6f98ff;
    --dash-danger: #ff6258;
    --dash-warning: #e6a02c;
    --dash-shadow: rgba(0, 0, 0, .28);
    background: var(--dash-bg) !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 0 0 10px 10px !important;
    color: var(--dash-text) !important;
    color-scheme: dark;
    margin: 0 !important;
    min-height: 100vh;
    overflow: hidden !important;
    padding: 0 12px 14px !important;
}

#dashboard-section[data-dashboard-theme="light"] {
    --dash-bg: #f7f9fc;
    --dash-surface: #ffffff;
    --dash-surface-soft: #f8fafd;
    --dash-surface-strong: #f1f5fa;
    --dash-line: rgba(39, 71, 119, .22);
    --dash-line-strong: rgba(26, 61, 116, .38);
    --dash-text: #17335f;
    --dash-heading: #08275b;
    --dash-muted: #576b89;
    --dash-faint: #8090a8;
    --dash-accent: #1459ed;
    --dash-accent-soft: rgba(20, 89, 237, .09);
    --dash-positive: #10975b;
    --dash-positive-soft: rgba(16, 151, 91, .1);
    --dash-blue: #1459ed;
    --dash-danger: #e73e36;
    --dash-warning: #e39816;
    --dash-shadow: rgba(25, 53, 98, .08);
    color-scheme: light;
}

#dashboard-section::before,
#dashboard-section .dashboard-command-bar::before,
#dashboard-section .dashboard-command-bar::after,
#dashboard-section .dashboard-panel::before,
#dashboard-section .dashboard-kpi::before,
#dashboard-section .dashboard-kpi::after {
    display: none !important;
}

#dashboard-section .dashboard-control-center {
    display: grid;
    gap: 0;
    max-width: 1900px;
    width: 100%;
}

#dashboard-section .dashboard-command-bar {
    align-items: center;
    background: var(--dash-bg) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dash-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: grid;
    gap: 22px;
    grid-template-columns: auto minmax(420px, 1fr) auto;
    min-height: 56px !important;
    overflow: visible !important;
    padding: 0 10px !important;
}

.dashboard-topbar-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

#dashboard-section .dashboard-topbar-brand > strong {
    color: var(--dash-heading) !important;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -.055em;
}

#dashboard-section .dashboard-menu-button {
    background: transparent !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: var(--dash-accent) !important;
    display: none;
    height: 38px;
    padding: 0 !important;
    width: 38px;
}

.dashboard-topnav {
    align-items: stretch;
    align-self: stretch;
    display: flex;
    justify-content: center;
}

#dashboard-section .dashboard-topnav button {
    background: transparent;
    border: 0;
    color: var(--dash-muted) !important;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 650;
    min-width: 78px;
    padding: 0 13px;
    position: relative;
}

#dashboard-section .dashboard-topnav button + button::before {
    background: var(--dash-line);
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: calc(50% - 9px);
    width: 1px;
}

#dashboard-section .dashboard-topnav button::after {
    background: var(--dash-accent);
    bottom: 0;
    content: "";
    height: 2px;
    left: 17px;
    opacity: 0;
    position: absolute;
    right: 17px;
    transform: scaleX(.45);
    transition: 160ms ease;
}

#dashboard-section .dashboard-topnav button:hover,
#dashboard-section .dashboard-topnav button.is-active {
    color: var(--dash-heading) !important;
}

#dashboard-section .dashboard-topnav button:hover::after,
#dashboard-section .dashboard-topnav button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.dashboard-topbar-tools {
    align-items: center;
    color: var(--dash-muted);
    display: flex;
    font-size: .68rem;
    gap: 10px;
    white-space: nowrap;
}

#dashboard-section .dashboard-topbar-tools strong {
    color: var(--dash-heading) !important;
    font-size: 1.04rem;
    font-variant-numeric: tabular-nums;
    font-weight: 520;
}

.dashboard-date-stamp { color: var(--dash-muted) !important; }
.dashboard-tool-divider { background: var(--dash-line-strong); height: 19px; width: 1px; }

#dashboard-section .dashboard-topbar-icon {
    background: transparent;
    border: 0;
    color: var(--dash-heading) !important;
    cursor: pointer;
    display: grid;
    height: 36px;
    place-items: center;
    width: 34px;
}

#dashboard-section .dashboard-topbar-icon:hover { color: var(--dash-accent) !important; }

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(410px, .78fr) minmax(570px, 1.22fr);
}

.dashboard-enterprise-panel,
.dashboard-flow-panel {
    background: var(--dash-surface);
    min-width: 0;
    padding: 15px 18px 12px;
}

.dashboard-enterprise-panel { border-right: 1px solid var(--dash-line); }

.dashboard-enterprise-heading,
.dashboard-flow-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    min-height: 32px;
}

#dashboard-section .dashboard-section-label {
    color: var(--dash-accent) !important;
    display: block;
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .15em;
    margin-bottom: 3px;
}

#dashboard-section .dashboard-enterprise-heading h1,
#dashboard-section .dashboard-flow-heading h2 {
    color: var(--dash-heading) !important;
    font-size: .9rem;
    font-weight: 680;
    letter-spacing: -.02em;
    margin: 0;
}

#dashboard-section .dashboard-rate-strip {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: none !important;
    gap: 4px;
    padding: 0 !important;
}

#dashboard-section .dashboard-rate-strip > span {
    color: var(--dash-muted) !important;
    min-height: 26px;
    padding: 2px 5px;
}

#dashboard-section .dashboard-rate-strip > span + span { border-left: 1px solid var(--dash-line); }
#dashboard-section .dashboard-rate-strip i { color: var(--dash-accent) !important; }
#dashboard-section .dashboard-rate-strip strong { color: var(--dash-heading) !important; }

.dashboard-business-value-row {
    align-items: baseline;
    display: flex;
    gap: 8px;
    margin: 5px 0 0;
    min-width: 0;
}

#dashboard-section .dashboard-business-value-row strong {
    color: var(--dash-heading) !important;
    font-size: clamp(2.8rem, 5vw, 4.95rem);
    font-variant-numeric: tabular-nums;
    font-weight: 430;
    letter-spacing: -.075em;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#dashboard-section .dashboard-business-value-row span {
    color: var(--dash-heading) !important;
    font-size: .86rem;
    font-weight: 700;
}

#dashboard-section .dashboard-value-definition {
    color: var(--dash-faint) !important;
    font-size: .55rem;
    margin: 5px 0 9px;
}

#dashboard-section .dashboard-kpi-strip {
    border-top: 1px solid var(--dash-line);
    display: grid;
    gap: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#dashboard-section .dashboard-kpi {
    --kpi-accent: var(--dash-blue);
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dash-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--dash-text) !important;
    display: block !important;
    min-height: 66px !important;
    overflow: hidden;
    padding: 9px 10px !important;
    text-align: left;
}

#dashboard-section .dashboard-kpi:not(:nth-child(3n)) { border-right: 1px solid var(--dash-line) !important; }
#dashboard-section .dashboard-kpi:hover { background: var(--dash-accent-soft) !important; transform: none !important; }
#dashboard-section .dashboard-kpi.tone-green { --kpi-accent: var(--dash-positive); }
#dashboard-section .dashboard-kpi.tone-violet { --kpi-accent: #9f88e9; }
#dashboard-section .dashboard-kpi.tone-amber { --kpi-accent: var(--dash-accent); }
#dashboard-section .dashboard-kpi.tone-cyan { --kpi-accent: #1fa0b5; }
#dashboard-section .dashboard-kpi.tone-red { --kpi-accent: var(--dash-danger); }

#dashboard-section .dashboard-kpi-copy small,
#dashboard-section .dashboard-kpi-copy small span {
    color: var(--dash-muted) !important;
    font-size: .51rem;
    letter-spacing: .03em;
    text-transform: none;
}

#dashboard-section .dashboard-kpi-copy strong {
    color: var(--dash-heading) !important;
    font-size: clamp(.78rem, 1vw, .96rem) !important;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 2px;
}

#dashboard-section .dashboard-kpi-copy > span,
#dashboard-section .dashboard-kpi-copy > span span,
#dashboard-section .dashboard-kpi-copy > span b {
    color: var(--dash-faint) !important;
    font-size: .48rem;
}

#dashboard-section .dashboard-kpi-copy::after {
    background: linear-gradient(155deg, transparent 0 29%, var(--kpi-accent) 30% 32%, transparent 33% 48%, var(--kpi-accent) 49% 51%, transparent 52% 69%, var(--kpi-accent) 70% 72%, transparent 73%);
    bottom: 7px;
    content: "";
    height: 11px;
    opacity: .72;
    position: absolute;
    right: 7px;
    width: 40px;
}

#dashboard-section .dashboard-kpi-copy { position: relative; }

.dashboard-flow-panel { display: flex; flex-direction: column; }

#dashboard-section .dashboard-quick-actions {
    display: flex;
    gap: 3px;
}

#dashboard-section .dashboard-quick-actions .btn {
    background: transparent !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    color: var(--dash-muted) !important;
    display: grid;
    height: 29px;
    min-height: 29px !important;
    padding: 0 !important;
    place-items: center;
    width: 29px;
}

#dashboard-section .dashboard-quick-actions .btn:hover { border-color: var(--dash-accent) !important; color: var(--dash-accent) !important; transform: none !important; }

.dashboard-flow-track {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    margin-top: 13px;
    min-height: 102px;
    position: relative;
}

.dashboard-flow-track::before {
    background: var(--dash-line-strong);
    content: "";
    height: 1px;
    left: 7%;
    position: absolute;
    right: 7%;
    top: 43px;
}

.dashboard-flow-track::after {
    background: linear-gradient(90deg, var(--dash-positive) 0 68%, var(--dash-accent) 68% 83%, transparent 83%);
    content: "";
    height: 2px;
    left: 7%;
    position: absolute;
    right: 7%;
    top: 42.5px;
}

#dashboard-section .dashboard-flow-step {
    background: transparent;
    border: 0;
    color: var(--dash-muted) !important;
    cursor: pointer;
    display: grid;
    font: inherit;
    grid-template-rows: 29px 20px 22px 14px;
    justify-items: center;
    min-width: 0;
    padding: 0 3px;
    position: relative;
    text-align: center;
    z-index: 1;
}

#dashboard-section .dashboard-flow-step > i {
    color: var(--dash-muted) !important;
    font-size: 1rem;
}

#dashboard-section .dashboard-flow-step > span {
    color: var(--dash-muted) !important;
    font-size: .5rem;
    white-space: nowrap;
}

#dashboard-section .dashboard-flow-step > span::after {
    background: var(--dash-bg);
    border: 2px solid var(--dash-line-strong);
    border-radius: 50%;
    content: "";
    height: 8px;
    left: calc(50% - 4px);
    position: absolute;
    top: 38px;
    width: 8px;
}

#dashboard-section .dashboard-flow-step.is-complete > span::after { background: var(--dash-positive); border-color: var(--dash-positive); }
#dashboard-section .dashboard-flow-step.is-current > span::after { background: var(--dash-surface); border-color: var(--dash-accent); box-shadow: 0 0 0 3px var(--dash-accent-soft); }
#dashboard-section .dashboard-flow-step > strong { color: var(--dash-heading) !important; font-size: .95rem; font-variant-numeric: tabular-nums; font-weight: 560; }
#dashboard-section .dashboard-flow-step > small { color: var(--dash-faint) !important; font-size: .45rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dashboard-section .dashboard-flow-step:hover > i,
#dashboard-section .dashboard-flow-step:hover > span { color: var(--dash-accent) !important; }

.dashboard-flow-summary {
    border-top: 1px solid var(--dash-line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4px;
}

#dashboard-section .dashboard-flow-summary button {
    background: transparent;
    border: 0;
    color: var(--dash-text) !important;
    cursor: pointer;
    display: grid;
    gap: 2px;
    min-height: 51px;
    padding: 7px 12px 4px;
    text-align: left;
}

#dashboard-section .dashboard-flow-summary button + button { border-left: 1px solid var(--dash-line); }
#dashboard-section .dashboard-flow-summary span { color: var(--dash-muted) !important; font-size: .49rem; }
#dashboard-section .dashboard-flow-summary strong { color: var(--dash-heading) !important; font-size: .94rem; font-weight: 560; }
#dashboard-section .dashboard-flow-summary small,
#dashboard-section .dashboard-flow-summary small span,
#dashboard-section .dashboard-flow-summary small b { color: var(--dash-faint) !important; font-size: .45rem; font-weight: 500; }

#dashboard-section .dashboard-intelligence-grid {
    display: grid;
    gap: 0 !important;
    grid-template-areas: "pulse focus" "agenda agenda" "activity activity" !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
}

#dashboard-section .dashboard-panel {
    background: var(--dash-surface) !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--dash-line) !important;
    box-shadow: none !important;
    min-width: 0;
    overflow: hidden;
    padding: 10px 12px !important;
}

#dashboard-section .dashboard-pulse-panel { grid-area: pulse; min-height: 190px; }
#dashboard-section .dashboard-focus-panel { border-left: 1px solid var(--dash-line) !important; grid-area: focus; min-height: 190px; }
#dashboard-section .dashboard-agenda-panel { grid-area: agenda; min-height: 90px; padding-block: 6px !important; }
#dashboard-section .dashboard-activity-panel { grid-area: activity; min-height: 0; }
#dashboard-section .dashboard-reference-activity { display: none; }

#dashboard-section .dashboard-panel-heading { margin-bottom: 7px; }
#dashboard-section .dashboard-panel-heading h2 { color: var(--dash-heading) !important; font-size: .85rem !important; font-weight: 670; margin: 0; }
#dashboard-section .dashboard-panel-heading-actions { gap: 5px; }
#dashboard-section .dashboard-live-badge { background: var(--dash-positive-soft) !important; border: 0 !important; border-radius: 2px; color: var(--dash-positive) !important; font-size: .48rem; min-height: 20px; padding: 2px 6px; }
#dashboard-section .dashboard-live-badge i { background: var(--dash-positive); box-shadow: none; }
#dashboard-section .dashboard-count-badge { background: transparent !important; color: var(--dash-danger) !important; font-size: .82rem; }
#dashboard-section .dashboard-icon-button,
#dashboard-section .dashboard-collapse-toggle {
    background: transparent !important;
    border: 0 !important;
    border-radius: 2px !important;
    color: var(--dash-muted) !important;
}

.dashboard-production-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.dashboard-production-table {
    border-collapse: collapse;
    color: var(--dash-text);
    font-size: .52rem;
    table-layout: fixed;
    width: 100%;
}

.dashboard-production-table th {
    color: var(--dash-faint) !important;
    font-size: .42rem;
    font-weight: 750;
    letter-spacing: .04em;
    padding: 4px 5px;
    text-align: left;
    text-transform: uppercase;
}

.dashboard-production-table th:nth-child(1) { width: 16%; }
.dashboard-production-table th:nth-child(2) { width: 23%; }
.dashboard-production-table th:nth-child(3) { width: 12%; }
.dashboard-production-table th:nth-child(4) { width: 13%; }
.dashboard-production-table th:nth-child(5) { width: 12%; }
.dashboard-production-table th:nth-child(6) { width: 11%; }
.dashboard-production-table th:nth-child(7),
.dashboard-production-table th:nth-child(8) { width: 7%; }

.dashboard-production-table td {
    border-top: 1px solid var(--dash-line);
    color: var(--dash-muted) !important;
    overflow: hidden;
    padding: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-production-table td strong { color: var(--dash-heading) !important; font-weight: 600; }
.dashboard-work-order-link {
    background: transparent;
    border: 0;
    color: var(--dash-heading) !important;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-work-order-link:hover { color: var(--dash-accent) !important; }
.dashboard-table-empty { height: 138px; text-align: center; }
.dashboard-production-progress { align-items: center; display: flex; gap: 5px; }
.dashboard-production-progress span { background: var(--dash-line); display: block; height: 4px; overflow: hidden; width: 45px; }
.dashboard-production-progress span i { background: var(--dash-positive); display: block; height: 100%; }
.dashboard-production-progress b { color: var(--dash-heading) !important; font-size: .46rem; font-weight: 550; }
.dashboard-production-status { align-items: center; color: var(--dash-muted) !important; display: inline-flex; gap: 4px; }
.dashboard-production-status::before { background: var(--dash-positive); border-radius: 50%; content: ""; height: 5px; width: 5px; }
.dashboard-production-status.is-waiting::before { background: var(--dash-warning); }
.dashboard-production-status.is-late::before { background: var(--dash-danger); }
.dashboard-production-deviation.is-negative { color: var(--dash-danger) !important; }
.dashboard-production-deviation.is-positive { color: var(--dash-positive) !important; }

#dashboard-section .dashboard-alert-banner {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dash-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--dash-muted) !important;
    grid-template-columns: 25px minmax(0, 1fr) 18px;
    margin-bottom: 2px;
    min-height: 42px;
    padding: 4px 0;
}

#dashboard-section .dashboard-alert-icon { background: transparent !important; color: var(--dash-positive) !important; height: 24px; width: 24px; }
#dashboard-section .dashboard-alert-banner.is-warning .dashboard-alert-icon { color: var(--dash-warning) !important; }
#dashboard-section .dashboard-alert-banner.is-critical .dashboard-alert-icon { color: var(--dash-danger) !important; }
#dashboard-section .dashboard-alert-copy strong { color: var(--dash-heading) !important; font-size: .57rem; }
#dashboard-section .dashboard-alert-copy small { color: var(--dash-muted) !important; font-size: .48rem; }
#dashboard-section .dashboard-alert-action { color: var(--dash-accent) !important; }
#dashboard-section .dashboard-focus-panel #dashboardAlertAction { font-size: 0; justify-content: center; }
#dashboard-section .dashboard-focus-panel #dashboardAlertAction i { font-size: .62rem; }

#dashboard-section .dashboard-action-list { gap: 0; max-height: 115px; overflow-y: auto; padding: 0; }
#dashboard-section .dashboard-action-item {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dash-line) !important;
    border-radius: 0 !important;
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    padding: 5px 0;
}

#dashboard-section .dashboard-action-item > i { background: transparent !important; color: var(--dash-warning) !important; height: 24px; width: 24px; }
#dashboard-section .dashboard-action-item.is-critical > i { color: var(--dash-danger) !important; }
#dashboard-section .dashboard-action-item strong { color: var(--dash-heading) !important; font-size: .54rem; }
#dashboard-section .dashboard-action-item small { color: var(--dash-muted) !important; font-size: .46rem; }
#dashboard-section .dashboard-action-item button { background: transparent; color: var(--dash-muted); }

#dashboard-section .dashboard-empty-state {
    background: transparent !important;
    color: var(--dash-muted) !important;
    min-height: 110px;
}

#dashboard-section .dashboard-empty-state i { color: var(--dash-positive) !important; filter: none !important; }
#dashboard-section .dashboard-empty-state strong { color: var(--dash-heading) !important; }
#dashboard-section .dashboard-empty-state span { color: var(--dash-muted) !important; }

#dashboard-section .dashboard-agenda-list {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#dashboard-section .dashboard-agenda-item {
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid var(--dash-line) !important;
    border-radius: 0 !important;
    color: var(--dash-text) !important;
    display: block;
    min-height: 60px;
    padding: 5px 11px;
}

#dashboard-section .dashboard-agenda-item:first-child { border-left: 0 !important; }
#dashboard-section .dashboard-agenda-date {
    background: transparent !important;
    color: var(--dash-accent) !important;
    display: inline-flex;
    gap: 4px;
    height: auto;
    justify-content: flex-start;
    width: auto;
}

#dashboard-section .dashboard-agenda-date strong { color: inherit !important; font-size: .53rem; }
#dashboard-section .dashboard-agenda-date span { color: inherit !important; font-size: .45rem; opacity: 1; }
#dashboard-section .dashboard-agenda-copy { display: block; margin-top: 4px; }
#dashboard-section .dashboard-agenda-copy strong { color: var(--dash-heading) !important; font-size: .55rem; }
#dashboard-section .dashboard-agenda-copy span { color: var(--dash-muted) !important; font-size: .47rem; }
#dashboard-section .dashboard-agenda-copy em { background: transparent !important; color: var(--dash-faint) !important; font-size: .43rem; margin-top: 4px; padding: 0; }

#dashboard-section .dashboard-panel-text-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--dash-accent) !important;
    cursor: pointer;
    display: inline-flex;
    font-size: .52rem;
    gap: 8px;
}

.dashboard-context-line {
    border-top: 1px solid var(--dash-line);
    color: var(--dash-faint);
    display: flex;
    font-size: .48rem;
    gap: 5px;
    justify-content: flex-end;
    padding: 5px 12px 0;
}

#dashboard-section .dashboard-context-line span { color: inherit; }
.dashboard-analytics-cache { height: 1px; left: -9999px; opacity: 0; overflow: hidden; pointer-events: none; position: absolute; top: 0; width: 1px; }

#dashboard-section :is(button, a):focus-visible { outline: 2px solid var(--dash-accent) !important; outline-offset: 2px; }

body:has(#dashboard-section.active) .main-content { background: var(--dash-bg, #081015) !important; padding: 0 !important; }
body:has(#dashboard-section.active[data-dashboard-theme="light"]) .main-content { background: #f7f9fc !important; }

@media (max-width: 1260px) {
    #dashboard-section .dashboard-command-bar { gap: 10px; grid-template-columns: auto 1fr auto; }
    #dashboard-section .dashboard-topnav button { min-width: 66px; padding-inline: 8px; }
    .dashboard-date-stamp { display: none; }
    .dashboard-overview-grid { grid-template-columns: minmax(380px, .84fr) minmax(500px, 1.16fr); }
}

@media (max-width: 1024px) {
    #dashboard-section .dashboard-menu-button { display: grid; }
    #dashboard-section .dashboard-command-bar { grid-template-columns: auto minmax(0, 1fr); }
    .dashboard-topnav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; min-height: 42px; overflow-x: auto; }
    .dashboard-topbar-tools { justify-self: end; }
    .dashboard-overview-grid { grid-template-columns: 1fr; }
    .dashboard-enterprise-panel { border-bottom: 1px solid var(--dash-line); border-right: 0; }
    #dashboard-section .dashboard-intelligence-grid { grid-template-areas: "pulse" "focus" "agenda" "activity" !important; grid-template-columns: 1fr !important; }
    #dashboard-section .dashboard-focus-panel { border-left: 0 !important; }
    #dashboard-section .dashboard-reference-activity { display: block; }
}

@media (max-width: 700px) {
    #dashboard-section { border: 0 !important; border-radius: 0 !important; padding: 0 8px 10px !important; }
    #dashboard-section .dashboard-command-bar { min-height: 58px !important; padding: 8px 4px !important; }
    #dashboard-section .dashboard-topbar-brand > strong { font-size: 1.12rem; }
    .dashboard-topbar-tools { gap: 5px; }
    .dashboard-topbar-tools > span:not(.dashboard-tool-divider) { display: none; }
    #dashboard-section .dashboard-topnav button { min-height: 40px; min-width: 78px; }
    .dashboard-enterprise-panel,
    .dashboard-flow-panel { padding: 13px 10px 10px; }
    #dashboard-section .dashboard-business-value-row strong { font-size: clamp(2.3rem, 13vw, 3.5rem); }
    #dashboard-section .dashboard-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #dashboard-section .dashboard-kpi { min-height: 70px !important; }
    .dashboard-flow-track { grid-template-columns: repeat(7, 86px); overflow-x: auto; padding-bottom: 5px; }
    .dashboard-flow-track::before,
    .dashboard-flow-track::after { left: 43px; right: auto; width: 516px; }
    .dashboard-flow-summary { grid-template-columns: 1fr; }
    #dashboard-section .dashboard-flow-summary button + button { border-left: 0; border-top: 1px solid var(--dash-line); }
    #dashboard-section .dashboard-production-table { min-width: 720px; }
    #dashboard-section .dashboard-agenda-list { grid-template-columns: 1fr; }
    #dashboard-section .dashboard-agenda-item { border-left: 0 !important; border-top: 1px solid var(--dash-line) !important; }
    #dashboard-section .dashboard-agenda-item:first-child { border-top: 0 !important; }
    .dashboard-context-line { display: none; }
}

@media (max-width: 470px) {
    #dashboard-section .dashboard-collapse-toggle { display: grid; }
    #dashboard-section .dashboard-panel.is-mobile-collapsed .dashboard-collapsible-content { display: none; }
    #dashboard-section .dashboard-panel.is-mobile-collapsed { min-height: 0; }
    #dashboard-section .dashboard-kpi-copy::after { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    #dashboard-section *,
    body:has(#dashboard-section.active) .sidebar,
    body:has(#dashboard-section.active) .main-content { transition-duration: .01ms !important; }
}
