/* iPhone app only (html.native-app, set in index.html when Capacitor is
   present): native iOS look on top of the phone shell (owner-approved
   canvas "TredFlex iOS Native Look", 2026-10-11). Loaded LAST and every
   rule is scoped to html.web-shell.native-app, so the web app and the
   phone browser keep their own design untouched. Prefix: ios-. */
@media (max-width: 979px) {
  html.web-shell.native-app {
    /* System font for text; JetBrains Mono stays for prices and P&L. */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    --ios-green: #34c759;
    --ios-seg-bg: #262f43;
    --ios-seg-on: #59647a;
    --ios-seg-on-ink: #ffffff;
    --ios-bar: rgba(23, 31, 48, 0.82);
    --ios-head: rgba(13, 20, 33, 0.78);
    --ios-sep: rgba(255, 255, 255, 0.08);
  }
  html.web-shell.native-app[data-theme="light"] {
    --ios-seg-bg: #e6e8ec;
    --ios-seg-on: #ffffff;
    --ios-seg-on-ink: #1e2329;
    --ios-bar: rgba(249, 250, 251, 0.86);
    --ios-head: rgba(247, 248, 250, 0.82);
    --ios-sep: rgba(0, 0, 0, 0.1);
  }
  html.web-shell.native-app body { font-family: var(--font); -webkit-font-smoothing: antialiased; }

  /* ------------------------------------------------ header + large title */
  html.web-shell.native-app .app-header {
    background: transparent;
    border-bottom: 0.5px solid transparent;
    transition: background-color .2s, border-color .2s;
  }
  html.web-shell.native-app.ios-scrolled .app-header {
    background: var(--ios-head);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--ios-sep);
  }
  /* small centred title appears only once the large title has scrolled away */
  html.web-shell.native-app.ios-has-lt .app-header h1 {
    opacity: 0; transition: opacity .18s;
    font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
    justify-content: center; text-align: center;
  }
  html.web-shell.native-app.ios-has-lt.ios-scrolled .app-header h1 { opacity: 1; }
  html.web-shell.native-app.ios-has-lt .app-header h1.logo::before { display: none; }
  html.web-shell.native-app .ios-lt {
    margin: 4px 0 10px; padding: 0;
    font-family: var(--font); font-size: 34px; line-height: 41px; font-weight: 700;
    letter-spacing: 0.01em; color: var(--mws-ink);
  }
  /* back button: plain gold chevron, no box */
  html.web-shell.native-app #back-btn {
    background: transparent; border: 0; width: 30px; flex-basis: 30px;
    color: var(--mws-gold); margin-left: -8px;
  }
  html.web-shell.native-app #back-btn::before { width: 24px; height: 24px; }
  html.web-shell.native-app .mws-hdr-btn { border: 0; border-radius: 16px; }

  /* --------------------------------------------------------- tab bar */
  html.web-shell.native-app .bottom-nav {
    background: var(--ios-bar);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--ios-sep);
    box-shadow: none;
  }
  html.web-shell.native-app .bottom-nav .nav-icon::before { width: 25px; height: 25px; }
  html.web-shell.native-app .bottom-nav .nav-btn .nav-label {
    font-family: var(--font); font-size: 10px; font-weight: 500;
    letter-spacing: 0; text-transform: none;
  }

  /* ---------------------------------------------- grouped lists, cards */
  html.web-shell.native-app .mws-card { border: 0; border-radius: 16px; }
  html.web-shell.native-app .mws-lbl {
    font-family: var(--font); font-size: 13px; letter-spacing: 0; font-weight: 400;
    text-transform: uppercase; color: var(--mws-ink-3);
  }
  html.web-shell.native-app .ios-group {
    background: var(--mws-card); border-radius: 12px; overflow: hidden;
  }
  html.web-shell.native-app .ios-group-hd { margin: 6px 16px 7px; }
  html.web-shell.native-app .ios-row {
    display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 0 14px; cursor: pointer; color: var(--mws-ink);
    -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-row { position: relative; }
  /* USDT in Earn as a row with its switch (owner 2026-10-21) */
  html.web-shell.native-app .ios-earnrow { min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
  html.web-shell.native-app .ios-earnrow .ios-tx span.ok { color: var(--mws-up); }
  html.web-shell.native-app .ios-earnrow .mws-switch, html.web-shell.native-app .ios-earnhd .mws-switch { flex-shrink: 0; }
  html.web-shell.native-app .ios-earnsheet { display: flex; flex-direction: column; gap: 14px; }
  html.web-shell.native-app .ios-earnhd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mws-bg); border: 1px solid var(--mws-line-2); }
  html.web-shell.native-app .ios-earnhd.on { border-color: rgba(32, 199, 117, .4); }
  html.web-shell.native-app .ios-earnhd .ios-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
  html.web-shell.native-app .ios-earnhd .ios-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-earnhd .ios-tx b { font-size: 15px; }
  html.web-shell.native-app .ios-earnhd .ios-tx span { font-size: 13px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-earnhd .ios-tx span.ok { color: var(--mws-up); }
  html.web-shell.native-app .ios-earnstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.web-shell.native-app .ios-earnstat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--mws-bg); }
  html.web-shell.native-app .ios-earnstat b { font-family: var(--mws-mono); font-size: 16px; }
  html.web-shell.native-app .ios-earnstat b.up { color: var(--mws-up); }
  html.web-shell.native-app .ios-earnstat span { font-size: 12px; color: var(--mws-ink-3); text-transform: uppercase; letter-spacing: .3px; }
  html.web-shell.native-app .ios-earnlines { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell.native-app .ios-earnlines > div { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-earnlines b { color: var(--mws-up); flex-shrink: 0; }
  html.web-shell.native-app .ios-earnfoot { font-size: 12px; color: var(--mws-ink-3); text-align: center; line-height: 1.4; }
  html.web-shell.native-app .ios-row + .ios-row::before {
    content: ""; position: absolute; top: 0; left: 57px; right: 0; height: 0.5px; background: var(--ios-sep);
  }
  html.web-shell.native-app .ios-row .ios-ic {
    width: 29px; height: 29px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
  }
  html.web-shell.native-app .ios-row .ios-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  html.web-shell.native-app .ios-row .ios-tx b { font-size: 17px; font-weight: 400; }
  html.web-shell.native-app .ios-row .ios-tx span {
    font-size: 13px; color: var(--mws-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell.native-app .ios-row .ios-chev { color: var(--mws-ink-3); opacity: .7; flex-shrink: 0; }

  /* ------------------------------------------------------- switches */
  html.web-shell.native-app input[type="checkbox"].mws-switch,
  html.web-shell.native-app .mws-switch-host input[type="checkbox"] {
    width: 51px; height: 31px; border: 0; background: rgba(120, 120, 128, 0.32);
  }
  html.web-shell.native-app input[type="checkbox"].mws-switch::after,
  html.web-shell.native-app .mws-switch-host input[type="checkbox"]::after {
    top: 2px; left: 2px; width: 27px; height: 27px; background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  }
  html.web-shell.native-app input[type="checkbox"].mws-switch:checked,
  html.web-shell.native-app .mws-switch-host input[type="checkbox"]:checked {
    background: var(--ios-green); border: 0;
  }
  html.web-shell.native-app input[type="checkbox"].mws-switch:checked::after,
  html.web-shell.native-app .mws-switch-host input[type="checkbox"]:checked::after {
    transform: translateX(20px); background: #fff;
  }
  html.web-shell.native-app .pf-tgl.on { background: var(--ios-green); }

  /* -------------------------------------------- segmented controls */
  html.web-shell.native-app .mws-seg {
    background: var(--ios-seg-bg); border: 0; border-radius: 8px; padding: 2px; gap: 0;
  }
  html.web-shell.native-app .mws-seg .s {
    border-radius: 8px; font-family: var(--font); font-size: 13px; letter-spacing: 0;
    text-transform: none; color: var(--mws-ink-2);
  }
  html.web-shell.native-app .mws-seg .s.on,
  html.web-shell.native-app .mws-seg .s.earn.on {
    background: var(--ios-seg-on); color: var(--ios-seg-on-ink); font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  }

  /* ------------------------------------------------ bottom sheets */
  html.web-shell.native-app .modal-host:not(.pin-overlay) > .modal {
    border: 0; border-radius: 16px 16px 0 0;
    animation: ios-sheet-up .32s cubic-bezier(.2, .9, .25, 1);
    touch-action: pan-y;
  }
  html.web-shell.native-app .modal-host:not(.pin-overlay) > .modal::before {
    top: 7px; width: 36px; height: 5px; border-radius: 3px;
  }
  html.web-shell.native-app .modal-host:not(.pin-overlay) > .modal.ios-dragging { animation: none; transition: none; }
  html.web-shell.native-app .modal-host:not(.pin-overlay) > .modal.ios-settle { transition: transform .25s cubic-bezier(.2, .9, .25, 1); }
  @keyframes ios-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* ------------------------------------------------ touch feedback */
  html.web-shell.native-app .ios-row:active,
  html.web-shell.native-app .mws-row:active,
  html.web-shell.native-app .mws-bot:active,
  html.web-shell.native-app .mwm-crow:active,
  html.web-shell.native-app [role="button"].card:active { opacity: .65; transition: opacity .05s; }
  html.web-shell.native-app button:active:not(:disabled) { transform: scale(0.97); }

  /* ---------------------------------------- Markets: Stocks-style pills */
  html.web-shell.native-app .mwm-crow .pc.up,
  html.web-shell.native-app .mwm-crow .pc.dn {
    color: #fff; border-radius: 8px; padding: 2px 7px; font-weight: 600;
    min-width: 58px; text-align: right; box-sizing: border-box;
  }
  html.web-shell.native-app .mwm-crow .pc.up { background: #1f9d5c; }
  html.web-shell.native-app .mwm-crow .pc.dn { background: #d23440; }
}
@media (max-width: 979px) {
  /* --------------------------------------------- Home (pinned cards) */
  html.web-shell.native-app .ios-lt-date {
    display: block; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0;
    text-transform: uppercase; color: var(--mws-ink-3);
  }
  html.web-shell.native-app .ios-home { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
  html.web-shell.native-app .ios-seg {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 2px; border-radius: 8px; background: var(--ios-seg-bg); margin-bottom: 6px;
  }
  html.web-shell.native-app .ios-seg .s {
    height: 30px; border: 0; border-radius: 8px; background: transparent;
    font-family: var(--font); font-size: 13px; color: var(--mws-ink-2); cursor: pointer; padding: 0;
  }
  html.web-shell.native-app .ios-seg .s.on {
    background: var(--ios-seg-on); color: var(--ios-seg-on-ink); font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  }
  html.web-shell.native-app .ios-sec {
    font-size: 22px; font-weight: 700; color: var(--mws-ink); margin: 8px 0 2px;
  }
  html.web-shell.native-app .ios-cards { display: flex; flex-direction: column; gap: 10px; }
  /* Home header row (Top 3): date left, bell right, no GMT pill */
  html.web-shell.native-app.ios-home-hd .app-header h1 {
    opacity: 1 !important; justify-content: flex-start; text-align: left;
    font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--mws-ink-3);
  }
  html.web-shell.native-app.ios-home-hd .app-header h1::before { display: none; }
  html.web-shell.native-app.ios-home-hd .mws-tzpill { display: none; }
  /* profit hero */
  html.web-shell.native-app .ios-hero { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
  html.web-shell.native-app .ios-hero-head {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
    border: 0; background: transparent; padding: 0; margin: 0; color: var(--mws-ink); cursor: pointer;
    font-family: var(--font); -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-hero-lbl { font-size: 15px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-hero-num {
    font-family: var(--mws-mono); font-variant-numeric: tabular-nums;
    font-size: 44px; line-height: 52px; font-weight: 700; color: var(--mws-ink);
  }
  html.web-shell.native-app .ios-hero-num.up { color: var(--mws-up); }
  html.web-shell.native-app .ios-hero-num.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-tabs {
    display: flex; gap: 22px; border-bottom: 0.5px solid var(--ios-sep); margin-top: 4px;
    overflow-x: auto; scrollbar-width: none;
  }
  html.web-shell.native-app .ios-tabs::-webkit-scrollbar { display: none; }
  html.web-shell.native-app .ios-tabs .t {
    flex: 0 0 auto; height: 36px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; font-family: var(--font); font-size: 15px; color: var(--mws-ink-3); cursor: pointer;
  }
  html.web-shell.native-app .ios-tabs .t.on { color: var(--mws-ink); font-weight: 600; border-bottom-color: var(--mws-gold); }
  html.web-shell.native-app .ios-hero .ios-chart { margin-top: 4px; }
  html.web-shell.native-app .ios-lt.date-only { margin-bottom: 6px; }
  html.web-shell.native-app .ios-sec.row { display: flex; align-items: baseline; justify-content: space-between; }
  html.web-shell.native-app .ios-sec.small { font-size: 13px; font-weight: 400; text-transform: uppercase; color: var(--mws-ink-3); margin: 6px 0 -2px 16px; }
  html.web-shell.native-app .ios-link {
    border: 0; background: transparent; padding: 4px 0 4px 12px; cursor: pointer;
    font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--mws-gold);
  }
  html.web-shell.native-app .ios-edit-row { cursor: default; min-height: 50px; }
  html.web-shell.native-app .ios-ed {
    border: 0; background: transparent; padding: 4px; margin: 0; cursor: pointer;
    color: var(--mws-ink-2); display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px;
  }
  html.web-shell.native-app .ios-ed:disabled { opacity: .25; }
  html.web-shell.native-app .ios-ed-ic { display: inline-flex; }
  html.web-shell.native-app .ios-ed-mv { display: inline-flex; gap: 2px; margin-left: auto; }
  html.web-shell.native-app .ios-edit-row .ios-tx { flex: 1 1 auto; }
  html.web-shell.native-app .ios-card {
    background: var(--mws-card); border-radius: 16px; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-card:active { opacity: .7; }
  html.web-shell.native-app .ios-card-hd { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
  html.web-shell.native-app .ios-card-hd .r {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 400; color: var(--mws-ink-3);
  }
  html.web-shell.native-app .ios-card-go { display: inline-flex; color: var(--mws-ink-3); opacity: .7; }
  html.web-shell.native-app .ios-card .num { font-family: var(--mws-mono); font-variant-numeric: tabular-nums; }
  html.web-shell.native-app .ios-card .up { color: var(--mws-up); }
  html.web-shell.native-app .ios-card .dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-big-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  html.web-shell.native-app .ios-big-row .ios-cap { flex-basis: 100%; }
  html.web-shell.native-app .ios-big { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--mws-ink); }
  html.web-shell.native-app .ios-big.up { color: var(--mws-up); }
  html.web-shell.native-app .ios-big.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-sub { font-size: 15px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-cap { font-size: 13px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-chart { display: flex; flex-direction: column; gap: 6px; }
  html.web-shell.native-app .ios-bar-tip {
    align-self: flex-start; font-size: 13px; color: var(--mws-ink); background: var(--mws-well);
    border-radius: 8px; padding: 3px 8px;
  }
  html.web-shell.native-app .ios-bars {
    display: flex; align-items: flex-end; gap: 3px; height: calc(var(--bar-area, 46px) + 30px); position: relative;
  }
  html.web-shell.native-app .ios-bars .bw {
    flex: 1 1 0; min-width: 4px; height: var(--bar-area, 46px); padding: 0; margin: 0; border: 0; background: transparent;
    display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-bars .lbl {
    position: absolute; font-size: 8.5px; line-height: 10px; white-space: nowrap; pointer-events: none;
    color: var(--mws-up); font-weight: 600; letter-spacing: -0.02em;
  }
  html.web-shell.native-app .ios-bars .lbl.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-bars .bw.sel .b { outline: 2px solid var(--mws-ink-2); outline-offset: 1px; }
  html.web-shell.native-app .ios-bars .b { width: 100%; border-radius: 2px; background: var(--mws-up); opacity: .55; }
  html.web-shell.native-app .ios-bars .b.dn { background: var(--mws-down); }
  html.web-shell.native-app .ios-bars .b.zero { background: var(--mws-line-strong); opacity: 1; }
  html.web-shell.native-app .ios-bars .b.last { opacity: 1; }
  html.web-shell.native-app .ios-bars.sk { background: var(--mws-well); border-radius: 8px; opacity: .5; }
  html.web-shell.native-app .ios-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--mws-ink-3); margin-top: -4px; }
  html.web-shell.native-app .ios-axis.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; justify-content: stretch; font-size: 10px; letter-spacing: -.2px; text-align: center; }
  html.web-shell.native-app .ios-axis.months span { overflow: hidden; white-space: nowrap; }
  html.web-shell.native-app .ios-split {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    padding-top: 10px; border-top: 0.5px solid var(--ios-sep);
  }
  html.web-shell.native-app .ios-split > div, html.web-shell.native-app .ios-tri > div { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
  html.web-shell.native-app .ios-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.web-shell.native-app .ios-tri .num { font-size: 15px; }
  html.web-shell.native-app .ios-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  html.web-shell.native-app .ios-chip { font-size: 13px; padding: 4px 10px; border-radius: 8px; }
  html.web-shell.native-app .ios-chip.high { background: rgba(32, 199, 117, 0.16); color: var(--mws-up); }
  html.web-shell.native-app .ios-chip.mid { background: rgba(92, 124, 255, 0.18); color: #8ea4ff; }
  html.web-shell.native-app .ios-chip.low { background: rgba(234, 57, 67, 0.16); color: #ff6b73; }
  html.web-shell.native-app[data-theme="light"] .ios-chip.mid { color: #3b5bdb; }
  html.web-shell.native-app[data-theme="light"] .ios-chip.low { color: #cf3038; }
}
@media (prefers-reduced-motion: reduce) {
  html.web-shell.native-app .modal-host:not(.pin-overlay) > .modal { animation: none; }
}

/* iPhone app: native iOS scrolling — rubber-band bounce at the top and
   bottom (pull-to-refresh rides it), momentum untouched. */
html.native-app, html.native-app body { overscroll-behavior-y: auto; }

/* ------------------------------------------- iOS action sheet (app) */
html.native-app .ios-as-host {
  /* Above every sheet (photo picker 9999, transfer, orders 9000): a confirm
     must never open behind what asked for it (owner 2026-10-13). */
  position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .42);
  display: flex; align-items: flex-end; justify-content: center;
  animation: ios-as-fade .22s ease-out;
}
html.native-app .ios-as-host.out { animation: ios-as-fade-out .2s ease-in forwards; }
html.native-app .ios-as-host.out .ios-as { animation: ios-as-down .2s ease-in forwards; }
html.native-app .ios-as {
  width: 100%; max-width: 460px; box-sizing: border-box;
  padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
  display: flex; flex-direction: column; gap: 8px;
  animation: ios-as-up .32s cubic-bezier(.2, .9, .25, 1);
}
html.native-app .ios-as-grp {
  border-radius: 16px; overflow: hidden; background: var(--mws-card);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
html.native-app .ios-as-hd {
  padding: 14px 16px; text-align: center; border-bottom: 0.5px solid var(--ios-sep);
  font-family: var(--font);
}
html.native-app .ios-as-hd .t { font-size: 13px; font-weight: 600; color: var(--mws-ink-3); }
html.native-app .ios-as-hd .m { font-size: 13px; line-height: 1.4; color: var(--mws-ink-3); margin-top: 2px; }
html.native-app .ios-as-hd .t + .m { margin-top: 4px; }
html.native-app .ios-as-btn {
  display: block; width: 100%; height: 57px; border: 0; border-radius: 0; margin: 0;
  background: transparent; font-family: var(--font); font-size: 20px; font-weight: 400;
  color: var(--mws-gold); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html.native-app .ios-as-btn + .ios-as-btn { border-top: 0.5px solid var(--ios-sep); }
html.native-app .ios-as-btn:active { background: var(--ios-sep); }
html.native-app .ios-as-btn.red { color: var(--mws-down); }
html.native-app .ios-as-btn.bold { font-weight: 600; }
html.native-app .ios-as-btn.cancel { border-radius: 16px; background: var(--mws-card); font-weight: 600; }
@keyframes ios-as-fade { from { background: rgba(0, 0, 0, 0); } }
@keyframes ios-as-fade-out { to { background: rgba(0, 0, 0, 0); } }
@keyframes ios-as-up { from { transform: translateY(100%); } }
@keyframes ios-as-down { to { transform: translateY(100%); } }

/* --------------------------------------- swipe a row left (app) */
html.native-app .ios-sw { position: relative; overflow: hidden; touch-action: pan-y; }
html.native-app .ios-sw > .ios-sw-row { position: relative; z-index: 1; background: var(--mws-card, var(--surface)); will-change: transform; }
html.native-app .ios-sw-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; visibility: hidden; }
html.native-app .ios-sw-a {
  flex: 1; border: 0; border-radius: 0; margin: 0; padding: 0;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: #fff; cursor: pointer;
}
html.native-app .ios-sw-a.red { background: #ff3b30; }
html.native-app .ios-sw-a.gold { background: var(--mws-gold); color: #1a1206; }
html.native-app .ios-sw-a.grey { background: #8e8e93; }

/* ------------------------------------ long-press + tap feel (app) */
html.native-app .ios-lp { transform: scale(.97); transition: transform .18s ease; opacity: .85; }
/* No grey tap flash and no "Copy / Look Up" or link-preview callout on
   controls; text inside content stays selectable. */
html.native-app, html.native-app body { -webkit-tap-highlight-color: transparent; }
html.native-app button, html.native-app a, html.native-app [role="button"],
html.native-app .bottom-nav, html.native-app .app-header, html.native-app .coin-avatar,
html.native-app img, html.native-app svg {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}


/* ================================================================
 * iPhone app — LIGHT mode, iOS system look (owner 2026-10-11: "do like
 * other iOS ones"). Grouped grey page (#f2f2f7) with borderless white
 * cards, iOS label greys and hairline separators, translucent bars,
 * grey segmented controls, and a deep gold for anything that is TEXT
 * (bright #f0b90b washes out on white; fills and progress bars keep it).
 * Dark mode is untouched.
 * ================================================================ */
@media (max-width: 979px) {
  html.web-shell.native-app[data-theme="light"] {
    --mws-bg: #f2f2f7;
    --mws-bg-2: #f2f2f7;
    --mws-card: #ffffff;
    --mws-well: #f2f2f7;
    --mws-line: #e3e3e8;
    --mws-line-2: #ececf1;
    --mws-line-strong: #d1d1d6;
    --mws-ink: #000000;
    --mws-ink-2: #3c3c43;
    --mws-ink-3: #8a8a8e;
    --mws-hero-a: #ffffff;
    --mws-hero-b: #ffffff;
    --mws-gold: #9a6700;
    --mws-up: #248a3d;
    --mws-down: #d70015;
    --success: #248a3d;
    --danger: #d70015;
    --mws-shadow: none;
    --ios-green: #34c759;
    --ios-seg-bg: rgba(118, 118, 128, 0.12);
    --ios-seg-on: #ffffff;
    --ios-seg-on-ink: #000000;
    --ios-bar: rgba(249, 249, 249, 0.94);
    --ios-head: rgba(242, 242, 247, 0.88);
    --ios-sep: rgba(60, 60, 67, 0.18);
    --hb-gold: #9a6700; --hb-gold-bg: rgba(240, 185, 11, 0.16); --hb-gold-bd: transparent;
    --hb-ink-bg: rgba(118, 118, 128, 0.12); --hb-ink-bd: transparent;
    --hb-red-bd: transparent; --hb-green-bd: transparent;
    --bg: #f2f2f7; --surface: #ffffff; --text: #000000; --text-muted: #6e6e73; --text-soft: #8a8a8e;
    --tfx-gold: #9a6700;
  }
  html.web-shell.native-app[data-theme="light"],
  html.web-shell.native-app[data-theme="light"] body { background: #f2f2f7; }

  /* Cards: white on grey, no outline, no shadow — iOS inset-grouped. */
  html.web-shell.native-app[data-theme="light"] .mws-card,
  html.web-shell.native-app[data-theme="light"] .card,
  html.web-shell.native-app[data-theme="light"] .tfonb,
  html.web-shell.native-app[data-theme="light"] .ios-card,
  html.web-shell.native-app[data-theme="light"] .ios-group {
    border-color: transparent !important; box-shadow: none !important;
  }

  /* Bars: translucent white with a hairline, iOS-grey inactive items. */
  html.web-shell.native-app[data-theme="light"] .bottom-nav {
    background: var(--ios-bar) !important; border-top: 0.5px solid rgba(60, 60, 67, 0.29) !important;
  }
  html.web-shell.native-app[data-theme="light"] .nav-btn { color: #8a8a8e; }
  html.web-shell.native-app[data-theme="light"] .nav-btn.active { color: #9a6700; }
  html.web-shell.native-app[data-theme="light"].ios-scrolled .app-header {
    border-bottom-color: rgba(60, 60, 67, 0.29);
  }

  /* Segmented controls: grey track, white raised thumb, black label. */
  html.web-shell.native-app[data-theme="light"] .mws-seg .s.on,
  html.web-shell.native-app[data-theme="light"] .ios-seg .on {
    background: #ffffff; color: #000; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  }
  html.web-shell.native-app[data-theme="light"] .mws-avs-tabs { background: rgba(118, 118, 128, 0.12); }
  html.web-shell.native-app[data-theme="light"] .mws-avs-tabs button.on {
    background: #ffffff; color: #000; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  }

  /* Switch off-track: iOS light grey. */
  html.web-shell.native-app[data-theme="light"] input[type="checkbox"].mws-switch:not(:checked),
  html.web-shell.native-app[data-theme="light"] .mws-switch-host input[type="checkbox"]:not(:checked) {
    background: rgba(120, 120, 128, 0.16);
  }

  /* Sheets & action sheets: white groups on a dimmed page. */
  html.web-shell.native-app[data-theme="light"] .ios-as-grp,
  html.web-shell.native-app[data-theme="light"] .ios-as-btn.cancel { background: rgba(255, 255, 255, 0.96); }
  html.web-shell.native-app[data-theme="light"] .ios-as-host,
  html.web-shell.native-app[data-theme="light"] .mws-avs-host { background: rgba(0, 0, 0, 0.3); }
  html.web-shell.native-app[data-theme="light"] .mws-avs { background: #f2f2f7; }
  html.web-shell.native-app[data-theme="light"] .modal-host:not(.pin-overlay) > .modal { background: #f2f2f7; }

  /* Rows, pickers and fields: iOS fills instead of outlines. */
  html.web-shell.native-app[data-theme="light"] .mws-row,
  html.web-shell.native-app[data-theme="light"] details.sim-group {
    border-color: transparent !important; box-shadow: none !important;
  }
  html.web-shell.native-app[data-theme="light"] .mwsim-pill,
  html.web-shell.native-app[data-theme="light"] .mwsim-seg,
  html.web-shell.native-app[data-theme="light"] #app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  html.web-shell.native-app[data-theme="light"] #app select,
  html.web-shell.native-app[data-theme="light"] #app textarea {
    border-color: transparent !important; background-color: rgba(118, 118, 128, 0.12) !important; box-shadow: none !important;
  }
  html.web-shell.native-app[data-theme="light"] #app input:focus,
  html.web-shell.native-app[data-theme="light"] #app select:focus,
  html.web-shell.native-app[data-theme="light"] #app textarea:focus {
    box-shadow: 0 0 0 2px rgba(154, 103, 0, 0.35) !important;
  }

  /* Checklist progress track + step hover on white. */
  html.web-shell.native-app[data-theme="light"] .tfonb .bar { background: rgba(118, 118, 128, 0.14); }

  /* Gold as TEXT → deep gold (generated from every bright-gold text rule
     in styles.css + mshell/*.css; fills/borders are not touched). */
  html.web-shell.native-app[data-theme="light"] body[data-privacy="on"] .privacy-toggle,
  html.web-shell.native-app[data-theme="light"] .ptr-spinner,
  html.web-shell.native-app[data-theme="light"] .breadcrumb-item--link,
  html.web-shell.native-app[data-theme="light"] .nav-btn.active,
  html.web-shell.native-app[data-theme="light"] .add-btn,
  html.web-shell.native-app[data-theme="light"] .tier-badge.tier-mid,
  html.web-shell.native-app[data-theme="light"] .suggest-tile .value,
  html.web-shell.native-app[data-theme="light"] .coin-mode-tabs .tab.active,
  html.web-shell.native-app[data-theme="light"] .auth-switch a,
  html.web-shell.native-app[data-theme="light"] .owner-approvals-count,
  html.web-shell.native-app[data-theme="light"] .portfolio-add-btn,
  html.web-shell.native-app[data-theme="light"] .add-token-limit .v,
  html.web-shell.native-app[data-theme="light"] .admin-pill,
  html.web-shell.native-app[data-theme="light"] .owner-user-row--clickable:hover .owner-user-chev,
  html.web-shell.native-app[data-theme="light"] .admin-pill-inline,
  html.web-shell.native-app[data-theme="light"] .top-gainers-you .top-gainers-cta,
  html.web-shell.native-app[data-theme="light"] .tg-a .tg-month-chip .ic,
  html.web-shell.native-app[data-theme="light"] .nickname-card .nickname-handle,
  html.web-shell.native-app[data-theme="light"] .cc-strat-changed.warn,
  html.web-shell.native-app[data-theme="light"] .cc-ver-now,
  html.web-shell.native-app[data-theme="light"] .cc-strat-count,
  html.web-shell.native-app[data-theme="light"] .cc-rule.target .cc-rule-role,
  html.web-shell.native-app[data-theme="light"] .cc-rule.core   .cc-rule-role,
  html.web-shell.native-app[data-theme="light"] .activity-sell,
  html.web-shell.native-app[data-theme="light"] .sim-opt-coin-tab.active,
  html.web-shell.native-app[data-theme="light"] .sim-opt-cfg-pill.swept,
  html.web-shell.native-app[data-theme="light"] .sim-sweep-fixed-hint-link,
  html.web-shell.native-app[data-theme="light"] .sim-sampling-best-tag,
  html.web-shell.native-app[data-theme="light"] .tf-dnav-item.active,
  html.web-shell.native-app[data-theme="light"] .tf-table thead th.tf-th-active,
  html.web-shell.native-app[data-theme="light"] .tf-profile-handle,
  html.web-shell.native-app[data-theme="light"] .nt-b .row .wp-test,
  html.web-shell.native-app[data-theme="light"] .home-a .comm-card .open,
  html.web-shell.native-app[data-theme="light"] .home-a .comm-card .comm-row .sub b,
  html.web-shell.native-app[data-theme="light"] .comm-a .cc-sort .ic,
  html.web-shell.native-app[data-theme="light"] .comm-a .cc-section .title.accent,
  html.web-shell.native-app[data-theme="light"] .comm-a .cc-card .by b,
  html.web-shell.native-app[data-theme="light"] .comm-a .cc-card .status.backtest,
  html.web-shell.native-app[data-theme="light"] .cc-sort-opt .tick,
  html.web-shell.native-app[data-theme="light"] .share-a .mode-toggle .t.on.real,
  html.web-shell.native-app[data-theme="light"] .share-a .preview-card .lbl,
  html.web-shell.native-app[data-theme="light"] .share-a .preview-card .col .by b,
  html.web-shell.native-app[data-theme="light"] .share-a .share-rules b,
  html.web-shell.native-app[data-theme="light"] .wallet-a .wallet-total-card .lbl,
  html.web-shell.native-app[data-theme="light"] .wallet-a .wallet-card .head .ic.spot,
  html.web-shell.native-app[data-theme="light"] .transfer-a .transfer-head h2 .ic,
  html.web-shell.native-app[data-theme="light"] .transfer-a .tr-wallet .ic.spot,
  html.web-shell.native-app[data-theme="light"] .transfer-a .tr-amount-card .l .max,
  html.web-shell.native-app[data-theme="light"] .transfer-a .tr-presets .p:hover,
  html.web-shell.native-app[data-theme="light"] .pin-sheet h3 .ic,
  html.web-shell.native-app[data-theme="light"] .pin-recap .row .arrow,
  html.web-shell.native-app[data-theme="light"] .pwd-actions .forgot,
  html.web-shell.native-app[data-theme="light"] .set-pin-nudge .ic,
  html.web-shell.native-app[data-theme="light"] .set-pin-nudge b,
  html.web-shell.native-app[data-theme="light"] .pf-b .lane-tabs .t.on.real,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-hero .lbl,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-entries .hist-entry .ic,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-card-title .sim-info-btn:hover,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-card-title .sim-info-btn:focus-visible,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-add,
  html.web-shell.native-app[data-theme="light"] .pf-b .pf-sort .b.on,
  html.web-shell.native-app[data-theme="light"] .at-b .at-b-limit .v,
  html.web-shell.native-app[data-theme="light"] .at-b .at-b-cat.active .lbl,
  html.web-shell.native-app[data-theme="light"] .hi-b .tab-row .tab.active,
  html.web-shell.native-app[data-theme="light"] .hi-b .history-hero .label,
  html.web-shell.native-app[data-theme="light"] .so-b .trade-route .arrow,
  html.web-shell.native-app[data-theme="light"] .so-b .actions .btn.primary,
  html.web-shell.native-app[data-theme="light"] .co-b .card.coin-hero.ret2 .verdict.hold,
  html.web-shell.native-app[data-theme="light"] .co-b .coin-seg .coin-seg-btn.active,
  html.web-shell.native-app[data-theme="light"] .at-web .atw-limit b,
  html.web-shell.native-app[data-theme="light"] .at-web .atw-mode-tabs .t.on.real,
  html.web-shell.native-app[data-theme="light"] .at-web .atw-cat.active .lbl,
  html.web-shell.native-app[data-theme="light"] .at-web .atw-modebadge,
  html.web-shell.native-app[data-theme="light"] .at-web .atw-deploy,
  html.web-shell.native-app[data-theme="light"] .tfx-mc .tfx-mc-btn.pri,
  html.web-shell.native-app[data-theme="light"] .tfx-lbv2 tr.you .rk,
  html.web-shell.native-app[data-theme="light"] .tfx-holdings .act .ib.orders:hover,
  html.web-shell.native-app[data-theme="light"] .tfx-podr-side.sell,
  html.web-shell.native-app[data-theme="light"] .tfx-podr-stt.open,
  html.web-shell.native-app[data-theme="light"] .tfx-podr-all:hover,
  html.web-shell.native-app[data-theme="light"] .tf-desktop-sidebar .brand .nm,
  html.web-shell.native-app[data-theme="light"] .fbc-af-seg.on b,
  html.web-shell.native-app[data-theme="light"] .sim-staged-title,
  html.web-shell.native-app[data-theme="light"] .sim-wf-badge.realized,
  html.web-shell.native-app[data-theme="light"] .fbc-af-change,
  html.web-shell.native-app[data-theme="light"] .tfx-wl .tfx-wl-earnpark .erow .apr,
  html.web-shell.native-app[data-theme="light"] .tfx-wl .tfx-wl-sechd .wl-seg .t.on.spot,
  html.web-shell.native-app[data-theme="light"] .tfx-wl-emodal .eapr,
  html.web-shell.native-app[data-theme="light"] .mws-pill.on,
  html.web-shell.native-app[data-theme="light"] .mws-add,
  html.web-shell.native-app[data-theme="light"] .mws-ico,
  html.web-shell.native-app[data-theme="light"] .mws-chipbtn,
  html.web-shell.native-app[data-theme="light"] .mws-apr,
  html.web-shell.native-app[data-theme="light"] .mws-seg .s.on,
  html.web-shell.native-app[data-theme="light"] .mws-pcard .tier,
  html.web-shell.native-app[data-theme="light"] .mws-ptile svg,
  html.web-shell.native-app[data-theme="light"] .mws-rank.gold,
  html.web-shell.native-app[data-theme="light"] .mws-rank.hdr,
  html.web-shell.native-app[data-theme="light"] .sim-mode-tab.active,
  html.web-shell.native-app[data-theme="light"] .tfal-seg .s.on,
  html.web-shell.native-app[data-theme="light"] .tfal-add,
  html.web-shell.native-app[data-theme="light"] .tfal-row .tfal-ic,
  html.web-shell.native-app[data-theme="light"] .tfal-act,
  html.web-shell.native-app[data-theme="light"] .tfaw-line .ic.gold,
  html.web-shell.native-app[data-theme="light"] .tfsec-warn,
  html.web-shell.native-app[data-theme="light"] .tfonb-step .cta,
  html.web-shell.native-app[data-theme="light"] .tfpfh-seg .s.on,
  html.web-shell.native-app[data-theme="light"] .tfx-mc .tfal-bell.on,
  html.web-shell.native-app[data-theme="light"] .mmc-bell.on,
  html.web-shell.native-app[data-theme="light"] .tfal-mark,
  html.web-shell.native-app[data-theme="light"] .nt-b .row .lbl .wp-tip,
  html.web-shell.native-app[data-theme="light"] .mwu-wptip,
  html.web-shell.native-app[data-theme="light"] .tfmh-ok,
  html.web-shell.native-app[data-theme="light"] .tffee-pill,
  html.web-shell.native-app[data-theme="light"] .tfx-lane-row .tffee-buy,
  html.web-shell.native-app[data-theme="light"] .btn.ghost.gold,
  html.web-shell.native-app[data-theme="light"] .sim-arm-pill,
  html.web-shell.native-app[data-theme="light"] .sim-src-chip.on,
  html.web-shell.native-app[data-theme="light"] .mws-pcard .av .cam,
  html.web-shell.native-app[data-theme="light"] .mwm-star.on,
  html.web-shell.native-app[data-theme="light"] .modal-host:not(.pin-overlay) > .modal .btn.ghost.gold {
    color: #9a6700 !important;
  }
}

/* ------------------------------------ Portfolio · design A (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-navbtn {
    width: 40px; height: 40px; border: 0; padding: 0; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: var(--mws-gold);
    -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-navbtn:active { opacity: .5; }
  html.web-shell.native-app .ios-pf { gap: 14px; }
  html.web-shell.native-app .ios-pseg {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px;
    border-radius: 8px; background: var(--ios-seg-bg);
  }
  html.web-shell.native-app .ios-pseg button {
    height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--mws-ink);
    font-family: var(--font); font-size: 13px; cursor: pointer;
  }
  html.web-shell.native-app .ios-pseg button.on {
    background: var(--ios-seg-on); color: var(--ios-seg-on-ink); font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  }
  html.web-shell.native-app .ios-pf-hero { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
  html.web-shell.native-app .ios-pf-hero .lbl { font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pf-hero .big {
    font-family: var(--mws-mono); font-variant-numeric: tabular-nums; font-size: 40px; line-height: 48px; font-weight: 700;
  }
  html.web-shell.native-app .ios-pf-hero .pl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
  html.web-shell.native-app .ios-pf-hero .pill { padding: 2px 8px; border-radius: 8px; font-weight: 600; font-size: 15px; }
  html.web-shell.native-app .ios-pf-hero .pill.up { background: color-mix(in srgb, var(--mws-up) 16%, transparent); color: var(--mws-up); }
  html.web-shell.native-app .ios-pf-hero .pill.dn { background: color-mix(in srgb, var(--mws-down) 16%, transparent); color: var(--mws-down); }
  html.web-shell.native-app .ios-pf-hero .cap,
  html.web-shell.native-app .ios-pf-hero .sub { font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pf .num { font-family: var(--mws-mono); font-variant-numeric: tabular-nums; }
  html.web-shell.native-app .ios-pf .num.up { color: var(--mws-up); font-weight: 600; }
  html.web-shell.native-app .ios-pf .num.dn { color: var(--mws-down); font-weight: 600; }
  html.web-shell.native-app .ios-pf-alloc { display: flex; flex-direction: column; gap: 8px; }
  html.web-shell.native-app .ios-pf-alloc .bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
  html.web-shell.native-app .ios-pf-alloc .bar span { min-width: 3px; }
  html.web-shell.native-app .ios-pf-alloc .leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pf-alloc .leg span { display: inline-flex; align-items: center; gap: 6px; }
  html.web-shell.native-app .ios-pf-alloc .leg i { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }
  html.web-shell.native-app .ios-pf-sort {
    border: 0; background: transparent; color: var(--mws-gold); font-family: var(--font); font-size: 15px;
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; cursor: pointer;
  }
  html.web-shell.native-app .ios-pf-list { background: var(--mws-card); border-radius: 12px; overflow: hidden; }
  html.web-shell.native-app .ios-pf-list .ios-sw > .ios-sw-row { background: var(--mws-card); }
  html.web-shell.native-app .ios-pf-sep { height: 1px; transform: scaleY(.5); transform-origin: top; background: var(--ios-sep); margin-left: 64px; }
  html.web-shell.native-app .ios-pf-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; box-sizing: border-box; cursor: pointer;
  }
  html.web-shell.native-app .ios-pf-row:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-pf-row .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-pf-row .tx b { font-size: 17px; font-weight: 600; }
  html.web-shell.native-app .ios-pf-row .tx > span { font-size: 13px; line-height: 17px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pf-row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  html.web-shell.native-app .ios-pf-row .rt .v { font-size: 15px; font-weight: 600; }
  html.web-shell.native-app .ios-pf-row .rt .v.dim { color: var(--mws-ink-3); }
  /* Board 28 (2026-11-01): RoC headline with the word beside it, profit under. */
  html.web-shell.native-app .ios-pf-row .rt .v.pnl { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 16px; font-weight: 600; color: inherit; cursor: pointer; }
  html.web-shell.native-app .ios-pf-row .rt .cap { font-family: var(--font, -apple-system, system-ui, sans-serif); font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pf-row .rt .sm { font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-pf-row .rt .sm .num { font-size: 12px; font-weight: 600; }
  html.web-shell.native-app .ios-pf-row .rt .sm .cap { font-size: 10px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-pf-badge {
    min-width: 64px; box-sizing: border-box; text-align: center; padding: 3px 6px; border-radius: 8px; border: 0;
    font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; font-family: var(--mws-mono);
  }
  html.web-shell.native-app .ios-pf .ios-pf-badge.num.up,
  html.web-shell.native-app .ios-pf .ios-pf-badge.num.dn { color: #fff; }
  html.web-shell.native-app .ios-pf-badge.up { background: #1a9f5f; }
  html.web-shell.native-app .ios-pf-badge.dn { background: #e0343f; }
  html.web-shell.native-app .ios-pf-badge.idle {
    background: var(--ios-seg-bg); color: var(--mws-ink-2); font-family: var(--font); cursor: default;
  }
  html.web-shell.native-app[data-theme="light"] .ios-pf-badge.up { background: #248a3d; }
  html.web-shell.native-app[data-theme="light"] .ios-pf-badge.dn { background: #d92d3a; }
  html.web-shell.native-app .ios-pf-hint { margin: -6px 0 0; font-size: 13px; color: var(--mws-ink-3); text-align: center; }
  html.web-shell.native-app .ios-pf-empty {
    background: var(--mws-card); border-radius: 12px; padding: 22px 18px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  html.web-shell.native-app .ios-pf-empty b { font-size: 17px; }
  html.web-shell.native-app .ios-pf-empty span { font-size: 14px; color: var(--mws-ink-2); line-height: 1.4; }
  html.web-shell.native-app .ios-pf-empty .mws-btn { margin-top: 6px; padding: 0 20px; height: 44px; }
}

@media (max-width: 979px) {
  html.web-shell.native-app .ios-navpill {
    height: 32px; padding: 0 12px 0 10px; margin-left: 4px; border: 0; border-radius: 16px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px; font-family: var(--font); font-size: 15px; font-weight: 600;
    background: color-mix(in srgb, var(--mws-gold) 18%, transparent); color: var(--mws-gold);
    -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-navpill span { display: inline-flex; }
  html.web-shell.native-app .ios-navpill:active { opacity: .6; }
  html.web-shell.native-app .ios-pf-add {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; box-sizing: border-box;
    border: 0; background: transparent; text-align: left; color: var(--mws-ink); font-family: var(--font); cursor: pointer;
  }
  html.web-shell.native-app .ios-pf-add:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-pf-add .ic {
    width: 38px; height: 38px; border-radius: 19px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--mws-gold) 18%, transparent); color: var(--mws-gold);
  }
  html.web-shell.native-app .ios-pf-add .tx { display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-pf-add .tx b { font-size: 17px; font-weight: 600; color: var(--mws-gold); }
  html.web-shell.native-app .ios-pf-add .tx span { font-size: 13px; color: var(--mws-ink-2); }
}

/* ------------------------------------- Wallet · design B (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-wal-total {
    display: flex; justify-content: space-between; align-items: baseline; margin-top: -4px;
  }
  html.web-shell.native-app .ios-wal-total span { font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-wal-total b { font-family: var(--mws-mono); font-size: 22px; font-weight: 700; }
  /* Board 29 option B (2026-11-01): three flat tiles + one detail panel. */
  html.web-shell.native-app .ios-wal-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.web-shell.native-app .ios-wal-tile {
    min-width: 0; background: var(--mws-card); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 10px;
    display: flex; flex-direction: column; gap: 6px; text-align: left; font-family: var(--font); color: var(--mws-ink);
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s;
  }
  html.web-shell.native-app .ios-wal-tile.on { border-color: var(--mws-gold); background: color-mix(in srgb, var(--mws-gold) 7%, var(--mws-card)); cursor: default; }
  html.web-shell.native-app .ios-wal-tile:not(.on):active { background: var(--mws-well); }
  html.web-shell.native-app .ios-wal-tile .nm { font-size: 12px; font-weight: 600; color: var(--mws-ink-2); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  html.web-shell.native-app .ios-wal-tile .nm .ic { display: inline-flex; }
  html.web-shell.native-app .ios-wal-tile .v { font-family: var(--mws-mono); font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.web-shell.native-app .ios-wal-detail {
    background: var(--mws-card); border-radius: 14px; padding: 14px; margin-top: -6px;
    display: flex; flex-direction: column; gap: 6px; min-height: 120px;
  }
  html.web-shell.native-app .ios-wal-detail .hd { font-size: 14px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-wal-detail .big { font-family: var(--mws-mono); font-size: 30px; line-height: 34px; font-weight: 700; }
  html.web-shell.native-app .ios-wal-detail .desc { font-size: 14px; line-height: 19px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-wal-detail .desc b { font-family: var(--mws-mono); color: var(--mws-ink); font-weight: 600; }
  html.web-shell.native-app .ios-wal-detail .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  html.web-shell.native-app .ios-wal-detail .chip {
    font-family: var(--font); font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 0;
    background: var(--mws-well); color: var(--mws-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-wal-detail .chip:active { opacity: .6; }
  html.web-shell.native-app .ios-wal-detail .chip b { font-family: var(--mws-mono); font-weight: 600; }
  html.web-shell.native-app .ios-wal-detail .chip .rate { color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-wal-transfer {
    height: 50px; border: 0; border-radius: 16px; cursor: pointer; font-family: var(--font); font-size: 17px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: color-mix(in srgb, var(--mws-gold) 16%, transparent); color: var(--mws-gold);
  }
  html.web-shell.native-app .ios-wal-transfer span { display: inline-flex; }
  html.web-shell.native-app .ios-wal-transfer:active { opacity: .6; }
  /* Board 30 option B (2026-11-02): the detail header opens the account sheet. */
  html.web-shell.native-app .ios-wal-detail button.hd { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 14px; color: var(--mws-ink-2); text-align: left; cursor: pointer; width: 100%; }
  html.web-shell.native-app .ios-wal-detail button.hd > span:first-child { flex: 1 1 auto; min-width: 0; }
  html.web-shell.native-app .ios-wal-detail button.hd .chev { color: var(--mws-ink-3); font-size: 20px; line-height: 1; flex-shrink: 0; }
  html.web-shell.native-app .ios-wal-detail button.hd:active { opacity: .6; }
  /* The account sheets themselves (Spot / Earn / Funding). */
  html.web-shell.native-app .ios-walsh { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
  html.web-shell.native-app .ios-walsh-sum { background: var(--mws-card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
  html.web-shell.native-app .ios-walsh-sum .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  html.web-shell.native-app .ios-walsh-sum .big { font-family: var(--mws-mono); font-size: 26px; line-height: 30px; font-weight: 700; }
  html.web-shell.native-app .ios-walsh-sum .delta { font-family: var(--mws-mono); font-size: 13px; color: var(--mws-ink-2); text-align: right; }
  html.web-shell.native-app .ios-walsh-sum .delta.up { color: var(--mws-up); }
  html.web-shell.native-app .ios-walsh-sum .delta.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-walsh-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
  html.web-shell.native-app .ios-walsh-bar span { display: block; min-width: 3px; }
  html.web-shell.native-app .ios-walsh-lg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-walsh-lg i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: 0; }
  html.web-shell.native-app .ios-walsh-sec { font-size: 12px; color: var(--mws-ink-3); padding: 2px 2px 0; }
  html.web-shell.native-app .ios-walsh-pill { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-family: var(--mws-mono); font-size: 11px; font-weight: 600; vertical-align: 2px; color: var(--mws-up); background: color-mix(in srgb, var(--mws-up) 14%, transparent); }
  html.web-shell.native-app .ios-walsh .ios-pf-row.static { cursor: default; }
  html.web-shell.native-app .ios-walsh .ios-pf-row.static:active { background: none; }
  html.web-shell.native-app .ios-walsh .ios-pf-row .tx > span.num { font-family: var(--mws-mono); color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-walsh .ios-pf-row .rt .sm { font-family: var(--mws-mono); font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-walsh .ios-pf-row .rt .sm.up, html.web-shell.native-app .ios-walsh .ios-pf-row .rt .v .up { color: var(--mws-up); }
  html.web-shell.native-app .ios-walsh .ios-pf-row .rt .sm.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-walsh .ios-pf-row .ios-chev { color: var(--mws-ink-3); font-size: 20px; line-height: 1; opacity: .7; flex-shrink: 0; }
  html.web-shell.native-app .ios-walsh .ios-pf-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--mws-ink-3); background: var(--mws-card); border-radius: 12px; }
  html.web-shell.native-app .ios-walsh .mws-btn.block { margin-top: 2px; }
  html.web-shell.native-app .ios-wal .ios-pf-row.static { cursor: default; }
  html.web-shell.native-app .ios-wal .ios-pf-row .rt .q { font-size: 12px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-wal .earning { color: var(--mws-up); }
}

/* ------------------------------------ Transfer sheet (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-tx { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); }
  html.web-shell.native-app .ios-tx-body { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
  html.web-shell.native-app .ios-tx-back { display: inline-flex; align-items: center; gap: 6px; }
  html.web-shell.native-app .ios-tx-back span { display: inline-flex; }
  html.web-shell.native-app .ios-tx-wallets { position: relative; background: var(--mws-card); border-radius: 12px; }
  html.web-shell.native-app .ios-tx-wallets .sep { height: 1px; transform: scaleY(.5); background: var(--ios-sep); margin-left: 64px; }
  html.web-shell.native-app .ios-tx-wrow {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px;
    width: 100%; height: 54px; padding: 0 14px 0 16px; border: 0; background: transparent; color: var(--mws-ink);
    font-family: var(--font); text-align: left; cursor: pointer;
  }
  html.web-shell.native-app .ios-tx-wrow:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-tx-wrow .l { font-size: 13px; color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-tx-wrow .w { font-size: 17px; font-weight: 600; }
  html.web-shell.native-app .ios-tx-wrow .b { font-family: var(--mws-mono); font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-tx-wrow .c { color: var(--mws-ink-3); display: inline-flex; }
  html.web-shell.native-app .ios-tx-swap {
    /* No transform here: the global button:active scale() would replace it
       and the button would jump out from under the finger mid-tap. */
    position: absolute; left: calc(50% - 21px); top: calc(50% - 21px); width: 36px; height: 36px; border-radius: 16px; z-index: 2;
    border: 3px solid var(--mws-bg); background: var(--mws-gold); color: #1a1206; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: content-box;
  }
  html.web-shell.native-app .ios-tx-amt { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-top: 6px; }
  html.web-shell.native-app .ios-tx-amt .v { font-family: var(--mws-mono); font-size: 48px; line-height: 56px; font-weight: 700; }
  html.web-shell.native-app .ios-tx-amt .v.ph { color: var(--mws-ink-3); }
  html.web-shell.native-app .ios-tx-amt .u { font-size: 17px; color: var(--mws-ink-2); font-weight: 600; }
  html.web-shell.native-app .ios-tx-amt.over .v { color: var(--mws-down); }
  html.web-shell.native-app .ios-tx-avail { text-align: center; font-size: 14px; color: var(--mws-ink-2); margin-top: -8px; }
  html.web-shell.native-app .ios-tx-avail b { font-family: var(--mws-mono); font-weight: 600; color: var(--mws-ink); }
  html.web-shell.native-app .ios-tx-avail.over { color: var(--mws-down); }
  html.web-shell.native-app .ios-tx-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html.web-shell.native-app .ios-tx-chip {
    height: 34px; border: 0; border-radius: 17px; background: var(--ios-seg-bg); color: var(--mws-ink);
    font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  }
  html.web-shell.native-app .ios-tx-chip:active { opacity: .6; }
  html.web-shell.native-app .ios-tx-note { font-size: 13px; color: var(--mws-ink-2); text-align: center; }
  html.web-shell.native-app .ios-tx-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  html.web-shell.native-app .ios-tx-key {
    height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--mws-ink);
    font-family: var(--font); font-size: 26px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-tx-key:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-tx-key span { display: inline-flex; }
  html.web-shell.native-app .ios-tx-key.act { color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-tx-key.small { font-size: 15px; font-weight: 600; color: var(--mws-gold); }
  html.web-shell.native-app .ios-tx-pad.pin { gap: 12px 0; padding: 4px 24px 0; }
  html.web-shell.native-app .ios-tx-pad.pin .ios-tx-key.act { width: 70px; height: 70px; justify-self: center; }
  html.web-shell.native-app .ios-tx-pad.pin .ios-tx-key:not(.act) {
    width: 70px; height: 70px; justify-self: center; border-radius: 35px; background: var(--ios-seg-bg); font-size: 28px;
  }
  html.web-shell.native-app .ios-tx-go {
    height: 50px; border: 0; border-radius: 16px; font-family: var(--font); font-size: 17px; font-weight: 600; cursor: pointer;
    background: linear-gradient(180deg, #fcd535, #f0b90b); color: #1a1206;
  }
  html.web-shell.native-app .ios-tx-go:disabled { background: var(--ios-seg-bg); color: var(--mws-ink-3); cursor: default; }
  html.web-shell.native-app .ios-tx-recap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 4px; }
  html.web-shell.native-app .ios-tx-recap .a { font-family: var(--mws-mono); font-size: 32px; font-weight: 700; }
  html.web-shell.native-app .ios-tx-recap .r { font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-tx-msg { text-align: center; font-size: 15px; color: var(--mws-ink-2); min-height: 20px; }
  html.web-shell.native-app .ios-tx-msg.err { color: var(--mws-down); }
  html.web-shell.native-app .ios-tx-dots { display: flex; justify-content: center; gap: 16px; padding: 4px 0 10px; }
  html.web-shell.native-app .ios-tx-dots span {
    width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--mws-ink-2); box-sizing: border-box;
  }
  html.web-shell.native-app .ios-tx-dots span.f { background: var(--mws-ink); border-color: var(--mws-ink); }
  html.web-shell.native-app .ios-tx-dots.shake { animation: ios-tx-shake .4s ease; }
  @keyframes ios-tx-shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
  html.web-shell.native-app .ios-tx-pw {
    height: 50px; border: 0; border-radius: 12px; padding: 0 14px; font-size: 17px;
    background: var(--mws-card); color: var(--mws-ink); font-family: var(--font);
  }
  html.web-shell.native-app .ios-tx-link { border: 0; background: transparent; color: var(--mws-gold); font-size: 15px; padding: 8px; font-family: var(--font); }
}

@media (max-width: 979px) {
  html.web-shell.native-app .ios-tx-swap:active:not(:disabled) { transform: none; opacity: .7; }
}

/* ------------------------------------ Simulator · design A (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim { gap: 14px; padding-bottom: 96px; }
  html.web-shell.native-app .ios-sim-lede { margin: -6px 0 0; font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-sim-cap {
    font-size: 13px; color: var(--mws-ink-3); text-transform: uppercase; letter-spacing: .02em; margin: 4px 0 6px 16px;
  }
  html.web-shell.native-app .ios-sim-list { background: var(--mws-card); border-radius: 12px; overflow: hidden; }
  html.web-shell.native-app .ios-sim-row {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 14px;
    box-sizing: border-box; border: 0; background: transparent; color: var(--mws-ink); font-family: var(--font);
    text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-sim-row + .ios-sim-row::before {
    content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; transform: scaleY(.5); background: var(--ios-sep);
  }
  html.web-shell.native-app .ios-sim-row:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-sim-row .ic {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  html.web-shell.native-app .ios-sim-row .ic.coin { background: transparent; border-radius: 15px; }
  html.web-shell.native-app .ios-sim-row .ic.coin .coin-avatar { width: 30px !important; height: 30px !important; }
  html.web-shell.native-app .ios-sim-row .l { flex: 1 1 auto; font-size: 17px; white-space: nowrap; }
  html.web-shell.native-app .ios-sim-row .v {
    font-size: 16px; color: var(--mws-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%;
  }
  html.web-shell.native-app .ios-sim-row .c { color: var(--mws-ink-3); display: inline-flex; flex-shrink: 0; }
  html.web-shell.native-app .ios-sim-overlay {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px;
  }
  /* slide-in detail screens */
  html.web-shell.native-app .ios-sim-panel {
    position: fixed; inset: 0; z-index: 900; background: var(--mws-bg); display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); visibility: hidden;
  }
  html.web-shell.native-app .ios-sim-panel.open { transform: none; visibility: visible; }
  html.web-shell.native-app .ios-sim-panel-hd {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex-shrink: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 8px; border-bottom: 0.5px solid var(--ios-sep);
    background: var(--ios-head); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  html.web-shell.native-app .ios-sim-panel-hd b { font-size: 17px; font-weight: 600; }
  html.web-shell.native-app .ios-sim-panel-hd .back,
  html.web-shell.native-app .ios-sim-panel-hd .done {
    border: 0; background: transparent; color: var(--mws-gold); font-family: var(--font); font-size: 17px;
    height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  }
  html.web-shell.native-app .ios-sim-panel-hd .back { justify-self: start; }
  html.web-shell.native-app .ios-sim-panel-hd .back span { display: inline-flex; }
  html.web-shell.native-app .ios-sim-panel-hd .done { justify-self: end; font-weight: 600; }
  html.web-shell.native-app .ios-sim-panel-bd {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 32px); display: flex; flex-direction: column; gap: 14px;
  }
  /* pinned Run */
  html.web-shell.native-app .ios-sim-runbar {
    position: fixed; left: 0; right: 0; z-index: 9; padding: 12px 16px 10px;
    bottom: calc(var(--nav-h, 56px) + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, var(--mws-bg) 34%);
  }
  /* Exactly the "Deploy bot" button of the Add bot page (.mws-btn.gold on
     the phone): tinted gold fill, gold text, thin gold outline, no shadow
     (owner 2026-10-13). */
  html.web-shell.native-app .ios-sim-run {
    width: 100%; height: 50px; border-radius: 12px; cursor: pointer;
    background: var(--hb-gold-bg, rgba(240, 185, 11, 0.10)); color: var(--hb-gold, #f0b90b);
    border: 1px solid var(--hb-gold-bd, rgba(240, 185, 11, 0.32)); box-shadow: none;
    font-family: var(--font); font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  html.web-shell.native-app .ios-sim-run .pl { display: inline-flex; }
  html.web-shell.native-app .ios-sim-run:disabled { opacity: .6; }
}
@media (max-width: 979px) {
  /* #app's will-change: transform (page-slide animation) would make it the
     containing block for the Simulator's fixed Run bar and slide-in
     screens — they'd scroll away / sit under the header and tab bar. */
  html.web-shell.native-app main#app:has(.ios-sim) { will-change: auto !important; }
}

/* ---------------- Simulator option screens · iOS Settings look ---------------- */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim-panel-bd { gap: 18px; }
  /* groups */
  html.web-shell.native-app .ios-sim-panel details.ios-sg {
    background: var(--mws-card); border: 0 !important; border-radius: 12px; padding: 0; margin: 0; box-shadow: none;
  }
  html.web-shell.native-app .ios-sim-panel details.ios-sg.sim-advanced-wrap { background: transparent; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg.sim-advanced-wrap > details.ios-sg { background: var(--mws-card); margin-top: 18px; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg > summary {
    list-style: none; cursor: default; padding: 12px 14px 4px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .02em; color: var(--mws-ink-3); border: 0;
  }
  html.web-shell.native-app .ios-sim-panel details.ios-sg > summary::-webkit-details-marker { display: none; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg > summary::before,
  html.web-shell.native-app .ios-sim-panel details.ios-sg > summary::after { display: none !important; content: none !important; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg.sim-advanced-wrap > summary { padding: 8px 2px 2px; font-size: 20px; text-transform: none; color: var(--mws-ink); font-weight: 700; letter-spacing: 0; }
  html.web-shell.native-app .ios-sim-panel .settings-filter-explain,
  html.web-shell.native-app .ios-sim-panel .sim-info-panel { margin: 0 14px 4px; font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-sim-panel details.ios-sg.sim-advanced-wrap > .muted { margin: 0 2px !important; font-size: 13px !important; color: var(--mws-ink-2); }
  /* rows */
  html.web-shell.native-app .ios-sim-panel .field { margin: 0; padding: 0 14px; position: relative; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg > .field + .field::before,
  html.web-shell.native-app .ios-sim-panel .ios-inrow::before {
    content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; transform: scaleY(.5); background: var(--ios-sep);
  }
  html.web-shell.native-app .ios-sim-panel .field > label,
  html.web-shell.native-app .ios-sim-panel .ios-swrow {
    font-family: var(--font) !important; font-size: 17px !important; font-weight: 400 !important; color: var(--mws-ink) !important;
    text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important;
  }
  html.web-shell.native-app .ios-sim-panel .ios-swrow {
    display: flex !important; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 48px; width: 100%;
  }
  html.web-shell.native-app .ios-sim-panel .ios-swrow > span { flex: 1 1 auto; font-weight: 400 !important; }
  html.web-shell.native-app .ios-sim-panel .ios-vrow {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 48px;
  }
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input,
  html.web-shell.native-app .ios-sim-panel .ios-inrow > input {
    width: 110px; height: 34px; padding: 0 10px; border: 0 !important; border-radius: 8px; text-align: right;
    background: var(--ios-seg-bg) !important; color: var(--mws-ink); font-family: var(--mws-mono); font-size: 16px; box-shadow: none !important;
  }
  html.web-shell.native-app .ios-sim-panel .ios-vrow > select {
    max-width: 190px; height: 34px; border: 0 !important; border-radius: 8px; padding: 0 28px 0 10px;
    background-color: var(--ios-seg-bg) !important; color: var(--mws-ink); font-family: var(--font); font-size: 15px; text-align: right;
  }
  html.web-shell.native-app .ios-sim-panel .ios-vrow > .hint,
  html.web-shell.native-app .ios-sim-panel .field > .hint {
    grid-column: 1 / -1; margin: -4px 0 10px; font-size: 13px; line-height: 18px; color: var(--mws-ink-3);
  }
  html.web-shell.native-app .ios-sim-panel .ios-inrow {
    position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: 0 -14px; padding: 0 14px;
    font-size: 17px; color: var(--mws-ink);
  }
  /* settings hidden while the filter is off */
  html.web-shell.native-app .ios-sim-panel details.ios-sg.ios-off > .field:not(.ios-enable) { display: none; }
  html.web-shell.native-app .ios-sim-panel details.ios-sg.ios-off > .field.ios-enable > .hint { display: none; }
  /* stand-alone fields (Run setup, Exits) as one card each */
  html.web-shell.native-app .ios-sim-panel-bd > .field,
  html.web-shell.native-app .ios-sim-panel-bd > .sim-date-row {
    background: var(--mws-card); border-radius: 12px; padding: 4px 14px;
  }
  html.web-shell.native-app .ios-sim-panel-bd > .field > .hint { margin-top: 0; }
}

@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input[type="datetime-local"],
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input[type="date"],
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input[type="text"],
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input:not([type]) { width: 190px; font-family: var(--font); font-size: 15px; }
  html.web-shell.native-app .ios-sim-panel .ios-inrow { margin: 0 -14px !important; padding: 0 14px !important; }
  html.web-shell.native-app .ios-sim-panel .hint .ios-swrow,
  html.web-shell.native-app .ios-sim-panel .hint > .sim-inline-check { min-height: 48px; }
  html.web-shell.native-app .ios-sim-panel .sim-date-row { display: flex; flex-direction: column; gap: 0; }
  html.web-shell.native-app .ios-sim-panel .sim-date-row > .field { padding: 0; }
  html.web-shell.native-app .ios-sim-panel .sim-date-row > .field + .field::before { left: 0; }
}
@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim-panel .ios-swrow { flex-wrap: nowrap !important; }
  html.web-shell.native-app .ios-sim-panel .ios-swrow > span { flex: 1 1 auto !important; min-width: 0; width: auto !important; }
  html.web-shell.native-app .ios-sim-panel .ios-swrow > input.mws-switch { flex: 0 0 auto !important; margin: 0 !important; }
  html.web-shell.native-app .ios-sim-panel .ios-vrow > input[type="datetime-local"] { width: 205px; font-size: 14px; padding: 0 8px; }
}

/* ------------------------------ Find the best one · iOS (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim-row.gold .l { color: var(--mws-gold); font-weight: 600; }
  html.web-shell.native-app .ios-opt-bd .ios-opt-step {
    background: var(--mws-card) !important; border: 0 !important; border-radius: 12px; box-shadow: none !important; margin: 0;
  }
  html.web-shell.native-app .ios-opt-bd .ios-opt-step .fbc-step-head,
  html.web-shell.native-app .ios-opt-bd .ios-opt-step .fbc-chev { display: none !important; }
  html.web-shell.native-app .ios-opt-bd .ios-opt-step .fbc-step-body { display: block !important; }
  html.web-shell.native-app .ios-opt-knobs:not(.all) .ios-ns { display: none !important; }
  html.web-shell.native-app .ios-opt-showall {
    height: 44px; border: 0; border-radius: 12px; background: var(--mws-card); color: var(--mws-gold);
    font-family: var(--font); font-size: 16px; font-weight: 600; cursor: pointer;
  }
  html.web-shell.native-app .ios-opt-fleet { background: var(--mws-card); border-radius: 12px; padding: 14px; }
}

@media (max-width: 979px) {
  html.web-shell.native-app .ios-sim-runbar .ios-sim-run { display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; }
}

/* ------------------------------------ Profile · design A (2026-10-11) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-profile { gap: 20px; }
  html.web-shell.native-app .ios-pacct {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mws-card); cursor: pointer;
  }
  html.web-shell.native-app .ios-pacct .av { width: 60px !important; height: 60px !important; font-size: 22px; }
  html.web-shell.native-app .ios-pacct .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-pacct .tx b { font-size: 20px; font-weight: 600; }
  html.web-shell.native-app .ios-pacct .tx span { font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pacct .c, html.web-shell.native-app .ios-prow .c,
  html.web-shell.native-app .ios-pnudge .c { color: var(--mws-ink-3); display: inline-flex; flex-shrink: 0; }
  html.web-shell.native-app .ios-pacct .c.open { transform: rotate(90deg); }
  html.web-shell.native-app .ios-pnudge {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; text-align: left;
    background: color-mix(in srgb, var(--mws-gold) 13%, transparent); color: var(--mws-ink); font-family: var(--font); cursor: pointer;
  }
  html.web-shell.native-app .ios-pnudge .ic {
    width: 30px; height: 30px; border-radius: 8px; background: #f0b90b; color: #1a1206; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  html.web-shell.native-app .ios-pnudge .tx { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-pnudge .tx b { font-size: 16px; font-weight: 600; }
  html.web-shell.native-app .ios-pnudge .tx span { font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-pgrp { display: flex; flex-direction: column; }
  html.web-shell.native-app .ios-plist { background: var(--mws-card); border-radius: 12px; overflow: hidden; }
  html.web-shell.native-app .ios-prow {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px;
    box-sizing: border-box; border: 0; background: transparent; color: var(--mws-ink); font-family: var(--font);
    text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.web-shell.native-app .ios-prow.static { cursor: default; }
  html.web-shell.native-app .ios-prow + .ios-prow::before {
    content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; transform: scaleY(.5); background: var(--ios-sep);
  }
  html.web-shell.native-app button.ios-prow:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-prow .ic {
    width: 30px; height: 30px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  html.web-shell.native-app .ios-prow .l { flex: 1 1 auto; font-size: 17px; }
  html.web-shell.native-app .ios-prow .v { font-size: 17px; color: var(--mws-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
  html.web-shell.native-app .ios-prow .v.ok { color: var(--mws-up); }
  html.web-shell.native-app .ios-prow .v.warn { color: var(--mws-gold); }
  html.web-shell.native-app .ios-pseg.small { width: 112px; flex-shrink: 0; }
  html.web-shell.native-app .ios-pseg.small button { height: 28px; }
  html.web-shell.native-app .ios-psignout {
    height: 50px; border: 0; border-radius: 12px; background: var(--mws-card); color: #ff453a;
    font-family: var(--font); font-size: 17px; cursor: pointer;
  }
  html.web-shell.native-app[data-theme="light"] .ios-psignout { color: #d70015; }
  html.web-shell.native-app .ios-psignout:active { background: var(--ios-sep); }
  html.web-shell.native-app .ios-pver { text-align: center; font-size: 13px; color: var(--mws-ink-3); margin-top: -12px; }
}
@media (max-width: 979px) {
  html.web-shell.native-app .ios-pacct .av {
    position: relative; border-radius: 50%; flex-shrink: 0; overflow: visible; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
    background: linear-gradient(135deg, #fcd535, #f0b90b); color: #1a1206;
  }
  html.web-shell.native-app .ios-pacct .av.photo { background: #222a3a; }
  html.web-shell.native-app .ios-pacct .av img,
  html.web-shell.native-app .ios-pacct .av .tfx-avpreset { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; overflow: hidden; }
  html.web-shell.native-app .ios-pacct .av .cam {
    position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--mws-card); color: #f0b90b; border: 1.5px solid #f0b90b;
  }
}
@media (max-width: 979px) {
  html.web-shell.native-app .ios-prow .l small { display: block; font-size: 13px; color: var(--mws-ink-3); margin-top: 1px; }
  html.web-shell.native-app .ios-prow:has(.l small) { padding-top: 8px; padding-bottom: 8px; }
}

/* Face ID lock (iPhone app): logo screen first, card only after a cancel */
html.native-app .tfx-lock-scrim.ios-quiet { background: var(--mws-bg, #0d1421) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.native-app .tfx-lock-scrim.ios-quiet .tfx-lock-box { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
html.native-app .tfx-lock-scrim.ios-quiet.show-box .tfx-lock-box { opacity: 1; transform: none; pointer-events: auto; }
html.native-app .tfx-lock-scrim.ios-quiet.show-box .ios-lock-logo { opacity: 0; }
html.native-app .ios-lock-logo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  pointer-events: none; transition: opacity .2s ease;
}
html.native-app .ios-lock-logo .tile {
  width: 76px; height: 76px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fcd535, #f0b90b); color: #1a1206; box-shadow: 0 8px 28px rgba(240, 185, 11, .25);
}
html.native-app .ios-lock-logo .nm { font-family: var(--font); font-size: 22px; font-weight: 700; color: var(--mws-ink, #eef2f7); }
@media (max-width: 979px) {
  html.web-shell.native-app .ios-tx-face { display: flex; justify-content: center; padding: 18px 0 6px; color: var(--mws-gold); }
  html.web-shell.native-app .ios-tx-face span { display: inline-flex; }
  html.web-shell.native-app .ios-tx-face.hidden, html.web-shell.native-app .ios-tx-manual.hidden { display: none; }
  html.web-shell.native-app .ios-tx-manual { display: flex; flex-direction: column; gap: 12px; }
}
/* privacy cover while the app is in the background (Face ID on) */
html.native-app .ios-privacy-cover {
  position: fixed; inset: 0; z-index: 2147483000; background: var(--mws-bg, #0d1421); transition: opacity .2s ease;
}
html.native-app .ios-privacy-cover.out { opacity: 0; }
/* lock screen / privacy cover use the TF brand mark (2026-10-12) */
html.native-app .ios-lock-logo img.tile { width: 84px; height: 84px; border-radius: 0; background: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* Home · Bots card (2026-10-12) */
@media (max-width: 979px) {
  html.web-shell.native-app .ios-botstat { font-size: 17px; font-weight: 600; color: var(--mws-ink); }
  html.web-shell.native-app .ios-botstat.armed { color: var(--mws-gold); }
  html.web-shell.native-app .ios-botstat.warn { color: var(--mws-down); }
  html.web-shell.native-app .ios-botchips { display: flex; flex-wrap: wrap; gap: 6px; }
  html.web-shell.native-app .ios-botchip {
    border: 0; border-radius: 8px; padding: 5px 9px; cursor: pointer; font-family: var(--font); font-size: 13px;
    background: var(--ios-seg-bg); color: var(--mws-ink-2);
  }
  html.web-shell.native-app .ios-botchip b { color: var(--mws-ink); font-weight: 600; }
  html.web-shell.native-app .ios-botchip span { font-family: var(--mws-mono); }
  html.web-shell.native-app .ios-botchip.up { background: color-mix(in srgb, var(--mws-up) 16%, transparent); color: var(--mws-up); }
  html.web-shell.native-app .ios-botchip.dn { background: color-mix(in srgb, var(--mws-down) 16%, transparent); color: var(--mws-down); }
  html.web-shell.native-app .ios-botchip.off { color: var(--mws-down); }
  html.web-shell.native-app .ios-botchip:active { opacity: .6; }

  /* Bot page chart (design A, 2026-10-12): price + the bot's levels. */
  html.web-shell.native-app .ios-ch { display: flex; flex-direction: column; padding: 4px 0 0; }
  html.web-shell.native-app .ios-ch-lbl { font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-ch-price { font-family: var(--mws-mono); font-size: 34px; line-height: 42px; font-weight: 700; color: var(--mws-ink); font-variant-numeric: tabular-nums; }
  html.web-shell.native-app .ios-ch-chg { display: flex; flex-wrap: wrap; gap: 0 5px; font-size: 15px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-ch-chg .up, html.web-shell.native-app .ios-ch-lvl .pc.up { color: var(--mws-up); font-family: var(--mws-mono); }
  html.web-shell.native-app .ios-ch-chg .dn, html.web-shell.native-app .ios-ch-lvl .pc.dn { color: var(--mws-down); font-family: var(--mws-mono); }
  html.web-shell.native-app .ios-ch-plot { margin: 14px -4px 0; min-height: 200px; }
  html.web-shell.native-app .ios-ch-plot svg { display: block; overflow: visible; }
  html.web-shell.native-app .ios-ch-plot.empty { display: flex; align-items: center; justify-content: center; height: 230px; color: var(--mws-ink-3); font-size: 14px; }
  html.web-shell.native-app .ios-ch-plot .lv-avg { stroke: var(--mws-ink-3); stroke-width: 1; }
  html.web-shell.native-app .ios-ch-plot .lv-buy { stroke: #f0b90b; stroke-width: 1; }
  html.web-shell.native-app .ios-ch-plot .mk-buy { fill: var(--mws-bg); stroke: #f0b90b; stroke-width: 2.2; }
  html.web-shell.native-app .ios-ch-plot .mk-sell { fill: #20c775; }
  html.web-shell.native-app .ios-ch-plot text { font-family: var(--mws-mono); font-size: 12px; font-weight: 700; }
  html.web-shell.native-app .ios-ch-plot .tg-avg rect { fill: var(--ios-seg-bg); }
  html.web-shell.native-app .ios-ch-plot .tg-avg text { fill: var(--mws-ink); }
  html.web-shell.native-app .ios-ch-plot .tg-buy rect { fill: #f0b90b; }
  html.web-shell.native-app .ios-ch-plot .tg-buy text { fill: #1a1206; }
  html.web-shell.native-app .ios-ch-plot .tg-dn rect { fill: #d9303b; }
  html.web-shell.native-app .ios-ch-plot .tg-up rect { fill: #1a9e5c; }
  html.web-shell.native-app .ios-ch-plot .tg-dn text, html.web-shell.native-app .ios-ch-plot .tg-up text { fill: #ffffff; }
  html.web-shell.native-app .ios-ch-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 2px; margin-top: 14px; border-radius: 8px; background: var(--ios-seg-bg); }
  html.web-shell.native-app .ios-ch-seg button { height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--mws-ink-2); font-size: 13px; font-weight: 600; }
  html.web-shell.native-app .ios-ch-seg button.on { background: var(--ios-seg-on); color: var(--ios-seg-on-ink); font-weight: 700; }
  html.web-shell.native-app .ios-ch-lvls { margin-top: 16px; border-radius: 12px; background: var(--mws-card); overflow: hidden; }
  html.web-shell.native-app .ios-ch-lvl { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; position: relative; }
  html.web-shell.native-app .ios-ch-lvl + .ios-ch-lvl::before { content: ""; position: absolute; top: 0; left: 42px; right: 0; height: 0.5px; background: var(--ios-sep); }
  html.web-shell.native-app .ios-ch-lvl .sw { width: 18px; height: 0; border-top: 2px dashed var(--mws-ink-3); flex-shrink: 0; }
  html.web-shell.native-app .ios-ch-lvl .sw.buy { border-top-color: #f0b90b; }
  html.web-shell.native-app .ios-ch-lvl .nm { flex: 1; min-width: 0; font-size: 15px; color: var(--mws-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.web-shell.native-app .ios-ch-lvl .px { font-family: var(--mws-mono); font-size: 14px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-ch-lvl .pc { width: 68px; text-align: right; font-family: var(--mws-mono); font-size: 15px; font-weight: 700; }
  html.web-shell.native-app .ios-ch-lvl .pc.nd { color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-ch-key { display: flex; gap: 16px; padding: 10px 2px 0; font-size: 12px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-ch-key span { display: flex; align-items: center; gap: 6px; }
  html.web-shell.native-app .ios-ch-key .kb { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #f0b90b; }
  html.web-shell.native-app .ios-ch-key .ks { width: 10px; height: 10px; border-radius: 50%; background: #20c775; }

  /* Orders page B (2026-10-12): warm hero, a card per buy, detail sheet. */
  html.web-shell.native-app { --ios-o-warm-a: #33290f; --ios-o-warm-b: #1c2130; --ios-o-warm-ink: #e6d7ad; --ios-o-warm-2: #c9b88a;
    --ios-o-green-bg: #14261f; --ios-o-green-ink: #9fd9b9; --ios-o-bar: #2a3346; --ios-o-gold: #f0b90b; --ios-o-gold-ink: #e6c25a; }
  html.web-shell.native-app[data-theme="light"] { --ios-o-warm-a: #fff1c9; --ios-o-warm-b: #ffffff; --ios-o-warm-ink: #6b5410; --ios-o-warm-2: #8a6d1d;
    --ios-o-green-bg: #eaf7ef; --ios-o-green-ink: #1f7a45; --ios-o-bar: #e6e8ec; --ios-o-gold: #d9a400; --ios-o-gold-ink: #9a6700; }
  html.web-shell.native-app .ios-o { display: flex; flex-direction: column; gap: 0; }
  html.web-shell.native-app .ios-o .num { font-family: var(--mws-mono); font-variant-numeric: tabular-nums; }
  html.web-shell.native-app .ios-oh { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(165deg, var(--ios-o-warm-a) 0%, var(--ios-o-warm-b) 60%); }
  html.web-shell.native-app .ios-oh-top { display: flex; align-items: center; gap: 10px; }
  html.web-shell.native-app .ios-oh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  html.web-shell.native-app .ios-oh-t b { font-size: 17px; font-weight: 600; color: var(--mws-ink); }
  html.web-shell.native-app .ios-oh-t span { font-size: 13px; color: var(--ios-o-warm-2); }
  html.web-shell.native-app .ios-oh-px { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mws-ink-2); font-family: var(--mws-mono); }
  html.web-shell.native-app .ios-oh-px i { width: 7px; height: 7px; border-radius: 50%; background: var(--mws-up); }
  html.web-shell.native-app .ios-oh-pl { display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-oh-big { font-size: 34px; line-height: 40px; font-weight: 700; }
  html.web-shell.native-app .ios-oh-big.up, html.web-shell.native-app .ios-oc-rv.up, html.web-shell.native-app .ios-osh-big.up { color: var(--mws-up); }
  html.web-shell.native-app .ios-oh-big.dn, html.web-shell.native-app .ios-oc-rv.dn, html.web-shell.native-app .ios-osh-big.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-oh-sub { display: flex; flex-wrap: wrap; gap: 0 5px; font-size: 14px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-oh-msg { font-size: 14px; line-height: 20px; color: var(--ios-o-warm-ink); }
  html.web-shell.native-app .ios-o-lim { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px;
    border: 0; border-radius: 16px; background: var(--mws-card); color: var(--mws-ink); font-size: 15px; text-align: left; }
  html.web-shell.native-app .ios-o-lim .chev { color: var(--mws-ink-3); font-size: 20px; }
  html.web-shell.native-app .ios-o-seg { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 8px; background: var(--ios-seg-bg); }
  html.web-shell.native-app .ios-o-seg button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--mws-ink); font-size: 13px; }
  html.web-shell.native-app .ios-o-seg button.on { background: var(--ios-seg-on); color: var(--ios-seg-on-ink); font-weight: 600; }
  html.web-shell.native-app .ios-o-sortrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 6px; font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-o-more { border: 0; background: transparent; color: var(--mws-gold); font-size: 15px; height: 44px; padding: 0 2px; }
  html.web-shell.native-app .ios-o-list { display: flex; flex-direction: column; gap: 12px; }
  html.web-shell.native-app .ios-o-list .ios-sw { border-radius: 16px; }
  html.web-shell.native-app .ios-o-list .ios-sw > .ios-oc { background: var(--mws-card); }
  html.web-shell.native-app .ios-oc { border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid transparent; }
  html.web-shell.native-app .ios-o-list .ios-sw > .ios-oc.next { border-color: color-mix(in srgb, var(--ios-o-gold) 35%, transparent); }
  html.web-shell.native-app .ios-o-list .ios-sw > .ios-oc.armed { background: var(--ios-o-green-bg); border-color: color-mix(in srgb, var(--mws-up) 40%, transparent); }
  html.web-shell.native-app .ios-o-list .ios-sw > .ios-oc.em { border-color: color-mix(in srgb, var(--mws-down) 50%, transparent); }
  html.web-shell.native-app .ios-oc:active { opacity: .75; }
  html.web-shell.native-app .ios-oc-head { display: flex; align-items: flex-start; gap: 10px; }
  html.web-shell.native-app .ios-oc-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.web-shell.native-app .ios-oc-nm { font-size: 17px; font-weight: 600; color: var(--mws-ink); display: flex; align-items: center; gap: 6px; }
  html.web-shell.native-app .ios-oc-bd { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 2px 6px; }
  html.web-shell.native-app .ios-oc-bd.next { background: var(--ios-o-gold); color: #1a1206; }
  html.web-shell.native-app .ios-oc-bd.sell { background: #20c775; color: #06210f; }
  html.web-shell.native-app .ios-oc-bd.em { background: var(--mws-down); color: #fff; }
  html.web-shell.native-app .ios-oc-sub { font-size: 13px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-oc-r { display: flex; flex-direction: column; align-items: flex-end; }
  html.web-shell.native-app .ios-oc-rv { font-size: 15px; font-weight: 700; }
  html.web-shell.native-app .ios-oc-rs { font-size: 12px; color: var(--ios-o-green-ink); }
  html.web-shell.native-app .ios-oc-rp { font-size: 13px; font-weight: 600; margin-top: 1px; }
  html.web-shell.native-app .ios-oc-rp.up { color: var(--mws-up); } html.web-shell.native-app .ios-oc-rp.dn { color: var(--mws-down); }
  html.web-shell.native-app .ios-oc-prog { display: flex; flex-direction: column; gap: 6px; }
  html.web-shell.native-app .ios-oc-bar { display: block; height: 8px; border-radius: 4px; background: var(--ios-o-bar); position: relative; overflow: hidden; }
  html.web-shell.native-app .ios-oc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #8a6a12, var(--ios-o-gold)); transition: width .4s ease; }
  html.web-shell.native-app .ios-oc-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; flex-wrap: wrap; }
  html.web-shell.native-app .ios-oc-back { color: var(--ios-o-gold-ink); }
  html.web-shell.native-app .ios-oc-dim { display: flex; gap: 4px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-oc-dim b { color: var(--mws-ink); font-weight: 500; }
  html.web-shell.native-app .ios-oc-wait { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; font-size: 14px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-oc-wait b { color: var(--mws-ink); font-weight: 600; }
  html.web-shell.native-app .ios-oc-need { color: var(--ios-o-gold-ink); font-weight: 600; }
  html.web-shell.native-app .ios-oc-track { position: relative; height: 22px; }
  html.web-shell.native-app .ios-oc-track .rail { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--mws-up) 18%, var(--ios-o-bar)); }
  html.web-shell.native-app .ios-oc-track .sg { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--mws-up); transition: left .4s ease, width .4s ease; }
  html.web-shell.native-app .ios-oc-track .mk { position: absolute; top: 3px; width: 3px; height: 16px; border-radius: 2px; margin-left: -1.5px; transition: left .4s ease; }
  html.web-shell.native-app .ios-oc-track .mk.stop { background: #ff9f43; }
  html.web-shell.native-app .ios-oc-track .mk.top { background: var(--ios-o-green-ink); }
  html.web-shell.native-app .ios-oc-track .mk.now { top: 4px; width: 14px; height: 14px; border-radius: 50%; margin-left: -7px; background: var(--mws-ink); box-shadow: 0 0 0 2px var(--ios-o-green-bg); }
  html.web-shell.native-app .ios-oc-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 12px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-oc-3 > span { display: flex; flex-direction: column; }
  html.web-shell.native-app .ios-oc-3 .c { align-items: center; } html.web-shell.native-app .ios-oc-3 .r { align-items: flex-end; }
  html.web-shell.native-app .ios-oc-3 b { font-size: 13px; color: var(--mws-ink); }
  html.web-shell.native-app .ios-oc-3 > span:first-child b { color: #ff9f43; }
  html.web-shell.native-app .ios-oc-3 .r b { color: var(--ios-o-green-ink); }
  html.web-shell.native-app .ios-oc-note { font-size: 13px; line-height: 18px; color: var(--mws-ink-2); }
  html.web-shell.native-app .ios-o-hint { text-align: center; font-size: 13px; color: var(--mws-ink-3); padding: 14px 0 6px; }
}
/* Orders detail sheet (appended to <body>, so outside the media block's
   page scope but still iPhone-app only). */
html.native-app .ios-osh-host { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; animation: iosOshFade .22s ease; }
html.native-app .ios-osh-host.out { opacity: 0; transition: opacity .24s ease; }
html.native-app .ios-osh-host.out .ios-osh { transform: translateY(40px); transition: transform .24s ease; }
@keyframes iosOshFade { from { background: rgba(0, 0, 0, 0); } }
@keyframes iosOshUp { from { transform: translateY(100%); } }
html.native-app .ios-osh { width: 100%; max-height: 88vh; overflow-y: auto; box-sizing: border-box; border-radius: 16px 14px 0 0;
  background: var(--mws-card, #141b2a); color: var(--mws-ink, #eef2f7); padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; animation: iosOshUp .32s cubic-bezier(.2, .9, .25, 1); font-family: var(--font); }
html.native-app .ios-osh .num, html.native-app .ios-osh-big { font-family: var(--mws-mono); font-variant-numeric: tabular-nums; }
html.native-app .ios-osh .grab { align-self: center; width: 36px; height: 5px; border-radius: 3px; background: var(--mws-ink-3, #4a5468); opacity: .6; }
html.native-app .ios-osh-hd { display: flex; align-items: center; padding: 6px 0 2px; }
html.native-app .ios-osh-hd b { flex: 1; font-size: 20px; font-weight: 700; }
html.native-app .ios-osh-done { border: 0; background: transparent; color: var(--mws-gold, #f0b90b); font-size: 17px; font-weight: 600; height: 44px; padding: 0 4px; }
html.native-app .ios-osh-big { font-size: 32px; line-height: 38px; font-weight: 700; }
html.native-app .ios-osh-big.up { color: var(--mws-up); } html.native-app .ios-osh-big.dn { color: var(--mws-down); }
html.native-app .ios-osh-sub { font-size: 14px; color: var(--mws-ink-2); }
html.native-app .ios-osh-lbl { margin-top: 20px; font-size: 13px; color: var(--mws-ink-2); }
html.native-app .ios-osh-steps { margin-top: 8px; border-radius: 16px; background: var(--mws-well, #1b2335); padding: 14px; display: flex; flex-direction: column; }
html.native-app .ios-osh-st { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
html.native-app .ios-osh-st:last-child { padding-bottom: 0; }
html.native-app .ios-osh-st:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--mws-line-strong, #2f3a50); }
html.native-app .ios-osh-st.done:not(:last-child)::before { background: var(--mws-up); }
html.native-app .ios-osh-st .dot { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
html.native-app .ios-osh-st.done .dot { background: var(--mws-up); color: #06210f; }
html.native-app .ios-osh-st.now .dot { border: 2px solid var(--mws-gold, #f0b90b); background: color-mix(in srgb, var(--mws-gold, #f0b90b) 15%, transparent); }
html.native-app .ios-osh-st.now.sell .dot { border-color: var(--mws-up); background: color-mix(in srgb, var(--mws-up) 18%, transparent); }
html.native-app .ios-osh-st.next .dot { border: 2px solid var(--mws-line-strong, #4a5468); }
html.native-app .ios-osh-st .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mws-ink-2); }
html.native-app .ios-osh-st .tx b { font-size: 15px; font-weight: 600; color: var(--mws-ink); }
html.native-app .ios-osh-st .tx .gr { color: var(--mws-up); }
html.native-app .ios-osh-st .ios-oc-bar { height: 6px; background: var(--mws-line, #2a3346); }
html.native-app .ios-osh-st .ios-oc-fill { background: linear-gradient(90deg, #8a6a12, #f0b90b); }
html.native-app .ios-osh-acts { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
html.native-app .ios-osh-btn { height: 50px; border: 0; border-radius: 16px; background: var(--ios-seg-bg, #262f43); color: var(--mws-ink); font-size: 17px; font-weight: 600; }
html.native-app .ios-osh-btn.red { background: transparent; color: var(--mws-down); font-weight: 400; }
html.native-app .ios-osh-link { border: 0; background: transparent; color: var(--mws-gold, #f0b90b); font-size: 15px; height: 40px; }
html.native-app .ios-osh-note { text-align: center; font-size: 12px; color: var(--mws-ink-3); margin-top: 4px; }

/* ================================================================ fun (2026-10-13)
   Owner-picked animations for the iPhone app; they play regardless of the
   iPhone's Reduce Motion setting (owner 2026-10-13). */
/* 1 · sale confetti (fixed over everything, never blocks taps) */
html.native-app .ios-confetti { position: fixed; inset: 0; z-index: 9500; pointer-events: none; overflow: hidden; }
html.native-app .ios-confetti span { position: absolute; top: -16px; width: 8px; height: 12px; border-radius: 2px; animation: iosCfFall 2.6s linear forwards; }
@keyframes iosCfFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
html.native-app .ios-pop { animation: iosPop .6s cubic-bezier(.2,.9,.25,1); }
@keyframes iosPop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.08); } }
/* 3 · bot face */
html.native-app .ios-bot { position: relative; display: inline-flex; flex-shrink: 0; }
html.native-app .ios-bot .bd { display: block; transform-origin: 50% 100%; }
html.native-app .ios-bot.sleep .bd { animation: iosBreathe 3.4s ease-in-out infinite; }
@keyframes iosBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(1px) scale(1.03, .97); } }
html.native-app .ios-bot .z { position: absolute; left: 72%; top: 4%; font-size: 12px; font-weight: 700; font-style: normal; color: var(--mws-gold); animation: iosZz 2.6s ease-out infinite; }
html.native-app .ios-bot .z2 { left: 82%; top: -6%; font-size: 9px; animation-delay: 1.3s; }
@keyframes iosZz { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(10px, -16px); opacity: 0; } }
html.native-app .ios-bot.watch .pupil { animation: iosEye 4s ease-in-out infinite; }
@keyframes iosEye { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
html.native-app .ios-bot.watch .lid { animation: iosBlink 5s ease-in-out infinite; transform-origin: 50% 56%; }
@keyframes iosBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
html.web-shell.native-app .ios-botstat { display: flex; align-items: center; gap: 10px; }
/* mood props (R1-1) */
html.native-app .ios-bot .sweat { animation: iosSweat 1.3s ease-in infinite; }
@keyframes iosSweat { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
html.native-app .ios-bot .sign { animation: iosSign .22s ease-in-out infinite; transform-origin: -4px 46px; }
@keyframes iosSign { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
html.native-app .ios-bot.m-hodl .bd, html.native-app .ios-bot.m-rocket .bd { animation: iosTremble .18s linear infinite; }
@keyframes iosTremble { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.8px); } }
html.native-app .ios-bot .rocket { animation: iosRocket 1s ease-in-out infinite; transform-origin: 62px 46px; }
@keyframes iosRocket { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-2px); } }
html.native-app .ios-botstat .ios-bot.m-hodl { margin-left: 14px; }
html.web-shell.native-app .ios-oh-msg { display: flex; align-items: center; gap: 10px; }
/* 6 · avatar reactions (Profile): a wink on every open, then a hop while
   today is green, a droop while it is red, a slow bob when it is flat. */
html.native-app .ios-av.wink { animation: iosWink 1.4s ease-out .3s; }
@keyframes iosWink { 0%, 100% { transform: none; } 22% { transform: rotate(-14deg) scale(1.12, .86); } 40% { transform: rotate(4deg) scale(.96, 1.04); } 55% { transform: rotate(0) scale(1); } }
html.native-app .ios-av.up { animation: iosWink 1.4s ease-out .3s, iosAvJump 3s ease-out 1.9s infinite; }
@keyframes iosAvJump { 0%, 60%, 100% { transform: translateY(0); } 68% { transform: translateY(-14px) scale(1.04); } 76% { transform: translateY(0); } 84% { transform: translateY(-6px); } 92% { transform: translateY(0); } }
html.native-app .ios-av.dn { animation: iosWink 1.4s ease-out .3s, iosAvDroop 4s ease-in-out 1.9s infinite; }
@keyframes iosAvDroop { 0%, 100% { transform: translateY(0) rotate(0); } 30%, 70% { transform: translateY(5px) rotate(-8deg); } }
html.native-app .ios-av.flat { animation: iosWink 1.4s ease-out .3s, iosAvBob 4s ease-in-out 1.9s infinite; }
@keyframes iosAvBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* 10 · delete poof */
html.native-app .ios-sw.ios-poof { transition: height .28s ease .38s, margin-top .28s ease .38s; }
html.native-app .ios-sw.ios-poof.gone { height: 0 !important; margin-top: -12px; }
html.native-app .ios-sw.ios-poof > .ios-oc { animation: iosPoofCard .42s ease-in forwards; }
@keyframes iosPoofCard { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(.55); opacity: 0; } }
html.native-app .ios-dust { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
html.native-app .ios-dust i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #8a94a8; filter: blur(4px); opacity: 0; animation: iosDust .7s ease-out forwards; }
@keyframes iosDust { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: .85; } 100% { opacity: 0; transform: scale(2.4) translateY(-10px); } }
/* opening animation (2026-10-13) */
html.native-app .ios-intro { position: fixed; inset: 0; z-index: 9400; background: var(--mws-bg, #0d1421); display: flex; align-items: center; justify-content: center; pointer-events: none; }
html.native-app .ios-intro.out { animation: iosIntroOut .5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes iosIntroOut { to { transform: translateY(-100%); opacity: .6; } }
html.native-app .ios-intro-stage { position: relative; width: 240px; height: 230px; display: flex; flex-direction: column; align-items: center; }
html.native-app .ios-intro .tile { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px rgba(240, 185, 11, .3); position: relative; z-index: 2; animation: iosIntroTile .55s cubic-bezier(.2,.9,.25,1) both; }
@keyframes iosIntroTile { 0% { transform: scale(.3) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
html.native-app .ios-intro .bot { position: absolute; top: 58px; left: 50%; margin-left: 22px; z-index: 1; animation: iosIntroBot .6s cubic-bezier(.2,.9,.25,1) .5s both; transform-origin: 50% 100%; }
@keyframes iosIntroBot { 0% { transform: translate(-40px, 40px) rotate(-20deg) scale(.6); opacity: 0; } 60% { transform: translate(0, -8px) rotate(6deg) scale(1.05); opacity: 1; } 100% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } }
html.native-app .ios-intro .bot .lid { animation: iosIntroWink 1.2s ease-out .9s both !important; transform-origin: 50% 56%; }
@keyframes iosIntroWink { 0%, 100% { transform: scaleY(1); } 25%, 40% { transform: scaleY(.1); } }
html.native-app .ios-intro .bot .pupil { animation: none !important; }
html.native-app .ios-intro .bot .bd { animation: iosBreathe 2.4s ease-in-out 1.1s infinite; }
html.native-app .ios-intro .hi { margin-top: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font); color: var(--mws-ink-2, #a7b1c2); font-size: 15px; animation: iosIntroHi .5s ease-out .95s both; }
html.native-app .ios-intro .hi b { font-size: 22px; font-weight: 700; color: var(--mws-ink, #eef2f7); }
@keyframes iosIntroHi { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.native-app .ios-intro.short .tile { animation-duration: .01s; }
html.native-app .ios-intro.short .bot { animation-delay: .05s; }
html.native-app .ios-intro.short .bot .lid { animation-delay: .45s !important; }
html.native-app .ios-intro.short .hi { animation-delay: .4s; }
/* R1-12 · simulator lab (iPhone app) */
html.native-app .ios-lab { display: flex; justify-content: center; padding: 6px 0 2px; }
html.native-app .ios-lab .bub { animation: iosBub var(--bub, 1.6s) ease-out infinite; }
html.native-app .ios-lab .b2 { animation-delay: calc(var(--bub, 1.6s) / 2); }
@keyframes iosBub { 0% { transform: translateY(0) scale(.5); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-34px) scale(1.15); opacity: 0; } }
html.native-app .ios-lab .stir { animation: iosStir calc(var(--bub, 1.6s) * .8) ease-in-out infinite; transform-origin: 100px 70px; }
@keyframes iosStir { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
html.native-app .ios-boom { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; transition: opacity .4s ease, max-height .4s ease; max-height: 140px; overflow: hidden; }
html.native-app .ios-boom.out { opacity: 0; max-height: 0; padding: 0; }
html.native-app .ios-boom .puff { animation: iosPuff 1.4s ease-out both; transform-origin: 100px 60px; }
@keyframes iosPuff { 0% { transform: scale(.2); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.3); opacity: .35; } }
html.native-app .ios-boom .t { font-size: 13px; color: var(--mws-ink-2); }
/* R1-13 · transfer hop (iPhone app) */
html.native-app .ios-hop { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 16px 40px; }
html.native-app .ios-hop-stage { position: relative; width: 300px; height: 150px; }
html.native-app .ios-hop .card { position: absolute; bottom: 0; width: 120px; height: 70px; border-radius: 16px; padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; }
html.native-app .ios-hop .card b { font-size: 14px; color: var(--mws-ink); }
html.native-app .ios-hop .card .num { font-family: var(--mws-mono); font-size: 13px; }
html.native-app .ios-hop .card.from { left: 0; background: var(--ios-o-warm-a, #2a2412); }
html.native-app .ios-hop .card.from .num { color: var(--mws-down); }
html.native-app .ios-hop .card.to { right: 0; background: var(--ios-o-green-bg, #14261f); }
html.native-app .ios-hop .card.to .num { color: var(--mws-up); }
html.native-app .ios-hop .c { position: absolute; left: 44px; bottom: 70px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #fcd535, #f0b90b); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; opacity: 0; }
html.native-app .ios-hop .c i { font-style: normal; font-weight: 800; font-size: 13px; color: #1a1206; font-family: var(--mws-mono); }
html.native-app .ios-hop .c.hop { animation: iosHop 1.1s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes iosHop {
  0% { transform: translate(0, 0); opacity: 1; }
  25% { transform: translate(55px, -46px); }
  50% { transform: translate(110px, 0); }
  75% { transform: translate(165px, -46px); }
  100% { transform: translate(214px, 2px) scale(.9); opacity: 1; }
}
html.native-app .ios-hop .c.trip { animation: iosTrip 1.4s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes iosTrip {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  25% { transform: translate(55px, -46px) rotate(0); }
  50% { transform: translate(110px, 0) rotate(0); }
  62% { transform: translate(140px, -24px) rotate(40deg); }
  74% { transform: translate(168px, 4px) rotate(200deg); }
  86% { transform: translate(196px, -10px) rotate(300deg); }
  100% { transform: translate(214px, 2px) rotate(360deg) scale(.9); opacity: 1; }
}
html.native-app .ios-hop-cap { font-size: 14px; color: var(--mws-ink-2); }
/* R1-14 · sign-out scene (iPhone app) */
html.native-app .ios-bye { position: fixed; inset: 0; z-index: 9600; background: var(--mws-bg, #0d1421); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
html.native-app .ios-bye::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .35s ease; }
html.native-app .ios-bye.dark::after { opacity: 1; }
html.native-app .ios-bye-stage { position: relative; width: 300px; height: 220px; }
html.native-app .ios-bye .door { position: absolute; right: 20px; top: 20px; width: 84px; height: 160px; border-radius: 8px; background: #262f43; border: 3px solid #3a4458; box-sizing: border-box; transform-origin: 100% 50%; animation: iosDoor 2.4s ease-in-out forwards; }
html.native-app .ios-bye .door .knob { position: absolute; left: 10px; top: 76px; width: 7px; height: 7px; border-radius: 50%; background: #c9b88a; }
@keyframes iosDoor { 0%, 70% { transform: perspective(300px) rotateY(0); } 90%, 100% { transform: perspective(300px) rotateY(-60deg); background: #0d1421; } }
html.native-app .ios-bye .walker { position: absolute; left: 10px; top: 92px; display: inline-flex; animation: iosWalk 2.2s ease-in-out forwards; }
html.native-app .ios-bye .walker .ios-bot .bd { animation: iosStep .3s ease-in-out infinite; }
@keyframes iosStep { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes iosWalk { 0% { transform: translateX(0); opacity: 1; } 75% { transform: translateX(170px); opacity: 1; } 100% { transform: translateX(200px) scale(.8); opacity: 0; } }
html.native-app .ios-bye .walker .arm { position: absolute; left: 50px; top: 22px; width: 5px; height: 20px; border-radius: 3px; background: #20c775; transform-origin: 50% 100%; animation: iosWaveArm .35s ease-in-out infinite; }
@keyframes iosWaveArm { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } }
html.native-app .ios-bye .cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 15px; color: var(--mws-ink-2); font-family: var(--font); }
html.native-app .ios-bye .click { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; font-size: 13px; color: #8a94a8; font-family: var(--font); opacity: 0; z-index: 2; transition: opacity .15s ease; }
html.native-app .ios-bye.dark .click { opacity: 1; }
/* R2-4 · Face ID doubt scene (iPhone app) */
html.native-app .ios-doubt { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--mws-bg, #0d1421); transition: opacity .25s ease; }
html.native-app .ios-doubt.out { opacity: 0; }
html.native-app .ios-doubt-stage { position: relative; width: 220px; height: 120px; }
html.native-app .ios-doubt .bot { position: absolute; left: 24px; top: 24px; animation: iosDoubtBot 2.3s ease-in-out both; transform-origin: 50% 100%; }
@keyframes iosDoubtBot { 0%, 60% { transform: rotate(0); } 70%, 100% { transform: rotate(-6deg) translateY(-2px); } }
html.native-app .ios-doubt .bot .look { animation: iosDoubtLook 1.6s ease-in-out both; }
@keyframes iosDoubtLook { 0%, 10% { transform: translateX(3px); } 35%, 45% { transform: translateX(-3px); } 70%, 80% { transform: translateX(3px); } 100% { transform: translateX(0); } }
html.native-app .ios-doubt .photo { position: absolute; left: 118px; top: 12px; width: 72px; height: 92px; border-radius: 8px; background: #eef2f7; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; padding: 8px 6px 4px; box-sizing: border-box; gap: 4px; transform: rotate(6deg); animation: iosDoubtPhoto .5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes iosDoubtPhoto { from { transform: translateY(30px) rotate(20deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }
html.native-app .ios-doubt .photo img, html.native-app .ios-doubt .photo .tfx-avpreset { width: 52px !important; height: 52px !important; border-radius: 4px; object-fit: cover; }
html.native-app .ios-doubt .photo .sil { width: 52px; height: 52px; border-radius: 4px; background: #d1d5db; position: relative; overflow: hidden; }
html.native-app .ios-doubt .photo .sil::before { content: ""; position: absolute; left: 16px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #8a94a8; }
html.native-app .ios-doubt .photo .sil::after { content: ""; position: absolute; left: 6px; top: 32px; width: 40px; height: 30px; border-radius: 20px 20px 0 0; background: #8a94a8; }
html.native-app .ios-doubt .photo i { font-style: normal; font-size: 10px; color: #4b5563; font-family: var(--font); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.native-app .ios-doubt .arm { position: absolute; top: 58px; width: 6px; height: 22px; border-radius: 3px; background: #20c775; transform-origin: 50% 0; opacity: 0; animation: iosShrug 2.3s ease-in-out both; }
html.native-app .ios-doubt .arm.l { left: 20px; --rot: -40deg; }
html.native-app .ios-doubt .arm.r { left: 90px; --rot: 40deg; }
@keyframes iosShrug { 0%, 62% { opacity: 0; transform: rotate(0); } 72%, 100% { opacity: 1; transform: rotate(var(--rot)) translateY(-8px); } }
html.native-app .ios-doubt .cap { font-size: 15px; color: var(--mws-ink-2); font-family: var(--font); animation: iosFade .4s ease-out 1.5s both; }
@keyframes iosFade { from { opacity: 0; } to { opacity: 1; } }
/* R2-9 · empty pockets (iPhone app, Spot card) */
html.native-app .ios-pockets { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(13, 20, 33, .38); }
html.native-app .ios-pockets .bot { position: relative; display: inline-flex; width: 60px; height: 52px; }
html.native-app .ios-pockets .bot .ios-bot { position: absolute; left: 6px; top: 0; }
html.native-app .ios-pockets .pk { position: absolute; bottom: 2px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12px solid #eef2f7; opacity: .95; }
html.native-app .ios-pockets .pk.l { left: 6px; transform: rotate(14deg); } html.native-app .ios-pockets .pk.r { left: 40px; transform: rotate(-14deg); }
html.native-app .ios-pockets .moth { position: absolute; left: 30px; top: 30px; width: 14px; height: 8px; animation: iosMoth 3.2s ease-out infinite; }
html.native-app .ios-pockets .moth b { display: block; width: 14px; height: 8px; border-radius: 50%; background: #c9b88a; animation: iosFlap .22s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes iosFlap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.45); } }
@keyframes iosMoth { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 30% { transform: translate(14px, -12px); } 55% { transform: translate(2px, -26px); } 80% { transform: translate(18px, -40px); opacity: 1; } 100% { transform: translate(10px, -54px); opacity: 0; } }
html.native-app .ios-pockets .tx { font-size: 13px; line-height: 17px; color: inherit; opacity: .9; }
/* R2-8 · piggy bank full (iPhone app, bot page investment limit) */
html.native-app .ios-piggy { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; }
html.native-app .ios-piggy svg { flex-shrink: 0; overflow: visible; }
html.native-app .ios-piggy .pig { animation: iosPigBreathe 2.8s ease-in-out infinite; transform-origin: 100px 116px; }
@keyframes iosPigBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
html.native-app .ios-piggy .head { animation: iosHeadShake 1.6s ease-in-out infinite; transform-origin: 99px 40px; }
@keyframes iosHeadShake { 0%, 100% { transform: translate(64px, -6px) scale(1.1) rotate(0); } 25% { transform: translate(64px, -6px) scale(1.1) rotate(-9deg); } 75% { transform: translate(64px, -6px) scale(1.1) rotate(9deg); } }
html.native-app .ios-piggy .tx { font-size: 13px; line-height: 17px; color: var(--mws-ink-2); }
/* R2-13 · elevator (iPhone app, queued simulator runs) */
html.native-app .ios-lift { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 2px; }
html.native-app .ios-lift-box { position: relative; width: 112px; height: 118px; border-radius: 8px; background: #262f43; overflow: hidden; }
html.native-app .ios-lift-no { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-family: var(--mws-mono); font-size: 12px; font-weight: 700; color: #ff6b73; animation: iosLiftNo .5s ease-out both; }
@keyframes iosLiftNo { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
html.native-app .ios-lift-cab { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; display: flex; align-items: center; justify-content: center; background: #1d2638; }
html.native-app .ios-lift-cab .ios-lift-bd { animation: iosLiftBob 1.4s ease-in-out infinite; }
@keyframes iosLiftBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
html.native-app .ios-lift-door { position: absolute; top: 30px; bottom: 0; width: 50%; background: #3a4458; border-top: 2px solid #4b5668; }
html.native-app .ios-lift-door.l { left: 0; border-right: 1px solid #0d1421; animation: iosDoorL 1.6s ease-in-out infinite alternate; }
html.native-app .ios-lift-door.r { right: 0; border-left: 1px solid #0d1421; animation: iosDoorR 1.6s ease-in-out infinite alternate; }
@keyframes iosDoorL { from { transform: translateX(-40%); } to { transform: translateX(-48%); } }
@keyframes iosDoorR { from { transform: translateX(40%); } to { transform: translateX(48%); } }
html.native-app .ios-lift .tx { font-size: 13px; color: var(--mws-ink-2); }
html.native-app .ios-doors { position: relative; overflow: hidden; border-radius: 8px; }
html.native-app .ios-doors .ios-lift-door { top: 0; animation: none; }
html.native-app .ios-doors .ios-lift-door.l.open { animation: iosOpenL .9s ease-in-out .2s both; }
html.native-app .ios-doors .ios-lift-door.r.open { animation: iosOpenR .9s ease-in-out .2s both; }
@keyframes iosOpenL { to { transform: translateX(-100%); } }
@keyframes iosOpenR { to { transform: translateX(100%); } }
/* R2-14 · ribbon cutting (iPhone app, first real bot) */
html.native-app .ios-ribbon { position: fixed; inset: 0; z-index: 9550; background: var(--mws-bg, #0d1421); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; font-family: var(--font); transition: opacity .3s ease; }
html.native-app .ios-ribbon.out { opacity: 0; }
html.native-app .ios-ribbon .ttl { font-size: 15px; font-weight: 600; color: var(--mws-gold); }
html.native-app .ios-ribbon .stage { position: relative; width: 300px; height: 190px; }
html.native-app .ios-ribbon .post { position: absolute; top: 20px; width: 10px; height: 150px; border-radius: 4px; background: #8a94a8; }
html.native-app .ios-ribbon .post.l { left: 10px; } html.native-app .ios-ribbon .post.r { right: 10px; }
html.native-app .ios-ribbon .rib { position: absolute; top: 88px; height: 12px; width: 134px; background: #ff6b73; }
html.native-app .ios-ribbon .rib.l { left: 16px; transform-origin: 0 50%; animation: iosRibL 3s ease-in-out both; }
html.native-app .ios-ribbon .rib.r { right: 16px; transform-origin: 100% 50%; animation: iosRibR 3s ease-in-out both; }
@keyframes iosRibL { 0%, 42% { transform: scaleX(1) rotate(0); } 50% { transform: scaleX(.55) rotate(-30deg); } 58% { transform: scaleX(.3) rotate(10deg); } 66%, 100% { transform: scaleX(.12) rotate(0); } }
@keyframes iosRibR { 0%, 42% { transform: scaleX(1) rotate(0); } 50% { transform: scaleX(.55) rotate(30deg); } 58% { transform: scaleX(.3) rotate(-10deg); } 66%, 100% { transform: scaleX(.12) rotate(0); } }
html.native-app .ios-ribbon .bot { position: absolute; left: 120px; top: 96px; animation: iosBonk 3s ease-in-out both; transform-origin: 50% 100%; }
@keyframes iosBonk { 0%, 55% { transform: translateY(0) rotate(0); } 61% { transform: translateY(-14px) rotate(-12deg); } 68% { transform: translateY(0) rotate(8deg); } 76%, 100% { transform: translateY(0) rotate(-4deg); } }
html.native-app .ios-ribbon .sc { position: absolute; left: 128px; top: 60px; animation: iosSnip 3s ease-in-out both; transform-origin: 8px 17px; }
@keyframes iosSnip { 0%, 30% { transform: rotate(0); } 42% { transform: rotate(-20deg); } 48%, 100% { transform: rotate(0); } }
html.native-app .ios-ribbon .sc .bl1 { animation: iosBlade1 3s ease-in-out both; transform-origin: 14px 17px; }
html.native-app .ios-ribbon .sc .bl2 { animation: iosBlade2 3s ease-in-out both; transform-origin: 14px 17px; }
@keyframes iosBlade1 { 0%, 30% { transform: rotate(0); } 42% { transform: rotate(14deg); } 48%, 100% { transform: rotate(0); } }
@keyframes iosBlade2 { 0%, 30% { transform: rotate(0); } 42% { transform: rotate(-14deg); } 48%, 100% { transform: rotate(0); } }
html.native-app .ios-ribbon .stars { position: absolute; left: 118px; top: 70px; width: 70px; height: 30px; opacity: 0; animation: iosStars 3s ease-out both; }
@keyframes iosStars { 0%, 58% { opacity: 0; } 64%, 84% { opacity: 1; } 100% { opacity: 0; } }
html.native-app .ios-ribbon .stars i { position: absolute; width: 10px; height: 10px; background: #fcd535; clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 80% 100%, 50% 75%, 20% 100%, 31% 60%, 0 38%, 38% 38%); }
html.native-app .ios-ribbon .stars i:nth-child(1) { left: 0; top: 10px; } html.native-app .ios-ribbon .stars i:nth-child(2) { left: 30px; top: 0; } html.native-app .ios-ribbon .stars i:nth-child(3) { left: 58px; top: 12px; }
html.native-app .ios-ribbon .cap { font-size: 15px; color: var(--mws-ink-2); animation: iosFade .4s ease-out 2s both; }
/* Top Gainers #2 · rank climb (iPhone app) */
html.native-app .mwl-row.ios-move { transition: transform .9s cubic-bezier(.2, .9, .25, 1); position: relative; }
html.native-app .mwl-row.me-move { z-index: 2; box-shadow: 0 10px 30px rgba(240, 185, 11, .25); }
html.native-app .ios-rankup { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 8px; background: #20c775; color: #06210f; font-family: var(--mws-mono); font-size: 12px; font-weight: 800; animation: iosRankTag .5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes iosRankTag { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
/* Top Gainers #4 · live overtake (iPhone app) */
html.native-app .mwl-row.ios-overtaken { animation: iosOvertaken 1.4s ease-out .5s both; }
@keyframes iosOvertaken { 0% { box-shadow: 0 0 0 0 rgba(234, 57, 67, 0); } 20% { box-shadow: 0 0 0 2px rgba(234, 57, 67, .75), 0 0 18px rgba(234, 57, 67, .35); } 100% { box-shadow: 0 0 0 0 rgba(234, 57, 67, 0); } }
/* Top Gainers #7 · your-row heartbeat (iPhone app) */
html.native-app .mwl-row.ios-beat { animation: iosBeatRow 2.4s ease-in-out .4s both; }
html.native-app .mwl-row.ios-beat .right .v { display: inline-block; animation: iosBeatNum 2.4s ease-in-out .4s both; transform-origin: 100% 50%; }
@keyframes iosBeatRow { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0); } 15%, 40% { box-shadow: 0 0 0 2px rgba(240, 185, 11, .7), 0 0 22px rgba(240, 185, 11, .3); } }
@keyframes iosBeatNum { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 48% { transform: scale(1); } }
/* Top Gainers R2-2 · since-you-looked chips */
html.native-app .ios-since { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 8px; font-family: var(--mws-mono); font-size: 10px; font-weight: 800; animation: iosRankTag .4s cubic-bezier(.2, .9, .25, 1) both; transition: opacity .6s ease; }
html.native-app .ios-since.up { background: color-mix(in srgb, var(--mws-up) 18%, transparent); color: var(--mws-up); }
html.native-app .ios-since.dn { background: color-mix(in srgb, var(--mws-down) 18%, transparent); color: var(--mws-down); }
html.native-app .ios-since.out { opacity: 0; }
/* Top Gainers R2-4 · podium swap */
html.native-app .mwl-pod.ios-pod-move { transition: transform .9s cubic-bezier(.2, .9, .25, 1); position: relative; z-index: 2; }
/* Top Gainers R2-10 · month rollover card */
html.native-app .ios-final { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; border: 1px solid color-mix(in srgb, var(--mws-gold) 40%, transparent); border-radius: 16px; padding: 14px; background: var(--mws-card); color: var(--mws-ink); font-family: var(--font); animation: iosFinalIn .7s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes iosFinalIn { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
html.native-app .ios-final-hd { display: flex; justify-content: space-between; align-items: baseline; }
html.native-app .ios-final-hd b { font-size: 15px; } html.native-app .ios-final-hd span { font-size: 13px; color: var(--mws-gold); }
html.native-app .ios-final-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.native-app .ios-final-row .p { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--mws-well); }
html.native-app .ios-final-row .p i { font-style: normal; font-size: 18px; }
html.native-app .ios-final-row .p b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.native-app .ios-final-row .p .num { font-family: var(--mws-mono); font-size: 12px; }
html.native-app .ios-final-row .p .num.up { color: var(--mws-up); } html.native-app .ios-final-row .p .num.dn { color: var(--mws-down); }
html.native-app .ios-final-sub { font-size: 12px; color: var(--mws-ink-2); }
html.native-app .mws-page.ios-newmonth .mwl-podium { animation: iosFade .8s ease-out .5s both; }


/* ======================================================================
   Tab bar D (canvas "TredFlex Tab Bar", owner picked D on 2026-11-04 after
   trying B): a flat translucent bar flush on the bottom edge with a
   hairline on top; the active tab sits in a 72 × 56 grey pill with the
   gold icon and a bold label. The nav markup is shared with web and
   Telegram; only the iPhone-app scope changes. The pill is the active
   button's own ::after, so it fades in on the new tab rather than sliding.
   ====================================================================== */
html.web-shell.native-app { --nav-h: 62px; }
html.web-shell.native-app .bottom-nav,
html.web-shell.native-app .bottom-nav--glass {
  left: 0; right: 0; bottom: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  box-sizing: border-box; border-radius: 0;
  background: rgba(14, 20, 30, 0.86);
  border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  align-items: flex-start; justify-content: space-around;
}
html.web-shell.native-app .bottom-nav .nav-btn {
  position: relative; isolation: isolate;
  flex: 1 1 0; height: 56px; padding: 0; gap: 3px; border-radius: 18px; justify-content: center;
  color: #8b97ad; font-size: 10px;
  transition: color .1s ease;
}
html.web-shell.native-app .bottom-nav .nav-btn::after {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: 72px; height: 56px; margin-left: -36px;
  border-radius: 18px; background: #1c2432; opacity: 0; transition: opacity .15s ease;
}
html.web-shell.native-app .bottom-nav .nav-btn.active::after,
html.web-shell.native-app .bottom-nav .nav-btn.pressed::after { opacity: 1; }
html.web-shell.native-app .bottom-nav .nav-btn.active,
html.web-shell.native-app .bottom-nav .nav-btn.pressed { color: #f0b90b; }
html.web-shell.native-app .bottom-nav .nav-btn:active { transform: none; }
html.web-shell.native-app .bottom-nav .nav-icon::before { width: 24px; height: 24px; }
html.web-shell.native-app .bottom-nav .nav-btn .nav-label { font-size: 10px; font-weight: 500; }
html.web-shell.native-app .bottom-nav .nav-btn.active .nav-label { font-weight: 700; }
/* light: white bar, grey pill, iOS grey idle tabs, deep gold active */
html.web-shell.native-app[data-theme="light"] .bottom-nav,
html.web-shell.native-app[data-theme="light"] .bottom-nav--glass {
  background: rgba(249, 249, 251, 0.88) !important;
  border: 0 !important; border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none;
}
html.web-shell.native-app[data-theme="light"] .bottom-nav .nav-btn { color: #8a8a8e; }
html.web-shell.native-app[data-theme="light"] .bottom-nav .nav-btn::after { background: #e6e6ec; }
html.web-shell.native-app[data-theme="light"] .bottom-nav .nav-btn.active,
html.web-shell.native-app[data-theme="light"] .bottom-nav .nav-btn.pressed { color: #9a6700; }
@media (prefers-reduced-motion: reduce) {
  html.web-shell.native-app .bottom-nav .nav-btn, html.web-shell.native-app .bottom-nav .nav-btn::after { transition: none; }
}
