/* src/styles/site.css */
:root {
  --ink: #050506;
  --ink-2: #090a0c;
  --panel: #0e1014;
  --panel-2: #14171c;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f6f8;
  --muted: rgba(244, 246, 248, .68);
  --dim: rgba(244, 246, 248, .42);
  --blue: #2997ff;
  --cyan: #64d2ff;
  --green: #76e0b4;
  --amber: #ffc36b;
  --accent: #8bddff;
  --accent-2: #3b8dff;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(96px, 10.5vw, 164px);
  --radius: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.445, .05, .55, .95);
  --font:
    "Segoe UI Variable Display",
    "Segoe UI Variable",
    "SF Pro Display",
    -apple-system,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei UI",
    "Noto Sans CJK SC",
    sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 1.04;
  font-weight: 660;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.2;
  font-weight: 630;
  letter-spacing: .01em;
  text-wrap: balance;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .008em;
}
p {
  text-wrap: pretty;
}
::selection {
  background: rgba(100, 210, 255, .24);
  color: #fff;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 13px;
  visibility: hidden;
}
.skip-link:focus {
  visibility: visible;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  position: relative;
  padding: var(--section-pad) 0;
  scroll-margin-top: 82px;
}
.section-head {
  max-width: 820px;
  margin: 0 auto clamp(48px, 5vw, 76px);
  text-align: center;
}
.section-head .lead {
  margin-top: 22px;
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.sec-label i {
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}
.nowrap {
  white-space: nowrap;
}
.grad {
  background:
    linear-gradient(
      98deg,
      var(--accent) 0%,
      #fff 46%,
      var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.dot.cyan {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(100, 210, 255, .55);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .035);
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: .01em;
  transition:
    background-color .25s var(--ease-ui),
    border-color .25s var(--ease-ui),
    color .25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .26);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  color: #fff;
  border-color: rgba(126, 198, 255, .4);
  background:
    linear-gradient(
      180deg,
      #3297ff 0%,
      #0072ef 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 14px 36px rgba(0, 82, 204, .3);
}
.btn-primary:hover {
  background:
    linear-gradient(
      180deg,
      #43a3ff 0%,
      #0b7bf0 100%);
  border-color: rgba(147, 212, 255, .55);
}
.btn-ghost {
  color: var(--muted);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  transition: background-color .3s var(--ease-ui), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(5, 5, 6, .72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-inner {
  width: min(var(--max), 100% - var(--gutter) * 2);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand-word {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .02em;
}
.brand-word em {
  font-style: normal;
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.nav-links a.is-active {
  color: var(--text);
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  opacity: .65;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      #3297ff 0%,
      #0072ef 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 6px 24px rgba(0, 82, 204, .28);
  transition: opacity .2s;
}
.nav-cta:hover {
  opacity: .94;
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 39;
  background: rgba(5, 5, 6, .95);
  backdrop-filter: blur(22px);
  padding: 30px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: menuIn .28s var(--ease);
  overflow-y: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .02em;
}
.mobile-menu nav a span {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .16em;
}
.mobile-menu-foot {
  padding-top: 26px;
}
.mobile-menu-foot .nav-cta {
  width: 100%;
  height: 46px;
  font-size: 14px;
}
.mobile-menu-foot p {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px;
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.hero {
  position: relative;
  padding: clamp(60px, 6.4vw, 96px) 0 clamp(84px, 8vw, 124px);
  scroll-margin-top: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -18% -10% 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 46% 44% at 50% 16%,
      rgba(28, 92, 160, .22),
      transparent 68%),
    radial-gradient(
      ellipse 30% 26% at 76% 44%,
      rgba(41, 151, 255, .08),
      transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .022) 1px,
      transparent 1px);
  background-size: 88px 88px;
  mask-image:
    radial-gradient(
      ellipse 58% 54% at 50% 38%,
      #000,
      transparent 72%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 58% 54% at 50% 38%,
      #000,
      transparent 72%);
  opacity: .55;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
}
.hero-lockup {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-lockup img {
  width: auto;
  height: 46px;
}
.hero-intro {
  color: rgba(159, 216, 247, .62);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 26px auto 0;
  max-width: min(1130px, 96vw);
}
.hero-sub {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.72;
  letter-spacing: .015em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-actions .btn-ghost svg {
  color: var(--accent);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .02em;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-rhythm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(54px, 6.2vw, 92px);
}
.hr-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  width: min(980px, 100%);
  height: 118px;
  padding-inline: 8px;
  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 16%,
      #000 84%,
      transparent);
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 16%,
      #000 84%,
      transparent);
}
.hr-bars i {
  flex: none;
  display: block;
  width: 2px;
  height: var(--h, 24px);
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(159, 233, 255, .68),
      rgba(41, 151, 255, .04));
  transform-origin: bottom;
  animation: hrPulse 4.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.075s);
  opacity: .7;
}
.hr-edge {
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 1px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(100, 210, 255, .3),
      transparent);
}
.hr-edge.left {
  left: 6%;
}
.hr-edge.right {
  right: 6%;
}
.hr-caption {
  color: rgba(244, 246, 248, .26);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
@keyframes hrPulse {
  0%, 100% {
    transform: scaleY(.55);
    opacity: .38;
  }
  50% {
    transform: scaleY(1);
    opacity: .82;
  }
}
.showcase-disclaimer {
  max-width: 880px;
  margin: 22px auto 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.75;
  text-align: center;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 26px;
  background: #040405;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 36px;
  padding-bottom: 52px;
}
.footer-brand p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.75;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-col > span {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a,
.footer-col p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .02em;
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 920px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-inner {
    gap: 16px;
  }
  .nav-actions {
    margin-left: auto;
  }
  .section {
    padding: 104px 0;
  }
  .hero {
    padding: 56px 0 92px;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-copy h1 {
    max-width: 760px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .site-nav {
    height: 60px;
  }
  .nav-inner {
    width: calc(100% - 32px);
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-word {
    font-size: 14px;
  }
  .nav-cta {
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }
  .mobile-menu {
    top: 60px;
    padding: 22px var(--gutter) 30px;
  }
  .mobile-menu nav a {
    font-size: 21px;
    padding: 14px 0;
  }
  .section {
    padding: 78px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-head .lead {
    margin-top: 16px;
  }
  h1 {
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: 1.12;
    letter-spacing: -.008em;
  }
  h2 {
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.28;
  }
  h3 {
    font-size: 18px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.78;
  }
  .badges {
    gap: 6px;
    margin-top: 20px;
  }
  .badge {
    font-size: 10.5px;
    padding: 5px 9px;
  }
  .hero {
    padding: 42px 0 78px;
  }
  .hero-lockup {
    margin-bottom: 18px;
  }
  .hero-lockup img {
    height: 40px;
  }
  .hero-intro {
    font-size: 9.5px;
    letter-spacing: .18em;
  }
  .hero-copy h1 {
    margin-top: 20px;
  }
  .hero-sub {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.75;
  }
  .hero-actions {
    margin-top: 28px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    flex: none;
    padding: 0 16px;
    font-size: 14px;
  }
  .hero-meta {
    gap: 8px 16px;
    font-size: 11px;
  }
  .hero-rhythm {
    margin-top: 42px;
    gap: 10px;
  }
  .hr-bars {
    height: 78px;
    gap: 3px;
  }
  .hr-bars i {
    width: 1.5px;
  }
  .hr-caption {
    font-size: 9px;
    letter-spacing: .2em;
  }
  .showcase-disclaimer {
    margin-top: 16px;
    font-size: 9.5px;
    text-align: left;
  }
  .site-footer {
    padding: 56px 0 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* src/styles/showcase.css */
.showcase-section {
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.showcase-section .section-head {
  max-width: 900px;
}
.showcase-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(22px, 2.2vw, 30px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}
.sc-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 246, 248, .54);
  font-family: inherit;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s, background-color .22s;
}
.sc-tab:hover {
  color: rgba(244, 246, 248, .86);
}
.sc-tab.is-active {
  background: #f4f6f8;
  color: #0a0b0e;
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.sc-tab-key {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(244, 246, 248, .7);
  font-size: 9.5px;
  font-weight: 700;
}
.sc-tab.is-active .sc-tab-key {
  background: rgba(10, 11, 14, .1);
  color: #0a0b0e;
}
.sc-tab-note {
  margin-left: auto;
  padding: 0 16px 0 10px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.showcase-panels {
  position: relative;
}
.showcase-panel[hidden] {
  display: none;
}
.wb-stage {
  --wb-cue-size: clamp(26px, 2.55vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 96px;
}
.wb-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6% -2%;
  background:
    radial-gradient(
      ellipse at 14% 0%,
      rgba(41, 151, 255, .16),
      transparent 58%),
    radial-gradient(
      ellipse at 78% 6%,
      rgba(100, 210, 255, .07),
      transparent 56%);
  filter: blur(32px);
  pointer-events: none;
}
.wb-rail {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.6vw, 34px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.wb-robot {
  position: relative;
  width: 152px;
  height: 152px;
  flex: none;
  pointer-events: none;
}
.wb-rail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wb-rail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
.wb-rail-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(100, 210, 255, .6);
}
.wb-rail-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.wb-rail-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
}
.wb-robot-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(100, 210, 255, .2);
  border-radius: 999px;
  background: rgba(41, 151, 255, .07);
  font-size: 11px;
  color: #cfeaff;
  white-space: nowrap;
}
.wb-robot-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(100, 210, 255, .7);
}
.wb-rail-note {
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.wb-window,
.focus-window,
.analysis-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 26px;
  background:
    linear-gradient(
      168deg,
      #101319 0%,
      #0a0c10 62%,
      #07080b 100%);
  box-shadow: 0 56px 150px rgba(0, 0, 0, .68), inset 0 1px rgba(255, 255, 255, .07);
  overflow: hidden;
}
.wb-top {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.wb-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.wb-title img {
  border-radius: 5px;
}
.wb-doc {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
}
.wb-top-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wb-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(100, 210, 255, .2);
  border-radius: 999px;
  background: rgba(41, 151, 255, .08);
  color: #cfeaff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.wb-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(100, 210, 255, .7);
}
.wb-mode {
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .1em;
}
.wb-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 224px;
  height: 570px;
}
.wb-grid > * {
  min-height: 0;
}
.wb-outline {
  border-right: 1px solid var(--line);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .012);
}
.wb-outline-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 10px 14px;
}
.wb-outline-head span {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--dim);
  text-transform: uppercase;
}
.wb-outline-head em {
  font-style: normal;
  font-size: 10.5px;
  color: rgba(244, 246, 248, .32);
}
.wb-outline-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wb-outline-list button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(244, 246, 248, .46);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
  transition: color .2s, background-color .2s;
}
.wb-ol-index {
  color: rgba(244, 246, 248, .28);
  font-size: 9.5px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.wb-ol-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-outline-list button:hover {
  color: #dbe9f7;
  background: rgba(255, 255, 255, .05);
}
.wb-outline-list button.done {
  color: rgba(244, 246, 248, .32);
}
.wb-outline-list button.active {
  color: #dff6ff;
  background: rgba(41, 151, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .18);
}
.wb-outline-list button.active .wb-ol-index {
  color: var(--cyan);
}
.wb-outline-foot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: rgba(244, 246, 248, .3);
  font-size: 10.5px;
  line-height: 1.7;
}
.wb-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse at 78% 0%,
      rgba(41, 151, 255, .07),
      transparent 55%),
    #08090e;
}
.wb-main-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.wb-main-kicker {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #87c9f0;
}
.wb-focus-label {
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.wb-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: opacity .45s var(--ease-ui);
  mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 12%,
      #000 74%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 12%,
      #000 74%,
      transparent 100%);
}
.wb-cue {
  padding: min(26%, 140px) 0 min(58%, 280px);
  transition: opacity .45s var(--ease-ui);
}
.wb-cue.is-idle,
.focus-cue.is-idle {
  opacity: .72;
}
.cue-row {
  position: relative;
}
.wb-cue .cue-row {
  margin-bottom: 20px;
  padding-left: 22px;
}
.wb-cue .cue-line,
.wb-cue .scan-measure {
  font-size: var(--wb-cue-size);
  line-height: 1.7;
  letter-spacing: .012em;
  font-weight: 450;
}
.cue-line {
  color: rgba(244, 246, 248, .4);
  transition: color .3s var(--ease-ui);
}
.cue-row.is-past .cue-line {
  color: rgba(244, 246, 248, .48);
}
.cue-row.is-active .cue-line {
  color: rgba(244, 246, 248, .92);
}
.scan-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  color: transparent;
}
.tok {
  transition:
    color .18s linear,
    background-color .18s linear,
    opacity .18s linear;
  border-radius: 4px;
}
.tok.is-read {
  color: rgba(163, 214, 244, .6);
  opacity: 1;
}
.tok.is-current {
  color: #eafbff;
  background:
    linear-gradient(
      180deg,
      rgba(64, 190, 255, .24),
      rgba(41, 151, 255, .15));
  box-shadow: 0 0 0 1px rgba(100, 210, 255, .3), 0 0 20px rgba(41, 151, 255, .2);
}
.wb-main-foot {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--dim);
  font-size: 10.5px;
}
.wb-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wb-legend i {
  width: 13px;
  height: 3px;
  border-radius: 9px;
  margin-left: 9px;
}
.wb-legend i:first-child {
  margin-left: 0;
}
.wb-lg-read {
  background: rgba(163, 214, 244, .5);
}
.wb-lg-current {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(100, 210, 255, .5);
}
.wb-lg-unread {
  background: rgba(244, 246, 248, .32);
}
.wb-main-note {
  letter-spacing: .06em;
}
.wb-trend {
  border-left: 1px solid var(--line);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, .012);
}
.wb-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-trend-head > span:first-child {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}
.wb-trend-window {
  font-size: 9.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
#wb-rate {
  margin-top: 2px;
  color: #aeeaff;
  font-size: 30px;
  font-weight: 560;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
#wb-trend-chart {
  width: 100%;
  height: 96px;
  display: block;
}
.sc-chart text {
  fill: rgba(244, 246, 248, .35);
  font: 10px var(--font);
}
.sc-chart .trend-grid {
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.sc-chart .trend-baseline {
  stroke: rgba(244, 246, 248, .22);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.sc-chart .trend-line {
  stroke: #5fb3ff;
  stroke-width: 1.7;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.sc-chart .trend-dot {
  fill: #aeeaff;
  filter: drop-shadow(0 0 5px rgba(100, 210, 255, .7));
}
.wb-trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--dim);
  font-size: 9.5px;
}
.wb-trend-state {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.65;
  min-height: 46px;
}
.wb-transport {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.wb-icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  transition:
    color .2s,
    background-color .2s,
    border-color .2s;
}
.wb-icon-btn svg {
  width: 17px;
  height: 17px;
}
.wb-icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-strong);
}
.wb-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 108px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(126, 198, 255, .32);
  border-radius: 11px;
  background:
    linear-gradient(
      100deg,
      rgba(41, 151, 255, .22),
      rgba(100, 210, 255, .18));
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
  transition: background .25s, border-color .25s;
}
.wb-play:hover {
  background:
    linear-gradient(
      100deg,
      rgba(41, 151, 255, .36),
      rgba(100, 210, 255, .3));
  border-color: rgba(126, 198, 255, .5);
}
.wb-play:active {
  transform: translateY(1px);
}
.wb-play svg {
  width: 16px;
  height: 16px;
}
.wb-transport input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  margin: 0;
  padding: 0;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      #4da3ff var(--p, 0%),
      rgba(255, 255, 255, .13) var(--p, 0%));
  cursor: pointer;
}
.wb-transport input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #dff5ff;
  border: 2px solid #4da3ff;
  box-shadow: 0 0 10px rgba(77, 163, 255, .5);
}
.wb-transport input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #4da3ff;
  border-radius: 50%;
  background: #dff5ff;
}
.wb-elapsed {
  font-size: 10.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.focus-window {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(31, 105, 170, .12),
      transparent 60%),
    #08090e;
}
.focus-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.focus-meta {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(244, 246, 248, .4);
  font-size: 10.5px;
  letter-spacing: .09em;
  pointer-events: none;
}
.focus-viewport {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  padding: 0 clamp(40px, 6vw, 92px);
  mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 76%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 76%,
      transparent 100%);
}
.focus-cue {
  --focus-size: clamp(38px, 3.5vw, 54px);
  padding: 34% 0 48%;
  transition: opacity .45s var(--ease-ui);
}
.focus-cue .cue-row {
  margin-bottom: 24px;
  padding-left: 30px;
}
.focus-cue .cue-line,
.focus-cue .scan-measure {
  font-size: var(--focus-size);
  line-height: 1.62;
  letter-spacing: .014em;
  font-weight: 470;
}
.focus-cue .cue-row.is-active .cue-line {
  color: rgba(250, 253, 255, .98);
}
.focus-cue .tok.is-current {
  background: rgba(64, 190, 255, .3);
  box-shadow: 0 0 0 1px rgba(100, 210, 255, .5), 0 0 28px rgba(41, 151, 255, .28);
}
.focus-readline {
  position: absolute;
  z-index: 3;
  left: 34px;
  right: 34px;
  top: 42%;
  height: 2px;
  pointer-events: none;
}
.focus-readline::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(100, 210, 255, .45) 12%,
      rgba(100, 210, 255, .45) 88%,
      transparent);
}
.focus-readline i {
  position: absolute;
  left: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(100, 210, 255, .8);
}
.stage-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      #08090e 0%,
      transparent 18%,
      transparent 84%,
      #08090e 100%);
}
.focus-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 40px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--dim);
  font-size: 10.5px;
}
.analysis-window {
  background: #08090e;
}
.analysis-body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 460px;
}
.analysis-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px 32px 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
}
.analysis-kicker {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--dim);
  text-transform: uppercase;
}
#analysis-rate {
  display: block;
  margin-top: 8px;
  color: #b6ecff;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 570;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.analysis-sub {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 10.5px;
}
.analysis-cells {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.analysis-cell {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.analysis-cell span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .04em;
}
.analysis-cell b {
  display: block;
  margin-top: 6px;
  color: rgba(244, 246, 248, .8);
  font-size: 14px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analysis-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.7;
  min-height: 44px;
}
.analysis-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px 22px;
  min-width: 0;
}
.analysis-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#analysis-chart {
  width: 100%;
  flex: 1;
  min-height: 260px;
  display: block;
}
#analysis-chart .trend-line {
  stroke-width: 2.1;
}
.analysis-axis {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9.5px;
}
@media (max-width: 1280px) {
  .wb-grid {
    grid-template-columns: 214px minmax(0, 1fr) 206px;
    height: 520px;
  }
  .wb-rail {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 22px;
  }
  .wb-robot {
    width: 132px;
    height: 132px;
  }
  .analysis-body {
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 430px;
  }
  .focus-stage {
    height: 520px;
  }
}
@media (max-width: 1000px) {
  .wb-grid {
    grid-template-columns: 190px minmax(0, 1fr) 184px;
    height: 500px;
  }
  .wb-main-head,
  .wb-main-foot {
    padding: 0 24px;
  }
  .wb-viewport {
    padding: 0 24px;
  }
  .wb-top {
    padding: 0 18px;
  }
  .wb-cue {
    --wb-cue-size: 26px;
  }
  .analysis-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .analysis-stats {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .analysis-chart-wrap {
    padding: 22px 24px;
  }
  #analysis-chart {
    min-height: 200px;
  }
}
@media (max-width: 880px) {
  .showcase-tabs {
    border-radius: 22px;
  }
  .sc-tab-note {
    display: none;
  }
  .wb-rail {
    grid-template-columns: 120px minmax(0, 1fr);
    row-gap: 10px;
    padding-bottom: 18px;
  }
  .wb-robot {
    width: 120px;
    height: 120px;
    grid-row: 1 / span 2;
  }
  .wb-rail-state {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }
  .wb-rail-note {
    white-space: normal;
  }
  .wb-grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .wb-outline {
    display: none;
  }
  .wb-main {
    height: 450px;
  }
  .wb-cue {
    --wb-cue-size: 24px;
  }
  .wb-trend {
    border-left: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
  }
  .wb-trend-head {
    width: 100%;
  }
  #wb-trend-chart {
    flex: 1;
    min-width: 180px;
    height: 64px;
  }
  #wb-rate {
    font-size: 21px;
  }
  .wb-trend-axis {
    display: none;
  }
  .wb-trend-state {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    min-height: 0;
    width: 100%;
  }
  .focus-stage {
    height: 460px;
  }
  .focus-meta {
    left: 24px;
    right: 24px;
    gap: 10px;
  }
  .focus-viewport {
    padding: 0 26px;
  }
  .focus-cue {
    --focus-size: clamp(28px, 5.4vw, 40px);
    padding: 36% 0 44%;
  }
  .focus-cue .cue-row {
    padding-left: 18px;
    margin-bottom: 20px;
  }
  .focus-foot {
    padding: 12px 24px;
  }
}
@media (max-width: 640px) {
  .showcase-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 16px;
    padding: 4px;
  }
  .sc-tab {
    justify-content: center;
    padding: 10px 10px;
    font-size: 12px;
    border-radius: 12px;
  }
  .sc-tab:last-of-type {
    grid-column: 1 / -1;
  }
  .sc-tab-key {
    display: none;
  }
  .wb-stage {
    gap: 16px;
    scroll-margin-top: 76px;
  }
  .wb-rail {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 14px;
  }
  .wb-robot {
    width: 96px;
    height: 96px;
  }
  .wb-rail-copy {
    gap: 7px;
  }
  .wb-rail-kicker {
    font-size: 10px;
    letter-spacing: .08em;
  }
  .wb-rail-copy p {
    font-size: 11.5px;
    line-height: 1.62;
  }
  .wb-robot-chip {
    font-size: 9.5px;
    padding: 4px 9px;
  }
  .wb-rail-note {
    font-size: 9px;
  }
  .wb-rail-state {
    flex-wrap: wrap;
  }
  .wb-window,
  .focus-window,
  .analysis-window {
    border-radius: 18px;
  }
  .wb-top {
    height: 50px;
    padding: 0 14px;
    gap: 8px;
  }
  .wb-title {
    font-size: 11px;
  }
  .wb-doc {
    display: none;
  }
  .wb-mode {
    display: none;
  }
  .wb-status {
    height: 25px;
    padding: 0 9px;
    font-size: 9.5px;
  }
  .wb-main {
    height: 400px;
  }
  .wb-main-head {
    height: 36px;
    padding: 0 16px;
  }
  .wb-main-kicker {
    font-size: 9.5px;
  }
  .wb-focus-label {
    font-size: 9.5px;
  }
  .wb-viewport {
    padding: 0 16px;
  }
  .wb-cue {
    padding: min(24%, 95px) 0 min(52%, 190px);
    --wb-cue-size: 20px;
  }
  .wb-cue .cue-row {
    margin-bottom: 16px;
    padding-left: 14px;
  }
  .wb-main-foot {
    height: 32px;
    padding: 0 16px;
    font-size: 9.5px;
  }
  .wb-main-note {
    display: none;
  }
  .wb-trend {
    padding: 14px 16px;
  }
  #wb-trend-chart {
    height: 56px;
  }
  .wb-trend-state {
    font-size: 9.5px;
  }
  .wb-transport {
    padding: 12px 14px 14px;
    gap: 10px;
  }
  .wb-icon-btn {
    width: 38px;
    height: 38px;
  }
  .wb-play {
    min-width: 84px;
    height: 38px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .wb-elapsed {
    font-size: 9.5px;
  }
  .focus-stage {
    height: 420px;
  }
  .focus-meta {
    left: 16px;
    right: 16px;
    top: 16px;
    font-size: 9.5px;
  }
  .focus-meta span:first-child {
    display: none;
  }
  .focus-meta {
    justify-content: flex-end;
  }
  .focus-viewport {
    padding: 0 18px;
  }
  .focus-cue {
    --focus-size: 24px;
    padding: 30% 0 44%;
  }
  .focus-cue .cue-row {
    padding-left: 12px;
    margin-bottom: 18px;
  }
  .focus-readline {
    left: 16px;
    right: 16px;
  }
  .focus-foot {
    padding: 10px 16px;
    font-size: 9.5px;
  }
  .focus-foot span:last-child {
    display: none;
  }
  .analysis-stats {
    padding: 20px 18px;
    gap: 16px;
  }
  #analysis-rate {
    font-size: 34px;
  }
  .analysis-chart-wrap {
    padding: 18px;
  }
  #analysis-chart {
    min-height: 170px;
  }
  .analysis-cells {
    gap: 8px;
  }
  .analysis-cell b {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wb-stage *,
  .wb-window *,
  .focus-window *,
  .analysis-window * {
    transition: none !important;
  }
  .tok {
    transition: none;
  }
}

/* src/styles/engine.css */
.engine-section {
  position: relative;
}
.engine-section::before {
  content: "";
  position: absolute;
  inset: 0 0 28% 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 62% 48% at 50% 18%,
      rgba(33, 112, 190, .13),
      transparent 70%),
    radial-gradient(
      ellipse 34% 30% at 78% 40%,
      rgba(66, 187, 255, .06),
      transparent 70%);
}
.engine-section .container {
  position: relative;
}
.engine-section .section-head {
  max-width: 920px;
}
.engine-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 28px;
  background:
    linear-gradient(
      160deg,
      #0b1119 0%,
      #070a0f 55%,
      #06080b 100%);
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .06);
}
.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.engine-head-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9fd8f7;
  font-size: 11.5px;
  letter-spacing: .1em;
}
.engine-head-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(100, 210, 255, .6);
}
.engine-head-note {
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.engine-plot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 52px);
  min-height: 380px;
  padding: clamp(26px, 3vw, 44px) clamp(4px, 1.6vw, 22px);
}
.engine-wires {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.ev-wire-path {
  fill: none;
  stroke: url(#ev-wire);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
  opacity: .5;
}
.ev-dots circle {
  fill: #9fe9ff;
  filter: drop-shadow(0 0 5px rgba(100, 210, 255, .7));
}
.eng-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eng-node-tag {
  align-self: flex-start;
  color: rgba(159, 216, 247, .5);
  font-size: 9.5px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.eng-input {
  flex: 0 0 176px;
}
.eng-chip {
  flex: 0 0 300px;
  align-items: center;
}
.eng-text {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 368px;
}
.eng-follow {
  flex: 0 0 186px;
}
.eng-input-box {
  position: relative;
  height: 168px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(
      170deg,
      rgba(22, 38, 55, .72),
      rgba(10, 16, 24, .86));
  transition: border-color .35s, box-shadow .35s;
}
.eng-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 84px;
}
.eng-wave i {
  width: 3px;
  height: 38px;
  border-radius: 9px;
  transform-origin: center;
  background:
    linear-gradient(
      180deg,
      rgba(159, 233, 255, .95),
      rgba(41, 151, 255, .35));
  animation: evWave 1.15s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.09s);
}
.eng-wave i:nth-child(3n) {
  height: 26px;
}
.eng-wave i:nth-child(4n) {
  height: 48px;
}
.eng-input-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.eng-input-foot b {
  font-size: 12.5px;
  font-weight: 560;
}
.eng-input-foot span {
  color: var(--dim);
  font-size: 10px;
}
.eng-input-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(159, 233, 255, .7);
  font-size: 9px;
  letter-spacing: .06em;
}
.eng-input-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(100, 210, 255, .8);
}
.eng-chip-box {
  position: relative;
  width: 100%;
  padding: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse 70% 56% at 50% 38%,
      rgba(33, 112, 190, .1),
      transparent 70%),
    rgba(8, 13, 20, .7);
  transition: border-color .35s, box-shadow .35s;
}
.chip-svg {
  display: block;
  width: 100%;
  height: auto;
}
.chip-pin {
  fill: rgba(159, 216, 247, .2);
}
.chip-package {
  stroke: rgba(159, 216, 247, .24);
  stroke-width: 1.2;
}
.chip-die {
  stroke: rgba(103, 211, 255, .18);
  stroke-width: 1;
}
.chip-cell {
  fill: rgba(103, 211, 255, .5);
  animation: chipCell 2.3s ease-in-out infinite;
  animation-delay: calc(var(--d) * .065s);
}
.chip-ring {
  fill: none;
  stroke: rgba(103, 211, 255, .38);
  stroke-width: 1.2;
}
.chip-ring.r1 {
  animation: chipRing 3.1s ease-in-out infinite;
}
.chip-ring.r2 {
  animation: chipRing 3.1s ease-in-out infinite reverse;
}
.chip-core {
  fill: rgba(159, 233, 255, .72);
  filter: drop-shadow(0 0 9px rgba(100, 210, 255, .6));
  animation: chipCore 2s ease-in-out infinite;
}
.chip-scan {
  animation: chipScan 3.6s linear infinite;
}
.chip-mark {
  fill: rgba(159, 216, 247, .32);
  font: 8px var(--font);
  letter-spacing: .28em;
  text-anchor: middle;
}
.eng-chip-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 16px 0;
}
.eng-chip-foot b {
  font-size: 12.5px;
  font-weight: 560;
}
.eng-chip-foot span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}
.eng-chip-state {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(100, 210, 255, .18);
  border-radius: 999px;
  background: rgba(41, 151, 255, .08);
  color: #cfeaff;
  font-size: 9.5px;
}
.eng-text-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 16px;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(
      170deg,
      rgba(18, 30, 43, .72),
      rgba(9, 14, 21, .9));
  transition: border-color .35s, box-shadow .35s;
}
.eng-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.eng-text-head b {
  font-size: 12.5px;
  font-weight: 560;
}
.eng-text-head em {
  font-style: normal;
  color: var(--cyan);
  font-size: 9.5px;
  letter-spacing: .08em;
  border: 1px solid rgba(100, 210, 255, .2);
  border-radius: 999px;
  padding: 2px 8px;
}
.eng-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}
.eng-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  color: rgba(244, 246, 248, .36);
  font-size: 11.5px;
  line-height: 1.55;
  transition: color .25s;
}
.eng-line-no {
  margin-right: 6px;
  color: rgba(159, 216, 247, .3);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}
.eng-word {
  padding: 1px 2px;
  border-radius: 3px;
  transition:
    color .2s,
    background-color .2s,
    box-shadow .2s;
}
.eng-word.is-past {
  color: rgba(163, 214, 244, .62);
}
.eng-word.is-focus {
  color: #f2fdff;
  background: rgba(64, 190, 255, .26);
  box-shadow: 0 0 0 1px rgba(100, 210, 255, .34);
}
.eng-text-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--dim);
  font-size: 9.5px;
}
.eng-follow-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(159, 233, 255, .7);
}
.eng-follow-dot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(100, 210, 255, .8);
}
.eng-follow-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(
      170deg,
      rgba(16, 28, 40, .72),
      rgba(8, 13, 19, .9));
  transition: border-color .35s, box-shadow .35s;
}
.eng-follow-box .eng-text-foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.eng-follow-box .eng-text-foot span {
  white-space: nowrap;
}
.eng-follow-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}
.ef-line {
  display: block;
  height: 8px;
  border-radius: 5px;
  background: rgba(159, 216, 247, .1);
}
.ef-line:nth-child(1) {
  width: 86%;
}
.ef-line:nth-child(2) {
  width: 100%;
}
.ef-line:nth-child(3) {
  width: 72%;
}
.ef-line:nth-child(4) {
  width: 92%;
}
.ef-line.is-done {
  background: rgba(103, 211, 255, .2);
}
.ef-line.is-now {
  position: relative;
  color: var(--cyan);
  background: rgba(64, 190, 255, .34);
  box-shadow: 0 0 16px rgba(64, 190, 255, .22);
}
.ef-line.is-now i {
  position: absolute;
  left: 6px;
  top: -3px;
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: #d8f6ff;
  box-shadow: 0 0 10px rgba(159, 233, 255, .9);
  animation: efFollow 2.4s ease-in-out infinite alternate;
}
@keyframes efFollow {
  from {
    left: 6%;
  }
  to {
    left: 82%;
  }
}
.engine-plot[data-stage="0"] .eng-input-box,
.engine-plot[data-stage="1"] .eng-chip-box,
.engine-plot[data-stage="2"] .eng-text-box,
.engine-plot[data-stage="3"] .eng-follow-box {
  border-color: rgba(100, 210, 255, .34);
  box-shadow: 0 0 0 1px rgba(100, 210, 255, .08), 0 0 44px rgba(41, 151, 255, .14);
}
.engine-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.engine-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px 8px 0;
  opacity: .45;
  transition: opacity .3s;
}
.engine-flow li + li {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .07);
}
.engine-flow li i {
  font-style: normal;
  color: rgba(159, 216, 247, .45);
  font-size: 9px;
  letter-spacing: .12em;
}
.engine-flow li b {
  font-size: 12px;
  font-weight: 560;
  color: rgba(244, 246, 248, .8);
}
.engine-flow li span {
  color: var(--dim);
  font-size: 9.5px;
}
.engine-flow li.is-done {
  opacity: .72;
}
.engine-flow li.is-on {
  opacity: 1;
}
.engine-flow li.is-on b {
  color: #d9f4ff;
}
.engine-flow li.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  top: -17px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--cyan),
      transparent);
  opacity: .7;
}
.engine-flow li:first-child.is-on::before {
  left: 0;
}
.engine-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}
.engine-readout {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(7, 10, 14, .86);
}
.engine-readout span {
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .04em;
}
.engine-readout b {
  color: rgba(244, 246, 248, .82);
  font-size: 11.5px;
  font-weight: 540;
  line-height: 1.45;
}
#engine-state {
  color: #b6ecff;
}
.engine-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
}
.engine-foot p {
  max-width: 880px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.75;
}
.engine-toggle {
  flex: none;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 246, 248, .62);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition:
    color .2s,
    border-color .2s,
    background-color .2s;
}
.engine-toggle:hover {
  color: var(--text);
  border-color: rgba(100, 210, 255, .35);
  background: rgba(41, 151, 255, .08);
}
.engine-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.engine-point {
  padding: 30px 26px 0 0;
}
.engine-point-no {
  display: block;
  color: rgba(159, 216, 247, .42);
  font-size: 10px;
  letter-spacing: .16em;
}
.engine-point h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: .01em;
}
.engine-point p {
  max-width: 300px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.engine-shell.is-paused .eng-wave i,
.engine-shell.is-paused .chip-cell,
.engine-shell.is-paused .chip-ring,
.engine-shell.is-paused .chip-core,
.engine-shell.is-paused .chip-scan {
  animation-play-state: paused;
}
@keyframes evWave {
  0%, 100% {
    transform: scaleY(.28);
    opacity: .5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes chipCell {
  0%, 100% {
    opacity: .16;
  }
  50% {
    opacity: .92;
  }
}
@keyframes chipRing {
  0%, 100% {
    opacity: .2;
  }
  50% {
    opacity: .85;
  }
}
@keyframes chipCore {
  0%, 100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes chipScan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(202px);
  }
}
@media (max-width: 1180px) {
  .engine-plot {
    gap: 26px;
    min-height: 340px;
  }
  .eng-input {
    flex-basis: 165px;
  }
  .eng-chip {
    flex-basis: 280px;
  }
  .eng-text {
    min-width: 260px;
  }
  .eng-follow {
    flex-basis: 160px;
  }
  .eng-line {
    font-size: 11px;
  }
}
@media (max-width: 940px) {
  .engine-plot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding: 24px 0;
  }
  .engine-wires {
    display: none;
  }
  .eng-node {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .eng-input {
    flex-basis: auto;
  }
  .eng-chip {
    flex-basis: auto;
  }
  .eng-text {
    min-width: 0;
    max-width: 520px;
  }
  .eng-follow {
    flex-basis: auto;
    max-width: 520px;
  }
  .eng-input-box {
    height: 132px;
  }
  .eng-text-box {
    min-height: 0;
  }
  .eng-follow-box {
    min-height: 0;
  }
  .eng-chip-box {
    padding: 0;
    max-width: 320px;
    margin: 0 auto;
  }
  .eng-chip-foot {
    padding-bottom: 14px;
  }
  .eng-line {
    font-size: 12px;
  }
  .engine-flow {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  .engine-flow li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    opacity: .5;
  }
  .engine-flow li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
  }
  .engine-flow li.is-on::before {
    display: none;
  }
  .engine-flow li span {
    margin-left: auto;
  }
  .engine-readouts {
    grid-template-columns: 1fr 1fr;
  }
  .engine-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .engine-shell {
    padding: 16px;
    border-radius: 20px;
  }
  .engine-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 12px;
  }
  .engine-head-note {
    white-space: normal;
  }
  .engine-plot {
    padding: 18px 0;
    gap: 14px;
  }
  .eng-input-box {
    height: 116px;
    padding: 12px;
  }
  .eng-wave {
    height: 60px;
  }
  .eng-wave i {
    height: 28px;
    width: 2.5px;
  }
  .eng-wave i:nth-child(3n) {
    height: 18px;
  }
  .eng-wave i:nth-child(4n) {
    height: 36px;
  }
  .eng-chip-box {
    max-width: 260px;
  }
  .eng-text-box {
    padding: 14px;
  }
  .eng-line {
    font-size: 11px;
    gap: 1px;
  }
  .eng-line-no {
    display: none;
  }
  .engine-flow li {
    padding: 6px 0;
  }
  .engine-flow li b {
    font-size: 11.5px;
  }
  .engine-flow li span {
    font-size: 9px;
  }
  .engine-readouts {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .engine-readout {
    padding: 10px 14px;
  }
  .engine-foot {
    padding-top: 12px;
  }
  .engine-foot p {
    font-size: 9.5px;
  }
}

/* src/styles/library.css */
.library-section {
  position: relative;
}
.library-section .section-head {
  max-width: 860px;
}
.lib-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lib-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  background:
    linear-gradient(
      168deg,
      #0e1218 0%,
      #090c11 60%,
      #07090d 100%);
  box-shadow: 0 44px 120px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .06);
}
.lib-window [hidden] {
  display: none !important;
}
.lib-top {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .022);
}
.lib-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.lib-title img {
  border-radius: 5px;
}
.lib-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}
.lib-local i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(100, 210, 255, .65);
}
.lib-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lib-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  color: rgba(244, 246, 248, .76);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition:
    color .2s,
    background-color .2s,
    border-color .2s;
}
.lib-btn svg {
  width: 14px;
  height: 14px;
}
.lib-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
}
.lib-btn.is-primary {
  border-color: rgba(100, 210, 255, .24);
  background: rgba(41, 151, 255, .12);
  color: #dff5ff;
}
.lib-btn.is-primary:hover {
  background: rgba(41, 151, 255, .2);
}
.lib-body {
  padding: 22px 24px 20px;
}
.lib-folders {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.lib-folders::-webkit-scrollbar {
  display: none;
}
.lib-folder {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 13px 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color .22s,
    background-color .22s,
    transform .22s;
}
.lib-folder:hover {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}
.lib-folder.is-active {
  border-color: rgba(100, 210, 255, .3);
  background: rgba(41, 151, 255, .09);
}
.lib-folder-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(159, 216, 247, .65);
  margin-bottom: 8px;
}
.lib-folder-visual svg {
  width: 22px;
  height: 22px;
}
.lib-folder-visual em {
  font-style: normal;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: rgba(244, 246, 248, .62);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.lib-folder b {
  font-size: 12.5px;
  font-weight: 560;
  color: rgba(244, 246, 248, .88);
}
.lib-folder small {
  color: var(--dim);
  font-size: 10px;
}
.lib-folder.is-new {
  animation: libNew .45s var(--ease-ui) both;
  border-color: rgba(100, 210, 255, .22);
}
.lib-folder-add {
  flex: 0 0 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lib-folder-add svg {
  width: 18px;
  height: 18px;
}
.lib-folder-add:hover {
  color: #bfe9ff;
  border-color: rgba(100, 210, 255, .3);
}
.lib-context {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lib-context-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.lib-context h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: .01em;
}
.lib-context-meta {
  color: var(--dim);
  font-size: 10.5px;
}
.lib-context-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}
.lib-context-right i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(100, 210, 255, .6);
}
.lib-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px 0 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(159, 216, 247, .8);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
}
.lib-back svg {
  width: 13px;
  height: 13px;
}
.lib-back:hover {
  background: rgba(255, 255, 255, .05);
  color: #dff5ff;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0 4px;
  min-height: 248px;
  align-content: start;
  max-height: 372px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
.lib-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 14px 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  background: rgba(255, 255, 255, .022);
  cursor: pointer;
  transition:
    border-color .2s,
    background-color .2s,
    transform .2s;
  animation: libCard .32s var(--ease-ui) both;
}
.lib-card:hover {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}
.lib-card.is-selected {
  border-color: rgba(100, 210, 255, .36);
  background: rgba(41, 151, 255, .1);
}
.lib-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  color: transparent;
  transition: all .2s;
}
.lib-check svg {
  width: 11px;
  height: 11px;
}
.lib-card.is-selected .lib-check {
  border-color: rgba(100, 210, 255, .5);
  background: rgba(41, 151, 255, .35);
  color: #eafbff;
}
.lib-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 24px;
}
.lib-type {
  color: rgba(159, 216, 247, .55);
  font-size: 9px;
  letter-spacing: .12em;
}
.lib-edit {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 246, 248, .34);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity .2s,
    color .2s,
    background-color .2s;
}
.lib-card:hover .lib-edit,
.lib-edit:focus-visible {
  opacity: 1;
}
.lib-edit:hover {
  color: #cfeaff;
  background: rgba(255, 255, 255, .07);
}
.lib-edit svg {
  width: 13px;
  height: 13px;
}
.lib-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.4;
  color: rgba(244, 246, 248, .92);
}
.lib-card p {
  margin: 0;
  color: rgba(244, 246, 248, .38);
  font-size: 10.5px;
  line-height: 1.6;
}
.lib-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: var(--dim);
  font-size: 9.5px;
}
.lib-card-meta span:last-child {
  margin-left: auto;
  color: rgba(159, 216, 247, .55);
}
.lib-selectbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(100, 210, 255, .2);
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(41, 151, 255, .1),
      rgba(41, 151, 255, .03));
  animation: libBar .3s var(--ease-ui) both;
}
.lib-selected {
  color: #dff5ff;
  font-size: 11.5px;
  font-weight: 560;
}
.lib-move-label {
  color: var(--dim);
  font-size: 10.5px;
}
.lib-move,
.lib-unfile {
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(244, 246, 248, .78);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: all .2s;
}
.lib-move:hover {
  border-color: rgba(100, 210, 255, .4);
  background: rgba(41, 151, 255, .16);
  color: #eafbff;
}
.lib-unfile {
  border-color: rgba(255, 255, 255, .18);
  color: rgba(244, 246, 248, .6);
}
.lib-unfile:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.lib-move-hint {
  margin-left: auto;
  color: var(--dim);
  font-size: 9.5px;
}
.lib-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .015);
}
.lib-toast {
  color: #bfe9ff;
  font-size: 10.5px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s, transform .25s;
}
.lib-toast.is-on {
  opacity: 1;
  transform: none;
}
.lib-foot-note {
  margin-left: auto;
  color: var(--dim);
  font-size: 9.5px;
}
.lib-dialog {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 8, .72);
  backdrop-filter: blur(6px);
  animation: libDialog .22s ease both;
}
.lib-dialog-card {
  width: min(360px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #10151c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
.lib-dialog-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 560;
}
.lib-dialog-card p {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.6;
}
.lib-dialog-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 246, 248, .55);
  font-size: 10px;
}
.lib-dialog input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(100, 210, 255, .25);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: #f4f6f8;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}
.lib-dialog input:focus {
  border-color: rgba(100, 210, 255, .55);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, .12);
}
.lib-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.lib-dialog-cancel,
.lib-dialog-ok {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.lib-dialog-cancel {
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: var(--muted);
}
.lib-dialog-cancel:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}
.lib-dialog-ok {
  border: 1px solid rgba(100, 210, 255, .32);
  background: rgba(41, 151, 255, .2);
  color: #eafbff;
}
.lib-dialog-ok:hover {
  background: rgba(41, 151, 255, .3);
}
.lib-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 0 4px;
}
.lib-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: transparent;
  color: rgba(244, 246, 248, .7);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: all .2s;
}
.lib-control:hover {
  color: #fff;
  border-color: rgba(100, 210, 255, .3);
  background: rgba(41, 151, 255, .08);
}
.lib-control svg {
  width: 13px;
  height: 13px;
}
.lib-control-icon {
  display: inline-flex;
}
.lib-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lib-steps li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--dim);
  font-size: 10px;
  transition: color .25s, background-color .25s;
}
.lib-steps li i {
  font-style: normal;
  color: rgba(159, 216, 247, .35);
  font-size: 8.5px;
  letter-spacing: .06em;
}
.lib-steps li.is-done {
  color: rgba(244, 246, 248, .5);
}
.lib-steps li.is-on {
  color: #dff5ff;
  background: rgba(41, 151, 255, .12);
}
.lib-steps li.is-on i {
  color: var(--cyan);
}
.lib-controls-note {
  margin-left: auto;
  color: var(--dim);
  font-size: 9.5px;
}
@keyframes libNew {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes libCard {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes libBar {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes libDialog {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 1180px) {
  .lib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lib-folder {
    flex-basis: 138px;
  }
}
@media (max-width: 760px) {
  .lib-window {
    border-radius: 18px;
  }
  .lib-top {
    height: 52px;
    padding: 0 14px;
    gap: 10px;
  }
  .lib-title {
    font-size: 11px;
  }
  .lib-local {
    display: none;
  }
  .lib-btn {
    height: 30px;
    padding: 0 9px;
    font-size: 10.5px;
  }
  .lib-btn svg {
    width: 12px;
    height: 12px;
  }
  .lib-body {
    padding: 14px;
  }
  .lib-folders {
    gap: 8px;
  }
  .lib-folder {
    flex-basis: 118px;
    padding: 10px;
  }
  .lib-folder b {
    font-size: 11.5px;
  }
  .lib-folder-add {
    flex-basis: 82px;
  }
  .lib-folder-add span {
    display: none;
  }
  .lib-context {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 2px 10px;
  }
  .lib-context-right {
    display: none;
  }
  .lib-context-left {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .lib-back,
  .lib-context h3,
  .lib-context-meta {
    flex: none;
    white-space: nowrap;
  }
  .lib-context h3 {
    font-size: 15px;
  }
  .lib-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    max-height: 340px;
  }
  .lib-card {
    padding: 12px;
  }
  .lib-edit {
    opacity: 1;
  }
  .lib-selectbar {
    gap: 6px;
    padding: 10px;
  }
  .lib-move-hint {
    display: none;
  }
  .lib-move,
  .lib-unfile {
    height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }
  .lib-foot {
    padding: 0 14px;
    min-height: 36px;
  }
  .lib-foot-note {
    display: none;
  }
  .lib-dialog-card {
    padding: 16px;
  }
  .lib-controls {
    gap: 8px 10px;
  }
  .lib-control {
    height: 32px;
    padding: 0 11px;
    font-size: 10.5px;
  }
  .lib-steps {
    order: 3;
    width: 100%;
  }
  .lib-steps li {
    padding: 3px 6px;
    font-size: 9.5px;
  }
  .lib-steps li i {
    display: none;
  }
  .lib-controls-note {
    display: none;
  }
}
@media (max-width: 390px) {
  .lib-folders {
    flex-wrap: wrap;
    overflow: visible;
  }
  .lib-folder {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .lib-folder-add {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: center;
  }
  .lib-folder-add span {
    display: inline;
  }
  .lib-grid {
    max-height: 320px;
  }
  .lib-steps li {
    font-size: 9px;
  }
  .lib-selected {
    font-size: 10.5px;
  }
}

/* src/styles/preferences.css */
.prefs-section .section-head {
  max-width: 900px;
}
.prefs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.pref-window,
.diag-window {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background:
    linear-gradient(
      168deg,
      #0e1218 0%,
      #090c11 62%,
      #07090d 100%);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
}
.pref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .022);
}
.pref-kicker {
  display: block;
  margin-bottom: 4px;
  color: rgba(159, 216, 247, .5);
  font-size: 9.5px;
  letter-spacing: .14em;
}
.pref-top h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: .01em;
}
.pref-note {
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}
.diag-chip {
  flex: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(244, 246, 248, .55);
  font-size: 9.5px;
  line-height: 1.4;
  text-align: right;
  transition: all .25s;
}
.diag-chip.is-on {
  border-color: rgba(100, 210, 255, .28);
  background: rgba(41, 151, 255, .1);
  color: #cfeaff;
}
.pref-body {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  flex: 1;
}
.pref-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .012);
}
.pref-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pref-label {
  color: rgba(244, 246, 248, .5);
  font-size: 10px;
  letter-spacing: .04em;
}
.pref-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}
.pref-seg button {
  height: 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: all .2s;
}
.pref-seg button.is-active {
  background: rgba(41, 151, 255, .22);
  color: #eafbff;
  box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .25);
}
.pref-controls select {
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: rgba(244, 246, 248, .82);
  font-family: inherit;
  font-size: 11px;
  outline: none;
}
.pref-controls select:focus {
  border-color: rgba(100, 210, 255, .4);
}
.pref-range {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pref-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(244, 246, 248, .5);
  font-size: 10px;
}
.pref-range-head output {
  color: rgba(207, 234, 255, .85);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.pref-range input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 3px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  outline: none;
  cursor: pointer;
}
.pref-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dff5ff;
  border: 2px solid #4da3ff;
  box-shadow: 0 0 8px rgba(77, 163, 255, .4);
}
.pref-range input[type=range]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #4da3ff;
  border-radius: 50%;
  background: #dff5ff;
}
.pref-switches {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.pref-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  color: rgba(244, 246, 248, .6);
  font-size: 10.5px;
  cursor: pointer;
}
.pref-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pref-switch i {
  position: relative;
  width: 28px;
  height: 16px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  transition: background-color .2s;
}
.pref-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(244, 246, 248, .7);
  transition: transform .2s, background-color .2s;
}
.pref-switch input:checked + i {
  background: rgba(41, 151, 255, .55);
}
.pref-switch input:checked + i::after {
  transform: translateX(12px);
  background: #eafbff;
}
.pref-switch input:focus-visible + i {
  box-shadow: 0 0 0 2px rgba(100, 210, 255, .35);
}
.pref-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 16px;
  min-width: 0;
}
.pref-stage {
  position: relative;
  flex: 1 1 auto;
  height: 460px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: #08090e;
  color: #f4f6f8;
  transition: background-color .3s, color .3s;
}
.pref-stage[data-theme=light] {
  background: #f5f7fa;
  color: #15181d;
  border-color: rgba(0, 0, 0, .1);
}
.pref-stage-head {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: rgba(244, 246, 248, .4);
  font-size: 9.5px;
  letter-spacing: .08em;
  background: rgba(8, 9, 14, .7);
  backdrop-filter: blur(6px);
}
.pref-stage[data-theme=light] .pref-stage-head {
  color: rgba(21, 24, 29, .45);
  border-color: rgba(0, 0, 0, .08);
  background: rgba(245, 247, 250, .8);
}
.pref-cue {
  --pref-gap: 22px;
  height: 100%;
  padding: 66px 26px 60px;
  overflow: hidden;
  transition: transform .3s var(--ease-ui), font-size .12s linear;
  mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 12%,
      #000 84%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      transparent 0%,
      #000 12%,
      #000 84%,
      transparent 100%);
}
.pref-cue p {
  margin: 0 0 var(--pref-gap);
  color: rgba(244, 246, 248, .4);
  transition: color .25s;
}
.pref-stage[data-theme=light] .pref-cue p {
  color: rgba(21, 24, 29, .38);
}
.pref-cue p.is-active {
  color: rgba(244, 246, 248, .95);
}
.pref-stage[data-theme=light] .pref-cue p.is-active {
  color: #101318;
}
.pref-cue.no-highlight p,
.pref-cue.no-highlight p.is-active {
  color: rgba(244, 246, 248, .62);
}
.pref-stage[data-theme=light] .pref-cue.no-highlight p,
.pref-stage[data-theme=light] .pref-cue.no-highlight p.is-active {
  color: rgba(21, 24, 29, .56);
}
.pref-cue.is-mirror {
  transform: scaleX(-1);
}
.pref-cue.is-flip {
  transform: rotateX(180deg);
}
.pref-cue.is-mirror.is-flip {
  transform: rotateX(180deg) scaleX(-1);
}
.pref-guide {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: 46%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(100, 210, 255, .45) 10%,
      rgba(100, 210, 255, .45) 90%,
      transparent);
  pointer-events: none;
}
.pref-guide i {
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67d3ff;
  box-shadow: 0 0 12px rgba(100, 210, 255, .6);
}
.pref-stage-foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: rgba(244, 246, 248, .38);
  font-size: 9.5px;
  background: rgba(8, 9, 14, .72);
}
.pref-stage[data-theme=light] .pref-stage-foot {
  color: rgba(21, 24, 29, .45);
  border-color: rgba(0, 0, 0, .08);
  background: rgba(245, 247, 250, .85);
}
.pref-preview-note {
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.65;
}
.pref-foot {
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .015);
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.6;
}
.diag-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.diag-block {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.diag-block.is-flat {
  border-bottom: 0;
}
.diag-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.diag-block-head > span:first-child {
  color: rgba(244, 246, 248, .72);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: .02em;
}
.diag-state {
  color: var(--dim);
  font-size: 9.5px;
  text-align: right;
}
.diag-state.ok {
  color: rgba(100, 210, 255, .55);
}
.diag-select-row {
  display: flex;
  gap: 7px;
}
.diag-select-row select {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: rgba(244, 246, 248, .78);
  font-family: inherit;
  font-size: 10px;
}
.diag-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: transparent;
  color: rgba(244, 246, 248, .7);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.diag-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.diag-btn.is-primary {
  border-color: rgba(100, 210, 255, .26);
  background: rgba(41, 151, 255, .14);
  color: #dff5ff;
}
.diag-btn.is-primary:hover:not(:disabled) {
  background: rgba(41, 151, 255, .24);
}
.diag-btn:disabled {
  opacity: .34;
  cursor: not-allowed;
}
.diag-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  margin: 13px 0 10px;
  padding: 0 2px;
}
.diag-meter i {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: rgba(100, 210, 255, .16);
  transform: scaleY(.12);
  transform-origin: bottom;
  transition: transform .18s ease, background-color .18s;
}
.diag-meter.is-live i {
  animation: diagMeter 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.07s);
  background: rgba(100, 210, 255, .55);
}
.diag-hint {
  margin: 0;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.65;
}
.diag-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.diag-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.diag-row > span {
  flex: none;
  color: var(--dim);
  font-size: 9.5px;
}
.diag-row b {
  color: rgba(244, 246, 248, .76);
  font-size: 10.5px;
  font-weight: 500;
  text-align: right;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.diag-row b.is-pending {
  color: rgba(159, 216, 247, .45);
  font-weight: 400;
}
.diag-track {
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.diag-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      #2997ff,
      #67d3ff);
  transition: width .4s var(--ease-ui);
}
.diag-switches {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.diag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.diag-path {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.6;
}
.diag-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .015);
  color: var(--dim);
  font-size: 9.5px;
}
.diag-demo {
  flex: none;
  color: rgba(159, 216, 247, .5);
}
.diag-window [hidden] {
  display: none !important;
}
@keyframes diagMeter {
  0%, 100% {
    transform: scaleY(.18);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (max-width: 1240px) {
  .prefs-grid {
    grid-template-columns: 1fr;
  }
  .pref-body {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .pref-stage {
    height: 420px;
    min-height: 380px;
  }
}
@media (max-width: 760px) {
  .pref-window,
  .diag-window {
    border-radius: 18px;
  }
  .pref-top {
    padding: 14px 16px 12px;
  }
  .pref-top h3 {
    font-size: 14px;
  }
  .pref-body {
    grid-template-columns: 1fr;
  }
  .pref-controls {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 16px;
  }
  .pref-preview {
    padding: 14px;
  }
  .pref-stage {
    height: 380px;
    min-height: 300px;
  }
  .pref-cue {
    padding: 56px 18px 52px;
  }
  .pref-foot {
    padding: 10px 16px 12px;
  }
  .diag-block {
    padding: 14px 16px;
  }
  .diag-foot {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .diag-select-row {
    flex-wrap: wrap;
  }
  .diag-select-row select {
    flex: 1 1 100%;
  }
  .diag-select-row .diag-btn {
    flex: 1;
  }
  .diag-buttons .diag-btn {
    flex: 1;
  }
  .diag-row b {
    font-size: 10px;
  }
}
@media (max-width: 390px) {
  .pref-controls {
    gap: 12px;
  }
  .pref-stage {
    height: 340px;
    min-height: 270px;
  }
  .diag-meter {
    height: 28px;
  }
  .diag-demo {
    display: none;
  }
}

/* src/styles/install.css */
.install-section {
  position: relative;
}
.install-section .section-head {
  max-width: 880px;
}
.install-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) clamp(18px, 3vw, 40px) clamp(24px, 3vw, 36px);
  border-radius: 30px;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(26, 74, 120, .1),
      transparent 70%),
    #07090d;
  border: 1px solid rgba(255, 255, 255, .06);
}
.ins-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.ins-head-no {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: rgba(244, 246, 248, .62);
  font-size: 12px;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .03);
}
.ins-head-copy {
  min-width: 0;
}
.ins-head-copy h3 {
  margin: 0 0 4px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 560;
  letter-spacing: .01em;
}
.ins-head-copy p {
  margin: 0;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}
.ins-head-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(159, 216, 247, .6);
  font-size: 10.5px;
  white-space: nowrap;
}
.ins-head-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(100, 210, 255, .7);
  box-shadow: 0 0 8px rgba(100, 210, 255, .6);
}
.ins-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ins-tab {
  height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 246, 248, .42);
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .01em;
  cursor: pointer;
  transition:
    color .22s,
    background-color .22s,
    border-color .22s;
}
.ins-tab:hover {
  color: rgba(244, 246, 248, .78);
}
.ins-tab.is-active {
  background: #f4f6f8;
  color: #0a0b0e;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.ins-panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background:
    linear-gradient(
      170deg,
      rgba(19, 27, 37, .55),
      rgba(7, 9, 13, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.ins-panel.is-switching {
  animation: insSwitch .3s var(--ease-ui) both;
}
.ins-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ins-panel-title {
  min-width: 0;
}
.ins-status {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(100, 210, 255, .22);
  border-radius: 999px;
  background: rgba(41, 151, 255, .09);
  color: #cfeaff;
  font-size: 9.5px;
  letter-spacing: .06em;
}
.ins-panel-title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.5;
}
.ins-copy {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(244, 246, 248, .82);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: all .2s;
}
.ins-copy:hover {
  color: #fff;
  border-color: rgba(100, 210, 255, .35);
  background: rgba(41, 151, 255, .1);
}
.ins-copy.is-copied {
  border-color: rgba(100, 210, 255, .5);
  color: #eafbff;
  background: rgba(41, 151, 255, .2);
}
.ins-code {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 14px;
  background: rgba(0, 0, 0, .32);
  color: rgba(226, 236, 246, .78);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: .01em;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.ins-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 0 4px;
}
.ins-note {
  margin: 0;
  color: rgba(244, 246, 248, .42);
  font-size: 10.5px;
  line-height: 1.7;
}
.ins-toast {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(24px, 3vw, 36px);
  padding: 7px 12px;
  border: 1px solid rgba(100, 210, 255, .26);
  border-radius: 999px;
  background: rgba(11, 18, 26, .92);
  color: #cfeaff;
  font-size: 10.5px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.ins-toast.is-on {
  opacity: 1;
  transform: none;
}
@keyframes insSwitch {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.faq-section .section-head {
  max-width: 820px;
}
.faq-list {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.faq-item summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-no {
  color: rgba(159, 216, 247, .38);
  font-size: 10px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.faq-q {
  color: rgba(244, 246, 248, .86);
  font-size: 15px;
  line-height: 1.6;
  transition: color .2s;
}
.faq-item summary:hover .faq-q {
  color: #fff;
}
.faq-item summary i {
  position: relative;
  width: 22px;
  height: 22px;
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  background: rgba(159, 216, 247, .55);
  transition: transform .25s, opacity .25s;
}
.faq-item summary i::before {
  left: 50%;
  top: 4px;
  width: 1px;
  height: 14px;
  transform: translateX(-50%);
}
.faq-item summary i::after {
  top: 50%;
  left: 4px;
  width: 14px;
  height: 1px;
  transform: translateY(-50%);
}
.faq-item[open] summary i::before {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-item[open] summary i::after {
  background: rgba(100, 210, 255, .8);
}
.faq-a {
  padding: 0 46px 22px 52px;
}
.faq-a p {
  margin: 0;
  max-width: 720px;
  color: rgba(244, 246, 248, .5);
  font-size: 12.5px;
  line-height: 1.85;
}
.faq-item[open] .faq-q {
  color: #eafbff;
}
.faq-foot {
  max-width: 960px;
  margin: 22px auto 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .install-shell {
    border-radius: 20px;
    padding: 20px 16px 24px;
  }
  .ins-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .ins-head-no {
    width: 36px;
    height: 36px;
    font-size: 10.5px;
  }
  .ins-head-state {
    display: none;
  }
  .ins-head-copy h3 {
    font-size: 18px;
  }
  .ins-tabs {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }
  .ins-tab {
    flex: none;
    height: 32px;
    padding: 0 12px;
    font-size: 10.5px;
  }
  .ins-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .ins-panel-top {
    gap: 10px;
    margin-bottom: 14px;
  }
  .ins-panel-title h4 {
    font-size: 13px;
  }
  .ins-status {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .ins-copy {
    height: 28px;
    padding: 0 11px;
    font-size: 9.5px;
  }
  .ins-code {
    padding: 13px 12px;
    font-size: 10.5px;
    line-height: 1.9;
    border-radius: 10px;
  }
  .ins-note {
    font-size: 9.5px;
  }
  .ins-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
  .faq-item summary {
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    gap: 8px;
    padding: 16px 2px;
  }
  .faq-no {
    font-size: 9px;
  }
  .faq-q {
    font-size: 13.5px;
  }
  .faq-a {
    padding: 0 20px 18px 36px;
  }
  .faq-a p {
    font-size: 11.5px;
    line-height: 1.8;
  }
  .faq-foot {
    font-size: 9.5px;
  }
}
@media (max-width: 390px) {
  .ins-code {
    font-size: 10px;
  }
  .ins-panel-title h4 {
    font-size: 12.5px;
  }
}
