/* fxbyfox.com/ex/ — «Обменники»: exchangers of BestChange inside FX (page ex/index.html, script js/exchange.js).
   Its own page with its own styles: the section's blue accent, the site's background and theme. */
:root {
  --bg: #0a0d10; --card: #151a1e; --card-2: #1c2227; --card-active: color-mix(in srgb, #86A8E6 13%, #151a1e); --line: #232b31;
  --text: #e9eef1; --dim: #8c989f; --muted: #5f6b73;
  --accent: #86A8E6; --accent-ink: #0B1220; --accent-soft: rgba(134, 168, 230, .14); --acc-on: #7090D6;
  --danger: #ff6b6b; --up: #4fd18b; --down: #ff7a7a; --adj: #f2c14e; --key-fn: #2a3238;
  --scrim: rgba(0, 0, 0, .55); --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --r-card: 22px; --r-sheet: 26px; --pad: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --av-l: 26%; --av-t: 78%; --av-s: 32%;
  --panel: var(--bg);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f3ef; --card: #ffffff; --card-2: #f0efea; --card-active: color-mix(in srgb, #3F6FD0 9%, #ffffff); --line: #e1dfd7;
  --text: #15191c; --dim: #5f6b73; --muted: #8c989f;
  --accent: #3F6FD0; --accent-ink: #ffffff; --accent-soft: rgba(63, 111, 208, .12); --acc-on: #3F6FD0;
  --up: #1d9b5a; --down: #d64545; --adj: #b07d10; --key-fn: #e7e6df;
  --scrim: rgba(20, 22, 24, .35); --shadow: 0 18px 50px rgba(0, 0, 0, .14);
  --av-l: 88%; --av-t: 30%; --av-s: 45%;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* as the main page (css/app.css): no rubber-band / pull-to-refresh on the page itself, top or bottom (user 2026-11-26) */
html { -webkit-text-size-adjust: 100%; height: 100%; overscroll-behavior: none; }
body { overscroll-behavior-y: none; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.35 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; text-align: inherit; }
button:disabled { cursor: default; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--adj); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- top bar ----- */
/* as the main page (css/app.css .bar): see-through 82% with a blur */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.bar-in { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) var(--pad) 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: .02em; white-space: nowrap; flex: none; }
/* the logo and the header as on the main page (css/app.css, user 26.11.2026): 40 px on a phone, 36 px under 375 px, 38 px on a computer */
.brand .fox { width: 40px; height: 40px; overflow: visible; }
@media (max-width: 374px) { .brand .fox { width: 36px; height: 36px; } }
@media (min-width: 960px) { .brand .fox { width: 38px; height: 38px; } }
.fox-ring, .fox-ears { stroke: var(--accent); } /* the section's blue (user 26.11.2026); teal on the rest of the site */ .fox-glyph { fill: var(--text); }
.brand .t { display: none; } .brand .t i { font-style: normal; color: var(--accent); }
.brand .t small { font-size: 15px; font-weight: 600; color: var(--dim); margin-left: 8px; letter-spacing: 0; }
.bar .modes { flex: 1 1 auto; max-width: 280px; margin-left: auto; }
/* the way back to the currencies: the logo, and a button — round, at the right end of the row on a phone (as the site's
   back), a pill by the logo on a computer (as «Конвертер валют» in the units) */
a.brand { color: inherit; text-decoration: none; }
/* a phone: the site's own back (site/css/app.css .nav-fab): see-through with a ring — here in the section's blue (user 26.11.2026) */
.to-fx { order: 9; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text); text-decoration: none;
  background: color-mix(in srgb, var(--card) 62%, transparent); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.to-fx .ic { width: 22px; height: 22px; stroke-width: 2.1; }
.to-fx span { display: none; }
.to-fx:active { transform: scale(.94); }
.icon-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: var(--card); border-radius: 13px; padding: 3px; }
.seg button { padding: 7px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--dim); text-align: center; border: 1px solid transparent; }
.seg button.on { background: var(--card-active); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
@media (hover: hover) { .seg button:not(.on):hover { color: var(--text); } }

/* favourites */
.favs-wrap { max-width: 1400px; margin: 0 auto; padding: 2px var(--pad) 6px; display: flex; align-items: center; gap: 8px; height: 46px; }
.fav-add { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--dim); }
.fav-add.on { color: var(--adj); }
.fav-add.on .ic { fill: currentColor; }
.favs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; height: 100%; }
.favs::-webkit-scrollbar { display: none; }
.fav { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--dim); white-space: nowrap; border: 1px solid transparent; }
.fav.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card-active); }
@media (hover: hover) { .fav:not(.on):hover { color: var(--text); } }

/* ----- layout ----- */
.layout { max-width: 1400px; margin: 0 auto; padding: 4px var(--pad) calc(var(--sab) + 40px); }
.col-right { display: none; }
.pc-only { display: none; }

/* direction cards */
.dir { display: flex; flex-direction: column; gap: 8px; }
.dcard { background: var(--card); border-radius: 20px; padding: 10px 14px 12px; border: 1.5px solid transparent; }
/* no lasting mark on the card the amount was typed in (user 2026-11-27: «не нужен на ней акцент»); only the one being typed (.typing) */
.dcard .lbl { display: flex; align-items: center; justify-content: space-between; height: 22px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.dcard .lbl .lm, .pick .tt small .lm { text-transform: none; letter-spacing: 0; } /* «ОТДАЮ рубли»: only the word in capitals, the colour, size and weight the label's (owner 2026-12-01: «цвет текста не меняй») */
.dcard .lbl button { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--accent); font-weight: 600; padding: 2px 0; }
.dcard .rowx { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pick { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; padding: 2px 0; border-radius: 12px; }
.pick .tt { min-width: 0; }
.pick .tt b { display: flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 600; }
.pick .tt b span { }
.pick .tt b .ic { width: 15px; height: 15px; color: var(--dim); stroke-width: 2.4; }
.pick .tt small { display: block; font-size: 12.5px; color: var(--dim); }
@media (hover: hover) { .pick:hover .tt b { color: var(--accent); } }
.amt { flex: none; width: 128px; margin-left: auto; text-align: right; }
.amt input { width: 100%; background: none; border: 0; outline: none; text-align: right; font-size: 22px; font-weight: 600; padding: 1px 0; border-bottom: 1.5px solid transparent; font-variant-numeric: tabular-nums; } /* no line under the amounts (user 2026-11-28); the width stays, nothing moves */
.amt input.derived { color: var(--dim); border-bottom-color: transparent; }
.amt input:disabled { color: var(--muted); border-bottom-color: transparent; }
.amt.lock { width: 44px; }
.amt small { display: block; min-height: 16px; line-height: 16px; margin-top: 2px; font-size: 15px; color: var(--dim); } /* the unit under both amounts: big, one size, the colour dimmed again (owner 2026-12-01: «цвет оставь погашенным»); line-height = min-height, the card keeps its height */

/* badges (currencies) and avatars (exchangers) */
.bdg { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: -.02em; color: #fff; background: var(--card-2); box-shadow: 0 0 0 1px rgba(127, 127, 127, .18); overflow: hidden; }
.bdg.s4 { font-size: 10px; }
.bdg.sym { font-size: 18px; color: var(--accent); background: var(--accent-soft); }
.bdg.sym.s4 { font-size: 11px; }
.bdg.any { background: var(--accent-soft); color: var(--accent); }
.bdg.any .ic { width: 20px; height: 20px; }
.bdg.sm { width: 28px; height: 28px; font-size: 10px; }
.bdg.sm.sym { font-size: 14px; }
.av { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: hsl(var(--h) var(--av-s) var(--av-l)); color: hsl(var(--h) 60% var(--av-t)); }

/* tools row, chips */
.tools { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; margin: 14px 0 8px; }
.tbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.tbtn .ic { width: 17px; height: 17px; color: var(--dim); }
.tbtn .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
.tbtn.sq { width: 34px; padding: 0; justify-content: center; }
.tbtn.sq .ic { color: var(--accent); }
.tbtn:disabled { opacity: .35; }
.tools .sp { flex: 1; }
.menu { position: absolute; top: 40px; z-index: 15; min-width: 180px; padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu button { display: block; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; white-space: nowrap; }
.menu button.on { color: var(--accent); font-weight: 600; }
@media (hover: hover) { .menu button:hover { background: var(--card); } }
.chips { display: flex; gap: 6px; min-height: 30px; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 0 5px 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.chip .ic { width: 15px; height: 15px; color: var(--dim); }
.chips .none { font-size: 13px; color: var(--muted); }
.chip.preset { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); padding-right: 10px; }

/* variant toggles (the mockup's own: a design choice to make) */
.var { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 2px; border: 1px dashed color-mix(in srgb, var(--adj) 55%, transparent); border-radius: 9px; font-size: 11.5px; color: var(--muted); }
.var span { padding: 0 4px 0 5px; white-space: nowrap; }
.var button { height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.var em { font-style: normal; display: none; }
@media (min-width: 1280px) { .var em { display: inline; } }
.var button.on { background: color-mix(in srgb, var(--adj) 22%, transparent); color: var(--text); }

/* note: the finding in plain words */
.note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--adj) 9%, var(--card)); border-left: 3px solid var(--adj); font-size: 13.5px; line-height: 1.4; }
.note .ic { color: var(--adj); margin-top: 1px; }
.note b { font-weight: 650; }
.note p + p { margin-top: 6px; }

/* routes */
.blk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin: 4px 0 6px; }
.blk-h h3 { font-size: 16px; font-weight: 650; }
.blk-h h3 small { font-size: 12.5px; font-weight: 500; color: var(--dim); margin-left: 6px; }
.routes { margin-bottom: 14px; }
.rcards { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 8px 0 0; padding: 0; }
.rcards::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 min(320px, calc(100% - 34px)); scroll-snap-align: start; background: var(--card); border-radius: 18px; padding: 11px 13px 12px; display: flex; flex-direction: column; }
.rcard.best { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent); }
.rc-h { display: flex; align-items: center; justify-content: space-between; height: 24px; font-size: 13px; color: var(--dim); font-weight: 600; }
.rc-h .pg { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.rc-h .pg button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--dim); }
.rc-h .pg button:disabled { opacity: .3; }
.rc-h .pg .ic { width: 15px; height: 15px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 2px; min-height: 52px; align-content: center; margin: 2px 0 4px; }
.chain .cc { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--card-2); }
.chain .ar { width: 13px; height: 13px; color: var(--muted); stroke-width: 2.4; }
.legs { display: flex; flex-direction: column; gap: 2px; min-height: 72px; }
.leg { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 13px; }
.leg .i { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--card-2); font-size: 10.5px; font-weight: 700; color: var(--dim); display: grid; place-items: center; }
.leg .nm { }
.leg .mk { width: 14px; height: 14px; }
.strict-l { min-height: 18px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.trio div { background: var(--card-2); border-radius: 10px; padding: 6px 8px 7px; min-width: 0; }
.trio small { display: block; font-size: 10.5px; line-height: 1.2; color: var(--muted); min-height: 26px; }
.trio b { display: block; font-size: 14.5px; font-weight: 650; }
.trio .main { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.trio .no b { font-size: 12px; line-height: 1.15; color: var(--down); font-weight: 600; white-space: normal; }
.rres { margin-top: 8px; font-size: 13px; color: var(--dim); min-height: 20px; }
.rres b { color: var(--text); font-size: 15px; }
.rtab { margin-top: 8px; background: var(--card); border-radius: 18px; padding: 4px 0; }
.rtr { display: grid; grid-template-columns: minmax(0, 1fr) 50px 54px 62px; gap: 6px; align-items: center; padding: 7px 12px; font-size: 13px; }
.rtr + .rtr { border-top: 1px solid var(--line); }
.rtr.hd .v { white-space: normal; }
.rtr.hd { font-size: 10.5px; color: var(--muted); line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.rtr .p { min-width: 0; }
.rtr .p b { display: block; font-weight: 600; line-height: 1.25; }
.rtr .p small { display: block; color: var(--muted); font-size: 11.5px; }
.rtr .v { text-align: right; font-weight: 600; white-space: nowrap; }
.rtr .v.d { color: var(--dim); font-weight: 500; }
.rtr .v.no { color: var(--down); font-size: 11.5px; font-weight: 500; white-space: normal; line-height: 1.15; }
.rtr.best { background: var(--accent-soft); }
.rtr.r2 { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; }
.rtr.r2 .v { white-space: normal; max-width: 96px; }
.r-stub { padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line); font-size: 13px; color: var(--dim); margin-bottom: 14px; }

/* list */
.lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.lh b { font-size: 15px; font-weight: 650; }
.lh .cnt { flex: none; font-size: 13px; color: var(--dim); }
.lh .back { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; font-weight: 600; }
.lh .back .ic { width: 16px; height: 16px; }
.lh-sub { min-height: 20px; font-size: 12.5px; color: var(--dim); }
.lh-sub b { color: var(--text); font-weight: 600; }
.lh:empty { display: none; } /* no title over the list (variant C): only «‹ back» when there is one */
.lh-sub button { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.list .brow + .brow, .list .brow + .sec { margin-top: 0; }
.list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 16px; background: var(--card); border: 1.5px solid transparent; min-height: 62px; text-align: left; }
@media (min-width: 960px) { .row.sel { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card-active); } } /* PC only: it marks whose card the right panel shows; a phone kept the frame after the sheet closed (user 2026-11-29) */
.row.out { opacity: .5; }
@media (hover: hover) { .row:not(.sel):hover { border-color: var(--line); } }
.row .mn { min-width: 0; }
.row .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; min-width: 0; font-size: 15px; font-weight: 600; }
.row .nm span { }
.row .nm .vf { width: 15px; height: 15px; color: var(--accent); }
.row .mt { display: flex; align-items: center; gap: 5px; min-height: 18px; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.row .mt .tx { }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.g { background: var(--up); } .dot.y { background: var(--adj); } .dot.r { background: var(--down); }
.mks { display: inline-flex; gap: 3px; flex: none; }
.mk { width: 15px; height: 15px; color: var(--dim); }
.mk.risk { color: var(--adj); }
.row .rt { text-align: right; min-width: 0; }
.row .big { display: block; font-size: 17px; font-weight: 650; white-space: nowrap; }
.row .rs { display: block; min-height: 18px; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.row .x { display: none; grid-column: 2 / -1; min-width: 0; }
.dense-B .row { min-height: 104px; align-items: start; }
.dense-B .row .x { display: block; }
.dense-B .row .av { margin-top: 2px; }
.row .x .l3 { min-height: 18px; margin-top: 5px; font-size: 12.5px; color: var(--dim); }
.row .x .l4 { display: flex; gap: 4px; min-height: 22px; margin-top: 4px; flex-wrap: wrap; }
.tag { flex: none; display: inline-flex; align-items: center; gap: 3px; min-height: 20px; padding: 0 7px 0 5px; border-radius: 7px; background: var(--card-2); font-size: 11.5px; color: var(--dim); }
.tag .mk { width: 13px; height: 13px; }
.tag.risk { color: var(--adj); background: color-mix(in srgb, var(--adj) 12%, transparent); }
.tag.ok { color: var(--up); background: color-mix(in srgb, var(--up) 11%, transparent); }
.row .why { color: var(--down); }
.stub { padding: 18px 16px; border-radius: 18px; border: 1px dashed var(--line); color: var(--dim); font-size: 14px; line-height: 1.45; }
.stub b { color: var(--text); }
.stub .hl { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.stub .hl div small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stub .hl div b { font-size: 17px; }

/* broad lists (coins, cities, banks) */
.brow { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: var(--card); border: 1.5px solid transparent; min-height: 80px; text-align: left; }
.brow .bdg { grid-row: 1 / 3; align-self: center; }
.brow .mn { min-width: 0; }
.brow .mn b { display: block; font-size: 15px; font-weight: 600; }
.brow .mn small { display: block; font-size: 12.5px; color: var(--dim); }
.brow .rt { text-align: right; }
.brow .rt b { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; }
.brow .rt small { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.brow .x { grid-column: 2 / -1; min-height: 18px; margin-top: 3px; font-size: 12.5px; color: var(--dim); }
.brow .x i { font-style: normal; color: var(--muted); }
.brow.nodata .rt b { color: var(--dim); }
.sec { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 4px 4px; }

/* circles */
.circ-top { display: flex; flex-direction: column; gap: 10px; }
.thr { display: flex; align-items: center; gap: 10px; }
.thr > span { flex: none; font-size: 13.5px; color: var(--dim); }
.thr .seg { flex: 1; max-width: 300px; }
.thr .seg button { font-size: 13px; padding: 6px 4px; }
.ccard { width: 100%; text-align: left; background: var(--card); border-radius: 18px; padding: 11px 13px 12px; border: 1.5px solid transparent; display: block; }
.ccard.sel { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ccard .legs { min-height: 0; margin-top: 4px; }
.ccard .leg { height: auto; min-height: 24px; flex-wrap: wrap; row-gap: 3px; white-space: normal; padding: 2px 0; }
.ccard .leg .nm { font-weight: 600; }
.ccard .leg .st { color: var(--muted); flex: none; }
.ccard .leg .tag { height: 18px; }
.circ-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* details */
.det-h { display: flex; align-items: center; gap: 12px; }
.det-h .av { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
.det-h .tt { min-width: 0; }
.det-h b { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 650; }
.det-h b span { }
.det-h small { display: block; font-size: 13px; color: var(--dim); }
.dsec { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); }
.col-right .dsec { background: var(--card-2); }
.dsec h5 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.kv span { color: var(--dim); }
.kv b { font-weight: 600; text-align: right; }
.kv.big b { font-size: 18px; }
.conds { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.cond { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.cond .mk { width: 17px; height: 17px; margin-top: 1px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 650; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.btn .ic { width: 16px; height: 16px; }
.btn.b2 { background: var(--card-2); color: var(--text); }
.det-empty { color: var(--dim); font-size: 14px; padding: 20px 4px; text-align: center; }

/* chart */
.chart { --panel: var(--bg); }
.ch-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ch-h .tt { min-width: 0; }
.ch-h .tt b { display: block; font-size: 15px; font-weight: 650; }
.ch-h .tt small { display: block; font-size: 12.5px; color: var(--dim); }
.ch-now { flex: none; text-align: right; }
.ch-now b { font-size: 22px; font-weight: 650; white-space: nowrap; }
.ch-now small { display: block; font-size: 12.5px; }
.ch-read { min-height: 18px; margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.ch-read i { font-style: normal; color: var(--text); font-weight: 600; }
.ch-plot { position: relative; height: 190px; margin-top: 4px; touch-action: pan-y; cursor: crosshair; }
.ch-plot > svg { width: 100%; height: 100%; overflow: visible; }
.ch-plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-plot .area { fill: url(#exGrad); }
.ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ln.sell { stroke: var(--accent); } .ln.buy { stroke: var(--adj); }
.ln.typ { stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .9; }
.ln.cb { stroke: var(--dim); stroke-width: 1.3; stroke-dasharray: 2 4; }
.ch-plot .cur { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ylab { position: absolute; right: 0; font-size: 11px; color: var(--muted); background: var(--panel); padding: 0 0 0 4px; transform: translateY(-50%); pointer-events: none; }
.xlab { position: absolute; bottom: -18px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.cb-lab { position: absolute; left: 4px; font-size: 10.5px; color: var(--dim); background: var(--panel); padding: 0 4px; border-radius: 5px; transform: translateY(-50%); pointer-events: none; }
.ex-tag { position: absolute; left: 0; top: -2px; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--adj) 16%, transparent); color: var(--adj); pointer-events: none; }
.pdot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.ch-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; margin-top: 26px; min-height: 30px; }
.lg { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--card); font-size: 12.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.col-right .lg, .col-right .ch-ranges { background: var(--card-2); }
.lg i { display: inline-block; width: 14px; border-top: 2px solid; }
.lg.off { opacity: .4; }
.lg:disabled { opacity: .3; }
.ch-hint { width: 100%; font-size: 11.5px; color: var(--muted); }
.ch-ranges { margin-top: 10px; }
.ch-ranges button { font-size: 13.5px; padding: 7px 0; }
.ch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ch-stats div { background: var(--card); border-radius: 12px; padding: 7px 10px; min-width: 0; }
.col-right .ch-stats div { background: var(--card-2); }
.ch-stats small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ch-stats span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ch-msg { height: 190px; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 14px; padding: 0 20px; }

/* filter panel */
.fp { display: flex; flex-direction: column; gap: 14px; }
.fp h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 6px; }
.fp .presets { display: flex; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { height: 32px; padding: 0 11px; border-radius: 10px; background: var(--card); font-size: 13.5px; color: var(--dim); font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.opt.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card-active); }
.opt.big { height: 36px; padding: 0 14px; font-size: 14px; }
.tgs { display: flex; flex-direction: column; align-items: flex-start; }
.tg { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.sw { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: transform .15s, background .15s; }
.tg.on .sw { background: var(--acc-on); box-shadow: none; }
.tg.on .sw::after { transform: translateX(14px); background: var(--accent-ink); }
.tg small { font-size: 12.5px; color: var(--muted); }
.pane { background: var(--card); border-radius: var(--r-card); padding: 16px; }
.pane .opt { background: var(--card-2); }
.pane .sw { background: var(--card); }
.pane .tg.on .sw { background: var(--acc-on); }
.pane-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pane-h b { font-size: 16px; }
.pane-h small { color: var(--dim); font-size: 13px; }

/* the «?»: small, quiet, its own place (nothing moves); one modal with plain text */
.q { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; text-transform: none; letter-spacing: 0; text-align: center; }
@media (hover: hover) { .q:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); } }
.hm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .15s; }
.hm.on { opacity: 1; pointer-events: auto; }
.hm-box { width: 100%; max-width: 360px; padding: 16px 18px 18px; border-radius: 20px; background: var(--card-2); box-shadow: var(--shadow); }
.hm-box b { display: block; font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.hm-box p { font-size: 14.5px; line-height: 1.45; color: var(--text); }
.hm-box p + p, .hm-box p + ul, .hm-box ul + p { margin-top: 8px; }
.hm-box p strong { font-weight: 650; }
.hm-box ul { margin: 6px 0 0 18px; font-size: 14px; line-height: 1.45; }
/* our own marks (FX check): thin outline, small, restrained */
.om { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; border: 1px solid; background: none; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer; vertical-align: 1px; }
.om .ic { width: 11px; height: 11px; stroke-width: 3; }
.om.ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.om.warn { color: var(--adj); border-color: color-mix(in srgb, var(--adj) 45%, transparent); }
.om.bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.oms { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nm .om { margin-left: 2px; }
.fxseg button { font-size: 13px; padding: 7px 4px; }
.why-l { margin: 4px 0 0 18px; font-size: 13px; color: var(--dim); line-height: 1.45; }
.lh .q, .blk-h .q { margin-left: 4px; }
/* routes: a step line with the money */
.steps-l { display: flex; flex-direction: column; gap: 2px; min-height: 72px; }
.sl { display: flex; align-items: center; gap: 4px; min-height: 22px; font-size: 12.5px; min-width: 0; }
.sl .i { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--card-2); font-size: 10.5px; font-weight: 700; color: var(--dim); display: grid; place-items: center; margin-right: 2px; }
.sl b { flex: none; font-weight: 650; }
.sl .nm { flex: 0 1 auto; min-width: 0; color: var(--dim); }
.sl .ar { width: 12px; height: 12px; color: var(--muted); stroke-width: 2.4; }
.sl .mk { width: 13px; height: 13px; }
.rtr .p small.amts { white-space: normal; color: var(--dim); }
/* circles: step by step with the money */
.explain { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.explain svg { flex: none; width: 118px; height: 96px; align-self: center; }
.explain p { font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.explain p + p { margin-top: 8px; }
.explain b { color: var(--text); font-weight: 600; }
.explain .catch { color: var(--text); }
.c-svg .arc { fill: none; stroke: var(--accent); stroke-width: 2; }
.c-svg .ah { fill: var(--accent); }
.c-svg rect { fill: var(--card-2); stroke: var(--line); }
.c-svg text { fill: var(--text); font: 600 10.5px var(--font); text-anchor: middle; dominant-baseline: central; }
.exp-card { background: var(--card); border-radius: 18px; padding: 12px 14px; }
.ccard { cursor: pointer; }
.cst { display: flex; flex-direction: column; gap: 8px; }
.st { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; }
.st .i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.st-t { font-size: 14px; line-height: 1.4; }
.st-t b { font-weight: 650; white-space: nowrap; }
.st-t .ex { font-weight: 600; color: var(--accent); }
.st-t a.ex { text-decoration: none; white-space: nowrap; }
.st-t a.ex .ic { width: 13px; height: 13px; margin-left: 2px; vertical-align: -1px; }
.st-t .to { color: var(--dim); }
.st-r { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.st-r:empty { display: none; }
.res { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.res .r1 { font-size: 14px; color: var(--dim); }
.res .r1 b { font-size: 21px; font-weight: 700; color: var(--text); white-space: nowrap; }
.res .r2 { font-size: 16px; font-weight: 650; margin-top: 2px; }
.cline { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13.5px; line-height: 1.4; }
.cline .ic { width: 16px; height: 16px; margin-top: 1px; }
.cline .q { margin-top: 1px; }
.cline.bad { color: var(--down); }
.cline.need { color: var(--dim); }
.pane .explain { flex-direction: column; align-items: flex-start; }
.pane .explain svg { width: 150px; height: 112px; align-self: center; }
.cline.need b { color: var(--text); font-weight: 600; }
.paper-l { margin-top: 6px; font-size: 12px; color: var(--muted); }
.dstep { font-size: 13.5px; line-height: 1.4; margin: 4px 0 8px; }

/* round 3: long text wraps, nothing is cut or sticks out */
.chips { flex-wrap: wrap; padding: 1px 0; }
.chip { text-align: left; padding-top: 3px; padding-bottom: 3px; }
.seg button { line-height: 1.2; }
/* one line: the amount never drops under the name (user 2026-11-27); the name fits by size (fitDir) */
.dcard .rowx { flex-wrap: nowrap; }
.pick { flex: 1 1 auto; min-width: 0; }
.pick .tt b > span, .pick .tt small { white-space: nowrap; overflow: hidden; }
.pick .tt.fs1 b { font-size: 15px; } .pick .tt.fs1 small { font-size: 12px; }
.pick .tt.fs2 b { font-size: 14px; } .pick .tt.fs2 small { font-size: 11.5px; }
.pick .tt.fs3 b { font-size: 13px; } .pick .tt.fs3 small { font-size: 11px; }
.pick .tt.fs4 b { font-size: 12px; } .pick .tt.fs4 small { font-size: 10.5px; }
.pick .tt.wrap b > span, .pick .tt.wrap small { white-space: normal; }
.pick .tt.fs1 b .ic, .pick .tt.fs2 b .ic, .pick .tt.fs3 b .ic, .pick .tt.fs4 b .ic { margin-top: 3px; }
.pick .tt b { display: flex; align-items: flex-start; }
.pick .tt b span { flex: 0 1 auto; min-width: 0; }
.pick .tt b .ic { flex: none; margin: 5px 0 0 3px; }
.res .r1.down { color: var(--down); }
.circ-top .tools { margin: 0; }
.circ-top .chips.ph-only { display: flex; }
.blk-h { flex-wrap: wrap; row-gap: 4px; }
.blk-h h3 small { display: inline-block; }
.tag { padding-top: 2px; padding-bottom: 2px; flex: 0 1 auto; }
.row .mt { flex-wrap: wrap; row-gap: 2px; }
.row .x .l4 { flex-wrap: wrap; }
.ch-read { min-height: 36px; }
.sl { flex-wrap: wrap; row-gap: 2px; padding: 2px 0; }
.rtr .p small { overflow-wrap: anywhere; }
.st-t { overflow-wrap: break-word; }
.trio small { overflow-wrap: break-word; }
.lbl-n { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--dim); font-weight: 500; }
/* 2. every «?» in one column at the card's right edge */
.fh { display: grid; grid-template-columns: minmax(0, 1fr) 18px; column-gap: 10px; align-items: center; margin-bottom: 6px; }
.fp .fh h4 { margin: 0; }
.tgs { align-items: stretch; }
.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) 18px; column-gap: 8px; align-items: center; }
.kv b { justify-self: end; }
.h5q { display: grid; grid-template-columns: minmax(0, 1fr) 18px; column-gap: 8px; align-items: center; }
.cline { display: grid; grid-template-columns: 16px minmax(0, 1fr) 18px; column-gap: 6px; align-items: start; }
.st .i.bad { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.c-tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.c-tag.dim { background: var(--card-2); color: var(--dim); }
.r-more { margin-top: 8px; text-align: right; }
.lnk { color: var(--accent); font-size: 13.5px; font-weight: 600; padding: 2px 0; }
[data-a="help"] { cursor: pointer; }
/* condition tags and icons: one quiet style, no colour for «risky» — the words and the modal carry the meaning */
.tag, .tag.risk, .tag.ok { background: none; border: 1px solid var(--line); color: var(--dim); font-size: 11px; font-weight: 500; }
.mk, .mk.risk, .tag .mk, .tag.risk .mk { color: var(--muted); }
.st-r .tag { font-size: 11px; }
.c-note { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.exp-card { margin-top: 10px; }

/* ----- sheets ----- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .22s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0 auto; max-width: 560px; max-height: calc(100dvh - var(--sat) - 10px); background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow); padding: 8px var(--pad) calc(var(--sab) + 12px); transform: translateY(105%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; display: flex; flex-direction: column; --panel: var(--bg); }
.sheet.on { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; flex: none; }
.sh-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; }
.sh-h > b { font-size: 18px; font-weight: 650; }
.sh-h .icon-btn { width: 42px; height: 42px; }
.sh-h .icon-btn .ic { width: 22px; height: 22px; }
.sh-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) 8px; /* the first row clear of the title and «×» (user 2026-11-28) */ -webkit-overflow-scrolling: touch; }
.sh-f { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.sh-f span { font-size: 13.5px; color: var(--dim); }
.sh-f:empty { display: none; }
.sh-f .btns { margin-top: 0; }
.picker { height: calc(100dvh - var(--sat) - 10px); }
.search { flex: none; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 0 12px; margin-top: 6px; }
.search .ic { color: var(--dim); }
.search input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: none; font-size: 16px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pk-tabs { flex: none; margin-top: 8px; grid-auto-columns: minmax(0, 1fr); }
.pk-tabs button { font-size: 12.5px; padding: 7px 2px; }
.pk-tabs .full { display: none; }
.pk-list { margin-top: 4px; }
.pk-city { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0 2px; border-radius: 14px; background: var(--card); text-align: left; }
.pk-city .ic { color: var(--accent); }
.pk-city span { flex: 1; min-width: 0; font-size: 14.5px; }
.pk-city span i { font-style: normal; color: var(--dim); }
.pk-city .chev { color: var(--dim); }
.pk-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 6px; border-radius: 14px; }
.pk-item:active { background: var(--card); }
@media (hover: hover) and (min-width: 960px) { .pk-item:hover { background: var(--card); } }
.pk-item .t { flex: 1; min-width: 0; }
.pk-item .t b { display: block; font-size: 17px; font-weight: 600; }
.pk-item .t small { display: block; font-size: 12.5px; color: var(--dim); }
.pk-item mark { background: none; color: var(--accent); }
.pk-item .chk { width: 22px; height: 22px; color: var(--accent); stroke-width: 2.6; }
.pk-item .cnt { flex: none; font-size: 12.5px; color: var(--muted); }
.pk-item.anyi .t b { color: var(--accent); }
.pk-reg { grid-auto-flow: row; margin: 8px 0 4px; }
.pk-reg button { font-size: 13px; padding: 7px 4px; }
.pk-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 4px 6px; }
.pk-empty { text-align: center; color: var(--dim); padding: 40px 10px; }
.legend-l { display: flex; flex-direction: column; gap: 10px; }
.legend-l .cond { font-size: 14.5px; }
.legend-l p { font-size: 13.5px; color: var(--dim); line-height: 1.45; }

/* ----- desktop: three zones ----- */
@media (min-width: 960px) {
  /* the page background is the site's own (site/css/app.css): teal corner glows + faint masked 80 px grid (user 26.11.2026:
     «фон не так как у нас»); the blue stays on the section's own controls */
  body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
  body::before {
    background-image:
      radial-gradient(circle at 20% 0%, rgba(78, 205, 196, .05) 0%, transparent 40%),
      radial-gradient(circle at 80% 100%, rgba(78, 205, 196, .03) 0%, transparent 40%);
  }
  body::after {
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px; opacity: .25;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  }
  .brand .t { display: inline; }
  .bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
  .to-fx { order: 0; width: auto; height: auto; display: flex; align-items: center; gap: 6px; margin-left: 18px; padding: 7px 14px 7px 9px; border-radius: 999px; border: 1px solid transparent; background: var(--card); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .to-fx .ic { width: 18px; height: 18px; stroke-width: 2; }
  .to-fx span { display: inline; }
  .to-fx .ic { color: var(--accent); }
  .to-fx:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  .bar .modes { margin-left: 28px; }
  .bar .theme { margin-left: auto; }
  .layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 330px; gap: 18px; align-items: start; padding-top: 8px; }
  .col-left { display: flex; flex-direction: column; gap: 14px; }
  .col-right { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; scrollbar-width: thin; }
  .col-right .card { background: var(--card); border-radius: var(--r-card); padding: 16px; --panel: var(--card); }
  .pc-only { display: block; }
  .ph-only { display: none !important; }
  .tools { margin-top: 0; }
  .amt { width: 84px; }
  .amt input { font-size: 19px; }
  .rcards { margin: 8px 0 0; padding: 0; scroll-padding: 0; }
  .rcards { scrollbar-width: thin; padding-bottom: 6px; }
  .rcard { flex-basis: min(300px, calc(100% - 30px)); }
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 480px; max-width: calc(100vw - 40px); max-height: min(700px, calc(100vh - 60px)); border-radius: var(--r-sheet); padding: 16px 18px 18px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .2s var(--ease), opacity .2s, visibility 0s .2s; background: var(--card); --panel: var(--card); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; transition: transform .2s var(--ease), opacity .2s, visibility 0s; }
  .sheet .grab { display: none; }
  .sheet .search, .sheet .seg, .sheet .pk-city, .sheet .dsec { background: var(--card-2); }
  .picker { height: min(680px, calc(100vh - 60px)); width: 540px; }
  .pk-tabs .full { display: inline; } .pk-tabs .short { display: none; }
  @media (hover: hover) { .sheet .pk-item:hover { background: var(--card-2); } }
}
@media (min-width: 1280px) {
  .rtr { grid-template-columns: minmax(0, 1fr) 72px 72px 84px; }
  .rcard { flex-basis: max(270px, calc(50% - 4px)); }
  .layout { grid-template-columns: 340px minmax(0, 1fr) 420px; gap: 22px; }
  .amt { width: 128px; }
  .amt input { font-size: 22px; }
}
/* marks and tags never stick together (user 2026-11-25: «не лепи близко плашки»): 6 px between neighbours everywhere.
   Last in the sheet, so no earlier 3-4 px gap wins */
.om + .om, .om + .tag, .tag + .om, .tag + .tag { margin-left: 6px; }
.oms, .st-r, .row .nm, .mks, .tags, .mt { gap: 6px; }
.oms > * + *, .st-r > * + *, .row .nm > * + *, .tags > * + * { margin-left: 0; }
/* the switched-on filters stand in even columns on one common background (user 2026-11-25: «фильтры не ровные… общий фон») */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 6px; align-items: stretch; padding: 8px; border-radius: 14px; background: var(--card); min-height: 46px; }
.chips .none { grid-column: 1 / -1; align-self: center; padding: 0 4px; }
.chips:empty { display: none !important; } /* no filters switched on — no strip (user 2026-11-26) */
.chip { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 4px 6px 4px 10px; border-radius: 9px; border: 1px solid transparent; background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 1.25; text-align: left; }
.chip .ic { flex: none; width: 15px; height: 15px; color: var(--dim); }
.chip.preset { border-color: transparent; color: var(--text); padding-right: 6px; }
.var { display: none; }
/* «Вывод» (2026-11-26): the answer first — the advice, three picks, short facts; computed by script from the list */
#verdict, .circ-top { container-type: inline-size; }
.vd { background: var(--card); border-radius: 18px; padding: 10px 14px 12px; margin: 14px 0 0; }
.circ-top .vd { margin: 0; }
.vd-h { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; column-gap: 10px; align-items: center; min-height: 26px; }
.vd-h.noq { grid-template-columns: minmax(0, 1fr) auto; }
.vd-h h3 { min-width: 0; font-size: 16px; font-weight: 650; }
.vd-h h3 small { font-size: 12.5px; font-weight: 500; color: var(--dim); margin-left: 6px; }
.vd-at { font-size: 12px; color: var(--muted); text-align: right; }
.vd-adv { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2px; margin-top: 8px; padding: 9px 12px 10px; border-radius: 14px; background: var(--card-2); }
.vd-adv .vd-t { font-size: 16px; font-weight: 650; line-height: 1.35; }
.vd-adv p { font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.vd-adv p b { color: var(--text); font-weight: 600; }
.vd-adv .btn { justify-self: start; margin-top: 8px; }
.vd-picks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vp { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l d" "n r"; column-gap: 10px; row-gap: 1px; align-items: baseline; min-height: 50px; padding: 6px 12px; border-radius: 12px; background: var(--card-2); border: 1.5px solid transparent; text-align: left; }
.vp.adv { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card-active); }
@media (hover: hover) { button.vp:not(.adv):hover { border-color: var(--line); } }
.vp .l { grid-area: l; min-width: 0; font-size: 12.5px; color: var(--dim); }
.vp .n { grid-area: n; min-width: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.vp .r { grid-area: r; font-size: 15px; font-weight: 650; text-align: right; white-space: nowrap; }
.vp .d { grid-area: d; font-size: 12.5px; color: var(--dim); text-align: right; white-space: nowrap; }
.vp .e { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--muted); }
.vd-facts { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.vd-facts li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.4; }
.vd-facts li::before { content: ''; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.vd-facts .lnk { font-size: 13.5px; margin-left: 6px; }
.vd-sib { color: var(--accent); font-weight: 600; text-align: left; }
@container (min-width: 520px) {
  .vd-adv { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .vd-adv > * { grid-column: 1; }
  .vd-adv .btn { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0; }
  .vp { grid-template-columns: 112px minmax(0, 1fr) auto 92px; grid-template-areas: "l n r d"; min-height: 38px; }
  .vp .e { grid-column: 2 / -1; grid-row: 1; }
}
@media (min-width: 960px) { .vd { margin: 0 0 14px; } }
.more-btn { width: 100%; justify-content: center; }
.lh-sub a { color: var(--accent); font-weight: 600; }
.thr .seg button { white-space: nowrap; }
/* phone: small «?» and text buttons get a 32 px touch area; the look stays. The area never goes past the right edge
   (no scroll overflow): «?» grows to the left, text buttons (wider than 32 px) only up and down */
@media (max-width: 959px) {
  .q, .dcard .lbl button, .lh-sub button, .lh-sub a, .lnk { position: relative; }
  .q::after { content: ''; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); }
  .lh-sub button::after, .lh-sub a::after, .lnk::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 32px; transform: translateY(-50%); }
  .dcard .lbl button::after { content: ''; position: absolute; left: 0; right: 0; top: -9px; bottom: -2px; } /* stops above the amount field */
  .lh-sub { display: flow-root; }
  .lh-sub .bc-sep { display: none; }
  .lh-sub .bc { display: block; width: max-content; max-width: 100%; margin: 15px 0 4px; } /* its own line: the two touch areas do not meet */
  .vd-facts { gap: 7px; }
}


/* ----- the amount keypad: the main page's own (css/app.css «Sheets» + «keypad»), the same sizes, keys and compact layout.
   Its own class (.kp-sheet): this page's .sheet is another kind of sheet. The page under it stays usable (not modal). ----- */
:root { --key: #1d2328; }
[data-theme="light"] { --key: #ffffff; }
.kp-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  margin: 0 auto; max-width: 560px;
  background: var(--bg);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow);
  padding: 8px var(--pad) calc(var(--sab) + 12px);
  transform: translateY(105%);
  transition: transform .28s var(--ease);
  display: flex; flex-direction: column;
  overscroll-behavior: contain; touch-action: none;
}
.kp-sheet.on { transform: none; }
.kp-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; flex: none; }
.kp-sheet .icon-btn { width: 42px; height: 42px; transition: background .15s, transform .1s; }
.kp-sheet .icon-btn:active { transform: scale(.92); }
.kp-sheet .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.kp-cur { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.kp-cur .bdg { width: 32px; height: 32px; }
.kp-cur b { font-size: 19px; }
.kp-cur div span { font-size: 13px; color: var(--dim); }
.kp-cur div span { white-space: nowrap; display: inline-block; max-width: 100%; }
.kp-display { padding: 6px 4px 10px; text-align: right; min-height: 82px; }
.kp-expr { font-size: 17px; color: var(--dim); min-height: 22px; word-break: break-all; }
.kp-expr .op { color: var(--accent); padding: 0 2px; }
.kp-value { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; word-break: break-all; font-variant-numeric: tabular-nums; }
.kp-value.err { color: var(--down); }
.kp-value.l1 { font-size: 32px; } .kp-value.l2 { font-size: 26px; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keys button {
  height: clamp(50px, 7.4vh, 66px); border-radius: 16px;
  background: var(--key); font-size: 26px; font-weight: 500;
  display: grid; place-items: center;
  transition: transform .08s, background .12s; touch-action: manipulation;
}
[data-theme="light"] .keys button { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.keys button:active, .keys button.press { transform: scale(.94); background: var(--key-fn); }
.keys .k-fn { background: var(--key-fn); font-size: 22px; }
.keys .k-op { background: var(--accent-soft); color: var(--accent); font-size: 30px; }
.keys .k-op.on { background: var(--accent); color: var(--accent-ink); }
.keys .k-ok { background: var(--accent); color: var(--accent-ink); }
.keys svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kp-size .ic-grow, .kp-compact .kp-size .ic-shrink { display: none; }
.kp-compact .kp-size .ic-grow { display: block; }
.kp-morph > :not(.grab) { animation: kp-in .28s ease-out; }
@keyframes kp-in { from { opacity: 0; } }
@media (max-width: 959px) {
  .kp-sheet::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 70vh; background: inherit; }
}
/* compact keypad: about half the height; the page above stays visible and scrolls */
.kp-compact { padding-top: 6px; }
.kp-compact .grab { margin-bottom: 6px; }
.kp-compact .kp-head { margin-bottom: 0; }
.kp-compact .kp-head .icon-btn { width: 36px; height: 36px; }
.kp-compact .kp-cur .bdg { width: 26px; height: 26px; }
.kp-compact .kp-cur b { font-size: 17px; }
.kp-compact .kp-cur br, .kp-compact .kp-cur div span { display: none; }
.kp-compact .kp-display { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; min-height: 0; padding: 2px 4px 8px; }
.kp-compact .kp-expr { min-height: 0; font-size: 14px; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; }
.kp-compact .kp-value { font-size: 26px; flex: none; word-break: normal; }
.kp-compact .kp-value.l1 { font-size: 22px; } .kp-compact .kp-value.l2 { font-size: 19px; }
.kp-compact .keys { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kp-compact .keys button { height: clamp(42px, 5.6vh, 50px); border-radius: 12px; font-size: 22px; }
.kp-compact .keys .k-fn { font-size: 18px; }
.kp-compact .keys .k-op { font-size: 24px; }
.kp-compact .keys svg { width: 22px; height: 22px; }
.kp-compact .keys [data-k="7"] { order: 1; } .kp-compact .keys [data-k="8"] { order: 2; } .kp-compact .keys [data-k="9"] { order: 3; }
.kp-compact .keys [data-k="/"] { order: 4; } .kp-compact .keys [data-k="back"] { order: 5; }
.kp-compact .keys [data-k="4"] { order: 6; } .kp-compact .keys [data-k="5"] { order: 7; } .kp-compact .keys [data-k="6"] { order: 8; }
.kp-compact .keys [data-k="*"] { order: 9; } .kp-compact .keys [data-k="%"] { order: 10; }
.kp-compact .keys [data-k="1"] { order: 11; } .kp-compact .keys [data-k="2"] { order: 12; } .kp-compact .keys [data-k="3"] { order: 13; }
.kp-compact .keys [data-k="-"] { order: 14; } .kp-compact .keys [data-k="C"] { order: 15; }
.kp-compact .keys [data-k="00"] { order: 16; } .kp-compact .keys [data-k="0"] { order: 17; } .kp-compact .keys [data-k="."] { order: 18; }
.kp-compact .keys [data-k="+"] { order: 19; } .kp-compact .keys [data-k="ok"] { order: 20; }
/* computer: docked bottom right, as on the main page (there under the chart panel; here over the right column) */
@media (min-width: 960px) {
  .kp-sheet {
    top: auto; left: auto; bottom: 24px; right: 24px; width: 420px; margin: 0;
    border-radius: var(--r-sheet); padding: 16px 18px 18px; background: var(--card);
    transform: translateY(16px); opacity: 0; transition: transform .2s var(--ease), opacity .2s;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--line)), var(--shadow);
  }
  .kp-sheet.on { transform: none; opacity: 1; }
  .kp-sheet .grab { display: none; }
  .kp-sheet .keys button { height: 58px; background: var(--card-2); }
  .kp-sheet .keys .k-fn { background: var(--key-fn); }
  .kp-sheet .keys .k-op { background: var(--accent-soft); }
  .kp-sheet .keys .k-ok, .kp-sheet .keys .k-op.on { background: var(--accent); }
}
/* the amount fields open the keypad: no system keyboard, no caret; the field being typed is marked like the main page's card */
.amt input { caret-color: transparent; cursor: pointer; -webkit-user-select: none; user-select: none; }
.dcard.typing { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* ----- as the main page (css/app.css), audit 26.11.2026 ----- */
/* the picker's head: the search field and «Готово» in one row; the list runs to the bottom edge, under the home bar */
.pk-head { flex: none; display: flex; align-items: center; gap: 10px; }
.pk-head .search { flex: 1; margin-top: 0; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { height: 46px; font-size: 17px; }
.txt-btn { flex: none; color: var(--accent); font-size: 16px; padding: 8px 4px; }
.pk-tabs { margin-top: 10px; }
.sheet.picker { padding-bottom: 0; }
.sheet.picker .pk-list { padding-bottom: calc(var(--sab) + 20px); }
/* a dialog sheet is open: the page under it stays put */
html.lock, html.lock body { overflow: hidden; }
/* no text selection or the iOS long-press menu on what is tapped and swiped */
.dcard, .list, .vd, .favs-wrap, .chart, #chartPane, .ch-plot, .circ-list, .tools, .chips, .bar, .pk-list, .keys, .kp-sheet { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* pressed: a quick fill, as the main page's lists */
.row, .vp, .brow, .ccard, .fav, .tbtn, .pick { transition: background-color .12s; }
.row:active, .vp:active, .brow:active, .ccard:active, .fav:active, .tbtn:active, .pick:active { background-color: var(--card-2); }
/* «?» help: the main page's popup (.inf-pop): its card with the accent glow, a ring, it grows in; closes on any tap, swipe or wheel */
.hm { z-index: 90; touch-action: none; cursor: pointer; transition: opacity .2s; }
.hm-box { max-width: 420px; padding: 16px 16px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  background-image: radial-gradient(120% 60% at 0 0, var(--accent-soft), transparent 70%); transform: scale(.96); transition: transform .2s; }
.hm.on .hm-box { transform: none; }
.hm-box b { font-size: 18px; margin-bottom: 8px; }
/* a short note at the bottom (favourites), as the main page's toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 24px); z-index: 95; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; pointer-events: none; }
/* small phones, as the main page */
@media (max-width: 360px) { :root { --pad: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* ===== the exchanger's card with facts as even plates (mockup .dev/mockups/fx-ex-plates.html, user 2026-11-27) =====
   three even columns, two lines in a plate, one height on every card; two columns on the narrowest phones; the deal plate
   across the card in one line */
.list .xc { display: block; width: 100%; padding: 12px; border-radius: 16px; background: var(--card); border: 1.5px solid transparent; text-align: left; cursor: pointer; }
.list .xc + .xc, .list .sec + .xc { margin-top: 8px; }
/* the tools row on the narrowest phones: a little less room inside the buttons, so all four stay on the screen */
@media (max-width: 340px) { .tools { gap: 6px; } .tbtn { padding: 0 9px; } }
@media (min-width: 960px) { .xc.sel { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card-active); } } /* PC only: it marks whose card the right panel shows; a phone kept the frame after the sheet closed (user 2026-11-29) */
.xc-h { display: flex; align-items: center; gap: 10px; }
.xc-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.xc-go .av { flex: none; }
.xc-n { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 15px; font-weight: 600; }
/* the country under the name (user 2026-11-27), the name a little higher than the avatar's middle; the header keeps its height (the amount + rate on the right are taller) */
.xc-t { display: flex; flex-direction: column; min-width: 0; }
.xc-t .xc-n { line-height: 1.25; }
.xc-c { margin-top: 1px; font-size: 12.5px; line-height: 1.2; color: var(--dim); }
.xc-t.nf1 .xc-n { font-size: 14px; } .xc-t.nf2 .xc-n { font-size: 13px; } .xc-t.nf3 .xc-n { font-size: 12px; }
.xc-n span { overflow-wrap: anywhere; }
.xc-n .ic { flex: none; width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover) { .xc-go:hover .xc-n span { color: var(--accent); } }
.xc-go:active { opacity: .7; }
.xc-r { flex: none; text-align: right; }
.xc-r b { display: block; font-size: 17px; font-weight: 650; white-space: nowrap; }
.xc-r small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.pls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(38px, auto); gap: 5px; margin-top: 10px; }
.pls .pl { height: 38px; } /* every plate one size; only the long bottom one grows (its parts move to the next line whole) */
.pls .pl.wide { height: auto; min-height: 38px; padding-top: 5px; padding-bottom: 5px; }
.pl.wide > span:only-child { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 4px); } /* the line breaks at «·»; 4 px spare: the browser measures text for the break 1–2 px narrower than it draws it */
@media (max-width: 359px) { .pls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; padding: 2px 6px; border-radius: 9px; font-size: 12px; line-height: 1.25; text-align: left; background: var(--card-2); color: var(--dim); text-decoration: none; cursor: pointer; }
.pl.red { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.pl.yel { color: var(--adj); background: color-mix(in srgb, var(--adj) 12%, transparent); }
.pl.grn { color: var(--up); background: color-mix(in srgb, var(--up) 11%, transparent); }
.pl.lk { justify-content: space-between; }
.pl span { white-space: pre-line; } /* «224 отзыва» over «3 нейтральных» */
.pl.tight { gap: 2px; padding-left: 4px; padding-right: 4px; font-size: 11px; } .pl.tight .ic { width: 11px; height: 11px; } /* still tight after «нейтрал.»: a little smaller, the icon stays */
/* the preset rows of the filter (mockup variant A, 2026-11-27): the value over «скроет N», every button of a row the same */
.seg2l button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 0; padding: 5px 2px; } /* as high as the text (user 2026-11-28) */
.seg2l b { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.seg2l button.on b { font-weight: 600; }
.seg2l small { min-height: 14px; font-size: 11px; line-height: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (max-width: 340px) { .seg2l b { font-size: 12.5px; } .seg2l small { font-size: 10px; } }
.seg2l.one button { min-height: 0; padding: 7px 2px; } /* no «скроет N» in the row: one line, as high as the text */
.pl .ic { flex: none; width: 13px; height: 13px; opacity: .8; }
.pl:active { opacity: .7; }
.pl.wide { grid-column: 1 / -1; white-space: normal; } .pl .nw { white-space: nowrap; } /* «Сделка … · выплатит до … · всего резервов …» may take two lines */
.list .sec { margin: 18px 0 8px; }

/* ----- phone: the direction stays in sight while the list scrolls (user 2026-11-27): the two cards as one-line plates under
   the header (#mini, fixed, appears when the cards have gone under it), the tools row sticks under them. Glass as the header.
   The tools row keeps its height in the page (10 + 44 + 4 = the old 14 + 36 + 8): nothing moves ----- */
.mini { display: none; }
@media (max-width: 959px) {
  .mini { display: flex; flex-direction: column; gap: 4px; position: fixed; left: 0; right: 0; top: var(--barH, 58px); z-index: 19; padding: 0 var(--pad) 4px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
  .mini.on { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
  #exMain > .tools { position: sticky; top: var(--stickTop, 0px); z-index: 18; height: 44px; margin: 10px calc(-1 * var(--pad)) 4px; padding: 4px var(--pad);
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  #exMain > .tools .menu { top: 42px; }
}
.mrow { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px 2px 6px; border-radius: 14px; background: var(--card); border: 1.5px solid transparent; }
.mrow.typing { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.mp { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.mp .bdg { transform: scale(.71); margin: -5.5px; } /* the card's badge at 27 px: logos and letters as they are */
.mt { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.mt.m1 { font-size: 13.5px; } .mt.m2 { font-size: 12.5px; } .mt.wrap { white-space: normal; line-height: 1.15; }
.mp .ic { width: 14px; height: 14px; color: var(--dim); stroke-width: 2.4; }
.ma { flex: none; display: inline-flex; align-items: baseline; gap: 4px; font-size: 17px; font-weight: 650; white-space: nowrap; padding: 6px 0 6px 8px; }
.ma small { font-size: 12px; font-weight: 500; color: var(--dim); }
.ma.derived { color: var(--dim); }
.ma:disabled { color: var(--muted); }

/* ----- phone: «Отдаю / Получаю» in one card (mockup .dev/mockups/fx-ex-range.html «одна карточка», user 2026-11-27): a row per side
   — the label over the name, the amount over its caption — a line between them with the round «⇅» on it; ~120 px instead of ~210 ----- */
.kd { position: relative; background: var(--card); border-radius: 20px; }
.dcard.k { background: none; border-radius: 18px; padding: 6px 14px 6px 10px; }
.dcard.k .rowx { margin-top: 0; min-height: 46px; }
.dcard.k .pick { gap: 9px; }
.dcard.k .pick .bdg { transform: scale(.84); margin: -3px; }
.dcard.k .pick .tt small { order: -1; font-size: 11.5px; line-height: 1.3; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dcard.k .pick .tt b { font-size: 16px; }
.dcard.k .amt input { font-size: 21px; }
.dcard.k .amt small { min-height: 14px; line-height: 14px; margin-top: 0; font-size: 14px; }
.kmid { position: relative; height: 1px; margin: 0 14px; background: var(--line); }
.ksw { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: var(--card-2); border: 3px solid var(--card); }
.ksw .ic { width: 16px; height: 16px; }
.ksw:active { transform: translate(-50%, -50%) scale(.94); }
.ksw.kc { width: auto; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dcard.k .pick .tt.fs1 b { font-size: 15px; } .dcard.k .pick .tt.fs2 b { font-size: 14px; } .dcard.k .pick .tt.fs3 b { font-size: 13px; } .dcard.k .pick .tt.fs4 b { font-size: 12px; }
.dcard.k .pick .tt[class*="fs"] small { font-size: 11.5px; } /* the label «Отдаю / Получаю» keeps its size */
/* the label «ОТДАЮ рубли» (owner 2026-12-01) steps down on its own when it does not fit (fitDir), wraps only after 10 px; the name's
   wrap leaves it on one line */
.dcard.k .pick .tt.wrap small { white-space: nowrap; }
.dcard.k .pick .tt.lf1 small { font-size: 11px; } .dcard.k .pick .tt.lf2 small { font-size: 10.5px; } .dcard.k .pick .tt.lf3 small { font-size: 10px; }
.dcard.k .pick .tt.lwrap small { white-space: normal; }

/* «Маршруты» (2026-11-28, mockup .dev/mockups/fx-routes.html): over the list the groups a route may go through (checkboxes, the
   count under the name), a small icon for Наличные and Переводы, the stepper of the exchanges; a currency brick of a route card */
.vias { display: flex; gap: 6px; margin: 2px 0 0; }
.vias + .vias { margin-top: 6px; }
.vb { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 5px; align-items: center; padding: 6px 7px 7px; border-radius: 12px; background: var(--card); text-align: left; }
.vb .cb { grid-column: 1; grid-row: 1 / span 2; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.vb.on .cb { background: var(--accent); border-color: var(--accent); }
.vb .cb .ic { width: 10px; height: 10px; color: var(--accent-ink); stroke-width: 3; }
.vb b { grid-column: 2; grid-row: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--dim); line-height: 1.2; }
.vb.on b { color: var(--text); }
.vb small { grid-column: 2; grid-row: 2; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; line-height: 1.2; }
.vic { flex: 0 0 28px; position: relative; display: grid; place-items: center; border-radius: 12px; background: var(--card); color: var(--dim); }
.vic .ic { width: 16px; height: 16px; }
.vic .dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ghost { visibility: hidden; }
@media (max-width: 359px) { .vias { gap: 4px; } .vb { padding: 6px 4px; column-gap: 3px; } .vb .cb { width: 11px; height: 11px; } .vb .cb .ic { width: 9px; height: 9px; } .vb b { font-size: 11.5px; } .vb small { font-size: 10px; } .vic { flex-basis: 24px; } }
.hstep { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; font-size: 13.5px; color: var(--dim); }
.stp { display: inline-flex; align-items: center; gap: 4px; }
.stp button { width: 32px; height: 32px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: var(--text); }
.stp button:disabled { opacity: .35; }
.stp .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.stp b { min-width: 30px; text-align: center; font-size: 16px; font-weight: 650; color: var(--text); }
#lh:has(.vias), #lh:has(.hstep) { display: block; }
/* the groups in «Состав» (user 2026-11-28): two rows, each the full width — three plates, then two */
#sSheetB .cvias { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; }
#sSheetB .cvias .vb { grid-column: span 2; }
#sSheetB .cvias .vb:nth-child(n+4) { grid-column: span 3; }
/* «скроет N» / «добавит N» under the name, as on the names of the groups below (user 2026-11-29) */
.pl.rb b { color: var(--text); font-weight: 600; }
.st-n { margin-top: 5px; font-size: 12.5px; line-height: 1.3; color: var(--dim); }

/* ----- «Маршруты», 28.11.2026 evening (mockup .dev/mockups/fx-routes-needs.html) ----- */
.st-t a.ex .ic { display: inline-block; } /* the icon of the exchanger's link stays on the name's line */
/* the stepper row: «Состав» and one plate «Маршрутов: N  − H +», the same height; a tap on H opens the keypad */
.hstep { justify-content: flex-start; align-items: stretch; gap: var(--g, 8px); margin: var(--g, 8px) 0 0; font-size: 13.5px; }
.tbtn.cmp { flex: none; height: auto; min-height: 40px; padding: 0 10px; font-size: 13.5px; gap: 6px; }
.tbtn.cmp .ic { width: 15px; height: 15px; }
.hp { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 11px; border-radius: 12px; background: var(--card); border: 1.5px solid transparent; }
.hp.typing { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.hp .hl { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; }
.hp .stp button { width: 30px; height: 30px; background: var(--card-2); }
.hp .stp button:disabled { opacity: 1; } /* «−» at the minimum (3) looks as «+»: grey read as broken (user 2026-11-28); the press does nothing */
.hp .stp b { min-width: 24px; cursor: pointer; }
/* two rows (user 2026-11-28): «Маршрутов: N · Отображено: M  − 10 +» (the middle is the step, not a button), then «Состав» and
   «Обменников:  − H +»; one gap between them */
.hstep { flex-direction: column; }
.hrow { display: flex; align-items: stretch; gap: var(--g, 8px); }
.hp .stp b.step { cursor: default; }
.hp .hl.wrap { white-space: normal; line-height: 1.25; }
/* a sheet hugs the bottom of the screen everywhere; a change of its height shows at the top, the bottom with «Готово» never moves
   (user 2026-11-28); js keeps an open sheet from shrinking (sheetHold) */
.sheet > .sh-f { margin-top: auto; }
/* «Фильтр», «Состав», the picker on a phone: nailed by the top under the status bar and by the bottom to the edge of what the screen
   shows (top + bottom, no height of their own): content, a pair (Сбер → Т-Банк) or an iOS cut never move «Готово» out of sight.
   Nothing is put below the visible area any more: back from an exchanger's site the iPhone app may stop drawing the last ~59 px
   (screen 00:24: «Готово» cut at 793 of 852), so a layer moved there (the old --iosGap) is simply not shown (user 2026-11-29,
   «исправь железно») */
@media (max-width: 959px) {
  .picker, #fSheet, #sSheet { top: calc(var(--sat) + 10px); bottom: 0; height: auto; max-height: none; }
}
/* the route card: the plates under the bricks are as high as their text */
.pls.rpls { grid-auto-rows: auto; }
.pls .pl.wide.rn { height: auto; min-height: 0; padding-top: 5px; padding-bottom: 5px; cursor: default; color: var(--dim); }
.pl.rn b { font-weight: 600; }
.pl.rn .dn, .cline .num.dn, .st-bn.dn { color: var(--down); }
.pl.rn .up, .cline .num.up, .st-bn.up { color: var(--up); }
.pl.rn a { color: var(--accent); text-decoration: none; }
.cline b.num { white-space: nowrap; }
/* the opened route: Binance under a step; «Что понадобится» — even tiles, two in a row */
.st-bn { display: flex; align-items: flex-start; gap: 5px; margin-top: 3px; }
.st-bn .ic { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.nds { margin-top: 12px; }
.nds h5 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin: 0 0 6px 2px; }
.nd-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(44px, auto); gap: 5px; }
.nd { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 7px 4px 9px; border-radius: 10px; background: var(--card-2); color: var(--text); text-decoration: none; }
.nd-t { flex: 1 1 auto; min-width: 0; }
.nd-t b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.nd-t small { display: block; font-size: 11.5px; line-height: 1.25; color: var(--dim); white-space: nowrap; }
.nd-w { flex: none; display: grid; color: var(--adj); }
.nd-w .ic { width: 14px; height: 14px; }
.nd .nd-e { flex: none; width: 12px; height: 12px; color: var(--muted); }
@media (max-width: 359px) { .nd { padding-left: 7px; padding-right: 5px; } .nd-t b { font-size: 12px; } .nd-t small { font-size: 10.5px; } }
/* «Состав»: the names as the group checkboxes, two in a row */
#sSheetB .fp { gap: 6px; }
/* a group's header — one plate (user 2026-11-28): the name with the count (a tap opens the group) and «Снять все» / «Отметить все»;
   the name wraps, never cut */
.cg-h { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--card); }
.cg-t { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cg-t .ic { flex: none; width: 14px; height: 14px; color: var(--dim); stroke-width: 2.4; }
.cg-n { min-width: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; line-height: 1.25; }
.cg-t small { flex: none; font-size: 12px; color: var(--dim); white-space: nowrap; }
.cg-all { flex: none; align-self: stretch; padding: 6px 0 6px 6px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.cgr .cg { margin-top: 5px; }
#sSheetCnt, #fSheetCnt { min-width: 0; white-space: nowrap; } #sSheetCnt b, #fSheetCnt b, #fPaneCnt b { color: var(--text); font-weight: 650; } #fPaneCnt b { font-size: inherit; }
#sSheetB .cg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
#sSheetB .vb { background: var(--card-2); }
.lh-sub:empty { display: none; }
#sSheetB .vb b { white-space: normal; overflow-wrap: anywhere; }
/* one gap between all blocks, from the header's buttons down to the cards (user 2026-11-28, «бери за пример» the row «Фильтр ·
   По выгоде»): 8 px, 6 px where that row is 6 px. Phone only (the computer has its own columns). The numbers below are the
   blocks' own offsets: the favourites' chips sit 3 px inside their row, the tools' buttons 5 px inside the sticky strip. */
:root { --g: 8px; }
@media (max-width: 340px) { :root { --g: 6px; } }
@media (max-width: 959px) {
  .bar-in { padding-bottom: 0; }
  .favs-wrap { height: auto; padding-top: calc(var(--g) - 3px); padding-bottom: 0; margin-bottom: calc(var(--g) - 7px); }
  .favs { height: 38px; }
  #exMain > .tools { margin-top: calc(var(--g) - 5px); margin-bottom: calc(var(--g) - 5px); }
  .chips { margin-bottom: var(--g); }
  .vias { margin-top: 0; }
  .vias + .vias { margin-top: var(--g); }
  .list { gap: var(--g); margin-top: var(--g); }
  .list .xc + .xc, .list .sec + .xc { margin-top: 0; }
  /* the same gap when the page is scrolled and the two amounts are pinned (user 2026-11-28): header → plate → plate → «Фильтр»
     row → the edge the list goes under. The row keeps its place in the page: its bottom margin became its padding */
  .mini { gap: var(--g); padding: var(--g) var(--pad) calc(var(--g) - 5px); }
  #exMain > .tools { height: auto; padding: 5px var(--pad) var(--g); margin-bottom: 0; }
  /* «Маршруты»: the row «Состав · Маршрутов: N − H +» stays under the «Фильтр» row too (user 2026-11-28). Its box (#lh) gives way,
     so the row sticks for the whole list; the strip under the plates is the gap to the edge the list goes under */
  #lh:has(.hstep) { display: contents; }
  .hstep { position: sticky; top: calc(var(--stickTop, 0px) + 39px + var(--g)); z-index: 17; margin: var(--g) calc(-1 * var(--pad)) calc(-1 * var(--g)); padding: 0 var(--pad) var(--g);
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
@media (max-width: 959px) { #lh:has(.hstep) + .lh-sub { margin-top: var(--g); } }
/* no filter chips: the «Фильтр» row's strip is the gap already — no second one over «Состав» (user 2026-11-30: 16 px instead of 8) */
@media (max-width: 959px) { #chips:empty + #lh .hstep { margin-top: 0; } }
.tbtn.stat { cursor: default; font-weight: 500; color: var(--dim); }
.tbtn.stat b { color: var(--text); font-weight: 650; }
.tools.rt { gap: var(--g, 8px); }
/* the row runs edge to edge as the rows under it: each plate gets the same share of the spare width (user 2026-11-30:
   «по выгоде не вровень по правому краю — добавь всем плашкам в этом ряду по одинаковой ширине») */
.tools.rt .tbtn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 340px) { .tools.rt .tbtn { padding: 0 7px; gap: 4px; } } /* «Фильтр 3 · Найдено: 111 · По выгоде» inside 320 px */
/* «Состав маршрутов» one line: «Состав маршр.», then smaller letters (rFitStep) when the row is narrow; «Обменов:  − 3 +» is never cut */
.hrow .tbtn.cmp { flex: 0 1 auto; min-width: 0; }
.tbtn.cmp .cmpl { min-width: 0; overflow: hidden; white-space: nowrap; font-weight: inherit; }
/* 320 px: the row's plates a little tighter, so «Состав обменов» stays readable (user: «сокращай», no second line) */
@media (max-width: 340px) { .hrow .tbtn.cmp { padding: 0 8px; gap: 5px; } .hrow .hp { padding-left: 9px; gap: 4px; } .hrow .hp .stp button { width: 28px; } .hrow .hp .stp b { min-width: 20px; } }
.hrow .hp { flex: 1 0 auto; } /* the line under the pinned row is not hidden under its strip */
@media (max-width: 340px) { .tools { gap: 4px; } .tools .tbtn:not(.sq) { padding: 0 8px; } } /* «Фильтр 2 · По выгоде · i · график» fit 320 px */
/* the number of exchanges is typed in its own plate («Маршрутов: N − H +»): the keypad shows no number (user 2026-11-28) */
.kp-hops .kp-display { display: none; }
.kp-hops .kp-head { margin-bottom: 8px; }
.hp .stp b.low { color: var(--dim); }
/* the page never zooms: not by two fingers, not by a double tap (user 2026-11-28, twice). html: Chrome/Android; body and
   everything tappable: «manipulation», the value Safari on the iPhone obeys; the script stops what still gets through */
html { touch-action: pan-x pan-y; }
body, a, label, [data-a] { touch-action: manipulation; }
/* the picker's funnel (user 2026-11-29): a row that opens the next level ends with «›»; «‹ Тенге» goes back; «По месту | По валюте»
   on the cash tab */
.pk-item.pk-nav .chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
.pk-back { margin-top: 6px; }
.pk-back b { font-weight: 650; }
.pk-cm { margin: 8px 0 4px; }
.pk-cm button { font-size: 13.5px; }
/* 320 px: «Наличные», «Переводы» did not fit their tab — smaller letters there, never cut */
@media (max-width: 359px) { .pk-tabs button { font-size: 11px; padding: 7px 1px; letter-spacing: -.01em; } }
/* the foot of «Фильтр» and «Состав» (user 2026-11-29): the total in a plate as high as «Готово», bigger, one line with it */
#sSheetCnt, #fSheetCnt { flex: 1 1 auto; min-width: 0; height: 42px; display: flex; align-items: center; gap: 0; padding: 0 12px; border-radius: 14px; background: var(--card); font-size: 16px; color: var(--dim); white-space: nowrap; overflow: hidden; }
#sSheetCnt b, #fSheetCnt b { color: var(--text); font-weight: 700; }
#sSheetCnt i, #fSheetCnt i { font-style: normal; white-space: pre; }
#sSheetCnt .num:not(b), #fSheetCnt .num:not(b) { color: var(--text); font-weight: 600; margin-left: .3em; }
#sSheetCnt:empty, #fSheetCnt:empty { visibility: hidden; }
/* «Обмен» card (user 2026-11-29): the deal plate takes two thirds, «Подробнее ›» the last third — it opens the whole exchanger card */
.pls .pl.wide.deal { grid-column: 1 / span 2; }
/* a route card: its «Сделка» plate the full width, as the other plates of the card (2026-11-30) */
.pls .pl.wide.rn.deal { grid-column: 1 / -1; }
.pls .pl.wide.rn.deal.red { color: var(--down); }
.pls .pl.more { grid-column: 3; height: auto; min-height: 38px; justify-content: center; gap: 2px; color: var(--accent); font-weight: 600; } /* the plates' own background (user 2026-11-29: «не надо менять фон особый») */
.pls .pl.more .ic { width: 14px; height: 14px; opacity: 1; stroke-width: 2.4; }
@media (max-width: 359px) { .pls .pl.wide.deal, .pls .pl.more { grid-column: 1 / -1; } } /* two columns there: the deal's whole parts do not fit half — it keeps the width, the button goes under it */
/* percents beside «скроет N» / «добавит N» and in the foot (user 2026-11-29): worse red, better green */
.pd { color: var(--down); } .pu { color: var(--up); }
#sSheetCnt .pd, #fSheetCnt .pd, #sSheetCnt .pu, #fSheetCnt .pu { font-weight: 600; }
/* «Фильтр» after the mockup of 2026-11-29: the legend of the colours, the four preset rows as boxes of tiles three in a row
   (two boxes side by side; one under the other below 360 px and in the PC panel), the switches with the number and the
   percent in columns of their own */
.f-leg { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: baseline; padding-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.f-leg b { font-weight: 600; white-space: nowrap; }
.pane .f-leg { margin-bottom: 12px; padding-top: 0; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.sheet .fgrid { margin: 0 -6px; }
.pane .fgrid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 359px) { .fgrid { grid-template-columns: minmax(0, 1fr); } .sheet .fgrid { margin: 0; } }
.fbox { min-width: 0; padding: 7px 6px 6px; border-radius: 14px; background: var(--card); }
.pane .fbox { background: var(--card-2); }
.fbh { display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 0 4px 6px; }
.fp .fbh h4 { min-width: 0; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--dim); }
.fts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ft { min-width: 0; height: 50px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 1px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.pane .ft { background: var(--card); }
.ft b { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ft.on { background: var(--card-active); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ft.on b { font-weight: 650; }
.ft small { display: flex; justify-content: center; gap: 3px; padding: 0 2px; font-size: 11px; line-height: 14px; white-space: nowrap; }
.ft.emp { pointer-events: none; }
/* would leave nothing (2026-11-30): in its place, dimmed, no tap */
.ft.dis, .tg.dis, .vb.dis, .cg-all.dis { opacity: .35; pointer-events: none; }
@media (hover: hover) { button.ft:not(.on):hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); } }
.tgs { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; column-gap: 10px; align-items: center; }
.tgs .tg { grid-column: 1; justify-self: start; text-align: left; }
.tgs .tg.wide { grid-column: 1 / span 2; }
.tgs .tg span { min-width: 0; }
.tgs .tp { justify-self: end; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tgs .q { grid-column: 3; }
.vb small.vn { display: flex; gap: 6px; } /* «Состав»: the count and the percent, no words (user 2026-11-29) */
.ft small i, .vb small i, .tgs .tp i, .f-leg i { font-style: normal; }
.vb small .w { color: var(--muted); }
.lv1 .w:not(.nc) { display: none; } .lv2 .ar { display: none; } /* fitTiles: the words go first, then the arrow */
.vb small > .w { margin: 0 -2px; } /* the dot between «скроет 1» and «↓2,5%»: the gap of the row is enough */
/* the row under «Отдаю / Получаю» (user 2026-11-30 late): the tick «Сумма не важна» and «Скрыто по сумме: N», edge to edge as the
   rows under it, at the one gap from the block above and the row below; one line always (renderAny makes the letters smaller) */
.anyrow { display: flex; gap: var(--g, 8px); margin-top: var(--g, 8px); }
.anyrow:empty { display: none; }
.anyrow .tbtn { flex: 1 1 auto; min-width: 0; justify-content: center; }
.anyrow .anyb { gap: 7px; }
.anyb .cb { flex: none; width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.anyb.on .cb { background: var(--accent); border-color: var(--accent); }
.anyb .cb .ic { width: 11px; height: 11px; color: var(--accent-ink); stroke-width: 3; }
@media (max-width: 340px) { .anyrow .tbtn { padding: 0 7px; } .anyrow .anyb { gap: 5px; } }
@media (min-width: 960px) { .anyrow { margin-top: -6px; } } /* the left column's gap is 14 px: the row sits 8 px under the cards, as the cards between them */
/* the empty amount field: «0» (owner 2026-12-01: «Верни там ноль»), no frame around it (the v=109 frame removed: «бордюр забыл
   убрать у суммы»); a field locked for this request (.lock) keeps «…» */
.amt input::placeholder { color: var(--text); opacity: 1; } /* «0» as a typed amount: the input's own size, weight and colour */
.amt input.zd::placeholder, .ma.zd { color: var(--muted); } /* dimmed: with the tick both, with an amount typed the other one (amtZero) */
.amt input:disabled::placeholder { color: var(--muted); font-weight: 400; font-size: .76em; } /* «…» of a locked field, as before (sizeAmt measures it so) */
.ma.derived { font-weight: 400; }
/* the deal plate, both tabs: «Сумма сделки от: …» and «До: …» each on its own line; the reserves (on «Обмен») after them */
.pl.deal .dl { display: block; white-space: nowrap; overflow: visible; }
.pl.deal.dlw .dl, .pl.deal .dl.dr { white-space: normal; } /* the reserves break between their parts, at «·» */
/* phone: the row pins on scroll under the amounts' mini plates, the «Фильтр» row (and «Состав · Обменов») under it (user 2026-11-30
   late: «эту строчку тоже зафиксируем во время скролла»). Its strip is the glass of the other pinned rows; the one gap above and
   below its plates, pinned or not (5 px of it inside the strip, as the «Фильтр» row) */
@media (max-width: 959px) {
  #exMain > .anyrow { position: sticky; top: var(--stickTop, 0px); z-index: 18; margin: calc(var(--g) - 5px) calc(-1 * var(--pad)) 0; padding: 5px var(--pad) calc(var(--g) - 5px);
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  #exMain > .anyrow ~ .tools { margin-top: 0; top: calc(var(--stickTop, 0px) + var(--anyH, 0px)); }
  .hstep { top: calc(var(--stickTop, 0px) + var(--anyH, 0px) + 39px + var(--g)); }
}
/* the keypad closed with 0 or nothing: the tick blinks twice — colour only, nothing moves or changes size */
.anyb.blink { animation: anyBlink .9s ease-in-out 1; }
@keyframes anyBlink {
  0%, 50%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  25%, 75% { box-shadow: inset 0 0 0 2px var(--accent); background-color: color-mix(in srgb, var(--accent) 22%, var(--card)); }
}
