/* LocalPages (展页) 2026 v2 Official Website
 * Design Language: Desk Paper + Frosted Liquid Glass + Seamless Optical Blue Aura
 */
:root {
  --desk: #F3F5F9;
  --paper: #FFFFFF;
  --peek: #F8FAFD;
  --ink: #11141C;
  --ink2: #4B5366;
  --ink3: #757E93;
  --line: rgba(17, 20, 28, 0.08);
  --line-strong: rgba(17, 20, 28, 0.14);
  --fill: #F2F5FA;
  --hover: rgba(17, 20, 28, 0.05);
  --brand: #0A4CE6;
  --brand-hover: #083EC0;
  --brand-tint: rgba(10, 76, 230, 0.09);
  --brand-hl: rgba(10, 120, 255, 0.14);
  --on-brand: #FFFFFF;
  --sky1: rgba(12, 114, 255, 0.22);
  --sky2: rgba(76, 196, 255, 0.18);
  --nav-glass: rgba(255, 255, 255, 0.84);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-solid: #FFFFFF;
  --glass-edge: rgba(255, 255, 255, 0.92);
  --hairline: rgba(17, 20, 28, 0.09);
  --tile: #FFFFFF;
  --shadow: rgba(15, 23, 42, 0.06);
  --shadow-strong: rgba(15, 23, 42, 0.14);
  --tile-blue: #0A84FF;
  --tile-orange: #FF9500;
  --tile-green: #28C254;
  --tile-indigo: #5E5CE6;
  --tile-teal: #1EA8C6;
  --tile-gray: #7C8496;
  --font: "OPPO Sans 4.0", "OPPO Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0B0D12;
    --paper: #161922;
    --peek: #12141C;
    --ink: #EEF1F7;
    --ink2: #B0B7C8;
    --ink3: #838B9E;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --fill: #1F2330;
    --hover: rgba(255, 255, 255, 0.07);
    --brand: #5E97FF;
    --brand-hover: #7AAAFF;
    --brand-tint: rgba(94, 151, 255, 0.16);
    --brand-hl: rgba(94, 151, 255, 0.24);
    --on-brand: #071024;
    --sky1: rgba(14, 92, 240, 0.34);
    --sky2: rgba(56, 160, 255, 0.18);
    --nav-glass: rgba(24, 27, 37, 0.84);
    --glass: rgba(28, 32, 44, 0.80);
    --glass-solid: #1E212B;
    --glass-edge: rgba(255, 255, 255, 0.12);
    --hairline: rgba(255, 255, 255, 0.12);
    --tile: #262A36;
    --shadow: rgba(0, 0, 0, 0.36);
    --shadow-strong: rgba(0, 0, 0, 0.56);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --desk: #0B0D12;
  --paper: #161922;
  --peek: #12141C;
  --ink: #EEF1F7;
  --ink2: #B0B7C8;
  --ink3: #838B9E;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fill: #1F2330;
  --hover: rgba(255, 255, 255, 0.07);
  --brand: #5E97FF;
  --brand-hover: #7AAAFF;
  --brand-tint: rgba(94, 151, 255, 0.16);
  --brand-hl: rgba(94, 151, 255, 0.24);
  --on-brand: #071024;
  --sky1: rgba(14, 92, 240, 0.34);
  --sky2: rgba(56, 160, 255, 0.18);
  --nav-glass: rgba(24, 27, 37, 0.84);
  --glass: rgba(28, 32, 44, 0.80);
  --glass-solid: #1E212B;
  --glass-edge: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.12);
  --tile: #262A36;
  --shadow: rgba(0, 0, 0, 0.36);
  --shadow-strong: rgba(0, 0, 0, 0.56);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 16px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 160;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

/* Full-bleed seamless top atmosphere from y=0 */
.top-aura {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 56%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 56%, transparent 100%);
}
.top-aura::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(66% 74% at 50% -6%, var(--sky1), transparent 72%),
    radial-gradient(46% 56% at 80% 10%, var(--sky2), transparent 70%);
}
.top-aura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.13;
  filter: saturate(1.1) blur(1px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top-aura img { opacity: 0.20; }
}
:root[data-theme="dark"] .top-aura img { opacity: 0.20; }

/* Liquid glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 16px var(--shadow), 0 14px 36px var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .pill, .m-rail, .m-rail-peek { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-solid); }
}

/* Sticky Floating Glass Nav */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(14px, env(safe-area-inset-left, 0px)) 0;
}
.pill {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 54px;
  padding: 0 7px 0 9px;
  border-radius: 999px;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 24px var(--shadow);
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  white-space: nowrap;
}
.brandmark:hover { text-decoration: none; }
.brandmark img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(10, 76, 230, 0.26);
}
.brandmark small { font-weight: 500; color: var(--ink3); font-size: 12px; }

.pill .links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.gbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.gbtn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.gbtn[aria-current="true"], .gbtn[aria-selected="true"] {
  background: var(--tile);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 6px var(--shadow);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--hover);
  transition: background .15s, color .15s;
}
.language-switch:hover { color: var(--ink); background: var(--line); }
.language-switch svg { width: 15px; height: 15px; flex: none; }
.language-switch select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.dl-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(10, 76, 230, 0.28);
  transition: transform .15s ease, background .15s ease;
}
.dl-pill:hover { background: var(--brand-hover); transform: translateY(-1px); text-decoration: none; }
.dl-pill svg { width: 17px; height: 17px; }

main { position: relative; z-index: 1; }

/* Compact & Crisp Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 36px 0 32px;
}
.hero-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 18px;
  filter: drop-shadow(0 14px 24px rgba(10, 76, 230, 0.28));
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-5px); } }

.hero h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--brand);
  margin-top: 4px;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(10, 76, 230, 0.14);
}
.hero-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tile-green);
  box-shadow: 0 0 0 3px rgba(40, 194, 84, 0.20);
}

/* Dual CTA + Hover QR Popover */
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 22px rgba(10, 76, 230, 0.26);
}
.btn-brand:hover { background: var(--brand-hover); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 10px var(--shadow);
}
.btn-ghost:hover { background: var(--fill); }

.qr-wrap {
  position: relative;
  display: inline-flex;
}
.qr-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translate(-50%, 6px) scale(0.96);
  width: 232px;
  padding: 14px 14px 13px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 52px var(--shadow-strong), 0 4px 14px var(--shadow);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 90;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.qr-popover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 16px;
}
.qr-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}
.qr-wrap.qr-up .qr-popover {
  top: auto;
  bottom: calc(100% + 12px);
  transform: translate(-50%, -6px) scale(0.96);
}
.qr-wrap.qr-up .qr-popover::before {
  top: auto;
  bottom: -14px;
}
.qr-wrap.qr-up .qr-popover::after {
  top: auto;
  bottom: -6px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.qr-wrap:hover .qr-popover,
.qr-wrap:focus-within .qr-popover,
.qr-wrap.is-open .qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.qr-popover .qr-img-box {
  background: #FFFFFF;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(17, 20, 28, 0.06);
}
.qr-popover img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.qr-popover strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  color: var(--ink);
}
.qr-popover span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink3);
  line-height: 1.4;
}

/* Unified 4-Device Live Showcase Stage */
.showcase {
  padding-top: 4px;
  padding-bottom: 8px;
  scroll-margin-top: 84px;
}
.showcase-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}
.stage-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.stage-window {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 64px var(--shadow-strong), 0 4px 16px var(--shadow);
}
.stage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 6px 14px;
}
.stage-panel-note {
  font-size: 14px;
  color: var(--ink2);
}
.sub-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
}
.sub-switch button {
  border: 0;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sub-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--brand);
  box-shadow: 0 1px 4px var(--shadow);
}
.stage-canvas {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--fill), var(--peek));
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  overflow: hidden;
}
.zoom-btn {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  max-width: 100%;
  border-radius: 14px;
}
.stage-canvas img.shot-wide {
  max-height: 540px;
  width: auto;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px var(--shadow-strong);
}
.duo-pair {
  display: grid;
  grid-template-columns: 0.44fr 1fr;
  gap: 20px;
  align-items: end;
  width: 100%;
  max-width: 920px;
  padding: 6px 4px;
}
.duo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.duo-slot img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--line-strong);
  box-shadow: 0 16px 38px var(--shadow-strong);
}
.duo-slot span { font-size: 12.5px; font-weight: 600; color: var(--ink3); }

.iphone-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 224px));
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding: 8px 4px;
}
.phone-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.phone-slot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 3px solid #171A24;
  box-shadow: 0 18px 42px var(--shadow-strong);
}
.phone-slot span { font-size: 12.5px; font-weight: 600; color: var(--ink3); }

/* Section Rhythm */
section.block {
  padding-top: 84px;
  scroll-margin-top: 78px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.lead {
  color: var(--ink2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 580px;
  margin-top: 10px;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Concise Bento 2x2 */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.card {
  background: var(--paper);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px var(--shadow);
  min-width: 0;
}
.card-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.card h3 { font-size: 20px; line-height: 1.3; }
.card p { color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.vis { margin-top: auto; padding-top: 14px; }

.note-demo {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  display: grid;
  gap: 11px;
}
.note-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 10px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tile-blue); flex: none; }
.note-editor-line {
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.note-hash { color: var(--brand); font-family: var(--mono); opacity: 0.7; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.08em;
  background: var(--brand);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink3);
}
.compose-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px var(--shadow);
  flex: none;
}
.compose-fab svg { width: 18px; height: 18px; }

.toolbar-bed {
  background: var(--fill);
  border-radius: 16px;
  padding: 15px;
  border: 1px solid var(--line);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  font-size: 13px;
  color: var(--ink2);
}
.toolbar span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0 6px;
}
.toolbar .sep { min-width: 1px; width: 1px; height: 13px; background: var(--line-strong); padding: 0; margin: 0 3px; }
.toolbar .active-pill { background: var(--brand-tint); color: var(--brand); font-weight: 600; padding: 0 10px; }
.todo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.todo button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  text-align: start;
  cursor: pointer;
  transition: background .15s;
}
.todo button:hover { background: var(--hover); }
.todo .cb {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink3);
  display: grid;
  place-items: center;
  transition: all .15s;
}
.todo button[aria-pressed="true"] { color: var(--ink3); text-decoration: line-through; }
.todo button[aria-pressed="true"] .cb { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.todo .cb svg { width: 12px; height: 12px; opacity: 0; }
.todo button[aria-pressed="true"] .cb svg { opacity: 1; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.chip small { color: var(--ink3); font-family: var(--mono); font-size: 11px; margin-inline-start: auto; font-weight: 500; }
.tile {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
}
.tile svg { width: 14px; height: 14px; }

.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.exp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}
.exp-item b { display: block; font-size: 13.5px; line-height: 1.25; }
.exp-item small { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* Unified Full-Width Cards: Sync, AI MCP, Privacy, FAQ */
.sync-card, .ai-card, .privacy-card, .faq-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 34px var(--shadow);
}
.sync-card, .ai-card, .privacy-card { padding: 44px 40px; }
.faq-card { margin-top: 24px; padding: 36px 40px 28px; }

.sync-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 15px; }
.facts li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.facts li i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
}
.facts li i svg { width: 18px; height: 18px; }
.facts b { display: block; font-size: 15px; margin-bottom: 1px; }
.facts span { color: var(--ink2); font-size: 13.5px; line-height: 1.5; }

.sync-visual { position: relative; padding: 18px 10% 8% 0; }
[dir="rtl"] .sync-visual { padding: 18px 0 8% 10%; }
.sync-mac {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 48px var(--shadow-strong);
  cursor: zoom-in;
}
.sync-phone {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 30%;
  padding: 0;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  border: 3.5px solid #141720;
  box-shadow: 0 20px 44px var(--shadow-strong);
  cursor: zoom-in;
}
.sync-hub {
  position: absolute;
  left: 43%;
  top: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sync-hub .tile { width: 25px; height: 25px; border-radius: 50%; background: var(--tile-blue); }
.sync-hub small { color: var(--ink3); font-weight: 500; }
.sync-hub .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tile-green); box-shadow: 0 0 0 3px rgba(40, 194, 84, 0.22); }

/* AI Assistant MCP Card */
.ai-card {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 40px;
  align-items: center;
}
.ai-modes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ai-modes li {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 15px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ai-modes li[data-active="true"] {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.ai-modes b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.ai-modes span { font-size: 13px; color: var(--ink2); }
.ai-note { margin-top: 14px; font-size: 12.5px; color: var(--ink3); line-height: 1.55; }

.mcp-window {
  background: var(--desk);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-strong);
}
.mcp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mcp-dots { display: flex; align-items: center; gap: 6px; }
.mcp-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mcp-tab {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink2);
  white-space: nowrap;
}
.mcp-run {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--brand-tint);
  color: var(--brand);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.mcp-run:hover { background: var(--brand); color: var(--on-brand); }
.mcp-paper {
  position: relative;
  background: var(--paper);
  padding: 24px 24px 72px;
  min-height: 274px;
}
.mcp-crumb { font-size: 11.5px; color: var(--ink3); margin-bottom: 10px; }
.mcp-paper h4 { font-size: 20px; margin-bottom: 10px; }
.mcp-paper p { font-size: 14px; line-height: 1.75; color: var(--ink2); margin-bottom: 10px; }
.mcp-hl {
  border-radius: 5px;
  padding: 1px 3px;
  transition: background .25s ease, color .25s ease;
}
.mcp-hl.is-changed { background: var(--brand-hl); color: var(--ink); }
.mcp-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.mcp-toast .ai-pill {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10.5px;
  font-weight: 700;
}
.mcp-toast button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.mcp-toast button:hover { text-decoration: underline; }

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.privacy-card { overflow: hidden; }
.stack { position: relative; height: 240px; }
.sheet {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(310px, 84%);
  height: 192px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px var(--shadow);
}
.sheet:nth-child(1) { transform: translate(30px, -22px) rotate(6deg); background: var(--peek); }
.sheet:nth-child(2) { transform: translate(15px, -11px) rotate(3deg); }
[dir="rtl"] .sheet:nth-child(1) { transform: translate(-30px, -22px) rotate(-6deg); }
[dir="rtl"] .sheet:nth-child(2) { transform: translate(-15px, -11px) rotate(-3deg); }
.sheet:nth-child(3) { padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--fill); }
.sheet .lk {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
}
.sheet .lk svg { width: 20px; height: 20px; }
.sheet .bar { height: 9px; border-radius: 5px; background: var(--paper); }
.sheet .bar.s { width: 62%; }
.plist { list-style: none; padding: 0; margin: 18px 0 0; }
.plist li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.plist li:last-child { border-bottom: 0; padding-bottom: 0; }
.plist li b { font-weight: 600; }
.plist li span { color: var(--ink3); font-size: 13.5px; text-align: end; }
.section-more { margin-top: 16px; font-size: 14px; font-weight: 600; }

/* FAQ Card */
.faq-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.faq-head h3 { font-size: 22px; letter-spacing: -0.01em; }
.faq-head span { font-size: 13px; color: var(--ink3); }
.faq-list { display: grid; }
details.faq-item {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
details.faq-item:last-child { padding-bottom: 4px; }
details.faq-item summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--brand); flex: none; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-body {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 820px;
}

/* Final CTA — Desktop 1A (Seamless White QR Card) + Mobile Centered Single-Column */
.final {
  margin-top: 84px;
  border-radius: 28px;
  padding: 50px 56px;
  text-align: start;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px var(--shadow);
}
.final-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.final-bg::before {
  content: "";
  position: absolute;
  inset: auto 0 -55% 0;
  height: 110%;
  background: radial-gradient(64% 62% at 32% 100%, var(--sky1), transparent 70%);
  opacity: 0.72;
}
[dir="rtl"] .final-bg::before {
  background: radial-gradient(64% 62% at 68% 100%, var(--sky1), transparent 70%);
}
.final > *:not(.final-bg) { position: relative; z-index: 1; }
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 44px;
  align-items: center;
}
.final-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.final-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(10, 76, 230, 0.24);
}
.final-brand strong { font-size: 16px; color: var(--ink); font-weight: 700; }
.final-brand span { font-size: 13px; color: var(--ink3); font-weight: 500; }
.final-copy h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.final-copy h2 em {
  display: block;
  font-style: normal;
  color: var(--brand);
  margin-top: 4px;
}
.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.final-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
}
.final-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tile-green);
  box-shadow: 0 0 0 3px rgba(40, 194, 84, 0.20);
}
/* Pure #FFFFFF QR card matching --paper in Light Mode with zero inner border seam */
.final-qr-card {
  width: 244px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px var(--shadow), 0 2px 8px rgba(15, 23, 42, 0.04);
  text-align: center;
}
.final-qr-pad {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}
.final-qr-pad img {
  width: 100%;
  height: auto;
  display: block;
}
.final-qr-card strong {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.final-qr-card span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink3);
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .final-qr-card {
    background: #1C202B;
    border-color: var(--line-strong);
  }
  :root:not([data-theme="light"]) .final-qr-pad {
    background: #FFFFFF;
    padding: 8px;
    border-radius: 16px;
  }
}
:root[data-theme="dark"] .final-qr-card {
  background: #1C202B;
  border-color: var(--line-strong);
}
:root[data-theme="dark"] .final-qr-pad {
  background: #FFFFFF;
  padding: 8px;
  border-radius: 16px;
}

/* Mobile Right-Side Floating Liquid Glass Rail (2B) — hidden on desktop */
.m-rail-host { display: none; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0 22px;
  font-size: 13px;
  color: var(--ink3);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink2); }
.locale-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 18px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink3);
}
.locale-links a { color: inherit; }
.locale-links a[aria-current="page"], .locale-links a:hover { color: var(--brand); font-weight: 600; }

/* Subpages (Support & Privacy) */
.doc-shell {
  max-width: 860px;
  margin: 38px auto 76px;
  padding-inline: 20px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.doc-paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 42px;
  box-shadow: 0 12px 36px var(--shadow);
}
.doc-paper h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.doc-meta { margin-top: 12px; font-size: 13.5px; color: var(--ink3); }
.doc-lead { margin-top: 16px; color: var(--ink2); font-size: 16px; line-height: 1.75; }
.doc-section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc-section h2 { font-size: 20px; margin-bottom: 12px; }
.doc-section p { color: var(--ink2); font-size: 15px; line-height: 1.8; }
.contact-box {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--fill);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-box h2 { font-size: 18px; margin-bottom: 4px; }
.contact-box p { font-size: 14px; color: var(--ink2); max-width: 480px; }

/* Lightbox Dialog */
dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1320px);
  max-height: 92vh;
  overflow: visible;
}
dialog.lightbox::backdrop {
  background: rgba(7, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb-box { position: relative; display: grid; justify-items: center; gap: 10px; }
.lb-box img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.lb-cap {
  color: #fff;
  font-size: 13px;
  text-align: center;
  background: rgba(15, 20, 32, 0.78);
  padding: 6px 14px;
  border-radius: 999px;
}
.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 24, 34, 0.90);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon, .caret { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .brandmark small { display: none; }
  .bento, .sync-grid, .ai-card, .privacy-grid { grid-template-columns: 1fr; }
  .sync-card, .ai-card, .privacy-card, .faq-card { padding: 30px 22px; }
  .stage-canvas { min-height: 320px; }
  .final { padding: 42px 32px; }
  .final-grid { gap: 28px; }
  .final-qr-card { width: 214px; padding: 14px 14px 13px; }
}
@media (max-width: 760px) {
  /* Hide top floating bar on home page only; keep top nav on /support/ & /privacy/ */
  html[data-page=""] .sitenav { display: none; }
  html[data-page=""] .wrap {
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
  }
  html[data-page=""] .showcase, html[data-page=""] .block { scroll-margin-top: 20px; }
  .pill { height: 50px; padding: 0 6px 0 8px; }
  .pill .links { display: none; }
  .hero { padding: 34px 0 22px; }
  .hero-icon { width: 68px; height: 68px; margin-bottom: 14px; }
  .hero-status { font-size: 11px; padding: 5px 10px; gap: 5px; max-width: 100%; }
  .cta .btn { height: 46px; padding: 0 26px; font-size: 15px; }
  /* Mobile-only: hide Scan QR button, keep single prominent App Store download button */
  .qr-wrap { display: none !important; }
  .seg { padding: 4px; gap: 2px; }
  .seg .gbtn { height: 32px; padding: 0 11px; font-size: 13px; }
  .stage-window { padding: 14px; border-radius: 22px; }
  .stage-canvas { min-height: auto; padding: 12px; }
  .duo-pair { grid-template-columns: 1fr; gap: 16px; }
  .duo-slot:first-child img { max-width: 240px; }
  .iphone-trio { grid-template-columns: 1fr; max-width: 250px; margin: 0 auto; gap: 18px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .export-grid { grid-template-columns: 1fr; }
  .plist li { flex-direction: column; gap: 2px; }
  .plist li span { text-align: start; }
  .mcp-bar { padding: 10px 12px; gap: 6px; }
  .mcp-tab, .mcp-run { font-size: 11.5px; padding: 4px 9px; }
  .mcp-toast { font-size: 12px; max-width: calc(100% - 20px); }

  /* Mobile Final CTA: centered single-column without QR */
  .final { padding: 42px 20px; text-align: center; }
  .final-bg::before { background: radial-gradient(60% 60% at 50% 100%, var(--sky1), transparent 72%); }
  .final-grid { grid-template-columns: 1fr; gap: 0; }
  .final-brand { justify-content: center; margin-bottom: 14px; }
  .final-brand strong, .final-brand span { display: none; }
  .final-logo { width: 60px; height: 60px; }
  .final-copy h2 { font-size: 28px; }
  .final-actions { justify-content: center; margin-top: 22px; }
  .final-pill, .final-qr-card { display: none; }

  .doc-paper { padding: 28px 20px; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .foot nav { justify-content: center; }

  /* Mobile Right-Side Floating Liquid Glass Rail (2B: Circular active highlight + Hide while reading) */
  .m-rail-host {
    display: block;
    position: fixed;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    pointer-events: none;
  }
  .m-rail {
    pointer-events: auto;
    position: relative;
    margin-inline-end: max(8px, env(safe-area-inset-right, 0px));
    width: 54px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-width: none;
    padding: 6px 5px 7px;
    border-radius: 999px;
    background: var(--nav-glass);
    -webkit-backdrop-filter: blur(26px) saturate(190%);
    backdrop-filter: blur(26px) saturate(190%);
    border: 1px solid var(--hairline);
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 8px 28px var(--shadow-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }
  .m-rail::-webkit-scrollbar { display: none; }
  .m-rail-host.is-hidden .m-rail {
    transform: translateX(calc(100% + 18px));
    opacity: 0;
    pointer-events: none;
  }
  [dir="rtl"] .m-rail-host.is-hidden .m-rail {
    transform: translateX(calc(-100% - 18px));
  }
  .m-rail-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    box-shadow: 0 3px 10px rgba(10, 76, 230, 0.28);
  }
  .m-rail-logo img { width: 100%; height: 100%; object-fit: cover; }

  /* True 42x42 circular section selector */
  .m-rail-sec {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5px;
    color: var(--ink2);
    text-decoration: none;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.08;
    padding: 0 2px;
    overflow: hidden;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
  }
  html[lang^="zh"] .m-rail-sec, html[lang="ja"] .m-rail-sec, html[lang="ko"] .m-rail-sec {
    font-size: 9.5px;
  }
  .m-rail-sec span {
    max-width: 38px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .m-rail-sec:hover { text-decoration: none; background: var(--hover); color: var(--ink); }
  .m-rail-sec:active { transform: scale(0.93); }
  .m-rail-sec svg { width: 14px; height: 14px; flex: none; }
  .m-rail-sec[aria-current="true"] {
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(10, 76, 230, 0.18);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .m-rail-sec[aria-current="true"] {
      box-shadow: inset 0 0 0 1px rgba(94, 151, 255, 0.28);
    }
  }
  :root[data-theme="dark"] .m-rail-sec[aria-current="true"] {
    box-shadow: inset 0 0 0 1px rgba(94, 151, 255, 0.28);
  }

  .m-rail-sep {
    width: 22px;
    height: 1px;
    background: var(--line-strong);
    margin: 3px 0;
    flex: none;
  }
  .m-rail-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--ink2);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .m-rail-btn:hover { background: var(--hover); color: var(--ink); }
  .m-rail-btn svg { width: 17px; height: 17px; }
  .m-rail-lang {
    background: var(--hover);
    color: var(--ink);
  }
  .m-rail-lang select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
  }
  .m-rail-dl {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: none;
    background: var(--brand);
    color: var(--on-brand);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(10, 76, 230, 0.34);
    margin-top: 2px;
  }
  .m-rail-dl:hover { text-decoration: none; background: var(--brand-hover); }
  .m-rail-dl svg { width: 17px; height: 17px; }
  .m-rail-hide {
    width: 32px;
    height: 22px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--ink3);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    margin-top: 1px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .m-rail-hide:hover { background: var(--hover); color: var(--ink); }
  .m-rail-hide svg { width: 15px; height: 15px; }
  [dir="rtl"] .m-rail-hide svg { transform: rotate(180deg); }

  /* Subtle edge pull handle when hidden while reading */
  .m-rail-peek {
    pointer-events: none;
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translate(100%, -50%);
    width: 24px;
    height: 62px;
    border-radius: 14px 0 0 14px;
    border: 1px solid var(--hairline);
    border-inline-end: 0;
    background: var(--nav-glass);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    backdrop-filter: blur(22px) saturate(185%);
    box-shadow: -4px 6px 20px var(--shadow-strong), inset 1px 0 0 var(--glass-edge);
    color: var(--brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }
  .m-rail-peek::before {
    content: "";
    position: absolute;
    inset: -12px -4px -12px -14px;
  }
  .m-rail-peek svg { width: 14px; height: 14px; }
  .m-rail-peek .peek-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.72;
  }
  .m-rail-host.is-hidden .m-rail-peek {
    pointer-events: auto;
    transform: translate(0, -50%);
    opacity: 0.92;
  }
  [dir="rtl"] .m-rail-peek {
    border-radius: 0 14px 14px 0;
    transform: translate(-100%, -50%);
    box-shadow: 4px 6px 20px var(--shadow-strong), inset -1px 0 0 var(--glass-edge);
  }
  [dir="rtl"] .m-rail-peek::before {
    inset: -12px -14px -12px -4px;
  }
  [dir="rtl"] .m-rail-host.is-hidden .m-rail-peek {
    transform: translate(0, -50%);
  }
  [dir="rtl"] .m-rail-peek svg { transform: rotate(180deg); }
}
