/* SANSPHASE preview's shared V4 styles. Navigation and section structure
   retain the reference foundation documented in SOURCES.json. The revised
   first screen lives in src/hero.css. Fontsource families: Archivo, Inter,
   Noto Sans SC and JetBrains Mono, with their OFL notices retained. */
:root {
  --ikb: #3156ff;
  --ikb-2: #607dff;
  --display: "Archivo Variable", "Inter Variable", system-ui, sans-serif;
  --sans: "Inter Variable", "Noto Sans SC Variable", system-ui, sans-serif;
  --cjk: "Noto Sans SC Variable", "Inter Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 20px;
}
:root,
:root[data-theme="dark"] {
  --bg: #090d17;
  --bg-2: #0e1421;
  --bg-3: #161f30;
  --card: #0e1421;
  --fg: #f2f1ec;
  --fg-2: rgba(242, 241, 236, 0.74);
  --muted: #90919a;
  --line: rgba(242, 241, 236, 0.1);
  --line-strong: rgba(242, 241, 236, 0.22);
  --accent: #8592ff;
  --glow: rgba(43, 61, 255, 0.55);
  --soft: rgba(43, 61, 255, 0.16);
  --glass: rgba(16, 17, 23, 0.72);
  --dot: rgba(242, 241, 236, 0.08);
  --scrim: 10, 11, 15;
  --invert-bg: #ecebe5;
  --invert-fg: #0b0b0e;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --bg-3: #e1e5ed;
  --card: #fcfcfd;
  --fg: #0d0d10;
  --fg-2: rgba(13, 13, 16, 0.72);
  --muted: #5f5f66;
  --line: rgba(13, 13, 16, 0.1);
  --line-strong: rgba(13, 13, 16, 0.24);
  --accent: #3156ff;
  --glow: rgba(43, 61, 255, 0.32);
  --soft: rgba(43, 61, 255, 0.11);
  --glass: rgba(251, 250, 246, 0.78);
  --dot: rgba(13, 13, 16, 0.09);
  --scrim: 245, 246, 248;
  --invert-bg: #0d0d10;
  --invert-fg: #f1f0eb;
  color-scheme: light;
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[data-lang="zh"] body { font-family: var(--cjk); }
body.is-loading { overflow: hidden; }
.app-loading-status { display:none; }
html[data-boot-route="inner"] #view-home { display:none; }
html[data-boot-route="inner"] body.is-loading .app-loading-status { display:block; min-height:55vh; margin:0 auto; max-width:1184px; padding:180px 24px 100px; color:var(--muted); font-size:16px; }
.app-load-error { margin:130px auto 40px; max-width:960px; padding:24px; font-size:16px; line-height:1.8; }
.app-load-error a { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--ikb); color: #fff; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

/* ---------------------------------------------------------------- type */
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow i { flex: none; width: 7px; height: 7px; border-radius: 1.5px; background: var(--ikb); box-shadow: 0 0 12px var(--glow); transform: rotate(45deg); }
.eyebrow.light { color: rgba(255, 255, 255, 0.72); }
.title {
  margin: 0;
  max-width: 18em;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 640;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
/* Accent phrase: upright Klein blue that settles through the width axis over
   a soft ink band (SANSPHASE's own treatment). */
.accent {
  --wd: 122;
  --band: 1;
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-style: normal;
  font-variation-settings: "wdth" var(--wd), "wght" 580;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.accent::before { content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.1em; height: 0.34em; border-radius: 0.1em; background: var(--soft); transform: scaleX(var(--band)); transform-origin: left; }
html[data-lang="zh"] :is(.title, .hero-title) { font-family: var(--cjk); font-weight: 760; font-variation-settings: normal; letter-spacing: -0.01em; line-height: 1.3; }
html[data-lang="zh"] .accent { font-weight: 600; }
.body { margin: 0; max-width: 40em; font-size: 15.5px; line-height: 1.85; color: var(--muted); }

/* Rolling labels: the text slides up and a copy rolls in from below. */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: inline-block; transition: transform 0.55s var(--ease); }
.roll .roll-b { position: absolute; left: 0; top: 0; transform: translateY(110%); }
:is(a, button):hover .roll .roll-a, :is(a, button):focus-visible .roll .roll-a { transform: translateY(-110%); }
:is(a, button):hover .roll .roll-b, :is(a, button):focus-visible .roll .roll-b { transform: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 22px 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), translate 0.5s var(--ease);
}
.btn i { font-style: normal; transition: transform 0.5s var(--ease); }
.btn:hover i { transform: translate(3px, -1px); }
/* Fill rises from wherever the pointer entered (--bx/--by set by script). */
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--ikb); transform: translate(-50%, -50%) scale(0); transition: transform 0.6s var(--ease); }
.btn:hover { color: #fff; border-color: var(--ikb); }
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn.primary { background: var(--ikb); border-color: var(--ikb); color: #fff; box-shadow: 0 12px 32px -14px var(--glow); }
.btn.primary::before { background: var(--fg); }
.btn.primary:hover { color: var(--bg); border-color: var(--fg); }
.round { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.round:hover { border-color: var(--ikb); color: var(--accent); }
.pause { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.pause i { width: 2px; height: 10px; border-radius: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.pause[aria-pressed="true"] i:first-child { transform: translateX(2px) rotate(-30deg) scaleY(1.1); }
.pause[aria-pressed="true"] i:last-child { transform: translateX(-2px) rotate(30deg) scaleY(1.1); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- chrome */
.progress { position: fixed; z-index: 90; inset: 0 0 auto; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ikb), var(--ikb-2)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--glow); }
/* Open bar at the top; once scrolled it docks into a glass capsule, hides on
   the way down and returns on the way up. Only the bar takes pointer events. */
.header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 12px; pointer-events: none; transition: translate 0.6s var(--ease), padding-top 0.6s var(--ease), opacity 0.4s; }
.header.is-hidden { translate: 0 calc(-100% - 16px); transition: translate 0.45s cubic-bezier(0.5, 0, 0.75, 0), padding-top 0.6s var(--ease); }
.header.is-docked { padding-top: 10px; }
html.is-reading .header { opacity: 0; pointer-events: none; }
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 64px;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in oklab, var(--card) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 4px 30px -22px color-mix(in srgb, var(--fg) 24%, transparent);
  pointer-events: auto;
  transition: max-width 0.8s var(--ease), height 0.6s var(--ease), border-radius 0.6s var(--ease), background-color 0.45s, border-color 0.45s, box-shadow 0.6s;
}
.header.is-docked .bar {
  height: 56px;
  border-color: var(--line);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 0.55), inset 0 1px 0 color-mix(in oklab, var(--fg) 6%, transparent);
}
/* Docking: a Klein ripple runs across the lower edge. */
.bar::after { content: ""; position: absolute; left: 40px; right: 40px; bottom: -1px; height: 1px; background: radial-gradient(closest-side, var(--ikb-2), transparent); opacity: 0; pointer-events: none; }
.header.is-docked .bar::after { animation: dock 1.1s var(--ease) 0.1s both; }
@keyframes dock { 0% { opacity: 0; scale: 0.1 1; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1 1; } }
.bar-start, .bar-end { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bar-end { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 12px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--display); font-variation-settings: "wdth" 125, "wght" 820; font-size: 16px; letter-spacing: 0.1em; transition: font-variation-settings 0.6s var(--ease), letter-spacing 0.6s var(--ease); }
.brand:hover .brand-text b { font-variation-settings: "wdth" 100, "wght" 820; letter-spacing: 0.16em; }
.brand-text small { margin-top: 5px; font-family: var(--cjk); font-size: 12px; letter-spacing: 0.5em; color: var(--muted); }
.search { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--bg-2) 70%, transparent); color: var(--muted); font-size: 13px; transition: border-color 0.3s, color 0.3s, gap 0.6s var(--ease); }
.search:hover { border-color: var(--line-strong); color: var(--fg); }
.search svg, .search-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search-label { display: grid; grid-template-columns: 1fr; transition: grid-template-columns 0.6s var(--ease), opacity 0.3s; }
.search-label > span { min-width: 0; overflow: hidden; white-space: nowrap; }
.keys { display: inline-flex; gap: 3px; }
.keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-3); box-shadow: 0 1px 0 var(--line-strong); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.search:hover .keys kbd { animation: key 0.5s var(--ease) both; }
.search:hover .keys kbd + kbd { animation-delay: 0.12s; }
@keyframes key { 40% { translate: 0 1px; border-color: var(--ikb); background: var(--soft); color: var(--accent); box-shadow: none; } }
.links { position: relative; display: none; }
.links ul { position: relative; display: flex; gap: 2px; }
.links li { position: relative; }
.links a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 520; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.links a:hover, .links a.is-current { color: var(--fg); }
.pill { position: absolute; top: 3px; bottom: 3px; left: var(--l, 0px); width: var(--w, 0px); border-radius: 999px; background: color-mix(in oklab, var(--fg) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; scale: 0.9; pointer-events: none; transition: left 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s, scale 0.45s var(--ease); }
.pill.is-on { opacity: 1; scale: 1; }
.pill.is-instant { transition: opacity 0.25s, scale 0.45s var(--ease); }
.current { position: absolute; bottom: 3px; left: var(--cl, -40px); width: 16px; height: 2px; margin-left: -8px; border-radius: 999px; background: var(--ikb); box-shadow: 0 0 10px 1px var(--glow); pointer-events: none; transition: left 0.55s var(--spring), opacity 0.3s; }
.lang { display: none; position: relative; grid-template-columns: 1fr 1fr; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; isolation: isolate; }
.lang::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--fg); transition: translate 0.5s var(--ease); }
html[data-lang="zh"] .lang::before { translate: 100% 0; }
.lang button { display: grid; place-items: center; min-width: 30px; border-radius: 999px; color: var(--muted); transition: color 0.4s; }
.lang button:hover { color: var(--fg); }
.lang button:focus-visible { outline-offset: 1px; }
html[data-lang="en"] .lang [data-l="en"], html[data-lang="zh"] .lang [data-l="zh"] { color: var(--bg); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; overflow: visible; }
.theme .sun, .theme .rays, .theme .moon { transform-origin: 12px 12px; transition: transform 0.6s var(--ease), opacity 0.4s; }
.theme .moon { fill: currentColor; stroke: none; }
html[data-theme="dark"] .theme .sun, html[data-theme="dark"] .theme .rays { opacity: 0; transform: rotate(-90deg) scale(0.5); }
html[data-theme="light"] .theme .moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
.cta { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 18px; border-radius: 999px; background: var(--ikb); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px -12px var(--glow); transition: gap 0.6s var(--ease), padding 0.6s var(--ease), background 0.3s, translate 0.5s var(--ease); }
.cta:hover { background: var(--ikb-2); }
.cta i { font-style: normal; transition: transform 0.4s var(--ease); }
.cta:hover i { transform: translate(2px, -2px); }
.cta-label { display: grid; grid-template-columns: 1fr; transition: grid-template-columns 0.6s var(--ease), opacity 0.3s; }
.cta-label > span { min-width: 0; overflow: hidden; }
.burger { position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 999px; background: currentColor; transition: translate 0.3s var(--ease) 0.18s, rotate 0.3s var(--ease), left 0.4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; left: 18px; }
.burger[aria-expanded="true"] span { transition: translate 0.3s var(--ease), rotate 0.35s var(--ease) 0.18s, left 0.4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { translate: 0 4px; rotate: 45deg; }
.burger[aria-expanded="true"] span:last-child { left: 12px; translate: 0 -4px; rotate: -45deg; }
@media (max-width: 359px) {
  .bar-end { gap: 4px; }
  .brand { gap: 7px; padding-inline: 2px; }
  .brand-text b { font-size: 12px; letter-spacing: 0.08em; }
}
@media (min-width: 640px) {
  .header { padding-top: 20px; }
  .header.is-docked { padding-top: 12px; }
  .bar { padding-inline: 14px; gap: 10px; }
  .lang { display: grid; }
}
@media (min-width: 768px) { .cta { display: inline-flex; } }
/* Desktop: brand + search | links (centred) | tools. Between 1024 and 1279
   the search is an icon so the links never collide with it. */
@media (min-width: 1024px) {
  .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .links { display: block; justify-self: center; }
  .links a { padding: 0 8px; font-size: 13px; }
  .search { display: inline-flex; padding: 0 11px; }
  .search .search-label, .search .keys { display: none; }
  .search-icon, .burger, .cta { display: none; }
}
@media (min-width: 1280px) {
  .search { padding: 0 8px 0 11px; }
  .links a { padding: 0 12px; font-size: 13px; }
  .search .keys { display: inline-flex; }
  .cta { display: inline-flex; }
  .header.is-docked .bar { max-width: 76rem; }
  .header.is-docked .search { gap: 4px; }
  .header.is-docked .search-label { grid-template-columns: 0fr; opacity: 0; }
  .header.is-docked .cta { gap: 0; padding-inline: 13px; }
  .header.is-docked .cta-label { grid-template-columns: 0fr; opacity: 0; }
}
@media (min-width: 1440px) {
  .search { padding-left: 12px; }
  .search .search-label { display: grid; }
}

/* Mobile menu: the bar expands into a full-screen sheet from the burger. */
.menu { position: fixed; inset: 0; z-index: 99; display: grid; align-content: safe center; padding: 96px 24px 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); clip-path: circle(0 at var(--mx, 100%) var(--my, 0%)); visibility: hidden; transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s; }
.menu.is-open { clip-path: circle(var(--mr, 150vmax) at var(--mx, 100%) var(--my, 0%)); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu-links { display: grid; gap: 4px; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 680; font-size: clamp(32px, 9vw, 54px); letter-spacing: -0.03em; line-height: 1.1; }
.menu-links a small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
html[data-lang="zh"] .menu-links a { font-family: var(--cjk); font-weight: 760; font-variation-settings: normal; }
.menu .lang { display: grid; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-height: 500px) {
  .menu { padding-top: 80px; }
  .menu-links a { padding-block: 4px; font-size: clamp(24px, 7vh, 40px); }
  .menu-foot { margin-top: 20px; }
}

/* ---------------------------------------------------------------- marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row.chips { padding: 18px 0; }
.marquee-row.giant { padding: 12px 0 16px; border-top: 1px solid var(--line); }
.marquee-copy { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--ikb); box-shadow: 0 0 10px var(--glow); transform: rotate(45deg); }
.giant-word { position: relative; display: inline-flex; align-items: center; gap: 28px; padding: 0 16px; font-family: var(--display); font-variation-settings: "wdth" 115, "wght" 760; font-size: clamp(38px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.04em; white-space: nowrap; }
html[data-lang="zh"] .giant-word { font-family: var(--cjk); font-weight: 900; font-variation-settings: normal; letter-spacing: 0; }
.giant-word .o { color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.giant-word .f { position: absolute; left: 16px; top: 0; color: var(--accent); pointer-events: none; -webkit-mask-image: radial-gradient(180px 180px at var(--mx, -999px) var(--my, -999px), #000 30%, transparent 75%); mask-image: radial-gradient(180px 180px at var(--mx, -999px) var(--my, -999px), #000 30%, transparent 75%); }
.giant-word .sep { width: 0.42em; height: 0.42em; flex: none; }
.giant-word .sep path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 64px; scroll-margin-top: 80px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.heading { display: grid; gap: 20px; }
.band { position: relative; border-block: 1px solid var(--line); background: color-mix(in oklab, var(--bg-2) 55%, transparent); overflow: clip; }
@media (min-width: 768px) {
  .section { padding-block: 104px; }
  .section-head { flex-direction: row; align-items: flex-end; }
}

/* ---------------------------------------------------------------- palette */
.palette { position: fixed; inset: 0; z-index: 180; display: grid; place-items: start center; padding-top: 16vh; background: rgba(var(--scrim), 0.6); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.palette.is-open { opacity: 1; visibility: visible; }
.palette-box { width: min(640px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35); overflow: hidden; }
/* One border on the field container gives the focus cue; the input itself has none. */
.palette-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.palette-field:focus-within { border-bottom-color: var(--ikb); }
.palette-field svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.palette-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; }
.palette-field kbd { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.palette-list { max-height: min(52vh, 460px); overflow-y: auto; padding: 8px; }
.palette-group { padding: 12px 12px 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 12px; border-radius: 10px; font-size: 14px; cursor: var(--cursor-link); }
.palette-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item kbd { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.palette-item.is-active { background: var(--ikb); color: #fff; }
.palette-item.is-active kbd { color: rgba(255, 255, 255, 0.75); }
.palette-empty { padding: 22px 12px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain, .orbit, .sat, .live i, .status::before, .clock i, .header.is-docked .bar::after { animation: none; }
  .header, .header.is-hidden, .menu, .menu.is-open, .roll > span, .reader, .reader.is-active, .scene, .card, .btn::before, .current, .pill, .lang::before, .lang button { transition: none; }
}
