/* Landing page only. style.css supplies the shared tokens, header, and footer. */

:root {
  --grad: linear-gradient(120deg, #4db2ff 0%, #0a7aff 48%, #5b5bff 100%);
  --win-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.35);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --glow-a: rgba(10, 122, 255, 0.34);
  --glow-b: rgba(90, 200, 250, 0.26);
  --glow-c: rgba(91, 91, 255, 0.2);
  --header-fill: 67%;
  --header-halo: #f5f5f7;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* Light palette for the drawn app windows; dark-mode overrides follow
     below. */
  --win: #f5f5f7;
  --win-2: #ebebef;
  --win-3: #dfdfe5;
  --win-4: #d2d2d9;
  --pane: #ffffff;
  --win-line: rgba(0, 0, 0, 0.08);
  --win-border: rgba(0, 0, 0, 0.12);
  --win-border-2: rgba(0, 0, 0, 0.22);
  /* Text and accent colors for the light app-window palette. */
  --win-fg: #1d1d1f;
  --win-fg-2: #3a3a3f;
  --win-muted: #6e6e73;
  --win-dim: rgba(0, 0, 0, 0.38);
  --win-accent: #0a7aff;
  --win-accent-bg: #d6e8ff;
  --win-accent-bg-2: #c4ddff;
  --win-fill: rgba(0, 0, 0, 0.05);
  --win-fill-2: rgba(0, 0, 0, 0.11);
  --win-inset: rgba(0, 0, 0, 0.05);
  --win-overlay: rgba(250, 250, 252, 0.96);
  /* Semantic colors for success, errors, and warnings in app previews. */
  --win-ok: #1b8a3d;
  --win-ok-bg: rgba(52, 199, 89, 0.16);
  --win-bad: #d12f27;
  --win-bad-bg: rgba(255, 59, 48, 0.12);
  --win-warn: #a86400;
  --win-warn-bg: rgba(255, 159, 10, 0.18);
  /* Shared desktop, keyboard, and import artwork colors. */
  --mbar-bg: rgba(255, 255, 255, 0.6);
  --mbar-fg: rgba(0, 0, 0, 0.85);
  --keycap-bg: linear-gradient(180deg, #ffffff, #e8e8ee);
  --keycap-shadow: 0 0.3em 0 rgba(0, 0, 0, 0.16), 0 12px 30px -12px rgba(0, 0, 0, 0.3);
  --cube-doc: rgba(77, 163, 255, 0.14);
  --cube-img: rgba(224, 90, 214, 0.12);
  --cube-aud: rgba(255, 159, 46, 0.16);
  --filechip: rgba(255, 159, 46, 0.22);
  --desk-bg:
    radial-gradient(70% 60% at 30% 20%, rgba(10, 122, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 85% 85%, rgba(120, 91, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #e3e9f7, #eef0f6);
  --desk-fade: rgba(236, 239, 246, 0.92);
  /* The thin highlight along the hero window's top edge only reads on a dark
     window. */
  --win-sheen: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0e;
    --card: #141418;
    --line: rgba(255, 255, 255, 0.09);
    --win-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.85), 0 0 0 0.5px rgba(255, 255, 255, 0.07);
    --card-shadow: none;
    --glow-a: rgba(10, 122, 255, 0.4);
    --glow-b: rgba(90, 200, 250, 0.22);
    --glow-c: rgba(120, 91, 255, 0.28);
    --header-fill: 33%;
    --header-halo: #0b0b0e;
    /* Match all app-preview surfaces and artwork to the dark color scheme. */
    --win: #1a1a1e;
    --win-2: #212126;
    --win-3: #2a2a30;
    --win-4: #35353b;
    --pane: #111114;
    --win-line: rgba(255, 255, 255, 0.09);
    --win-border: rgba(255, 255, 255, 0.12);
    --win-border-2: rgba(255, 255, 255, 0.26);
    /* Dark-scheme text, accent fills, and inset surfaces. */
    --win-fg: #f2f2f5;
    --win-fg-2: #c9c9d0;
    --win-muted: #9a9aa3;
    --win-dim: rgba(255, 255, 255, 0.4);
    --win-accent: #3f9cff;
    --win-accent-bg: #162a4c;
    --win-accent-bg-2: #1a3258;
    --win-fill: rgba(255, 255, 255, 0.07);
    --win-fill-2: rgba(255, 255, 255, 0.16);
    --win-inset: rgba(0, 0, 0, 0.2);
    --win-overlay: rgba(36, 36, 42, 0.96);
    /* Keep semantic status colors readable on dark surfaces. */
    --win-ok: #7ee787;
    --win-ok-bg: rgba(52, 199, 89, 0.16);
    --win-bad: #ff8078;
    --win-bad-bg: rgba(255, 128, 120, 0.16);
    --win-warn: #ffd166;
    --win-warn-bg: rgba(255, 204, 0, 0.16);
    /* Dark-scheme desktop and decorative artwork colors. */
    --mbar-bg: rgba(20, 20, 26, 0.6);
    --mbar-fg: rgba(255, 255, 255, 0.85);
    --keycap-bg: linear-gradient(180deg, #3a3a42, #26262c);
    --keycap-shadow: 0 0.3em 0 rgba(0, 0, 0, 0.45), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --cube-doc: rgba(28, 52, 88, 0.55);
    --cube-img: rgba(66, 26, 66, 0.55);
    --cube-aud: rgba(74, 44, 16, 0.55);
    --filechip: rgba(74, 44, 16, 0.85);
    --desk-bg:
      radial-gradient(70% 60% at 30% 20%, rgba(10, 122, 255, 0.35), transparent 70%),
      radial-gradient(50% 50% at 85% 85%, rgba(120, 91, 255, 0.3), transparent 70%),
      linear-gradient(160deg, #2b2f4a, #141420);
    --desk-fade: rgba(18, 18, 24, 0.9);
    --win-sheen: rgba(120, 190, 255, 0.55);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Keep decorative glows from widening the viewport without creating a
   scrolling container that would interfere with the sticky header. */
html {
  overflow-x: clip;
}

body.landing {
  overflow-x: clip;
}

body.landing main {
  max-width: none;
  padding: 0;
}

body.landing section {
  margin: 0;
}

body.landing section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Once the page is idle, or right before an anchor jump, every section is laid out for real so the jump lands exactly (landing.js adds the class). */
html.settled body.landing section:not(.hero) {
  content-visibility: visible;
}

::selection {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, #3155dd);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.landing :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: 3px;
}

/* Floating capsule header: transparent over the hero, then opaque enough to hide scrolling copy. */
body.landing header.site {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding: 9px 11px 9px 17px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

body.landing header.site::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: calc(100% + 1px);
  height: 44px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--header-halo));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

html:not(.js) body.landing header.site,
body.landing header.site.scrolled {
  --bg: #0b0b0e;
  --fg: #f5f5f7;
  --muted: #efefef;
  background: color-mix(in srgb, var(--bg) var(--header-fill), transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 16%, var(--bg)), 0 14px 40px -20px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}

html:not(.js) body.landing header.site::before,
body.landing header.site.scrolled::before {
  opacity: 1;
}

/* Menu links are not muted grey: near white on a dark ground (the capsule above
in both schemes, the hero in the dark scheme) and the text color over the light
hero. */
@media (prefers-color-scheme: dark) {
  body.landing header.site {
    --muted: #efefef;
  }
}

@media (prefers-color-scheme: light) {
  body.landing header.site {
    --muted: #1d1d1f;
  }
}

body.landing header.site .brand {
  gap: 9px;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

body.landing header.site .brand img {
  width: 26px;
  height: 26px;
}

body.landing header.site nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

body.landing header.site nav a {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

body.landing header.site nav a:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  text-decoration: none;
}

body.landing header.site nav a.gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

body.landing header.site nav a.gh:hover {
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

body.landing header.site nav a.gh .ic {
  width: 15px;
  height: 15px;
}

/* Inside the dark capsule, hover and the GitHub pill use a near-black fill
   rather than a pale grey wash. */
html:not(.js) body.landing header.site nav a:hover,
html:not(.js) body.landing header.site nav a.gh,
body.landing header.site.scrolled nav a:hover,
body.landing header.site.scrolled nav a.gh {
  background: rgba(0, 0, 0, 0.26);
}

html:not(.js) body.landing header.site nav a.gh:hover,
body.landing header.site.scrolled nav a.gh:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* The menu item for the section in view is highlighted: white with black
   text, in both schemes and over the capsule. */
body.landing header.site nav a.on,
body.landing header.site nav a.on:hover {
  color: #111;
  background: #fff;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec {
  padding: clamp(56px, 8vw, 104px) 0;
}

.sec+.sec {
  padding-top: 0;
}

.sec-head {
  max-width: 64ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.eyebrow .ic {
  width: 14px;
  height: 14px;
}

.landing h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}

.landing .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.sec-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.copy kbd,
.feat kbd,
.lead kbd,
.card kbd {
  font: 600 0.88em var(--mono);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Icons drawn from the inline sprite. */
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(36px, 5vw, 64px) 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22%;
  width: min(130vw, 1500px);
  height: 78%;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 42% at 50% 34%, var(--glow-a), transparent 72%),
    radial-gradient(22% 30% at 24% 58%, var(--glow-b), transparent 70%),
    radial-gradient(24% 32% at 76% 52%, var(--glow-c), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.whatsnew {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.whatsnew .plat {
  display: inline-block;
  color: var(--muted);
  white-space: nowrap;
}

.whatsnew .plat::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
  vertical-align: 0.05em;
}

.whatsnew .plat em {
  font-style: normal;
}

/* A fact beside the platform status carries no status dot. */
.whatsnew .plat.fact::before {
  display: none;
}

.whatsnew .plat.on {
  color: var(--fg);
  font-weight: 600;
}

.whatsnew .plat.on::before {
  background: #34c759;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}

.hero h1 {
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 auto 16px;
  max-width: 16ch;
  text-wrap: balance;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 26px;
}

.hero .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .fine {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta .ic {
  width: 18px;
  height: 18px;
}

.cta.primary {
  background: linear-gradient(180deg, #2b8dff, #0a6fff);
  box-shadow: 0 10px 24px -10px rgba(10, 111, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(10, 111, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* The wordmark, in white, inside a primary button, ahead of the words that
   follow it. */
.cta .wordmark {
  width: auto;
  height: 26px;
  /* The artwork has empty space on both sides; pull it in so the mark sits
     on the padding and "on" follows at a word space. */
  margin: -2px -12px -2px -6px;
  /* style.css decorates images in a hero with a rounded shadow; the wordmark
     is flat. */
  border-radius: 0;
  box-shadow: none;
}

.cta.ghost {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.cta.ghost:hover {
  transform: translateY(-1px);
}

/* Hero stage: the app window plus floating satellites. */
.stage {
  position: relative;
  max-width: 960px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: 0 12px;
  container-type: inline-size;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% -6%;
  background: radial-gradient(60% 60% at 50% 50%, var(--glow-a), transparent 70%);
  z-index: -1;
}

.stage .win {
  animation: rise 0.9s var(--ease) both;
}

.stage .win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--win-sheen), transparent 90%);
  pointer-events: none;
  z-index: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sat {
  position: absolute;
  z-index: 2;
  animation: bob 6s ease-in-out infinite;
}

.sat.hud {
  left: -5%;
  top: 30%;
  animation-delay: -2s;
}

.sat.toast {
  right: -3%;
  top: 8%;
  animation-delay: -4s;
}

.sat.keys {
  right: 3%;
  bottom: -4%;
  display: flex;
  gap: 6px;
  animation-delay: -1s;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 940px;
  margin: clamp(30px, 4vw, 46px) auto 0;
  padding: 0 24px;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.trust .ic {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* App windows, sized in em so they scale with their container. */
.frame {
  container-type: inline-size;
}

.frame .win {
  font-size: clamp(9px, 2cqw, 15px);
}

.win {
  position: relative;
  font-size: clamp(8.5px, 1.6cqw, 15px);
  line-height: 1.4;
  color: var(--win-fg);
  background: var(--win);
  border: 1px solid var(--win-line);
  border-radius: 1em;
  box-shadow: var(--win-shadow);
  overflow: hidden;
  text-align: left;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3em;
  padding: 0 1.1em;
  font-weight: 600;
  font-size: 1.02em;
  background: var(--win-2);
  border-bottom: 1px solid var(--win-line);
}

.win-bar .spacer {
  flex: 1;
}

.win-bar .muted {
  color: var(--win-muted);
  font-weight: 500;
}

.win-bar .ic {
  width: 1.25em;
  height: 1.25em;
  color: var(--win-muted);
}

.dots {
  display: flex;
  gap: 0.55em;
  margin-right: 0.5em;
}

.dots i {
  display: block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
}

.dots i:nth-child(1) {
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

/* The launcher: input pane, arrow, result pane, chips, footer. */
.launcher {
  padding: 1.2em;
}

.splitview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5em;
  height: 28em;
}

.splitview.short {
  height: 19em;
}

.pane-in,
.pane-out {
  position: relative;
  min-width: 0;
  border: 1px solid var(--win-border);
  border-radius: 0.9em;
  background: var(--pane);
  overflow: hidden;
}

.pane-in.focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--win-accent);
}

.pane-in .text {
  padding: 1em 1.2em;
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--win-fg);
  overflow-wrap: anywhere;
}

.caret {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--win-fg);
  vertical-align: -0.18em;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

.send {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--win-fill);
  color: var(--win-muted);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.send .ic {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.2;
}

.send.live {
  background: var(--win-accent);
  color: #fff;
}

.pane-in .send {
  position: absolute;
  right: 0.9em;
  bottom: 0.8em;
}

.mid {
  display: grid;
  place-items: center;
  padding: 0 0.15em;
  color: var(--win-dim);
}

.mid .ic {
  width: 1.5em;
  height: 1.5em;
}

.pane-out .empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 2em;
  text-align: center;
  color: var(--win-muted);
}

.pane-out .empty b {
  font-size: 1.2em;
  color: var(--win-fg-2);
}

.pane-out .empty span {
  max-width: 26em;
}

.pane-out .res {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.45s var(--ease);
}

.res-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.1em 0.4em;
  font-weight: 600;
  font-size: 1.02em;
  white-space: nowrap;
}

.res-head>span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-head .wc {
  display: flex;
  gap: 0.4em;
  margin-left: auto;
}

.res-head .wc .ic {
  width: 1.5em;
  height: 1.5em;
  padding: 0.25em;
  border-radius: 0.35em;
  background: var(--win-fill);
  color: var(--win-muted);
}

.res-tools {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 1.1em 0.7em;
  border-bottom: 1px solid var(--win-line);
}

.res-tools i {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.45em;
  background: var(--win-fill);
  border: 1px solid var(--win-line);
  color: var(--win-muted);
}

.res-tools i .ic {
  width: 1em;
  height: 1em;
}

.res-tools .meta {
  margin-left: auto;
  min-width: 0;
  font-size: 0.8em;
  color: var(--win-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.working {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1em 1.2em;
}

.working b {
  font-weight: 600;
}

.working span {
  color: var(--win-muted);
}

.res-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.85em 1.2em;
  font-size: 0.95em;
  line-height: 1.5;
}

.res-body h4,
.convo h4 {
  margin: 0 0 0.5em;
  font-size: 1.12em;
  font-weight: 500;
}

.res-body p,
.convo p {
  margin: 0 0 0.6em;
}

.res-body p:last-child {
  margin-bottom: 0;
}

.who {
  display: block;
  margin: 0.55em 0 0.1em;
  font-size: 0.85em;
  color: var(--win-muted);
}

.who.you {
  color: var(--win-accent);
  font-weight: 600;
}

.res-body .langhead {
  display: block;
  margin: 0.3em 0 0.1em;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--win-accent);
}

.res-follow {
  border-top: 1px solid var(--win-line);
  padding: 0.75em 1.1em 0.8em;
}

.res-follow .field {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.2em;
}

.res-follow .field .ph {
  color: var(--win-muted);
}

.res-follow .field.filled .ph {
  display: none;
}

.res-follow .field .typed {
  overflow-wrap: anywhere;
}

.res-follow .field .send {
  margin-left: auto;
}

.fmodel {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.55em;
  font-size: 0.85em;
  color: var(--win-muted);
}

.fmodel .chev {
  width: 0.85em;
  height: 0.85em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  margin-top: 1em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1em;
  border: 0;
  border-radius: 0.75em;
  font: inherit;
  font-size: 1.02em;
  font-weight: 600;
  color: var(--win-fg);
  background: var(--win-3);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.chip .ic {
  width: 1.15em;
  height: 1.15em;
}

.chip kbd {
  font: inherit;
  font-weight: 500;
  color: var(--win-muted);
}

.chip .chev {
  display: none;
  width: 0.85em;
  height: 0.85em;
}

.chip.on {
  color: var(--win-accent);
  background: var(--win-accent-bg);
  box-shadow: inset 0 0 0 1px rgba(63, 156, 255, 0.28);
}

.chip.on kbd,
.chip.on .chev {
  color: var(--win-accent);
  opacity: 0.85;
}

.chip.on .chev {
  display: inline-block;
}

button.chip {
  cursor: pointer;
}

button.chip:hover {
  background: var(--win-4);
}

button.chip.on:hover {
  background: var(--win-accent-bg-2);
}

button.chip:focus-visible {
  outline: 2px solid var(--win-accent);
  outline-offset: 2px;
}

.launcher-foot {
  display: flex;
  align-items: center;
  gap: 1.6em;
  margin-top: 1.1em;
  font-weight: 600;
  color: var(--win-muted);
}

.launcher-foot .model {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--win-fg-2);
}

.launcher-foot .model .ic {
  color: var(--win-fg-2);
}

.launcher-foot .model .chev {
  width: 0.85em;
  height: 0.85em;
  color: var(--win-muted);
}

.launcher-foot .go {
  margin-left: auto;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.launcher-foot .go b {
  color: var(--win-fg);
  font-weight: 600;
}

.launcher-foot .go.press {
  transform: scale(1.08);
  color: var(--win-accent);
}

.launcher-foot .go.press b {
  color: var(--win-accent);
}

/* Empty input: the placeholder question, a hint, and the three drop targets. */
.pane-in .drop {
  position: absolute;
  inset: 0 0 2.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 1em 1.2em;
  text-align: center;
}

.pane-in .drop>b {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--win-fg-2);
}

.pane-in .drop>span {
  font-size: 0.95em;
  color: var(--win-muted);
}

.pane-in.filled .drop {
  display: none;
}

.cubes {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  margin-top: 1.1em;
}

.cube {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  width: 7em;
  padding: 0.85em 0.35em 0.75em;
  border-radius: 0.8em;
  border: 1px solid;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.cube .ic {
  width: 1.5em;
  height: 1.5em;
  margin-bottom: 0.25em;
}

.cube b {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--win-fg);
}

.cube small {
  /* Wrap within the tile when the browser enlarges small text. */
  max-width: 100%;
  font-size: 0.66em;
  letter-spacing: 0.03em;
  color: var(--win-muted);
}

.cube.doc {
  color: #4da3ff;
  background: var(--cube-doc);
  border-color: rgba(77, 163, 255, 0.28);
}

.cube.img {
  color: #e05ad6;
  background: var(--cube-img);
  border-color: rgba(224, 90, 214, 0.28);
}

.cube.aud {
  color: #ff9f2e;
  background: var(--cube-aud);
  border-color: rgba(255, 159, 46, 0.3);
}

.cube.on,
.pane-in.dropping .cube.aud,
.pane-in[data-import="drop"] .cube.aud {
  box-shadow: 0 0 0 2px currentColor, 0 12px 30px -14px currentColor;
  transform: translateY(-2px);
}

.filechip {
  position: absolute;
  left: 1.1em;
  top: 1em;
  display: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.8em 0.45em 0.6em;
  border-radius: 0.6em;
  font-size: 0.95em;
  color: var(--win-fg);
  background: var(--filechip);
  border: 1px solid rgba(255, 159, 46, 0.4);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  animation: dropin 0.45s var(--ease) both;
}

.filechip .ic {
  width: 1.1em;
  height: 1.1em;
  color: #ff9f2e;
}

.filechip b {
  font-weight: 600;
}

.filechip span {
  color: var(--win-muted);
}

.filechip.show,
.pane-in[data-import="drop"] .filechip,
.pane-in[data-import="working"] .filechip {
  display: inline-flex;
}

@keyframes dropin {
  from {
    opacity: 0;
    transform: translateY(-0.8em) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* While a recording is being imported the sheet owns the pane: no caret behind the file chip, no send button under the sheet. */
.pane-in[data-import] .caret,
.pane-in[data-import] .send {
  display: none;
}

.import {
  position: absolute;
  left: 50%;
  bottom: 1em;
  z-index: 2;
  display: none;
  width: min(92%, 30em);
  padding: 0.9em 1em 1em;
  font-size: 0.92em;
  border-radius: 0.9em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  transform: translateX(-50%);
}

.import.show,
.pane-in[data-import="working"] .import {
  display: block;
}

.import .row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.import .row .spin {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.4;
}

.import .row b {
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.import .row>span {
  color: var(--win-muted);
  white-space: nowrap;
}

.import .row .cancel {
  margin-left: auto;
  padding: 0.3em 0.8em;
  border-radius: 0.5em;
  background: var(--win-fill);
  color: var(--win-fg);
  font-weight: 600;
  font-size: 0.9em;
}

.import .bar {
  display: block;
  position: relative;
  height: 0.4em;
  margin-top: 0.8em;
  border-radius: 1em;
  overflow: hidden;
  background: var(--win-fill);
}

.import .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--win-muted), var(--win-fg));
}

.pane-in[data-import="working"] .import .bar i {
  animation: fillbar 2.4s ease-out forwards;
}

@keyframes fillbar {
  from {
    width: 4%;
  }

  to {
    width: 96%;
  }
}

.splitview.solo {
  grid-template-columns: 1fr;
  height: 30em;
}

.dropwin .drop {
  inset: 2.4em 0 5.2em;
}

.dropwin .drop>b {
  font-size: 1.35em;
}

/* The model-picker window is shorter, so its empty state is compact. Kept after the generic rules so it wins at equal specificity. */
.splitview.short .cube {
  width: 5.8em;
  padding: 0.75em 0.3em 0.65em;
  font-size: 0.92em;
}

.splitview.short .drop>b {
  font-size: 1.15em;
}

/* Differentiators grid */
.edges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.edge {
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.edge:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.edge .badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.edge .badge .ic {
  width: 20px;
  height: 20px;
}

.edge h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.edge p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .edges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .edges {
    grid-template-columns: 1fr;
  }
}

/* Hero replay states (JavaScript drives them; without it, or with reduced motion, the finished conversation shows). */
html.motion [data-hero]:not(.live) .res,
html.motion [data-hero]:not(.live) .typed {
  visibility: hidden;
}

[data-hero][data-state="idle"] .res {
  display: none;
}

[data-hero]:not([data-state="idle"]) .empty {
  display: none;
}

[data-hero]:not([data-state="working"]) .working {
  display: none;
}

[data-hero][data-state="working"] .res-body,
[data-hero][data-state="working"] .res-follow {
  visibility: hidden;
}

[data-hero][data-state="leaving"] .res {
  opacity: 0;
}

[data-hero][data-state="idle"] .send.live,
[data-hero][data-state="leaving"] .send.live {
  background: var(--win-fill);
  color: var(--win-muted);
}

/* Progress HUD, clipboard toast, keycaps. */
.hud {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55em 0.6em 0.55em 0.95em;
  border-radius: 1em;
  font-size: clamp(11px, 1.9cqw, 15px);
  color: var(--win-fg);
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  white-space: nowrap;
}

.hud .spin {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.4;
}

.hud b {
  font-weight: 700;
  font-size: 1.1em;
}

.hud>span {
  color: var(--win-muted);
}

.hud .cancel {
  margin-left: 0.5em;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--win-border-2);
  color: var(--win-fg);
  font-weight: 600;
  font-size: 0.92em;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 1.1em 0.6em 0.9em;
  border-radius: 1em;
  font-size: clamp(11px, 2cqw, 15px);
  font-weight: 700;
  color: var(--win-fg);
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  white-space: nowrap;
}

.toast .ic {
  color: #34c759;
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2.6;
}

.toast span {
  color: var(--win-muted);
  font-weight: 500;
}

.keycap {
  display: grid;
  place-items: center;
  min-width: 2.2em;
  height: 2.2em;
  padding: 0 0.5em;
  border-radius: 0.55em;
  font-size: clamp(12px, 2.2cqw, 17px);
  font-weight: 600;
  color: var(--win-fg);
  background: var(--keycap-bg);
  border: 1px solid var(--win-border);
  box-shadow: var(--keycap-shadow);
}

@media (max-width: 720px) {
  .stage .sat {
    display: none;
  }
}

/* Scroll reveal, only when JavaScript is running. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

html.js .reveal.d1 {
  transition-delay: 0.1s;
}

html.js .reveal.d2 {
  transition-delay: 0.2s;
}

/* Mode demo */
.demo {
  border-radius: 22px;
  padding: clamp(14px, 2vw, 22px);
  background: var(--win);
  border: 1px solid var(--win-line);
  box-shadow: var(--win-shadow);
  color: var(--win-fg);
  container-type: inline-size;
  font-size: clamp(11px, 1.5cqw, 15px);
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1.2em;
}

.demo-tabs .chip {
  font-size: 0.95em;
  padding: 0.6em 0.9em;
}

.panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1em;
  align-items: stretch;
  animation: fadein 0.45s var(--ease);
}

.panel[hidden] {
  display: none;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1em;
  border: 1px solid var(--win-border);
  background: var(--pane);
  padding: 1em 1.15em 1.1em;
}

.pane.in {
  box-shadow: 0 0 0 2px rgba(63, 156, 255, 0.55);
  border-color: transparent;
}

.pane.out {
  background: var(--win-2);
  border-color: var(--win-line);
}

.pane .lbl {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.6em;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--win-muted);
}

.pane .lbl .right {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.pane p {
  margin: 0 0 0.6em;
  font-size: 1.12em;
  line-height: 1.5;
}

.pane p:last-child {
  margin-bottom: 0;
}

.pane h3 {
  margin: 0 0 0.35em;
  font-size: 1.6em;
  letter-spacing: -0.02em;
}

.pane h4 {
  margin: 0.7em 0 0.25em;
  font-size: 1.05em;
}

.pane h4 .ipa {
  font-weight: 400;
  color: var(--win-muted);
  margin-left: 0.4em;
}

.pane ul,
.pane ol {
  margin: 0.2em 0 0.4em;
  padding-left: 1.3em;
  font-size: 1.08em;
  line-height: 1.5;
}

.pane li {
  margin: 0.15em 0;
}

.pane li em {
  color: var(--win-muted);
  font-style: italic;
}

/* Pronunciation glyphs sit inline in the secondary color, like the app's speaker.wave.2 attachment: no button chrome. */
.pane .spk {
  display: inline-block;
  margin-left: 0.3em;
  color: var(--win-muted);
  line-height: 1;
}

.pane .spk .ic {
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.05em;
}

.pane .src {
  margin-top: auto;
  padding-top: 0.8em;
  border-top: 1px solid var(--win-line);
  font-size: 0.92em;
  color: var(--win-muted);
}

.pane .src b {
  display: block;
  color: var(--win-fg);
  margin-bottom: 0.2em;
}

.pane .src a {
  color: var(--win-accent);
}

.pane .langhead {
  display: block;
  margin: 0.5em 0 0.15em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--win-accent);
}

.pane .langhead:first-of-type {
  margin-top: 0;
}

.pane .tools {
  display: flex;
  gap: 0.35em;
  margin-left: auto;
}

.pane .tools i {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.45em;
  background: var(--win-fill);
  color: var(--win-muted);
}

.pane .tools i .ic {
  width: 0.95em;
  height: 0.95em;
}

.pane .tools i.on {
  color: var(--win-accent);
}

.pane .stamp {
  margin-top: auto;
  padding-top: 0.9em;
  font-size: 0.9em;
  color: var(--win-muted);
}

.pane .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: center;
  margin-top: auto;
  padding-top: 0.9em;
  font-size: 0.9em;
  color: var(--win-muted);
}

.pane .seg {
  display: inline-flex;
  padding: 0.15em;
  border-radius: 0.6em;
  background: var(--win-fill);
}

.pane .seg span {
  padding: 0.25em 0.7em;
  border-radius: 0.45em;
  font-weight: 600;
  color: var(--win-muted);
}

.pane .seg span.on {
  background: var(--win-3);
  color: var(--win-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pane .lbl .seg {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}

.pane .lbl .seg span {
  padding: 0.15em 0.6em;
}

.pane .opts .tick {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.7em;
  border-radius: 0.6em;
  font-weight: 600;
  color: var(--win-fg);
  background: var(--win-fill);
}

.pane .opts .tick .ic {
  width: 0.9em;
  height: 0.9em;
  color: var(--win-accent);
}

.pane del {
  color: var(--win-bad);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 128, 120, 0.8);
}

.pane ins {
  color: var(--win-ok);
  text-decoration: none;
  background: rgba(52, 199, 89, 0.14);
  border-radius: 0.25em;
  padding: 0 0.12em;
}

.linkcard {
  display: flex;
  gap: 0.7em;
  align-items: center;
  margin-bottom: 0.6em;
  padding: 0.7em 0.85em;
  border-radius: 0.7em;
  background: var(--win-fill);
  border: 1px solid var(--win-line);
}

.linkcard .ic {
  width: 1.6em;
  height: 1.6em;
  color: var(--win-accent);
}

.linkcard b {
  display: block;
  font-size: 1.05em;
  line-height: 1.35;
}

.linkcard span {
  display: block;
  font-size: 0.85em;
  color: var(--win-muted);
}

.pageimg {
  margin: 0.2em 0 0.8em;
}

.art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.6em;
  background: linear-gradient(135deg, #2b6cff, #7a4dff);
}

.art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.art.bridge {
  aspect-ratio: 16 / 7;
  background: linear-gradient(170deg, #1a3a6f 0%, #3d8ad6 55%, #9fd0ff 100%);
}

.pageimg figcaption {
  margin-top: 0.4em;
  font-size: 0.82em;
  color: var(--win-muted);
}

.pageimg figcaption a {
  color: var(--win-accent);
}

.arrow {
  display: grid;
  place-items: center;
  color: var(--win-muted);
}

.arrow .ic {
  width: 1.6em;
  height: 1.6em;
}

mark.bad {
  background: none;
  color: inherit;
  text-decoration: underline wavy #ff6b6b;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.demo-cap {
  margin: 20px auto 0;
  max-width: 72ch;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.demo-cap[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .panel {
    grid-template-columns: 1fr;
  }

  .arrow .ic {
    transform: rotate(90deg);
  }
}

/* Two-column feature rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split.flip .visual {
  order: -1;
}

.split .copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.split .copy .lead {
  font-size: 18px;
  margin-bottom: 22px;
}

.split .visual {
  position: relative;
}

.split .visual::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  background: radial-gradient(55% 55% at 50% 50%, var(--glow-a), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.feats {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feat .badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.feat .badge .ic {
  width: 20px;
  height: 20px;
}

.feat h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.flip .visual {
    order: 0;
  }
}

/* Result windows: toolbar, body, conversation, narration player, voice picker. */
.result .win-bar .mark {
  margin-left: auto;
  width: 1.15em;
  height: 1.15em;
  color: var(--win-muted);
}

.result .tools {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--win-line);
  background: var(--win-2);
}

.result .tools i {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 0.5em;
  background: var(--win-fill);
  border: 1px solid var(--win-line);
  color: var(--win-muted);
}

.result .tools i .ic {
  width: 1.05em;
  height: 1.05em;
}

.result .tools i.on {
  color: var(--win-accent);
  border-color: rgba(10, 132, 255, 0.5);
}

.result .tools .model {
  margin-left: auto;
  min-width: 0;
  font-size: 0.88em;
  color: var(--win-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result .body {
  padding: 1.2em 1.4em 1.3em;
  font-size: 1.06em;
  line-height: 1.55;
}

.result .body h4 {
  margin: 0 0 0.5em;
  font-size: 1.15em;
  font-weight: 500;
}

.result .body p {
  margin: 0 0 0.7em;
}

.result .body p:last-child {
  margin-bottom: 0;
}

.result .body b.hl {
  background: rgba(10, 132, 255, 0.32);
  border-radius: 0.2em;
  padding: 0.05em 0.1em;
  font-weight: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.result .body .src {
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid var(--win-line);
  font-size: 0.88em;
  color: var(--win-muted);
}

.result .body .src b {
  color: var(--win-fg);
  display: block;
  margin-bottom: 0.2em;
}

.result .body .src a {
  color: var(--win-accent);
  margin-right: 0.6em;
}

.who .acts {
  display: inline-flex;
  gap: 1em;
  margin-left: 1.1em;
}

.who .acts a {
  color: var(--win-accent);
  font-weight: 500;
}

.thread .res-follow .field {
  font-size: 1.05em;
}

.player {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.75em 1.1em;
  border-top: 1px solid var(--win-line);
  background: var(--win-2);
}

.pbtn {
  display: grid;
  place-items: center;
  height: 1.95em;
  min-width: 2.4em;
  padding: 0 0.45em;
  border-radius: 0.45em;
  background: var(--win-fill);
  border: 1px solid var(--win-line);
  color: var(--win-accent);
  font-size: 0.95em;
  font-weight: 700;
}

.pbtn .ic {
  width: 1.2em;
  height: 1.2em;
}

.pbtn.play .ic {
  width: 1.05em;
  height: 1.05em;
}

.player .time {
  margin: 0 0.25em;
  font-size: 0.85em;
  color: var(--win-muted);
  font-variant-numeric: tabular-nums;
}

.player .track {
  position: relative;
  flex: 1;
  height: 0.35em;
  border-radius: 1em;
  background: var(--win-fill-2);
}

.player .track i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4%;
  border-radius: 1em;
  background: var(--win-accent);
}

.player .track b {
  position: absolute;
  top: 50%;
  left: 4%;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.voices {
  position: absolute;
  left: 4.4em;
  top: 5.4em;
  width: 48%;
  min-width: 17em;
  padding: 0.5em;
  border-radius: 0.9em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  font-size: 0.9em;
}

.voices .g {
  padding: 0.45em 0.8em 0.1em;
  font-weight: 700;
  color: var(--win-muted);
}

.voices .sg {
  padding: 0.1em 0.8em 0.05em 1.4em;
  font-weight: 600;
  color: var(--win-muted);
  font-size: 0.85em;
}

.voices .v {
  padding: 0.28em 0.8em 0.28em 2em;
  border-radius: 0.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voices .v span {
  color: var(--win-muted);
}

.voices .v.on {
  background: var(--win-accent);
  color: #fff;
}

.voices .v.on span {
  color: rgba(255, 255, 255, 0.8);
}

/* Results bento: the text editor, text hygiene, and printing. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bcard {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  container-type: inline-size;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.bcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.bcard h3 {
  margin: 18px 4px 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.bcard p {
  margin: 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.bvis {
  height: 17em;
  font-size: clamp(9px, 3.3cqw, 13px);
  line-height: 1.4;
  color: var(--win-fg);
  border-radius: 14px;
  background: var(--win);
  border: 1px solid var(--win-line);
  box-shadow: var(--win-shadow);
  overflow: hidden;
}

.editor .ebar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 0.8em;
  border-bottom: 1px solid var(--win-line);
  background: var(--win-2);
}

.editor .grp {
  display: inline-flex;
  border: 1px solid var(--win-line);
  border-radius: 0.55em;
  overflow: hidden;
}

.editor .grp>* {
  display: grid;
  place-items: center;
  min-width: 1.7em;
  height: 2.1em;
  padding: 0 0.4em;
  border-right: 1px solid var(--win-line);
  font-size: 1em;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
  color: var(--win-muted);
}

.editor .grp>*:last-child {
  border-right: 0;
}

.editor .grp b {
  color: var(--win-fg);
}

.editor .grp i {
  font-style: italic;
}

.editor .grp u {
  text-decoration: underline;
}

.editor .grp s {
  text-decoration: line-through;
}

.editor .grp .ic {
  width: 1em;
  height: 1em;
}

.editor .sel {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: calc(2.1em + 2px);
  padding: 0 0.6em 0 0.7em;
  border: 1px solid var(--win-line);
  border-radius: 0.55em;
  font-weight: 500;
}

.editor .sel .ic {
  width: 1em;
  height: 1em;
  color: var(--win-fg);
}

.editor .spacer {
  flex: 1;
}

.editor .grp.act>* {
  min-width: auto;
  padding: 0 0.65em;
  font-weight: 500;
  color: var(--win-fg);
}

.editor .grp .done {
  color: var(--win-accent);
  font-weight: 600;
}

.editor .ebody {
  padding: 1em 1.1em;
  line-height: 1.5;
}

.editor .ebody h4 {
  margin: 0 0 0.45em;
  font-size: 1.15em;
  font-weight: 500;
}

.editor .ebody p {
  margin: 0;
  font-size: 1em;
  color: var(--win-fg);
}

mark.edit {
  background: rgba(10, 132, 255, 0.35);
  color: inherit;
  border-radius: 0.2em;
  padding: 0 0.1em;
}

.hyg {
  display: grid;
  gap: 0.8em;
  padding: 1em 1.1em;
}

.hyg .lbl {
  display: block;
  margin-bottom: 0.3em;
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--win-muted);
}

.hyg .row p {
  margin: 0;
  font-size: 1em;
  line-height: 1.55;
}

.hyg .row.in p i {
  display: inline-block;
  margin: 0 0.1em;
  padding: 0 0.35em;
  border-radius: 0.3em;
  font: 600 0.66em/1.75 var(--mono);
  font-style: normal;
  color: var(--win-bad);
  background: var(--win-bad-bg);
  vertical-align: 0.15em;
}

.hyg .row.out {
  padding: 0.7em 0.8em;
  border-radius: 0.7em;
  background: var(--win-2);
  border: 1px solid var(--win-line);
}

.hyg .row.out .lbl {
  color: var(--win-ok);
}

.hyg .toggle {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.95em;
  font-weight: 500;
  color: var(--win-fg);
}

.hyg .sw {
  position: relative;
  flex: none;
  width: 2.4em;
  height: 1.4em;
  border-radius: 1em;
  background: var(--win-accent);
}

.hyg .sw i {
  position: absolute;
  top: 0.15em;
  right: 0.15em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.paper {
  position: relative;
  height: 100%;
  padding: 1.3em 1.4em 0;
  overflow: hidden;
  background: radial-gradient(60% 50% at 25% 10%, rgba(10, 122, 255, 0.35), transparent 70%), linear-gradient(160deg, #23273f, #121218);
}

.paper .sheet {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 76%;
  height: 100%;
  padding: 1.1em 1.2em;
  border-radius: 0.5em 0.5em 0 0;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}

.paper .sheet.back {
  position: absolute;
  left: 50%;
  top: 2.4em;
  z-index: 0;
  height: 100%;
  padding: 0;
  background: #e6e6ea;
  transform: translateX(-50%) rotate(-4deg);
}

.paper .sheet b {
  display: block;
  margin-bottom: 0.7em;
  font-size: 1.05em;
}

.paper .sheet i {
  display: block;
  height: 0.45em;
  margin: 0.45em 0;
  border-radius: 0.25em;
  background: #dcdce1;
}

.paper .sheet i.s {
  width: 58%;
}

.paper .sheet em {
  display: block;
  margin: 0.9em 0 0.2em;
  font-size: 0.7em;
  font-style: normal;
  font-weight: 600;
  color: #0a7aff;
}

.paper .sheet .pg {
  position: absolute;
  right: 1.2em;
  bottom: 0.9em;
  font-size: 0.65em;
  color: #8e8e93;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bvis {
    height: auto;
    min-height: 15em;
  }

  .paper {
    height: 17em;
  }
}

/* Desktop scene: menu bar, a note, the Services submenu, and the clipboard panel. */
.scene {
  position: relative;
  aspect-ratio: 16 / 11;
  container-type: inline-size;
  font-size: clamp(7px, 1.6cqw, 13px);
  color: var(--win-fg);
  border-radius: 1.4em;
  overflow: hidden;
  background: var(--desk-bg);
  box-shadow: var(--win-shadow);
}

.mbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4em;
  height: 2.4em;
  padding: 0 1.4em;
  font-size: 1.05em;
  font-weight: 500;
  color: var(--mbar-fg);
  background: var(--mbar-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.mbar b {
  font-weight: 700;
}

.mbar .spacer {
  flex: 1;
}

.mbar .status {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.4em;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  font-size: 0.85em;
}

.mbar .status .ic {
  width: 1.05em;
  height: 1.05em;
}

.note {
  position: absolute;
  left: 5%;
  top: 13%;
  width: 60%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  background: var(--win);
  border: 1px solid var(--win-line);
  border-radius: 1em;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.note .win-bar {
  height: 2.8em;
}

.note-body {
  padding: 1.4em 1.6em;
  font-size: 1.15em;
  line-height: 1.55;
}

.note-body h4 {
  margin: 0 0 0.5em;
  font-size: 1.35em;
  letter-spacing: -0.01em;
}

.note-body p {
  margin: 0 0 0.6em;
  color: var(--win-fg);
}

mark.sel {
  background: rgba(10, 132, 255, 0.38);
  color: inherit;
  border-radius: 0.2em;
  padding: 0.05em 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ctx {
  position: absolute;
  left: 40%;
  top: 30%;
  width: 21%;
  padding: 0.4em;
  border-radius: 0.8em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 1.02em;
}

.ctx div {
  display: flex;
  align-items: center;
  padding: 0.35em 0.8em;
  border-radius: 0.5em;
  white-space: nowrap;
  overflow: hidden;
}

.ctx div.dim {
  color: var(--win-dim);
}

.ctx div.hi {
  background: var(--win-accent);
  color: #fff;
}

.ctx div .chev {
  margin-left: auto;
  width: 0.8em;
  height: 0.8em;
}

.ctx hr {
  border: 0;
  border-top: 1px solid var(--win-border);
  margin: 0.3em 0.5em;
}

.ctx.sub {
  left: 60%;
  top: 32%;
  width: 38%;
}

.panelhud {
  position: absolute;
  left: 3%;
  bottom: 5%;
  width: 56%;
  z-index: 2;
  border-radius: 0.9em;
  overflow: hidden;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.panelhud .head {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--win-line);
}

.panelhud .head .ok {
  width: 1.2em;
  height: 1.2em;
  color: #34c759;
  stroke-width: 2.6;
}

.panelhud .head b {
  font-size: 1.08em;
  white-space: nowrap;
}

.panelhud .head>span {
  flex: 1;
  min-width: 0;
  color: var(--win-muted);
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panelhud .head .btn {
  flex: none;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--win-border-2);
  color: var(--win-fg);
  font-weight: 600;
  font-size: 0.78em;
}

.panelhud .sec-lbl {
  padding: 0.6em 0.9em 0;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--win-muted);
}

.panelhud p {
  margin: 0.15em 0 0.35em;
  padding: 0 0.9em;
  line-height: 1.4;
}

.panelhud p:last-child {
  padding-bottom: 0.75em;
}

/* Keyboard desk: the command palette and a chip's options menu. */
.desk {
  position: relative;
  aspect-ratio: 16 / 12;
  container-type: inline-size;
  font-size: clamp(7.5px, 1.75cqw, 14px);
  color: var(--win-fg);
  border-radius: 1.4em;
  overflow: hidden;
  background: var(--desk-bg);
  box-shadow: var(--win-shadow);
}

.palette {
  position: absolute;
  left: 5%;
  top: 8%;
  width: 60%;
  border-radius: 1em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.palette .search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.1em;
  font-size: 1.25em;
  border-bottom: 1px solid var(--win-line);
}

.palette .search .ic {
  width: 1.05em;
  height: 1.05em;
  color: var(--win-muted);
}

.palette .row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0.3em 0.5em;
  padding: 0.55em 0.8em;
  border-radius: 0.6em;
  font-size: 1.08em;
  font-weight: 500;
}

.palette .row:first-of-type {
  margin-top: 0.5em;
}

.palette .row .ic {
  width: 1.15em;
  height: 1.15em;
  color: var(--win-muted);
}

.palette .row .spacer {
  flex: 1;
}

.palette .row .pin {
  width: 0.95em;
  height: 0.95em;
  color: var(--win-dim);
}

.palette .row kbd {
  font: inherit;
  font-size: 0.85em;
  color: var(--win-muted);
}

.palette .row.on {
  background: rgba(10, 132, 255, 0.3);
}

.palette .row.on .ic {
  color: var(--win-fg);
}

.palette .foot {
  display: flex;
  gap: 1.6em;
  margin-top: 0.3em;
  padding: 0.7em 1.1em 0.8em;
  border-top: 1px solid var(--win-line);
  font: 500 0.85em/1 var(--mono);
  color: var(--win-dim);
}

.menu {
  position: absolute;
  right: 4%;
  bottom: 7%;
  width: 48%;
  z-index: 2;
  padding: 0.4em;
  border-radius: 0.9em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

.menu .head,
.pop .head {
  padding: 0.65em 0.9em 0.4em;
  font: 600 0.78em/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--win-muted);
}

.menu .row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.9em;
  border-radius: 0.55em;
  font-size: 1.05em;
  font-weight: 500;
}

.menu .row span {
  margin-left: auto;
  color: var(--win-muted);
  font-weight: 400;
}

.menu .row .ok {
  margin-left: auto;
  width: 1em;
  height: 1em;
  color: var(--win-fg);
  stroke-width: 2.4;
}

.menu .row .chev {
  width: 0.85em;
  height: 0.85em;
  color: var(--win-dim);
}

.menu .row.on {
  background: rgba(10, 132, 255, 0.3);
}

.menu hr {
  border: 0;
  border-top: 1px solid var(--win-border);
  margin: 0.4em 0.4em;
}

/* Model picker */
.picker {
  position: relative;
}

.pop {
  position: absolute;
  left: 1.2em;
  bottom: 4.6em;
  width: 58%;
  min-width: 18em;
  padding: 0.4em;
  border-radius: 1em;
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.pop .head {
  padding: 0.55em 0.9em 0.35em;
}

.pop .row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.9em;
  border-radius: 0.6em;
  font-size: 1em;
  font-weight: 500;
}

.pop .row .ic {
  width: 1.1em;
  height: 1.1em;
  color: var(--win-fg);
}

.pop .row span {
  margin-left: auto;
  color: var(--win-muted);
  font-weight: 400;
}

.pop .row .ok {
  width: 1em;
  height: 1em;
  color: var(--win-fg);
  margin-left: 0.5em;
  stroke-width: 2.4;
}

.pop .row.hi {
  background: rgba(10, 132, 255, 0.3);
}

.pop hr {
  border: 0;
  border-top: 1px solid var(--win-border);
  margin: 0.4em 0.3em;
}

.pop .row .chev {
  margin-left: auto;
  width: 0.9em;
  height: 0.9em;
  color: var(--win-muted);
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.providers span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
}

/* Privacy */
.alert {
  width: min(100%, 26em);
  margin: 0 auto;
  padding: 1.6em 1.4em 1.3em;
  border-radius: 1.2em;
  text-align: center;
  font-size: clamp(11px, 2cqw, 15px);
  color: var(--win-fg);
  background: var(--win-overlay);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
}

.alert img {
  width: 4.2em;
  height: 4.2em;
  border-radius: 1em;
}

.alert h3 {
  margin: 0.8em 0 0.4em;
  font-size: 1.15em;
}

.alert p {
  margin: 0 0 1.2em;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--win-muted);
}

.alert .btn {
  display: block;
  margin: 0.45em 0 0;
  padding: 0.55em;
  border-radius: 0.55em;
  font-weight: 600;
  background: var(--win-fill);
}

.alert .btn.primary {
  background: var(--win-accent);
  color: #fff;
}

/* Dictionary entry */
.dict .body {
  font-size: 1.02em;
}

.dict .entry-head {
  display: grid;
  grid-template-columns: 1fr 34%;
  gap: 1.1em;
  align-items: start;
}

.dict .body h3 {
  margin: 0 0 0.4em;
  font-size: 1.7em;
  letter-spacing: -0.02em;
}

.dict .body h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin: 0.9em 0 0.3em;
  font-size: 1.15em;
  font-weight: 600;
}

.dict .entry-head h4 {
  margin-top: 0.4em;
}

.dict .body h4 .ipa {
  font-weight: 400;
  color: var(--win-muted);
}

.dict .body ol {
  margin: 0;
  padding-left: 1.4em;
}

.dict .body li {
  margin: 0.2em 0;
}

.dict .body em {
  display: block;
  margin: 0.15em 0 0.35em;
  padding: 0.05em 0.6em;
  border-left: 2px solid var(--win-border-2);
  color: var(--win-muted);
  font-style: italic;
}

.dict .body em.now {
  color: var(--win-fg);
  border-left-color: var(--win-accent);
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.16), transparent 75%);
  border-radius: 0 0.3em 0.3em 0;
}

.dict .spk {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--win-muted);
  line-height: 1;
}

.dict .spk .ic {
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.05em;
}

.dict .spk.playing {
  color: var(--win-accent);
}

.dict .body .syn {
  margin: 0.5em 0 0 0.35em;
  font-size: 0.95em;
  color: var(--win-muted);
}

.dict .body .syn b {
  color: var(--win-fg);
}

.dict .body .lang {
  margin: 1.1em 0 0;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--win-accent);
}

.dict .body .phr {
  margin: 0.2em 0 0;
}

.dict .body .phr b {
  color: var(--win-fg);
}

.illus {
  margin: 0.2em 0 0;
}

.illus .art {
  aspect-ratio: 1;
  border-radius: 0.8em;
  background: #3b7fe6;
  box-shadow: 0 14px 30px -12px rgba(10, 100, 255, 0.6);
}

.illus figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin-top: 0.45em;
  font-size: 0.78em;
  color: var(--win-muted);
}

.illus figcaption .ic {
  width: 0.95em;
  height: 0.95em;
  color: var(--win-accent);
}

/* Library */
.lib .search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 1.1em 1.2em 0.9em;
  padding: 0.55em 0.9em;
  border-radius: 0.8em;
  background: var(--win-inset);
  border: 1px solid var(--win-border);
  box-shadow: 0 0 0 2px rgba(63, 156, 255, 0.45);
  color: var(--win-muted);
  font-size: 1.1em;
}

.lib .search .ic {
  width: 1.1em;
  height: 1.1em;
}

.lib .search .caret {
  height: 1.2em;
  margin: 0;
  background: var(--win-accent);
}

.lib .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  padding: 0 1.2em 1em;
}

.lib .filters span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  font-weight: 600;
  background: var(--win-fill);
}

.lib .filters span.on {
  background: var(--win-accent);
  color: #fff;
}

.lib .filters span .ic {
  width: 1em;
  height: 1em;
  color: var(--win-accent);
}

.lib .filters span.on .ic {
  color: #fff;
}

.lib .filters span sup {
  font-size: 0.65em;
  color: var(--win-muted);
}

.lib .filters span.add {
  padding: 0.4em 0.7em;
  color: var(--win-muted);
}

.lib .grp {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.2em 0.3em;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--win-muted);
}

.lib .grp .chev {
  width: 0.9em;
  height: 0.9em;
  transform: rotate(90deg);
}

.lib .row {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.5em 1.2em;
}

.lib .row:hover {
  background: var(--win-fill);
}

.lib .row .t {
  flex: 1;
  min-width: 0;
}

.lib .row .t b {
  display: block;
  font-size: 1.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib .row .t span {
  display: block;
  font-size: 0.92em;
  color: var(--win-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib .row .ic.star {
  width: 1.1em;
  height: 1.1em;
  color: #ffcc00;
  fill: #ffcc00;
}

.lib .more {
  padding: 0.6em 1.2em 1em;
  font-size: 0.9em;
  color: var(--win-muted);
}

/* Languages */
.langs {
  padding: clamp(48px, 7vw, 96px) 0;
  text-align: center;
}

/* Two rows of language chips drift past in opposite directions and pause
   under the pointer. */
.marquee {
  overflow: hidden;
  margin-top: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee .track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll 70s linear infinite;
}

.marquee.rev .track {
  animation-direction: reverse;
  animation-duration: 84s;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.marquee span,
.lang-cloud li {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Keep a static language list available to assistive technology. Reduced
   motion also shows it visually in place of the moving rows. */
.lang-cloud {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    display: none;
  }

  .lang-cloud {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: auto;
    max-width: 1040px;
    margin: 26px auto 0;
    padding: 0 24px;
    overflow: visible;
    clip: auto;
    list-style: none;
    white-space: normal;
  }
}

/* Pro */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plan {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.plan.pro {
  border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
}

.plan .name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.plan .name .price {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.plan .name .price.grad {
  color: transparent;
}

.plan .tag {
  margin: 0 0 18px;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
}

.plan li .ic {
  width: 20px;
  height: 20px;
  color: #34c759;
  margin-top: 2px;
}

.plan.pro li .ic {
  color: var(--accent);
}

.plan li span {
  color: var(--muted);
}

.plan-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}

.tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tier {
  flex: 1 1 160px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.tier b {
  display: block;
  font-size: 15px;
}

.tier span {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* Details grid */
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.details .card {
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.details .card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.details .card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.details .card h3 .ic {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.details pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.6 var(--mono);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
}

/* Document cards open in a dialog when supported. Their ordinary links also
   work without JavaScript or dialog support. */
.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Reserve room for the floating header when jumping to section headings. */
body.landing main section[id] {
  scroll-margin-top: 92px;
}

/* A section that follows the hero or the languages band keeps its own top
   padding, so its link lands closer to the heading. */
body.landing main .hero+.sec,
body.landing main .langs+.sec {
  scroll-margin-top: -8px;
}

/* Support and Privacy menu links share this section as their scroll target. */
#docs {
  scroll-margin-top: 92px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  scroll-margin-top: 92px;
  transition: border-color 0.3s var(--ease);
}

.doc-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration: none;
}

/* Outline the selected document card until scrolling input or history/hash
   navigation releases the menu lock. */
.doc-card.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--card-shadow);
}

/* Share card identity styles with the header of the opened document. */
.doc-card .badge,
.doc-head .badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.doc-card .badge .ic,
.doc-head .badge .ic {
  width: 20px;
  height: 20px;
}

.doc-card .t,
.doc-head .t {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.doc-card .t b,
.doc-head .t b {
  font-size: 17px;
}

.doc-card .t span,
.doc-head .t span {
  font-size: 14px;
  color: var(--muted);
}

.doc-card .chev {
  flex: none;
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.doc-card:hover .chev {
  transform: translateX(3px);
}

/* Stack document cards when their summaries need more room. */
@media (max-width: 860px) {
  .docs {
    grid-template-columns: 1fr;
  }
}

/* The dialog: a card in the middle of the screen over a blurred page, with
   the document scrolling inside it. */
.doc-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--fg);
  background: var(--card);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: dialogin 0.3s var(--ease);
}

/* Dim and blur the page while retaining the native dialog backdrop. */
.doc-dialog::backdrop {
  background: rgba(10, 10, 14, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Animate entry subtly; the reduced-motion rule disables this animation. */
@keyframes dialogin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Only open dialogs become flex containers; closed ones stay out of layout. */
.doc-dialog {
  display: none;
}

.doc-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* Keep the document identity and close button outside the scrolling content. */
.doc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

/* Provide a distinct circular close target at the edge of the header. */
.doc-close {
  display: grid;
  place-items: center;
  flex: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.doc-close:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

.doc-close .ic {
  width: 18px;
  height: 18px;
}

/* Allow the document body to shrink and scroll under its fixed header. */
.doc-dialog .doc-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Reaching the end of the document must not scroll the page behind the
     dialog. */
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 14px 22px 26px;
}

/* While the dialog is open the page itself does not scroll at all. */
html.dialog-open,
html.dialog-open body {
  overflow: hidden;
}

/* Framed pages supply their own horizontal padding. */
.doc-dialog .doc-scroll.frame {
  padding: 8px 0 0;
}

/* Use a compact heading rhythm inside the dialog. */
.doc-dialog .doc h2 {
  font-size: 20px;
  margin: 26px 0 8px;
}

.doc-dialog .doc h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

.doc-dialog .doc .meta {
  margin: 0;
}

.doc-dialog .doc > :first-child {
  margin-top: 0;
}

/* Reserve initial frame height until its page reports the measured body
   height. */
.doc-frame {
  display: block;
  width: 100%;
  height: 60vh;
  border: 0;
}

/* Keep the loading message and spinner compact while the request is pending. */
.doc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 15px;
}

.doc-loading .ic {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* A failed request leaves a normal link to the standalone document. */
.doc-fallback {
  margin: 16px 0 6px;
  color: var(--muted);
}

/* Closing call to action: the glow fades out behind the footer instead of stopping at a line. */
.outro {
  position: relative;
  text-align: center;
  padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 6vw, 72px);
}

.outro::before {
  content: "";
  position: absolute;
  inset: -18% 0 -8%;
  background: radial-gradient(48% 48% at 50% 52%, var(--glow-a), transparent 74%);
  pointer-events: none;
  z-index: -1;
}

body.landing footer.site {
  border-top: 0;
  margin-top: 0;
  padding-top: 12px;
}

/* Only the app icon at the top of the section, not the wordmark inside its
   button. */
.outro .wrap > img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 18px 40px -10px rgba(10, 100, 255, 0.55);
}

.outro h2 {
  margin-top: 18px;
}

.outro .lead {
  margin: 0 auto 26px;
}

.outro .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .splitview {
    grid-template-columns: 1fr;
    height: auto;
  }

  .splitview .pane-in {
    height: 9em;
  }

  .splitview .pane-out {
    height: 28em;
  }

  .splitview.short .pane-out {
    height: 9em;
  }

  .splitview .mid {
    display: none;
  }

  .pane-in .text {
    font-size: 1.2em;
  }

  .splitview:not(.solo) .cubes {
    display: none;
  }

  .splitview.solo {
    height: 26em;
  }

  .splitview.solo .pane-in {
    height: 100%;
  }

  .cube {
    width: 5.8em;
    padding: 0.75em 0.3em 0.65em;
  }

  .dict .entry-head {
    grid-template-columns: 1fr;
  }

  .dict .illus {
    width: 50%;
  }
}

@media (max-width: 520px) {
  body.landing header.site {
    top: 8px;
    width: calc(100% - 16px);
    padding: 7px 7px 7px 13px;
  }

  body.landing header.site .brand {
    font-size: 15px;
    gap: 8px;
  }

  body.landing header.site .brand img {
    width: 24px;
    height: 24px;
  }

  body.landing header.site nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  body.landing header.site nav a.gh {
    margin-left: 2px;
  }

  body.landing header.site nav a[href="#features"] {
    display: none;
  }

  .whatsnew {
    gap: 14px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .whatsnew .plat em {
    display: none;
  }
}

@media (max-width: 760px) {

  body.landing header.site nav a[href="#privacy-policy"],
  body.landing header.site nav a[href="#pro"] {
    display: none;
  }
}

@media (max-width: 400px) {
  /* Keep the organization status compact on narrow phone screens. */
  .whatsnew.org-status {
    gap: 12px;
    padding-inline: 12px;
  }

  .whatsnew.org-status .plat.fact:nth-child(2) {
    display: none;
  }

  body.landing header.site nav a {
    padding: 6px 7px;
  }

  body.landing header.site nav a.gh .ic {
    display: none;
  }
}

/* The link back to the Min Tools home at the start of a product page's menu. */
body.landing header.site nav a.home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  font-weight: 500;
}

body.landing header.site nav a.home::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

@media (max-width: 760px) {
  body.landing header.site nav a.home {
    display: none;
  }
}

/* Keyboard reference: one card per key. */
.keymap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.keymap .key {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

/* Draw shortcut keys as raised caps that stay on one line. */
.keymap .key kbd {
  flex: none;
  font: 600 14px var(--mono);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
  white-space: nowrap;
}

.keymap .key b {
  display: block;
  font-size: 15px;
}

.keymap .key span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* Compact ledger rows for privacy summaries and the home page repository
   list. */
.ledger {
  width: min(100%, 31em);
  margin: 0 auto;
  font-size: clamp(11px, 2cqw, 15px);
  color: var(--win-fg);
  background: var(--win);
  border: 1px solid var(--win-line);
  border-radius: 1.1em;
  box-shadow: var(--win-shadow);
  overflow: hidden;
}

/* Separate the ledger title from its status rows. */
.ledger .head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.1em;
  font-weight: 600;
  background: var(--win-2);
  border-bottom: 1px solid var(--win-line);
}

.ledger .head .ic {
  width: 1.15em;
  height: 1.15em;
  color: var(--win-accent);
}

/* Align each item icon, description, and trailing status tag. */
.ledger .row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1.1em;
  border-bottom: 1px solid var(--win-line);
}

.ledger .row:last-child {
  border-bottom: 0;
}

.ledger .row>.ic {
  width: 1.3em;
  height: 1.3em;
  color: var(--win-muted);
}

/* Keep explanatory text visually secondary to each ledger item name. */
.ledger .row .t {
  min-width: 0;
}

.ledger .row b {
  display: block;
  font-weight: 600;
}

.ledger .row span {
  display: block;
  font-size: 0.85em;
  color: var(--win-muted);
}

/* Keep status tags compact and aligned at the row edge. */
.ledger .tag {
  flex: none;
  margin-left: auto;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  white-space: nowrap;
}

/* Use shared semantic colors for allowed, excluded, and conditional entries. */
.ledger .tag.ok {
  color: var(--win-ok);
  background: var(--win-ok-bg);
}

.ledger .tag.no {
  color: var(--win-bad);
  background: var(--win-bad-bg);
}

.ledger .tag.ask {
  color: var(--win-warn);
  background: var(--win-warn-bg);
}

@media (prefers-reduced-motion: reduce) {

  .stage .win,
  .sat,
  .spin,
  .caret,
  .panel,
  .hero::before,
  .filechip,
  .import .bar i,
  .doc-dialog {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta,
  .details .card,
  .bcard {
    transition: none;
  }
}
