/* Flat Ledger (Fahd's design system, v2): flat, borderless, RTL. Tokens copied from
   https://claude.ai/artifact/8ZnZENbpTkRBou5xoeX7FQ — white, slate ink, one hairline, one blue. */
:root {
  --page: #ffffff; --ink: #0f172a; --ink-muted: #475569; --ink-subtle: #64748b; --ink-faint: #94a3b8;
  --hairline: #e2e8f0; --hairline-soft: #f1f5f9; --fill-hover: #f8fafc; --fill-selected: #f1f5f9;
  --accent: #2563eb; --accent-hover: #1d4ed8; --positive: #059669; --positive-strong: #047857; --positive-dot: #10b981;
  --caution: #d97706; --caution-dot: #f59e0b; --caution-strong: #b45309; --negative: #be123c; --negative-bright: #e11d48;
  --teal: #0d9488; --violet: #6d28d9; --row-new: #dbeafe; --row-out: #fff1f2; --row-low: #fffbeb; --toast: #0f172a;
  --kpi-volume: var(--accent); --kpi-profit: var(--positive-strong); --kpi-out: var(--negative); --kpi-low: var(--caution-strong); --kpi-assistant: var(--teal);
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 20px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* HeaderNav */
.fl-header { border-bottom: 1px solid var(--hairline); }
.fl-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; flex-wrap: wrap; }
.fl-brand { font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -0.025em; }
.fl-nav { display: flex; gap: 24px; margin-inline-start: auto; align-items: center; }
.fl-nav a { color: var(--ink-subtle); font-weight: 500; } .fl-nav a:hover { color: var(--ink); }
.fl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-subtle); }
.dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; background: var(--ink-faint); flex: none; }
.dot.ok { background: var(--positive-dot); } .dot.warn { background: var(--caution-dot); } .dot.bad { background: var(--negative-bright); }

/* Sections */
.fl-section { padding-block: 32px; border-bottom: 1px solid var(--hairline); }
.fl-section:last-of-type { border-bottom: 0; }
.fl-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.fl-sub { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.fl-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }

/* SettingsLine */
.fl-settings { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-block: 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--ink-subtle); }
.fl-settings strong { font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--ink-faint); }
.fl-settings label { display: inline-flex; align-items: baseline; gap: 8px; }
.fl-settings input { width: 72px; border: 0; border-bottom: 1px dashed var(--ink-faint); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; padding: 2px 0; text-align: center; font-variant-numeric: tabular-nums; }
.fl-settings input:focus { outline: none; border-bottom-color: var(--accent); }

/* RangeToggle */
.fl-toggle { display: inline-flex; gap: 8px; }
.fl-toggle button { border: 0; background: transparent; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--ink-muted); cursor: pointer; transition: color .15s, background .15s; }
.fl-toggle button:hover { color: var(--ink); }
.fl-toggle button[aria-pressed="true"] { background: var(--fill-selected); color: var(--ink); }

/* StatsStrip */
.fl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.fl-kpi { position: relative; text-align: start; border: 0; background: transparent; padding: 24px 32px 24px 0; cursor: pointer; display: grid; gap: 8px; align-content: start; }
.fl-kpi + .fl-kpi { border-inline-start: 1px solid var(--hairline); padding-inline-start: 32px; }
.fl-kpi::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--kpi); transform-origin: right; transform: scaleX(0); transition: transform .3s; }
.fl-kpi[aria-expanded="true"]::after { transform: scaleX(1); }
.fl-kpi[aria-expanded="true"] .fl-kpi__value { color: var(--kpi); }
.fl-kpi__label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .05em; color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 6px; }
.fl-kpi__label .dot { background: var(--kpi); width: 6px; height: 6px; }
.fl-kpi__value { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; transition: color .15s; }
.money { display: inline-flex; align-items: baseline; gap: 4px; }
.fl-kpi .money { gap: 8px; }
.fl-kpi__unit { font-size: 12px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; }
.fl-kpi__meta { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
.fl-kpi__meta.good { color: var(--positive-strong); } .fl-kpi__meta.bad { color: var(--negative); } .fl-kpi__meta.warn { color: var(--caution-strong); }
.flash { animation: fl-flash .7s ease-out; }
@keyframes fl-flash { from { color: var(--kpi); } }

/* Detail band */
.fl-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 24px; border-bottom: 1px solid var(--hairline); }
.fl-detail[hidden] { display: none; }
.fl-detail h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--ink-subtle); }
.fl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin-bottom: 10px; font-size: 12px; }
.fl-bar__track { grid-column: 1 / -1; height: 2px; background: var(--hairline-soft); }
.fl-bar__fill { height: 2px; background: var(--kpi, var(--accent)); width: 0; transition: width .3s; }
.fl-list { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.fl-list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px solid var(--hairline-soft); }
.fl-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chip */
.fl-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--fill-selected); border-radius: 4px; padding: 4px 10px; }
.fl-chip button { border: 0; background: transparent; cursor: pointer; color: var(--ink-subtle); padding: 0; }

/* DataTable */
.fl-table-wrap { overflow-x: auto; }
.fl-table { width: 100%; border-collapse: collapse; }
.fl-table th { text-align: start; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .05em; color: var(--ink-subtle); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; cursor: pointer; user-select: none; }
.fl-table th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; } .fl-table th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
.fl-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hairline-soft); vertical-align: middle; }
.fl-table th.end, .fl-table td.end { text-align: end; }
.fl-table th.center, .fl-table td.center { text-align: center; }
.fl-table tbody tr { transition: background .15s; }
.fl-table tbody tr:hover { background: var(--fill-hover); }
.fl-table tr.out td { background: var(--row-out); } .fl-table tr.out td.name { color: var(--negative); font-weight: 600; }
.fl-table tr.low td { background: var(--row-low); }
.fl-table td.name { font-weight: 500; max-width: 420px; }
.fl-table td.src { color: var(--ink-subtle); font-size: 12px; white-space: nowrap; }
.fl-table td.amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-table td.muted { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.fl-table tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--hairline); padding-top: 14px; }
.unit { font-size: 12px; font-weight: 400; color: var(--ink-subtle); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.status.ok { color: var(--positive-strong); } .status.low { color: var(--caution-strong); } .status.out { color: var(--negative); } .status.unknown { color: var(--ink-subtle); }
.fl-note { font-size: 12px; color: var(--ink-subtle); margin: 16px 0 0; }
.fl-empty { padding: 48px 0; text-align: center; color: var(--ink-subtle); }

@media (max-width: 960px) {
  .fl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-kpi, .fl-kpi + .fl-kpi { padding: 20px 16px; border-inline-start: 0; border-bottom: 1px solid var(--hairline-soft); }
  .fl-detail { grid-template-columns: 1fr; gap: 20px; }
  .fl-table td.src, .fl-table th.src { display: none; }
}
@media (max-width: 560px) { .wrap { padding: 0 16px; } .fl-stats { grid-template-columns: 1fr; } .fl-nav { margin-inline-start: 0; } }
[data-kpi="volume"] { --kpi: var(--kpi-volume); } [data-kpi="sales"] { --kpi: var(--kpi-profit); }
[data-kpi="out"] { --kpi: var(--kpi-out); } [data-kpi="low"] { --kpi: var(--kpi-low); } [data-kpi="assistant"] { --kpi: var(--kpi-assistant); }

/* ---- shell (v3 redesign, approved mockups 2026-10-05) ---- */
.fl-header .wrap { gap: 40px; padding-block: 0; }
.fl-nav-main { display: flex; gap: 28px; flex-wrap: wrap; }
.fl-nav-main a { padding: 20px 0 18px; font-weight: 500; color: var(--ink-subtle); border-bottom: 2px solid transparent; }
.fl-nav-main a:hover { color: var(--ink); }
.fl-nav-main a.active { color: var(--accent); border-bottom-color: var(--accent); }
.fl-head-side { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--ink-subtle); }
.fl-head-side .live { display: inline-flex; align-items: center; gap: 6px; }
.fl-textbtn { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500; color: var(--accent); cursor: pointer; padding: 12px 0; }
.fl-textbtn.danger { color: var(--negative); }
.fl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 600; }
.fl-btn:hover { background: var(--accent-hover); color: #fff; }
.fl-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 32px 0 16px; flex-wrap: wrap; }
.fl-pagehead h1 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.fl-pagehead .fl-settings { border: 0; padding: 0; }
.fl-stats.top { border-top: 1px solid var(--hairline); }
.fl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-cols > section { padding: 32px 32px 32px 0; }
.fl-cols > section + section { padding-inline-start: 32px; border-inline-start: 1px solid var(--hairline); }
.fl-row-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.fl-fold { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.fl-fold strong { display: inline-flex; align-items: center; gap: 8px; }
.fl-mlist { display: none; }
.fl-mitem { padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); display: grid; gap: 4px; }
.fl-mitem.low { background: var(--row-low); margin: 0 -16px; padding: 14px 16px; }
.fl-mitem.out { background: var(--row-out); margin: 0 -16px; padding: 14px 16px; }
.fl-mitem .top, .fl-mitem .sub { display: flex; justify-content: space-between; gap: 12px; }
.fl-mitem .top { font-weight: 600; } .fl-mitem .sub { font-size: 12px; color: var(--ink-subtle); }
.fl-hero { display: none; }
@media (max-width: 640px) {
  .fl-header .wrap { gap: 0; padding-top: 12px; }
  .fl-brand { font-size: 17px; }
  .fl-head-side { margin-inline-start: auto; }
  .fl-head-side .fl-textbtn.danger { display: none; }
  .fl-nav-main { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 22px; white-space: nowrap; }
  .fl-nav-main a { padding: 10px 0 12px; }
  .fl-pagehead { padding: 24px 0 12px; }
  .fl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-stats .fl-kpi:first-child { grid-column: 1 / -1; }
  .fl-stats .fl-kpi:first-child .fl-kpi__value { font-size: 34px; line-height: 40px; }
  .fl-kpi, .fl-kpi + .fl-kpi { padding: 16px 0; border-inline-start: 0; border-bottom: 1px solid var(--hairline-soft); }
  .fl-kpi:nth-child(odd):not(:first-child) { padding-inline-start: 16px; border-inline-start: 1px solid var(--hairline); }
  .fl-kpi__value { font-size: 24px; line-height: 30px; }
  .fl-cols { grid-template-columns: 1fr; }
  .fl-cols > section, .fl-cols > section + section { padding: 24px 0; border-inline-start: 0; }
  .fl-desktop-only { display: none !important; }
  .fl-mlist { display: block; }
  .fl-mobile-danger { display: block !important; }
}
.fl-mobile-danger { display: none; width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--hairline); background: transparent; font: inherit; font-weight: 500; color: var(--negative); cursor: pointer; }
[data-kpi="time"] { --kpi: var(--violet); }
.fl-kpi.is-selected::after { transform: scaleX(1); } .fl-kpi.is-selected .fl-kpi__value { color: var(--kpi); }
div.fl-kpi { cursor: default; }
@media (max-width: 640px) {
  .fl-table.bal th:nth-child(n+5), .fl-table.bal td:nth-child(n+5) { display: none; }
  .fl-table th, .fl-table td { padding-inline-end: 8px; }
}

.fl-group { margin: 24px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.fl-table.stock { table-layout: fixed; }
.fl-table.stock th:first-child { width: 30%; }
.fl-table.stock td.name { overflow-wrap: anywhere; }

/* v3 (approved 2026-10-05): compact cards, coloured pills, input vs info zones. */
.fl-cards { display: grid; grid-template-columns: repeat(3, max-content); gap: 16px; padding: 20px 0 0; align-items: start; }
.fl-cards.two { grid-template-columns: repeat(2, max-content); padding-top: 16px; }
.fl-card { border: 1px solid var(--hairline); border-radius: 8px; padding: 16px 20px; min-width: 300px; max-width: 460px; }
.fl-card h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-card h2 a { margin-inline-start: 24px; font-size: 12px; font-weight: 500; }
.fl-card.warn { border-color: #fde68a; background: var(--row-low); max-width: 320px; } .fl-card.warn h2 { color: var(--caution-strong); }
.fl-card.ok-empty p { margin: 0; padding: 12px 16px; color: var(--positive-strong); background: #f0fdf4; border-radius: 6px; }
.fl-kv { display: grid; grid-template-columns: 150px max-content; justify-content: start; column-gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.fl-kv:last-child { border-bottom: 0; }
.fl-stackbar { display: flex; height: 10px; width: 300px; max-width: 100%; border-radius: 5px; overflow: hidden; background: var(--hairline-soft); margin: 4px 0 12px; }
.fl-stackbar span { display: block; height: 100%; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 16px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.g { background: #ecfdf5; color: var(--positive-strong); } .pill.a { background: var(--row-low); color: var(--caution-strong); }
.pill.r { background: var(--row-out); color: var(--negative); } .pill.n { background: var(--hairline-soft); color: var(--ink-muted); }
.pill.b { background: #eff6ff; color: var(--accent-hover); } .pill.v { background: #f5f3ff; color: var(--violet); }
.pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ztag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ztag.in { background: var(--row-new); color: var(--accent-hover); } .ztag.info { background: var(--hairline-soft); color: var(--ink-muted); }
.fl-guide { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 12px; color: var(--ink-subtle); }
.fl-guide b { color: var(--ink); font-weight: 600; }
.fl-zone { border: 1px solid #bfdbfe; background: #f8fbff; border-radius: 8px; padding: 14px 18px; }
.fl-zone .zhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.frow:last-child { margin-bottom: 0; }
.fgl { font-size: 12px; font-weight: 600; color: var(--accent-hover); min-width: 96px; }
.fi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.fi input, .fi select, .fl-input { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 5px 8px; width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
.fi select { width: auto; text-align: start; }
.fl-input.wide { width: 100%; text-align: start; font-weight: 400; }
.fl-input.search { width: 280px; text-align: start; font-weight: 400; }
.ck { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink-muted); cursor: pointer; min-height: 30px; }
.ck[aria-pressed="true"] { border-color: var(--accent); background: #eff6ff; color: var(--accent-hover); }
.sb { border: 1px solid #cbd5e1; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 6px; cursor: pointer; min-height: 36px; }
.sb.pri { background: var(--accent); border-color: var(--accent); color: #fff; } .sb.pri:hover { background: var(--accent-hover); }
.sb.warn { border-color: #fcd34d; color: var(--caution-strong); background: var(--row-low); }
.sb.dang { border-color: #fda4af; color: var(--negative); background: #fff; }
.sb:disabled { opacity: .55; cursor: default; }
.fl-msg { font-size: 12px; color: var(--ink-muted); } .fl-msg.bad { color: var(--negative); } .fl-msg.good { color: var(--positive-strong); }
.fl-table.auto { width: auto; } .fl-table.auto th, .fl-table.auto td { padding-inline-end: 28px; }
.fl-table th.nosort { cursor: default; }
.fl-table tr.sel td { background: var(--fill-hover); }
.fl-table tr.muted td { color: var(--ink-faint); }
.fl-table td.detail { padding: 0 0 20px; }
.fl-drawer { border-inline-start: 2px solid var(--accent); padding: 4px 16px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.fl-drawer h3, .fl-sub3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--ink-subtle); }
.fl-line { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.fl-line:last-child { border-bottom: 0; } .fl-line .who { width: 56px; flex: none; font-size: 12px; color: var(--ink-subtle); }
.fl-line.split { justify-content: space-between; }
.fl-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; font-size: 12px; color: var(--ink-subtle); }
.fl-check { width: 16px; height: 16px; accent-color: var(--accent); }
.fl-toggle-sw { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.fl-toggle-sw .sw { width: 32px; height: 18px; border-radius: 9px; background: var(--ink-faint); position: relative; }
.fl-toggle-sw .sw::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; border-radius: 7px; background: #fff; transition: inset .15s; }
.fl-toggle-sw[aria-pressed="true"] .sw { background: var(--positive-dot); } .fl-toggle-sw[aria-pressed="true"] .sw::after { inset-inline-end: 16px; }
.fl-toggle-sw[aria-pressed="true"] { color: var(--positive-strong); }
.fl-set { max-width: 760px; padding-bottom: 40px; }
.fl-set .sh { margin: 28px 0 10px; font-size: 16px; font-weight: 600; } .fl-set .sh.red { color: var(--negative); }
.fl-set .card { border: 1px solid var(--hairline); border-radius: 8px; padding: 4px 20px; } .fl-set .card.danger { border-color: #fecdd3; background: #fffafa; }
.fl-blk { padding: 16px 0; border-bottom: 1px solid var(--hairline-soft); display: flex; flex-direction: column; gap: 6px; }
.fl-blk:last-child { border-bottom: 0; }
.fl-blk .bt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .fl-blk h3 { margin: 0; font-size: 15px; font-weight: 600; }
.fl-blk .ex { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fl-blk .act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.fl-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.fl-keys input { width: 100%; text-align: start; font-weight: 400; }
@media (max-width: 960px) {
  .fl-cards, .fl-cards.two { grid-template-columns: 1fr; } .fl-card, .fl-card.warn { max-width: none; min-width: 0; }
  .fl-drawer { grid-template-columns: 1fr; } .fl-keys { grid-template-columns: 1fr; } .fl-input.search { width: 100%; }
  .fl-table.auto { width: 100%; }
}
.fl-stats.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fl-stats.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fl-kpi { cursor: default; }
.fl-kpi__value.c-blue { color: var(--accent); } .fl-kpi__value.c-green { color: var(--positive-strong); } .fl-kpi__value.c-amber { color: var(--caution-strong); }
.fl-kpi__value.c-red { color: var(--negative); } .fl-kpi__value.c-violet { color: var(--violet); }
[data-kpi="market"] { --kpi: var(--positive-strong); } [data-kpi="mine"] { --kpi: var(--accent); }
@media (max-width: 640px) { .fl-stats.c3, .fl-stats.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fl-gap { margin-top: 24px; } .fl-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-sell { color: var(--accent); font-weight: 700; } .side-buy { color: var(--positive-strong); font-weight: 700; }
.fl-table td.big, .num.big { font-size: 16px; font-weight: 700; } .nowrap { white-space: nowrap; }
.fl-mobile-only { display: none; } @media (max-width: 640px) { .fl-mobile-only { display: block; } }
.name-strong { font-weight: 600; color: var(--ink); } .warn-num { color: var(--caution-strong); font-weight: 600; } .ok-num { color: var(--positive-strong); font-weight: 600; }
.fl-narrow { max-width: 560px; }
.num.strong, b.num { font-weight: 600; } .num.faint { color: var(--ink-faint); } .note-strong { margin: 0; font-size: 14px; line-height: 22px; }
.fl-card .fl-msg { margin: 8px 0 12px; } .fl-card .fl-kv .fl-msg, .fl-card h2 .fl-msg { margin: 0; font-weight: 400; }
