/* tmk-invest — the Situation Center's dark style (same tokens), so the «Batafsil» window looks like part of it. */
:root {
  --bg: #050c18; --panel: linear-gradient(180deg, #0c1b31 0%, #08152a 100%); --edge: #1b3a5e; --edge2: #2a5688;
  --text: #e8f0f8; --muted: #8ea3b9; --dim: #5e7590; --blue: #2f8cff; --cyan: #45c8ff; --gold: #ffc35a;
  --good: #38d97a; --warn: #ffc53d; --bad: #ff5d5d; --nd: #f5dc3c;
  font: 14px/1.4 Manrope, "Segoe UI", system-ui, sans-serif; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--cyan); }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); } .nd { color: var(--nd); font-weight: 700; }

.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--edge); background: #071022; }
.top h1 { margin: 0; font-size: 18px; flex: 1; }
.lang { display: flex; gap: 6px; color: var(--dim); } .lang a { color: var(--muted); text-decoration: none; font-weight: 700; } .lang a[aria-current] { color: var(--text); }
.embed .top { display: none; }
.embed .ph .no, .embed .ph h2 { display: none; } /* the window shows № and name in its own header */
.wrap { padding: 14px 20px 20px; }
.embed .wrap { padding: 10px; }

.dp { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; box-shadow: 0 0 0 1px #0f2747 inset; min-width: 0; }
.dh { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; font-weight: 700; }
.dh svg { width: 16px; height: 16px; color: var(--cyan); flex: none; } .dh .sp { flex: 1; } .dh small { color: var(--muted); font-weight: 500; }
.db { padding: 4px 14px 14px; }

/* list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters input { flex: 1 1 260px; background: #071325; border: 1px solid var(--edge2); border-radius: 6px; padding: 8px 10px; color: var(--text); font: inherit; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #2a3c5e; border-radius: 999px; padding: 6px 12px; background: none; cursor: pointer; color: var(--muted); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { border-color: var(--c, var(--gold)); color: var(--text); background: color-mix(in srgb, var(--c, var(--gold)) 15%, transparent); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--edge); position: sticky; top: 0; background: #0a172b; }
td { padding: 8px; border-bottom: 1px solid #13284a; vertical-align: top; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr:hover td { background: #0e1d36; }
td a { color: var(--text); text-decoration: none; } td a:hover { color: var(--cyan); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.risk { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; }

/* project page */
.ph { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ph .no { background: var(--gold); color: #1a1000; font-weight: 800; border-radius: 6px; padding: 3px 9px; flex: none; }
.ph h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ph .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.25fr) minmax(340px, 1.2fr); gap: 10px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kv div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid #13284a; font-size: 13px; }
.kv span { color: var(--muted); } .kv b { text-align: right; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tile { border: 1px solid #2a5688; background: #0e2a4a; border-radius: 6px; padding: 7px; text-align: center; }
.tile b { display: block; font-size: 18px; } .tile span { font-size: 11px; color: var(--muted); }
.text { font-size: 13px; line-height: 1.5; margin: 0; }
.done { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.done li { padding-left: 18px; position: relative; } .done li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.bars { display: grid; gap: 8px; align-items: end; height: 140px; }
.bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.bars i { width: 60%; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), #1d5a9a); }
.bars.prod i { background: linear-gradient(180deg, #b46bff, #4b2a7a); }
.bars b { color: var(--text); font-size: 12px; }
.fin div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #24456e; font-size: 13px; }
.fin .tot { border: 0; font-weight: 800; color: var(--cyan); }
.partners { display: flex; flex-wrap: wrap; gap: 6px; } .partners span { border: 1px solid var(--edge2); border-radius: 6px; padding: 6px 10px; font-weight: 700; font-size: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.three div { border: 1px solid var(--edge); border-radius: 6px; padding: 7px 9px; font-size: 11px; color: var(--muted); } .three b { display: block; color: var(--text); font-size: 16px; margin-top: 2px; }

/* AI forecast */
.ai { border-color: #3a3a8a; background: linear-gradient(180deg, #121a3d 0%, #0a1430 100%); }
.ai .dh svg { color: #b48cff; }
.ai .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #c9b3ff; border: 1px solid #5a4aa8; border-radius: 4px; padding: 1px 6px; }
.fc { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.fc .big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.fc .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; } .fc .sub b { color: var(--text); }
.ring { --p: 0; --c: var(--good); width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #1d2c4d 0); display: grid; place-items: center; }
.ring div { width: 72px; height: 72px; border-radius: 50%; background: #0d1736; display: grid; place-items: center; text-align: center; font-size: 10px; color: var(--muted); line-height: 1.15; }
.ring b { display: block; font-size: 20px; color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.why { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.why li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.4; }
.why .m { text-align: right; font-weight: 800; color: var(--warn); }
.why .m small { display: block; height: 4px; border-radius: 2px; background: var(--warn); margin: 4px 0 0 auto; width: var(--w); }
.gaps { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--nd); }
details.how { margin-top: 10px; font-size: 12px; color: var(--muted); } details.how summary { cursor: pointer; color: #c9b3ff; }
.h4 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; font-weight: 700; }

/* timeline */
.tl { position: relative; height: 92px; margin: 4px 6px 0; }
.tl .axis { position: absolute; left: 0; right: 0; top: 66px; border-top: 1px solid #24456e; }
.tl .yr { position: absolute; top: 70px; font-size: 11px; color: var(--muted); translate: -50% 0; }
.tl .bar { position: absolute; height: 14px; border-radius: 3px; font-size: 10.5px; line-height: 14px; padding: 0 6px; white-space: nowrap; overflow: hidden; color: #04121f; font-weight: 700; }
.tl .plan { top: 10px; background: var(--cyan); }
.tl .pred { top: 32px; background: linear-gradient(90deg, var(--cyan) var(--k), var(--warn) var(--k)); }
.tl .now { position: absolute; top: 2px; bottom: 22px; border-left: 2px dashed var(--gold); }
.tl .now span { position: absolute; top: -2px; left: 4px; font-size: 10.5px; color: var(--gold); white-space: nowrap; }
.src { margin-top: 10px; font-size: 11px; color: var(--dim); }

@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }
