/* iOS look for phones (owner 22.10.2026): «щоб виглядало повністю як застосунок iOS, як Telegram» — dark teal by default,
   any theme selectable. Phones only: everything is scoped to html.m (set by mobile.js for ≤ 760 px). Desktop is untouched. */
.mlt, .mtab-ind, .mava { display: none; }
@media (max-width: 760px) {
  html.m {
    --m-grp: color-mix(in oklab, var(--bg), white 7%);
    --m-grp-2: color-mix(in oklab, var(--bg), white 12%);
    --m-fill: rgba(118, 118, 128, .24);
    --m-sel: rgba(255, 255, 255, .09);
    --m-sep: rgba(84, 84, 88, .55);
    --m-sec: color-mix(in oklab, var(--text) 60%, transparent);
    --m-ter: color-mix(in oklab, var(--text) 30%, transparent);
    --m-glass: color-mix(in oklab, var(--m-grp) 74%, transparent);
    --m-edge: inset 0 .5px 0 rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .4);
    --m-spring: cubic-bezier(.34, 1.4, .5, 1);
    --m-out: cubic-bezier(.2, .9, .25, 1);
    font-size: 15px;
  }
  html.m[data-scheme=light] {
    --m-grp: #ffffff; --m-grp-2: #ffffff;
    --m-fill: rgba(118, 118, 128, .12); --m-sel: rgba(0, 0, 0, .06); --m-sep: rgba(60, 60, 67, .2);
    --m-glass: rgba(255, 255, 255, .74); --m-edge: inset 0 0 0 .5px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .12);
  }
  html.m, html.m body { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; font-feature-settings: normal; }
  html.m, html.m body { overflow-x: hidden; } html.m body { overflow-x: clip; }
  html.m, html.m * { scrollbar-width: none; }
  html.m ::-webkit-scrollbar { display: none; width: 0; height: 0; }
  html.m .mbadge { font-size: 11px !important; }
  html.m label.checklabel { min-height: 44px; align-items: center; }   /* page transitions and swipes never make the page scroll sideways */
  html.m table.mcards td { overflow-wrap: anywhere; }
  html.m table.mcards td > * { min-width: 0; overflow-wrap: anywhere; }
  html.m table.mcards td::before { flex: none; max-width: 45%; }
  /* label cards: several values in one cell wrap onto lines instead of squeezing over each other */
  html.m table.mcards tr:not(.mrow) td { flex-wrap: wrap; justify-content: flex-end; column-gap: 10px; row-gap: 3px; }
  html.m table.mcards tr:not(.mrow) td::before { margin-right: auto; }
  html.m table.mcards tr:not(.mrow) td > progress { flex: 0 0 100%; width: 100%; order: 9; }
  html.m table.mcards tr:not(.mrow) td > small { flex: 0 1 auto; text-align: right; }
  /* theme picker in the profile: two per row, names wrap */
  html.m .themegrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.m .themecard b, html.m .themecard small { white-space: normal !important; overflow-wrap: anywhere; }
  /* status with a note (wallet requests): badge on top, the note under it, never over the amount */
  html.m table.mcards tr:not(.mrow) td.mc-status { flex-direction: column; align-items: flex-end; gap: 3px; max-width: 52vw; min-width: 0; }
  html.m table.mcards tr:not(.mrow) td.mc-status small { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: right; color: var(--m-sec); line-height: 1.25; }
  html.m table.mcards tr:not(.mrow) td.mc-amt { min-width: 0; }
  html.m table.mcards tr:not(.mrow) td.mono { font-size: 13px; }
  html.m table.mcards td small.wrap, html.m table.mcards td .wrap { white-space: normal !important; text-align: right; }
  html.m button.sm { white-space: normal; line-height: 1.15; }

  /* ── background: a calm glow of the accent instead of the live canvas ── */
  html.m #fx, html.m .grain { display: none !important; }
  /* a fixed layer, not background-attachment: fixed (that repaints the whole page on every scroll frame) */
  html.m body { background: var(--bg); }
  html.m body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(130% 55% at 50% -12%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 62%),
      radial-gradient(90% 40% at 100% 0%, color-mix(in oklab, var(--accent-2) 12%, transparent), transparent 60%); }
  html.m[data-scheme=light] body::before { background: radial-gradient(130% 50% at 50% -12%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%); }

  /* ── smoothness: decorative endless animations off on phones (they repaint every frame), blur only on the two bars ── */
  html.m .card.primary::before, html.m .c-glare, html.m .coin, html.m .coinshadow, html.m .coin3d, html.m .f1, html.m .f2, html.m .f3, html.m .o-ring, html.m .sh-ring,
  html.m .stack3d i, html.m .tradeswitch.on .ts-knob::after, html.m .tradeswitch.on .ts-state::before, html.m .badge.live::before, html.m .navcount.on, html.m .cabinet i,
  html.m .online .waves i, html.m .stepper li.current .sdot::after, html.m .pulse-live i, html.m .livedot::after { animation: none !important; }
  html.m .tradeswitch.on .ts-knob::after { display: none; }
  html.m .panel, html.m .card, html.m .glass, html.m .msheet-item, html.m .noteitem, html.m .banner { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  /* ── navigation bar: transparent, glass once the page scrolls; the small title appears when the large one is gone ── */
  html.m .topbar { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: background .25s, box-shadow .25s; min-height: 52px; }
  html.m.mscrolled .topbar { background: var(--m-glass) !important; backdrop-filter: blur(22px) saturate(180%) !important; -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    box-shadow: 0 .5px 0 var(--m-sep) !important; }
  html.m .topbar .mtitle { font-family: var(--font); font-size: 17px; font-weight: 600; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--m-out); }
  html.m.mtitled .topbar .mtitle { opacity: 1; transform: none; }
  html.m .topbar .cmdk, html.m .topbar .bell { width: 40px !important; min-width: 40px; height: 40px !important; min-height: 40px; border-radius: 50% !important;
    background: var(--m-grp) !important; box-shadow: var(--m-edge) !important; border: 0 !important; color: var(--text) !important; }
  html.m .topbar .cmdk svg, html.m .topbar .bell svg { width: 19px; height: 19px; }
  html.m .topbar .bell { overflow: visible !important; position: relative; }
  html.m .topbar .bell em.bellcount { top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font: 700 12px/20px var(--font); box-shadow: 0 0 0 2px var(--bg); background: var(--bad); color: #fff; }
  /* readable minimum on phones: nothing under 12 px except the tab bar labels */
  html.m #content small, html.m dialog small, html.m .card .label, html.m .eyebrow, html.m .presets-label, html.m .bc-kind, html.m .bc-led, html.m .idchip, html.m .badge, html.m h2 .count { font-size: max(12px, 1em * .8) !important; }
  html.m #content small, html.m dialog small { font-size: 12px !important; }
  html.m .bcscene small { font-size: 11px !important; }
  html.m .preset-add, html.m .presets button { min-height: 32px !important; padding: 0 12px; border-radius: 16px !important; }
  .mlt { display: block; margin: 2px 2px 14px; font-family: var(--display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .005em; }
  html.m .content { padding-top: 0 !important; }

  /* iOS switch for «Торгівля» */
  html.m .topbar .tradeswitch { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-height: 40px; }
  html.m .topbar .tradeswitch .ts-label { display: none; }
  html.m .tradeswitch .ts-track { width: 51px; height: 31px; border-radius: 16px; background: var(--m-fill) !important; border: 0 !important; box-shadow: none !important; position: relative; transition: background .25s; }
  html.m .tradeswitch.on .ts-track { background: var(--ok) !important; }
  html.m .tradeswitch .ts-knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .18) !important; transition: transform .35s var(--m-spring); transform: none; }
  html.m .tradeswitch.on .ts-knob { transform: translateX(20px); }

  /* ── grouped surfaces ── */
  html.m .panel, html.m .card, html.m .glass:not(.topbar), html.m details.mfold, html.m .widget, html.m .pulse-grid > * {
    background: var(--m-grp) !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 22px !important; }
  html.m .panel::before, html.m .panel::after, html.m .card::before, html.m .card::after { display: none !important; }
  html.m .panelhead { border-bottom: .5px solid var(--m-sep) !important; }
  html.m .panelhead h2, html.m .panelhead h3 { font-family: var(--font) !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
  html.m .card .metric, html.m .metric { font-family: var(--display) !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
  html.m .card label, html.m .card .label, html.m .eyebrow, html.m .msheet-group, html.m .panelhead small { color: var(--m-sec) !important; }
  html.m .content h3, html.m .groupttl { font-family: var(--font); }

  /* ── controls ── */
  html.m button, html.m .button { font-family: var(--font); letter-spacing: 0; transition: transform .3s var(--m-spring), background .2s, opacity .2s; }
  html.m button:active:not(:disabled) { transform: scale(.96); }
  html.m button.primary, html.m button.mag { border-radius: 999px !important; background: var(--accent) !important; color: var(--on-accent) !important; border: 0 !important; box-shadow: none !important; font-weight: 600; }
  html.m button.primary::before, html.m button.mag::before, html.m button.primary::after, html.m button.mag::after { display: none !important; }
  html.m button.secondary { border-radius: 999px !important; background: var(--m-fill) !important; color: var(--accent) !important; border: 0 !important; box-shadow: none !important; font-weight: 600; }
  html.m button.danger, html.m button.secondary.danger { color: var(--bad) !important; background: color-mix(in oklab, var(--bad) 13%, transparent) !important; border: 0 !important; box-shadow: none !important; border-radius: 999px !important; }
  html.m input[type=number] { -moz-appearance: textfield; appearance: textfield; }
  html.m input[type=number]::-webkit-inner-spin-button, html.m input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  html.m input[type=range] { accent-color: var(--accent); height: 30px; }
  html.m textarea { padding: 10px 12px; line-height: 1.4; }
  html.m button.ghost:not(.icon) { color: var(--accent); }
  html.m .head-actions button { min-height: 34px !important; height: 34px; padding: 0 14px; font-size: 14px; }
  html.m input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), html.m select, html.m textarea {
    background: var(--m-fill) !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; min-height: 44px; color: var(--text); }
  html.m input:focus, html.m select:focus, html.m textarea:focus { outline: 2px solid color-mix(in oklab, var(--accent) 60%, transparent) !important; outline-offset: 0; }
  html.m .chiptab, html.m .tab, html.m .section-tab { border-radius: 999px !important; border: 0 !important; background: var(--m-fill) !important; color: var(--text) !important; box-shadow: none !important; font-weight: 500; transition: background .25s, color .25s; }
  html.m .chiptab.active, html.m .chiptab.on, html.m .tab.active, html.m .tab.on, html.m .section-tab.active, html.m [aria-pressed=true].chiptab { background: var(--text) !important; color: var(--bg) !important; font-weight: 600; }
  html.m .badge { border-radius: 6px !important; border: 0 !important; font-weight: 600; letter-spacing: 0; text-transform: none; }
  html.m .timer { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 13px; font-weight: 600;
    background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--warn); font-family: var(--font); }
  html.m details.mfold > summary { min-height: 48px; }
  html.m [data-action=export-trades], html.m [data-action=export-logs], html.m [data-action=export-history] { display: none !important; }
  html.m #modal button.ghost.icon, html.m #modal button.icon[data-action=close], html.m #modal .dialoghead button.ghost { width: 36px !important; height: 36px !important; min-height: 36px; border-radius: 50% !important;
    background: var(--m-fill) !important; border: 0 !important; box-shadow: none !important; color: var(--text) !important; }

  /* ── order lists: one grouped list of rows, like Telegram chats ── */
  html.m table.mcards tbody { background: var(--m-grp); border-radius: 22px; overflow: hidden; }
  html.m table.mcards tbody tr { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 16px !important; }
  html.m table.mcards tbody tr + tr::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--m-sep); }
  html.m table.mcards tbody tr.mrow + tr::before { left: 68px; }
  html.m table.mcards tbody tr.mc-tap:active { transform: none; background: var(--m-sel) !important; }
  html.m table.mcards tbody tr.fresh { box-shadow: inset 3px 0 0 var(--accent) !important; }
  html.m table.mcards tr.mc-empty, html.m table.mcards tr.mc-empty + tr::before { background: transparent !important; }
  /* compact row: bank avatar · amount / bank · timer / status */
  html.m table.mcards tr.mrow { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ava amt timer" "ava sub status" "act act act"; column-gap: 12px; row-gap: 2px; }
  html.m tr.mrow > td { display: none; }
  html.m tr.mrow > td.mava { display: flex; grid-area: ava; align-self: center; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--ava, color-mix(in oklab, var(--accent) 16%, var(--m-grp-2, #1c1c1e))); color: var(--ava-fg, #fff); font-weight: 700; font-size: 17px; }
  html.m tr.mrow > td.mava:not([style*='--ava']):not(.mlogo):not(.in):not(.out) { --ava-fg: var(--accent); }
  html.m tr.mrow > td.mava::before { display: none; }
  html.m tr.mrow > td.mc-amt { display: flex; grid-area: amt; flex-direction: row; align-items: baseline; gap: 6px; }
  html.m tr.mrow > td.mc-amt strong { font-family: var(--font) !important; font-size: 17px !important; font-weight: 600; letter-spacing: 0 !important; }
  html.m tr.mrow > td.mc-amt strong em { font-style: normal; color: var(--m-sec); font-size: 13px; font-weight: 500; }
  html.m tr.mrow > td.mc-amt small { display: none; }
  html.m tr.mrow > td.msub { display: block; grid-area: sub; text-align: left; font-size: 13px; color: var(--m-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m tr.mrow > td.msub::before { display: none; }
  html.m tr.mrow > td.msub i { font-style: normal; margin: 0 5px; opacity: .6; }
  html.m tr.mrow > td.msub .mrew { color: var(--ok); font-weight: 600; }
  html.m tr.mrow > td.mava svg { width: 20px; height: 20px; stroke-width: 2.2; }
  html.m tr.mrow > td.mava.in { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
  html.m tr.mrow > td.mava.out { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
  /* Pay-out rows: amount · timer / USDT · rate / card · «Прийняти» */
  html.m table.mcards tr.mrow.mpo { grid-template-areas: "ava amt timer" "ava sub status" "ava card status"; row-gap: 3px; }
  html.m table.mcards tr.mrow.mpo.mone { grid-template-areas: "ava amt timer" "ava sub sub" "ava card act"; }
  html.m tr.mrow.mpo > td.mava { align-self: start; margin-top: 2px; }
  html.m tr.mrow.mpo > td.mc-amt strong { font-size: 19px !important; font-weight: 700; }
  html.m tr.mrow > td.mcard { display: block; grid-area: card; align-self: center; font: 600 15px var(--mono); letter-spacing: .02em; color: var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m tr.mrow > td.mcard::before { display: none; }
  html.m tr.mrow > td.mcard.none { font: 400 13px var(--font); color: var(--m-sec); letter-spacing: 0; }
  html.m tr.mrow.mpo > td.mc-status { align-self: center; }
  html.m tr.mrow.mpo.mone > td.mc-act button:not([data-action=trade]) { min-height: 36px !important; height: 36px; padding: 0 18px; border-radius: 18px !important; font-size: 15px; }
  /* one action (take from the pool): a capsule on the right, like «Отримати» in the App Store */
  html.m table.mcards tr.mrow.mone { grid-template-areas: "ava amt timer" "ava sub act"; }
  html.m tr.mrow.mone > td.mc-status { display: none; }
  html.m tr.mrow.mone > td.mc-act { display: flex !important; margin: 0; padding: 0 !important; justify-content: flex-end; align-self: center; }
  html.m tr.mrow.mone > td.mc-act button:not([data-action=trade]) { flex: none; min-height: 30px !important; height: 30px; padding: 0 16px; border-radius: 15px !important; font-size: 14px; font-weight: 700; }
  html.m tr.mrow.mone > td.mc-timer { align-self: end; }
  /* a row whose only action is an icon (copy, open): the icon sits in the corner */
  html.m table.mcards tr.mcorner { padding-right: 52px !important; }
  html.m table.mcards tr.mcorner > td.mc-act { position: absolute; top: 10px; right: 10px; width: auto; margin: 0; padding: 0 !important; }
  html.m table.mcards tr.mcorner > td.mc-act button { min-height: 34px !important; width: 34px; height: 34px; flex: none; border-radius: 50% !important; background: var(--m-fill) !important; }
  /* label rows of other cards: denser, quieter labels */
  html.m table.mcards tbody tr:not(.mrow) { row-gap: 5px; }
  html.m table.mcards tbody tr:not(.mrow) td { font-size: 14px; }
  html.m table.mcards tbody tr:not(.mrow) td::before { color: var(--m-sec); font-size: 13px; }
  html.m tr.mrow > td.mc-timer { display: flex; grid-area: timer; }
  html.m tr.mrow > td.mc-status { display: flex; grid-area: status; }
  html.m tr.mrow > td.mc-status .badge { font-size: 12px; padding: 2px 8px; }
  html.m tr.mrow > td.mc-act { display: flex; grid-area: act; margin-top: 8px; padding-left: 52px !important; }
  html.m tr.mrow > td.mc-act:not(:has(button:not([data-action=trade]))) { display: none; }
  html.m tr.mrow > td.mc-act button[data-action=trade] { display: none; }
  html.m tr.mrow > td.mc-act button { min-height: 36px !important; height: 36px; border-radius: 12px !important; }

  /* swipe actions (owner 24.10.2026: smooth): the row's cells move together with transform only; behind them a rounded
     tile of the action is uncovered by clip-path — nothing is laid out while the finger moves, so it follows at 60/120 fps */
  html.m table.mcards tr.mrow { position: relative; overflow: hidden; --sx: 0px; --rv: 0px; }
  html.m tr.mrow > td:not(.mswipe) { transform: translate3d(var(--sx), 0, 0); will-change: transform; }
  html.m tr.mrow.msw-anim > td:not(.mswipe) { transition: transform .42s cubic-bezier(.25, 1, .3, 1); }
  html.m tr.mrow > td.mswipe { display: block !important; position: absolute; inset: 6px 0 6px 0; width: auto; padding: 0 !important; z-index: 2; pointer-events: none;
    clip-path: inset(0 0 0 calc(100% - var(--rv)) round 14px); }
  html.m tr.mrow.msw-on > td.mswipe { pointer-events: auto; }
  html.m tr.mrow.msw-anim > td.mswipe { transition: clip-path .42s cubic-bezier(.25, 1, .3, 1); }
  html.m tr.mrow > td.mswipe::before { display: none; }
  html.m td.mswipe button { position: absolute; top: 0; bottom: 0; right: 0; left: 0; width: 100%; min-height: 0 !important; height: auto !important; border: 0; border-radius: 14px !important; color: #fff !important;
    font-size: 14px; font-weight: 600; box-shadow: none; padding: 0; display: flex; align-items: center; justify-content: flex-end; background: var(--ok); }
  html.m td.mswipe button > span { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; flex: none; margin-right: calc(var(--W, 92px) - 92px);
    transform: translate3d(min(0px, calc(var(--W, 92px) - var(--rv))), 0, 0) scale(var(--lbl, 1)); transition: transform .25s cubic-bezier(.25, 1, .3, 1); }
  html.m tr.msw-full td.mswipe button > span { transform: translate3d(calc(var(--W, 92px) - var(--rv)), 0, 0) scale(1.06); }
  html.m td.mswipe button svg { width: 20px; height: 20px; stroke-width: 2.4; }
  html.m td.mswipe button[data-i="1"] { right: 0; width: 92px; left: auto; border-radius: 0 14px 14px 0 !important; z-index: 1; }
  html.m td.mswipe button[data-i="1"] > span { margin-right: 0; transform: none; }
  html.m tr.msw-full td.mswipe button[data-i="1"] { opacity: 0; transition: opacity .15s; }
  html.m td.mswipe button.pos { background: var(--ok) !important; } html.m td.mswipe button.alt { background: #8e8e93 !important; } html.m td.mswipe button.neg { background: var(--bad) !important; }
  html.m[data-scheme=dark] td.mswipe button.pos, html.m:not([data-scheme]) td.mswipe button.pos { color: #04120d !important; }

  /* trader overview on a phone: new orders and the queue first */
  html.m .dashboard-grid { display: flex !important; flex-direction: column; gap: 12px !important; }
  html.m .dashboard-grid:has(> [data-mw=kpi]) { display: grid !important; grid-template-columns: 1fr 1fr; }
  html.m .dashboard-grid > [data-mw] { grid-column: 1 / -1; }
  html.m .dashboard-grid > [data-mw=kpi] { grid-column: auto; order: 3; }
  html.m .dashboard-grid > [data-mw=new] { order: 1; } html.m .dashboard-grid > [data-mw=queue] { order: 2; }
  html.m .dashboard-grid > [data-mw=ready] { order: 4; } html.m .dashboard-grid > [data-mw=chart] { order: 5; }

  /* ── the open order: amount and timer on top, the requisite right under it, details grouped, actions under the thumb ── */
  html.m #modal .dialogbody:has(> .tradehead) { display: flex; flex-direction: column; gap: 16px; }
  html.m #modal .dialogbody > .tgrid { display: contents !important; }
  html.m #modal .dialogbody > *, html.m #modal .dialogbody > .tgrid > * { order: 5; }
  html.m #modal .tradehead { order: 1; display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 10px !important; padding-top: 4px; }
  html.m #modal .tradehead .thmeta { justify-content: center; }
  html.m #modal .tradehead .bigamount { font-size: 42px !important; line-height: 1.05; }
  html.m #modal .tradehead .bigamount small { font-size: 17px; color: var(--m-sec); margin-left: 4px; }
  html.m #modal .tradehead .subamount { color: var(--m-sec); }
  html.m #modal .tring { width: auto !important; height: 32px !important; padding: 0 14px; border-radius: 16px; display: inline-flex !important; align-items: center; justify-content: center;
    background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--warn); }
  html.m #modal .tring > svg { display: none; }
  html.m #modal .tring .ready-val { position: static !important; display: flex !important; flex-direction: row !important; align-items: baseline; gap: 6px; inset: auto; }
  html.m #modal .tring .ready-val b { font-size: 16px !important; color: inherit !important; font-family: var(--font) !important; }
  html.m #modal .tring .ready-val small { font-size: 13px; color: inherit; opacity: .85; }
  html.m #modal .tring.crit { background: color-mix(in oklab, var(--bad) 16%, transparent); color: var(--bad); }
  html.m #modal .dialogbody > .mreq, html.m #modal .dialogbody .bcscene, html.m #modal .dialogbody .noreq { order: 2 !important; }
  html.m #modal .stack0 { order: 4 !important; }
  html.m #modal .bcscene.mini { width: 100%; max-width: 360px; margin: 0 auto; }
  html.m #modal .stepper { order: 3; margin: 0 !important; }
  html.m #modal .stepper li > span:last-child { font-size: 11px; }
  html.m #modal .stack0 { order: 4; background: var(--m-grp-2); border-radius: 18px; padding: 0 16px; }
  html.m[data-scheme=light] #modal .stack0 { background: var(--bg); }
  html.m #modal .stack0 .line { min-height: 46px; display: flex; align-items: center; border-bottom: .5px solid var(--m-sep) !important; border-top: 0 !important; font-size: 15px; }
  html.m #modal .stack0 .line:last-child { border-bottom: 0 !important; }
  html.m #modal .stack0 .line span { color: var(--m-sec); }
  html.m #modal .dialogbody:has(> .tradehead) .tl-title { order: 6; margin: 8px 4px -8px !important; color: var(--m-sec); font: 400 13px var(--font) !important; text-transform: uppercase; letter-spacing: .01em; }
  html.m #modal .timeline { order: 7; background: var(--m-grp-2); border-radius: 18px; padding: 6px 16px !important; }
  html.m[data-scheme=light] #modal .timeline { background: var(--bg); }
  html.m #modal .dialog-actions { position: sticky; bottom: 0; display: flex !important; flex-wrap: wrap; gap: 8px !important; padding: 12px 16px calc(12px + var(--sab)) !important;
    background: var(--m-glass) !important; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: .5px solid var(--m-sep) !important; }
  html.m #modal .dialog-actions > button { flex: 1 1 calc(50% - 4px); min-height: 46px !important; height: auto !important; padding: 8px 12px !important; font-size: 15px !important; line-height: 1.2; white-space: normal; }
  html.m #modal .dialog-actions > button.mag, html.m #modal .dialog-actions > button.primary { order: -1; flex-basis: 100%; min-height: 54px !important; font-size: 17px !important; }

  /* ── tab bar: a floating glass capsule with a sliding highlight ── */
  html.m { --tabh: 62px; }
  html.m #mtabs { left: 12px; right: 12px; bottom: calc(var(--sab) + 8px); height: var(--tabh); padding: 4px; border: 0; border-radius: 31px;
    background: var(--m-glass); box-shadow: var(--m-edge); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
  html.m .shell { padding-bottom: calc(var(--tabh) + var(--sab) + 28px) !important; }
  html.m #mtabs button { z-index: 1; color: var(--text); border-radius: 27px; font-size: 10px; font-weight: 600; gap: 1px; }
  html.m #mtabs button.on { color: var(--accent); }
  html.m #mtabs button.on::before { display: none; }
  html.m #mtabs button svg { width: 25px; height: 25px; stroke-width: 1.7; transition: transform .4s var(--m-spring); }
  html.m #mtabs button.on svg { fill: color-mix(in oklab, var(--accent) 22%, transparent); }
  html.m #mtabs button.bump svg { animation: mbump .45s var(--m-spring); }
  @keyframes mbump { 0% { transform: scale(1); } 35% { transform: scale(.78); } 100% { transform: scale(1); } }
  html.m #mtabs .mbadge { top: 3px; right: calc(50% - 24px); }
  .mtab-ind { display: block; position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 27px; background: var(--m-sel); z-index: 0;
    transition: transform .45s var(--m-spring), width .45s var(--m-spring); pointer-events: none; }
  html.m #toasts { bottom: calc(var(--tabh) + var(--sab) + 18px) !important; }
  html.m .bulkbar { bottom: calc(var(--tabh) + var(--sab) + 18px) !important; }

  /* ── sheets: floating, rounder, springy ── */
  html.m dialog#modal:not(.mfull), html.m dialog.msheet { left: 8px; right: 8px; bottom: calc(8px + var(--sab)); width: auto !important; max-width: none !important; top: auto;
    max-height: calc(100dvh - var(--sat) - var(--sab) - 22px) !important;
    border-radius: 38px !important; border: 0 !important; background: var(--m-grp) !important; padding-bottom: 6px !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, .35); animation: msheet-in .55s cubic-bezier(.22, 1, .36, 1); backdrop-filter: none; }
  html.m dialog#modal.mfull { background: var(--bg) !important; animation: mfull-in .45s var(--m-out); }
  @keyframes msheet-in { from { transform: translate3d(0, 100%, 0); } to { transform: translate3d(0, 0, 0); } }   /* one soft curve for every sheet (owner 24.10.2026) */
  /* detents: the sheet's height animates between ~2/3 and full; content scrolls inside, actions stay at the bottom */
  html.m dialog#modal { overflow: hidden !important; }
  html.m dialog#modal[open] { display: flex !important; flex-direction: column; }
  html.m #modal-content { flex: 1 1 auto; min-height: 0; max-height: none !important; }
  html.m #dialogform { flex: 1 1 auto; min-height: 0; }
  html.m #modal .dialogbody { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
  html.m dialog#modal { will-change: transform; }
  html.m dialog#modal.mrise { animation: msheet-in .55s cubic-bezier(.22, 1, .36, 1); }
  html.m dialog#modal[data-det=full] { border-radius: 14px 14px 38px 38px !important; }
  html.m #modal .mgrip { width: 40px; height: 5px; margin: 8px auto 2px; flex: none; cursor: grab; }
  html.m dialog#modal::backdrop, html.m dialog.msheet::backdrop { background: rgba(0, 0, 0, .25) !important; }
  html.m[data-scheme=light] dialog#modal::backdrop, html.m[data-scheme=light] dialog.msheet::backdrop { background: rgba(0, 0, 0, .12) !important; }
  @keyframes mfull-in { from { transform: translateY(8%); opacity: 0; } to { transform: none; opacity: 1; } }
  html.m dialog#modal::backdrop, html.m dialog.msheet::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: none; animation: mfade .4s ease; }
  @keyframes mfade { from { opacity: 0; } }
  html.m #modal .mgrip, html.m .msheet-grip { width: 36px; background: var(--m-ter); }
  html.m #modal .dialoghead h2, html.m .msheet-head b { font-family: var(--font) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
  html.m #modal .dialoghead h2 { font-size: 20px !important; }
  html.m #modal .tradehead .bigamount { font-family: var(--display) !important; font-weight: 700 !important; }
  html.m #modal .line { border-color: var(--m-sep) !important; }
  html.m .mreq { border: 0; border-radius: 22px; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 26%, var(--m-grp)), var(--m-grp)); }

  /* «Меню»: rows like iOS Settings with coloured icon squares */
  html.m .msheet-head { padding: 6px 12px 2px 20px; }
  html.m .msheet-head b { font-size: 20px; }
  html.m .msheet-grid { display: flex; flex-direction: column; gap: 0; background: var(--m-grp-2); border-radius: 18px; overflow: hidden; }
  html.m[data-scheme=light] .msheet-grid { background: var(--bg); }
  html.m .msheet-grid.two { display: grid; background: none; gap: 8px; }
  html.m .msheet-grid:not(.two) .msheet-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: none; font-size: 16px; font-weight: 400; text-align: left; }
  html.m .msheet-grid:not(.two) .msheet-item + .msheet-item { box-shadow: inset 56px .5px 0 -55.5px var(--m-sep); }
  html.m .msheet-grid:not(.two) .msheet-item + .msheet-item::after { content: ''; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--m-sep); }
  html.m .msheet-grid:not(.two) .msheet-item span { flex: 1; font-size: 16px; }
  html.m .msheet-grid:not(.two) .msheet-item > svg { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 8px; background: var(--ic, var(--accent)); color: #fff; stroke-width: 2.1; flex: none; }
  html.m .msheet-grid:not(.two) .msheet-item::before { content: ''; order: 9; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--m-ter); border-top: 2px solid var(--m-ter); transform: rotate(45deg); }
  html.m .msheet-grid:not(.two) .msheet-item.on { background: var(--m-sel); }
  html.m .msheet-grid:not(.two) .msheet-item .mbadge { position: static; order: 8; }
  html.m .msheet-grid:not(.two) .msheet-item.danger > svg { background: var(--bad); }
  html.m .msheet-grid:not(.two) .msheet-item.danger::before { display: none; }
  html.m .msheet-item:active { background: var(--m-sel); transform: none; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+1) > svg { --ic: #0a84ff; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+2) > svg { --ic: #ff9f0a; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+3) > svg { --ic: #30d158; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+4) > svg { --ic: #5e5ce6; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+5) > svg { --ic: #ff375f; }
  html.m .msheet-grid:not(.two) .msheet-item:nth-child(6n+6) > svg { --ic: #8e8e93; }

  /* appearance sheet */
  .mtheme-list { display: flex; flex-direction: column; background: var(--m-grp-2); border-radius: 18px; overflow: hidden; }
  html.m[data-scheme=light] .mtheme-list { background: var(--bg); }
  .mtheme { display: flex; justify-content: flex-start; white-space: normal; width: 100%; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border: 0; background: none; color: var(--text); text-align: left; position: relative; border-radius: 0; box-shadow: none; }
  .mtheme + .mtheme::after { content: ''; position: absolute; top: 0; left: 68px; right: 0; height: .5px; background: var(--m-sep); }
  .mtheme i { width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); }
  .mtheme span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
  .mtheme small { color: var(--m-sec); font-size: 13px; }
  .mtheme b { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid var(--m-ter); transition: all .3s var(--m-spring); }
  .mtheme.on b { border: 7px solid var(--accent); }
  .mseg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 10px; background: var(--m-fill); }
  .mseg button { min-height: 34px !important; height: 34px; border: 0; border-radius: 8px !important; background: none; color: var(--text); font-weight: 500; box-shadow: none; }
  .mseg button.on { background: var(--m-grp-2); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); font-weight: 600; }
  html.m[data-scheme=light] .mseg button.on { background: #fff; }
  .mnote { margin: 8px 6px 0; color: var(--m-sec); font-size: 13px; line-height: 1.35; }

  /* segmented controls (section tabs, form tabs) — like UISegmentedControl */
  html.m .section-tabs, html.m .form-tabs { display: flex; gap: 2px; padding: 2px !important; border: 0 !important; border-radius: 10px !important; background: var(--m-fill) !important; box-shadow: none !important; overflow-x: auto; scrollbar-width: none; }
  html.m .section-tabs .section-tab, html.m .form-tabs button { flex: 1 0 auto; min-height: 32px !important; padding: 0 12px !important; border-radius: 8px !important; background: transparent !important; color: var(--text) !important; font-size: 13px !important; font-weight: 500; box-shadow: none !important; }
  html.m .section-tabs .section-tab.active, html.m .form-tabs button.active { background: var(--m-grp-2) !important; color: var(--text) !important; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .14), 0 0 1px rgba(0, 0, 0, .1) !important; }
  html.m[data-scheme=light] .section-tabs .section-tab.active, html.m[data-scheme=light] .form-tabs button.active { background: #fff !important; }
  /* checkboxes and radios in the accent, comfortable to tap; focus rings only for the keyboard */
  html.m input[type=checkbox], html.m input[type=radio] { accent-color: var(--accent); width: 22px; height: 22px; }
  html.m :focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
  html.m dialog button:focus, html.m dialog .msheet-item:focus { outline: none !important; box-shadow: none !important; }
  /* «Нова заявка» tiles */
  html.m .msheet-grid.two .msheet-item { border: 0; background: var(--m-grp-2); border-radius: 22px; min-height: 132px; gap: 8px; }
  html.m[data-scheme=light] .msheet-grid.two .msheet-item { background: var(--bg); }
  html.m .msheet-grid.two .msheet-item > svg { box-sizing: content-box; padding: 12px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 16%, transparent); }
  /* search: plain rows */
  html.m #pal-list li[role=option] { border-radius: 12px; }
  html.m #palette input { border-radius: 12px !important; }

  /* file viewer like Telegram: black, × top-left, the name in the middle, download top-right; gestures only */
  html.m dialog.fv { inset: 0 !important; margin: 0 !important; width: 100vw !important; height: 100dvh !important; max-width: none !important; max-height: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: rgba(0, 0, 0, var(--fv-dim, 1)) !important; backdrop-filter: none !important; }
  html.m dialog.fv::backdrop { background: #000; }
  html.m .fv .fv-bar { position: fixed; z-index: 3; top: 0; left: 0; right: 0; min-height: 0; display: flex; align-items: center; padding: calc(var(--sat) + 6px) 12px 10px !important;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)) !important; border: 0 !important; }
  html.m .fv .fv-title { position: absolute; left: 64px; right: 64px; bottom: 12px; align-items: center; text-align: center; pointer-events: none; }
  html.m .fv .fv-title b { font: 600 16px var(--font); max-width: 100%; color: #fff; }
  html.m .fv .fv-title small { color: rgba(255, 255, 255, .6); }
  html.m .fv .fv-tools { position: static; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0; padding: 0; background: none !important; box-shadow: none !important; border: 0; backdrop-filter: none; transform: none; }
  html.m .fv .fv-tools > * { display: none !important; }
  html.m .fv .fv-tools > .fv-x, html.m .fv .fv-tools > [data-fv="dl"] { display: inline-flex !important; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0 !important; border-radius: 50% !important;
    background: rgba(60, 60, 64, .6) !important; color: #fff; align-items: center; justify-content: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  html.m .fv .fv-tools > .fv-x { order: -1; margin: 0; position: static; }
  html.m .fv .fv-tools > [data-fv="dl"] span { display: none; }
  html.m .fv .fv-tools svg { width: 20px; height: 20px; }
  html.m .fv .fv-stage { position: fixed; inset: 0; z-index: 1; }
  html.m .fv .fv-img { box-shadow: none !important; transition: transform .28s cubic-bezier(.2, .9, .25, 1); will-change: transform; }
  html.m .fv .fv-stage.fv-drag .fv-img { transition: none !important; }
  html.m .fv .fv-count { z-index: 3; bottom: calc(var(--sab) + 18px); background: rgba(44, 44, 46, .8); font: 600 13px var(--font); }
  html.m .fv .fv-nav { display: none !important; }
  html.m .fv .fv-pdf { width: 100%; height: 100%; }
  html.m .fv .fv-empty .fv-btn.primary { display: inline-flex !important; width: auto; border-radius: 999px !important; padding: 0 22px; background: var(--accent) !important; color: var(--on-accent); }

  /* bank cards: no 3D flip on phones (Safari flattens the 3D chain and showed the back face mirrored) — faces cross-fade */
  html.m .bankcard { transform: none !important; transform-style: flat !important; }
  html.m .bankcard .bc-face { transform: none !important; transition: opacity .35s var(--m-out); }
  html.m .bankcard .bc-back { opacity: 0; pointer-events: none; }
  html.m .bankcard.flipped .bc-front { opacity: 0; pointer-events: none; }
  html.m .bankcard.flipped .bc-back { opacity: 1; pointer-events: auto; }
  /* search: a solid screen (it was see-through in Safari) */
  /* search: a sheet that rises from the bottom (like the order), the bar with «Скасувати» on top */
  html.m dialog#palette { inset: auto 0 0 0 !important; top: auto !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
    height: calc(100dvh - var(--sat) - 10px) !important; max-height: none !important; padding: 0 !important; border: 0 !important; border-radius: 14px 14px 0 0 !important;
    background: var(--m-grp) !important; backdrop-filter: none !important; overflow: hidden; animation: msheet-in .55s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); }
  html.m dialog#palette[open] { display: flex !important; flex-direction: column; }
  html.m dialog#palette::backdrop { background: rgba(0, 0, 0, .3) !important; animation: mfade .3s; }
  html.m[data-scheme=light] dialog#palette::backdrop { background: rgba(0, 0, 0, .14) !important; }
  html.m #palette::before { content: ''; display: block; width: 40px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: var(--m-ter); }
  html.m #palette .pal-in { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px 16px !important; border: 0 !important; background: var(--m-grp) !important; position: sticky; top: 0; z-index: 2; }
  html.m #palette .pal-in > svg { position: absolute; left: 28px; width: 17px; height: 17px; color: var(--m-sec); pointer-events: none; }
  html.m #palette .pal-in input { flex: 1; min-width: 0; height: 40px !important; min-height: 40px; padding-left: 36px !important; border-radius: 12px !important; }
  html.m #palette .pal-in kbd { display: none !important; }
  html.m #palette .mpal-cancel { flex: none; min-height: 40px; padding: 0 6px; border: 0; background: none !important; box-shadow: none !important; color: var(--accent); font: 400 17px var(--font); }
  html.m #palette #pal-list { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 0 8px calc(var(--sab) + 16px) !important; margin: 0; }
  html.m #palette::before { flex: none; }
  html.m #palette .pal-in { flex: none; }

  /* leaving sheets: the dim fades with them */
  html.m dialog.mclosing::backdrop { opacity: 0; transition: opacity .36s ease; }
  html.m dialog[open]::backdrop { transition: opacity .34s ease; }
  /* notifications: swipe left → «Видалити» */
  html.m .mnote { position: relative; overflow: hidden; border-radius: 18px; flex-shrink: 0; transition: height .38s cubic-bezier(.32, .72, 0, 1), margin .38s, opacity .3s; }
  html.m .mnote.gone { height: 0 !important; margin: 0 !important; opacity: 0; }
  html.m .mnote > .noteitem { position: relative; z-index: 1; width: 100%; margin: 0 !important; will-change: transform; }
  html.m .mnote-del { position: absolute; top: 0; right: 0; bottom: 0; width: 0; min-height: 0 !important; padding: 0; border: 0; border-radius: 0 18px 18px 0 !important; overflow: hidden; white-space: nowrap;
    background: var(--bad) !important; color: #fff !important; font: 600 15px var(--font); display: flex; align-items: center; justify-content: center; z-index: 0; box-shadow: none !important; }

  /* the executor's six status tabs are chosen in app.js (EXEC_TABS), the same on the computer */
  html.m .tabs .tabind { display: none !important; }
  /* no sheen stripes on buttons (a desktop hover effect that stuck on touch: the dark streak on the search button) */
  html.m button::after, html.m .topbar button::before { display: none !important; }

  /* wallet: Баланс / Страховий депозит */
  html.m .balancehero, html.m .shieldhero { display: block !important; padding: 0 !important; overflow: visible !important; }
  html.m .balancehero > :not(.mwal), html.m .shieldhero > :not(.mwal) { display: none !important; }
  html.m .pagehead.mwal-moved { display: none !important; }
  .mwal { display: none; }
  html.m .mwal { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 16px; text-align: center; }
  html.m .mwal-label { color: var(--m-sec); font-size: 15px; }
  html.m .mwal-amt { margin-top: 2px; font: 700 44px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  html.m .mwal-amt span { margin-left: 6px; font: 600 20px var(--font); color: var(--m-sec); letter-spacing: 0; }
  html.m .mwal-sub { margin-top: 6px; color: var(--m-sec); font-size: 14px; }
  html.m .mwal-chip { margin-top: 10px; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
  html.m .mwal-chip.ok { background: color-mix(in oklab, var(--ok) 15%, transparent); color: var(--ok); }
  html.m .mwal-chip.warn { background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--warn); }
  html.m .mwal-bar { width: 100%; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--m-fill); overflow: hidden; }
  html.m .mwal-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--ok); transition: width .8s var(--m-out); }
  html.m .mwal-acts { display: flex; justify-content: center; gap: 22px; margin: 20px 0 6px; }
  html.m .mwal-act { display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 0; padding: 0; border: 0; background: none !important; box-shadow: none !important; color: var(--accent); font: 500 13px var(--font); }
  html.m .mwal-act i { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
  html.m .mwal-act svg { width: 23px; height: 23px; stroke-width: 2.3; }
  html.m .mwal .alloc { width: 100%; height: 8px; margin-top: 18px; border-radius: 4px; overflow: hidden; display: flex; gap: 2px; }
  html.m .mwal-list { width: 100%; margin-top: 14px; display: flex; flex-direction: column; background: var(--m-grp-2); border-radius: 16px; overflow: hidden; text-align: left; }
  html.m[data-scheme=light] .mwal-list { background: var(--bg); }
  html.m .mwal-list > div { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; font-size: 15px; }
  html.m .mwal-list > div + div { box-shadow: inset 0 .5px 0 var(--m-sep); }
  html.m .mwal-list > div > span { flex: 1; color: var(--text); }
  html.m .mwal-list > div > b { font-weight: 600; font-variant-numeric: tabular-nums; }
  html.m .mwal-list > div > b small { color: var(--m-sec); font-weight: 500; font-size: 12px; }
  html.m .mwal-list > div > i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
  html.m .mwal-list .a-available > i { color: var(--accent); } html.m .mwal-list .a-insurance > i { color: var(--ok); } html.m .mwal-list .a-reserved > i { color: var(--warn); } html.m .mwal-list .a-withdrawal > i { color: var(--info, #5b8cff); }
  /* history and wallet requests: transaction rows */
  html.m table.mtxs, html.m table.mtxs tbody { display: block; width: 100%; }
  html.m table.mtxs thead { display: none; }
  html.m .tablewrap:has(> table.mtxs) { overflow: visible !important; border: 0 !important; margin: 0 !important; }
  html.m table.mtxs tbody { background: var(--m-grp); border-radius: 22px; overflow: hidden; }
  html.m .panel table.mtxs tbody { background: transparent; border-radius: 0; }
  html.m table.mtxs tbody tr.mtx { position: relative; }
  html.m table.mtxs tbody tr.mtx + tr.mtx::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; height: .5px; background: var(--m-sep); }
  html.m table.mtxs tbody tr.mtx { display: block !important; padding: 10px 14px !important; }
  html.m table.mtxs tbody tr.mtx > td:not(.mtx-row) { display: none !important; }
  html.m table.mtxs td.mtx-row { display: flex !important; align-items: center; gap: 12px; text-align: left; }
  html.m table.mtxs td.mtx-row::before { display: none !important; }
  html.m .mtx-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
  html.m .mtx-ic.in { background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok); }
  html.m .mtx-ic.out { background: var(--m-fill); color: var(--text); }
  html.m .mtx-ic svg { width: 18px; height: 18px; stroke-width: 2.4; }
  html.m .mtx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.m .mtx-main b { font-size: 15px; font-weight: 600; line-height: 1.25; white-space: normal; }
  html.m .mtx-main small { color: var(--m-sec); font-size: 12.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m .mtx-addr { font: 12px var(--mono); color: var(--m-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m .mtx-btn { align-self: flex-start; margin-top: 6px; min-height: 30px !important; height: 30px; padding: 0 14px !important; font-size: 13px !important; }
  html.m .mtx-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
  html.m .mtx-amt b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  html.m .mtx-amt b.pos { color: var(--ok); }
  html.m .mtx-amt small { color: var(--m-sec); font-size: 12px !important; white-space: nowrap; }
  html.m .mtx-amt .badge { font-size: 11px !important; }

  /* notifications */
  html.m .noteitem { border: 0 !important; border-radius: 18px !important; background: var(--m-grp-2) !important; box-shadow: none !important; }
  html.m[data-scheme=light] .noteitem { background: var(--bg) !important; }
  html.m .noteitem.unread { box-shadow: inset 3px 0 0 var(--accent) !important; }
  html.m .noteitem b { font-family: var(--font) !important; font-weight: 600 !important; }

  /* ── toasts: a pill from the top, like an iOS banner ── */
  html.m #toasts { top: calc(var(--sat) + 8px) !important; bottom: auto !important; }
  html.m #toasts > * { border-radius: 26px !important; background: var(--m-grp-2) !important; color: var(--text) !important; border: 0 !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 .5px 0 rgba(255, 255, 255, .12) !important;
    animation: mtoast .55s var(--m-spring) !important; }
  html.m[data-scheme=light] #toasts > * { background: rgba(255, 255, 255, .96) !important; box-shadow: 0 12px 36px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .06) !important; backdrop-filter: blur(20px); }
  @keyframes mtoast { from { transform: translateY(-140%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

  /* pull-to-refresh spinner: invisible until you pull (it peeked out under the island) */
  html.m #mptr { opacity: 0; transition: opacity .15s, transform .2s; }
  html.m #mptr.pull, html.m #mptr.spin { opacity: 1; }

  /* ── motion: page enter, rows cascade in ── */
  html.m .menter { animation: menter .42s var(--m-out); }
  @keyframes menter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  html.m .menter table.mcards tbody tr { animation: mrowin .45s var(--m-out) both; animation-delay: calc(min(var(--i, 0), 12) * 28ms); }
  @keyframes mrowin { from { opacity: 0; transform: translateY(8px); } }
  html.m .menter .cards > .card { animation: mrowin .45s var(--m-out) both; }
  html.m .menter .cards > .card:nth-child(2) { animation-delay: 40ms; } html.m .menter .cards > .card:nth-child(3) { animation-delay: 80ms; } html.m .menter .cards > .card:nth-child(n+4) { animation-delay: 120ms; }
  /* owner 24.10.2026: «Спокійні» (and the iPhone's Reduce Motion) take away only the decoration — rows flying in, pulses,
     the moving background. Sheets, menus, swipes and the tab bar keep their movement: without it they jumped. */
  html.m.calm .menter table.mcards tbody tr, html.m.calm .menter .cards > .card, html.m.calm .rv, html.m.calm .skel i, html.m.calm .livedot::after, html.m.calm .pulse-live { animation: none !important; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { html.m .menter table.mcards tbody tr, html.m .menter .cards > .card, html.m .rv { animation: none !important; } }
/* a fresh order is not flashed on a phone (owner 24.10.2026: with live PayChain orders the list blinked every few seconds) */
@media (max-width: 760px) { html.m tr.fresh, html.m tr.fresh > td { animation: none !important; } }
@media (max-width: 760px) { html.m #pal-list:focus, html.m #pal-list:focus-visible { outline: none !important; } }

/* ── Pay-out on phones, v2 (owner 23.10.2026): status segments in a 3 × 2 grid, clean order cards ── */
@media (max-width: 760px) {
  html.m[data-mpo="1"] #content > .cards, html.m[data-mpo="1"] .presets, html.m[data-mpo="1"] .filterpresets { display: none !important; }
  html.m[data-mpo="1"] .tabs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px !important; margin: 0 0 12px !important;
    background: var(--m-fill) !important; border-radius: 14px !important; overflow: visible !important; border: 0 !important; box-shadow: none !important; }
  html.m[data-mpo="1"] .tabs .tabind { display: none !important; }
  html.m[data-mpo="1"] .tabs .tab { justify-content: center; min-height: 36px !important; height: 36px; padding: 0 6px !important; border-radius: 10px !important; background: transparent !important;
    color: var(--m-sec) !important; font-size: 13.5px !important; font-weight: 600 !important; white-space: nowrap; gap: 5px; }
  html.m[data-mpo="1"] .tabs .tab.active { background: var(--m-grp) !important; color: var(--text) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .18) !important; }
  html.m[data-mpo="1"] .tabs .tab em, html.m[data-mpo="1"] .tabs .tab .count { font-style: normal; font-size: 11.5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); }
  /* the card: bank tile · amount · USDT and rate · bank and last four digits · the one action */
  html.m table.mcards tr.mrow.mpo { grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-areas: "ava amt timer" "ava sub sub" "ava card act" !important; column-gap: 12px; row-gap: 2px !important; padding: 14px 16px !important; }
  html.m tr.mrow.mpo > td.mava { width: 44px !important; height: 44px !important; border-radius: 14px !important; font-weight: 700; font-size: 17px; box-shadow: inset 0 0 0 1px var(--m-sep); align-self: start; margin-top: 0 !important; }
  html.m tr.mrow.mpo > td.mc-amt strong { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
  html.m tr.mrow.mpo > td.msub { font-size: 13px; }
  html.m tr.mrow.mpo > td.mcard { font: 600 14px var(--font) !important; letter-spacing: 0 !important; color: var(--text); margin-top: 6px; align-self: center; }
  html.m tr.mrow.mpo > td.mc-status { display: none !important; }
  html.m tr.mrow.mpo > td.mc-timer:has(.muted) { display: none !important; }
  html.m tr.mrow.mpo > td.mc-timer { align-self: start; }
  html.m tr.mrow.mpo > td.mc-timer .timer { font: 700 13px var(--mono); padding: 3px 9px; border-radius: 999px; background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }
  html.m tr.mrow.mpo > td.mc-timer .timer.low { background: color-mix(in oklab, var(--bad) 20%, transparent); color: var(--bad); }
  html.m tr.mrow.mpo > td.mc-act { display: flex !important; grid-area: act; align-self: end; justify-content: flex-end; margin: 6px 0 0 !important; padding: 0 !important; }
  html.m tr.mrow.mpo > td.mc-act button[data-action=trade] { display: none !important; }
  html.m tr.mrow.mpo > td.mc-act button:not([data-action=trade]) { min-height: 34px !important; height: 34px; padding: 0 18px !important; border-radius: 17px !important; font-size: 14.5px !important; font-weight: 700 !important; }
  html.m tr.mrow.mpo:not(.mone) > td.mc-act button:not([data-action=trade]) ~ button:not([data-action=trade]) { display: none !important; }
  html.m table.mcards tbody tr.mrow.mpo + tr::before { left: 72px; }
}

/* ── One design with the computer (owner 23.10.2026): the phone keeps its app layout (large title, tab bar, sheets) but wears
   the site's look — the theme's fonts, glass surfaces with a hairline edge, the section line above the title, accent tabs,
   12 px buttons, the site's badges and numbers, the same easing. Tokens first, so every older phone rule follows. ── */
@media (max-width: 760px) {
  html.m {
    --m-grp: var(--glass); --m-grp-2: var(--glass-2); --m-sep: var(--line); --m-sel: color-mix(in oklab, var(--accent) 12%, transparent);
    --m-fill: color-mix(in oklab, var(--text) 7%, transparent); --m-glass: color-mix(in oklab, var(--glass-strong) 88%, transparent);
    --m-edge: inset 0 1px 0 var(--hi), 0 18px 40px -18px rgba(0, 0, 0, .6); --m-spring: var(--ease, cubic-bezier(.2, .9, .25, 1));
  }
  html.m[data-scheme=light] { --m-fill: color-mix(in oklab, var(--text) 6%, transparent); --m-edge: inset 0 1px 0 var(--hi), 0 14px 30px -18px rgba(14, 60, 50, .28); }
  /* the site's background: the accent glow and a soft diagonal streak (static — the animated canvas stays off on phones) */
  html.m body::before { background:
      linear-gradient(118deg, transparent 14%, color-mix(in oklab, var(--accent) 16%, transparent) 30%, transparent 46%, color-mix(in oklab, var(--accent-2) 11%, transparent) 60%, transparent 78%),
      radial-gradient(130% 55% at 50% -12%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 62%) !important; }
  /* surfaces */
  html.m .panel, html.m .card, html.m .glass:not(.topbar):not(dialog), html.m details.mfold, html.m .widget, html.m .pulse-grid > * {
    background: var(--glass) !important; border: 1px solid var(--line) !important; box-shadow: inset 0 1px 0 var(--hi) !important; border-radius: var(--r-lg) !important; }
  html.m table.mcards tbody { background: transparent !important; border-radius: 0 !important; }
  html.m .panel table.mcards tbody tr + tr::before { background: var(--line) !important; }
  html.m .panelhead { border-bottom: 1px solid var(--line) !important; }
  html.m .panelhead h2, html.m .panelhead h3 { font-family: var(--display) !important; font-weight: 500 !important; letter-spacing: -.02em !important; font-size: 17px !important; }
  /* the title: the section line and the site's display font */
  html.m .mlt-eye { display: flex; align-items: center; gap: 8px; margin: 4px 2px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  html.m .mlt-eye i { width: 18px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  html.m .mlt { font-family: var(--display) !important; font-weight: 500 !important; letter-spacing: -.035em !important; font-size: 31px !important; line-height: 1.12 !important; margin-top: 0 !important; }
  html.m .topbar .mtitle { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
  /* numbers as on the site */
  html.m .card .metric, html.m .metric { font-family: var(--font) !important; font-weight: 600 !important; letter-spacing: -.025em !important; }
  html.m .card.primary .metric { color: var(--accent); }
  html.m .mwal-amt, html.m #modal .tradehead .bigamount { font-family: var(--font) !important; font-weight: 600 !important; letter-spacing: -.03em !important; }
  /* buttons: the site's 12 px corners and its secondary edge */
  html.m button.primary, html.m button.mag, html.m button.secondary, html.m button.danger, html.m button.solid { border-radius: 12px !important; }
  html.m button.mag, html.m button.primary { box-shadow: 0 10px 26px -14px var(--accent-glow, var(--accent)) !important; }
  html.m button.secondary { background: var(--glass-2) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--hi) !important; }
  html.m .head-actions button, html.m tr.mrow.mpo > td.mc-act button:not([data-action=trade]), html.m tr.mrow.mone > td.mc-act button:not([data-action=trade]) { border-radius: 11px !important; }
  /* tabs and chips: the active one is filled with the accent, like on the site */
  html.m .tab, html.m .chiptab, html.m .section-tab { border-radius: 10px !important; background: transparent !important; color: var(--muted) !important; box-shadow: none !important; }
  html.m .tab.active, html.m .chiptab.on, html.m .chiptab.active, html.m .section-tab.active, html.m [aria-pressed=true].chiptab { background: var(--accent) !important; color: var(--on-accent) !important; box-shadow: 0 8px 22px -14px var(--accent-glow, var(--accent)) !important; }
  html.m .section-tabs, html.m .chiptabs { background: var(--glass) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; padding: 4px !important; }
  html.m[data-mpo="1"] .tabs { background: var(--glass) !important; border: 1px solid var(--line) !important; }
  html.m[data-mpo="1"] .tabs .tab.active { background: var(--accent) !important; color: var(--on-accent) !important; }
  html.m[data-mpo="1"] .tabs .tab.active em, html.m[data-mpo="1"] .tabs .tab.active .count { background: color-mix(in oklab, var(--on-accent) 22%, transparent); color: var(--on-accent); }
  /* badges with the site's ring */
  html.m .badge { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bc, var(--neutral)) 28%, transparent) !important; }
  /* the order tile: the site's icon tile */
  html.m tr.mrow > td.mava { border-radius: 12px !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; }
  /* bars: glass with the hairline edge */
  html.m #mtabs { background: var(--m-glass) !important; box-shadow: inset 0 0 0 1px var(--line), var(--m-edge) !important; border-radius: 24px !important; }
  html.m #mtabs button, html.m .mtab-ind { border-radius: 20px !important; }
  html.m #mtabs button.on { color: var(--accent); }
  html.m.mscrolled .topbar { box-shadow: 0 1px 0 var(--line) !important; }
  /* sheets: opaque (no blur on phones), the site's surface over the page colour, a hairline edge */
  html.m dialog#modal:not(.mfull):not(.x-sheet), html.m dialog#modal[open]:not(.mfull), html.m dialog.msheet[class], html.m dialog#palette[open] { background-color: var(--bg) !important; background-image: linear-gradient(var(--glass-2), var(--glass-2)) !important; box-shadow: inset 0 0 0 1px var(--line-2), 0 -20px 60px -20px rgba(0, 0, 0, .55) !important; }
  html.m dialog#modal.mfull { background-image: none !important; box-shadow: none !important; }
  /* motion: the site's easing for entering content */
  html.m .rv { animation: none !important; }   /* no rise-in on phones: every page opened with a blank frame and a fade (owner 23.10.2026) */
}
@media (max-width: 760px) {
  html.m .section-tabs .section-tab.active, html.m .form-tabs button.active, html.m[data-scheme=light] .section-tabs .section-tab.active, html.m[data-scheme=light] .form-tabs button.active {
    background: var(--accent) !important; color: var(--on-accent) !important; box-shadow: 0 8px 22px -14px var(--accent-glow, var(--accent)) !important; }
  html.m .section-tabs .section-tab, html.m .form-tabs button { border-radius: 10px !important; color: var(--muted) !important; }
}

/* ── Pay-out status grid (owner 23.10.2026): the chosen status fills its whole cell, edge to edge — no small pill inside ── */
@media (max-width: 760px) {
  html.m[data-mpo="1"] #content .tabs { gap: 1px !important; padding: 0 !important; overflow: hidden !important; border-radius: 16px !important;
    background: var(--m-sep) !important; border: 1px solid var(--m-sep) !important; }
  html.m[data-mpo="1"] #content .tabs .tab { height: 46px !important; min-height: 46px !important; border-radius: 0 !important; margin: 0 !important;
    background: var(--m-fill) !important; box-shadow: none !important; transition: background-color .2s ease, color .2s ease; }
  html.m[data-mpo="1"] #content .tabs .tab.active { background: var(--accent) !important; color: var(--on-accent) !important; }
}

/* ── Orders, requisites, statistics on phones (owner 23.10.2026) ── */
@media (max-width: 760px) {
  /* pay-in of an executor: no summary cards, the same status grid and cards as pay-out */
  html.m[data-mpo="1"] #content .cards { display: none !important; }
  /* the «Прийняти» button: a calm accent chip with a check, not a big white pill */
  html.m tr.mrow.mpo > td.mc-act button.mtake { height: 38px !important; min-height: 38px !important; padding: 0 14px 0 11px !important; border-radius: 12px !important; gap: 6px;
    display: inline-flex; align-items: center; font-size: 14.5px !important; font-weight: 700 !important; letter-spacing: 0;
    background: color-mix(in oklab, var(--accent) 16%, transparent) !important; color: var(--accent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 42%, transparent) !important; transition: transform .15s ease, background-color .2s ease; }
  html.m tr.mrow.mpo > td.mc-act button.mtake svg { width: 16px; height: 16px; stroke-width: 2.4; }
  html.m tr.mrow.mpo > td.mc-act button.mtake:active { transform: scale(.96); background: color-mix(in oklab, var(--accent) 26%, transparent) !important; }
  html.m tr.mrow.mpo > td.mcard { font-variant-numeric: tabular-nums; letter-spacing: .01em !important; }
  /* the search bar of the order pages: search always visible, «Фільтри» opens the rest */
  html.m .mfbar { display: flex; gap: 8px; margin: 0 0 10px; }
  html.m .mfsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px;
    background: var(--m-fill); color: var(--muted); }
  html.m .mfsearch svg { width: 17px; height: 17px; flex: none; }
  html.m .mfbar .mfsearch input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]), html.m .mfbar .mfsearch input[type=search]:focus { flex: 1; min-height: 0 !important; border-radius: 0 !important; -webkit-appearance: none; appearance: none; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; font: 500 15.5px var(--font); color: var(--text); outline: none; }
  html.m .mfsearch:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
  html.m .mfbtn { flex: none; height: 44px; min-height: 44px !important; padding: 0 14px !important; border-radius: 12px !important; display: inline-flex; align-items: center; gap: 7px;
    background: var(--m-fill) !important; color: var(--text) !important; box-shadow: none !important; font-weight: 650; font-size: 14.5px; }
  html.m .mfbtn svg { width: 17px; height: 17px; }
  html.m .mfbtn.on, html.m .mfbtn.open { background: color-mix(in oklab, var(--accent) 16%, transparent) !important; color: var(--accent) !important; }
  html.m .mfbtn .mbadge { position: static; margin: 0; background: var(--accent); color: var(--on-accent); }
  html.m details.mfold-bare { border: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; }
  html.m details.mfold-bare > summary { display: none !important; }
  html.m details.mfold-bare[open] { margin: 0 0 12px !important; padding: 12px 0 0 !important; }
  html.m details.mfold-bare > form { padding: 0 !important; }
  html.m .mf-hidden { display: none !important; }
  /* requisites: two tiles in a row */
  html.m .bcgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  html.m .bcgrid.two .bankcard, html.m .bcgrid.two .bcnew { border-radius: 14px !important; }
  html.m .bcgrid.two .bc-face { padding: 11px 12px !important; border-radius: 14px !important; }
  html.m .bcgrid.two .bc-top b { font-size: 12.5px !important; }
  html.m .bcgrid.two .bc-kind { font-size: 8.5px !important; letter-spacing: .1em !important; }
  html.m .bcgrid.two .bc-chip { width: 26px !important; height: 19px !important; border-radius: 4px !important; }
  html.m .bcgrid.two .bc-num { font-size: 11.5px !important; letter-spacing: .03em !important; white-space: nowrap; }
  html.m .bcgrid.two .bc-bottom { font-size: 11px !important; gap: 6px !important; }
  html.m .bcgrid.two .bc-bottom > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.m .bcgrid.two .bc-bottom small { display: none !important; }
  html.m .bcgrid.two .bc-led { font-size: 0 !important; padding: 0 !important; width: 9px; height: 9px; min-width: 9px; border-radius: 50%; }
  html.m .bcgrid.two .bc-led::before { margin: 0 !important; }
  html.m .bcgrid.two .bc-lines small { font-size: 8.5px !important; }
  html.m .bcgrid.two .bc-lines b { font-size: 11px !important; }
  html.m .bcgrid.two .bcmeta { padding: 8px 2px 0 !important; gap: 4px !important; align-items: flex-start; }
  html.m .bcgrid.two .bcmeta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.m .bcgrid.two .bcmeta small { font-size: 11px; }
  html.m .bcgrid.two .bcmeta .bcact { display: flex; gap: 0; }
  html.m .bcgrid.two .bcmeta .bcact button { width: 32px; height: 32px; min-height: 32px !important; padding: 0 !important; }
  html.m .bcgrid.two .bcnew small { display: none; }
  html.m .viewseg button { width: 38px; height: 34px; min-height: 34px !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
  html.m .viewseg svg { width: 17px; height: 17px; }
}

/* ── Phone polish (owner 23.10.2026): calmer accents, one-line rows, tighter panels ── */
@media (max-width: 760px) {
  /* a new order is announced by the pulsing tile only — no hard bar along the list */
  html.m table.mcards tbody tr.fresh { box-shadow: none !important; }
  html.m .mlast { display: none; }
  /* history: one tidy line per operation */
  html.m .mtx-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.3; }
  html.m .mtx-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  /* the auto-take strip: one slim row */
  html.m .autotake .setrow { padding: 10px 12px 10px 16px !important; min-height: 0 !important; gap: 10px; }
  html.m .autotake .setrow b { font-size: 14px; }
  html.m .autotake .setrow small { font-size: 12px; }
  html.m .autotake .setrow button { height: 34px; min-height: 34px !important; padding: 0 14px !important; border-radius: 10px !important; font-size: 13.5px !important; }
  html.m .autotake.on { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 45%, transparent) !important; }
  /* tapping a row feels like a button */
  html.m table.mcards tbody tr.mc-tap { transition: background-color .18s ease, transform .18s ease; }
  html.m table.mcards tbody tr.mc-tap:active { background: color-mix(in oklab, var(--text) 5%, transparent) !important; }
  /* panel heads: the same rhythm everywhere */
  html.m .panel > .panelhead, html.m .panel > header { min-height: 52px; padding: 12px 16px !important; }
  html.m .panel > .panelhead h2, html.m .panel > header h2, html.m .panel > .panelhead h3 { font-size: 17px !important; line-height: 1.25; }
  /* amounts line up as numbers */
  html.m .mc-amt strong, html.m .mtx-amt b, html.m .bigmetric, html.m .mcard { font-variant-numeric: tabular-nums; }
}

/* ── Requisites head, filters, search, status tiles (owner 23.10.2026) ── */
@media (max-width: 760px) {
  /* the view switch on the left, «Додати реквізит» on the right — the same height */
  html.m .pagehead .head-actions:has(.reqadd) { display: flex !important; justify-content: space-between; align-items: center; width: 100%; gap: 10px; }
  html.m .viewseg { height: 44px; padding: 4px !important; border-radius: 12px !important; display: inline-flex; align-items: stretch; }
  html.m .viewseg button { height: 36px !important; min-height: 36px !important; width: 42px; border-radius: 9px !important; }
  html.m .reqadd { height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 12px !important; font-size: 15px !important; margin-left: auto; }
  /* full numbers on the tiles fit */
  html.m .bcgrid.two .bc-num { font-size: 10.5px !important; letter-spacing: 0 !important; }
  /* the folded filters: two columns that never overflow, dates included */
  html.m details.mfold-bare form.filters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 10px !important; }
  html.m details.mfold-bare form.filters > * { min-width: 0 !important; max-width: 100%; margin: 0 !important; }
  html.m details.mfold-bare form.filters label, html.m details.mfold-bare form.filters .field { display: grid; gap: 5px; min-width: 0; font-size: 12.5px; }
  html.m form.filters input[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box; text-align: left; padding: 0 12px !important; line-height: 44px; }
  html.m form.filters input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
  html.m details.mfold-bare form.filters > button, html.m details.mfold-bare form.filters .formactions, html.m details.mfold-bare form.filters > .rowact { grid-column: 1 / -1; }
  /* the search field: one soft ring, no inner box */
  html.m .mfbar .mfsearch input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]), html.m .mfbar .mfsearch input[type=search]:focus { outline: none !important; box-shadow: none !important; background: transparent !important; }
  html.m .mfsearch:focus-within { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--accent) 70%, transparent) !important; background: color-mix(in oklab, var(--accent) 6%, var(--m-fill)); }
  /* status tiles (owner 23.10.2026): a one-colour line icon over the label; the chosen tile filled with the accent */
  html.m[data-mpo="1"] #content .tabs .tab { height: 64px !important; min-height: 64px !important; flex-direction: column !important; gap: 5px !important; padding: 8px 4px !important; }
  html.m[data-mpo="1"] #content .tabs .tab .tem { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); transition: color .2s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
  html.m[data-mpo="1"] #content .tabs .tab .tem svg { width: 21px; height: 21px; stroke-width: 1.9; }
  html.m[data-mpo="1"] #content .tabs .tab .tlb { font-size: 12.5px; font-weight: 650; line-height: 1.15; }
  html.m[data-mpo="1"] #content .tabs .tab.active .tem { color: currentColor; transform: translateY(-1px) scale(1.06); }
  /* the bell: buttons in one row */
  html.m #modal .nfoot { position: static; }
  html.m #modal .nsgroup { background: var(--m-fill); }
}

/* ══ Phone, round 3 (owner 23.10.2026): variant А and the eight improvements ══ */
@media (max-width: 760px) {
  /* 1 · one compact header: the page name sits in the top bar next to the bell, no eyebrow, no second big title */
  html.m #content > h1.mlt, html.m #content > .mlt-eye { display: none !important; }
  html.m .topbar .mtitle { opacity: 1 !important; transform: none !important; font-family: var(--display) !important; font-size: 26px !important; font-weight: 600 !important; letter-spacing: -.03em !important; line-height: 1.1; transition: font-size .25s var(--m-out) !important; }
  html.m.mscrolled .topbar .mtitle { font-size: 18px !important; letter-spacing: -.01em !important; }
  html.m #content { padding-top: 6px !important; }

  /* А · the work switch: Нові · Мої · Спірні with counters, «Історія» beside it */
  html.m .segbar { display: flex; gap: 8px; align-items: stretch; margin: 0 0 10px; padding: 0 !important; }
  html.m #content .segbar .tabs.seg3 { flex: 1; min-width: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2px !important; height: 44px; padding: 3px !important; margin: 0 !important;
    background: var(--m-fill) !important; border: 0 !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: none !important; }
  html.m #content .segbar .tabs.seg3 .tab { height: 38px !important; min-height: 38px !important; padding: 0 6px !important; margin: 0 !important; border-radius: 9px !important; flex-direction: row !important; gap: 6px !important;
    background: transparent !important; color: var(--muted) !important; box-shadow: none !important; font: 650 14px var(--font) !important; white-space: nowrap; justify-content: center; }
  html.m #content .segbar .tabs.seg3 .tab.active { background: var(--m-grp) !important; color: var(--text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .22), inset 0 0 0 .5px var(--m-sep) !important; }
  html.m #content .segbar .tabs.seg3 .tab .tlb { font-size: 14px !important; }
  html.m #content .segbar .tabs.seg3 .tab em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font: 700 12px/1 var(--font); background: color-mix(in oklab, var(--accent) 20%, transparent); color: var(--accent); }
  html.m #content .segbar .tabs.seg3 .tab.alarm em { background: var(--bad); color: #fff; }
  html.m #content .segbar .tabs.seg3 .tab.alarm:not(.active) { color: var(--text) !important; }
  html.m .histbtn { flex: none; height: 44px !important; min-height: 44px !important; padding: 0 12px !important; border-radius: 12px !important; display: inline-flex; align-items: center; gap: 6px;
    background: var(--m-fill) !important; color: var(--text) !important; box-shadow: none !important; font: 600 14px var(--font) !important; }
  html.m .histbtn svg { width: 17px; height: 17px; }
  html.m .histbtn { width: 44px; padding: 0 !important; justify-content: center; }
  html.m .histbtn span { display: none; }
  html.m #content .segbar .tabs.seg3 .tab { padding: 0 4px !important; gap: 5px !important; }
  html.m .histline { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; padding: 0 2px 0 4px !important; color: var(--accent); }
  html.m .histline .histlink { justify-content: flex-start !important; }
  html.m .histline > svg { width: 16px; height: 16px; flex: none; }
  html.m .histline .histlink { flex: 1; min-width: 0; text-align: left; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 32px !important; color: var(--text) !important; font: 600 14px var(--font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m .histline .ghost.icon { width: 32px; height: 32px; min-height: 32px !important; border-radius: 50% !important; background: var(--m-fill) !important; }
  html.m .histbtn.on { background: color-mix(in oklab, var(--accent) 16%, transparent) !important; color: var(--accent) !important; }

  /* 2 · lists without a box around them: rows across the screen with thin separators */
  html.m #content section.panel.ordersp { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  html.m #content section.panel.ordersp::before, html.m #content section.panel.ordersp::after { display: none !important; }
  html.m #content section.panel.ordersp .tablewrap { margin: 0 -16px !important; border-radius: 0 !important; background: transparent !important; }
  html.m #content section.panel.ordersp table.mcards tbody tr.mrow { padding: 14px 16px !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; margin: 0 !important; }
  html.m #content section.panel.ordersp table.mcards tbody tr.mrow + tr.mrow { box-shadow: inset 72px 0 0 transparent, inset 0 .5px 0 var(--m-sep) !important; }
  html.m #content section.panel.ordersp .pager { padding: 14px 0 0 !important; border: 0 !important; }
  html.m #content section.panel.ordersp .empty { padding: 36px 16px !important; }

  /* 3 · the order card: amount + timer · bank and card · small line with what you earn; the button centred on the right */
  html.m table.mcards tr.mrow.mpo { grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-areas: "ava amt timer" "ava card act" "ava sub act" !important; row-gap: 3px !important; align-items: center; }
  html.m tr.mrow.mpo > td.mcard { grid-area: card; margin: 0 !important; font: 600 14.5px var(--font) !important; }
  html.m tr.mrow.mpo > td.msub { grid-area: sub; font-size: 12.5px !important; color: var(--muted); display: flex !important; flex-wrap: wrap; gap: 0 5px !important; align-items: baseline; justify-content: flex-start !important; }
  html.m tr.mrow.mpo > td.msub > * { flex: none !important; width: auto !important; }
  html.m tr.mrow.mpo > td.msub .mrew { color: var(--ok); font-weight: 700; }
  html.m tr.mrow.mpo > td.mc-act { grid-area: act; align-self: center !important; margin: 0 !important; }
  html.m tr.mrow.mpo > td.mava { align-self: start; margin-top: 2px !important; }

  /* 4 · auto-take: a round switch in the top bar, green dot while it works; the strip itself is hidden */
  html.m #content .autotake { display: none !important; }
  html.m .topbar .mauto { position: relative; width: 40px !important; min-width: 40px; height: 40px !important; min-height: 40px !important; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center;
    background: var(--m-grp) !important; color: var(--text) !important; box-shadow: var(--m-edge) !important; border: 0 !important; }   /* like search and the bell (owner 24.10.2026) */
  html.m .topbar .mauto svg { width: 19px; height: 19px; }
  html.m .topbar .mauto .mdot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); display: none; }
  html.m .topbar .mauto.on { color: var(--ok) !important; background: color-mix(in oklab, var(--ok) 16%, transparent) !important; }
  html.m .topbar .mauto.on .mdot { display: block; }

  /* 5 · filters in a sheet with «Показати N заявок» */
  html.m dialog.mfdialog .mfsheet form.filters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 10px !important; padding: 4px 0 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html.m dialog.mfdialog .mfsheet form.filters > * { min-width: 0 !important; margin: 0 !important; }
  html.m dialog.mfdialog .mfsheet form.filters label, html.m dialog.mfdialog .mfsheet form.filters .field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
  html.m dialog.mfdialog .mfsheet form.filters input, html.m dialog.mfdialog .mfsheet form.filters select { width: 100% !important; min-width: 0 !important; color: var(--text); }
  html.m dialog.mfdialog .mfsheet form.filters > button[type=submit], html.m dialog.mfdialog .mfsheet form.filters > button:not([type]) { display: none !important; }
  html.m dialog.mfdialog .mfsheet form.filters [data-action="reset-filters"], html.m dialog.mfdialog .mfsheet form.filters .presets, html.m dialog.mfdialog .mfsheet form.filters > .formactions { grid-column: 1 / -1; justify-self: start; }
  html.m dialog.mfdialog .mfsheet-foot { position: sticky; bottom: 0; padding: 14px 0 calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
  html.m dialog.mfdialog .mfshow { width: 100%; height: 50px !important; min-height: 50px !important; border-radius: 14px !important; font: 700 16px var(--font) !important; justify-content: center; }
  html.m .mfhold { display: none !important; }

  /* 6 · new orders while scrolled: a pill at the top */
  html.m #mnew { position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top) + 62px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 12px !important;
    border-radius: 19px !important; background: var(--accent) !important; color: var(--on-accent) !important; font: 700 14px var(--font) !important; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .45) !important; animation: mnewin .35s cubic-bezier(.3, 1.4, .5, 1); }
  html.m #mnew svg { width: 16px; height: 16px; transform: rotate(-90deg); stroke-width: 2.4; }
  @keyframes mnewin { from { opacity: 0; transform: translate(-50%, -12px) scale(.9); } }

  /* 7 · one reading font: the wide display face only for page names and big amounts */
  html.m .panelhead h2, html.m .panel > header h2, html.m .msheet-head b, html.m #modal .dhead h2, html.m #modal .dialoghead h2, html.m .ntx b, html.m .tlb, html.m .bcmeta b, html.m .setrow b, html.m .card .c-top span { font-family: var(--font) !important; letter-spacing: -.01em !important; }
  html.m .panelhead h2 { font-weight: 650 !important; font-size: 17px !important; }

  /* 8 · quiet empty states: a small icon and one line */
  html.m .empty { padding: 28px 16px !important; gap: 6px; }
  html.m .empty .stack3d { display: none !important; }
  html.m .empty .empty-ic { display: grid !important; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px; background: var(--m-fill); color: var(--muted); }
  html.m .empty .empty-ic svg { width: 21px; height: 21px; stroke-width: 1.9; }
  html.m .empty h3 { font: 650 16px var(--font) !important; margin: 0 !important; }
  html.m .empty p { font-size: 13.5px !important; margin: 0 !important; color: var(--muted); }
  html.m .empty p:empty { display: none; }
}

/* ── Pay-out card, round 4 (owner 23.10.2026): the USDT you receive in bold; «Взяти» as a tall tile on the right edge ── */
@media (max-width: 760px) {
  html.m tr.mrow.mpo > td.msub .mgot { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
  html.m table.mcards tr.mrow.mpo:has(button.mtake) { grid-template-columns: 44px minmax(0, 1fr) 60px !important; grid-template-areas: "ava amt act" "ava card act" "ava sub act" !important; }
  html.m table.mcards tr.mrow.mpo:has(button.mtake) > td.mc-timer { display: none !important; }
  html.m tr.mrow.mpo > td.mc-act:has(button.mtake) { align-self: stretch !important; display: flex !important; padding: 0 !important; margin: 0 !important; }
  html.m tr.mrow.mpo > td.mc-act button.mtake { width: 60px !important; height: auto !important; min-height: 60px !important; flex: 1; padding: 6px 0 !important; border-radius: 16px !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 12.5px var(--font) !important; letter-spacing: .01em;
    background: color-mix(in oklab, var(--accent) 14%, transparent) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 34%, transparent) !important; }
  html.m tr.mrow.mpo > td.mc-act button.mtake svg { width: 22px; height: 22px; stroke-width: 2.4; }
  html.m tr.mrow.mpo > td.mc-act button.mtake:active { transform: scale(.94); background: var(--accent) !important; color: var(--on-accent) !important; }
}

/* ── Pay-out on phones (owner 23.10.2026): no «Взяти» button — an order is taken with a swipe to the left ── */
@media (max-width: 760px) {
  html.m table.mcards tr.mrow.mpo:has(button.mtake) { grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-areas: "ava amt timer" "ava card card" "ava sub sub" !important; }
  html.m table.mcards tr.mrow.mpo:has(button.mtake) > td.mc-timer { display: block !important; }
  html.m table.mcards tr.mrow.mpo:has(button.mtake) > td.mc-timer:has(.muted) { display: none !important; }
  html.m tr.mrow.mpo > td.mc-act:has(button.mtake) { display: none !important; }
}

/* tab switches are instant, like iOS (owner 23.10.2026): no fade or sliding rows when a page opens — that read as a blink */
@media (max-width: 760px) {
  html.m .menter, html.m .menter table.mcards tbody tr, html.m .menter .cards > .card, html.m .menter .rv { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 760px) { html.m #content tbody tr:not(.fresh), html.m #content .split .ch, html.m #content .card, html.m #content .panel { animation: none !important; } }

/* ── Sheets sit on the bottom edge (owner 23.10.2026): no strip of the page showing under or beside them ── */
@media (max-width: 760px) {
  html.m dialog#modal:not(.mfull), html.m dialog.msheet { left: 0 !important; right: 0 !important; bottom: 0 !important; max-height: calc(100dvh - var(--sat) - 10px) !important;
    border-radius: 22px 22px 0 0 !important; padding-bottom: var(--sab) !important; }
  html.m dialog#modal[data-det=full] { border-radius: 22px 22px 0 0 !important; }
  html.m #modal .dialog-actions, html.m #modal .formactions { padding-bottom: 10px !important; }
}

/* ── Order card, round 5 (owner 23.10.2026): «UAH → USDT» in one line, the card and the rate under it ── */
@media (max-width: 760px) {
  html.m table.mcards tr.mrow.mpo { grid-template-areas: "ava amt timer" "ava card card" "ava sub sub" !important; }
  html.m tr.mrow.mpo > td.mc-amt strong { display: inline-flex !important; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
  html.m tr.mrow.mpo .marrow { display: inline-grid; place-items: center; align-self: center; color: var(--muted); }
  html.m tr.mrow.mpo .marrow svg { width: 15px; height: 15px; stroke-width: 2.2; }
  html.m tr.mrow.mpo .musdt { font: 700 16px var(--font); color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  html.m tr.mrow.mpo > td.mcard { display: flex !important; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  html.m tr.mrow.mpo > td.mcard i { color: var(--muted); font-style: normal; }
  html.m tr.mrow.mpo > td.mcard .mrate { color: var(--muted); font-weight: 500; font-size: 13.5px; }
  /* the confirmation of a pay-in */
  html.m .confirmsum, .confirmsum { display: grid; gap: 4px; justify-items: center; padding: 18px 12px; border-radius: 16px; background: color-mix(in oklab, var(--text) 5%, transparent); text-align: center; }
  .confirmsum b { font: 700 28px var(--display); letter-spacing: -.02em; } .confirmsum b em { font-style: normal; font-size: 15px; color: var(--muted); font-family: var(--font); }
  .confirmsum span { color: var(--muted); font-size: 14px; }
  /* a money request: its head */
  html.m tr.wreq { cursor: pointer; }
}
.confirmsum { display: grid; gap: 4px; justify-items: center; padding: 18px 12px; border-radius: 16px; background: color-mix(in oklab, var(--text) 5%, transparent); text-align: center; }
.confirmsum b { font: 700 28px var(--display); letter-spacing: -.02em; } .confirmsum b em { font-style: normal; font-size: 15px; color: var(--muted); font-family: var(--font); }
.confirmsum span { color: var(--muted); font-size: 14px; }
.wdhead { display: grid; justify-items: center; gap: 8px; padding: 8px 0 16px; }
.wdhead .wdic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); }
.wdhead.out .wdic { background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--warn); }
.wdhead .wdic svg { width: 22px; height: 22px; }
.wdhead > b { font: 700 30px var(--display); letter-spacing: -.02em; } .wdhead > b em { font-style: normal; font-size: 15px; color: var(--muted); font-family: var(--font); }
.formswitch { padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, var(--text) 5%, transparent); grid-column: 1 / -1; min-height: 60px; }
@media (max-width: 760px) { html.m tr.mrow.mpo > td.mcard { justify-content: flex-start !important; } html.m tr.mrow.mpo > td.mcard > * { flex: none !important; width: auto !important; margin: 0 !important; } }
@media (max-width:760px) {
  html.m #mtabs .mbadge.soft { background: var(--accent); color: var(--on-accent, #000); }
}

@media (max-width:760px) {
  /* owner 24.10.2026: a solid background — pulling the page down shows no colour behind */
  html.m, html.m body { background: var(--bg) !important; }
  html.m body::before { background: none !important; }
  /* statistics: the ring and the lines use the whole width */
  html.m .dstat { display: flex !important; flex-direction: row; align-items: center; gap: 16px; }
  html.m .dstat > .dring { flex: none; }
  html.m .dstat > .stack { flex: 1 1 auto; min-width: 0; width: auto; }
  html.m .dstat .line b { white-space: nowrap; }
  /* balance actions: labels never cut */
  html.m .mwal-acts { width: 100%; gap: 10px; justify-content: center; overflow: visible; }
  html.m .mwal-act { flex: 0 0 auto; width: 98px; overflow: visible !important; text-overflow: clip !important; }
  html.m .mwal-act span { display: block; width: 100%; text-align: center; font-size: 13px; white-space: nowrap; overflow: visible !important; text-overflow: clip !important; }
}
@media (max-width:760px) { html.m .msheet-item .mbadge.soft { background: var(--accent); color: var(--on-accent, #000); } }

@media (max-width:760px) { html.m #content .atbtn { display: none !important; } }
@media (max-width:760px) {
  /* owner 24.10.2026: squarer timers; on a taken pay-out the timer sits on the second line so «UAH → USDT» stays on one line */
  html.m .timer, html.m tr.mrow.mpo > td.mc-timer .timer { border-radius: 6px !important; }
  /* a running timer: «UAH → USDT» stays on one line next to it (slightly smaller figures) */
  html.m tr.mrow.mpo:has(> td.mc-timer .timer) > td.mc-amt { flex-wrap: nowrap; overflow: hidden; }
  html.m tr.mrow.mpo:has(> td.mc-timer .timer) > td.mc-amt strong { font-size: 17px !important; }
  html.m tr.mrow.mpo:has(> td.mc-timer .timer) > td.mc-amt * { white-space: nowrap; }
  html.m tr.mrow.mpo > td.mc-timer .timer { font-size: 12px !important; padding: 2px 6px !important; }
  html.m tr.mrow.mpo > td.mc-amt { white-space: nowrap; min-width: 0; }
}
@media (max-width:760px) {
  html.m tr.mrow > td.mava.mlogo { background: none !important; padding: 0; overflow: hidden; border-radius: 12px !important; }
  html.m tr.mrow > td.mava.mlogo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }
}
@media (max-width: 760px) {
  /* the copy panel leads the order sheet on a phone, big targets */
  html.m #modal .dialogbody > .paycopy { order: 2 !important; margin: 4px 0 0; }
  html.m .paycopy .pc-row { padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--m-grp-2); border: 0; }
  html.m[data-scheme=light] .paycopy .pc-row { background: var(--bg); }
  html.m .paycopy b { font-size: 18px; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
  html.m .paycopy .pc-row > button { min-height: 40px !important; height: 40px; padding: 0 12px; border-radius: 12px !important; font-size: 14px; gap: 6px; }
}
/* owner 28.10.2026: the phone viewer in the theme colours too (it still fades as you swipe it down) */
html.m dialog.fv { background: color-mix(in oklab, var(--bg) calc(var(--fv-dim, 1) * 100%), transparent) !important; }
html.m dialog.fv::backdrop { background: var(--bg); }
html.m .fv .fv-bar { background: linear-gradient(color-mix(in oklab, var(--bg) 92%, transparent), transparent) !important; }
html.m .fv .fv-title b { color: var(--text); }
html.m .fv .fv-title small { color: var(--muted); }
html.m .fv .fv-tools > .fv-x, html.m .fv .fv-tools > [data-fv="dl"] { background: color-mix(in oklab, var(--field) 85%, transparent) !important; color: var(--text); border: 1px solid var(--line) !important; }
html.m .fv .fv-count { background: color-mix(in oklab, var(--field) 90%, transparent); color: var(--text); }
