/* RASEED v4 — instrument-panel UI, dark + light. Colour carries meaning: gold = USD, cyan = IQD, green = income.
   Performance rules for phones: no backdrop blur on cards or overlays, no CSS filters, animate only opacity/transform. */
:root {
  color-scheme: dark;
  --bg: #070B14; --bg2: #0C1322; --bg3: #111a2d;
  --panel: rgba(13, 21, 38, .9); --panel-solid: #0F1829; --well: rgba(0, 0, 0, .28);
  --edge: rgba(120, 160, 255, .14); --edge-hi: rgba(56, 232, 255, .5); --edge-soft: rgba(120, 160, 255, .08);
  --ink: #E8EEFC; --ink2: #93A4C6; --ink3: #5D6C8E;
  --iqd: #38E8FF; --usd: #F5C451; --inc: #8EF08A; --warn: #FF9B3D; --bad: #FF5A6E; --card: #9DB4FF;
  --iqd-dim: rgba(56, 232, 255, .14); --usd-dim: rgba(245, 196, 81, .14); --inc-dim: rgba(142, 240, 138, .14); --bad-dim: rgba(255, 90, 110, .14); --card-dim: rgba(157, 180, 255, .14); --warn-dim: rgba(255, 155, 61, .14);
  --on-accent: #04141a;
  --glow-iqd: 0 0 18px rgba(56, 232, 255, .45); --glow-usd: 0 0 18px rgba(245, 196, 81, .35);
  --grid: rgba(120, 160, 255, .05); --dot: rgba(56, 232, 255, .55); --halo1: rgba(56, 232, 255, .07); --halo2: rgba(245, 196, 81, .05);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5); --scrim: rgba(2, 5, 12, .62);
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #9085e9; --c6: #e66767; --c7: #2a9bb5; --c8: #a8672b;
  --c9: #008300; --c10: #a8861a; --c11: #5e6fd6; --c12: #8aa02a;
  --f-ui: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-num: 'Rajdhani', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --r: 14px; --r-s: 10px; --dock-h: 74px; --top-h: 58px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF2F8; --bg2: #FFFFFF; --bg3: #F5F7FB;
  --panel: rgba(255, 255, 255, .94); --panel-solid: #FFFFFF; --well: rgba(20, 35, 70, .05);
  --edge: rgba(20, 40, 90, .12); --edge-hi: rgba(0, 150, 180, .55); --edge-soft: rgba(20, 40, 90, .07);
  --ink: #0F1A2E; --ink2: #4A5A78; --ink3: #8591AB;
  --iqd: #0A93B2; --usd: #A86E00; --inc: #1F8A3A; --warn: #C25E00; --bad: #D02B47; --card: #4A5FD0;
  --iqd-dim: rgba(10, 147, 178, .12); --usd-dim: rgba(168, 110, 0, .12); --inc-dim: rgba(31, 138, 58, .12); --bad-dim: rgba(208, 43, 71, .1); --card-dim: rgba(74, 95, 208, .12); --warn-dim: rgba(194, 94, 0, .12);
  --on-accent: #ffffff;
  --glow-iqd: 0 6px 18px rgba(10, 147, 178, .25); --glow-usd: 0 6px 18px rgba(168, 110, 0, .2);
  --grid: rgba(20, 40, 90, .06); --dot: rgba(10, 147, 178, .35); --halo1: rgba(10, 147, 178, .08); --halo2: rgba(168, 110, 0, .06);
  --shadow: 0 20px 50px rgba(20, 35, 70, .18); --scrim: rgba(20, 35, 70, .4);
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #6250d6; --c6: #e34948; --c7: #1792b3; --c8: #9a5b22;
  --c9: #5563c9; --c10: #b08d12; --c11: #008300; --c12: #6b8a00;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.55; }
body { overflow-x: hidden; overscroll-behavior-y: none; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button, a, label, summary, .chip { touch-action: manipulation; }
a { color: var(--iqd); }
svg.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; flex: none; }
svg.ic.xs { width: .95em; height: .95em; }
::selection { background: var(--iqd); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--iqd); outline-offset: 2px; }
[hidden] { display: none !important; }

#bg { position: fixed; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }

/* numbers: always LTR, Latin digits */
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; direction: ltr; unicode-bidi: isolate; letter-spacing: .01em; display: inline-block; }
.cur { font-family: var(--f-ui); font-size: .58em; font-weight: 600; opacity: .75; margin-inline-start: .35em; letter-spacing: .04em; vertical-align: .18em; }
.cur-usd { color: var(--usd); } .cur-iqd { color: var(--iqd); }
.amt-usd { color: var(--usd); } .amt-iqd { color: var(--iqd); } .amt-inc { color: var(--inc); } .amt-bad { color: var(--bad); }

/* ------------------------------------------------ layout */
.top { position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + var(--sat)); padding: var(--sat) 14px 0; display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--bg) 93%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-num); font-weight: 700; font-size: 20px; letter-spacing: .14em; color: var(--ink); white-space: nowrap; }
.brand .ar { font-family: var(--f-ui); font-weight: 600; letter-spacing: 0; font-size: 15px; color: var(--iqd); }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand.big { font-size: 30px; } .brand.big .mark { width: 36px; height: 36px; }
.top .spacer { flex: 1; }
.iconbtn { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); border: 1px solid transparent; position: relative; transition: color .15s, border-color .15s, background .15s; flex: none; }
.iconbtn:hover { color: var(--ink); border-color: var(--edge); background: var(--well); }
.iconbtn .badge { position: absolute; top: 5px; inset-inline-end: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; font-family: var(--f-num); }
.langbtn { font-family: var(--f-num); font-weight: 700; letter-spacing: .08em; font-size: 13px; padding: 0 10px; width: auto; }

.view { padding: 14px 16px calc(var(--dock-h) + var(--sab) + 24px); max-width: 1120px; margin: 0 auto; }
.view.enter > .inner { animation: viewIn .22s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.boot { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.boot .mark { width: 56px; height: 56px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.94); } }
.rail { display: none; }

.dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--dock-h) + var(--sab)); padding: 0 8px var(--sab);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--edge); }
.dock .d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink3); font-size: 11px; font-weight: 500; transition: color .15s; text-decoration: none; position: relative; }
.dock .d .ic { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.dock .d.on { color: var(--iqd); } .dock .d.on .ic { transform: translateY(-1px); }
.dock .d.on::after { content: ""; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--iqd); box-shadow: var(--glow-iqd); }
.dock .d:active .ic { transform: scale(.9); }
.dock .fab > span { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5ff0ff, #14a9c7); color: #04141a; box-shadow: 0 0 0 4px var(--bg), var(--glow-iqd); transition: transform .15s var(--ease); }
:root[data-theme="light"] .dock .fab > span { background: linear-gradient(135deg, #16b3d3, #0a7f9c); color: #fff; }
.dock .fab > span .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.dock .fab:active > span { transform: translateX(-50%) scale(.92); }

@media (min-width: 900px) {
  .dock { display: none; }
  .rail { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 228px; padding: 22px 14px; gap: 6px; border-inline-end: 1px solid var(--edge); background: color-mix(in srgb, var(--bg2) 82%, transparent); z-index: 25; }
  .rail .brand { padding: 4px 10px 20px; font-size: 21px; }
  .rail .r { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--ink2); font-weight: 500; border: 1px solid transparent; transition: all .15s; text-align: start; text-decoration: none; }
  .rail .r:hover { color: var(--ink); background: var(--well); }
  .rail .r.on { color: var(--iqd); border-color: var(--edge); background: var(--iqd-dim); }
  .rail .r .ic { width: 20px; height: 20px; }
  .rail .r.add { margin-top: 8px; background: linear-gradient(135deg, #4ee9ff, #15a8c6); color: #04141a; font-weight: 700; justify-content: center; box-shadow: var(--glow-iqd); }
  :root[data-theme="light"] .rail .r.add { background: linear-gradient(135deg, #16b3d3, #0a7f9c); color: #fff; }
  .rail .foot { margin-top: auto; font-size: 12px; color: var(--ink3); padding: 10px 12px; }
  .top { padding-inline-start: 248px; }
  .top .brand { display: none; }
  .view { padding: 24px 28px 48px; padding-inline-start: 256px; max-width: none; }
  .view > .inner { max-width: 1120px; margin: 0 auto; }
}

/* ------------------------------------------------ panels */
.panel { position: relative; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 16px; }
:root[data-theme="light"] .panel { box-shadow: 0 1px 2px rgba(20, 35, 70, .04), 0 8px 24px -16px rgba(20, 35, 70, .25); }
.panel.hud::before, .panel.hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--edge-hi); pointer-events: none; }
.panel.hud::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 8px; }
.panel.hud::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; border-end-end-radius: 8px; }
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.panel h3 .ic { color: var(--iqd); }
.panel h3 .more { margin-inline-start: auto; font-size: 12.5px; color: var(--iqd); font-weight: 500; padding: 4px 2px; }
.grid { display: grid; gap: 12px; } .grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .g3 { grid-template-columns: 1fr 1fr; } .g2.stack { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); } .small { font-size: 12.5px; } .tiny { font-size: 11px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.center { justify-content: center; } .grow { flex: 1; min-width: 0; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagehead { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; min-height: 42px; }
.pagehead h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.mt { margin-top: 12px; }
.dim { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* skeletons (no layout jump while data loads) */
.skel { display: block; border-radius: 8px; background: var(--well); animation: pulse 1.2s ease-in-out infinite; }
.skel.line { height: 14px; width: 70%; margin: 6px 0; } .skel.line.short { width: 40%; } .skel.row { height: 52px; margin: 6px 0; border-radius: 12px; }
.skel-list { padding: 4px; } .skel-panel { min-height: 92px; animation: pulse 1.2s ease-in-out infinite; } .skel-panel.tall { min-height: 220px; }
@keyframes pulse { 50% { opacity: .55; } }

/* ------------------------------------------------ home */
.greet { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.greet h1 { margin: 0; font-size: 20px; font-weight: 600; }
.greet .date { color: var(--ink2); font-size: 13px; }
.greet .streak { margin-inline-start: auto; font-size: 12px; color: var(--warn); display: inline-flex; align-items: center; gap: 4px; }

.ticker { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; align-items: center; min-height: 40px; }
.ticker::-webkit-scrollbar { display: none; }
.ticker .t { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--well); font-size: 12px; color: var(--ink2); white-space: nowrap; text-decoration: none; }
.ticker button.t:hover { border-color: var(--edge-hi); }
.ticker .t .num { font-size: 14px; color: var(--ink); }
.ticker .t .num.big { font-size: 17px; font-weight: 700; color: var(--usd); letter-spacing: .02em; }
.ticker .t.mk { border-color: color-mix(in srgb, var(--usd) 38%, transparent); background: linear-gradient(90deg, var(--usd-dim), transparent); padding-inline-end: 10px; }
.ticker .t .dl { font-family: var(--f-num); font-weight: 700; font-size: 12px; direction: ltr; } .ticker .t .dl.up { color: var(--inc); } .ticker .t .dl.down { color: var(--warn); }
.ticker .t .ago { font-size: 11px; color: var(--ink3); display: inline-flex; }
.ticker .unit { flex: none; font-size: 11px; color: var(--ink3); padding-inline: 2px 16px; }
.ticker .t .led { width: 6px; height: 6px; border-radius: 50%; background: var(--iqd); box-shadow: 0 0 8px var(--iqd); flex: none; }
.ticker .t .led.usd { background: var(--usd); box-shadow: 0 0 8px var(--usd); } .ticker .t .led.dim { opacity: .5; box-shadow: none; }
.ticker .t .led.inc { background: var(--inc); box-shadow: 0 0 8px var(--inc); }
.ticker .t.checking .led { animation: blink .8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

.hero { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 18px 16px 16px; overflow: hidden; }
.gauge-wrap { position: relative; width: min(100%, 320px); margin: 0 auto; }
.gauge-wrap svg { width: 100%; height: auto; display: block; }
.gauge-center { position: absolute; left: 0; right: 0; top: 31%; text-align: center; padding: 6px 0; border-radius: 16px; cursor: pointer; }
.gauge-center .big { font-family: var(--f-num); font-size: clamp(38px, 11vw, 52px); font-weight: 700; line-height: 1; color: var(--ink); }
.gauge-center .big.usd { color: var(--usd); }
.gauge-center .big.flipping { animation: flip .38s var(--ease); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 100% { transform: none; } }
.gauge-center .lbl { font-size: 12.5px; color: var(--ink2); margin-top: 8px; }
.gauge-center .pct { font-family: var(--f-num); font-size: 15px; color: var(--iqd); margin-top: 6px; }
.gauge-center .nopct { color: var(--ink3); font-family: var(--f-ui); font-size: 12px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero .pace { text-align: center; font-size: 13px; color: var(--ink2); margin-top: -4px; line-height: 1.5; }
.hero .pace b { color: var(--ink); font-weight: 600; } .hero .pace.over b { color: var(--warn); } .hero .pace.under b { color: var(--inc); }
.safe { padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--iqd) 35%, transparent); background: linear-gradient(90deg, var(--iqd-dim), transparent 75%); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.safe .k { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; } .safe .k .ic { color: var(--iqd); }
.safe .v { font-family: var(--f-num); font-size: 24px; font-weight: 700; color: var(--iqd); grid-row: span 2; direction: ltr; unicode-bidi: isolate; }
.safe .v .cur { font-size: 10px; }
.safe .sbar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--well); overflow: hidden; margin-top: 6px; }
.safe .sbar i { display: block; height: 100%; width: var(--p); background: var(--iqd); border-radius: 3px; transition: width .6s var(--ease); }
.safe .s { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink3); margin-top: 4px; }
.safe.over { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: linear-gradient(90deg, var(--warn-dim), transparent 75%); }
.safe.over .v, .safe.over .k .ic { color: var(--warn); } .safe.over .sbar i { background: var(--warn); }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ro { padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge-soft); min-width: 0; }
.ro .k { font-size: 11.5px; color: var(--ink2); }
.ro .v { font-family: var(--f-num); font-size: 21px; font-weight: 700; line-height: 1.15; margin-top: 4px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir=rtl] .ro .v { text-align: right; }
.panel.ro { background: var(--panel); }
.ro .v .cur { font-size: 10px; }
.ro .s { font-size: 11px; color: var(--ink3); margin-top: 3px; }
@media (min-width: 900px) { .hero { grid-template-columns: 340px 1fr; gap: 28px; align-items: center; padding: 18px 28px; } .hero .pace { text-align: start; margin: 0; font-size: 14px; } }

.accts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .accts { grid-template-columns: 1fr 1fr; } .accts > :nth-child(3):last-child { grid-column: 1 / -1; } }
.acct { display: flex; flex-direction: column; gap: 8px; min-height: 108px; padding: 14px 16px; overflow: hidden; --tint: var(--iqd);
  background: radial-gradient(130px 110px at 100% 0%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%), var(--panel); }
[dir=rtl] .acct { background: radial-gradient(130px 110px at 0% 0%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%), var(--panel); }
.acct .name { font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 7px; }
.acct .name .ic { width: 16px; height: 16px; color: var(--tint); }
.acct .bal { font-family: var(--f-num); font-size: clamp(22px, 6.4vw, 30px); font-weight: 700; line-height: 1.1; direction: ltr; unicode-bidi: isolate; white-space: nowrap; color: var(--tint); }
[dir=rtl] .acct .bal { text-align: right; }
.acct .bal .cur { font-size: 11px; }
.acct .act { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.acct .act button { font-size: 11.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--edge); color: var(--ink2); background: var(--well); display: inline-flex; align-items: center; gap: 5px; }
.acct .act button:hover { color: var(--ink); border-color: var(--edge-hi); }
.acct .act button .ic { width: 13px; height: 13px; }
.acct.usd { --tint: var(--usd); border-color: color-mix(in srgb, var(--usd) 40%, transparent); }
.acct.iqd { --tint: var(--iqd); border-color: color-mix(in srgb, var(--iqd) 40%, transparent); }
.acct.card { --tint: var(--card); border-color: color-mix(in srgb, var(--card) 40%, transparent); }

.cmd { padding: 10px; }
.cmd .in { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); transition: border-color .15s, box-shadow .15s; }
[dir=rtl] .cmd .in { padding: 6px 12px 6px 6px; }
.cmd .in:focus-within { border-color: var(--edge-hi); box-shadow: 0 0 0 3px var(--iqd-dim); }
.cmd .in > .ic { color: var(--iqd); }
.cmd input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; padding: 8px 0; }
.cmd input::placeholder { color: var(--ink3); }
.cmd .go { width: 42px; height: 42px; border-radius: 10px; background: transparent; color: var(--ink3); border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, box-shadow .15s, transform .1s; flex: none; }
.cmd .go.ready { background: var(--iqd); color: var(--on-accent); border-color: transparent; box-shadow: var(--glow-iqd); }
.cmd .go:active { transform: scale(.94); }
.cmd .preview { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 4px 2px; } .cmd .preview:empty { display: none; }
.cmd .hint { padding: 8px 4px 2px; font-size: 12px; color: var(--ink3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--edge); background: var(--well); color: var(--ink2); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; color: var(--cc, currentColor); }
.chip.tiny { font-size: 10.5px; padding: 1px 8px; gap: 3px; }
.chip.iqd { color: var(--iqd); border-color: color-mix(in srgb, var(--iqd) 40%, transparent); background: var(--iqd-dim); }
.chip.usd { color: var(--usd); border-color: color-mix(in srgb, var(--usd) 40%, transparent); background: var(--usd-dim); }
.chip.inc { color: var(--inc); border-color: color-mix(in srgb, var(--inc) 40%, transparent); background: var(--inc-dim); }
.chip.cat { color: var(--ink); } .chip .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip.proj { color: var(--c12); border-color: color-mix(in srgb, var(--c12) 50%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-dim); }
.chip.mem { color: var(--ink2); border-style: dashed; animation: viewIn .25s var(--ease); } .chip.mem .num { color: var(--ink); }
.chip.ghost { border-color: transparent; background: transparent; }

.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--inc) 40%, transparent); background: linear-gradient(90deg, var(--inc-dim), transparent); flex-wrap: wrap; margin-bottom: 12px; }
.notice > .ic { color: var(--inc); width: 22px; height: 22px; }
.notice .t { flex: 1; min-width: 160px; } .notice .t b { display: block; font-weight: 600; } .notice .t span { font-size: 12.5px; color: var(--ink2); }
.notice .acts { display: flex; gap: 6px; align-items: center; }
.notice.info { border-color: color-mix(in srgb, var(--iqd) 35%, transparent); background: linear-gradient(90deg, var(--iqd-dim), transparent); } .notice.info > .ic { color: var(--iqd); }
.notice.salary { border-color: color-mix(in srgb, var(--usd) 45%, transparent); background: linear-gradient(90deg, var(--usd-dim), transparent); } .notice.salary > .ic { color: var(--usd); }
.collapse { animation: collapse .26s var(--ease) forwards; overflow: hidden; }
@keyframes collapse { to { opacity: 0; transform: scale(.97); max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }

/* smart notes: carousel on phones */
.notes { position: relative; }
.notes-head { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.notes-head .ic { color: var(--iqd); } .notes-head .cnt { margin-inline-start: auto; font-size: 12px; color: var(--ink3); }
.notes .nv { overflow: hidden; border-radius: 14px; touch-action: pan-y; }
.notes .track { display: flex; transition: transform .5s var(--ease); will-change: transform; }
.note { flex: 0 0 100%; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); display: flex; gap: 12px; align-items: flex-start; cursor: pointer; user-select: none; -webkit-user-select: none;
  background-image: linear-gradient(100deg, color-mix(in srgb, var(--cc, var(--iqd)) 12%, transparent), transparent 55%); }
[dir=rtl] .note { background-image: linear-gradient(260deg, color-mix(in srgb, var(--cc, var(--iqd)) 12%, transparent), transparent 55%); }
.note > .ic { width: 22px; height: 22px; color: var(--cc, var(--iqd)); margin-top: 2px; }
.note > .ic.chev { width: 16px; height: 16px; color: var(--ink3); margin: auto 0; margin-inline-start: auto; }
.note .tt { font-size: 14px; font-weight: 600; } .note .bd { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.5; }
.note .num { font-weight: 700; color: var(--ink); }
.note.empty-note { color: var(--ink3); font-size: 13px; cursor: default; }
.notes .dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.notes .dot { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.notes .dot i { width: 7px; height: 4px; border-radius: 2px; background: var(--ink3); opacity: .45; transition: width .3s var(--ease), opacity .3s; position: relative; overflow: hidden; }
.notes .dot.on i { width: 22px; opacity: 1; background: color-mix(in srgb, var(--iqd) 30%, transparent); }
.notes .dot.on i::after { content: ""; position: absolute; inset: 0; background: var(--iqd); transform-origin: left; transform: scaleX(1); }
[dir=rtl] .notes .dot.on i::after { transform-origin: right; }
.notes .dot.on.run i::after { animation: dotfill 5.5s linear forwards; }
.notes.paused .dot.on.run i::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } }
@media (min-width: 900px) {
  .notes .nv { overflow: visible; } .notes .track { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; transform: none !important; transition: none; }
  .notes .dots, .notes-head .cnt { display: none; }
}

.repeat { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 2px; }
.repeat::-webkit-scrollbar { display: none; }
.repeat .chip { flex: none; cursor: pointer; padding: 7px 12px; } .repeat .chip:hover { border-color: var(--edge-hi); color: var(--ink); }
.repeat .chip .num { font-size: 12px; opacity: .8; }

.due { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: linear-gradient(90deg, var(--warn-dim), transparent); flex-wrap: wrap; }
.due > .ic { color: var(--warn); width: 20px; height: 20px; } .due .t { flex: 1; min-width: 150px; } .due .t b { display: block; font-weight: 600; } .due .t span { font-size: 12.5px; color: var(--ink2); }
.due .acts { display: flex; gap: 6px; }

/* ------------------------------------------------ buttons & forms */
a.btn { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; border-radius: 11px; font-weight: 600; font-size: 14px; border: 1px solid var(--edge); color: var(--ink); background: var(--well); transition: border-color .15s, background .15s, transform .1s, opacity .15s; white-space: nowrap; min-height: 44px; }
.btn:hover { border-color: var(--edge-hi); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #4ce9ff, #17a9c6); color: #04141a; border-color: transparent; box-shadow: var(--glow-iqd); }
:root[data-theme="light"] .btn.primary { background: linear-gradient(135deg, #16b3d3, #0a7f9c); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.ghost { border-color: transparent; color: var(--ink2); background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; min-height: 36px; }
.btn.busy { pointer-events: none; opacity: .6; } .btn.busy .ic { animation: spin 1s linear infinite; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn .ic { width: 17px; height: 17px; }
.btn.filt { position: relative; } .btn.filt .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--iqd); color: var(--on-accent); font-family: var(--f-num); font-size: 11px; line-height: 18px; }
.lnk { color: var(--iqd); font-weight: 600; font-size: inherit; padding: 2px 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--iqd) 40%, transparent); text-underline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--ink2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; font-size: 16px; line-height: 1.4; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--edge-hi); box-shadow: 0 0 0 3px var(--iqd-dim); }
.field input.num-in { font-family: var(--f-num); font-size: 18px; font-weight: 600; direction: ltr; text-align: start; }
[dir=rtl] .field input.num-in { text-align: right; }
.field input.num-in.iqd { color: var(--iqd); } .field input.num-in.usd { color: var(--usd); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; cursor: pointer; }
[dir=rtl] .field select { background-position: 18px 50%, 13px 50%; }
.field .help { font-size: 12px; color: var(--ink3); line-height: 1.45; margin-top: -2px; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catsel { display: flex; align-items: center; gap: 10px; }
.catsel .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: color-mix(in srgb, var(--cc, var(--ink3)) 18%, transparent); color: var(--cc, var(--ink2)); border: 1px solid color-mix(in srgb, var(--cc, var(--ink3)) 35%, transparent); }
.catsel .ico .ic { width: 20px; height: 20px; }
.catsel select { flex: 1; }
.memo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); margin-top: -8px; min-height: 0; }
.memo:empty { display: none; } .memo .ic { color: var(--iqd); } .memo b { color: var(--ink); } .memo .lnk { margin-inline-start: auto; }

.amount-in { position: relative; }
.amount-in input, .field .amount-in input.num-in { font-family: var(--f-num); font-size: 36px; font-weight: 700; padding: 12px 64px 12px 14px; text-align: center; direction: ltr; letter-spacing: .02em; background: var(--well); border-radius: 16px; }
[dir=rtl] .field .amount-in input.num-in { padding: 12px 14px 12px 64px; text-align: center; }
.amount-in.sm input, .field .amount-in.sm input.num-in { font-size: 22px; padding-top: 10px; padding-bottom: 10px; border-radius: 12px; }
.amount-in input.usd { color: var(--usd); } .amount-in input.iqd { color: var(--iqd); }
.amount-in .tag { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-family: var(--f-num); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--ink2); pointer-events: none; }
.amount-in input::placeholder { color: var(--ink3); font-weight: 600; }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); }
.seg button { flex: 1; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink2); transition: background .15s, color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 38px; }
.seg button.on { background: var(--iqd-dim); color: var(--iqd); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iqd) 40%, transparent); }
.seg button.on.usd { background: var(--usd-dim); color: var(--usd); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--usd) 45%, transparent); }
.seg button.on.inc { background: var(--inc-dim); color: var(--inc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inc) 45%, transparent); }
.seg.scroll { overflow-x: auto; scrollbar-width: none; } .seg.scroll::-webkit-scrollbar { display: none; } .seg.scroll button { flex: none; }
#s-unit button { flex-direction: column; gap: 0; line-height: 1.25; padding: 8px 6px; } #s-unit button .num { font-size: 12px; opacity: .8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { cursor: pointer; transition: border-color .12s, background .12s; padding: 8px 12px; }
.chips .chip:hover { border-color: var(--edge-hi); }
.chips .chip.on { color: var(--ink); border-color: var(--iqd); background: var(--iqd-dim); }
.chips .chip .num { font-weight: 500; opacity: .7; font-size: 12px; }

.calc { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); font-size: 13px; color: var(--ink2); gap: 10px; }
.calc .num { font-size: 18px; color: var(--ink); }
.calc.hi { border-color: var(--edge-hi); }
.more-tog { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; font-weight: 500; padding: 6px 2px; align-self: flex-start; }
.more-tog .ic { transition: transform .2s; } .more-tog.open .ic { transform: rotate(180deg); }
.more-body { display: none; flex-direction: column; gap: 16px; } .more-body.open { display: flex; }
.market { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); flex-wrap: wrap; min-height: 32px; }
.market .chip { cursor: pointer; } .market .chip .num { font-size: 15px; font-weight: 700; }
.form { display: flex; flex-direction: column; gap: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swt { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swt.on { border-color: var(--ink); transform: scale(1.08); }
.icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icongrid .ig { height: 44px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--ink2); display: flex; align-items: center; justify-content: center; }
.icongrid .ig.on { color: var(--iqd); border-color: var(--iqd); background: var(--iqd-dim); }

/* ------------------------------------------------ sheets (bottom sheet on phones, dialog on desktop) */
#sheet-root { position: relative; z-index: 50; }
.sheet-bg { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 50; background: var(--scrim); animation: fade .18s ease-out; display: flex; align-items: flex-end; justify-content: center; touch-action: none; }
.sheet { width: 100%; max-height: calc(var(--vvh, 100dvh) - 28px - var(--sat)); background: var(--bg2); border: 1px solid var(--edge); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 0 18px calc(14px + var(--sab)); overflow-y: auto; overscroll-behavior: contain; animation: up .26s var(--ease); box-shadow: var(--shadow); touch-action: pan-y; transition: transform .2s var(--ease); -webkit-overflow-scrolling: touch; }
.sheet .grab { position: sticky; top: 0; z-index: 3; background: var(--bg2); padding-top: 6px; touch-action: none; }
.sheet .handle { width: 42px; height: 4px; border-radius: 2px; background: var(--ink3); margin: 2px auto 10px; opacity: .6; }
.sheet .head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.sheet .head h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sheet .body { display: flex; flex-direction: column; gap: 16px; }
.sheet .foot { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: calc(-14px - var(--sab)); padding: 12px 0 calc(4px + var(--sab)); margin-bottom: calc(-14px - var(--sab)); background: linear-gradient(180deg, transparent, var(--bg2) 28%); z-index: 2; }
.sheet-bg.closing { animation: fadeout .19s ease-in forwards; } .sheet-bg.closing .sheet { animation: down .19s ease-in forwards; }
.sheet.confirm .body p { font-size: 15px; line-height: 1.5; }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; }
  .sheet { width: 560px; max-height: calc(var(--vvh, 100vh) - 60px); border-radius: 20px; border-bottom: 1px solid var(--edge); animation: pop .2s var(--ease); padding: 0 22px 20px; }
  .sheet .grab .handle { display: none; } .sheet .grab { padding-top: 14px; }
  .sheet.confirm { width: 420px; }
  .sheet-bg.closing .sheet { animation: popout .16s ease-in forwards; }
}
@keyframes fade { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; } }
@keyframes up { from { transform: translate3d(0, 60px, 0); opacity: .6; } } @keyframes down { to { transform: translate3d(0, 80px, 0); opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } } @keyframes popout { to { transform: scale(.97); opacity: 0; } }

/* ------------------------------------------------ transaction list */
.txlist { display: flex; flex-direction: column; }
.txlist .day { display: flex; align-items: center; gap: 10px; padding: 12px 4px 6px; font-size: 12px; color: var(--ink3); }
.txlist .day .line { flex: 1; height: 1px; background: var(--edge); }
.txlist .day .sum { font-family: var(--f-num); font-weight: 600; color: var(--ink2); direction: ltr; }
.tx { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; cursor: pointer; transition: background .12s; width: 100%; text-align: start; }
.tx:hover { background: var(--well); } .tx:active { background: var(--iqd-dim); }
.tx > span { display: block; min-width: 0; }
.tx .ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cc, var(--ink3)) 16%, transparent); color: var(--cc, var(--ink2)); }
.tx .ico .ic { width: 19px; height: 19px; }
.tx .title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .meta { font-size: 11.5px; color: var(--ink3); display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 1px; }
.tx .meta .m + .m::before { content: "·"; margin-inline-end: 5px; color: var(--ink3); }
.tx .meta .p { color: var(--c12); } .tx .meta .r { color: var(--ink2); } .tx .meta .att { color: var(--iqd); display: inline-flex; align-items: center; gap: 2px; } .tx .meta .att .ic { width: 13px; height: 13px; }
.tx .amt { font-family: var(--f-num); font-size: 17px; font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: end; white-space: nowrap; }
.tx .amt .cur { font-size: 10px; }
.tx .amt .sub { display: block; font-family: var(--f-ui); font-size: 10.5px; font-weight: 400; color: var(--ink3); text-align: end; }
.txpanel { padding: 6px 8px; }
.empty { text-align: center; padding: 30px 12px; color: var(--ink3); font-size: 13.5px; line-height: 1.5; }
.empty > .ic { width: 30px; height: 30px; color: var(--ink3); display: block; margin: 0 auto 8px; }

.monthnav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.monthnav b { font-family: var(--f-num); font-size: 17px; font-weight: 600; min-width: 128px; text-align: center; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--edge); background: var(--well); flex: 1; min-width: 0; min-height: 44px; }
.search:focus-within { border-color: var(--edge-hi); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 10px 0; font-size: 16px; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search .ic { color: var(--ink3); }

/* ledger */
.lbar { display: flex; gap: 8px; margin-bottom: 10px; }
#ltype, #akind { margin-bottom: 10px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .fchips:empty { display: none; }
.fchips .chip { cursor: pointer; } .fchips .chip.on { color: var(--ink); border-color: var(--iqd); background: var(--iqd-dim); }
.daystrip-wrap { padding: 10px 8px 6px; margin-bottom: 10px; }
.daystrip { display: flex; gap: 2px; direction: ltr; }
.daystrip .dd { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 2px; border-radius: 6px; }
.daystrip .dd .b { width: min(10px, 70%); height: 46px; border-radius: 3px; background: var(--well); display: flex; align-items: flex-end; overflow: hidden; }
.daystrip .dd .b i { display: block; width: 100%; background: var(--iqd); border-radius: 4px; opacity: .55; transition: height .3s var(--ease); }
.daystrip .dd .n { font-size: 10.5px; color: var(--ink3); font-weight: 600; height: 15px; line-height: 15px; }
.daystrip .dd.today .n { color: var(--iqd); } .daystrip .dd.today .b { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iqd) 50%, transparent); }
.daystrip .dd.sel { background: var(--iqd-dim); } .daystrip .dd.sel .b i { opacity: 1; box-shadow: var(--glow-iqd); } .daystrip .dd.sel .n { color: var(--ink); }
.daystrip .dd.future { opacity: .35; cursor: default; }
.lsum { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* activity log */
.act-intro { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); margin: 0 0 10px; line-height: 1.5; }
.act-intro .ic { color: var(--inc); margin-top: 2px; }
.actpanel { padding: 4px 10px; }
.actlist .day { display: flex; align-items: center; gap: 10px; padding: 12px 2px 4px; font-size: 12px; color: var(--ink3); } .actlist .day .line { flex: 1; height: 1px; background: var(--edge); }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--edge-soft); }
.act:last-child { border-bottom: 0; }
.act .aico, .hi .hico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); }
.act .aico .ic, .hi .hico .ic { width: 16px; height: 16px; }
.tone-inc { --tc: var(--inc); } .tone-bad { --tc: var(--bad); } .tone-iqd { --tc: var(--iqd); } .tone-usd { --tc: var(--usd); }
.act .grow.open { cursor: pointer; }
.act .at { font-size: 13.5px; line-height: 1.4; } .act .at b { font-weight: 600; } .act .subj { color: var(--ink2); }
.act .am, .hi .hmeta { font-size: 11.5px; color: var(--ink3); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .act .am .ic, .hi .hmeta .ic { width: 12px; height: 12px; }
.act .aact { margin-top: 8px; display: flex; } .act .grow { min-width: 0; }
@media (min-width: 700px) {
  .act .grow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
  .act .grow > * { grid-column: 1; } .act .grow > .aact { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
}
.act.is-undone .at, .act.is-undone .diffs { opacity: .55; }
.diffs { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.df { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; } .df .l { color: var(--ink3); min-width: 70px; }
.df .o { color: var(--ink3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); } .df .n { color: var(--ink); font-weight: 600; } .df .ic { width: 12px; height: 12px; color: var(--ink3); }

/* ------------------------------------------------ transaction preview */
.txd { display: flex; flex-direction: column; gap: 16px; }
.txd-hero { text-align: center; padding: 6px 0 2px; }
.txd-hero .ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cc) 16%, transparent); color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent); }
.txd-hero .ico .ic { width: 24px; height: 24px; }
.txd-hero .ttl { font-weight: 600; font-size: 16px; margin-top: 8px; }
.txd-hero .big { font-size: 40px; font-weight: 700; line-height: 1.1; margin-top: 4px; } .txd-hero .big .cur { font-size: 14px; }
.txd-hero .sub { font-size: 13px; color: var(--ink2); margin-top: 2px; } .txd-hero .when { font-size: 12.5px; color: var(--ink3); margin-top: 6px; }
.kvs { border: 1px solid var(--edge); border-radius: 14px; background: var(--well); overflow: hidden; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--edge-soft); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink2); flex: none; } .kv .v { text-align: end; min-width: 0; overflow-wrap: anywhere; }
.kv.kv-note .v { white-space: pre-wrap; }
.dotl { display: inline-flex; align-items: center; gap: 6px; } .dotl .ic { color: var(--cc); width: 16px; height: 16px; }
.txd-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink2); font-weight: 600; display: flex; align-items: center; gap: 6px; } .txd-sec h4 .ic { color: var(--iqd); width: 15px; height: 15px; }
.mem { display: flex; flex-direction: column; gap: 4px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--well); font-size: 12.5px; width: 100%; }
.mrow .num { font-size: 14px; } .mrow .delta { font-size: 11px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); background: var(--well); position: relative; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.add { border-style: dashed; color: var(--ink2); font-size: 10.5px; text-align: center; padding: 4px; } .thumb.add .ic { width: 20px; height: 20px; color: var(--iqd); }
.thumb.busy { pointer-events: none; } .thumb.busy .ic { animation: spin 1s linear infinite; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hi { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(16px + var(--sat)) 12px calc(16px + var(--sab)); animation: fade .18s; }
.lightbox img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; border-radius: 10px; }
.lb-bar { display: flex; gap: 8px; }
.hide-s { display: inline; } @media (max-width: 420px) { .hide-s { display: none; } }

/* ------------------------------------------------ projects */
.proj { padding: 16px; cursor: pointer; transition: border-color .15s; text-align: start; width: 100%; display: block; }
.proj:hover { border-color: var(--edge-hi); }
.proj .ph { display: flex; align-items: center; gap: 10px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.proj .nm { font-weight: 600; flex: 1; }
.proj .st { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--edge); color: var(--ink2); }
.proj .st.active { color: var(--inc); border-color: color-mix(in srgb, var(--inc) 40%, transparent); }
.proj .nums { display: flex; gap: 18px; margin-top: 10px; }
.proj .nums div { font-size: 11.5px; color: var(--ink3); } .proj .nums .num { display: block; font-size: 18px; color: var(--ink); }
.bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--iqd); }
.bar i.warn { background: var(--warn); } .bar i.over { background: var(--bad); }

/* ------------------------------------------------ reports */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); margin-bottom: 14px; }
.tabs button { flex: 1; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; transition: background .15s, color .15s; }
.tabs button.on { background: var(--iqd-dim); color: var(--iqd); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iqd) 40%, transparent); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 640px) { .minis { grid-template-columns: 1fr 1fr; } }
.mini { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--edge); font-size: 12px; color: var(--ink2); }
.mini .ic { color: var(--iqd); width: 16px; height: 16px; } .mini .k { flex: 1; min-width: 0; } .mini .num { font-size: 16px; color: var(--ink); }
.legend { display: flex; flex-direction: column; gap: 4px; }
.legend .l { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; width: 100%; text-align: start; }
.legend .l:hover, .legend .l.hi { background: var(--well); }
.legend .l .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .l .v { font-family: var(--f-num); font-weight: 600; direction: ltr; } .legend .l .p { font-size: 11px; color: var(--ink3); min-width: 36px; text-align: end; font-family: var(--f-num); }
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
@media (max-width: 480px) { .donut-wrap { grid-template-columns: 1fr; } .donut-wrap svg { max-width: 220px; margin: 0 auto; } }
.chart { position: relative; width: 100%; direction: ltr; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--panel-solid); border: 1px solid var(--edge-hi); border-radius: 9px; padding: 6px 10px; font-size: 12px; color: var(--ink); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; z-index: 2; direction: ltr; box-shadow: var(--shadow); }
.chart .tip b { font-family: var(--f-num); font-size: 14px; display: block; }
.chart .tip.on { opacity: 1; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbars .h { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbars .h .lbl { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars .h .lbl .ic { width: 15px; height: 15px; color: var(--cc); }
.hbars .h .trk { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.hbars .h .trk i { display: block; height: 100%; border-radius: 4px; background: var(--cc, var(--iqd)); transform-origin: left; animation: grow .7s var(--ease) both; }
[dir=rtl] .hbars .h .trk i { transform-origin: right; }
@keyframes grow { from { transform: scaleX(0); } }
.quiet .hbars .h .trk i, .quiet .chip.mem { animation: none; }
.hbars .h .v { font-family: var(--f-num); font-weight: 600; direction: ltr; min-width: 70px; text-align: end; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: start; font-weight: 500; color: var(--ink3); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--edge); white-space: nowrap; } .table th.e { text-align: end; }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--edge-soft); }
.table td.n { font-family: var(--f-num); font-weight: 600; direction: ltr; text-align: end; white-space: nowrap; }
.table tr[data-tx] { cursor: pointer; } .table tr[data-tx]:hover td { background: var(--well); }
.delta { font-family: var(--f-num); font-size: 12px; font-weight: 600; } .delta.up { color: var(--bad); } .delta.down { color: var(--inc); }
.heat { display: block; width: 100%; }
.heat .cell { transition: opacity .15s; } .heat .cell:hover { stroke: var(--ink); stroke-width: 1; }
.heat-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink3); margin-top: 6px; justify-content: flex-end; }
.heat-legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; background: var(--iqd); }
.rate-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.rate-hero .big { font-family: var(--f-num); font-size: clamp(38px, 10vw, 52px); font-weight: 700; line-height: 1.05; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
[dir=rtl] .rate-hero .big { text-align: right; }
.rate-hero .k { font-size: 12px; color: var(--ink2); } .rate-hero .s { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.rate-hero .snip { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--well); border: 1px dashed var(--edge); font-size: 12.5px; color: var(--ink2); direction: rtl; text-align: right; line-height: 1.5; }
.rate-hero .snip.bad { color: var(--bad); direction: inherit; text-align: start; }
.srcbox { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.srcbox .k { font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; } .srcbox .k .ic { color: var(--iqd); }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cities .c { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--well); border: 1px solid var(--edge-soft); font-size: 13px; gap: 8px; }
.cities .c .num { color: var(--ink); }
.whatif { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 520px) { .frow.conv { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .whatif { grid-template-columns: 1fr; } .rate-hero { grid-template-columns: 1fr; } }

/* ------------------------------------------------ settings */
.setlist { display: flex; flex-direction: column; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--edge-soft); flex-wrap: wrap; }
.setrow:last-child { border-bottom: 0; }
.setrow .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--well); color: var(--cc, var(--ink2)); flex: none; }
.setrow .t { flex: 1; min-width: 150px; } .setrow .t b { display: block; font-weight: 500; } .setrow .t span { font-size: 12px; color: var(--ink3); line-height: 1.45; }
.setrow .v { font-weight: 600; color: var(--ink2); }
.toggle { width: 48px; height: 28px; border-radius: 14px; background: var(--well); position: relative; transition: background .2s; flex: none; border: 1px solid var(--edge); }
.toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink2); transition: transform .2s var(--ease), background .2s; }
.toggle.on { background: var(--iqd-dim); border-color: var(--edge-hi); } .toggle.on::after { transform: translateX(20px); background: var(--iqd); box-shadow: 0 0 8px var(--iqd); }
[dir=rtl] .toggle.on::after { transform: translateX(-20px); }
.code { font-family: var(--f-num); font-size: 16px; font-weight: 600; letter-spacing: .02em; direction: ltr; padding: 8px 12px; border-radius: 9px; background: var(--well); border: 1px solid var(--edge); color: var(--iqd); display: inline-block; user-select: all; word-break: break-all; max-width: 100%; }
.code.sm { font-size: 13px; padding: 2px 8px; margin-top: 4px; }
.theme-seg button .ic { width: 16px; height: 16px; }
.setsec { border-top: 1px solid var(--edge-soft); }
.setsec:first-of-type { border-top: 0; }
.setsec summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink2); list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 2px; min-height: 48px; }
.setsec summary::-webkit-details-marker { display: none; } .setsec summary > .ic:first-child { color: var(--iqd); } .setsec summary .n { margin-inline-start: auto; font-family: var(--f-num); color: var(--ink3); font-size: 12px; }
.setsec summary .chev { transition: transform .2s; color: var(--ink3); } .setsec[open] summary .chev { transform: rotate(180deg); }
.ver { font-family: var(--f-num); font-weight: 600; color: var(--ink2); padding: 6px 10px; border-radius: 9px; border: 1px solid var(--edge); }
.testout { padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
.testout.ok { border-color: color-mix(in srgb, var(--inc) 45%, transparent); } .testout.ok .big { font-size: 28px; font-weight: 700; }
.testout.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------ overlays */
.lock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: var(--sat) 16px var(--sab); }
.lock.onb-wrap { overflow-y: auto; justify-content: flex-start; }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; }
.pinpad button { height: 62px; border-radius: 16px; border: 1px solid var(--edge); background: var(--well); font-family: var(--f-num); font-size: 24px; font-weight: 600; transition: background .1s, border-color .1s; }
.pinpad button:active { background: var(--iqd-dim); border-color: var(--edge-hi); }
.pindots { display: flex; gap: 12px; height: 14px; }
.pindots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink3); } .pindots i.on { background: var(--iqd); border-color: var(--iqd); box-shadow: 0 0 10px var(--iqd); }
.pindots.err i { border-color: var(--bad); animation: shake .3s; }
.lock #lk-msg { min-height: 1.4em; text-align: center; max-width: 300px; } .lock #lk-msg.bad { color: var(--bad); }
.lock .nopin { max-width: 360px; width: 100%; } .lock .nopin h3 { margin-top: 0; }
/* settings: signed-in devices */
.subhead { display: flex; align-items: center; gap: 8px; margin: 16px 0 2px; font-size: 13px; font-weight: 600; color: var(--ink2); } .subhead .ic { width: 16px; height: 16px; color: var(--iqd); }
.devlist .setrow .t > span { display: block; } .devlist .t b .me { font-size: 12px; color: var(--iqd); font-weight: 600; }
.badge-online { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--usd); border: 1px solid color-mix(in srgb, var(--usd) 40%, transparent); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.badge-online::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--usd); box-shadow: 0 0 6px var(--usd); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--dock-h) + var(--sab) + 12px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
html.sheet-open #toast-root { bottom: calc(var(--sab) + 92px); }
@media (min-width: 900px) { #toast-root { bottom: 24px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--edge-hi); color: var(--ink); font-size: 14px; box-shadow: var(--shadow); animation: toastin .24s var(--ease); max-width: 100%; pointer-events: auto; }
[dir=rtl] .toast { padding: 10px 16px 10px 12px; }
.toast > .ic { color: var(--iqd); } .toast.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); } .toast.bad > .ic { color: var(--bad); }
.toast .tact { color: var(--iqd); min-height: 34px; padding: 6px 10px; }
.toast.out { animation: fadeout .24s forwards; }
@keyframes toastin { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

.notifs { position: fixed; top: calc(var(--top-h) + var(--sat) + 6px); inset-inline-end: 10px; width: min(380px, calc(100% - 20px)); max-height: 70vh; overflow: auto; z-index: 40; padding: 10px; animation: pop .18s var(--ease); background: var(--panel-solid); box-shadow: var(--shadow); }
.notifs .nh { margin-bottom: 4px; padding: 0 4px; }
.notifs .n { padding: 10px 8px; border-bottom: 1px solid var(--edge-soft); display: flex; gap: 10px; cursor: pointer; width: 100%; text-align: start; border-radius: 8px; }
.notifs .n:hover { background: var(--well); } .notifs .n:last-child { border-bottom: 0; }
.notifs .n .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--ink3); flex: none; }
.notifs .n.unread .dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.notifs .n b { display: block; font-weight: 600; font-size: 14px; } .notifs .n .p { display: block; margin: 2px 0 0; font-size: 12.5px; color: var(--ink2); } .notifs .n time { font-size: 11px; color: var(--ink3); font-family: var(--f-num); white-space: nowrap; }

.onb { max-width: 520px; margin: 0 auto; padding: 10px 0 40px; width: 100%; }
.onb .logo { text-align: center; margin: 18px 0 22px; }
.onb .logo .brand { justify-content: center; font-size: 32px; } .onb .logo .brand .mark { width: 40px; height: 40px; }
.onb .logo p { color: var(--ink2); margin: 8px 0 0; }
.onb .dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; } .onb .dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--ink3); } .onb .dots i.on { background: var(--iqd); box-shadow: 0 0 8px var(--iqd); }

/* what's new */
.newlist { display: flex; flex-direction: column; gap: 4px; }
.nw { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--edge-soft); animation: viewIn .4s var(--ease) both; animation-delay: calc(var(--n) * 45ms); }
.nw:last-child { border-bottom: 0; }
.nw > .ic { width: 22px; height: 22px; color: var(--iqd); margin-top: 1px; } .nw b { display: block; font-weight: 600; } .nw span { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }

/* pull to refresh */
.ptr { position: fixed; top: calc(var(--top-h) + var(--sat) + 6px); left: 50%; z-index: 35; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-solid); border: 1px solid var(--edge); color: var(--ink2); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate3d(-50%, 0, 0); pointer-events: none; box-shadow: var(--shadow); }
.ptr.ready { color: var(--iqd); border-color: var(--edge-hi); } .ptr.spin .ic { animation: spin .8s linear infinite; } .ptr.spin { opacity: 1 !important; transform: translate3d(-50%, 40px, 0) !important; }

/* celebrations */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.burst i { position: absolute; top: -24px; left: var(--x); width: 16px; height: 16px; border-radius: 50%; transform: scale(var(--s));
  background: radial-gradient(circle at 35% 35%, #fff6c8 0 18%, #f5c451 40%, #b98200 100%); box-shadow: 0 0 10px rgba(245, 196, 81, .55);
  animation: coin 1.7s var(--d) cubic-bezier(.35, .7, .45, 1) forwards; }
@keyframes coin { 0% { transform: translate3d(0, 0, 0) rotate(0) scale(var(--s)); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--dx), 108vh, 0) rotate(var(--r)) scale(var(--s)); opacity: 0; } }

/* recap story */
.story { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; animation: fade .25s; user-select: none; -webkit-user-select: none; }
.story .bars { display: flex; gap: 4px; padding: calc(10px + var(--sat)) 12px 0; }
.story .bars i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; position: relative; }
.story .bars i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
[dir=rtl] .story .bars i::after { transform-origin: right; }
.story .bars i.done::after { transform: none; } .story .bars i.run::after { animation: storyfill 5s linear forwards; }
@keyframes storyfill { to { transform: scaleX(1); } }
.story .x { position: absolute; top: calc(18px + var(--sat)); inset-inline-end: 12px; z-index: 2; }
.story .slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; animation: viewIn .5s var(--ease); }
.story .slide .eyebrow { font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.story .slide .huge { font-family: var(--f-num); font-size: clamp(56px, 16vw, 110px); font-weight: 700; line-height: 1; color: var(--ink); direction: ltr; }
.story .slide .huge.mid { font-size: clamp(40px, 10vw, 72px); }
.story .slide .huge .cur { font-size: 16px; }
.story .slide .big { font-size: clamp(26px, 7vw, 44px); font-weight: 700; line-height: 1.2; }
.story .slide .sub { font-size: 15px; color: var(--ink2); margin-top: 14px; max-width: 420px; line-height: 1.5; }
.story .slide .ic.giant { width: 64px; height: 64px; margin-bottom: 18px; color: var(--cc, var(--iqd)); }
.story .slide .tap { position: absolute; bottom: calc(24px + var(--sab)); font-size: 12px; color: var(--ink3); }
.story.s0 { background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--iqd) 22%, transparent), transparent 55%), var(--bg); }
.story.s1 { background: radial-gradient(circle at 30% 80%, color-mix(in srgb, var(--usd) 20%, transparent), transparent 55%), var(--bg); }
.story.s2 { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cc, var(--iqd)) 22%, transparent), transparent 55%), var(--bg); }
.story.s3 { background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--inc) 18%, transparent), transparent 55%), var(--bg); }
.story .nav { position: absolute; inset: 60px 0 0; display: flex; } .story .nav div { flex: 1; }

.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--iqd) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

[dir=rtl] .tx .amt, [dir=rtl] .hbars .h .v, [dir=rtl] .table td.n { text-align: left; }
[dir=rtl] .tx .amt .sub { text-align: left; }
[dir=rtl] .dock .fab > span { left: 50%; }
[dir=rtl] .brand { letter-spacing: .1em; }
@media (max-width: 380px) { .ticker .t { padding: 6px 10px; } .monthnav b { min-width: 110px; font-size: 15px; } .pagehead h1 { font-size: 20px; } }
