.market-workspace { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:18px; }
.workspace-header,.section-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.workspace-header { padding:5px 2px 14px; border-bottom:1px solid var(--debt-line); }
.workspace-header h1 { margin:0 0 3px; font-size:26px; }
.workspace-header p { margin:4px 0 0; color:var(--debt-muted); }
.eyebrow { color:var(--debt-teal); font-size:11px; font-weight:750; letter-spacing:.04em; margin:0 0 3px!important; }
.snapshot-stamp { min-width:220px; display:grid; justify-items:start; gap:5px; padding:11px 14px; border:1px solid var(--debt-line); border-radius:var(--debt-radius); background:var(--debt-panel); }
.snapshot-stamp strong { font-size:14px; direction:rtl; text-align:right; unicode-bidi:isolate; }
.snapshot-stamp small,.section-head small,.live-section p { color:var(--debt-muted); }
.state-pill { border-radius:999px; background:var(--debt-teal-soft); color:var(--debt-teal-deep); padding:3px 9px; font-size:11px; font-weight:700; }
.state-pill.final { background:#edf4e8; color:#4d6b32; }
.panel { min-width:0; border:1px solid var(--debt-line); border-radius:var(--debt-radius); background:var(--debt-panel); padding:16px; }
.filters { display:grid; grid-template-columns:repeat(6,minmax(112px,1fr)); align-items:end; gap:10px; }
.filters label { display:grid; gap:5px; font-size:11px; color:var(--debt-muted); }
.filters input,.filters select,.inline-date input { min-width:0; width:100%; height:36px; border:1px solid var(--debt-line); border-radius:6px; background:var(--surface); color:var(--debt-ink); padding:5px 9px; font:inherit; font-size:12px; }
.filters .wide { grid-column:span 2; }
.filters button,.pagination button,.quiet-button { min-height:35px; border:1px solid var(--debt-line); border-radius:6px; background:var(--surface); color:var(--debt-ink); padding:6px 12px; font:inherit; cursor:pointer; }
.filters button { background:var(--debt-teal); color:white; border-color:var(--debt-teal); }
.filters button:hover { filter:brightness(.95); }
.filters input:focus,.filters select:focus,.inline-date input:focus { outline:2px solid color-mix(in srgb,var(--debt-teal) 28%,transparent); }
.live-section { padding-bottom:8px; }
.akhza-curve-card { width:100%; max-width:calc(100vw - 300px); min-width:0; box-sizing:border-box; padding:20px 22px 16px; }
.curve-session-date { margin:5px 0 0; color:var(--debt-muted); font-size:13px; line-height:1.7; }
.akhza-yield-curve { min-height:500px; position:relative; overflow:visible; }
.akhza-yield-curve svg { display:block; width:100%; height:auto; max-height:none; overflow:visible; }
.akhza-yield-curve .axis-label { font-size:13px; }
.akhza-yield-curve .curve-point { cursor:crosshair; stroke:#fff; stroke-width:2.2; transition:fill .12s ease,stroke-width .12s ease; }
.akhza-yield-curve .curve-point-akhza { fill:#123f70; }
.akhza-yield-curve .curve-point-erad { fill:#d07819; }
.akhza-yield-curve .curve-point:hover,.akhza-yield-curve .curve-point:focus { stroke:#fff; stroke-width:3.2; outline:none; filter:brightness(1.12); }
.akhza-yield-curve .curve-axis { stroke:#374b60; stroke-width:1.6; }
.akhza-yield-curve .curve-axis-tick { stroke:#526478; stroke-width:1.25; }
.akhza-yield-curve .curve-vertical-grid { stroke-dasharray:2 5; opacity:.42; }
.akhza-yield-curve .curve-axis-title { font-size:16px; font-weight:700; fill:var(--debt-ink); }
.akhza-yield-curve .curve-tick { font-size:13px; fill:#526478; paint-order:stroke; stroke:var(--debt-panel); stroke-width:3px; stroke-linejoin:round; }
.akhza-yield-curve .curve-trendline { stroke-width:1.8; opacity:.92; }
.akhza-yield-curve .curve-trendline-akhza { stroke:#123f70; }
.akhza-yield-curve .curve-trendline-erad { stroke:#b45b0b; }
.akhza-yield-curve .curve-legend { margin-top:2px; gap:22px; font-size:13px; color:#3d5064; }
.akhza-yield-curve .curve-point-key { width:11px; height:11px; border-radius:0; background:#123f70; transform:rotate(45deg); }
.akhza-yield-curve .curve-key-erad { background:#d07819; }
.akhza-yield-curve .curve-line-key { width:23px; height:2px; background:#123f70; }
.akhza-yield-curve .curve-line-erad { background:#b45b0b; }
.akhza-yield-curve .curve-tooltip { position:absolute; z-index:3; min-width:225px; max-width:min(280px,calc(100% - 16px)); padding:11px 13px; border:1px solid #c9d5e2; border-radius:9px; background:#fff; box-shadow:0 8px 24px #173f7026; color:#18324c; direction:rtl; font-size:12px; line-height:1.6; pointer-events:none; }
.akhza-yield-curve .curve-tooltip[hidden] { display:none; }
.akhza-yield-curve .curve-tooltip strong { display:block; margin-bottom:6px; padding-bottom:5px; border-bottom:1px solid #e5ebf1; color:#123f70; font-size:14px; }
.akhza-yield-curve .curve-tooltip div { display:flex; justify-content:space-between; gap:16px; padding:2px 0; }
.akhza-yield-curve .curve-tooltip span { color:#68798a; }
.akhza-yield-curve .curve-tooltip b { color:#18324c; font-weight:700; white-space:nowrap; }
.section-head { margin-bottom:12px; }
.section-head h2 { font-size:16px; margin:0; color:var(--debt-ink); }
.section-head p:not(.eyebrow) { font-size:11px; margin:4px 0 0; }
.live-meta { display:flex; align-items:center; gap:10px; color:var(--debt-muted); font-size:11px; }
.table-scroll { overflow:auto; max-height:530px; border-top:1px solid var(--debt-line); }
table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:11px; }
th { position:sticky; top:0; z-index:1; background:var(--page-bg); color:var(--debt-muted); font-weight:650; text-align:right; }
th,td { padding:9px 10px; border-bottom:1px solid var(--debt-line); }
tbody tr[data-inscode] { cursor:pointer; }
tbody tr[data-inscode]:hover,tbody tr.selected { background:var(--debt-teal-soft); }
td:first-child { min-width:190px; } td:first-child small { display:block; color:var(--debt-muted); font-size:10px; margin-top:2px; }
.positive { color:#23866c; } .negative { color:#ba4b4b; }
.empty { color:var(--debt-muted); text-align:center; padding:24px; }
.pagination { display:flex; align-items:center; justify-content:space-between; padding:9px 2px 1px; color:var(--debt-muted); font-size:11px; }
.pagination div { display:flex; gap:6px; }
button:disabled { opacity:.45; cursor:default; }
.kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.kpi { min-width:0; display:grid; gap:6px; border:1px solid var(--debt-line); border-radius:var(--debt-radius); background:var(--debt-panel); padding:14px; }
.kpi span,.kpi small { color:var(--debt-muted); font-size:11px; }
.kpi strong { font-size:19px; overflow:hidden; text-overflow:ellipsis; direction:ltr; text-align:right; unicode-bidi:isolate; color:var(--debt-ink); }
.kpi small { font-size:10px; }
.chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.chart-panel { min-height:290px; }
.chart { min-height:225px; width:100%; }
.chart svg { display:block; width:100%; height:auto; max-height:245px; overflow:visible; }
.market-value-chart svg { max-height:none; }
.market-value-chart .market-bar { fill:var(--debt-teal); opacity:.88; }
.market-value-chart .market-bar:hover { opacity:1; }
.market-value-chart .market-value-y-tick { paint-order:stroke; stroke:var(--debt-card,#fff); stroke-width:5px; stroke-linejoin:round; }
.grid-line { stroke:var(--debt-line); stroke-width:1; }
.axis-label { fill:var(--debt-muted); font-size:10px; font-family:inherit; }
.legend { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; font-size:10px; color:var(--debt-muted); margin-top:4px; }
.legend span { display:inline-flex; align-items:center; gap:5px; }
.legend i { width:9px; height:9px; display:inline-block; border-radius:50%; }
.chart-empty { padding:58px 8px; }
.detail-charts { display:grid; gap:12px; }
.detail-charts>div>small { color:var(--debt-muted); font-size:10px; }
.detail-charts .chart { min-height:170px; }
.inline-date { display:flex; align-items:center; gap:6px; font-size:10px; color:var(--debt-muted); }
.inline-date input { width:116px; }
.curve-dates { display:flex; flex-wrap:wrap; gap:8px; }
.client-chart { min-height:175px; }
.client-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.client-metrics>div { display:grid; gap:4px; border:1px solid var(--debt-line); border-radius:6px; padding:9px; }
.client-metrics span,.client-metrics small,.client-net span { font-size:10px; color:var(--debt-muted); }
.client-metrics strong,.client-net strong { font-size:14px; color:var(--debt-ink); }
.client-net { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--debt-line); margin-top:9px; padding-top:10px; }
.coverage-note { font-size:10px; color:var(--debt-muted); line-height:1.7; margin:9px 0 0; }
.classification { display:grid; gap:12px; padding:8px 2px; }
.class-row { display:grid; grid-template-columns:100px 45px 1fr; align-items:center; gap:10px; font-size:11px; }
.class-row strong { direction:ltr; text-align:right; }
.bar { height:7px; border-radius:8px; background:var(--page-bg); overflow:hidden; }
.bar i { display:block; height:100%; border-radius:8px; background:var(--debt-teal); }
.workspace-status { border:1px solid #eccd94; border-radius:7px; background:#fff8e9; padding:10px 12px; color:#805a1b; margin:0; font-size:12px; }
.workspace-footer { color:var(--debt-muted); font-size:10px; border-top:1px solid var(--debt-line); padding-top:10px; }
.tab-panel[hidden] { display:none!important; }
.workspace-tabs { display:flex; gap:6px; border-bottom:1px solid var(--debt-line); }
.board-mode { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:10px 14px; }
.board-mode-buttons,.snapshot-date-controls { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
.board-mode-button { border:1px solid var(--debt-line); border-radius:8px; padding:8px 13px; background:var(--debt-panel); color:var(--debt-ink); cursor:pointer; }
.board-mode-button.active { border-color:var(--debt-teal); color:var(--debt-teal-deep); font-weight:700; background:color-mix(in srgb,var(--debt-teal) 8%,var(--debt-panel)); }
.snapshot-date-controls label { display:grid; gap:4px; color:var(--debt-muted); font-size:12px; }
.snapshot-date-controls input { min-width:150px; border:1px solid var(--debt-line); border-radius:7px; padding:8px 10px; background:var(--surface); color:var(--debt-ink); direction:ltr; text-align:center; font:inherit; }
.snapshot-selection-status { flex:1 1 100%; margin:0; color:var(--debt-muted); font-size:12px; }
.snapshot-selection-status.unavailable { color:var(--debt-danger,#a43c38); }
.snapshot-selection-status[data-state="available"] { color:var(--debt-success,#19745f); }
.snapshot-date-controls[hidden],.snapshot-selection-status[hidden] { display:none; }
.workspace-tab { border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; background:transparent; color:var(--debt-muted); padding:10px 18px; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.workspace-tab.active { color:var(--debt-teal-deep); border-color:var(--debt-line); background:var(--debt-panel); box-shadow:inset 0 3px var(--debt-teal); }
.today-filters,.history-filters { grid-template-columns:repeat(5,minmax(110px,1fr)); padding:12px 14px; }
.today-filters .wide,.history-filters .wide { grid-column:span 2; }
.today-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); }
.today-kpi strong { font-variant-numeric:tabular-nums; }
.history-block { display:grid; gap:10px; }
.analytics-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; padding:2px 2px 0; }
.analytics-heading .eyebrow { width:100%; }
.analytics-heading h2 { margin:0; font-size:17px; }
.analytics-heading>p:last-child { margin:0; color:var(--debt-muted); font-size:11px; }
.history-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.history-kpis .kpi { padding:11px 13px; }
.history-kpis .kpi strong { font-size:17px; }
.sort-button { border:0; padding:0; background:none; color:inherit; font:inherit; font-weight:inherit; cursor:pointer; white-space:nowrap; }
.sort-button:hover,.sort-button:focus-visible { color:var(--debt-teal); text-decoration:underline; }
.sort-button::after { content:"↕"; display:inline-block; margin-inline-start:.35em; opacity:.38; font-size:.85em; }
.sort-button[aria-pressed="true"]::after { content:"▼"; opacity:.9; }
.sort-button[aria-pressed="true"][data-sort-order="ascending"]::after { content:"▲"; }
.category-grid { align-items:stretch; }
.category-grid h3 { margin:0 0 8px; font-size:13px; }
.category-card { display:grid; grid-template-columns:1fr 2fr 1.3fr; gap:10px; padding:10px 0; border-bottom:1px solid var(--debt-line); font-size:11px; }
.category-card:last-child { border-bottom:0; }
.category-card span { color:var(--debt-muted); }
.chart-filters { display:flex; align-items:center; gap:8px; }
.chart-filters label,.chart-mode { display:grid; gap:4px; color:var(--debt-muted); font-size:10px; }
.chart-filters select,.chart-mode select { min-height:32px; border:1px solid var(--debt-line); border-radius:6px; background:var(--surface); color:var(--debt-ink); padding:4px 8px; font:inherit; font-size:11px; }
.market-trend-line { fill:none; stroke:#d08b33; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.market-legend-bar,.market-legend-line { width:13px!important; height:8px!important; border-radius:2px!important; background:var(--debt-teal); }
.market-legend-line { height:3px!important; background:#d08b33!important; }
.zero-line { stroke:#536477; stroke-width:1.7; }
.net-bar.inflow { fill:#16816f; }
.net-bar.outflow { fill:#d15c5c; }
.positive-key,.negative-key { display:inline-block; width:9px; height:9px; border-radius:50%; background:#16816f; }
.negative-key { background:#d15c5c; }
@media(max-width:720px) { .chart-filters { width:100%; flex-wrap:wrap; } .chart-filters label { flex:1 1 130px; } .chart-mode { min-width:120px; } }
.classification-panel { padding:12px 16px; }
.live-section .section-head { margin-bottom:8px; }
.snapshot-stamp { min-width:205px; }
@media(max-width:1050px) { .today-filters,.history-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } .history-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:720px) { .today-filters,.history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px; } .today-filters .wide,.history-filters .wide { grid-column:span 2; } .today-filters button,.history-filters button { grid-column:span 2; } .today-kpis,.history-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .today-kpis .kpi:last-child { grid-column:span 2; } .workspace-tabs { position:sticky; top:0; z-index:4; padding-top:4px; background:var(--page-bg); } .workspace-tab { flex:1; } .category-card { grid-template-columns:1fr; gap:3px; } }
@media(max-width:1050px) { .filters { grid-template-columns:repeat(4,minmax(0,1fr)); } .kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:720px) { .market-workspace { gap:12px; } .workspace-header,.section-head { align-items:flex-start; flex-direction:column; } .snapshot-stamp { width:100%; min-width:0; } .filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; } .filters .wide { grid-column:span 2; } .filters button { grid-column:span 2; } .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .kpi:last-child { grid-column:span 2; } .chart-grid { grid-template-columns:1fr; } .panel { padding:12px; } .live-meta { flex-wrap:wrap; } .client-net { align-items:flex-start; flex-direction:column; } .inline-date { width:100%; } }
.akhza-curve-card { max-width:calc(100vw - 300px); }
.chart.akhza-yield-curve { min-height:0; }
.chart.akhza-yield-curve svg { max-height:none; }

.maturity-analysis-card { min-width:0; padding:18px 20px; }
.maturity-table-scroll { width:100%; overflow-x:auto; border:1px solid var(--debt-line); border-radius:8px; }
.maturity-table { min-width:1120px; border-collapse:separate; border-spacing:0; white-space:nowrap; font-size:11px; }
.maturity-table thead th { z-index:2; padding:11px 10px; text-align:center; }
.maturity-table thead th:first-child { position:sticky; right:0; z-index:3; min-width:205px; background:var(--surface-alt); text-align:right; }
.maturity-table tbody th,.maturity-table tbody td { padding:9px 10px; border-bottom:1px solid var(--debt-line); text-align:center; }
.maturity-table tbody th[scope="row"] { position:sticky; right:0; z-index:1; min-width:205px; color:var(--ink); background:var(--surface); text-align:right; font-weight:600; }
.maturity-table tbody tr.maturity-metric-row:nth-child(even) th[scope="row"],.maturity-table tbody tr.maturity-metric-row:nth-child(even) td { background:var(--surface-alt); }
.maturity-table tbody tr.maturity-metric-row:hover th[scope="row"],.maturity-table tbody tr.maturity-metric-row:hover td,.maturity-table tbody tr.maturity-metric-row.selected th[scope="row"],.maturity-table tbody tr.maturity-metric-row.selected td { background:var(--selected); }
.maturity-table .maturity-total { background:var(--surface-alt); color:var(--ink-strong); font-weight:750; border-inline-start:2px solid var(--debt-line-strong); }
.maturity-table .maturity-group-row th { padding:10px; background:var(--surface-alt); color:var(--ink-strong); text-align:right; font-size:12px; border-top:2px solid var(--debt-line-strong); }
.maturity-table .maturity-group-row:first-child th { border-top:0; }
.maturity-group-dot { display:inline-block; width:9px; height:9px; margin-inline-end:7px; border-radius:50%; background:var(--maturity-color); }
.maturity-chart-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 4px; }
.maturity-chart-head h3 { margin:0; color:var(--debt-ink); font-size:14px; }
.maturity-chart-head small { color:var(--debt-muted); font-size:11px; }
.maturity-chart-toggle { display:flex; gap:5px; flex-wrap:wrap; }
.maturity-chart-toggle button { border:1px solid var(--debt-line); border-radius:6px; background:var(--surface); color:var(--ink); padding:6px 10px; font:inherit; font-size:11px; cursor:pointer; }
.maturity-chart-toggle button.active { background:var(--debt-teal); border-color:var(--debt-teal); color:#fff; }
.maturity-analysis-chart { min-width:0; overflow-x:auto; }
.maturity-chart-svg { display:block; width:100%; min-width:760px; height:auto; max-height:none!important; overflow:visible; }
.maturity-grid-line { stroke:var(--debt-line); stroke-width:1; }
.maturity-axis-tick,.maturity-x-label { fill:var(--debt-muted); font-family:inherit; font-size:11px; }
.maturity-axis-tick { paint-order:stroke; stroke:var(--debt-panel); stroke-width:4px; stroke-linejoin:round; }
.maturity-x-label { font-size:11px; text-anchor:middle; }
.maturity-axis-title { fill:var(--debt-muted); font-size:11px; font-family:inherit; }
.maturity-bar { fill:var(--maturity-color); opacity:.87; cursor:pointer; outline:none; }
.maturity-bar:hover,.maturity-bar:focus { opacity:1; stroke:#233a52; stroke-width:1.5; }
.maturity-chart-legend { margin:0 0 8px; }
@media(max-width:720px) { .maturity-analysis-card { padding:12px; } .maturity-chart-head { align-items:flex-start; flex-direction:column; } .maturity-chart-toggle { width:100%; } .maturity-chart-toggle button { flex:1; } }
@media(max-width:720px) { .akhza-curve-card { max-width:calc(100vw - 24px); } }
.chart.akhza-yield-curve { min-height:0; }
.chart.akhza-yield-curve svg { max-height:none; }

@media(max-width:720px) { .today-kpis .kpi:last-child { grid-column:auto; } }
