:root {
  --bg: #f4f5f8; --card: #ffffff; --text: #16181d; --muted: #6b7180; --line: #e6e8ee;
  --accent: #4f6bed; --accent-soft: #e8ecfd; --danger: #e5484d; --ok: #12a594; --warn: #f5a524;
  --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --on-accent: #fff; --destructive: #dc2626; --on-destructive: #fff; --tip-bg: #16181d; --tip-text: #fff;
  color-scheme: light;
}
/* Dark theme: follows the system unless the user picked a theme in Settings (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0f1115; --card: #181b21; --text: #eceef3; --muted: #9298a6; --line: #2a2e38;
  --accent: #7b91ff; --accent-soft: #232a45; --danger: #ff6b70; --ok: #3dd6be; --warn: #ffc053;
  --shadow: inset 0 1px 0 rgba(255,255,255,.04); --on-accent: #0f1115; --destructive: #f87171; --on-destructive: #16181d;
  --tip-bg: #eceef3; --tip-text: #16181d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --card: #181b21; --text: #eceef3; --muted: #9298a6; --line: #2a2e38;
  --accent: #7b91ff; --accent-soft: #232a45; --danger: #ff6b70; --ok: #3dd6be; --warn: #ffc053;
  --shadow: inset 0 1px 0 rgba(255,255,255,.04); --on-accent: #0f1115; --destructive: #f87171; --on-destructive: #16181d;
  --tip-bg: #eceef3; --tip-text: #16181d; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
h1 { font-size: 22px; margin: 4px 0 16px; line-height: 1.2; font-weight: 600; }
b, strong { font-weight: 600; }
h2 { font-size: 17px; margin: 0 0 12px; line-height: 1.25; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .val { font-size: 19px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { color: var(--ok); } .neg { color: var(--danger); }

.month-switch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-switch button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; width: 44px; height: 44px; font-size: 18px; }
.month-switch .m { font-weight: 600; font-size: 17px; text-transform: capitalize; }

.btn { border: 0; border-radius: 12px; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; }
.link { background: none; border: 0; color: var(--accent); padding: 0; }

label.f { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 8px; }
.input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: none; }
.input:focus { border-color: var(--accent); }
.amount-input { font-size: 30px; font-weight: 600; padding: 12px 16px; font-variant-numeric: tabular-nums; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 8px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg.exp button.on[data-v=expense] { color: var(--danger); }
.seg.exp button.on[data-v=income] { color: var(--ok); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cat { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 14px; line-height: 1.25; }
.cat .ic { font-size: 22px; display: block; margin-bottom: 4px; }
.cat.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.photo-btn { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px; background: var(--bg); width: 100%; text-align: left; }
.photo-btn img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.photo-btn .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; }

.tx-day { font-size: 14px; color: var(--muted); margin: 16px 4px 8px; display: flex; justify-content: space-between; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; width: 100%; text-align: left; }
.tx .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 20px; flex: none; position: relative; }
.tx .who { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card); }
.tx .t1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .t2 { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx .amt .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.limit { margin-bottom: 16px; }
.limit:last-child { margin-bottom: 0; }
.bar { height: 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
.bar > i.warn { background: var(--warn); } .bar > i.over { background: var(--danger); }

.chart-box { position: relative; height: 220px; }
.legend { display: grid; gap: 8px; margin-top: 12px; }
.legend .li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .li .v { margin-left: auto; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
nav.tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); padding: 4px 12px; gap: 2px; min-width: 64px; }
nav.tabs button .i { font-size: 21px; line-height: 1; }
nav.tabs button.on { color: var(--accent); }
nav.tabs .add { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 28px; margin-top: -16px; box-shadow: 0 4px 12px rgba(16,24,40,.07); border: 1px solid color-mix(in srgb, var(--accent) 70%, #000); justify-content: center; min-width: 0; padding: 0; }

.sheet-bg { position: fixed; inset: 0; background: rgba(10,12,18,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 620px; max-height: 94vh; overflow-y: auto; border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); animation: up 200ms cubic-bezier(0,0,.2,1); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet .handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tip-bg); color: var(--tip-text);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.login { max-width: 360px; margin: 12vh auto 0; padding: 16px; }
.login .logo { font-size: 44px; text-align: center; }
.err { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 1em; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt-full { width: 100%; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.live.off { background: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }

/* ---------- top bar & drawer ---------- */
.topbar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.tb-title { font-weight: 600; font-size: 16px; flex: 1; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-content: center; gap: 4px; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.drawer-bg { position: fixed; inset: 0; background: rgba(10,12,18,.42); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 200ms cubic-bezier(0,0,.2,1); }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); z-index: 41; background: var(--card);
  border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(16,24,40,.07);
  transform: translateX(-104%); transition: transform 200ms cubic-bezier(0,0,.2,1); display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
.drawer:not(.open) { box-shadow: none; visibility: hidden; transition: transform 150ms cubic-bezier(.4,0,1,1), visibility 0s 150ms; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.drawer-head .link { font-size: 18px; color: var(--muted); padding: 8px; }
.drawer-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 8px 8px; }
.drawer-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none;
  padding: 12px; border-radius: 12px; margin-bottom: 4px; }
.drawer-item b { display: block; font-weight: 600; }
.drawer-item .small { display: block; }
.drawer-item:hover { background: var(--bg); }
.drawer-item.on { background: var(--accent-soft); }
.drawer-item.on b { color: var(--accent); }
.di-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: none; }
.drawer-item.on .di-ic { background: var(--card); }
.drawer-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.small-item { padding: 8px 12px; } .small-item .di-ic { width: 30px; height: 30px; font-size: 15px; }
.topbar .live { margin-right: 0; }


/* ---------- task board ---------- */
.wrap.wide { max-width: 1320px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.wrap-row { flex-wrap: wrap; gap: 4px 12px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start;
  overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
@media (max-width: 1040px) { .board { grid-template-columns: repeat(4, min(84vw, 320px)); } }
.col { background: color-mix(in srgb, var(--line) 45%, var(--bg)); border-radius: var(--radius); padding: 12px; scroll-snap-align: start;
  border: 1px solid var(--line); min-width: 0; }
.col.drop-target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.col-head b { font-size: 14.5px; }
.cdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.count { font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.col-add { margin: -8px -8px -8px auto; border: 0; background: transparent; color: var(--muted); font-size: 20px; width: 44px; height: 44px; border-radius: 12px; }
.col-add:hover { background: var(--card); color: var(--accent); }
.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 64px; }
.col-empty { font-size: 14px; color: var(--muted); text-align: center; padding: 16px 8px; border: 1.5px dashed var(--line); border-radius: 12px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px 16px; box-shadow: var(--shadow);
  cursor: grab; position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow: hidden; }
.tcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.tcard.prio-high::before { background: var(--danger); }
.tcard.prio-low::before { background: var(--line); }
.tcard:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc-title { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tc-desc { font-size: 14px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tcard.is-done .tc-title { text-decoration: line-through; color: var(--muted); }
.tcard.is-done { opacity: .78; }
.prio { font-weight: 600; }
.due { white-space: nowrap; }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.today { color: var(--warn); font-weight: 600; }
.due.soon { color: var(--accent); }
.avatar.xs { width: 24px; height: 24px; font-size: 12px; }
.empty-av { background: var(--bg) !important; color: var(--muted); border: 1px dashed var(--line); }
.tcard.drag-src { opacity: .35; border-style: dashed; box-shadow: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; box-shadow: 0 12px 28px rgba(16,24,40,.07); border-color: var(--accent); cursor: grabbing; opacity: .96; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.hint { text-align: center; margin-top: 16px; }
.fab { position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; border: 0;
  background: var(--accent); color: var(--on-accent); font-size: 28px; box-shadow: 0 4px 12px rgba(16,24,40,.07); border: 1px solid color-mix(in srgb, var(--accent) 70%, #000); z-index: 8; }
.title-input { font-size: 17px; font-weight: 600; resize: vertical; }
textarea.input { resize: vertical; min-height: 44px; }
.status-seg { flex-wrap: wrap; }
.status-seg button { flex: 1 1 40%; font-size: 14px; }
.status-seg button.on { color: var(--c); }
.wrap-chips { flex-wrap: wrap; overflow: visible; }

/* ---------- audit additions ---------- */
.spinner { opacity: 0; animation: spin .8s linear infinite, appear 0s 120ms forwards; }
@keyframes appear { to { opacity: 1; } }
.input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button:focus-visible, a:focus-visible, [role=button]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* expand small hit areas to 44px without changing visuals */
.chip, .link, .icon-btn { position: relative; }
.chip::before, .link::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-size: 18px; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
/* tooltips for icon-only buttons (hover on pointer devices, always on keyboard focus) */
:where([data-tip]) { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--tip-bg); color: var(--tip-text); font-size: 12px; font-weight: 400; line-height: 1.4; padding: 4px 8px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 100ms cubic-bezier(0,0,.2,1); }
[data-tip][data-tip-pos=top]::after { top: auto; bottom: calc(100% + 8px); }
[data-tip][data-tip-align=start]::after { left: 0; transform: none; }
[data-tip][data-tip-align=end]::after { left: auto; right: 0; transform: none; }
@media (hover: hover) { [data-tip]:hover::after { opacity: 1; } }
[data-tip]:focus-visible::after { opacity: 1; }
/* slide-over from the trailing edge on wider screens */
@media (min-width: 700px) {
  .sheet-bg { align-items: stretch; justify-content: flex-end; }
  .sheet { max-width: 480px; height: 100%; max-height: none; border-radius: 0; border-left: 1px solid var(--line); animation-name: slidein; }
  .sheet .handle { display: none; }
}
@keyframes slidein { from { transform: translateX(32px); opacity: .4; } to { transform: none; opacity: 1; } }
/* destructive confirmation dialog */
.dialog-bg { position: fixed; inset: 0; z-index: 80; background: rgba(10,12,18,.45); display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; animation: up 200ms cubic-bezier(0,0,.2,1); }
.dialog h2 { margin-bottom: 8px; }
.dialog p { margin: 0 0 24px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn.destructive { background: var(--destructive); color: var(--on-destructive); }
/* inline field errors, drafts, empty states, search */
.field-err { color: var(--danger); font-size: 14px; margin-top: 4px; min-height: 0; }
.field-err:empty { display: none; }
.draft-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.empty-state { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; text-align: center; margin-top: 8px; }
.empty-state b { display: block; font-size: 17px; }
.empty-state p { margin: 8px auto 16px; max-width: 46ch; }
.empty-state.inline { margin: 0 0 12px; text-align: left; display: grid; gap: 4px; justify-items: start; }
.empty-state.inline p { margin: 0 0 8px; max-width: none; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; min-height: 44px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-ic { font-size: 14px; }
.search-name { font-size: 14px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; outline: none; padding: 12px 0; min-width: 0; }
@media (max-width: 480px) { .search-name { display: none; } }
.list-head { display: flex; gap: 12px; padding: 0 0 4px; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .spinner { animation: appear 0s 120ms forwards !important; border-top-color: var(--accent); }
}

/* theme switch */
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.theme-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 14px; line-height: 1.25; padding: 8px 4px; }
.theme-seg button span { font-size: 18px; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* ---------- currency converter ---------- */
.wrap.fx-wrap { max-width: 1040px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.fx-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 840px) { .fx-grid { grid-template-columns: 1fr 1fr; } }
.fx-card { margin: 0; }
.fx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.fx-amount { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-pair { display: flex; align-items: flex-end; gap: 8px; }
.fx-pair .grow { min-width: 0; }
.fx-pair select.input { padding-right: 8px; min-height: 48px; }
.fx-swap { margin-bottom: 2px; font-size: 20px; border: 1px solid var(--line); background: var(--card); }
.fx-result { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 4px; }
.fx-big { font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
