.macro-main { --ink:var(--text); --muted:var(--text-secondary); --line:var(--border); --teal:var(--primary); --teal-light:var(--selected-bg); --font:var(--font-family); max-width:1600px; min-width:0; padding:24px 28px 40px; margin:auto; }
.macro-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.macro-local-nav { display:flex; gap:8px; flex-wrap:wrap; margin:-8px 0 18px; }
.macro-local-nav a { border:1px solid var(--border); border-radius:18px; padding:6px 12px; color:var(--text)!important; text-decoration:none; font-size:12px; }
.macro-local-nav a:hover, .macro-local-nav a[aria-current="page"] { border-color:var(--primary); background:var(--selected-bg); }
.money-controls { display:flex; gap:10px; flex-wrap:wrap; align-items:end; margin:10px 0; }
.money-controls label { display:flex; flex-direction:column; gap:5px; font-size:12px; }
.money-controls input, .money-controls select { border:1px solid var(--border); border-radius:6px; padding:7px 10px; background:var(--surface); color:var(--text); font:inherit; min-width:115px; }
.money-chart { min-height:270px; overflow-x:auto; }
.money-chart svg { width:100%; min-width:620px; height:280px; display:block; }
.money-link { color:var(--primary); font-size:12px; }
.macro-heading h1 { margin:0 0 6px; }
.macro-heading p { color:var(--text-secondary); margin:0; font-size:13px; }
.macro-main .btn, .macro-main select, .macro-main input { border:1px solid var(--border); border-radius:6px; padding:7px 12px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; }
.macro-main .btn { cursor:pointer; white-space:nowrap; }
.macro-main .btn:hover { background:var(--selected-bg); }
.macro-main .btn:disabled { opacity:.6; cursor:wait; }
.macro-main a { color:var(--primary); }
.macro-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-bottom:20px; }
.macro-card, .macro-panel { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:18px; min-width:0; }
.macro-card { display:flex; flex-direction:column; gap:6px; text-decoration:none; color:var(--text)!important; }
a.macro-card:hover { border-color:var(--primary); background:var(--selected-bg); }
.macro-card h2, .macro-card h3 { margin:0; font-size:15px!important; }
.macro-card .macro-value { font-size:24px; font-weight:750; font-variant-numeric:tabular-nums; color:var(--brand-navy); }
.macro-unit, .subtle, .macro-meta { color:var(--text-secondary); font-size:12px; overflow-wrap:anywhere; }
.macro-status { display:inline-block; align-self:flex-start; padding:2px 7px; border-radius:4px; font-size:11px; background:var(--selected-bg); color:var(--primary-hover); }
.macro-status.warn { background:#fff5df; color:var(--warning); }
.macro-status.missing { background:#fff0ef; color:var(--negative); }
.macro-main .notice { border:1px solid var(--border); border-right:3px solid var(--warning); padding:10px 14px; background:#fffbf2; border-radius:6px; font-size:12px; margin:12px 0; overflow-wrap:anywhere; }
.macro-main .notice.red { border-right-color:var(--negative); }
.macro-panel { margin:16px 0; }
.macro-panel h2, .macro-panel h3 { margin-top:0; }
.macro-toolbar { display:flex; gap:12px; align-items:end; flex-wrap:wrap; padding:12px 0; }
.macro-toolbar label { display:flex; flex-direction:column; gap:5px; font-size:12px; }
.macro-toolbar label[hidden] { display:none; }
.macro-toolbar input { max-width:145px; direction:ltr; }
.macro-toolbar select { max-width:100%; }
.macro-chart-wrap { overflow:auto; max-width:100%; }
.macro-main .chart-svg { width:100%; min-height:235px; display:block; }
.macro-main .chart-title, .macro-main .chart-legend { font-size:12px; color:var(--text-secondary); margin:8px 0; display:flex; gap:16px; flex-wrap:wrap; }
.macro-main .chart-svg text { font-family:var(--font-family); }
.macro-main .table-wrap { overflow:auto; max-height:560px; border:1px solid var(--border); border-radius:6px; }
.macro-main table { border-collapse:collapse; width:100%; text-align:right; }
.macro-main th { background:var(--page-bg); position:sticky; top:0; white-space:nowrap; }
.macro-main th, .macro-main td { padding:9px 12px; border-bottom:1px solid var(--border); vertical-align:top; font-size:12px!important; }
.macro-main td details { min-width:160px; max-width:400px; }
.macro-main summary { cursor:pointer; color:var(--primary); }
.macro-main pre { white-space:pre-wrap; overflow-wrap:anywhere; direction:ltr; text-align:left; font-size:11px; }
.macro-main .rates-chart-frame { position:relative; }
.macro-main .rates-chart-frame svg { width:100%; height:300px; display:block; }
.macro-main .rates-chart-tip { position:absolute; padding:10px; background:var(--surface); border:1px solid var(--border); border-radius:6px; box-shadow:0 3px 12px #142d4e18; pointer-events:none; font-size:12px; z-index:2; }
.macro-main .rates-chart-tip div { display:flex; gap:18px; justify-content:space-between; }
.macro-main .rates-chart-head { display:flex; justify-content:space-between; flex-wrap:wrap; }
.macro-main .rates-chart-grid { stroke:var(--border); stroke-width:1; }
.macro-main .rates-chart-ytick, .macro-main .rates-chart-xtick { fill:var(--text-secondary); font-size:10px; }
.macro-main .rates-chart-badge rect { fill:var(--selected-bg); }
.macro-main .rates-chart-badge text { fill:var(--primary-hover); font-size:10px; }
.macro-main .rates-chart-cross { stroke:var(--text-secondary); stroke-dasharray:3 3; }
.macro-main .rates-chart-end, .macro-main .rates-chart-hover circle { fill:var(--primary); }
.macro-main .rates-chart-note, .macro-main .rates-chart-head p, .macro-main .rates-chart-meta { font-size:12px; color:var(--text-secondary); }
.macro-main .fx-hero-main { padding:20px; border-radius:10px; }
.macro-main .fx-hero-value bdi { font-size:30px; }
.macro-main .fx-research { font-size:14px; margin-bottom:0; }
.macro-main .fx-research h2 { font-size:17px; }
.macro-error { padding:20px; border:1px solid var(--border); background:var(--surface); border-radius:8px; }
.omo-charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr)); gap:12px; }
.omo-charts .macro-panel { margin:0; padding:12px; }
.policy-panel .policy-svg { height:260px; min-height:0; }
.policy-panel .macro-toolbar input { max-width:170px; }
.omo-dashboard { --omo-ink:#183247; --omo-muted:#5e707c; --omo-line:#dce5e8; --omo-injection:#13765f; --omo-absorption:#b4434b; --omo-demand:#355f96; --omo-acceptance:#13765f; --omo-unmet:#d6aa52; --omo-rate:#192f55; --omo-facilities:#b26422; max-width:1240px; margin:0 auto; color:var(--text); }
.omo-intro { display:flex; align-items:end; justify-content:space-between; gap:18px; padding:8px 2px 22px; }
.omo-intro h2 { margin:5px 0 7px; color:var(--omo-ink); font-size:25px; }
.omo-intro p,.omo-muted,.omo-chart-note,.omo-source { color:var(--omo-muted); font-size:13px; line-height:1.8; margin:0; }
.omo-eyebrow,.omo-step { color:var(--primary); font-size:11px; font-weight:700; letter-spacing:.02em; }
.omo-global-controls { display:flex; gap:10px; flex-wrap:wrap; }
.omo-period { display:flex; flex-direction:column; gap:5px; min-width:135px; color:var(--omo-muted); font-size:12px; }
.omo-period select { min-width:135px; }
.omo-dashboard .omo-panel { margin:0 0 18px; padding:22px 24px; border:1px solid var(--omo-line); background:var(--surface); border-radius:13px; box-shadow:0 4px 18px #18324708; }
.omo-dashboard .omo-primary { padding:25px 28px 20px; border-top:3px solid var(--omo-teal); }
.omo-section-top { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; }
.omo-section-top h2 { margin:3px 0 4px; color:var(--omo-ink); font-size:19px; }
.omo-section-top p { max-width:750px; }
.omo-toggle { display:flex; gap:4px; padding:4px; border:1px solid var(--omo-line); background:var(--page-bg); border-radius:8px; flex-shrink:0; }
.omo-toggle button { border:0; background:transparent; color:var(--omo-muted); border-radius:6px; padding:7px 12px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
.omo-toggle button.active { background:var(--surface); color:var(--primary-hover); box-shadow:0 1px 4px #142d4e18; }
.omo-svg { display:block; width:100%; height:auto; min-height:240px; overflow:visible; }
.omo-svg:focus-visible { outline:2px solid var(--primary); outline-offset:3px; border-radius:4px; }
.omo-grid { stroke:var(--omo-line); stroke-width:1; }
.omo-axis { fill:var(--omo-muted); font-family:var(--font-family); font-size:10px; }
.omo-baseline { stroke:#aab9c0; stroke-width:1; }
.omo-zero { stroke:#566c76; stroke-width:1.4; stroke-dasharray:4 3; }
.omo-chart-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:4px 0 2px; color:var(--omo-muted); font-size:12px; }
.omo-chart-head h3 { color:var(--omo-ink); font-size:15px; margin:0; }
.omo-chart-range { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:25px; color:var(--omo-muted); font-size:11px; }
.omo-date-range { display:inline-flex; flex-direction:row; align-items:center; gap:5px; direction:rtl; unicode-bidi:isolate; white-space:nowrap; }
.omo-date { direction:ltr; unicode-bidi:isolate; white-space:nowrap; font-variant-numeric:tabular-nums; }
.omo-scale-badge { display:inline-block; border:1px solid #d5c59d; color:#72571d; background:#fff8e8; border-radius:12px; padding:1px 8px; }
.omo-chart { position:relative; min-width:0; }
.omo-chart-controls { display:flex; justify-content:flex-end; margin:-5px 0 5px; }
.omo-chart-controls label { display:flex; align-items:center; gap:8px; color:var(--omo-muted); font-size:11px; }
.omo-chart-controls select { max-width:220px; }
.omo-legend { display:flex; flex-wrap:wrap; gap:8px 20px; margin:4px 0 8px; }
.omo-legend-item { display:inline-flex; align-items:center; gap:7px; color:var(--omo-ink); font-size:12px; }
.omo-legend-item i { width:9px; height:9px; border-radius:50%; background:var(--swatch); display:inline-block; }
.omo-legend-item .omo-legend-band { width:13px; height:9px; border-radius:2px; background:#e5ecf4; border:1px solid #99a8b8; }
.omo-legend-item small { color:var(--omo-muted); font-size:11px; }
.omo-chart-note { font-size:11px; margin-top:4px; }
.omo-hit { cursor:crosshair; }
.omo-crosshair { stroke:#405767; stroke-width:1; stroke-dasharray:3 3; pointer-events:none; }
.omo-tooltip { position:absolute; z-index:5; max-width:min(310px,calc(100% - 16px)); min-width:190px; padding:10px 12px; color:#183247; background:#fff; border:1px solid #b9c9d2; border-radius:9px; box-shadow:0 5px 20px #142d4e22; pointer-events:none; direction:rtl; font-size:12px; }
.omo-tooltip[hidden] { display:none; }
.omo-tip-date { margin-bottom:7px; padding-bottom:6px; border-bottom:1px solid var(--omo-line); }
.omo-tip-value { display:flex; justify-content:space-between; align-items:center; gap:16px; line-height:1.9; }
.omo-tip-value strong { white-space:nowrap; color:var(--omo-ink); }
.omo-tip-observations,.omo-tip-source { margin-top:6px; color:var(--omo-muted); font-size:10px; overflow-wrap:anywhere; }
.omo-demand-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; margin:6px 0 2px; padding:9px 12px; background:#f5f8fb; border-right:3px solid var(--omo-demand); border-radius:6px; color:var(--omo-muted); font-size:12px; }
.omo-demand-summary strong { color:var(--omo-ink); font-weight:650; }
.omo-rate-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0 10px; }
.omo-rate-kpi { min-width:0; padding:10px 13px; border:1px solid var(--omo-line); border-radius:9px; background:#f8fafc; }
.omo-rate-kpi>span { display:block; color:var(--omo-muted); font-size:11px; }
.omo-rate-kpi>strong { display:block; margin:3px 0; color:var(--omo-rate); font-size:20px; font-variant-numeric:tabular-nums; }
.omo-rate-kpi>strong small { margin-right:5px; color:var(--omo-muted); font-size:10px; font-weight:500; }
.omo-rate-kpi p { margin:0; color:var(--omo-muted); font-size:10px; }
.omo-corridor-insight { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:4px 0 8px; }
.omo-corridor-insight>p { margin:0; color:var(--omo-ink); font-size:12px; }
.omo-corridor-meter { width:min(300px,45%); }
.omo-corridor-track { position:relative; height:8px; border-radius:10px; background:linear-gradient(90deg,#dbe4ee,#8ba0b5); }
.omo-corridor-track:before,.omo-corridor-track:after { position:absolute; top:-3px; width:2px; height:14px; background:#34495e; content:''; }
.omo-corridor-track:before { right:0; }.omo-corridor-track:after { left:0; }
.omo-corridor-track i { position:absolute; top:-4px; width:16px; height:16px; border:2px solid white; border-radius:50%; background:var(--omo-rate); box-shadow:0 0 0 1px var(--omo-rate); transform:translateX(-50%); }
.omo-corridor-ends { display:flex; justify-content:space-between; margin-top:4px; color:var(--omo-muted); font-size:10px; }
.omo-corridor-insight { direction:rtl; }
.omo-rate-kpi strong bdi { unicode-bidi:isolate; }
.omo-empty { min-height:170px; display:grid; align-content:center; color:var(--omo-muted); font-size:14px; }
.omo-empty p { font-size:12px; }
.omo-rate-panel { border-right:3px solid #174f70!important; }
.omo-compare { margin-top:18px; padding-top:14px; border-top:1px solid var(--omo-line); }
.omo-details { margin:24px 0 14px; border:1px solid var(--border); background:var(--surface); border-radius:12px; }
.omo-details>summary { cursor:pointer; padding:16px 20px; color:var(--primary-hover); font-weight:700; }
.omo-detail-inner { padding:2px 18px 18px; }
.omo-detail-inner>.omo-panel { margin-top:14px!important; }
.omo-detail-inner h2,.omo-detail-inner h3 { color:var(--omo-ink); }
.omo-source { padding:10px 2px 24px; font-size:11px; }
.omo-table-wrap { overflow:auto; }
@media(max-width:760px) {
  .omo-intro { align-items:stretch; flex-direction:column; padding-bottom:15px; }
  .omo-intro h2 { font-size:21px; }
  .omo-global-controls { display:grid; grid-template-columns:1fr 1fr; }
  .omo-period,.omo-period select { width:100%; max-width:none; box-sizing:border-box; }
  .omo-dashboard .omo-panel { padding:15px 12px; margin-bottom:12px; }
  .omo-dashboard .omo-primary { padding:17px 12px 12px; }
  .omo-section-top { align-items:stretch; flex-direction:column; gap:10px; }
  .omo-toggle { align-self:flex-start; max-width:100%; }
  .omo-toggle button { padding:7px 10px; }
  .omo-svg { min-height:220px; }
  .omo-chart-head h3 { font-size:13px; }
  .omo-rate-kpis { gap:6px; }
  .omo-rate-kpi { padding:8px 7px; }
  .omo-rate-kpi>strong { font-size:17px; }
  .omo-rate-kpi p { min-height:26px; }
  .omo-corridor-insight { align-items:stretch; flex-direction:column; gap:7px; }
  .omo-corridor-meter { width:100%; }
  .omo-demand-summary { gap:5px 10px; padding:8px; font-size:11px; }
  .omo-chart-range { gap:6px; }
  .omo-legend { gap:7px 12px; }
  .omo-detail-inner { padding:0 10px 12px; }
}
@media(max-width:760px) {
  .macro-main { padding:18px 14px 30px; }
  .macro-heading { align-items:start; }
  .macro-heading { flex-direction:column; }
  .macro-heading h1 { font-size:21px!important; }
  .macro-grid { grid-template-columns:1fr; }
  .macro-panel { padding:12px; }
  .macro-toolbar { align-items:stretch; }
  .macro-toolbar label { flex:1 1 120px; }
  .macro-toolbar input { width:100%; box-sizing:border-box; }
}
.deposit-share-track{display:block;min-width:7rem;height:.55rem;background:#e9eff0;border-radius:1rem;overflow:hidden}.deposit-share-track i{display:block;height:100%;background:#39758a;border-radius:inherit}.balance-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.macro-panel .money-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;margin:.75rem 0}.macro-panel .money-controls label{display:grid;gap:.3rem}.macro-panel .money-controls input,.macro-panel .money-controls select{max-width:100%;min-height:2.5rem;padding:.45rem .65rem}.macro-panel table{max-width:100%;overflow:auto}@media(max-width:700px){.balance-columns{grid-template-columns:1fr}.deposit-share-track{min-width:4rem}}

/* Shared Macro workspace presentation layer. All styles use سررسید theme tokens. */
.macro-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1580px;
  padding: clamp(18px, 2.2vw, 32px) clamp(16px, 2.4vw, 36px) 44px;
}
.macro-main > .macro-heading {
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}
.macro-heading > div { min-width: 0; }
.macro-heading .subtle { margin-bottom: 5px; color: var(--primary-hover); font-weight: 650; }
.macro-heading h1 { color: var(--brand-navy); line-height: 1.4; }
.macro-heading .btn { flex: none; }
.macro-context-nav,
.macro-section-nav,
.macro-dashboard-section-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 8px 0 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  direction: rtl;
}
.macro-context-nav[hidden] { display: none; }
.macro-context-nav a,
.macro-section-nav a,
.macro-dashboard-section-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary) !important;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.macro-context-nav a:hover,
.macro-section-nav a:hover,
.macro-section-nav a[aria-current="location"],
.macro-dashboard-section-nav a:hover { border-color: var(--primary); background: var(--selected-bg); color: var(--primary-hover) !important; }
.macro-context-nav a:focus-visible,
.macro-section-nav a:focus-visible,
.macro-dashboard-section-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.macro-anchor-target, .macro-panel, .omo-panel, .macro-series-disclosure { scroll-margin-top: 92px; }

/* Workspace topic groups inside the existing سررسید Macro navigation. */
.macro-nav-topic { margin: 3px 0; border-top: 1px solid color-mix(in srgb, var(--border) 42%, transparent); }
.macro-nav-topic > summary {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding: 6px 10px;
  border-radius: 5px;
  color: color-mix(in srgb, var(--surface) 77%, transparent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}
.macro-nav-topic > summary::-webkit-details-marker { display: none; }
.macro-nav-topic > summary::after { content: "⌄"; margin-inline-start: auto; transition: transform .15s ease; }
.macro-nav-topic:not([open]) > summary::after { transform: rotate(90deg); }
.macro-nav-topic > summary:hover { background: color-mix(in srgb, var(--surface) 10%, transparent); color: var(--surface); }
.macro-nav-topic-links { display: grid; gap: 2px; padding: 0 0 6px 10px; }
.macro-nav-topic-links a { min-height: 34px; font-size: 12px; }
.macro-nav-topic-links a[aria-current="page"] { background: color-mix(in srgb, var(--series-5) 20%, transparent); color: var(--surface) !important; }
.macro-nav-topic summary:focus-visible { outline: 2px solid var(--series-5); outline-offset: 1px; }
.fmap-sidebar-collapsed .macro-nav-topic { display: none; }

/* Overview: same KPI payload, arranged by existing analytical domain. */
.macro-overview-groups { display: grid; gap: 22px; }
.macro-overview-group { min-width: 0; }
.macro-overview-group > h2 { margin: 0 0 10px; color: var(--brand-navy); font-size: 16px; line-height: 1.6; }
.macro-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.macro-overview-grid.is-singleton { grid-template-columns: minmax(0, min(100%, 420px)); }
.macro-overview-grid .macro-card { padding: 15px; border-radius: 9px; }
.macro-overview-grid .macro-card h2 { line-height: 1.6; }
.macro-overview-grid .macro-card .macro-value { font-size: clamp(19px, 1.6vw, 25px); line-height: 1.5; overflow-wrap: anywhere; }
.macro-overview-related { display: inline-flex; margin-top: 9px; padding: 7px 2px; color: var(--primary-hover); font-size: 12px; font-weight: 650; text-decoration: none; }
.macro-overview-related:hover { text-decoration: underline; }

/* Keep specialist charts and controls, normalize their surrounding rhythm. */
.macro-content, #macro-content { min-width: 0; }
#macro-content > .macro-grid { margin: 0 0 18px; }
#macro-content > .macro-panel,
#macro-content > section.macro-panel { margin: 0 0 16px; padding: clamp(14px, 1.5vw, 20px); border-radius: 9px; }
.macro-panel > h2, .macro-panel > h3 { color: var(--brand-navy); line-height: 1.6; }
.macro-toolbar, .money-controls, .growth-controls, .omo-global-controls, .omo-chart-controls { align-items: end; gap: 10px; }
.macro-toolbar label, .money-controls label, .growth-controls label { min-width: 140px; }
.macro-main :is(input, select, button):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.macro-main .table-wrap, .macro-main .growth-table-scroll, .macro-main .budget-table-wrap, .macro-main .omo-table-wrap { max-width: 100%; overflow-x: auto; }
.macro-main table { min-width: 100%; }
.macro-main .macro-error { max-width: 100%; overflow-wrap: anywhere; }
.macro-main .macro-error button { margin-top: 8px; }
.macro-main .money-controls, .macro-main .macro-toolbar { margin-block: 10px 14px; }
.macro-main .macro-grid { gap: 12px; }
.macro-main .macro-card { min-height: 0; }
.macro-main :is(.inf-intro, .growth-intro, .omo-intro) { border-bottom: 1px solid var(--border); margin-bottom: 12px; padding-bottom: 14px; }
.macro-main .inf-intro h2, .macro-main .growth-intro h2, .macro-main .omo-intro h2 { color: var(--brand-navy); line-height: 1.45; }
.macro-main .inf-kpi, .macro-main .growth-kpis article, .macro-main .budget-kpi { border-radius: 9px; }
.macro-main .inf-panel, .macro-main .growth-panel, .macro-main .budget-section, .macro-main .omo-panel { border-radius: 9px; }
.macro-main :is(.growth-tabs, .budget-view-tabs) { display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; margin-bottom: 16px; overflow-x: auto; scrollbar-width: thin; }
.macro-main .growth-tabs button, .macro-main .budget-view-tabs [role="tab"] { flex: 0 0 auto; min-height: 42px; }
.macro-main .budget-view-tabs [role="tab"] { border-radius: 6px 6px 0 0; }
.macro-main .budget-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.macro-main .inf-dashboard .macro-local-nav { position: sticky; top: 62px; z-index: 5; margin: 0 0 14px; padding: 8px 0; background: var(--page-bg); }
.macro-main .inf-dashboard .macro-local-nav a { min-height: 34px; display: inline-flex; align-items: center; white-space: nowrap; }
.macro-main .growth-dashboard { max-width: 100%; }
.macro-main .omo-dashboard { max-width: 100%; }
.macro-main .omo-section-nav { position: sticky; top: 62px; z-index: 5; padding-block: 7px; background: var(--page-bg); }
.macro-series-index { position: sticky; top: 62px; z-index: 5; background: var(--page-bg); }
.macro-series-disclosure { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.macro-series-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; color: var(--brand-navy); cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.7; list-style: none; }
.macro-series-disclosure > summary::-webkit-details-marker { display: none; }
.macro-series-disclosure > summary::after { content: "⌄"; flex: none; color: var(--primary); transition: transform .15s ease; }
.macro-series-disclosure:not([open]) > summary::after { transform: rotate(90deg); }
.macro-series-disclosure > summary:hover { background: var(--selected-bg); }
.macro-series-body { padding: 0 14px 14px; min-width: 0; }
.macro-series-disclosure .macro-toolbar { flex-wrap: wrap; }
.macro-series-disclosure .macro-chart-wrap { max-width: 100%; overflow-x: auto; }

@media (max-width: 1100px) {
  .macro-main { max-width: none; padding: 20px clamp(14px, 3vw, 24px) 34px; }
  .macro-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .macro-section-nav, .macro-context-nav, .macro-dashboard-section-nav { position: sticky; top: 54px; z-index: 5; background: var(--page-bg); }
  .macro-main .inf-dashboard .macro-local-nav, .macro-main .omo-section-nav, .macro-series-index { top: 54px; }
}
@media (max-width: 760px) {
  .macro-main { padding: 16px 14px 28px; }
  .macro-main > .macro-heading { align-items: stretch; gap: 10px; margin-bottom: 10px; padding-bottom: 12px; }
  .macro-main > .macro-heading h1 { font-size: 21px !important; }
  .macro-main > .macro-heading .btn { align-self: flex-start; }
  .macro-context-nav { margin-bottom: 14px; }
  .macro-main .macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .macro-main .macro-card { padding: 12px; }
  .macro-main .macro-card .macro-value { font-size: 19px; }
  .macro-overview-grid { gap: 8px; }
  .macro-overview-grid.is-singleton { grid-template-columns: 1fr; }
  .macro-overview-grid .macro-card { padding: 11px; }
  .macro-overview-grid .macro-card h2 { font-size: 13px !important; }
  .macro-overview-grid .macro-card .macro-value { font-size: 18px; }
  .macro-overview-group > h2 { margin-bottom: 7px; font-size: 14px; }
  .macro-overview-groups { gap: 16px; }
  .macro-main :is(.inf-intro, .growth-intro, .omo-intro) { align-items: stretch; flex-direction: column; gap: 8px; }
  .macro-main .macro-toolbar, .macro-main .money-controls, .macro-main .growth-controls, .macro-main .omo-global-controls { align-items: stretch; }
  .macro-main .macro-toolbar label, .macro-main .money-controls label { flex: 1 1 130px; min-width: 0; }
  .macro-main .macro-toolbar input, .macro-main .macro-toolbar select, .macro-main .money-controls input, .macro-main .money-controls select { width: 100%; min-width: 0; box-sizing: border-box; }
  .macro-main .macro-panel, .macro-main .inf-panel, .macro-main .growth-panel, .macro-main .budget-section, .macro-main .omo-panel { padding: 13px 11px; }
  .macro-main :is(.growth-tabs, .budget-view-tabs) { margin-inline: -2px; padding-bottom: 2px; }
  .macro-main .growth-tabs button, .macro-main .budget-view-tabs [role="tab"] { padding-inline: 11px; font-size: 12px; }
  .macro-series-body { padding: 0 10px 11px; }
  .macro-series-disclosure > summary { padding: 9px 12px; font-size: 13px; }
  .macro-main .balance-columns { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .macro-overview-grid, .macro-main .macro-grid { grid-template-columns: 1fr; }
  .macro-overview-grid .macro-card .macro-value, .macro-main .macro-card .macro-value { font-size: 21px; }
  .macro-main .macro-heading > div { overflow-wrap: anywhere; }
}

