:root {
  color-scheme: dark;
  --ground: #15161b;
  --field: #1a1b21;
  --surface: #1f2128;
  --surface-2: #292c36;
  --deep: #0f1014;
  --ink: #eceef4;
  --soft: #bfc3d0;
  --accent: #a193ff;
  --accent-hover: #b4a9ff;
  --accent-ink: #17132f;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace; /* taste-skill-ignore: file paths in code */
  --m: clamp(20px, 3vw, 44px);
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(64px, 7.5vw, 112px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html {
  background: var(--ground);
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: visually hidden text */
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--m);
  top: -80px;
  z-index: 30;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: var(--m);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* Type */

h1, h2, h3 { font-weight: 300; }

h1 {
  font-size: clamp(40px, 7.4vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34em;
}

.body { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 40em; }
.small { font-size: 16px; line-height: 1.5; color: var(--soft); }
.note { margin-top: 28px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--soft); }

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 18px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn.quiet { background: var(--surface-2); color: var(--ink); }
.btn.quiet:hover { background: #343845; }

.link {
  color: var(--ink);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.link:hover { color: var(--accent); }

.textbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.textbtn:hover { color: var(--accent); }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: var(--m);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-links a:not(.btn) {
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 16px; }

.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 16px/1 var(--font);
  cursor: pointer;
}

@media (max-width: 859px) {
  :root { --nav-h: 64px; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--m) 28px;
    background: var(--ground);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 22px; color: var(--ink); }
  .nav-cta { margin-top: 12px; min-height: 56px; font-size: 18px; }
}

/* Hero */

.hero { padding-block: clamp(24px, 4vw, 64px) var(--sec); }
.hero h1 { margin-bottom: clamp(32px, 4.4vw, 72px); }
.hero-grid { align-items: start; row-gap: 40px; }
.hero-copy { grid-column: 1 / 6; display: grid; gap: 28px; align-content: start; }
.hero-copy .lead { max-width: 24em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero-shot { grid-column: 6 / 13; }
.hero-shot img { width: 100%; }
.hero-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 12px; font-size: 16px; }

@media (max-width: 859px) {
  .hero-shot { overflow: hidden; }
  .hero-shot img { width: 138%; max-width: none; }
  h1 { font-size: 10.4vw; }
  .br-wide { display: none; }
  .hero-copy, .hero-shot { grid-column: 1 / -1; }
  .hero-copy { gap: 24px; }
  .btn { width: 100%; }
  .actions { gap: 20px; }
  .nav-cta { width: 100%; }
}

/* Sections */

.section { padding-block: var(--sec); }
.field { background: var(--field); }

.sec-head { align-items: end; row-gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head > .lead, .sec-head > .two-p { grid-column: 8 / 13; }
.two-p { display: grid; gap: 20px; }

@media (max-width: 859px) {
  .sec-head > h2, .sec-head > .lead, .sec-head > .two-p { grid-column: 1 / -1; }
}

/* Cleanup demo */

.demo { row-gap: 32px; align-items: start; }
.picker { grid-column: 1 / 5; border: 0; min-width: 0; display: grid; gap: 4px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-body {
  display: block;
  padding: 14px 18px 14px 20px;
  transition: background-color 0.15s ease;
}
.pick-name { display: block; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; color: var(--soft); transition: color 0.15s ease; }
.pick-hint { display: block; margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--soft); }
.pick:hover .pick-name { color: var(--ink); }
.pick input:checked + .pick-body { background: var(--surface-2); }
.pick input:checked + .pick-body .pick-name { color: var(--ink); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 2px; }

.stage { grid-column: 5 / 13; }

@media (max-width: 859px) {
  .picker, .stage { grid-column: 1 / -1; }
}

/* Privacy */

.split { align-items: start; row-gap: 48px; }
.privacy-copy { grid-column: 1 / 6; display: grid; gap: 28px; }
.privacy-ui { grid-column: 7 / 13; display: grid; gap: 20px; align-self: center; }
.facts { display: grid; gap: 28px; margin-top: 12px; }
.facts dt { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.facts dd { margin-top: 6px; font-size: 18px; line-height: 1.5; color: var(--soft); max-width: 32em; }

@media (max-width: 859px) {
  .privacy-copy, .privacy-ui { grid-column: 1 / -1; }
}

/* Workflow */

.workflow-ui { grid-column: 1 / 7; display: grid; gap: 28px; }
.workflow-copy { grid-column: 8 / 13; display: grid; gap: 28px; align-content: start; }
.modes { display: grid; gap: 22px; }
.modes li { display: grid; gap: 4px; }
.modes strong { font-size: clamp(19px, 1.6vw, 24px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.modes span { color: var(--soft); font-size: 18px; line-height: 1.5; }
.key {
  display: inline-block;
  padding: 0 0.4em;
  background: var(--surface-2);
  font: 500 0.8em/1.5 var(--font);
  color: var(--ink);
}

@media (max-width: 859px) {
  .workflow-ui, .workflow-copy { grid-column: 1 / -1; }
  .workflow-copy { order: -1; }
}

/* Vocabulary */

.vocab-grid { align-items: start; row-gap: 28px; }
.vocab { grid-column: 1 / 8; }
.history { grid-column: 8 / 13; }

@media (max-width: 859px) {
  .vocab, .history { grid-column: 1 / -1; }
}

/* How it works */

.how { position: relative; padding-block: var(--sec) 0; }
.how-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: clamp(600px, 72svh, 780px);
}
.how-text {
  padding: clamp(40px, 5vw, 80px) var(--gap) 0 var(--m);
  display: grid;
  align-content: start;
  gap: 28px;
}
.how-text h2 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.015em; color: var(--soft); }
.how-text h3 { font-size: clamp(40px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; max-width: 9em; transition: opacity 0.2s ease; }
.how-frag {
  display: grid;
  place-items: center;
  padding: clamp(32px, 4vw, 56px) var(--m) clamp(32px, 4vw, 56px) var(--gap);
  background: var(--field);
}
.how-slider {
  grid-column: 1 / -1;
  padding: 0 var(--m) clamp(32px, 4vw, 56px);
  background: transparent;
}
.how-card { width: min(100%, 560px); display: grid; font-size: 17px; }
.how-view { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.how-view.on { opacity: 1; visibility: visible; }

.range { position: relative; height: 32px; --v: 0; }
.range-track { position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: var(--surface-2); }
.range-fill { position: absolute; left: 0; top: 0; height: 8px; width: calc(16px + (100% - 32px) * var(--v)); background: var(--ink); }
.range input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.range input::-webkit-slider-runnable-track { height: 32px; background: transparent; }
.range input::-moz-range-track { height: 32px; background: transparent; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border: 0; border-radius: 0; background: var(--accent); }
.range input::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 0; background: var(--accent); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }
.range input:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }

.range-names { display: flex; justify-content: space-between; margin-top: 12px; }
.range-names button {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--soft);
  font: 400 16px/1 var(--font);
  cursor: pointer;
  transition: color 0.15s ease;
}
.range-names button:hover { color: var(--ink); }
.range-names button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }

@media (min-width: 860px) {
  .how::before, .how::after { content: ""; position: absolute; top: var(--sec); bottom: 0; width: 50%; }
  .how::before { left: 0; background: var(--ground); }
  .how::after { right: 0; background: var(--field); }
  .how-frag { background: transparent; }
}

@media (max-width: 859px) {
  .how-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .how-frag { order: 1; padding: 40px var(--m); }
  .how-slider { order: 2; padding-top: 0; padding-bottom: 28px; background: var(--field); }
  .how-text { order: 3; padding: 40px var(--m) 56px; }
  .how-text h3 { font-size: 9vw; }
}

/* FAQ */

.faq-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.faq-row:last-child { margin-bottom: 0; }
.faq-row h2, .faq-row h3 { grid-column: 1 / 7; }
.faq-row h2 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; color: var(--soft); }
.faq-row h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; }
.faq-row p { grid-column: 8 / 13; font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 40em; }
.faq-row p a { text-underline-offset: 4px; }
.faq-row p a:hover { color: var(--accent); }
code { font: 400 0.88em/1.4 var(--mono); padding: 0.1em 0.35em; background: var(--surface-2); overflow-wrap: anywhere; }

@media (max-width: 859px) {
  .faq-row h2, .faq-row h3, .faq-row p { grid-column: 1 / -1; }
  .faq-row h3 { font-size: 24px; margin-bottom: 12px; }
  .faq-row { margin-bottom: 56px; }
}

/* Close and footer */

.close { background: var(--deep); padding-block: clamp(96px, 12vw, 180px) 0; text-align: center; }
.close h2 { font-size: clamp(56px, 10.4vw, 156px); line-height: 1; letter-spacing: -0.04em; }
.close-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: clamp(40px, 5vw, 72px); }
.or { font-size: 18px; color: var(--soft); }
.close .small { margin-top: 24px; }

.foot { background: var(--deep); padding-block: clamp(72px, 10vw, 150px) 0; overflow: hidden; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 28px; }
.foot-links a { font-size: 16px; color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.wordmark {
  margin: 0 0 clamp(20px, 3vw, 40px);
  font-size: 26vw;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--ink);
  transform-origin: left bottom;
}
#wordmark-text {
  display: inline-block;
}

@media (max-width: 859px) {
  .close-actions { flex-direction: column; gap: 14px; }
  .close-actions .btn { width: 100%; }
  .close h2 { font-size: 18vw; }
}

/* Keep all content readable before its entrance runs. */

.reveal-on [data-r] {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-on [data-r].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-r] { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .wordmark { animation: wm linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .hero-shot img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes wm { from { transform: scale(0.94); } to { transform: scale(1); } }
@keyframes drift { to { transform: translateY(-40px); } }

/* ---------- Product interface fragments (data-ui) ---------- */

[data-ui] {
  --u-bg: #15161b;
  --u-surface: #1f2128;
  --u-surface-2: #292c36;
  --u-line: rgba(255, 255, 255, 0.08);
  --u-line-strong: rgba(255, 255, 255, 0.16);
  --u-text: #eceef4;
  --u-muted: #a6abb9;
  --u-accent: #a193ff;
  --u-accent-ink: #17132f;
  --u-accent-soft: rgba(161, 147, 255, 0.16);
  --u-ok: #5fd08a;
  --u-warn: #f0b95a;
  --u-danger: #ff7a85;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--u-text);
  text-align: left;
}

[data-ui] p { margin: 0; }

[data-ui].frag { font-size: clamp(14px, 1.15vw, 16px); }
[data-ui].frag > .u-page { margin: 1.6em 0 0.6em; }
[data-ui].frag > .u-page:first-child { margin-top: 0; }

[data-ui] .u-page { font-size: 0.93em; font-weight: 600; color: var(--u-muted); }

[data-ui] .u-group { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: 0.57em; }
[data-ui] .u-pad { padding: 1em 1.15em 1.15em; }
[data-ui] .u-row { display: flex; align-items: center; gap: 1em; min-height: 4em; padding: 0.72em 1.15em; }
[data-ui] .u-row + .u-row { border-top: 1px solid var(--u-line); }
[data-ui] .u-downloads { border-top: 1px solid var(--u-line); }
[data-ui] .u-text { flex: 1; min-width: 0; }
[data-ui] .u-t { font-weight: 500; }
[data-ui] .u-s { margin-top: 0.15em; font-size: 0.86em; color: var(--u-muted); }
[data-ui] .u-help { margin: 0 0 0.8em; font-size: 0.86em; color: var(--u-muted); }
[data-ui] .u-label { flex: none; font-size: 0.86em; color: var(--u-muted); }
[data-ui] .u-body { font-size: 1em; line-height: 1.5; }
[data-ui] .u-dim { color: var(--u-muted); }
[data-ui] .u-tag { display: block; margin-bottom: 0.2em; font-size: 0.8em; font-weight: 600; color: var(--u-muted); }
[data-ui] .u-tag.accent { margin-top: 0.8em; color: var(--u-accent); }

[data-ui] .u-state { flex: none; width: 0.72em; height: 0.72em; border-radius: 50%; background: var(--u-muted); }
[data-ui] .u-state[data-state="ready"] { background: var(--u-ok); }
[data-ui] .u-state[data-state="missing"] { background: var(--u-warn); }
[data-ui] .u-state[data-state="loading"] {
  width: 1em;
  height: 1em;
  margin: -0.14em;
  background: none;
  border: 2px solid var(--u-line-strong);
  border-top-color: var(--u-accent);
  animation: spin 0.8s linear infinite;
}

[data-ui] .u-btn {
  flex: none;
  display: inline-block;
  padding: 0.43em 1em;
  border: 1px solid var(--u-line-strong);
  border-radius: 0.43em;
  background: var(--u-surface-2);
  color: var(--u-text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
[data-ui] button.u-btn:hover { border-color: var(--u-muted); }
[data-ui] button.u-btn:active { transform: scale(0.98); }
[data-ui] .u-btn.primary { background: var(--u-accent); border-color: var(--u-accent); color: var(--u-accent-ink); font-weight: 600; }
[data-ui] .u-btn.small { padding: 0.2em 0.75em; font-size: 0.86em; }

[data-ui] .u-select {
  flex: none;
  min-width: 14em;
  padding: 0.43em 2.2em 0.43em 0.72em;
  border: 1px solid var(--u-line-strong);
  border-radius: 0.43em;
  background: var(--u-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239a9fae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.65em center / 0.86em;
}

/* Keycaps, as in the app's Shortcut panel */
[data-ui] .u-keys { display: flex; align-items: center; gap: 0.43em; }
[data-ui] .u-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 3.3em;
  height: 3.14em;
  padding: 0 1em;
  border: 1px solid var(--u-line-strong);
  border-radius: 0.72em;
  background: #30333f;
  box-shadow: 0 0.22em 0 #0f1014, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: 600 1em/1 var(--font);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
[data-ui] .u-kbd.down { transform: translateY(0.22em); box-shadow: 0 0 0 #0f1014, inset 0 1px 0 rgba(255, 255, 255, 0.08); }
[data-ui] .u-hotkey { padding: 1.3em 1.15em 1em; }
[data-ui] .u-hotkey-main { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1em; }
[data-ui] .u-hotkey .u-help { margin: 0; }

/* Download progress */
[data-ui] .u-progress { margin: 0; padding: 0 1.15em 1em; list-style: none; display: grid; gap: 0.75em; }
[data-ui] .u-meta { display: flex; justify-content: space-between; margin-bottom: 0.3em; font-size: 0.86em; color: var(--u-muted); }
[data-ui] .u-name { color: var(--u-text); }
[data-ui] .u-track { height: 4px; overflow: hidden; border-radius: 2px; background: var(--u-surface-2); }
[data-ui] .u-fill { height: 100%; background: var(--u-accent); transform-origin: left; transform: scaleX(0); }

/* Chips, replacements */
[data-ui] .u-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.43em;
  margin-bottom: 0.8em;
  padding: 0.43em;
  border: 1px solid var(--u-line-strong);
  border-radius: 0.43em;
  background: var(--u-surface-2);
}
[data-ui] .u-chips:focus-within { border-color: var(--u-accent); }
[data-ui] .u-chips input { flex: 1; min-width: 11em; padding: 0.2em 0.3em; border: 0; background: none; outline: none; color: inherit; font: inherit; }
[data-ui] .u-chip { display: inline-flex; align-items: center; gap: 0.15em; padding: 0.15em 0.3em 0.15em 0.72em; border-radius: 0.86em; background: var(--u-accent-soft); font-size: 0.93em; }
[data-ui] .u-chip.sugg { padding-right: 0.72em; border: 0; color: inherit; font: inherit; font-size: 0.93em; cursor: pointer; }
[data-ui] .u-chip.sugg:hover { background: rgba(255, 255, 255, 0.1); }
[data-ui] .u-x, [data-ui] .u-icon {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--u-muted);
  cursor: pointer;
}
[data-ui] .u-x:hover, [data-ui] .u-icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--u-text); }
[data-ui] .u-x svg, [data-ui] .u-icon svg { width: 0.86em; height: 0.86em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
[data-ui] .u-sugg { border: 0; padding: 0; background: none; margin: 0.7em 0 0; }
[data-ui] textarea {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
  padding: 0.5em 0.72em;
  border: 1px solid var(--u-line-strong);
  border-radius: 0.43em;
  background: var(--u-surface-2);
  color: var(--u-text);
  font: inherit;
  resize: vertical;
}
[data-ui] #find-panel { margin-top: 0.9em; }
[data-ui] .u-replacement { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.6em; }
[data-ui] .u-replacement input { flex: 1; min-width: 0; padding: 0.43em 0.72em; border: 1px solid var(--u-line-strong); border-radius: 0.43em; background: var(--u-surface-2); color: var(--u-text); font: inherit; }
[data-ui] .u-arrow { color: var(--u-muted); }
[data-ui] input::placeholder { color: var(--u-muted); }

/* History */
[data-ui] .u-entries { margin: 0; padding: 0; list-style: none; border: 1px solid var(--u-line); border-radius: 0.57em; background: var(--u-surface); }
[data-ui] .u-entry { display: grid; grid-template-columns: 1fr auto; gap: 0.3em 0.9em; padding: 0.9em 1em; }
[data-ui] .u-entry + .u-entry { border-top: 1px solid var(--u-line); }
[data-ui] .u-et { font-size: 1.07em; line-height: 1.45; overflow-wrap: anywhere; }
[data-ui] .u-entry .u-meta { grid-column: 1; display: flex; justify-content: flex-start; align-items: center; gap: 0.6em; margin: 0; }
[data-ui] .u-badge { padding: 0 0.5em; border-radius: 0.3em; background: var(--u-accent-soft); color: var(--u-accent); font-size: 0.86em; font-weight: 600; line-height: 1.45; }
[data-ui] .u-actions { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: flex-start; gap: 0.3em; }
[data-ui] .u-icon { width: 2em; height: 2em; border-radius: 0.43em; }
[data-ui] .u-icon[aria-expanded="true"] svg { transform: rotate(180deg); }
[data-ui] .u-detail { grid-column: 1 / -1; margin-top: 0.5em; padding-top: 0.7em; border-top: 1px dashed var(--u-line-strong); }
[data-ui] .u-detail p { font-size: 0.93em; color: var(--u-muted); overflow-wrap: anywhere; }

[data-ui] .u-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--u-text); animation: blink 1.1s steps(2, start) infinite; }

/* Cleanup stage */
[data-ui].stage {
  padding: clamp(20px, 2.6vw, 40px);
  border-radius: 0.8em;
  background: var(--surface);
  font-size: clamp(16px, 1.3vw, 19px);
}
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 1.6em; }
.stage-text { display: grid; align-content: start; }
.stage .u-tag { font-size: 0.86em; }
.stage-raw, .stage-out { font-size: 1.45em; line-height: 1.38; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stage-raw { min-height: 4.15em; color: var(--soft); }
.stage-out { min-height: 4.15em; color: var(--ink); white-space: pre-line; }
.stage-raw .x { text-decoration: line-through; text-decoration-color: transparent; transition: color 0.3s ease, text-decoration-color 0.3s ease; }
.stage-raw .c { transition: color 0.3s ease; }
.stage.polished .stage-raw .x { color: #8e93a3; text-decoration-color: var(--u-danger); }
.stage.polished .stage-raw .c { color: var(--u-accent); }
.stage-raw .w { display: inline; }
.stage-out.fresh { animation: rise 0.45s var(--ease) both; }

/* Pill, as in the app's overlay */
.pill {
  position: relative;
  display: block;
  flex: none;
  width: 18.67em;
  height: 3.33em;
  border-radius: 1.67em;
  background: rgba(14, 15, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16); /* taste-skill-ignore: the app overlay pill */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); /* taste-skill-ignore: the app overlay pill */
  font: 500 12px/1 var(--font);
  font-size: var(--pill, 15px);
  color: #f2f3f7;
  text-align: left;
}
.pill .view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.67em;
  padding: 0 1.17em;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.pill[data-state="listening"] .listening,
.pill[data-state="busy"] .busy,
.pill[data-state="done"] .done,
.pill[data-state="error"] .error,
.pill[data-state="cancelled"] .cancelled { opacity: 1; }
.pill .rec-dot { flex: none; width: 0.67em; height: 0.67em; border-radius: 50%; background: #ff4d5e; animation: pulse 1.4s ease-in-out infinite; }
.pill .bars { display: flex; align-items: center; gap: 0.17em; height: 1.83em; }
.pill .bars span { width: 0.25em; height: 1.83em; border-radius: 0.17em; background: #e9ebf3; transform: scaleY(0.12); }
.pill .time { min-width: 2.17em; font-variant-numeric: tabular-nums; }
.pill .hint { font-size: 0.83em; color: #a2a6b4; }
.pill .dots { display: flex; gap: 0.33em; }
.pill .dots i { width: 0.42em; height: 0.42em; border-radius: 50%; background: #b9a9ff; animation: wave 1.2s ease-in-out infinite; }
.pill .dots i:nth-child(2) { animation-delay: 0.15s; }
.pill .dots i:nth-child(3) { animation-delay: 0.3s; }
.pill .icon { flex: none; width: 1.33em; height: 1.33em; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill .done .icon { stroke: #5fd08a; }
.pill .error .icon { stroke: #ff7a85; }
.pill .cancelled .icon { stroke: #a2a6b4; }
.pill[data-state="done"] .done .icon { animation: pop 0.25s ease-out; }
.pill .message { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Overlay board */
[data-ui].board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2em 1.6em;
  font-size: 16px;
}
.board-item { display: grid; gap: 0.8em; align-content: start; justify-items: start; }
.board-item .pill { --pill: 14px; }
.board .u-s { font-size: 1em; line-height: 1.45; color: var(--u-muted); }
.board .u-t { color: var(--u-text); }

/* Hero keys sized larger than app default */
.hero-keys .pill { --pill: 16px; }

@media (max-width: 859px) {
  [data-ui].board { grid-template-columns: 1fr; }
  .stage-raw, .stage-out { font-size: 1.3em; }
  .stage .pill { --pill: 13px; }
  .hero-keys .pill { --pill: 14px; }
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
@keyframes wave { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .pill .rec-dot, .pill .dots i, .pill .icon, .u-caret, .stage-out.fresh { animation: none !important; }
  .pill .dots i { opacity: 0.8; }
  [data-ui] .u-state[data-state="loading"] { animation-duration: 2.4s; }
}

/* ---------- Download page ---------- */

.nav-link { font-size: 16px; color: var(--soft); text-decoration: none; transition: color 0.15s ease; }
.nav-link:hover { color: var(--ink); }

.dl { padding-block: clamp(24px, 4vw, 64px) var(--sec); }
.dl h1 { margin-bottom: clamp(24px, 3vw, 40px); }
.platforms { display: grid; gap: 12px; margin-block: clamp(40px, 5vw, 72px) 24px; }
.platforms li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px clamp(20px, 2.4vw, 32px);
  background: var(--field);
}
.platform-name { font-size: clamp(24px, 2.6vw, 36px); font-weight: 300; letter-spacing: -0.02em; }
.platforms .btn { min-width: 280px; }
.btn:disabled { background: var(--surface-2); color: var(--soft); cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn[aria-disabled="true"] { cursor: progress; }
.dl-status { min-height: 1.5em; margin-bottom: 12px; font-size: 18px; }
.dl-status.error { color: #ff7a85; }

@media (max-width: 859px) {
  .platforms li .btn { width: 100%; min-width: 0; }
}
