@font-face { font-family: "Cairo"; src: url("/fonts/cairo-arabic.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Cairo"; src: url("/fonts/cairo-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --ink: #111417; --ink-2: #1d2227; --line: #e3ded5; --line-2: #cfc8bc;
  --paper: #f4f1ec; --card: #ffffff; --text: #1c2024; --muted: #5d646c; --faint: #8a9097;
  --signal: #ff7a1a; --signal-2: #e86a10; --signal-soft: #fff0e4;
  --st-official: #2e6b5e; --st-estimated: #24507a; --st-historical: #8a5a00; --st-manual: #9c3d23; --st-deposit: #5c636b;
  --ok-bg: #e8f3ef; --warn-bg: #fff6e0; --warn: #7a5200; --err-bg: #fbeae5; --err: #9c2f17;
  --radius: 10px; --shadow: 0 1px 2px rgba(17,20,23,.06), 0 4px 16px rgba(17,20,23,.05);
  --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.6 var(--font); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.amt small { font-weight: 500; color: var(--muted); font-size: .78em; }
bdi { unicode-bidi: isolate; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #f4f1ec; border-bottom: 3px solid var(--signal); }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--signal); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #c3c7cc; }
.seg { display: inline-flex; background: #23292f; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: #d6d9dd; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.seg button[aria-selected="true"] { background: var(--signal); color: var(--ink); }
.top-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-tools select { background: #23292f; color: #f4f1ec; border: 1px solid #3a4047; border-radius: 8px; padding: 6px 8px; max-width: 250px; }
.staff-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #d6d9dd; cursor: pointer; }

.page { max-width: 1280px; margin: 0 auto; padding: 18px 16px 96px; }
.page-head h1 { font-size: 22px; margin: 0 0 2px; }
.page-head p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sample-note { background: var(--signal-soft); border: 1px solid #ffd2ae; color: #6b3606; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.design-intro { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }

/* ---------- generic form ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .field .lbl { font-weight: 600; font-size: 13.5px; }
.inwrap { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.inwrap:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.inwrap input, .inwrap select { border: 0; outline: 0; padding: 8px 10px; width: 100%; min-width: 0; background: transparent; }
.inwrap input { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.inwrap input.txt { direction: rtl; }
.inwrap .suf { padding: 8px 10px; background: #f7f5f1; color: var(--muted); font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; border-inline-start: 1px solid var(--line); }
select.sel { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
.hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.err { margin: 0; color: var(--err); font-size: 12.5px; font-weight: 600; }
.err:empty { display: none; }
[aria-invalid="true"] { background: #fff8f6; }
.inwrap:has([aria-invalid="true"]) { border-color: var(--err); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: #c9c3b8; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch input:checked { background: var(--signal); }
.switch input:checked::after { inset-inline-start: 19px; }
.btn { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 600; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-link { border: 0; background: none; color: var(--st-estimated); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: #f1ede6; color: var(--err); }

.chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 20px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.6; }
.st-official { color: var(--st-official); background: #eaf4f1; }
.st-estimated { color: var(--st-estimated); background: #eaf0f7; }
.st-historical { color: var(--st-historical); background: #fbf3e2; }
.st-manual { color: var(--st-manual); background: #f9ebe6; }
.st-deposit { color: var(--st-deposit); background: #f0f1f2; border-style: dashed; }
.notice { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--signal); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: #3a3f44; margin: 8px 0 0; }
.callout { border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.callout.info { background: #eef3f8; color: #1f3f5f; }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.staff { border: 1px dashed #8a9097; background: #fbfaf7; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.staff-tag { display: inline-block; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; margin-inline-end: 6px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #faf8f4; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid #efebe4; vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: end; }
.tbl .code { color: var(--faint); font-size: 12px; direction: ltr; unicode-bidi: isolate; }
.tbl-wrap { overflow-x: auto; }
.tbl input { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; width: 100%; min-width: 90px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; background: #fff; }

/* issues */
.issues { display: grid; gap: 6px; }
.issue { font-size: 13px; border-radius: 7px; padding: 6px 10px; display: flex; gap: 8px; align-items: baseline; }
.issue.e { background: var(--err-bg); color: var(--err); }
.issue.w { background: var(--warn-bg); color: var(--warn); }
.issue button { margin-inline-start: auto; }

/* HS */
.hs-box { position: relative; }
.hs-sugg { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.hs-sugg:empty { display: none; }
.hs-sugg button { width: 100%; text-align: start; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; display: flex; gap: 10px; font-size: 13px; }
.hs-sugg button:hover, .hs-sugg button:focus { background: var(--signal-soft); }
.hs-sugg .c { direction: ltr; font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
.hs-info { background: #f7f5f1; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.hs-info:empty { display: none; }

/* summary (shared A/C) */
.summary { background: var(--ink); color: #eef0f2; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.summary h2 { font-size: 15px; margin: 0 0 6px; color: #c3c7cc; font-weight: 700; }
.summary .grand { font-size: 30px; font-weight: 800; line-height: 1.2; color: #fff; }
.summary .grand small { color: #c3c7cc; }
.summary .sub { font-size: 12.5px; color: #a8adb3; margin: 2px 0 14px; }
.sum-rows { list-style: none; margin: 0; padding: 0; }
.sum-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #2a2f35; font-size: 13.5px; }
.sum-rows li .amt small { color: #a8adb3; }
.sum-rows li.off { color: #7c838b; }
.sum-rows li .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #2a2f35; margin: 12px 0 6px; }
.bar span { display: block; height: 100%; }
.badge-inc { display: inline-block; background: #9c2f17; color: #fff; border-radius: 5px; font-size: 12px; padding: 0 8px; margin-top: 4px; }
.badge-ok { display: inline-block; background: #2e6b5e; color: #fff; border-radius: 5px; font-size: 12px; padding: 0 8px; margin-top: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.split div { background: #1d2227; border-radius: 8px; padding: 7px 9px; font-size: 12px; color: #a8adb3; }
.split b { display: block; color: #fff; font-size: 13.5px; }
.deposit-note { margin-top: 12px; background: #1d2227; border: 1px dashed #5c636b; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #d6d9dd; }
.disclaimer { font-size: 12px; color: #a8adb3; margin: 12px 0 0; }
.summary .btn { background: transparent; color: #fff; border-color: #4a5058; }
.summary .btn-primary { background: var(--signal); color: var(--ink); border-color: var(--signal); }

.mobilebar { display: none; }

/* ================= Design A — financial calculator ================= */
.A-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.A-aside { position: sticky; top: 14px; display: grid; gap: 12px; }
.A-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.A-card > header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.A-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.A-card > header h2 { font-size: 16px; margin: 0; }
.A-card > header .A-sub { margin-inline-start: auto; text-align: end; }
.A-card > header .A-sub > small { display: block; font-size: 11.5px; color: var(--muted); }
.A-body { padding: 14px 16px; display: grid; gap: 14px; }
.mode-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.mode-tabs button { border: 0; background: #fff; padding: 7px 14px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.mode-tabs button + button { border-inline-start: 1px solid var(--line-2); }
.mode-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.port-row { display: grid; grid-template-columns: 180px 1fr 150px; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid #efebe4; }
.port-row:last-child { border-bottom: 0; }
.port-row .owner { font-size: 11.5px; color: var(--muted); display: block; font-weight: 500; }
.port-row.disabled .field { opacity: .45; }
.sum-group { font-size: 12px; color: var(--muted); font-weight: 700; padding-top: 6px; }

/* ================= Design B — guided ================= */
.B-wrap { max-width: 820px; margin: 0 auto; }
.B-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.B-steps li { flex: 1; min-width: 0; }
.B-steps button { width: 100%; border: 0; background: none; cursor: pointer; padding: 0; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.B-steps .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 4px; background: #fff; border: 2px solid var(--line-2); font-weight: 800; color: var(--muted); font-size: 13px; }
.B-steps .track { height: 3px; background: var(--line-2); border-radius: 3px; margin-bottom: 6px; }
.B-steps li.done .track, .B-steps li.cur .track { background: var(--signal); }
.B-steps li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.B-steps li.cur .dot { border-color: var(--signal); color: var(--ink); background: var(--signal-soft); }
.B-steps li.bad .dot { border-color: var(--err); color: var(--err); background: #fff; }
.B-steps li.cur button { color: var(--ink); }
.B-steps .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.B-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
.B-panel h2 { margin: 0 0 4px; font-size: 20px; }
.B-panel .lead { margin: 0 0 18px; color: var(--muted); }
.B-stack { display: grid; gap: 16px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button { text-align: start; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; padding: 14px; cursor: pointer; }
.choice button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-soft); }
.choice b { display: block; font-size: 15px; }
.choice span { font-size: 13px; color: var(--muted); }
.range-row { display: grid; grid-template-columns: 1fr 200px; gap: 14px; align-items: end; }
input[type="range"] { width: 100%; accent-color: var(--signal); }
.toggle-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.toggle-card.on { border-color: #ffd2ae; background: #fffaf5; }
.toggle-card .tc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle-card .tc-head small { color: var(--muted); display: block; font-weight: 500; }
.B-bar { position: fixed; inset-inline: 0; bottom: 0; background: var(--ink); color: #fff; border-top: 3px solid var(--signal); z-index: 20; }
.B-bar-in { max-width: 820px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.B-bar .run { margin-inline-end: auto; }
.B-bar .run > small { display: block; color: #a8adb3; font-size: 12px; }
.B-bar .run .amt { font-size: 20px; }
.B-bar .run .amt small { color: #a8adb3; }
.B-bar .btn { background: transparent; color: #fff; border-color: #4a5058; }
.B-bar .btn-primary { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.receipt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.receipt .r-sec { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.receipt .r-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.receipt .r-lines { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.receipt .r-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.receipt .r-total { background: var(--ink); color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.receipt .r-total .amt { font-size: 26px; }
.receipt .r-total .amt small { color: #c3c7cc; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cta a { text-decoration: none; }

/* ================= Design C — dashboard ================= */
.C-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; border-top: 3px solid var(--c, var(--line-2)); min-width: 0; }
.kpi > small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .amt { font-size: 17px; display: block; overflow: hidden; text-overflow: ellipsis; }
.kpi.total { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--signal); }
.kpi.total > small, .kpi.total .amt small { color: #c3c7cc; }
.C-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.C-side { position: sticky; top: 14px; display: grid; gap: 12px; }
.C-ship { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.C-ship .grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.cat-head { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto 20px; gap: 12px; align-items: center; padding: 12px 14px; border: 0; background: #fff; cursor: pointer; text-align: start; }
.cat-head:hover { background: #fbfaf7; }
.cat-head .sw { width: 12px; height: 12px; border-radius: 3px; }
.cat-head .nm { font-weight: 700; }
.cat-head .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cat-head .chev { transition: transform .15s; color: var(--muted); }
.cat[data-open="true"] .chev { transform: rotate(180deg); }
.cat-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cat[data-open="false"] .cat-body { display: none; }
.cmp-diff.pos { color: var(--err); } .cmp-diff.neg { color: var(--st-official); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.panel h3 { font-size: 14px; margin: 0 0 8px; }

/* ================= Public (customer) version of B ================= */
.P-loading { padding: 24px 16px; text-align: center; }
.P-call { color: #fff; text-decoration: none; font-weight: 700; direction: ltr; border: 1px solid #3a4047; border-radius: 8px; padding: 6px 12px; }
.P-call:hover { border-color: var(--signal); }
.P-tip { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.P-gap { margin-top: 12px; }
.P-gap:empty { display: none; }
.opt { font-weight: 500; color: var(--muted); font-size: 12px; }
.P-subtotal { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f7f5f1; border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.P-adv { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.P-adv > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.P-adv[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.P-adv[open] { padding-bottom: 14px; }
.P-code { min-width: 80px; direction: ltr; }
.P-cont { margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.P-pct { width: 140px; }
.P-lines > summary { cursor: pointer; font-size: 13px; color: var(--st-estimated); font-weight: 600; margin-top: 4px; }
.receipt .r-muted .r-head span:last-child { color: var(--muted); font-weight: 600; }
.B-steps button[disabled] { cursor: default; opacity: .55; }
.topbar .brand img { display: block; height: 40px; width: auto; }
.P-nav { display: flex; gap: 18px; }
.P-nav a { color: #d6d9dd; text-decoration: none; font-weight: 600; font-size: 14px; }
.P-nav a:hover { color: var(--signal); }
.P-lang { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid #3a4047; border-radius: 8px; padding: 6px 12px; }
.P-lang:hover { border-color: var(--signal); }
.P-about { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.P-about h2 { font-size: 17px; margin: 14px 0 6px; }
.P-about h2:first-child { margin-top: 0; }
.P-about ul { margin: 0; padding-inline-start: 20px; }
.P-about li, .P-about p { font-size: 14px; color: #3a3f44; margin: 4px 0; }
.page:has(+ .P-foot) { padding-bottom: 8px; }
.P-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 16px 96px; }
.P-foot a { color: var(--st-estimated); }
@media (max-width: 760px) { .P-nav { display: none; } }
.hs-sugg li.hint { padding: 6px 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .C-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .A-layout, .C-layout { grid-template-columns: minmax(0, 1fr); }
  .A-aside, .C-side { position: static; }
  .mobilebar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: var(--ink); color: #fff; border-top: 3px solid var(--signal); padding: 10px 16px; align-items: center; gap: 10px; }
  .mobilebar .amt { font-size: 18px; margin-inline-end: auto; }
  .mobilebar .amt small { color: #c3c7cc; }
  .mobilebar .btn { background: transparent; color: #fff; border-color: #4a5058; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar-in { gap: 10px; }
  .top-tools { width: 100%; }
  .top-tools select { max-width: none; flex: 1; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 6px 4px; }
  .port-row { grid-template-columns: 1fr; gap: 8px; }
  .choice { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr; }
  .B-panel { padding: 16px; }
  .B-steps .t { display: none; }
  .C-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-head { grid-template-columns: 12px minmax(0, 1fr) auto 18px; }
  .cat-head .chip { display: none; }
  .summary .grand { font-size: 26px; }
}
@media print {
  .topbar, .mobilebar, .B-bar, .B-steps, .no-print, .cta { display: none !important; }
  body { background: #fff; }
  .A-layout, .C-layout { grid-template-columns: 1fr; }
  .summary { color: #000; background: #fff; border: 1px solid #000; }
}
