:root {
  --bg: #0b0e14;
  --panel: #111620;
  --panel-2: #161c28;
  --line: #222a38;
  --line-2: #2c3546;
  --text: #e7eaf0;
  --muted: #8b94a7;
  --faint: #5d667a;
  --green: #1fb46b;
  --green-bg: rgba(31, 180, 107, .12);
  --red: #f0475a;
  --red-bg: rgba(240, 71, 90, .12);
  --blue: #4c8dff;
  --blue-bg: rgba(76, 141, 255, .14);
  --amber: #f5a524;
  --amber-bg: rgba(245, 165, 36, .13);
  --radius: 10px;
  --top-h: 56px;
  --nav-h: 0px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.num, .quote, td.n { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 15px; }
h3 { font-size: 13.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; }
.up { color: var(--green); }
.down { color: var(--red); }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 14px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--panel-2);
  transition: background .15s, border-color .15s, opacity .15s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; font-weight: 500; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #3c7cf0; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-buy { background: var(--green); color: #04150c; font-size: 15px; padding: 12px; }
.btn-buy:hover { background: #22c475; }
.btn-sell { background: var(--red); color: #fff; font-size: 15px; padding: 12px; }
.btn-sell:hover { background: #f25a6b; }
.btn-danger-ghost { background: transparent; border-color: rgba(240,71,90,.45); color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-bg); }

/* segmented */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; color: var(--muted); font-size: 12.5px;
  font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--line-2); color: var(--text); }
.seg-full { display: flex; }
.seg-full button { flex: 1; justify-content: center; padding: 7px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.field > span { font-size: 12px; color: var(--muted); }
.field input, .field select, .settings input, .settings select, .tool-ctl select, .line-card input {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0;
  outline: none; }
.field input:focus, .field select:focus, .settings input:focus, .line-card input:focus { border-color: var(--blue); }
.hint { color: var(--muted); font-size: 11.5px; min-height: 1em; }
.form-error { color: var(--red); font-size: 12.5px; min-height: 0; margin: 8px 0 0; }
.form-error:empty { display: none; }

/* top bar */
.top { height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: 12.5px; }
.tickers { display: flex; gap: 8px; flex: 1; min-width: 0; }
.ticker { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; text-align: left; }
.ticker.on { background: var(--panel-2); border-color: var(--line); }
.ticker .nm { color: var(--muted); font-size: 12px; font-weight: 600; }
.ticker .px { font-weight: 700; font-size: 15px; }
.ticker .ch { font-size: 12px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.feed-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.feed-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.feed-pill.ok .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.feed-pill.bad .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); animation: pulse 1.2s infinite; }
.feed-pill.practice { color: var(--amber); border-color: rgba(245,165,36,.35); }
.feed-pill.practice .dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
@keyframes pulse { 50% { opacity: .35; } }
.acct-chip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; padding: 0 4px; }
.acct-chip .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.acct-chip .num { font-weight: 700; font-size: 14px; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: minmax(440px, calc(100vh - var(--top-h) - 250px)) auto;
  gap: 12px; padding: 12px; }
.pane-chart { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); min-height: 0; overflow: hidden; }
.side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lower { grid-column: 1; grid-row: 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.badge { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--muted); }

/* chart */
.chart-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-bar .tools button span { display: inline; }
.chart-wrap { position: relative; flex: 1; min-height: 0; }
#chart { position: absolute; inset: 0; }
.chart-legend { position: absolute; left: 12px; top: 8px; z-index: 3; font-size: 12px; color: var(--muted); pointer-events: none;
  display: flex; gap: 12px; flex-wrap: wrap; }
.chart-legend b { color: var(--text); font-weight: 600; }
.chart-legend .ema { color: var(--amber); }
.draw-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 4; background: var(--blue);
  color: #fff; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.chart-wrap.drawing #chart { cursor: crosshair; }
.line-pop { position: absolute; z-index: 6; width: 270px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.line-pop .field { margin-bottom: 10px; }
.line-pop .row { display: flex; gap: 8px; }

/* switches */
.switch { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .knob { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .knob { background: var(--blue); }
.switch input:checked + .knob.red { background: var(--red); }
.switch input:checked + .knob::after { transform: translateX(14px); }
.switch .txt { font-size: 13px; }

/* ticket */
.ticket .seg-full { margin-bottom: 12px; }
.opt-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.quote-row { display: flex; justify-content: space-between; align-items: flex-end; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.quote { font-size: 22px; font-weight: 700; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.side-toggle button { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 9px; font-weight: 700; color: var(--muted); }
.side-toggle .buy.on { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.side-toggle .sell.on { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.lots-row { display: flex; gap: 10px; align-items: flex-start; }
.qty-box { padding-top: 20px; min-width: 80px; text-align: right; }
.qty-box .num { font-weight: 600; font-size: 15px; }
.stepper { display: flex; }
.stepper button { width: 38px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 18px; }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper input { border-radius: 0 !important; text-align: center; border-left: 0 !important; border-right: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.input-btn { display: flex; gap: 6px; }
.armed-hint { margin: -4px 0 10px; color: var(--muted); }
.armed-hint b { color: var(--text); font-weight: 600; }
.est { margin-bottom: 10px; }

/* positions */
.pos-list { display: flex; flex-direction: column; gap: 10px; }
.pos { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--bg); }
.pos-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pos-name { font-weight: 600; font-size: 13.5px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: .03em; }
.tag.buy { background: var(--green-bg); color: var(--green); }
.tag.sell { background: var(--red-bg); color: var(--red); }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.tag.stop { background: var(--blue-bg); color: var(--blue); }
.tag.neutral { background: var(--panel-2); color: var(--muted); }
.pos-pnl { font-weight: 700; font-size: 15px; }
.pos-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 6px 0; }
.pos-stops { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 8px; }
.pos-actions { display: flex; gap: 6px; }
.pos-actions .btn { flex: 1; }
.pos-stop-edit { display: flex; gap: 6px; margin-top: 6px; }
.pos-stop-edit input { flex: 1; background: var(--panel); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; min-width: 0; }
.empty { color: var(--muted); font-size: 13px; padding: 16px 4px; text-align: center; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.acct-grid div { display: flex; flex-direction: column; }
.acct-grid .lbl { font-size: 11px; color: var(--muted); }
.acct-grid .num { font-weight: 600; }

/* lower tabs */
.tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 8px 12px 10px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--blue); }
.tab-body { padding: 12px 14px 16px; }
.tab-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sm-only { display: none; }
.table-wrap { overflow: auto; max-height: 420px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr:hover td { background: rgba(255,255,255,.015); }
td .sub { color: var(--muted); font-size: 11.5px; }

/* pnl */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.kpi .lbl { font-size: 11.5px; color: var(--muted); }
.kpi .val { font-size: 19px; font-weight: 700; margin-top: 2px; }
.kpi .sub { font-size: 11.5px; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--panel-2); margin-top: 8px; position: relative; overflow: hidden; }
.meter i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.meter::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--faint); }
.pnl-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; align-items: start; }
.pnl-grid .card, .lower .card { background: var(--bg); }
.pnl-chart { height: 220px; position: relative; }
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.calendar .legend-row { grid-column: 1 / -1; }
.cal-month .mname { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: 10px; color: var(--faint); text-align: center; }
.cal-day { height: 24px; border-radius: 5px; background: var(--panel-2); font-size: 10.5px; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.cal-day.g { background: rgba(31,180,107,.75); color: #03140b; font-weight: 600; }
.cal-day.r { background: rgba(240,71,90,.75); color: #fff; font-weight: 600; }
.cal-day.z { background: var(--line-2); color: var(--muted); }
.cal-day.blank { background: transparent; }
.legend-row { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* lines list */
.line-card { display: grid; grid-template-columns: 14px minmax(140px, 1.3fr) repeat(2, minmax(110px, .8fr)) auto auto auto; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-card .sw { width: 12px; height: 12px; border-radius: 3px; }
.line-card .meta { font-size: 11.5px; color: var(--muted); }

/* events */
.ev-type { font-weight: 600; text-transform: capitalize; }

/* settings */
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; margin-bottom: 14px; }
.settings .field { margin-bottom: 10px; }
.settings .wide { grid-column: 1 / -1; }
.settings .actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.tools-card { background: var(--bg) !important; }
.tool-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tool-row:first-of-type { border-top: 0; }
.tool-ctl { display: flex; gap: 6px; flex: none; }
.tool-ctl select { width: auto; padding: 6px 8px; }
.hs-out { font-size: 12.5px; }
.hs-out:empty { display: none; }
.hs-out .table-wrap { max-height: 240px; margin-bottom: 8px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(4,6,10,.72); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal-card.warn { border-color: rgba(245,165,36,.5); }
.warn-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.warn-icon svg { width: 26px; height: 26px; }
.modal-card h2 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.warn-list { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.warn-list li { background: var(--amber-bg); border: 1px solid rgba(245,165,36,.25); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.warn-list li b { display: block; color: var(--amber); font-size: 12px; margin-bottom: 1px; }
.warn-order { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* toasts */
.toasts { position: fixed; right: 16px; top: calc(var(--top-h) + 10px); z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--blue); border-radius: 10px; padding: 11px 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 13px; animation: tin .2s ease-out; }
.toast b { display: block; margin-bottom: 2px; }
.toast.amber { border-left-color: var(--amber); }
.toast.red { border-left-color: var(--red); }
.toast.green { border-left-color: var(--green); }
@keyframes tin { from { transform: translateY(-6px); opacity: 0; } }

/* login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
  background: radial-gradient(1000px 500px at 20% -10%, #15213a 0%, transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.brand-lg { margin-bottom: 24px; }
.brand-lg .brand-name { font-size: 18px; }
.login-foot { color: var(--faint); font-size: 12px; text-align: center; margin: 18px 0 0; }

/* bottom nav (phone) */
.bottom-nav, .more-sheet { display: none; }

@media (max-width: 1180px) {
  .hide-sm { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .chart-bar .tools button span { display: none; }
}

@media (max-width: 900px) {
  :root { --top-h: 52px; --nav-h: 62px; }
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .top { gap: 10px; padding: 0 12px; }
  .brand-name { display: none; }
  .tickers { gap: 2px; overflow-x: auto; }
  .ticker { padding: 4px 7px; flex-direction: column; gap: 0; }
  .ticker .px { font-size: 14px; }
  .ticker .nm { font-size: 10.5px; }
  .feed-pill #feedText { display: none; }
  .feed-pill { padding: 7px; }
  .layout { display: block; padding: 10px; }
  .side, .lower { display: contents; }
  .tabs { display: none; }
  .pane { display: none !important; }
  body[data-view="chart"] [data-pane="chart"],
  body[data-view="trade"] [data-pane="trade"],
  body[data-view="positions"] [data-pane="positions"],
  body[data-view="journal"] [data-pane="journal"],
  body[data-view="pnl"] [data-pane="pnl"],
  body[data-view="lines"] [data-pane="lines"],
  body[data-view="events"] [data-pane="events"],
  body[data-view="settings"] [data-pane="settings"] { display: flex !important; flex-direction: column; }
  .tab-body.pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  .pane-chart { height: calc(100dvh - var(--top-h) - var(--nav-h) - 20px - env(safe-area-inset-bottom)); }
  .sm-only { display: block; margin-bottom: 10px; }
  .table-wrap { max-height: none; }
  .pnl-grid { grid-template-columns: 1fr; }
  .chart-bar { gap: 6px; padding: 7px 8px; }
  .chart-legend .ohlc { display: none; }
  .seg button { padding: 5px 8px; }
  .line-card { grid-template-columns: 14px 1fr 1fr; }
  .line-card .lc-name { grid-column: 2 / -1; }
  .tool-row { flex-direction: column; align-items: flex-start; }
  .toasts { top: auto; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); right: 12px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--panel); border-top: 1px solid var(--line); }
  .bottom-nav button { border: 0; background: transparent; color: var(--muted); font-size: 10.5px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px; position: relative; }
  .bottom-nav button svg { width: 20px; height: 20px; }
  .bottom-nav button.on { color: var(--blue); }
  .bottom-nav i { position: absolute; top: 6px; left: 55%; background: var(--blue); color: #fff; font-style: normal; font-size: 10px;
    border-radius: 999px; padding: 0 5px; line-height: 15px; }
  .bottom-nav i:empty { display: none; }
  .more-sheet { position: fixed; right: 8px; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 45; display: flex;
    flex-direction: column; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; min-width: 170px;
    box-shadow: 0 14px 40px rgba(0,0,0,.5); }
  .more-sheet[hidden] { display: none !important; }
  .more-sheet button { border: 0; background: transparent; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .modal-actions { grid-template-columns: 1fr; }
  .line-pop { left: 8px !important; right: 8px; width: auto; top: 50px !important; }
  table.cards thead { display: none; }
  table.cards tr { display: block; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; padding: 6px 4px; background: var(--bg); }
  table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 8px; text-align: right; }
  table.cards td::before { content: attr(data-l); color: var(--muted); text-align: left; flex: none; }
}
