/* mirofish-next — «محاكاة وطنية» mode. Uses the page tokens (app.css light/dark, hud.css dark skin). */
:root{--nat-good:#0E6B55;--nat-good-tint:rgba(14,107,85,.12);--nat-bad:#9A4A12;--nat-unsure:#5F6470;--nat-band:rgba(27,108,168,.22);--nat-line:#155A8C;--nat-ref:#9A4A12}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--nat-good:#5FD6B0;--nat-good-tint:rgba(95,214,176,.13);--nat-bad:#F2A160;--nat-unsure:#A9AEB8;--nat-band:rgba(124,189,235,.26);--nat-line:#9CCEF2;--nat-ref:#F2A160}}
:root[data-theme="dark"]{--nat-good:#5FD6B0;--nat-good-tint:rgba(95,214,176,.13);--nat-bad:#F2A160;--nat-unsure:#A9AEB8;--nat-band:rgba(124,189,235,.26);--nat-line:#9CCEF2;--nat-ref:#F2A160}

.nat-entry{display:flex;align-items:center;gap:12px;width:calc(100% - 28px);margin:0 14px 10px;padding:12px 14px;min-height:64px;border-radius:var(--r-md);background:var(--accent-tint);color:var(--ink);text-align:start}
.nat-entry:hover{background:var(--fill-2)}
.nat-entry .ic{color:var(--accent-ink)}
.nat-entry .ne-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.nat-entry .ne-t b{font-size:15px}
.nat-entry .ne-t span{font-size:12.5px;color:var(--ink-2);line-height:1.45}

.nat-root{padding-bottom:16px}
.nat-intro{margin:4px 14px 10px;font-size:13.5px;line-height:1.7;color:var(--ink-2)}
.nat-sec .sec-h{margin-bottom:8px}
.nat-hint{font-size:12.5px;color:var(--ink-2);line-height:1.6;margin:6px 0}
.nat-lab{display:block;font-size:12.5px;color:var(--ink-2);margin-bottom:4px}
.nat-seg{margin:4px 0;flex-wrap:wrap}
.nat-seg button{min-width:0;white-space:normal;line-height:1.25;padding:4px 6px}
.nat-pols{display:grid;gap:6px}
.nat-pol{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:var(--r-sm);background:var(--fill);cursor:pointer;min-height:44px}
.nat-pol input{width:20px;height:20px;margin-top:2px;flex-shrink:0;accent-color:var(--accent)}
.nat-pol>span{display:flex;flex-direction:column;gap:1px;min-width:0}
.nat-pol b{font-size:14px;font-weight:600}
.nat-d{font-size:12px;color:var(--ink-2);line-height:1.5}
.nat-field{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:13px;color:var(--ink-2)}
.nat-field select{flex:1;min-height:40px;border-radius:10px;border:.5px solid var(--hair);background:var(--solid);color:var(--ink);padding:0 10px}
.nat-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.nat-run{margin:6px 14px 10px}
.nat-go{width:100%;min-height:52px;background:var(--accent);color:var(--on-accent);font-size:15.5px;font-weight:700}
.nat-go:hover{filter:brightness(1.06);background:var(--accent)}
.nat-go[disabled]{opacity:.75;cursor:progress}
.nat-prog{height:6px;border-radius:3px;background:var(--fill-2);margin-top:10px;overflow:hidden}
.nat-prog i{display:block;height:100%;background:var(--accent);transition:width .25s linear}
.nat-msg{font-size:12.5px;color:var(--ink-2);margin-top:8px;line-height:1.6;min-height:1em}
.nat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.nat-tile{padding:10px;border-radius:var(--r-sm);background:var(--fill);min-width:0}
.nat-tile.good{background:var(--nat-good-tint)}
.nt-l{font-size:12.5px;color:var(--ink-2)}
.nt-v{font-size:17px;font-weight:700;margin:2px 0;color:var(--ink);overflow-wrap:anywhere}
.nat-tile.good .nt-v>.num{color:var(--nat-good)}
.nt-v .nb{font-size:11.5px;font-weight:500;color:var(--ink-2);white-space:nowrap}
.nt-u{font-size:11.5px;color:var(--ink-2);line-height:1.4}
.nat-chart{margin:8px 0 4px}
.nat-chart figcaption{font-size:12.5px;color:var(--ink-2);margin-bottom:2px}
.nat-chart svg{width:100%;height:auto;display:block;overflow:visible}
.nat-chart .band{fill:var(--nat-band);stroke:none}
.nat-chart .mid{fill:none;stroke:var(--nat-line);stroke-width:1.8}
.nat-chart .ax line{stroke:var(--hair);stroke-width:1}
.nat-chart .ax .yr{stroke:var(--hair);stroke-dasharray:2 3}
.nat-chart .ax text,.nat-chart .reft{font-size:9.5px;fill:var(--ink-2);font-family:var(--font)}
.nat-chart .ref{stroke:var(--nat-ref);stroke-width:1;stroke-dasharray:4 3}
.nat-chart .reft{fill:var(--nat-ref)}
.nat-list{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.nat-li{display:grid;grid-template-columns:minmax(78px,1.1fr) 2fr auto;align-items:center;gap:8px;min-height:40px;padding:4px 6px;border-radius:8px;text-align:start}
.nat-li:hover{background:var(--fill)}
.nl-t{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nl-bar{position:relative;height:14px;border-radius:7px;background:var(--fill)}
.nl-band{position:absolute;top:3px;bottom:3px;border-radius:4px;background:var(--nat-unsure);opacity:.55}
.nl-bar.good .nl-band{background:var(--nat-good);opacity:.6}
.nl-bar.bad .nl-band{background:var(--nat-bad);opacity:.6}
.nl-bar.neutral .nl-band{background:var(--accent);opacity:.5}
.nl-mid{position:absolute;top:0;bottom:0;width:2px;margin-inline-start:-1px;background:var(--ink)}
.nl-zero{position:absolute;top:-2px;bottom:-2px;inset-inline-start:50%;width:1px;background:var(--ink-3)}
.nl-v{font-size:13px;font-weight:600;min-width:44px;text-align:end}
.nat-tab{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}
.nat-tab th,.nat-tab td{padding:7px 4px;border-bottom:.5px solid var(--hair-2);text-align:start;vertical-align:top}
.nat-tab thead th{font-size:12px;color:var(--ink-2);font-weight:600}
.nat-tab tbody th{font-weight:600}
.nat-tab .nb{font-size:11.5px;color:var(--ink-2);white-space:nowrap}
.nat-gh{margin:4px 14px 8px}
.nat-gh h3{font-size:19px;margin-top:8px}
.nat-foot{margin:10px 14px 0;font-size:12px;color:var(--ink-2);line-height:1.8}
.nat-foot a{color:var(--accent-ink)}
#legend .lg-n{font-size:12px;color:var(--ink-2)}
body.nat-on #timeline{display:none}

/* dark "data cinema" skin */
body.hud .nat-entry{background:rgba(255,255,255,.05);border:1px solid var(--hair)}
body.hud .nat-entry .ic{color:var(--mode-2)}
body.hud .nat-pol,body.hud .nat-tile{background:rgba(255,255,255,.04);border:1px solid var(--hair-2)}
body.hud .nat-go{background:#E8EAEE;color:#050607}
body.hud .nat-prog i{background:var(--mode-2)}
body.hud .nat-field select{background:#0B0C0F}
.nat-ref{font-size:11.5px;color:var(--nat-ref);margin-top:2px}
