/* ===== Teme ===== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #f5f3ee;
  --card: #ffffff;
  --ink: #14211f;
  --muted: #6b7672;
  --line: #e6e2d9;
  --soft: #efece4;
  --brand: #0b3b36;
  --accent: #0f8a6c;
  --accent-soft: rgba(15, 138, 108, .16);
  --paid: #8fa3c2;
  --paid-soft: rgba(143, 163, 194, .22);
  --gold: #c99a2e;
  --pos: #0f8a6c;
  --neg: #c2413b;
  --neg-soft: rgba(194, 65, 59, .12);
  --c1: #0f8a6c; --c2: #3b6fb6; --c3: #c99a2e; --c4: #8a5cc2; --c5: #d0693a; --c6: #2aa3b8; --c7: #9aa54a; --c8: #b5487a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 31, .04), 0 4px 16px rgba(20, 33, 31, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1513; --card: #15201d; --ink: #e9eeec; --muted: #93a19c; --line: #24322e; --soft: #1b2824;
    --brand: #0b3b36; --accent: #2bbf95; --accent-soft: rgba(43, 191, 149, .18);
    --paid: #7b8fb0; --paid-soft: rgba(123, 143, 176, .2); --gold: #e0b453;
    --pos: #2bbf95; --neg: #ef6b63; --neg-soft: rgba(239, 107, 99, .15);
    --c1: #2bbf95; --c2: #5b8fd6; --c3: #e0b453; --c4: #a57ddb; --c5: #e8865a; --c6: #45c0d4; --c7: #b8c25e; --c8: #d36a98;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ===== Bază ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.pre { white-space: pre-wrap; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ===== Layout ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: none; background: var(--brand); color: #dfeae6; padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.main { flex: 1; min-width: 0; }
.content { padding: 8px 28px 48px; max-width: 1240px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 0 8px 22px; color: #fff; }
.brand small { display: block; font-weight: 500; font-size: 11px; opacity: .6; letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: #e8c26b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); margin-bottom: 14px; }
.brand-mark.big svg { width: 34px; height: 34px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b9cbc5; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav svg, .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar-foot { margin-top: auto; padding: 0 12px; }
.sidebar-foot .link-btn { color: #b9cbc5; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 28px 14px; max-width: 1240px; }
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mobile { display: none; padding: 0; }

.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }

.tabbar { display: none; }

/* ===== Elemente ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 16px; }

.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpis.three { grid-template-columns: 1.4fr 1fr 1fr; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: clamp(17px, 1.55vw, 21px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi.hero { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpi.hero span, .kpi.hero em { color: #a9c3bc; }
.kpi.hero strong { font-size: 26px; }
.kpi.pos strong { color: var(--pos); }
.kpi.neg strong { color: var(--neg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--neg); }
.link { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.chip { margin-top: 8px; border: 1px dashed var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.back { display: inline-block; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.meta { margin-top: -4px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--neg); font-size: 13px; margin: 6px 0 0; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.empty { text-align: center; padding: 28px 18px; }
.empty h2 { margin-bottom: 6px; }
.empty .btn { margin-top: 8px; }

.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.s-interesant { background: rgba(201,154,46,.16); color: var(--gold); }
.pill.s-investit { background: var(--accent-soft); color: var(--accent); }
.pill.s-respins { background: var(--neg-soft); color: var(--neg); }

.toasts { padding: 0 28px; max-width: 1240px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; transition: opacity .4s; }
.toast.hide { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }

/* Formulare */
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.form-card { max-width: 560px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.form-row.check { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; justify-content: flex-end; }
.form-row.check label { margin: 0; }
.has-error input, .has-error select { border-color: var(--neg); }

/* ===== Grafice ===== */
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 340px; }
.chart-box.donut { height: 190px; width: 190px; flex: none; }
.legend-inline { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.sw.gain { background: var(--accent); }
.sw.paid { background: var(--paid); }
.sw.dash { background: none; border-top: 2px dashed var(--muted); height: 0; width: 14px; border-radius: 0; }
.alloc { display: flex; align-items: center; gap: 18px; }
.alloc-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.alloc-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.alloc-list li:last-child { border: 0; }
.alloc-list i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.alloc-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Simulator ===== */
.sim { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
.sim-inputs { position: sticky; top: 16px; }
.field { margin-bottom: 18px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.field-head label { font-weight: 600; font-size: 13.5px; }
.unit { font-size: 12px; color: var(--muted); }
.field input[type=number] { font-size: 20px; font-weight: 700; padding: 8px 12px; letter-spacing: -.01em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 999px; margin-top: 12px;
  background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presets button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.presets button:hover { border-color: var(--accent); color: var(--accent); }
.more { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 12px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent); margin-bottom: 12px; }
.more .field input[type=number] { font-size: 16px; }

.insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.insight { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.insight span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.insight strong { font-size: 17px; }
.insight em { font-style: normal; font-size: 12px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table.num td:not(:first-child), .table.num th:not(:first-child) { text-align: right; }
.table-wrap.scroll { max-height: 380px; overflow: auto; }
.table-wrap.scroll thead th { position: sticky; top: 0; background: var(--card); }
.sim-live { display: none; }

/* ===== Calculatoare ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.calc { display: none; }
.calc.on { display: block; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.calc-grid label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.answer { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.answer.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answer.two > div { display: flex; flex-direction: column; gap: 2px; }
.answer span { font-size: 13px; color: var(--muted); font-weight: 600; }
.answer strong { font-size: 28px; letter-spacing: -.02em; color: var(--accent); }
.answer em { font-style: normal; font-size: 13px; color: var(--muted); }
.mini-compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-compare div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini-compare div.on { border-color: var(--accent); }
.mini-compare span { font-size: 12px; color: var(--muted); }
.compare-table input { padding: 6px 8px; font-size: 15px; max-width: 110px; }
.compare-table td:first-child { font-weight: 600; }
.result-list { margin-top: 14px; }
.result-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-row em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--muted); }
.result-row.best b { color: var(--accent); }
.badge { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

/* ===== Portofoliu ===== */
.positions, .entries, .simple-list, .idea-mini, .my-ideas { list-style: none; margin: 0; padding: 0; }
.positions li a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.positions li:last-child a { border: 0; }
.positions li a:hover { background: var(--soft); border-radius: 10px; }
.pos-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pos-main small, .pos-num small { font-size: 12.5px; color: var(--muted); }
.pos-num { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.pos-num small.pos { color: var(--pos); } .pos-num small.neg { color: var(--neg); }
.bar { height: 4px; background: var(--soft); border-radius: 999px; margin-top: 6px; max-width: 260px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.entries li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.entries li:last-child { border: 0; }
.entries span { flex: 1; display: flex; flex-direction: column; }
.entries small { color: var(--muted); font-size: 12px; }
.entries form { margin: 0; }
.x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--neg); background: var(--neg-soft); }
.simple-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.simple-list small { color: var(--muted); }
.danger-zone { margin-top: 18px; }

/* ===== Acasă ===== */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.quick-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.quick-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.quick-card b { color: var(--accent); }
.quick-card span { font-size: 13px; color: var(--muted); }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border: 0; }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 0; text-align: right; display: flex; flex-direction: column; }
.facts dd small { font-size: 11.5px; color: var(--muted); }
.facts.cols { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.idea-mini li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.idea-mini li:last-child a { border: 0; }

/* ===== Idei ===== */
.my-ideas li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-ideas li:last-child { border: 0; }
.mi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mi-main small { color: var(--muted); font-size: 12.5px; }
.mi-main p { font-size: 13.5px; margin: 4px 0 0; color: var(--ink); opacity: .85; }
.mi-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.section-title { font-size: 19px; margin: 26px 0 4px; }
.section-sub { margin-bottom: 14px; font-size: 13.5px; }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; font-size: 14px; }
.guide-card header { margin-bottom: 8px; }
.guide-card h3 { font-size: 16px; margin: 6px 0 6px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.risk { display: flex; align-items: center; gap: 3px; }
.risk i { width: 18px; height: 5px; border-radius: 3px; background: var(--soft); }
.risk i.on.r1, .risk i.on.r2 { background: var(--pos); }
.risk i.on.r3 { background: var(--gold); }
.risk i.on.r4, .risk i.on.r5 { background: var(--neg); }
.risk small { margin-left: 6px; color: var(--muted); font-size: 11.5px; }
.guide-card dl { margin: 6px 0 10px; display: grid; gap: 6px; }
.guide-card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: 13px; }
.guide-card dt { color: var(--muted); }
.guide-card dd { margin: 0; }
.how { margin-top: auto; font-size: 13px; background: var(--soft); padding: 8px 10px; border-radius: 10px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.principles > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.principles p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }

/* ===== Login ===== */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, rgba(15,138,108,.18), transparent), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 26px; }
.login-card p { margin-bottom: 18px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.login-card .btn { margin-top: 6px; padding: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .hero { grid-column: 1 / -1; }
  .kpis.three { grid-template-columns: 1fr 1fr; }
  .insights { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .facts.cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; }
  .sim-inputs { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .sidebar { display: none; }
  .brand-mobile { display: inline-flex; }
  .brand-mobile .brand-mark { background: var(--brand); width: 32px; height: 32px; }
  .topbar { padding: calc(14px + env(safe-area-inset-top)) 16px 10px; position: sticky; top: 0; z-index: 10; background: var(--bg); }
  .topbar h1 { font-size: 19px; }
  .content { padding: 4px 14px calc(92px + env(safe-area-inset-bottom)); }
  .toasts { padding: 0 14px; }
  .card { padding: 14px 15px; border-radius: 14px; }
  .kpi strong { font-size: 18px; }
  .kpi.hero strong { font-size: 24px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; flex: 1; }
  .tabbar a.active { color: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; }
  .chart-box { height: 220px; }
  .chart-box.tall { height: 260px; }
  .alloc { flex-direction: column; align-items: stretch; }
  .chart-box.donut { margin: 0 auto; }
  .answer.two { grid-template-columns: 1fr; }
  .answer strong { font-size: 24px; }
  .mini-compare { grid-template-columns: 1fr 1fr; }
  .principles, .facts.cols { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .my-ideas li { flex-direction: column; }
  .mi-side { flex-direction: row; align-items: center; }
  .card-head h2 { font-size: 15px; }
  .positions li a { padding: 12px 0; }
  .legend-inline { display: none; }
  .kpis:not(.three) .kpi:nth-child(4) { grid-column: 1 / -1; }
  .sim-live { display: flex; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 9; justify-content: space-between; gap: 8px;
    background: var(--brand); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .sim-live div { display: flex; flex-direction: column; }
  .sim-live span { font-size: 11px; color: #a9c3bc; }
  .sim-live b { font-size: 16px; }
  .sim-live b.pos { color: #6fe0bd; }
  #sim-table th:nth-child(5), #sim-table td:nth-child(5) { display: none; }
  #sim-table { font-size: 12.5px; }
}
