/* ---- Apple-OS glass style (owner 2026-10-29: 「按刚才的苹果 OS 风格全局，把我的行情系统也全部做一下」,
   same rules as the inventory app) ----
   Loaded LAST on every page so it wins over styles.css / search.css / library.css and the pages' inline <style>.
   - Only floating layers are frosted glass: top nav strip, phone bottom bar, sticky phone search bar, dialogs,
     bottom sheets, drawers, dropdowns, hover cards, tooltips.
   - Every button is a round capsule; search boxes, inputs, selects and segmented toggles are capsules too
     (iOS gray fill on white cards, semi-transparent white on the page background).
   - Cards and tables stay opaque white on a light-gray page, 16px corners, no outline.
   - prefers-reduced-transparency: reduce → solid colours, no blur.
   Accent stays green; rank colours and red prices are untouched. */

:root {
  --g-page: #f5f5f7;
  --g-fill: rgba(118, 118, 128, .12);
  --g-track: rgba(118, 118, 128, .16);
  --g-hair: inset 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .06);
  --g-card-r: 16px;
}

/* ---------- page ---------- */
body { background: var(--g-page); }
.topbar { border-bottom: 0; }
.tab-frame { background: var(--g-page); }

/* ---------- glass recipes ---------- */
nav.top-actions,
.bottom-nav,
.sp-mobilebar {
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
}
.sp-modal, .rv-sheet, .bc-card, .mv2-gal-card,
.bn-sheet, .sp-act,
.sp-left,
.pi-flt-panel,
.hb-drawer,
.hb-bpanel,
.tm-panel,
.panel-open .mv2-detail {
  background: rgba(246, 245, 243, .86);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}
.sp-sugg, #sp-hover, #mv2-hover, .sp-card-title-full {
  background: rgba(250, 250, 249, .84);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .45),
    0 1px 2px rgba(0, 0, 0, .06), 0 12px 34px rgba(0, 0, 0, .14);
}
#sp-tip, #mv2-tip {
  background: rgba(28, 28, 30, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 34px rgba(0, 0, 0, .24);
}
#sp-tip { border-radius: 999px; padding: 5px 11px; }
#mv2-tip { border-radius: 14px; }

/* backdrops: lighter, slightly blurred (behind dialogs / sheets / drawers) */
.sp-modal-backdrop, .rv-backdrop, .bn-backdrop, .sp-backdrop, .hb-shade, .hb-bshade, .pi-flt-back, .sp-act-back,
#buyCfgModal, #mv2-gallery {
  background: rgba(20, 20, 22, .28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- desktop top nav: one glass capsule ---------- */
nav.top-actions {
  border: 0;
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 .5px rgba(0, 0, 0, .1),
    0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
}
nav.top-actions .button { border-radius: 999px; }
nav.top-actions .button:hover { background: rgba(118, 118, 128, .12); }
nav.top-actions .button.active,
nav.top-actions .button.active:hover { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .10); }
nav.top-actions .button[href="/api/logout"] { border-radius: 999px; border-left: 0; margin-left: 2px; padding-left: 13px; }
nav.top-actions .lang-switch { border-left: 0; padding-left: 4px; margin-left: 0; gap: 2px; }
nav.top-actions .lang-switch button { border-radius: 999px; padding: 5px 9px; }
nav.top-actions .lang-switch button.active { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .10); }

/* ---------- phone / iPad: floating glass bottom bar ---------- */
@media (max-width: 1200px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  html.in-tab-frame body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    left: 12px; right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    max-width: 560px; margin: 0 auto;
    padding: 6px 4px;
    border: 0;
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 .5px rgba(0, 0, 0, .1),
      0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .12);
  }
  .bn-item { border-radius: 22px; padding: 6px 2px 5px; }
  .bn-item.active { background: rgba(10, 164, 92, .10); }
  /* the kept-alive tabs now run full height under the floating bar */
  .tab-frame { height: 100% !important; }

  .bn-sheet {
    left: 8px; right: 8px; bottom: 8px;
    border-radius: 28px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5),
      0 24px 60px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
  }
  .bn-done { border-radius: 999px; padding: 6px 18px; }
  .bn-langs button { border: 0; border-radius: 999px; background: #fff; box-shadow: var(--g-hair); }
  .bn-langs button.on { background: var(--green); color: #fff; box-shadow: 0 3px 10px rgba(10, 164, 92, .25); }
  .bn-install { border: 0; border-radius: 999px; background: #fff; box-shadow: var(--g-hair); }
  .bn-logout { border: 0; border-radius: 999px; background: #fff; box-shadow: var(--g-hair); }

  /* 查价: sticky search bar = glass strip, its pill + 3 chips are capsules */
  .sp-mobilebar {
    margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px;
    box-shadow: 0 .5px 0 rgba(0, 0, 0, .08);
  }
  .mb-search { border: 0; border-radius: 999px; background-color: rgba(255, 255, 255, .85); box-shadow: var(--g-hair); }
  .mb-chips button { border: 0; background: rgba(255, 255, 255, .85); box-shadow: var(--g-hair); }

  /* filter bottom sheet */
  .sp-left { border-radius: 28px 28px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 -10px 40px rgba(0, 0, 0, .16); }
  .sp-left .sp-panel { background: transparent; }
  .sp-left .sp-tabs { background: transparent; }
  .sp-sheet-done { border-radius: 999px; }
  body.sheet-image .sp-left { border-radius: 0; }
}

/* ---------- dialogs, sheets, drawers ---------- */
.sp-modal, .rv-sheet {
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5),
    0 24px 60px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
}
.bc-card, .mv2-gal-card {
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5),
    0 24px 60px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
}
@media (max-width: 760px) { .mv2-gal-card { border-radius: 0; } }
@media (max-width: 640px) {
  .sp-modal, .rv-sheet { border-radius: 28px 28px 0 0; }
}
.hb-bpanel {
  border: 0; border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 18px 44px rgba(0, 0, 0, .16);
}
.hb-bpanel input { border: 0; border-radius: 999px; background: #fff; box-shadow: var(--g-hair); padding-left: 16px; }
.hb-drawer { border-left: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .7), -16px 0 40px rgba(0, 0, 0, .14); }
.pi-flt-panel { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7), 16px 0 40px rgba(0, 0, 0, .14); }
.pi-flt-head { border-bottom-color: rgba(0, 0, 0, .06); }
.tm-panel { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7), 16px 0 40px rgba(0, 0, 0, .14) !important; }
.panel-open .mv2-detail { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 50px rgba(0, 0, 0, .16); }
@media (min-width: 1281px) {
  /* desktop: the detail column sits in the page, not floating → stays an opaque card */
  .panel-open .mv2-detail { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}
.sp-sugg { border-radius: 16px; padding: 6px; }
.sp-sugg button { border-radius: 10px; }
.sp-sugg button:hover, .sp-sugg button.on { background: rgba(118, 118, 128, .12); }
#sp-hover, #mv2-hover { border-radius: 18px; }

/* ---------- cards: opaque white, 16px, no outline ---------- */
.summary-card, .panel, .signal-card, .table-wrap, .worker-progress, .empty,
.sp-panel, .hm-card, .sp-filters, .sp-chart-card, .mk-card, .pi-card, .pi-same,
.lib-kpi, .lib-panel, .mv2-empty, .mv2-detail {
  border-radius: var(--g-card-r);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.mk-card { border-color: rgba(10, 164, 92, .35); }
.sp-tile, .mk-tile { border-radius: 12px; }
.sp-tabs { background: #f2f2f5; border-bottom-color: rgba(0, 0, 0, .06); }

/* ---------- buttons: round capsules ---------- */
.button, button.button, a.button,
.sp-go, .sp-jump, .sp-clear, .sp-exact, .sp-sort, .sp-pager button, .sp-jump-in, .sp-detail-toggle,
.sp-modal-modes button, .sp-sheet-done, .sp-examples button,
.pi-btn, .pi-url button, .pi-go, .pi-sizes a, .pi-codes a, .pi-flt-open,
.lib-back, .lib-btn, .lib-more, .mv2-rkbtn, .bc-save,
.mv2-lots-more {
  border-radius: 999px;
}
.sp-modal-x, .mv2-detail-close, .sp-tier-x button { border-radius: 999px; border: 0; background: rgba(118, 118, 128, .12); }

/* secondary (white) buttons get a hairline instead of a grey outline */
.button:not(.active), .sp-clear, .sp-exact:not(.active), .sp-pager button, .sp-detail-toggle,
.pi-btn, .lib-back, .lib-btn, .lib-more, .mv2-rkbtn {
  border-color: transparent;
  box-shadow: var(--g-hair);
}
/* primary (green) buttons: soft lift */
.sp-go, .sp-jump, .pi-go, .bc-save, .sp-sheet-done, .bn-done { box-shadow: 0 3px 10px rgba(10, 164, 92, .22); }
.sp-go { padding: 0 24px; }

/* ---------- inputs, selects, search boxes: capsules ---------- */
select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]) {
  border-radius: 999px;
}
select, input[type="text"], input[type="search"], input[type="number"], input[type="password"],
input[type="email"], input[type="url"], input[type="date"], input[type="month"], input:not([type]) {
  border-color: transparent;
  background-color: var(--g-fill);
  box-shadow: none;
}
select:focus, input:focus {
  outline: 0;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(10, 164, 92, .22);
}
textarea { border-radius: 16px; }
/* inputs sitting in a white strip inside the search box / mobile bar stay transparent */
.sp-box input, .mb-search input, .sp-box input:focus, .mb-search input:focus { background: transparent; box-shadow: none; border-radius: 0; }
select { padding-left: 14px; padding-right: 30px; }
#sort, .sp-sort, #cols, #psize { border-radius: 999px; }

/* the main search box (on the page background) */
.sp-box {
  border: 0; border-radius: 999px; padding: 6px 6px 6px 8px;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);
}
.sp-box:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(10, 164, 92, .22), 0 8px 24px rgba(0, 0, 0, .06); }
.sp-field input { border: 0; border-radius: 999px; background: var(--g-fill); box-shadow: none; padding: 0 18px; }
.sp-field input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(10, 164, 92, .22); }
.pi-url input, .pi-hint { border-color: transparent; border-radius: 999px; background: var(--g-fill); padding: 0 14px; }
.sp-modal-table input, .sp-tier-table input, .lib-numf input, .lib-numf select { border-color: transparent; background: rgba(255, 255, 255, .9); box-shadow: var(--g-hair); border-radius: 999px; }
.sp-cur-in input { border-radius: 999px 0 0 999px; }
.sp-cur { border-radius: 0 999px 999px 0; border-color: transparent; }

/* ---------- segmented toggles & tabs: capsule tracks ---------- */
.segmented, .sp-view, .sp-modal-modes {
  border: 0;
  border-radius: 999px;
  background: var(--g-track);
  padding: 3px;
  gap: 2px;
}
.sp-modal-modes { display: inline-flex; flex-wrap: wrap; }
.sp-modal-modes .sp-label { padding: 0 8px; align-self: center; }
.segmented button, .sp-view button, .sp-modal-modes button {
  border: 0; border-radius: 999px; background: transparent; box-shadow: none;
}
.sp-view button + button { border-left: 0; }
.segmented button.active, .sp-view button.active, .sp-modal-modes button.active {
  background: #fff; color: var(--green-dark); font-weight: 650;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}
.sp-tabs > button[data-tab] { border-radius: 999px; border: 0; margin-bottom: 6px; padding: 6px 16px; }
.sp-tabs > button[data-tab].active { border: 0; top: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .10); }
.sp-tabs { padding: 6px 8px 0; }
.sp-chips button { border-color: transparent; box-shadow: var(--g-hair); }
.sp-chips button.active { box-shadow: none; }
.sp-chips button.more { border-color: #9fd9bb; box-shadow: none; }

/* ---------- page-specific controls (styles written inside each page) ---------- */
/* segmented tracks: 收货 筛选 / 热门款 / 涨跌榜 */
.rv-chips, .tp-seg, .mv-seg { background: var(--g-track); border-radius: 999px; padding: 3px; }
.rv-chip, .tp-seg button, .mv-seg button { border-radius: 999px; }
.rv-chip.on, .tp-seg button.on, .mv-seg button.on { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .10); }
/* capsule buttons */
.rv-btn, #btn-new, .rv-market button, .rv-install button, .rv-detail-tab, .rv-comment-form button,
.adm-btn, .kb-brands button, .kb-acts button, .hb-blist button, .cs-cal-nav button { border-radius: 999px; }
/* capsule search / fields */
.rv-search, .rv-qslot .rv-search { border-radius: 999px; }
.rv-comment-form input, .adm-row input, .adm-cap input, .kb-bar input, .kb-bar select, .hb select { border-radius: 999px; }
/* opaque cards, radius 16 */
.rv-card, .rv-tablewrap, .adm-card, .cs-card, .mv-card, .hb-card {
  border-radius: var(--g-card-r);
}
.rv-card, .adm-card, .cs-card, .mv-card { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

/* 款型库 filter bar (styles injected by brand-tabs.js at runtime → need extra weight) */
html body .lib-bar { border-color: transparent; border-radius: var(--g-card-r); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
html body .lib-seg { background: var(--g-track); border-radius: 999px; }
html body .lib-seg a { border-radius: 999px; }
html body .lib-seg a.active { box-shadow: 0 2px 8px rgba(0, 0, 0, .10); }
html body .lib-field { border-radius: 999px; border-color: transparent; background: var(--g-fill); padding: 0 14px; }
html body .lib-field:focus-within { background: #fff; border-color: transparent; box-shadow: 0 0 0 3px rgba(10, 164, 92, .18); }
html body .lib-field input, html body .lib-field select { background: transparent; box-shadow: none; border-radius: 0; height: auto; }
html body .lib-movers { border-radius: 999px; }
html body .lib-quick a { border-color: transparent; box-shadow: var(--g-hair); }
html body .lib-quick a.active { box-shadow: none; border-color: #9fd9bb; }

html body .lib-numf input, html body .lib-numf select { background: var(--g-fill); border-color: transparent; border-radius: 999px; }
html body .lib-numf input:focus, html body .lib-numf select:focus { background: #fff; box-shadow: 0 0 0 3px rgba(10, 164, 92, .18); outline: none; }

/* 产品目录 toolbar + 收货 brand select */
.hb-ft, .hb-sk, .rv-brand, .hb-bpanel input { border-radius: 999px; }
.hb-ft, .hb-sk { border-color: transparent; box-shadow: var(--g-hair); }
.hb #q { border-radius: 999px; border-color: transparent; box-shadow: var(--g-hair); }
.hb #q:focus { box-shadow: 0 0 0 3px rgba(10, 164, 92, .18); outline: none; }
details.hb-gl { border-radius: var(--g-card-r); border-color: transparent; }

/* ---------- glass confirm / notice / toast (glass-confirm.js, 2026-11-12, same as inventory) ---------- */
dialog.gc-dialog {
  width: min(20rem, calc(100vw - 2.5rem)); padding: 0; margin: auto; border: 0; border-radius: 24px;
  color: var(--ink, #1f2124); text-align: center; outline: none;
  background: rgba(246, 245, 243, .86);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5),
    0 24px 60px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
}
dialog.gc-dialog::backdrop { background: rgba(20, 20, 22, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gc-body { padding: 24px 20px 16px; }
.gc-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.gc-msg { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.gc-msg.gc-msg-sub { font-size: 13px; font-weight: 400; color: #55524c; }
.gc-acts { display: flex; gap: 10px; margin-top: 20px; }
.gc-btn { flex: 1; height: 40px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.gc-cancel { background: rgba(255, 255, 255, .8); color: var(--ink, #1f2124); box-shadow: var(--g-hair); }
.gc-cancel:hover { background: #fff; }
.gc-ok { background: var(--green, #0aa45c); color: #fff; box-shadow: 0 3px 10px rgba(10, 164, 92, .22); }
.gc-ok:hover { background: var(--green-dark, #08904d); }
.gc-ok.gc-danger { background: #c62828; box-shadow: 0 3px 10px rgba(198, 40, 40, .25); }
.gc-ok.gc-danger:hover { background: #b02222; }
.gc-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(10, 164, 92, .22); }
.gc-toasts {
  position: fixed; inset: auto 0 max(1.5rem, env(safe-area-inset-bottom)) 0; z-index: 200; margin: 0; padding: 0 16px;
  width: 100%; max-width: none; height: auto; border: 0; background: transparent; overflow: visible;
  display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.gc-toasts.on { display: flex; }
.gc-toast {
  pointer-events: auto; max-width: min(32rem, 100%); border: 0; border-radius: 22px; padding: 10px 16px;
  font: inherit; font-size: 13px; line-height: 1.4; text-align: left; white-space: pre-line; overflow-wrap: anywhere;
  color: #fff; cursor: pointer;
  background: rgba(28, 28, 30, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 34px rgba(0, 0, 0, .24);
}
.gc-mark { margin-right: 6px; color: #6fe0a6; font-weight: 600; }
.gc-toast-err .gc-mark { color: #ff8a80; }

/* ---------- reduced transparency: solid colours ---------- */
@media (prefers-reduced-transparency: reduce) {
  nav.top-actions, .bottom-nav, .sp-mobilebar,
  .sp-modal, .rv-sheet, .bc-card, .mv2-gal-card, .bn-sheet, .sp-act, .sp-left, .pi-flt-panel, .hb-drawer,
  .hb-bpanel, .tm-panel, .panel-open .mv2-detail,
  .sp-sugg, #sp-hover, #mv2-hover, .sp-card-title-full {
    background: #f7f6f4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sp-mobilebar { background: var(--g-page); }
  #sp-tip, #mv2-tip { background: #2a2a2c; -webkit-backdrop-filter: none; backdrop-filter: none; }
  dialog.gc-dialog { background: #f7f6f4; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gc-toast { background: #2a2a2c; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sp-modal-backdrop, .rv-backdrop, .bn-backdrop, .sp-backdrop, .hb-shade, .hb-bshade, .pi-flt-back, .sp-act-back,
  #buyCfgModal, #mv2-gallery {
    background: rgba(20, 20, 22, .45);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- iPhone Duo: the dock sits in the side strip (D303) ----------
   In the iOS app the shell draws it in the strip (ratel-ios I018): bottom-nav.js sets
   html.duo-native-dock and this page drops its own bar. Otherwise (older app, browser) it sets
   html.duo-rail + duo-rail-r / duo-rail-l: a dark icon-only pill at that edge, low down.
   Tab frames' pages get host-rail (no room kept at the bottom). Phones and iPad keep the bottom bar. */
@media (max-width: 1200px) {
  html.duo-native-dock .bottom-nav { display: none; }
  html.duo-native-dock body,
  html.duo-rail body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  html.duo-rail .bottom-nav {
    flex-direction: column; justify-content: center; gap: 6px;
    top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: auto; right: auto;
    transform: none;
    width: 44px; max-width: none; margin: 0;
    padding: 4px;
    border-radius: 22px;
    background: rgba(28, 27, 25, .92);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  }
  html.duo-rail-r .bottom-nav { right: calc(4px + env(safe-area-inset-right, 0px)); }
  html.duo-rail-l .bottom-nav { left: calc(4px + env(safe-area-inset-left, 0px)); }
  html.duo-rail .bn-item {
    flex: none; width: 36px; height: 36px; padding: 0; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .72);
  }
  html.duo-rail .bn-item svg { width: 20px; height: 20px; margin: 0; }
  html.duo-rail .bn-item span { display: none; }
  html.duo-rail .bn-item.active { color: #01c2c3; background: rgba(255, 255, 255, .14); }
  html.duo-rail-r body { padding-right: calc(52px + env(safe-area-inset-right, 0px)); }
  html.duo-rail-l body { padding-left: calc(52px + env(safe-area-inset-left, 0px)); }
  /* the kept-alive tabs stop beside the pill */
  html.duo-rail .tab-frame { width: calc(100% - 52px); }
  html.duo-rail-l .tab-frame { left: 52px; }
  html.in-tab-frame.host-rail body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  html.photo-tab.duo-rail:not(.in-tab-frame) body.sheet-image .sp-left,
  html.photo-tab.duo-native-dock:not(.in-tab-frame) body.sheet-image .sp-left,
  html.photo-tab.in-tab-frame.host-rail body.sheet-image .sp-left { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
