/* Meridian workspace refinements */
.global-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 30px;background:#edf1ef;border-bottom:1px solid #d9e1dc;font-size:10px;color:#4c676d}.global-controls label{display:flex;align-items:center;gap:7px}.global-controls select{max-width:190px}.locale-note{font-size:9px;margin-left:auto;max-width:420px;line-height:1.6}.meridian-logo{width:43px;height:43px;flex-shrink:0;color:#d1b784}.brand .mark{display:none}.brand-parent{font-size:20px}.table th:last-child{text-align:right}.table td{font-variant-numeric:tabular-nums}.table-wrap{max-height:630px;overflow:auto}.table-wrap thead{position:sticky;top:0;z-index:2}.table-wrap th{background:#f0f4f6}.ledger-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:16px}.ledger-toolbar input{min-width:210px}.ledger-actions{display:flex;gap:8px;flex-wrap:wrap}.ledger-status{font-size:11px;color:#5c777d;margin:14px 0}.ledger-grid{min-width:1080px;width:100%;border-collapse:collapse;font-size:11px}.ledger-grid th{padding:13px 12px;text-align:left;background:#edf2f5;color:#5c7383;font-size:10px;white-space:nowrap}.ledger-grid td{padding:13px 12px;border-bottom:1px solid #e3e9ec;white-space:nowrap}.ledger-grid td.num,.ledger-grid th.num{text-align:right;font-variant-numeric:tabular-nums}.ledger-grid tbody tr:hover{background:#edf4f0}.ledger-grid .ledger-setup{white-space:normal;min-width:130px;max-width:200px}.ledger-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:11px;color:#5d747d;gap:10px}.ledger-pagination button:disabled{opacity:.4;cursor:default}.editor-dialog{width:min(740px,94vw);border:1px solid #b9c9cc;border-radius:7px;padding:28px;background:white;color:#244650;max-height:90vh;overflow:auto}.editor-dialog::backdrop{background:#0a202a99}.editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}.editor-grid label{font-size:11px;display:flex;flex-direction:column;gap:7px}.editor-grid input{width:100%}.editor-error{color:#aa433a;font-size:12px;line-height:1.8}.simulation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.simulation-grid label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#57717d}.simulation-grid small{font-size:10px;line-height:1.6;color:#73868c}.mc-fan{height:320px;margin-top:15px}.mc-fan svg{width:100%;height:100%}.mc-fan text{fill:#6c828d;font:11px 'Segoe UI',sans-serif}.mc-legend{display:flex;gap:25px;flex-wrap:wrap;font-size:11px;color:#4d7077;margin:14px 0}.mc-legend span::before{content:'';display:inline-block;width:20px;border-top:2px solid #168373;margin-right:8px}.mc-legend span:first-child::before{border-color:#b58b57}.mc-legend span:last-child::before{border-color:#6d8cb7}.mc-controls-note{font-size:11px;line-height:1.8;color:#607c83}.nav[data-page=monte-carlo]::before{content:'10'}.nav[data-page=brand]::before{content:'11'}
html[data-theme=dark]{color-scheme:dark;--site-background:#101a22;--site-on-background:#dfE8ed;--ink:#dbe6ed;--muted:#a4b4c0;--line:#344654;--product-cream:#101a22;--product-ink:#e0e9ec}html[data-theme=dark] body,html[data-theme=dark] .root{background:#101a22;color:#dce6ed}html[data-theme=dark] .panel,html[data-theme=dark] .metric,html[data-theme=dark] .insight,html[data-theme=dark] .product-feature,html[data-theme=dark] .plan-card,html[data-theme=dark] summary,html[data-theme=dark] .editor-dialog{background:#192832;color:#dfE9ee;border-color:#354957}html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .mvalue,html[data-theme=dark] .product-section h2,html[data-theme=dark] .product-pagehead h1,html[data-theme=dark] .product-hero h1,html[data-theme=dark] .product-feature h3,html[data-theme=dark] .plan-card h2,html[data-theme=dark] .plan-price,html[data-theme=dark] .product-legal h2,html[data-theme=dark] .methodgrid b{color:#e1e9ef}html[data-theme=dark] p,html[data-theme=dark] .sub,html[data-theme=dark] .product-lead,html[data-theme=dark] .product-feature p,html[data-theme=dark] .product-legal li,html[data-theme=dark] .product-legal p,html[data-theme=dark] .mlabel,html[data-theme=dark] .mfoot,html[data-theme=dark] .table td:first-child,html[data-theme=dark] .table th{color:#adbdc6}html[data-theme=dark] .select,html[data-theme=dark] input,html[data-theme=dark] select{background:#13232e;border-color:#435865;color:#e1eaf0}html[data-theme=dark] .table td,html[data-theme=dark] .table th,html[data-theme=dark] .ledger-grid td{border-color:#314451}html[data-theme=dark] .table tbody tr:nth-child(even),html[data-theme=dark] .ledger-grid tbody tr:hover{background:#1c2e39}html[data-theme=dark] .table th,html[data-theme=dark] .ledger-grid th{background:#233642;color:#bdcbd3}html[data-theme=dark] .global-controls,html[data-theme=dark] .workspace-banner,html[data-theme=dark] .upload,html[data-theme=dark] .policy-note,html[data-theme=dark] .workspace-welcome,html[data-theme=dark] .review-step,html[data-theme=dark] .product-review-band,html[data-theme=dark] .methodology .formula,html[data-theme=dark] .product-switch{background:#1b2d38;color:#c3d4db;border-color:#3b515b}html[data-theme=dark] .corporate-footer{background:#13232f;border-color:#344958}html[data-theme=dark] .corporate-footer *,html[data-theme=dark] .product-proof strong{color:#a9c1ce}html[data-theme=dark] .btn.alt,html[data-theme=dark] .product-secondary,html[data-theme=dark] .product-switch button[aria-pressed=true]{background:#243c49;color:#e0e9ed;border-color:#45616e}html[data-theme=dark] .gridline{stroke:#3a4d5a}html[data-theme=dark] .plot text{fill:#a3b8c5}html[data-theme=dark] .product-legal a,html[data-theme=dark] .product-feature a,html[data-theme=dark] .workspace-welcome a{color:#8ad4bf}html[data-theme=dark] .pos{color:#78c9ad}html[data-theme=dark] .neg{color:#ec9e91}html[data-theme=dark] .product-proof,html[data-theme=dark] .product-pagehead,html[data-theme=dark] .choice-row{border-color:#344b56}
@media(max-width:740px){.global-controls{padding:12px 18px;gap:12px}.locale-note{margin:0;max-width:none}.global-controls select{max-width:150px}.simulation-grid{grid-template-columns:1fr 1fr}.editor-grid{grid-template-columns:1fr}.ledger-toolbar{align-items:stretch;flex-direction:column}.mc-fan{height:230px}}
@media(max-width:440px){.simulation-grid{grid-template-columns:1fr}}

#page-consistency .twocol { grid-template-columns: minmax(0,1fr); gap:22px; }
#groupTable th:nth-child(n+2), #groupTable td:nth-child(n+2), #classificationTable th:nth-child(n+2), #classificationTable td:nth-child(n+2) {text-align:right;}
.mc-fan { position:relative; }
html[data-theme=dark] .simulation-grid label,html[data-theme=dark] .simulation-grid small,html[data-theme=dark] .smallmuted,html[data-theme=dark] .mc-controls-note,html[data-theme=dark] .product-caption,html[data-theme=dark] .ledger-status,html[data-theme=dark] .ledger-pagination,html[data-theme=dark] .mc-legend,html[data-theme=dark] .global-controls,html[data-theme=dark] .editor-grid label {color:#b7c8d2;}

#page-ledger > .section {display:none;}
html[data-theme=dark] .workspace-banner .company,html[data-theme=dark] .workspace-banner .product {color:#b4cbd7;}

/* Explicit colors override legacy light-theme numeric-cell rules. */
html[data-theme=dark] table.table,html[data-theme=dark] table.ledger-grid {color:#e5edf3;}
html[data-theme=dark] table.table td,html[data-theme=dark] table.table td:last-child,html[data-theme=dark] table.ledger-grid td {color:#e5edf3;}
html[data-theme=dark] table.table td:first-child {color:#c4d2dc;}
html[data-theme=dark] table.table th,html[data-theme=dark] table.ledger-grid th {color:#e0eaf0;background:#2b4050;}
html[data-theme=dark] table.table tbody tr:nth-child(odd),html[data-theme=dark] table.ledger-grid tbody tr:nth-child(odd){background:#192832;}
html[data-theme=dark] table.table tbody tr:nth-child(even),html[data-theme=dark] table.ledger-grid tbody tr:nth-child(even){background:#223541;}
html[data-theme=dark] table td.pos{color:#8ce0bd;}
html[data-theme=dark] table td.neg{color:#ffb3a3;}
html[data-theme=dark] .table-wrap{scrollbar-color:#758c9b #182832;}
/* Keep hover and keyboard focus within the dark palette, including striped rows. */
html[data-theme=dark] table.table tbody tr:hover,
html[data-theme=dark] table.table tbody tr:focus-within,
html[data-theme=dark] table.ledger-grid tbody tr:hover,
html[data-theme=dark] table.ledger-grid tbody tr:focus-within {
  background: #304c5e;
}
html[data-theme=dark] table.table tbody tr:hover > td,
html[data-theme=dark] table.table tbody tr:focus-within > td,
html[data-theme=dark] table.ledger-grid tbody tr:hover > td,
html[data-theme=dark] table.ledger-grid tbody tr:focus-within > td {
  background: #304c5e;
  color: #f2f7fa;
}
html[data-theme=dark] table tbody tr:is(:hover,:focus-within) > td.pos { color: #a3f0cd; }
html[data-theme=dark] table tbody tr:is(:hover,:focus-within) > td.neg { color: #ffc4b8; }

/* Navigation is a collection of tools, not a numbered sequence. */
aside .nav::before{content:none;display:none;}
.mc-assumptions{margin-top:20px;}
.mc-assumptions h2{font-size:17px;margin:0 0 10px;}
.assumption-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px;margin:22px 0 0;}
.assumption-grid dt{font-weight:600;font-size:12px;color:#294d5b;margin-bottom:8px;}
.assumption-grid dd{margin:0;font-size:11px;line-height:1.85;color:#5e7580;}
html[data-theme=dark] .assumption-grid dt{color:#e0eaf0;}
html[data-theme=dark] .assumption-grid dd{color:#bccdd6;}
@media(max-width:740px){.assumption-grid{grid-template-columns:1fr;gap:20px;}}
