:root {
    --ink: #172339;
    --muted: #6c778b;
    --line: #e8edf4;
    --canvas: #f4f7fb;
    --panel: #ffffff;
    --navy: #14213d;
    --teal: #167f87;
    --blue: #3b70d1;
    --violet: #7256bd;
    --amber: #c6811a;
    --rose: #c65d74;
    --shadow: 0 14px 35px rgba(28, 48, 82, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas) url('menu_bg.png') center bottom / cover fixed no-repeat; font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 15px; line-height: 1.45; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { min-height: 80px; padding: 14px max(24px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #fff; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.brand .eyebrow { color: #a9b8d5; margin-bottom: 1px; }
.brand-logo-wrap { display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(2, 12, 31, .22); }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 5px; color: #72809a; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.report-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #dbe6fb; font-size: 13px; white-space: nowrap; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #83d3c4; box-shadow: 0 0 0 4px rgba(131, 211, 196, .15); }
main { max-width: 1440px; padding: 30px 24px 48px; margin: 0 auto; }
.intro-panel { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 4px 2px 23px; }
.intro-panel h2, .section-heading h2 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.035em; line-height: 1.2; }
.intro-panel p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.filter-panel, .panel, .kpi-card { background: var(--panel); border: 1px solid rgba(220, 228, 239, .86); box-shadow: var(--shadow); }
.filter-panel { display: flex; align-items: center; gap: 24px; padding: 17px 19px; border-radius: var(--radius); }
.filter-heading { display: flex; align-items: center; gap: 9px; min-width: 185px; color: #344562; font-size: 13px; }
.filter-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal); background: #e5f5f1; font-weight: 800; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)) auto; flex: 1; gap: 10px; align-items: end; }
.filters label { display: grid; gap: 5px; color: #7b879a; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.filters select { width: 100%; min-height: 38px; padding: 0 27px 0 10px; border: 1px solid #dce4ef; border-radius: 9px; outline: none; color: #33445d; background: #fbfcfe; font-size: 13px; letter-spacing: 0; text-transform: none; }
.filters select:focus { border-color: #78a9de; box-shadow: 0 0 0 3px rgba(70, 132, 207, .12); }
.button-secondary { min-height: 38px; padding: 0 12px; border: 1px solid #dce4ef; border-radius: 9px; color: #49627d; background: #fff; font-size: 13px; font-weight: 650; }
.button-secondary:hover { border-color: #9db6d0; background: #f7faff; }
.notice { margin-top: 15px; padding: 12px 14px; border: 1px solid #f0d397; border-radius: 11px; color: #765015; background: #fff8e8; font-size: 13px; }
.notice.is-error { border-color: #efb3bd; color: #8e3040; background: #fff1f3; }
.is-hidden { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 30px 2px 14px; }
.section-heading h2 { font-size: 20px; }
.selection-summary { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.kpi-card { position: relative; min-height: 140px; overflow: hidden; padding: 17px; border-radius: 15px; }
.kpi-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; content: ""; background: var(--card-accent, var(--teal)); }
.kpi-card p { margin: 0 0 14px; color: #6c798d; font-size: 13px; font-weight: 650; }
.kpi-card strong { display: block; color: #1e2d45; font-size: 30px; font-weight: 720; letter-spacing: -.045em; line-height: 1.1; }
.kpi-card span { display: block; margin-top: 9px; color: #8792a4; font-size: 11px; }
.kpi-card.is-unavailable { opacity: .56; }
.accent-teal { --card-accent: var(--teal); }.accent-blue { --card-accent: var(--blue); }.accent-violet { --card-accent: var(--violet); }.accent-amber { --card-accent: var(--amber); }.accent-rose { --card-accent: var(--rose); }.accent-slate { --card-accent: #61738e; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-grid-primary { margin-top: 16px; }
.panel { min-width: 0; border-radius: var(--radius); }
.chart-panel { padding: 19px 20px 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h3 { margin: 0; color: #273650; font-size: 16px; letter-spacing: -.015em; }
.panel-tag { padding: 4px 8px; border-radius: 999px; color: #71809a; background: #f1f5f9; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chart-wrap { position: relative; height: 292px; margin-top: 14px; }
.chart-wrap.is-empty::after { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; color: #8390a3; background: repeating-linear-gradient(45deg, rgba(246,248,251,.72), rgba(246,248,251,.72) 8px, rgba(242,245,249,.72) 8px, rgba(242,245,249,.72) 16px); content: attr(data-empty); font-size: 13px; }
.detail-heading { margin-top: 34px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow: auto; max-width: 100%; }
table { width: 100%; min-width: 1300px; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 11px 10px; border-bottom: 1px solid #dce5ef; color: #64748a; background: #f7f9fc; font-size: 10px; font-weight: 750; letter-spacing: .045em; text-align: right; text-transform: uppercase; white-space: nowrap; }
th:first-child, th:nth-child(2), th:nth-child(3) { text-align: left; }
td { padding: 11px 10px; border-bottom: 1px solid #edf1f6; color: #3d4d64; text-align: right; white-space: nowrap; }
td:first-child, td:nth-child(2), td:nth-child(3) { text-align: left; white-space: normal; }
tbody tr:hover { background: #f8fbff; }
td.metric-name { min-width: 190px; color: #263650; font-weight: 650; }
td.category-name { min-width: 135px; color: #748399; font-size: 11px; }
.missing-cell { color: #b37718; background: #fff8e9; font-style: italic; }
.table-note { padding: 12px 16px; margin: 0; color: #77849a; background: #fbfcfe; font-size: 12px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 16px; }
.insight-grid .panel { padding: 19px 20px; }
.flag-list, .note-list { display: grid; gap: 9px; margin-top: 15px; }
.flag-item, .note-item { padding: 11px 12px; border-radius: 10px; font-size: 12px; }
.flag-item { border-left: 3px solid #e0a63a; background: #fff9ed; color: #675229; }
.flag-item.info { border-left-color: #7c9ec3; background: #f2f7fc; color: #516a85; }
.flag-item.critical { border-left-color: #d86878; background: #fff2f4; color: #813847; }
.flag-item strong, .note-item strong { display: block; margin-bottom: 3px; font-size: 11px; }
.note-item { border: 1px solid #e6edf5; color: #536278; background: #fbfcfe; }
.note-item .note-type { color: #75849a; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.empty-list { margin: 12px 0 0; color: #8490a2; font-size: 13px; }
.app-footer { display: flex; justify-content: space-between; gap: 18px; max-width: 1440px; padding: 20px 26px 25px; margin: 4px auto 0; border-top: 1px solid rgba(209, 220, 234, .82); color: #6e7f95; font-size: 11px; }
.app-footer span:first-child { color: #435774; font-weight: 720; }
.noscript { max-width: 760px; margin: 35px auto; padding: 15px; border-radius: 9px; color: #783f16; background: #fff4e6; }

@media (max-width: 1080px) { .filter-panel { align-items: flex-start; flex-direction: column; gap: 12px; }.filters { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }.kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .topbar { min-height: auto; padding: 13px 16px; align-items: flex-start; flex-direction: column; gap: 10px; }.report-chip { font-size: 12px; }.brand h1 { font-size: 17px; } main { padding: 21px 14px 35px; }.intro-panel { padding-bottom: 18px; flex-direction: column; gap: 13px; }.intro-panel h2 { font-size: 24px; }.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filters .button-secondary { grid-column: span 2; }.kpi-grid, .chart-grid, .insight-grid { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 25px; }.selection-summary { text-align: left; }.chart-wrap { height: 260px; }.kpi-card { min-height: 126px; }.app-footer { align-items: flex-start; flex-direction: column; padding: 18px 16px 22px; gap: 5px; } }
@media (max-width: 390px) { .filters { grid-template-columns: 1fr; }.filters .button-secondary { grid-column: auto; }.brand-logo-wrap { width: 38px; height: 38px; }.intro-panel h2 { font-size: 22px; } }
