:root {
  --bg: #3a57fb;
  --bg-deep: #263dbd;
  --panel: #3a57fb;
  --border: #8295ff;
  --accent: #ff8a1f;
  --accent-dark: #d96c00;
  --text: #ffffff;
  --text-muted: #e1e7ff;
  --ink: #0f1430;
  --link: #ffffff;
  --success: #1fc6e4;
  --success-ink: #77edff;
  --policy-ink: #ffd09e;
  --warn: #f2b50f;
  --error: #e5484d;
  --cream: #fff3df;
  --graphite: #1e212c;
  --graphite-edge: #3a3f50;
  --code-bg: #293fc7;
  --clear: transparent;
  --on-bg: #ffffff;
  --on-bg-muted: rgba(255, 255, 255, 0.9);
  --on-bg-soft: rgba(255, 255, 255, 0.84);
  --on-bg-line: rgba(255, 255, 255, 0.3);
  --on-bg-line-strong: rgba(255, 255, 255, 0.72);
  --on-bg-fill: rgba(255, 255, 255, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.45);
  --dot-halo: rgba(31, 198, 228, 0.2);
  --veil: rgba(15, 20, 48, 0.45);
  --glow-cobalt: rgba(42, 63, 196, 0.55);
  --glow-cyan: rgba(31, 198, 228, 0.5);
  --glow-orange: rgba(255, 138, 31, 0.42);
  --floor-shadow: rgba(15, 20, 48, 0.38);
  --frame-gradient: linear-gradient(112deg, var(--bg-deep) 0%, var(--bg) 15%, var(--success) 43%, var(--accent) 76%, var(--cream) 100%);
  --frame-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.34) 100%);
  --glass-sheen: linear-gradient(118deg, rgba(255, 255, 255, 0) 46%, rgba(221, 226, 245, 0.32) 58%, rgba(255, 255, 255, 0) 70%);
  --shadow-soft: 0 1px 2px rgba(15, 20, 48, 0.08), 0 10px 24px -10px rgba(15, 20, 48, 0.3);
  --shadow-frame: 0 34px 64px -34px rgba(15, 20, 48, 0.42);
  --shadow-device: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(15, 20, 48, 0.22), 0 22px 40px -14px rgba(15, 20, 48, 0.5), 0 44px 80px -36px rgba(42, 63, 196, 0.6);
  --shadow-cta: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -10px rgba(217, 108, 0, 0.7);
  --r-btn: 6px;
  --r-card: 10px;
  --r-frame: 12px;
  --r-pill: 999px;
  --r-device: 28px;
  --r-device-small: 18px;
  --r-screen: 10px;
  --r-shot: 10px;
  --r-mark: 8px;
  --r-circle: 50%;
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12px;
  --size-h1: clamp(34px, 2.2vw + 17px, 48px);
  --size-h2: clamp(26px, 2.6vw, 38px);
  --size-h3: clamp(20px, 1.7vw, 25px);
  --tracking-title: -0.02em;
  --wrap: 1200px;
  --header-wrap: 1280px;
  --reading: 800px;
  --gutter: 32px;
  --gutter-x: var(--gutter);
  --overhang: 180px;
  --section-space: 144px;
  --header-height: 68px;
  --screen-gutter: 3.4em;
  --ease: 180ms ease;
  --reveal-time: 550ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; }
button, a { -webkit-tap-highlight-color: var(--clear); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-btn); }
::selection { background: var(--bg-deep); color: var(--on-bg); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { margin: 0; font-size: var(--size-h1); line-height: 1.12; }
h2 { margin: 0 0 24px; font-size: var(--size-h2); line-height: 1.25; }
h3 { margin: 0 0 16px; font-size: var(--size-h3); line-height: 1.35; }
p { margin: 0 0 20px; }
strong { font-weight: var(--weight-strong); }
small { font-size: var(--size-caption); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--code-bg);
  color: var(--text);
  font-size: var(--size-small);
  line-height: 1.85;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
:where(section, article, aside, nav, div, figure, li) { min-width: 0; }
:where([id]) { scroll-margin-top: 24px; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section + .section { padding-top: 0; }
.section-deep { background: var(--bg-deep); color: var(--on-bg); }
.section-deep + .section { padding-top: var(--section-space); }
.section-intro { max-width: 760px; margin-bottom: 40px; color: var(--text-muted); }
.section-deep .section-intro { color: var(--on-bg-muted); }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack > * + * { margin-top: 24px; }
.muted { color: var(--text-muted); }
.keep { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 8px 14px;
  background: var(--panel);
  color: var(--text);
  border-radius: var(--r-btn);
  z-index: 100;
  text-decoration: none;
}
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.topbar { position: relative; z-index: 40; background: var(--bg); color: var(--on-bg); }
.header-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar-row { display: flex; align-items: center; gap: 28px; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-soft);
}
.preview-mark { border-radius: var(--r-mark); }
.brand-name { font-family: var(--font-display); font-size: var(--size-body); font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.mainnav { margin-left: auto; min-width: 0; }
.mainnav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--r-btn);
  color: var(--on-bg-muted);
  font-size: var(--size-small);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.mainnav a svg { width: 16px; height: 16px; }
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--on-bg-fill); color: var(--on-bg); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--clear);
  color: var(--on-bg);
  box-shadow: inset 0 0 0 1px var(--on-bg-line-strong);
  font-size: var(--size-small);
  white-space: nowrap;
  list-style: none;
}
.lang::-webkit-details-marker { display: none; }
.lang svg { width: 16px; height: 16px; }
.lang:hover { background: var(--on-bg-fill); color: var(--on-bg); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  z-index: 45;
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; border-radius: var(--r-btn); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--code-bg); color: var(--link); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--on-bg-line);
  border-radius: var(--r-btn);
  background: var(--clear);
  color: var(--on-bg);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 1; border: 0; background: var(--veil); color: var(--on-bg); }
.mobile-drawer {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 2;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  background: var(--panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.mobile-drawer a { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 48px; padding: 12px; text-decoration: none; border-radius: var(--r-btn); }
.mobile-drawer a svg { width: 18px; height: 18px; }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--code-bg); color: var(--link); }
.drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.drawer-label { display: block; padding: 8px 12px; color: var(--text-muted); font-size: var(--size-small); }
.preview-mobile { display: none; }
.hero { background: var(--bg); color: var(--on-bg); position: relative; display: flow-root; overflow-x: clip; }
.hero-copy { padding-top: 44px; }
.hero h1 { font-size: var(--size-h1); }
.hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 0.24em;
  background-position: 0 90%;
  padding: 0 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lede { max-width: 760px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--on-bg-muted); }
.lede strong { color: var(--on-bg); font-weight: var(--weight-medium); }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-medium);
  letter-spacing: -0.005em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--ease), transform var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-cta); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: var(--clear); color: var(--on-bg); box-shadow: inset 0 0 0 1.5px var(--on-bg-line-strong); }
.btn-ghost:hover { background: var(--on-bg-fill); color: var(--on-bg); }
.btn-secondary { background: var(--code-bg); color: var(--link); box-shadow: inset 0 0 0 1px var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.is-focus { outline: 2px solid var(--bg-deep); outline-offset: 4px; }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--size-small); color: var(--on-bg-muted); }
.devices li, .devices a { display: inline-flex; align-items: center; gap: 8px; line-height: 26px; }
.devices a { text-decoration: none; }
.devices a:hover { text-decoration: underline; }
.devices svg { width: 20px; height: 20px; color: var(--on-bg); }
.devices .sep { width: 1px; height: 16px; background: var(--on-bg-line); color: var(--on-bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 11px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--on-bg-line); font-family: var(--font-mono); font-size: var(--size-caption); color: var(--on-bg); }
.stage-wrap { margin-top: 32px; position: relative; z-index: 2; margin-bottom: calc(var(--overhang) * -1); }
.stage { position: relative; margin: 0; isolation: isolate; }
.stage::before {
  content: "";
  position: absolute;
  inset: -40px -56px -64px;
  z-index: -1;
  background: radial-gradient(38% 58% at 14% 42%, var(--glow-cobalt), var(--clear) 70%), radial-gradient(36% 56% at 50% 34%, var(--glow-cyan), var(--clear) 70%), radial-gradient(40% 60% at 86% 60%, var(--glow-orange), var(--clear) 72%);
  filter: blur(46px);
  pointer-events: none;
}
.frame { position: relative; display: flex; justify-content: center; padding: 28px 24px; border-radius: var(--r-frame); background: var(--frame-sheen), var(--frame-gradient); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-light), var(--shadow-frame); }
.ipad-wrap { position: relative; width: min(604px, 100%); perspective: 1800px; }
.ipad-wrap::before { content: ""; position: absolute; left: 9%; right: 9%; bottom: -16px; height: 34px; background: radial-gradient(closest-side, var(--floor-shadow), var(--clear)); filter: blur(6px); z-index: -1; }
.ipad { position: relative; aspect-ratio: 604 / 424; padding: 14px; border-radius: var(--r-device); background: var(--graphite); color: var(--on-bg); box-shadow: inset 0 0 0 1px var(--graphite-edge), var(--shadow-device); transform: rotateX(4deg); transform-origin: 50% 100%; }
.ipad::before { content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: var(--r-circle); background: var(--graphite-edge); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: var(--r-screen); font-size: clamp(10px, 1.18vw, 17px); background: linear-gradient(to right, var(--code-bg) 0 var(--screen-gutter), var(--border) var(--screen-gutter) calc(var(--screen-gutter) + 1px), var(--panel) calc(var(--screen-gutter) + 1px)); color: var(--text); }
.screen::after { content: ""; position: absolute; inset: 0; background: var(--glass-sheen); pointer-events: none; }
.conf { margin: 0; padding: 1.7em 0; list-style: none; counter-reset: ln; font-family: var(--font-mono); font-size: 1em; line-height: 2; color: var(--text); }
.conf li { counter-increment: ln; min-height: 2em; white-space: pre; }
.conf li::before { content: counter(ln); display: inline-block; width: var(--screen-gutter); padding-right: 1em; margin-right: 1.1em; text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.t-sec { color: var(--success-ink); font-weight: var(--weight-medium); }
.t-type { font-weight: var(--weight-medium); }
.t-op { color: var(--text-muted); }
.t-pol { color: var(--policy-ink); font-weight: var(--weight-medium); }
.caret { display: inline-block; width: 0.1em; height: 1.15em; margin-left: 0.12em; vertical-align: -0.2em; background: var(--text); }
.tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; min-width: 214px; padding: 10px 12px 10px 13px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-soft); }
.tag-tr { top: -16px; right: -134px; }
.tag-bl { bottom: 30px; left: -142px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--success); flex-shrink: 0; }
.tag .dot { box-shadow: 0 0 0 3px var(--dot-halo); }
.tag-body { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.tag-name { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.tag-note { font-size: var(--size-caption); color: var(--text-muted); }
.tag svg { width: 14px; height: 14px; color: var(--text-muted); }
.after { position: relative; background: var(--panel); color: var(--text); padding-top: calc(var(--overhang) + 22px); padding-bottom: 96px; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; padding-top: 15px; padding-bottom: 15px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.sb-item { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.sb-item::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--success); flex-shrink: 0; }
.sb-end { margin-left: auto; }
.card, .panel { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-soft); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.prose { line-height: 1.85; overflow-wrap: break-word; }
.prose h2 { margin-top: 72px; }
.prose h3 { margin-top: 36px; }
.prose a { color: var(--link); }
.prose :not(pre) > code { background: var(--code-bg); color: var(--text); border-radius: var(--r-btn); padding: 0.1em 0.3em; }
.prose li + li { margin-top: 10px; }
.prose figure { max-width: 100%; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.reveal.shown { opacity: 1; transform: none; }
.site-footer { background: var(--bg-deep); color: var(--on-bg); padding-top: 72px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.3fr 0.8fr; gap: 40px; }
.footer-brand p { margin-top: 22px; max-width: 330px; color: var(--on-bg-muted); font-size: var(--size-small); }
.footer-title { margin: 0 0 18px; font-size: var(--size-body); font-weight: var(--weight-medium); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-top: 6px; padding-bottom: 6px; color: var(--on-bg-muted); text-decoration: none; font-size: var(--size-small); }
.footer-links a:hover { color: var(--on-bg); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--on-bg-line); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: var(--size-caption); color: var(--on-bg-muted); }
.footer-bottom p { margin: 0; }
.preview-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.swatch-chip { display: block; height: 60px; border-radius: var(--r-btn); margin-bottom: 10px; }
.swatch-bg { background: var(--bg); }
.swatch-deep { background: var(--bg-deep); }
.swatch-panel { background: var(--panel); box-shadow: inset 0 0 0 1px var(--border); }
.swatch-border { background: var(--border); }
.swatch-accent { background: var(--accent); }
.swatch-accent-dark { background: var(--accent-dark); }
.swatch-text { background: var(--text); }
.swatch-muted { background: var(--text-muted); }
.swatch-success { background: var(--success); }
.swatch-success-ink { background: var(--success-ink); }
.swatch-policy { background: var(--policy-ink); }
.swatch-warn { background: var(--warn); }
.swatch-error { background: var(--error); }
.swatch-cream { background: var(--cream); }
.swatch-graphite { background: var(--graphite); }
.swatch-edge { background: var(--graphite-edge); }
.swatch-code { background: var(--code-bg); }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-dark { padding: 28px; border-radius: var(--r-card); background: var(--bg-deep); color: var(--on-bg); }
@media (max-width: 1279px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-mobile { display: block; }
  .preview-mobile > summary { list-style: none; }
  .preview-mobile > summary::-webkit-details-marker { display: none; }
}
@media (min-width: 1280px) { .mobile-drawer, .menu-veil { display: none !important; } }
@media (max-width: 1100px) { .tag-tr { right: -40px; } .tag-bl { left: -40px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 3.8vw, 30px); }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --overhang: 90px; }
  .hero-copy { padding-top: 28px; }
  .lede { font-size: 15.5px; }
  .btn { padding: 10px 18px; font-size: 15px; }
  .devices { gap: 10px 16px; font-size: 13px; }
  .devices .sep { display: none; }
  .frame { padding: 22px 14px 26px; }
  .ipad { padding: 8px; border-radius: var(--r-device-small); }
  .ipad::before { top: 2px; width: 4px; height: 4px; margin-left: -2px; }
  .screen { font-size: clamp(7px, 2.15vw, 13px); }
  .tag { min-width: 0; padding: 7px 10px; gap: 8px; }
  .tag-note { display: none; }
  .tag-name { font-size: 11.5px; }
  .tag-tr { top: -14px; right: -6px; }
  .tag-bl { bottom: -14px; left: -6px; }
  .sb-end { margin-left: 0; }
}
@media (max-width: 640px) {
  .grid-two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tilt, .ipad { transform: none; }
  .topbar-row { gap: 12px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding: 0 10px; }
  .topbar .brand { flex: 1 1 auto; min-width: 0; }
  .topbar .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-name { font-size: var(--size-small); }
  .header-tools { gap: 8px; margin-left: auto; }
  .card, .panel { padding: 22px; }
  .footer-grid { gap: 32px; }
  .devices { justify-content: flex-start; }
  .stage::before { inset-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}