﻿:root {
  color-scheme: light;
  --page: oklch(0.965 0.014 92);
  --paper: oklch(0.985 0.008 94);
  --paper-2: oklch(0.942 0.018 96);
  --ink: oklch(0.205 0.038 239);
  --ink-2: oklch(0.285 0.034 235);
  --muted: oklch(0.49 0.025 238);
  --quiet: oklch(0.68 0.022 236);
  --line: oklch(0.842 0.026 92);
  --line-strong: oklch(0.67 0.036 91);
  --signal: oklch(0.79 0.185 125);
  --cyan: oklch(0.72 0.13 195);
  --coral: oklch(0.66 0.18 30);
  --violet: oklch(0.58 0.14 292);
  --warn: oklch(0.74 0.16 76);
  --danger: oklch(0.55 0.17 25);
  --shadow: 0 22px 56px oklch(0.205 0.038 239 / 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, oklch(0.205 0.038 239 / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.205 0.038 239 / 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--page), var(--paper-2) 72vh, var(--page));
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
textarea,
input[type="range"] {
  accent-color: var(--signal);
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

:focus-visible {
  outline: 3px solid oklch(0.72 0.13 195 / 0.42);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2 + 16px));
  border-bottom: 3px solid var(--signal);
  background: var(--ink);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 950;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid oklch(0.985 0.008 94 / 0.28);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 31%, oklch(0.79 0.185 125 / 0.35) 31% 37%, transparent 37% 63%, oklch(0.72 0.13 195 / 0.35) 63% 69%, transparent 69%),
    oklch(0.285 0.034 235);
  color: var(--signal);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: oklch(0.965 0.014 92 / 0.78);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 820;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  border-color: oklch(0.79 0.185 125 / 0.5);
  background: oklch(0.79 0.185 125 / 0.13);
  color: var(--paper);
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 52px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

.hero {
  padding: 38px 0 42px;
}

.hero-copy {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(420px, 0.92fr);
  column-gap: 58px;
  row-gap: 12px;
  align-items: start;
}
.hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.hero-copy h1 {
  grid-column: 1;
  grid-row: 2;
}

.hero-copy .lede {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding-top: 6px;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 76ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.68;
}

.support-notice,
.startup-error {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid oklch(0.66 0.18 30 / 0.42);
  border-radius: 6px;
  background: oklch(0.97 0.035 55);
  color: var(--ink-2);
}

.startup-error {
  width: min(940px, calc(100% - 32px));
  margin: 18px auto;
}

.bilingual-strip {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--signal);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.bilingual-strip strong {
  color: var(--ink);
  font-size: 19px;
}

.tool-shell {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: clip;
}

.tool-shell-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.tool-shell-head h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 27px;
  line-height: 1.16;
}

.tool-shell-head > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid oklch(0.79 0.185 125 / 0.55);
  border-radius: 4px;
  background: oklch(0.79 0.185 125 / 0.12);
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
}

.tool-panel {
  padding: 20px;
}

.primary-panel {
  border-right: 2px solid var(--ink);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field select,
.field input[type="range"] {
  min-height: 42px;
  min-width: 210px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
}

.compact-field select {
  min-width: 100%;
}

.toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 820;
}

.tool-button,
.editor-actions button,
.side-actions button,
.convert-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.tool-button:hover,
.editor-actions button:hover,
.side-actions button:hover,
.convert-btn:hover {
  transform: translateY(-1px);
}

.convert-btn {
  margin-left: auto;
  white-space: nowrap;
}

.tool-button.primary,
.editor-actions button:first-child {
  background: var(--signal);
  color: var(--ink);
}

.tool-button.danger {
  background: var(--danger);
  color: var(--paper);
}

.tool-button span:first-child {
  font-size: 12px;
  opacity: 0.78;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--quiet);
}

.dot.live {
  background: var(--coral);
  box-shadow: 0 0 0 8px oklch(0.66 0.18 30 / 0.16);
}

.divider {
  width: 1px;
  height: 15px;
  background: var(--line-strong);
}

textarea {
  width: 100%;
  min-height: 360px;
  margin-top: 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: oklch(0.995 0.006 94);
  color: var(--ink);
  padding: 16px;
  line-height: 1.65;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.editor-actions button:nth-child(2),
.side-actions button:nth-child(2) {
  background: var(--paper-2);
  color: var(--ink);
}

.export-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

[data-tool-mode='transcribe'] .record-control,
[data-tool-mode='transcribe'] .speak-control,
[data-tool-mode='record-transcribe'] .speak-control,
[data-tool-mode='record'] .language-field,
[data-tool-mode='record'] .transcribe-control,
[data-tool-mode='record'] .speak-control,
[data-tool-mode='record'] #noteText,
[data-tool-mode='record'] .editor-actions,
[data-tool-mode='speak'] .transcribe-control,
[data-tool-mode='speak'] .record-control,
[data-tool-mode='speak'] .live-control,
.convert-control {
  display: none;
}

[data-tool-mode='transcribe-translate'] .convert-control {
  display: grid;
}

[data-tool-mode='transcribe-translate'] .record-control,
[data-tool-mode='transcribe-translate'] .speak-control {
  display: none;
}

.output-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  overflow: hidden;
}

.output-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.output-panel-status {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: right;
}

.output-panel-body {
  padding: 12px;
  min-height: 80px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

[data-tool-mode='record'] .primary-panel {
  min-height: 0;
}

.side-panel {
  display: grid;
  gap: 14px;
  background: var(--paper-2);
}

.mini-section {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mini-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.mini-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.mic-button {
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.mic-button.recording {
  border-color: var(--coral);
  background: oklch(0.955 0.035 28);
}

.mic-button.paused {
  border-color: var(--warn);
  background: oklch(0.97 0.04 84);
}

.mic-core {
  width: 38px;
  height: 54px;
  border-radius: 20px;
  background: var(--cyan);
  box-shadow: inset 0 -12px 0 oklch(0.205 0.038 239 / 0.18);
}

.wave {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: var(--paper);
}

.wave span {
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.76;
}

.wave.active span {
  animation: wave 900ms ease-in-out infinite;
}

.wave span:nth-child(2) {
  animation-delay: 90ms;
}

.wave span:nth-child(3) {
  animation-delay: 180ms;
}

.wave span:nth-child(4) {
  animation-delay: 270ms;
}

.wave span:nth-child(5) {
  animation-delay: 360ms;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }

  50% {
    transform: scaleY(1.6);
  }
}

.download-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--signal);
  text-decoration: none;
  font-weight: 900;
}

.download-link.disabled {
  opacity: 0.5;
  pointer-events: none;
  color: var(--muted);
  background: var(--paper);
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.command-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.soft {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}

.app-only-controls[hidden],
[hidden] {
  display: none !important;
}

.content-band {
  counter-reset: content-block;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.content-band article {
  counter-increment: content-block;
  position: relative;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: oklch(0.985 0.008 94 / 0.82);
}

.content-band article::before {
  content: counter(content-block, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.content-band h2,
.faq-section h2,
.related h2 {
  color: var(--ink);
  line-height: 1.2;
}

.content-band p {
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--ink-2);
}

.answer-card,
.article-guide,
.howto-card,
.references-card {
  margin-top: 24px;
  padding: 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: oklch(0.985 0.008 94 / 0.76);
}

.answer-card {
  background: var(--ink);
  color: var(--paper);
}

.answer-card p {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.68;
}

.article-guide p,
.howto-card li,
.references-card li {
  color: var(--ink-2);
  line-height: 1.68;
}

.article-guide {
  display: grid;
  gap: 0;
}

.article-guide article {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  max-width: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.article-guide article:last-child {
  border-bottom: 0;
}

.article-guide h2,
.howto-card h2,
.references-card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.2;
}

.howto-card ol,
.references-card ul {
  margin: 0;
  padding-left: 22px;
}

.references-card a {
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-strip span {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.faq-section {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.faq-section details {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  padding: 14px 16px;
}

.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-section p {
  margin: 10px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.related {
  margin-top: 28px;
}

.related div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.related a:hover {
  background: var(--signal);
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 950;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--ink);
}
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topnav {
    justify-content: start;
    width: 100%;
  }

  .hero {
    padding: 32px 0 34px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    max-width: 780px;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lede {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy .lede {
    padding-top: 0;
  }

  h1 {
    max-width: 760px;
    font-size: 52px;
    margin-bottom: 8px;
  }

  .lede {
    max-width: 72ch;
  }

  .tool-grid,
  .content-band {
    grid-template-columns: 1fr;
  }

  .primary-panel {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .article-guide article,
  .references-card {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, var(--max));
    margin-top: 16px;
  }

  .topnav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .topnav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    padding: 24px 0 28px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .lede {
    font-size: 17px;
    line-height: 1.62;
  }

  .tool-shell-head {
    align-items: start;
    flex-direction: column;
    padding: 16px;
  }

  .tool-panel {
    padding: 14px;
  }

  .field,
  .field select {
    width: 100%;
    min-width: 100%;
  }

  .tool-button,
  .editor-actions button {
    flex: 1 1 140px;
  }

  .divider {
    display: none;
  }

  textarea {
    min-height: 300px;
  }

  .side-actions {
    grid-template-columns: 1fr;
  }

  .answer-card,
  .article-guide,
  .howto-card,
  .references-card {
    padding: 18px 0;
  }
}
.template-switcher {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid oklch(0.985 0.008 94 / 0.28);
  border-radius: 999px;
  background: oklch(0.205 0.038 239 / 0.94);
  box-shadow: 0 12px 34px oklch(0.205 0.038 239 / 0.18);
  color: var(--paper);
}

.template-switcher span {
  padding: 0 7px;
  color: oklch(0.965 0.014 92 / 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.template-switcher button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: oklch(0.965 0.014 92 / 0.76);
  font-size: 12px;
  font-weight: 900;
}

.template-switcher button:hover,
.template-switcher button.active {
  border-color: oklch(0.79 0.185 125 / 0.5);
  background: var(--signal);
  color: var(--ink);
}

body[data-template='rally'] {
  --page: oklch(0.17 0.026 245);
  --paper: oklch(0.94 0.018 92);
  --paper-2: oklch(0.88 0.026 92);
  --ink: oklch(0.17 0.026 245);
  --ink-2: oklch(0.23 0.032 245);
  --muted: oklch(0.47 0.026 245);
  --line: oklch(0.78 0.036 92);
  --line-strong: oklch(0.62 0.045 92);
  --signal: oklch(0.77 0.19 126);
  --cyan: oklch(0.68 0.14 205);
  --coral: oklch(0.66 0.18 30);
  --warn: oklch(0.76 0.16 82);
  --shadow: 0 24px 70px oklch(0.08 0.02 245 / 0.36);
  background:
    linear-gradient(90deg, oklch(0.98 0.008 92 / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.98 0.008 92 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.17 0.026 245), oklch(0.22 0.032 240) 520px, oklch(0.94 0.018 92) 520px);
  background-size: 48px 48px, 48px 48px, auto;
}

body[data-template='rally'] .topbar {
  border-bottom-color: var(--signal);
  background: oklch(0.13 0.025 245);
}

body[data-template='rally'] .shell {
  margin-top: 28px;
}

body[data-template='rally'] .breadcrumb,
body[data-template='rally'] .breadcrumb a {
  color: oklch(0.94 0.018 92);
}

body[data-template='rally'] .hero {
  min-height: 360px;
  padding: 56px 0 58px;
}

body[data-template='rally'] .hero-copy {
  grid-template-columns: minmax(300px, 0.52fr) minmax(440px, 0.96fr);
}

body[data-template='rally'] .hero h1,
body[data-template='rally'] .hero .lede {
  color: oklch(0.97 0.011 92);
}

body[data-template='rally'] .hero h1 {
  font-size: clamp(64px, 7vw, 112px);
  line-height: 0.88;
  text-transform: uppercase;
}

body[data-template='rally'] .hero .lede {
  max-width: 70ch;
  padding-top: 14px;
  font-size: 20px;
}

body[data-template='rally'] .tool-shell {
  border-radius: 2px;
  border-width: 1px;
}

body[data-template='rally'] .tool-shell-head {
  border-bottom-width: 1px;
  background: oklch(0.13 0.025 245);
}

body[data-template='rally'] .answer-card {
  border-radius: 2px;
  background: oklch(0.13 0.025 245);
}

body[data-template='rally'] .article-guide article {
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
}

body[data-template='eduwell'] {
  --page: oklch(0.982 0.014 116);
  --paper: oklch(0.998 0.004 110);
  --paper-2: oklch(0.947 0.022 114);
  --ink: oklch(0.25 0.06 235);
  --ink-2: oklch(0.34 0.04 230);
  --muted: oklch(0.53 0.032 225);
  --line: oklch(0.87 0.032 120);
  --line-strong: oklch(0.76 0.054 125);
  --signal: oklch(0.72 0.15 156);
  --cyan: oklch(0.72 0.13 205);
  --coral: oklch(0.68 0.16 35);
  --warn: oklch(0.78 0.13 76);
  --shadow: 0 22px 64px oklch(0.3 0.05 230 / 0.14);
  background:
    radial-gradient(ellipse at 18% 0%, oklch(0.89 0.08 156 / 0.36), transparent 42%),
    linear-gradient(180deg, var(--page), oklch(0.96 0.018 96));
}

body[data-template='eduwell'] .topbar {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: oklch(0.998 0.004 110 / 0.94);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

body[data-template='eduwell'] .brand,
body[data-template='eduwell'] .topnav a {
  color: var(--ink);
}

body[data-template='eduwell'] .brand-mark {
  background: oklch(0.92 0.045 155);
  color: var(--ink);
}

body[data-template='eduwell'] .topnav a:hover,
body[data-template='eduwell'] .topnav a[aria-current='page'] {
  border-color: transparent;
  background: oklch(0.72 0.15 156 / 0.16);
  color: var(--ink);
}

body[data-template='eduwell'] .hero {
  padding: 52px 0 48px;
}

body[data-template='eduwell'] .hero-copy {
  grid-template-columns: minmax(320px, 0.7fr) minmax(420px, 0.9fr);
  gap: 26px 56px;
}

body[data-template='eduwell'] h1 {
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.96;
}

body[data-template='eduwell'] .lede {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

body[data-template='eduwell'] .tool-shell,
body[data-template='eduwell'] .faq-section details,
body[data-template='eduwell'] .answer-card,
body[data-template='eduwell'] .references-card {
  border-radius: 18px;
}

body[data-template='eduwell'] .tool-shell {
  border: 1px solid var(--line);
}

body[data-template='eduwell'] .tool-shell-head {
  border-bottom: 0;
  background: linear-gradient(135deg, var(--ink), oklch(0.32 0.08 205));
}

body[data-template='eduwell'] .answer-card {
  background: oklch(0.25 0.06 235);
}

body[data-template='eduwell'] .article-guide article {
  border-bottom-color: var(--line);
}

body[data-template='crafto'] {
  --page: oklch(0.965 0.024 82);
  --paper: oklch(0.992 0.008 82);
  --paper-2: oklch(0.925 0.03 78);
  --ink: oklch(0.205 0.033 55);
  --ink-2: oklch(0.31 0.035 58);
  --muted: oklch(0.49 0.032 60);
  --line: oklch(0.81 0.038 78);
  --line-strong: oklch(0.64 0.052 78);
  --signal: oklch(0.67 0.18 34);
  --cyan: oklch(0.62 0.13 190);
  --coral: oklch(0.67 0.18 34);
  --warn: oklch(0.78 0.15 86);
  --shadow: 0 30px 80px oklch(0.205 0.033 55 / 0.18);
  background:
    linear-gradient(90deg, oklch(0.205 0.033 55 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.205 0.033 55 / 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--page), oklch(0.95 0.024 80));
  background-size: 58px 58px, 58px 58px, auto;
}

body[data-template='crafto'] .topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.992 0.008 82 / 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

body[data-template='crafto'] .brand,
body[data-template='crafto'] .topnav a {
  color: var(--ink);
}

body[data-template='crafto'] .topnav a:hover,
body[data-template='crafto'] .topnav a[aria-current='page'] {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

body[data-template='crafto'] .brand-mark {
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

body[data-template='crafto'] .hero {
  padding: 64px 0 52px;
}

body[data-template='crafto'] .hero-copy {
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 0.86fr);
  column-gap: 76px;
}

body[data-template='crafto'] h1 {
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.94;
}

body[data-template='crafto'] .lede {
  padding: 28px 0 28px 34px;
  border-left: 1px solid var(--line-strong);
  font-size: 20px;
}

body[data-template='crafto'] .tool-shell {
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--paper);
}

body[data-template='crafto'] .tool-shell-head {
  padding: 26px 30px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
}

body[data-template='crafto'] .tool-panel {
  background: var(--paper);
}

body[data-template='crafto'] .tool-button.primary,
body[data-template='crafto'] .mic-button .mic-core {
  background: var(--signal);
}

body[data-template='crafto'] .answer-card {
  border-radius: 28px;
  background: var(--ink);
}

body[data-template='crafto'] .keyword-strip span {
  border-radius: 999px;
  background: var(--paper);
}

body[data-template='crafto'] .faq-section details {
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 38px oklch(0.205 0.033 55 / 0.08);
}

body[data-template='rally'] .template-switcher,
body[data-template='eduwell'] .template-switcher,
body[data-template='crafto'] .template-switcher {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid oklch(0.985 0.008 94 / 0.28);
  border-radius: 999px;
  background: oklch(0.205 0.038 239 / 0.94);
  box-shadow: 0 12px 34px oklch(0.205 0.038 239 / 0.18);
  color: var(--paper);
}

@media (max-width: 980px) {
  body[data-template='rally'] .hero-copy,
  body[data-template='eduwell'] .hero-copy,
  body[data-template='crafto'] .hero-copy {
    grid-template-columns: 1fr;
  }

  body[data-template='rally'] .hero h1,
  body[data-template='eduwell'] .hero h1,
  body[data-template='crafto'] .hero h1 {
    font-size: clamp(42px, 10vw, 64px);
  }

  body[data-template='rally'] .hero-copy .lede,
  body[data-template='eduwell'] .hero-copy .lede,
  body[data-template='crafto'] .hero-copy .lede {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-template='crafto'] .topbar {
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  .template-switcher {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid oklch(0.985 0.008 94 / 0.28);
  border-radius: 999px;
  background: oklch(0.205 0.038 239 / 0.94);
  box-shadow: 0 12px 34px oklch(0.205 0.038 239 / 0.18);
  color: var(--paper);
}

  .template-switcher span {
    display: none;
  }

  body[data-template='crafto'] .topbar {
    width: min(100% - 22px, var(--max));
    margin-top: 11px;
  }

  body[data-template='crafto'] .lede {
    padding-left: 18px;
  }
}
/* structural template rebuild */
body[data-template] {
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

body[data-template] .topbar,
body[data-template] .tool-shell,
body[data-template] .hero-copy,
body[data-template] .answer-card,
body[data-template] .article-guide article,
body[data-template] .faq-section details {
  transition: background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

body[data-template='rally'] {
  --page: oklch(0.12 0.026 245);
  --paper: oklch(0.95 0.012 88);
  --paper-2: oklch(0.88 0.018 88);
  --ink: oklch(0.14 0.032 245);
  --ink-2: oklch(0.22 0.032 245);
  --muted: oklch(0.61 0.02 238);
  --line: oklch(0.94 0.012 88 / 0.18);
  --line-strong: oklch(0.94 0.012 88 / 0.34);
  --signal: oklch(0.79 0.19 126);
  --cyan: oklch(0.72 0.13 205);
  --coral: oklch(0.68 0.19 30);
  --warn: oklch(0.77 0.16 82);
  --shadow: 0 28px 90px oklch(0.06 0.02 245 / 0.48);
  background:
    linear-gradient(90deg, oklch(0.94 0.012 88 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.94 0.012 88 / 0.036) 1px, transparent 1px),
    var(--page);
  background-size: 52px 52px, 52px 52px, auto;
}

body[data-template='rally'] .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 294px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 48px;
  padding: 32px 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 0;
  background: oklch(0.095 0.022 245 / 0.98);
  color: var(--paper);
}

body[data-template='rally'] .brand {
  align-items: start;
  gap: 16px;
}

body[data-template='rally'] .brand-name {
  max-width: 150px;
  font-size: 30px;
  line-height: 0.98;
}

body[data-template='rally'] .brand-mark {
  flex: 0 0 auto;
}

body[data-template='rally'] .topnav {
  counter-reset: navitem;
  width: 100%;
  display: grid;
  gap: 0;
  align-content: start;
  overflow: visible;
}

body[data-template='rally'] .topnav a {
  counter-increment: navitem;
  width: 100%;
  min-height: 48px;
  justify-content: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: oklch(0.94 0.012 88 / 0.7);
  font-size: 14px;
  text-transform: uppercase;
}

body[data-template='rally'] .topnav a::before {
  content: counter(navitem, decimal-leading-zero);
  width: 38px;
  color: var(--signal);
  font-size: 12px;
}

body[data-template='rally'] .topnav a:hover,
body[data-template='rally'] .topnav a[aria-current='page'] {
  background: transparent;
  color: var(--paper);
}

body[data-template='rally'] .shell {
  width: min(1320px, calc(100% - 348px));
  margin: 0 28px 64px 322px;
  padding-top: 42px;
}

body[data-template='rally'] .breadcrumb {
  color: oklch(0.94 0.012 88 / 0.62);
}

body[data-template='rally'] .breadcrumb a {
  color: var(--paper);
}

body[data-template='rally'] .hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 54px 0 74px;
}

body[data-template='rally'] .hero-copy {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(420px, 1fr);
  align-items: end;
  column-gap: 72px;
  color: var(--paper);
}

body[data-template='rally'] .hero-copy .eyebrow {
  grid-column: 1 / -1;
  color: var(--coral);
}

body[data-template='rally'] .hero h1 {
  color: var(--paper);
  font-size: clamp(76px, 10vw, 142px);
  line-height: 0.82;
  text-transform: uppercase;
}

body[data-template='rally'] .hero .lede {
  max-width: 780px;
  color: oklch(0.94 0.012 88 / 0.9);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.52;
}

body[data-template='rally'] .tool-shell {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 40px 120px oklch(0.03 0.018 245 / 0.62);
}

body[data-template='rally'] .tool-shell-head {
  min-height: 128px;
  padding: 32px;
  background: oklch(0.075 0.022 245);
  border-bottom: 1px solid var(--line-strong);
}

body[data-template='rally'] .tool-shell-head h2 {
  max-width: 740px;
  font-size: 38px;
}

body[data-template='rally'] .answer-card,
body[data-template='rally'] .article-guide,
body[data-template='rally'] .howto-card,
body[data-template='rally'] .references-card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

body[data-template='rally'] .answer-card {
  background: oklch(0.075 0.022 245);
}

body[data-template='rally'] .article-guide article {
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
  padding: 34px 0;
  border-bottom-color: oklch(0.14 0.032 245 / 0.2);
}

body[data-template='rally'] .template-switcher {
  top: 22px;
  right: 24px;
}

body[data-template='eduwell'] {
  --page: oklch(0.982 0.014 116);
  --paper: oklch(0.998 0.004 110);
  --paper-2: oklch(0.945 0.026 115);
  --ink: oklch(0.235 0.06 234);
  --ink-2: oklch(0.34 0.04 228);
  --muted: oklch(0.52 0.032 224);
  --line: oklch(0.87 0.032 120);
  --line-strong: oklch(0.74 0.058 130);
  --signal: oklch(0.72 0.15 156);
  --cyan: oklch(0.72 0.13 205);
  --coral: oklch(0.68 0.16 35);
  --warn: oklch(0.78 0.13 76);
  --shadow: 0 22px 64px oklch(0.3 0.05 230 / 0.14);
  background:
    radial-gradient(ellipse at 12% 0%, oklch(0.86 0.09 156 / 0.52), transparent 42%),
    radial-gradient(ellipse at 90% 10%, oklch(0.88 0.08 72 / 0.35), transparent 38%),
    linear-gradient(180deg, var(--page), oklch(0.96 0.018 96));
}

body[data-template='eduwell'] .topbar {
  position: sticky;
  inset: auto;
  width: auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2 + 16px));
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: oklch(0.998 0.004 110 / 0.94);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body[data-template='eduwell'] .brand,
body[data-template='eduwell'] .topnav a {
  color: var(--ink);
}

body[data-template='eduwell'] .brand-mark {
  background: oklch(0.9 0.06 155);
  color: var(--ink);
}

body[data-template='eduwell'] .topnav {
  display: flex;
  justify-content: flex-end;
}

body[data-template='eduwell'] .topnav a:hover,
body[data-template='eduwell'] .topnav a[aria-current='page'] {
  border-color: transparent;
  background: oklch(0.72 0.15 156 / 0.16);
  color: var(--ink);
}

body[data-template='eduwell'] .shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 52px;
}

body[data-template='eduwell'] .hero {
  min-height: 390px;
  padding: 56px 0 50px;
}

body[data-template='eduwell'] .hero-copy {
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 0.9fr);
  gap: 28px 58px;
}

body[data-template='eduwell'] .hero h1 {
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.93;
}

body[data-template='eduwell'] .hero .lede {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

body[data-template='eduwell'] .tool-shell {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

body[data-template='eduwell'] .tool-shell-head {
  padding: 26px 30px;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(135deg, var(--ink), oklch(0.32 0.08 205));
}

body[data-template='eduwell'] .answer-card,
body[data-template='eduwell'] .faq-section details,
body[data-template='eduwell'] .references-card,
body[data-template='eduwell'] .howto-card {
  border-radius: 22px;
}

body[data-template='eduwell'] .content-band article,
body[data-template='eduwell'] .faq-section details {
  background: var(--paper);
  box-shadow: 0 14px 44px oklch(0.3 0.05 230 / 0.08);
}

body[data-template='eduwell'] .template-switcher {
  top: 92px;
}

body[data-template='crafto'] {
  --page: oklch(0.962 0.025 82);
  --paper: oklch(0.994 0.008 82);
  --paper-2: oklch(0.925 0.03 78);
  --ink: oklch(0.19 0.035 55);
  --ink-2: oklch(0.31 0.035 58);
  --muted: oklch(0.49 0.032 60);
  --line: oklch(0.81 0.038 78);
  --line-strong: oklch(0.62 0.052 78);
  --signal: oklch(0.67 0.18 34);
  --cyan: oklch(0.62 0.13 190);
  --coral: oklch(0.67 0.18 34);
  --warn: oklch(0.78 0.15 86);
  --shadow: 0 30px 80px oklch(0.205 0.033 55 / 0.18);
  background:
    linear-gradient(90deg, oklch(0.205 0.033 55 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.205 0.033 55 / 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--page), oklch(0.95 0.024 80));
  background-size: 58px 58px, 58px 58px, auto;
}

body[data-template='crafto'] .topbar {
  position: sticky;
  top: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 16px auto 0;
  padding: 0 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.994 0.008 82 / 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body[data-template='crafto'] .brand,
body[data-template='crafto'] .topnav a {
  color: var(--ink);
}

body[data-template='crafto'] .brand-mark {
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

body[data-template='crafto'] .topnav {
  display: flex;
  justify-content: flex-end;
}

body[data-template='crafto'] .topnav a:hover,
body[data-template='crafto'] .topnav a[aria-current='page'] {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

body[data-template='crafto'] .shell {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 52px;
}

body[data-template='crafto'] .hero {
  min-height: 430px;
  padding: 62px 0 56px;
}

body[data-template='crafto'] .hero-copy {
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 0.86fr);
  column-gap: 76px;
}

body[data-template='crafto'] h1 {
  font-size: clamp(60px, 7vw, 104px);
  line-height: 0.92;
}

body[data-template='crafto'] .lede {
  padding: 30px 0 30px 38px;
  border-left: 1px solid var(--line-strong);
  font-size: 21px;
}

body[data-template='crafto'] .tool-shell {
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: var(--paper);
}

body[data-template='crafto'] .tool-shell-head {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 34px 34px 0 0;
  background: var(--ink);
}

body[data-template='crafto'] .tool-panel {
  background: var(--paper);
}

body[data-template='crafto'] .tool-button.primary,
body[data-template='crafto'] .mic-button .mic-core {
  background: var(--signal);
}

body[data-template='crafto'] .answer-card {
  border-radius: 34px;
  background: var(--ink);
}

body[data-template='crafto'] .keyword-strip span {
  border-radius: 999px;
  background: var(--paper);
}

body[data-template='crafto'] .faq-section details {
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 38px oklch(0.205 0.033 55 / 0.08);
}

@media (max-width: 1120px) {
  body[data-template='rally'] .topbar {
    position: sticky;
    inset: auto;
    width: auto;
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    padding: 0 max(16px, calc((100vw - var(--max)) / 2 + 16px));
    border-right: 0;
    border-bottom: 3px solid var(--signal);
  }

  body[data-template='rally'] .brand-name {
    max-width: none;
    font-size: 22px;
  }

  body[data-template='rally'] .topnav {
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
  }

  body[data-template='rally'] .topnav a {
    width: auto;
    min-height: 38px;
    padding: 0 11px;
    border-bottom: 0;
  }

  body[data-template='rally'] .topnav a::before {
    content: none;
  }

  body[data-template='rally'] .shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 22px auto 52px;
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  body[data-template='rally'] .hero-copy,
  body[data-template='eduwell'] .hero-copy,
  body[data-template='crafto'] .hero-copy {
    grid-template-columns: 1fr;
  }

  body[data-template='rally'] .hero-copy .lede,
  body[data-template='eduwell'] .hero-copy .lede,
  body[data-template='crafto'] .hero-copy .lede {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-template='rally'] .hero h1,
  body[data-template='eduwell'] .hero h1,
  body[data-template='crafto'] .hero h1 {
    font-size: clamp(42px, 10vw, 70px);
  }

  body[data-template='crafto'] .topbar {
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  body[data-template='rally'] .hero,
  body[data-template='eduwell'] .hero,
  body[data-template='crafto'] .hero {
    min-height: 0;
    padding: 30px 0;
  }

  body[data-template='crafto'] .topbar {
    width: min(100% - 22px, var(--max));
    margin-top: 11px;
  }

  body[data-template='crafto'] .lede {
    padding-left: 18px;
  }

  .template-switcher {
    left: 11px;
    right: 11px;
    top: auto;
    bottom: 11px;
    justify-content: center;
    overflow-x: auto;
  }

  .template-switcher span {
    display: none;
  }
}
/* listen white template */
body[data-template='listen'] {
  --page: oklch(0.995 0.004 95);
  --paper: oklch(0.998 0.003 95);
  --paper-2: oklch(0.968 0.012 95);
  --ink: oklch(0.17 0.03 250);
  --ink-2: oklch(0.28 0.025 250);
  --muted: oklch(0.55 0.018 250);
  --line: oklch(0.9 0.01 95);
  --line-strong: oklch(0.75 0.018 95);
  --signal: oklch(0.68 0.22 325);
  --cyan: oklch(0.68 0.16 205);
  --coral: oklch(0.66 0.21 22);
  --warn: oklch(0.78 0.15 78);
  --danger: oklch(0.58 0.18 28);
  --shadow: 0 26px 80px oklch(0.18 0.03 250 / 0.12);
  background:
    radial-gradient(circle at 50% 0%, oklch(0.72 0.18 300 / 0.08), transparent 34%),
    radial-gradient(circle at 2px 2px, oklch(0.18 0.03 250 / 0.11) 1px, transparent 1px),
    var(--page);
  background-size: auto, 18px 18px, auto;
}

body[data-template='listen'] .template-switcher {
  display: none;
}

body[data-template='listen'] .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0 max(18px, calc((100vw - 1240px) / 2 + 18px));
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: oklch(0.995 0.004 95 / 0.92);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body[data-template='listen'] .brand,
body[data-template='listen'] .topnav a {
  color: var(--ink);
}

body[data-template='listen'] .brand-mark {
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

body[data-template='listen'] .brand-name {
  font-size: 24px;
}

body[data-template='listen'] .topnav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body[data-template='listen'] .topnav a {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

body[data-template='listen'] .topnav a:hover,
body[data-template='listen'] .topnav a[aria-current='page'] {
  background: oklch(0.68 0.22 325 / 0.1);
  color: var(--signal);
}

body[data-template='listen'] .shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 56px;
}

body[data-template='listen'] .breadcrumb {
  padding-top: 22px;
  color: var(--muted);
}

body[data-template='listen'] .breadcrumb a {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

body[data-template='listen'] .hero {
  min-height: 430px;
  display: grid;
  align-items: center;
  padding: 34px 0 52px;
}

body[data-template='listen'] .hero-copy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 100%;
  min-height: 360px;
  align-items: center;
  isolation: isolate;
}

body[data-template='listen'] .hero-copy .eyebrow {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
}

body[data-template='listen'] .hero h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, oklch(0.66 0.28 352), oklch(0.55 0.29 292));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(112px, 15vw, 220px);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: normal;
}

body[data-template='listen'] .hero .lede {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.998 0.003 95 / 0.88);
  box-shadow: 0 18px 60px oklch(0.18 0.03 250 / 0.1);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(14px);
}

body[data-template='listen'] .tool-shell {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

body[data-template='listen'] .tool-shell-head {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  background: var(--ink);
  color: var(--paper);
}

body[data-template='listen'] .tool-shell-head h2 {
  font-size: 30px;
}

body[data-template='listen'] .tool-panel {
  background: var(--paper);
}

body[data-template='listen'] .tool-button.primary,
body[data-template='listen'] .mic-button .mic-core {
  background: var(--signal);
}

body[data-template='listen'] .answer-card {
  border: 0;
  border-radius: 26px;
  background: linear-gradient(120deg, oklch(0.66 0.28 352), oklch(0.55 0.29 292));
  box-shadow: var(--shadow);
}

body[data-template='listen'] .article-guide article {
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  border-bottom-color: var(--line);
}

body[data-template='listen'] .keyword-strip span,
body[data-template='listen'] .faq-section details,
body[data-template='listen'] .references-card,
body[data-template='listen'] .howto-card {
  border-radius: 20px;
  background: oklch(0.998 0.003 95 / 0.82);
}

@media (max-width: 980px) {
  body[data-template='listen'] .hero-copy {
    min-height: 300px;
  }

  body[data-template='listen'] .hero h1 {
    font-size: clamp(74px, 18vw, 132px);
  }

  body[data-template='listen'] .hero .lede {
    position: relative;
    bottom: auto;
    max-width: 100%;
    margin-top: 20px;
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  body[data-template='listen'] .shell {
    width: min(100% - 22px, 1240px);
  }

  body[data-template='listen'] .hero {
    min-height: 0;
    padding: 28px 0 34px;
  }

  body[data-template='listen'] .hero-copy {
    min-height: 0;
  }

  body[data-template='listen'] .hero-copy .eyebrow {
    position: static;
    margin-bottom: 14px;
  }

  body[data-template='listen'] .hero h1 {
    font-size: clamp(58px, 19vw, 96px);
    line-height: 0.86;
  }
}
/* final simple recorder repair */
body[data-template='listen'] .hero {
  min-height: 0;
  padding: 30px 0 42px;
}

body[data-template='listen'] .hero-copy {
  display: block;
  min-height: 0;
}

body[data-template='listen'] .hero-copy .eyebrow {
  position: static;
  margin-bottom: 12px;
  color: oklch(0.50 0.18 315);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

body[data-template='listen'] .hero h1 {
  max-width: 100%;
  margin: 0;
  color: oklch(0.58 0.24 315);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(58px, 7.5vw, 110px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: lowercase;
}

body[data-template='listen'] .hero .lede {
  position: static;
  width: min(820px, 100%);
  max-width: none;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: oklch(0.44 0.16 315);
  font-size: 19px;
  line-height: 1.62;
  text-align: left;
  transform: none;
  backdrop-filter: none;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-shell {
  width: min(760px, 100%);
  margin-top: 14px;
  border: 1px solid oklch(0.82 0.08 315 / 0.45);
  border-radius: 999px;
  background: oklch(0.998 0.003 95 / 0.9);
  box-shadow: 0 20px 60px oklch(0.58 0.24 315 / 0.14);
  overflow: visible;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-shell-head {
  display: none;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

body[data-template='listen'][data-page='voice-recorder'] .primary-panel,
body[data-template='listen'][data-page='voice-recorder'] .side-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-template='listen'][data-page='voice-recorder'] .toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body[data-template='listen'][data-page='voice-recorder'] .language-field,
body[data-template='listen'][data-page='voice-recorder'] .command-control,
body[data-template='listen'][data-page='voice-recorder'] .combo-control,
body[data-template='listen'][data-page='voice-recorder'] .transcribe-control:not(#startRecordButton),
body[data-template='listen'][data-page='voice-recorder'] #textFileButton,
body[data-template='listen'][data-page='voice-recorder'] .live-strip,
body[data-template='listen'][data-page='voice-recorder'] textarea,
body[data-template='listen'][data-page='voice-recorder'] .editor-actions,
body[data-template='listen'][data-page='voice-recorder'] .speak-control,
body[data-template='listen'][data-page='voice-recorder'] .command-control,
body[data-template='listen'][data-page='voice-recorder'] .soft,
body[data-template='listen'][data-page='voice-recorder'] .wave,
body[data-template='listen'][data-page='voice-recorder'] #recordingMeta,
body[data-template='listen'][data-page='voice-recorder'] .mini-section h2,
body[data-template='listen'][data-page='voice-recorder'] .mic-core,
body[data-template='listen'][data-page='voice-recorder'] #recordMicStateText {
  display: none !important;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-button,
body[data-template='listen'][data-page='voice-recorder'] .download-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

body[data-template='listen'][data-page='voice-recorder'] #startRecordButton {
  background: oklch(0.58 0.24 315);
  color: var(--paper);
}

body[data-template='listen'][data-page='voice-recorder'] #pauseRecordButton {
  background: oklch(0.9 0.06 315);
  color: oklch(0.36 0.16 315);
}

body[data-template='listen'][data-page='voice-recorder'] #stopButton {
  background: oklch(0.92 0.06 28);
  color: oklch(0.44 0.16 28);
}

body[data-template='listen'][data-page='voice-recorder'] .record-control.mini-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button {
  width: auto;
  min-width: 104px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: oklch(0.95 0.025 315);
  color: oklch(0.36 0.16 315);
  box-shadow: none;
  pointer-events: none;
}

body[data-template='listen'][data-page='voice-recorder'] #recordDurationText {
  font-size: 17px;
  font-weight: 950;
}

body[data-template='listen'][data-page='voice-recorder'] .download-link {
  min-width: 112px;
  background: oklch(0.2 0.04 250);
  color: var(--paper);
}

body[data-template='listen'][data-page='voice-recorder'] .download-link.disabled {
  background: oklch(0.86 0.012 250);
  color: oklch(0.55 0.018 250);
  opacity: 1;
}

@media (max-width: 760px) {
  body[data-template='listen'][data-page='voice-recorder'] .tool-shell {
    border-radius: 26px;
  }

  body[data-template='listen'][data-page='voice-recorder'] .tool-grid,
  body[data-template='listen'][data-page='voice-recorder'] .toolbar,
  body[data-template='listen'][data-page='voice-recorder'] .record-control.mini-section {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }

  body[data-template='listen'][data-page='voice-recorder'] .tool-button,
  body[data-template='listen'][data-page='voice-recorder'] .download-link,
  body[data-template='listen'][data-page='voice-recorder'] .mic-button {
    flex: 1 1 140px;
  }
}

/* final mic-first voice recorder fold */
body[data-page='voice-recorder'] .hero {
  min-height: 0;
  padding: 34px 0 18px;
  text-align: center;
}

body[data-page='voice-recorder'] .hero-copy {
  display: block;
  width: min(1040px, 100%);
  min-height: 0;
  margin: 0 auto;
}

body[data-page='voice-recorder'] .hero-copy .eyebrow {
  display: none !important;
}

body[data-page='voice-recorder'] .hero h1 {
  max-width: none;
  margin: 0 auto;
  color: oklch(0.58 0.24 315);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(50px, 6.4vw, 92px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
}

body[data-page='voice-recorder'] .hero .lede {
  position: static;
  width: min(760px, 100%);
  max-width: none;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3f4650;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
  text-align: center;
  transform: none;
  backdrop-filter: none;
}

body[data-page='voice-recorder'] .answer-card {
  display: none !important;
}

body[data-page='voice-recorder'] .tool-shell {
  width: min(560px, 100%);
  margin: 24px auto 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body[data-page='voice-recorder'] .tool-shell-head {
  display: none !important;
}

body[data-page='voice-recorder'] .tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 0;
}

body[data-page='voice-recorder'] .side-panel {
  grid-row: 1;
  width: 100%;
}

body[data-page='voice-recorder'] .primary-panel {
  grid-row: 2;
  width: 100%;
}

body[data-page='voice-recorder'] .primary-panel,
body[data-page='voice-recorder'] .side-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page='voice-recorder'] .toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}

body[data-page='voice-recorder'] .language-field,
body[data-page='voice-recorder'] .command-control,
body[data-page='voice-recorder'] .combo-control,
body[data-page='voice-recorder'] .transcribe-control:not(#startRecordButton),
body[data-page='voice-recorder'] #textFileButton,
body[data-page='voice-recorder'] .live-strip,
body[data-page='voice-recorder'] textarea,
body[data-page='voice-recorder'] .editor-actions,
body[data-page='voice-recorder'] .speak-control,
body[data-page='voice-recorder'] .soft,
body[data-page='voice-recorder'] .wave,
body[data-page='voice-recorder'] #recordingMeta,
body[data-page='voice-recorder'] .mini-section h2,
body[data-page='voice-recorder'] #recordMicStateText {
  display: none !important;
}

body[data-page='voice-recorder'] .record-control.mini-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  border: 0;
}

body[data-page='voice-recorder'] .mic-button {
  width: auto;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

body[data-page='voice-recorder'] .mic-core {
  position: relative;
  width: 76px;
  height: 76px;
  display: inline-block !important;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #4b5563;
  background: transparent;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body[data-page='voice-recorder'] .mic-core::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 17px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

body[data-page='voice-recorder'] .mic-core::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 26px;
  height: 18px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

body[data-page='voice-recorder'] #recordDurationText {
  display: block;
  color: #4b5563;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: color 220ms ease;
}

body[data-page='voice-recorder'] .mic-button.recording .mic-core {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.24), 0 16px 42px rgba(22, 163, 74, 0.16);
  animation: a2tMicPulse 1.65s ease-in-out infinite;
}

body[data-page='voice-recorder'] .mic-button.recording #recordDurationText {
  color: #15803d;
}

body[data-page='voice-recorder'] .mic-button.paused .mic-core {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
  animation: none;
}

body[data-page='voice-recorder'] .tool-button,
body[data-page='voice-recorder'] .download-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

body[data-page='voice-recorder'] #startRecordButton {
  background: oklch(0.58 0.24 315);
  color: #fff;
}

body[data-page='voice-recorder'] #pauseRecordButton {
  background: oklch(0.93 0.045 315);
  color: oklch(0.45 0.12 315);
}

body[data-page='voice-recorder'] #stopButton {
  background: oklch(0.94 0.045 24);
  color: oklch(0.45 0.13 24);
}

body[data-page='voice-recorder'] .download-link {
  min-width: 128px;
  background: #111827;
  color: #fff;
}

body[data-page='voice-recorder'] .download-link.disabled {
  background: #d8dee6;
  color: #65717e;
  opacity: 1;
}

@keyframes a2tMicPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.24), 0 16px 42px rgba(22, 163, 74, 0.16);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0), 0 18px 48px rgba(22, 163, 74, 0.2);
  }
}

@media (max-width: 700px) {
  body[data-page='voice-recorder'] .hero {
    padding-top: 24px;
  }

  body[data-page='voice-recorder'] .hero h1 {
    font-size: clamp(48px, 17vw, 78px);
  }

  body[data-page='voice-recorder'] .hero .lede {
    font-size: 17px;
    line-height: 1.5;
  }

  body[data-page='voice-recorder'] .tool-shell {
    width: 100%;
  }

  body[data-page='voice-recorder'] .toolbar {
    gap: 8px;
  }

  body[data-page='voice-recorder'] .tool-button,
  body[data-page='voice-recorder'] .download-link {
    flex: 1 1 132px;
  }
}
/* high-specificity voice recorder mic repair */
body[data-template='listen'][data-page='voice-recorder'] .hero {
  min-height: 0;
  padding: 34px 0 18px;
  text-align: center;
}

body[data-template='listen'][data-page='voice-recorder'] .hero-copy {
  display: block;
  width: min(1040px, 100%);
  min-height: 0;
  margin: 0 auto;
}

body[data-template='listen'][data-page='voice-recorder'] .hero h1 {
  max-width: none;
  margin: 0 auto;
  color: oklch(0.58 0.24 315);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(50px, 6.4vw, 92px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
}

body[data-template='listen'][data-page='voice-recorder'] .hero .lede {
  position: static;
  width: min(760px, 100%);
  max-width: none;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3f4650;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
  text-align: center;
  transform: none;
  backdrop-filter: none;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-shell {
  width: min(560px, 100%);
  margin: 24px auto clamp(92px, 15vh, 150px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 14px;
  padding: 0;
}

body[data-template='listen'][data-page='voice-recorder'] .side-panel,
body[data-template='listen'][data-page='voice-recorder'] .primary-panel {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-template='listen'][data-page='voice-recorder'] .side-panel {
  grid-row: 1;
}

body[data-template='listen'][data-page='voice-recorder'] .primary-panel {
  grid-row: 2;
}

body[data-template='listen'][data-page='voice-recorder'] .record-control.mini-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
}

body[data-template='listen'][data-page='voice-recorder'] .toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button {
  width: auto;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-core,
body[data-page='voice-recorder'] .mic-button .mic-core {
  position: relative;
  width: 76px;
  height: 76px;
  display: inline-block !important;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #4b5563;
  background: transparent;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-core::before,
body[data-page='voice-recorder'] .mic-button .mic-core::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 17px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

body[data-template='listen'][data-page='voice-recorder'] .mic-core::after,
body[data-page='voice-recorder'] .mic-button .mic-core::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 26px;
  height: 18px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

body[data-template='listen'][data-page='voice-recorder'] #recordDurationText {
  display: block;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: color 220ms ease;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button.recording .mic-core {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.24), 0 16px 42px rgba(22, 163, 74, 0.16);
  animation: a2tMicPulse 1.65s ease-in-out infinite;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button.recording #recordDurationText {
  color: #15803d;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused .mic-core {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
  animation: none;
}

body[data-template='listen'][data-page='voice-recorder'] .tool-button,
body[data-template='listen'][data-page='voice-recorder'] .download-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

body[data-template='listen'][data-page='voice-recorder'] #startRecordButton {
  background: oklch(0.58 0.24 315);
  color: #fff;
}

body[data-template='listen'][data-page='voice-recorder'] #pauseRecordButton {
  background: oklch(0.93 0.045 315);
  color: oklch(0.45 0.12 315);
}

body[data-template='listen'][data-page='voice-recorder'] #stopButton {
  background: oklch(0.94 0.045 24);
  color: oklch(0.45 0.13 24);
}

body[data-template='listen'][data-page='voice-recorder'] .download-link {
  min-width: 128px;
  background: #111827;
  color: #fff;
}

body[data-template='listen'][data-page='voice-recorder'] .download-link.disabled {
  background: #d8dee6;
  color: #65717e;
  opacity: 1;
}
/* final fold isolation and paused mic state */
body[data-template='listen'][data-page='voice-recorder'] .tool-shell {
  margin-bottom: clamp(300px, 34vh, 380px);
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused .mic-core,
body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused:not(.recording) .mic-core {
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08) !important;
  animation: none !important;
}

body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused #recordDurationText {
  color: #4b5563 !important;
}

@media (max-width: 700px) {
  body[data-template='listen'][data-page='voice-recorder'] .tool-shell {
    margin-bottom: 120px;
  }
}
body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused .mic-core,
body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused:not(.recording) .mic-core {
  color: #4b5563 !important;
  border-color: #4b5563 !important;
  background-color: transparent !important;
  transition: none !important;
}
body[data-template='listen'][data-page='voice-recorder'] .mic-button.paused #recordDurationText {
  color: #4b5563 !important;
  transition: none !important;
}

/* U2K-inspired premium minimal shell with charcoal theme support. */
:root {
  --a2t-page: #fdfdfc;
  --a2t-page-2: #f7f7f6;
  --a2t-surface: #fdfdfc;
  --a2t-surface-soft: #f3f3f2;
  --a2t-ink: #1d1d20;
  --a2t-ink-soft: #333337;
  --a2t-muted: #62646b;
  --a2t-quiet: #8d9096;
  --a2t-line: #e7e7e5;
  --a2t-line-strong: #dedfdd;
  --a2t-accent: #ff3b16;
  --a2t-accent-soft: rgba(255, 59, 22, 0.1);
  --a2t-good: #159447;
  --a2t-shadow-soft: 0 1px 2px rgba(29, 29, 32, 0.08);
  --page: var(--a2t-page);
  --paper: var(--a2t-surface);
  --paper-2: var(--a2t-page-2);
  --ink: var(--a2t-ink);
  --ink-2: var(--a2t-ink-soft);
  --muted: var(--a2t-muted);
  --quiet: var(--a2t-quiet);
  --line: var(--a2t-line);
  --line-strong: var(--a2t-line-strong);
  --signal: var(--a2t-accent);
  --coral: var(--a2t-accent);
  --cyan: #1d1d20;
  --shadow: none;
}

body[data-theme='dark'] {
  color-scheme: dark;
  --a2t-page: #191a1c;
  --a2t-page-2: #202124;
  --a2t-surface: #222326;
  --a2t-surface-soft: #2a2b2f;
  --a2t-ink: #f4f4f1;
  --a2t-ink-soft: #d8d8d3;
  --a2t-muted: #a7a8aa;
  --a2t-quiet: #777a80;
  --a2t-line: #35363a;
  --a2t-line-strong: #47484d;
  --a2t-accent: #ff6a45;
  --a2t-accent-soft: rgba(255, 106, 69, 0.16);
  --a2t-good: #42c773;
  --a2t-shadow-soft: none;
  --page: var(--a2t-page);
  --paper: var(--a2t-surface);
  --paper-2: var(--a2t-page-2);
  --ink: var(--a2t-ink);
  --ink-2: var(--a2t-ink-soft);
  --muted: var(--a2t-muted);
  --quiet: var(--a2t-quiet);
  --line: var(--a2t-line);
  --line-strong: var(--a2t-line-strong);
  --signal: var(--a2t-accent);
  --coral: var(--a2t-accent);
  --cyan: #f4f4f1;
}

html,
body,
body[data-template],
body[data-page='voice-recorder'] {
  background: var(--a2t-page);
  color: var(--a2t-ink);
  letter-spacing: 0;
}

body,
body[data-template],
body[data-page='voice-recorder'] {
  background:
    linear-gradient(180deg, var(--a2t-page), var(--a2t-page-2) 76vh, var(--a2t-page));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body[data-theme='dark'],
body[data-theme='dark'][data-template],
body[data-theme='dark'][data-page='voice-recorder'] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 36rem),
    linear-gradient(180deg, var(--a2t-page), #141517 82vh, var(--a2t-page));
}

body[data-theme] .topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 max(18px, calc((100vw - 1184px) / 2 + 18px));
  border-bottom: 1px solid var(--a2t-line);
  background: color-mix(in srgb, var(--a2t-surface) 92%, transparent);
  color: var(--a2t-ink);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-theme] .brand {
  gap: 9px;
  color: var(--a2t-ink);
  font-weight: 760;
}

body[data-theme] .brand-mark {
  width: 25px;
  height: 25px;
  border: 1px solid var(--a2t-line-strong);
  border-radius: 8px;
  background: var(--a2t-surface);
  box-shadow: none;
  color: var(--a2t-accent);
  font-size: 8px;
  font-weight: 850;
}

body[data-theme] .brand-name {
  color: var(--a2t-ink);
  font-size: 16px;
  font-weight: 760;
}

body[data-theme] .topnav {
  justify-content: flex-end;
  gap: 28px;
}

body[data-theme] .topnav a {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--a2t-muted);
  font-size: 13px;
  font-weight: 540;
}

body[data-theme] .topnav a:hover,
body[data-theme] .topnav a[aria-current='page'] {
  background: transparent;
  color: var(--a2t-ink);
}

body[data-theme] .topnav a[aria-current='page'] {
  font-weight: 760;
}

body[data-theme] .theme-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--a2t-line-strong);
  border-radius: 999px;
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
  box-shadow: var(--a2t-shadow-soft);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

body[data-theme] .theme-toggle-mark {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

body[data-theme='dark'] .theme-toggle-mark {
  background: currentColor;
  box-shadow: inset -5px 0 0 var(--a2t-surface-soft);
}

body[data-theme] .shell {
  width: min(1058px, calc(100% - 32px));
  margin: 10px auto 54px;
}

body[data-theme] .breadcrumb {
  display: none;
}

body[data-theme] .hero,
body[data-template='listen'] .hero,
body[data-page='voice-recorder'] .hero {
  min-height: 0;
  padding: 74px 0 34px;
  background: transparent;
  text-align: center;
}

body[data-theme] .hero-copy,
body[data-template='listen'] .hero-copy,
body[data-page='voice-recorder'] .hero-copy {
  max-width: 860px;
  display: block;
  margin: 0 auto;
  text-align: center;
}

body[data-theme] .eyebrow,
body[data-template='listen'] .eyebrow {
  margin-bottom: 14px;
  color: var(--a2t-muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

body[data-theme] h1,
body[data-template='listen'] h1,
body[data-page='voice-recorder'] .hero h1 {
  max-width: 880px;
  margin: 0 auto;
  background: none;
  color: var(--a2t-ink);
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

body[data-theme] h1 em,
body[data-theme] h1 strong,
body[data-template='listen'] h1 em,
body[data-template='listen'] h1 strong {
  color: var(--a2t-accent);
  font-style: normal;
}

body[data-theme] .lede,
body[data-template='listen'] .lede,
body[data-page='voice-recorder'] .hero .lede {
  position: static;
  width: min(760px, 100%);
  max-width: 760px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--a2t-muted);
  font-size: 15px;
  font-weight: 430;
  line-height: 1.7;
  text-align: center;
  transform: none;
}

body[data-theme] .support-notice,
body[data-theme] .startup-error {
  border-color: var(--a2t-line-strong);
  border-radius: 12px;
  background: var(--a2t-surface);
  color: var(--a2t-ink);
  box-shadow: none;
}

body[data-theme] .tool-shell,
body[data-template='listen'] .tool-shell,
body[data-page='voice-recorder'] .tool-shell {
  width: min(100%, 1058px);
  margin: 0 auto 46px;
  border: 1px solid var(--a2t-line-strong);
  border-radius: 24px;
  background: var(--a2t-surface);
  box-shadow: none;
  overflow: hidden;
}

body[data-theme] .tool-shell-head,
body[data-template='listen'] .tool-shell-head,
body[data-page='voice-recorder'] .tool-shell-head {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--a2t-line-strong);
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
}

body[data-theme] .tool-shell-head h2,
body[data-template='listen'] .tool-shell-head h2,
body[data-page='voice-recorder'] .tool-shell-head h2 {
  margin: 0;
  color: var(--a2t-ink);
  font-size: 14px;
  font-weight: 760;
}

body[data-theme] .tool-shell-head > span,
body[data-template='listen'] .tool-shell-head > span,
body[data-page='voice-recorder'] .tool-shell-head > span {
  color: var(--a2t-muted);
  font-size: 12px;
  font-weight: 620;
}

body[data-theme] .tool-grid,
body[data-template='listen'] .tool-grid,
body[data-page='voice-recorder'] .tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 0;
  padding: 0;
  background: var(--a2t-surface);
}

body[data-theme] .tool-panel,
body[data-template='listen'] .tool-panel,
body[data-page='voice-recorder'] .tool-panel {
  min-width: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-theme] .primary-panel,
body[data-template='listen'] .primary-panel,
body[data-page='voice-recorder'] .primary-panel {
  border-right: 1px solid var(--a2t-line-strong);
}

body[data-theme] .toolbar,
body[data-template='listen'] .toolbar,
body[data-page='voice-recorder'] .toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-wrap: wrap;
}

body[data-theme] .field,
body[data-theme] .toggle,
body[data-theme] select,
body[data-theme] input[type='range'] {
  color: var(--a2t-ink);
}

body[data-theme] select {
  min-height: 36px;
  border: 1px solid var(--a2t-line-strong);
  border-radius: 999px;
  background: var(--a2t-surface);
  color: var(--a2t-ink);
}

body[data-theme] .tool-button,
body[data-theme] .editor-actions button,
body[data-theme] .side-actions button,
body[data-theme] .download-link,
body[data-template='listen'] .tool-button,
body[data-template='listen'] .download-link,
body[data-page='voice-recorder'] .tool-button,
body[data-page='voice-recorder'] .download-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--a2t-line-strong);
  border-radius: 999px;
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 720;
}

body[data-theme] .tool-button:hover,
body[data-theme] .editor-actions button:hover,
body[data-theme] .side-actions button:hover,
body[data-theme] .download-link:hover {
  border-color: color-mix(in srgb, var(--a2t-accent) 44%, var(--a2t-line-strong));
  color: var(--a2t-ink);
}

body[data-theme] .tool-button.primary,
body[data-template='listen'] .tool-button.primary,
body[data-page='voice-recorder'] #startRecordButton,
body[data-page='voice-recorder'] #startBothButton {
  border-color: var(--a2t-accent);
  background: var(--a2t-accent);
  color: #fff;
}

body[data-theme] .tool-button.danger,
body[data-template='listen'] #stopButton,
body[data-page='voice-recorder'] #stopButton {
  border-color: transparent;
  background: var(--a2t-accent-soft);
  color: var(--a2t-accent);
}

body[data-theme] .live-strip {
  border: 1px solid var(--a2t-line);
  border-radius: 999px;
  background: var(--a2t-surface-soft);
  color: var(--a2t-muted);
  box-shadow: none;
}

body[data-theme] .dot {
  background: var(--a2t-quiet);
}

body[data-theme] .dot.live {
  background: var(--a2t-good);
}

body[data-theme] textarea,
body[data-template='listen'] textarea,
body[data-page='voice-recorder'] textarea {
  min-height: 330px;
  border: 1px solid var(--a2t-line);
  border-radius: 18px;
  background: var(--a2t-surface);
  box-shadow: none;
  color: var(--a2t-ink);
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
}

body[data-theme] textarea::placeholder {
  color: var(--a2t-quiet);
}

body[data-theme] .editor-actions,
body[data-template='listen'] .editor-actions,
body[data-page='voice-recorder'] .editor-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-wrap: wrap;
}

body[data-theme] .export-note {
  color: var(--a2t-quiet);
  font-size: 12px;
}

body[data-theme] .mini-section {
  border: 1px solid var(--a2t-line);
  border-radius: 18px;
  background: var(--a2t-surface-soft);
  box-shadow: none;
}

body[data-theme] .mini-section h2 {
  color: var(--a2t-ink);
  font-size: 14px;
}

body[data-theme] .mini-copy,
body[data-theme] .command-list {
  color: var(--a2t-muted);
}

body[data-theme] .mic-button,
body[data-page='voice-recorder'] .mic-button {
  border-color: var(--a2t-line-strong);
  background: var(--a2t-surface);
  color: var(--a2t-ink);
  box-shadow: none;
}

body[data-theme] .mic-core,
body[data-page='voice-recorder'] .mic-button .mic-core {
  color: var(--a2t-muted);
  box-shadow: none;
}

body[data-theme] .mic-button.recording .mic-core,
body[data-page='voice-recorder'] .mic-button.recording .mic-core {
  color: var(--a2t-good);
  background: color-mix(in srgb, var(--a2t-good) 12%, transparent);
  box-shadow: none;
}

body[data-theme] .content-band,
body[data-theme] .related {
  background: transparent;
}

body[data-theme] .content-band article,
body[data-theme] .faq-list,
body[data-theme] .related-grid a,
body[data-theme] .keyword-cloud {
  border-color: var(--a2t-line);
  background: var(--a2t-surface);
  color: var(--a2t-ink);
  box-shadow: none;
}

body[data-theme] .content-band h2,
body[data-theme] .content-band h3,
body[data-theme] .faq-list h2,
body[data-theme] .related h2 {
  color: var(--a2t-ink);
}

body[data-theme] .content-band p,
body[data-theme] .content-band li,
body[data-theme] .faq-list p,
body[data-theme] .related-grid a {
  color: var(--a2t-muted);
}

body[data-theme] .site-footer {
  border-top: 1px solid var(--a2t-line);
  background: var(--a2t-page);
  color: var(--a2t-muted);
}

body[data-theme] .site-footer span,
body[data-theme] .site-footer a {
  color: var(--a2t-muted);
}

body[data-theme] .site-footer a:hover {
  color: var(--a2t-ink);
}

body[data-theme] .template-switcher {
  border: 1px solid var(--a2t-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--a2t-surface) 94%, transparent);
  box-shadow: none;
}

body[data-theme] .template-switcher span {
  color: var(--a2t-muted);
}

body[data-theme] .template-switcher button {
  border: 1px solid var(--a2t-line-strong);
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
}

body[data-theme] .template-switcher button:hover,
body[data-theme] .template-switcher button.active {
  background: var(--a2t-surface);
  color: var(--a2t-ink);
}

@media (max-width: 980px) {
  body[data-theme] .topbar {
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 12px;
  }

  body[data-theme] .topnav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 10px;
    gap: 18px;
  }

  body[data-theme] .tool-grid,
  body[data-template='listen'] .tool-grid,
  body[data-page='voice-recorder'] .tool-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme] .primary-panel,
  body[data-template='listen'] .primary-panel,
  body[data-page='voice-recorder'] .primary-panel {
    border-right: 0;
    border-bottom: 1px solid var(--a2t-line-strong);
  }
}

@media (max-width: 700px) {
  body[data-theme] .topbar {
    padding: 0 14px;
  }

  body[data-theme] .brand-name {
    font-size: 15px;
  }

  body[data-theme] .shell {
    width: min(100% - 20px, 1058px);
  }

  body[data-theme] .hero,
  body[data-template='listen'] .hero,
  body[data-page='voice-recorder'] .hero {
    padding: 46px 0 24px;
  }

  body[data-theme] h1,
  body[data-template='listen'] h1,
  body[data-page='voice-recorder'] .hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  body[data-theme] .tool-shell,
  body[data-template='listen'] .tool-shell,
  body[data-page='voice-recorder'] .tool-shell {
    border-radius: 18px;
  }

  body[data-theme] .tool-panel,
  body[data-template='listen'] .tool-panel,
  body[data-page='voice-recorder'] .tool-panel {
    padding: 14px;
  }

  body[data-theme] textarea,
  body[data-template='listen'] textarea,
  body[data-page='voice-recorder'] textarea {
    min-height: 260px;
  }
}

/* Palette lock: white, charcoal, black, orange. No template magenta bleed. */
.topbar,
body[data-template] .topbar,
body[data-template='listen'] .topbar,
body[data-theme] .topbar {
  min-height: 52px;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  gap: 20px;
  border-bottom: 1px solid var(--a2t-line);
  background: color-mix(in srgb, var(--a2t-surface) 92%, transparent);
  color: var(--a2t-ink);
  box-shadow: none;
}

.brand,
.topbar .brand,
.topbar .brand-name,
body[data-template='listen'] .brand,
body[data-template='listen'] .brand-name,
body[data-template='listen'] .topnav a {
  color: var(--a2t-ink);
}

.brand-mark,
body[data-template='listen'] .brand-mark {
  border-color: var(--a2t-line-strong);
  background: var(--a2t-surface);
  color: var(--a2t-accent);
}

.topnav a:hover,
.topnav a[aria-current='page'],
body[data-template='listen'] .topnav a:hover,
body[data-template='listen'] .topnav a[aria-current='page'] {
  background: transparent;
  color: var(--a2t-accent);
}

body,
body[data-template='listen'],
body[data-page='voice-recorder'] {
  --signal: var(--a2t-accent);
  --coral: var(--a2t-accent);
  --violet: var(--a2t-accent);
}

.hero,
body[data-template='listen'] .hero,
body[data-template='listen'][data-page='voice-recorder'] .hero,
body[data-theme] .hero {
  min-height: 0;
  display: block;
  padding: 74px 0 34px;
  background: transparent;
  text-align: center;
}

.hero-copy,
body[data-template='listen'] .hero-copy,
body[data-template='listen'][data-page='voice-recorder'] .hero-copy,
body[data-theme] .hero-copy {
  display: block;
  width: min(860px, 100%);
  max-width: 860px;
  min-height: 0;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .eyebrow,
body[data-template='listen'] .hero-copy .eyebrow,
body[data-template='listen'][data-page='voice-recorder'] .hero-copy .eyebrow,
body[data-theme] .hero-copy .eyebrow {
  position: static;
  margin: 0 0 14px;
  color: var(--a2t-accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.hero h1,
body[data-template='listen'] .hero h1,
body[data-template='listen'][data-page='voice-recorder'] .hero h1,
body[data-theme] .hero h1 {
  max-width: 880px;
  margin: 0 auto;
  background: none;
  color: var(--a2t-ink);
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.hero .lede,
body[data-template='listen'] .hero .lede,
body[data-template='listen'][data-page='voice-recorder'] .hero .lede,
body[data-theme] .hero .lede {
  position: static;
  width: min(760px, 100%);
  max-width: 760px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--a2t-muted);
  font-size: 15px;
  font-weight: 430;
  line-height: 1.7;
  text-align: center;
  transform: none;
  backdrop-filter: none;
}

.byline,
.hero .byline,
body[data-template='listen'] .hero .byline,
body[data-theme] .hero .byline {
  width: min(840px, 100%);
  margin: 10px auto 0;
  color: var(--a2t-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

body[data-template='listen'] .tool-shell,
body[data-template='listen'][data-page='voice-recorder'] .tool-shell,
body[data-theme] .tool-shell {
  border-color: var(--a2t-line-strong);
  background: var(--a2t-surface);
  box-shadow: none;
}

body[data-template='listen'] .tool-shell-head,
body[data-theme] .tool-shell-head {
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
}

body[data-template='listen'] .tool-shell-head h2,
body[data-template='listen'] .tool-shell-head > span,
body[data-theme] .tool-shell-head h2,
body[data-theme] .tool-shell-head > span {
  color: var(--a2t-ink);
}

body[data-template='listen'] .tool-button.primary,
body[data-template='listen'] #startBothButton,
body[data-template='listen'] #startRecordButton,
body[data-template='listen'][data-page='voice-recorder'] #startRecordButton,
body[data-template='listen'][data-page='voice-recorder'] #startBothButton,
body[data-theme] .tool-button.primary {
  border-color: var(--a2t-accent);
  background: var(--a2t-accent);
  color: #fff;
}

body[data-template='listen'] #pauseRecordButton,
body[data-template='listen'][data-page='voice-recorder'] #pauseRecordButton,
body[data-template='listen'] #stopButton,
body[data-template='listen'][data-page='voice-recorder'] #stopButton {
  border-color: transparent;
  background: var(--a2t-accent-soft);
  color: var(--a2t-accent);
}

body[data-template='listen'] .mic-button .mic-core,
body[data-template='listen'][data-page='voice-recorder'] .mic-button .mic-core,
body[data-page='voice-recorder'] .mic-button .mic-core,
body[data-theme] .mic-button .mic-core {
  color: var(--a2t-muted);
  background: transparent;
  box-shadow: none;
}

body[data-template='listen'] .answer-card {
  background: var(--a2t-ink);
  color: var(--a2t-surface);
  box-shadow: none;
}

input[type='checkbox'],
input[type='radio'],
input[type='range'] {
  accent-color: var(--a2t-accent);
}

.wave span,
body[data-template='listen'] .wave span,
body[data-page='voice-recorder'] .wave span,
body[data-theme] .wave span {
  background: var(--a2t-accent);
}

.tool-shell-head > span,
body[data-template='listen'] .tool-shell-head > span,
body[data-theme] .tool-shell-head > span {
  border-color: color-mix(in srgb, var(--a2t-accent) 34%, var(--a2t-line-strong));
  background: var(--a2t-surface);
  color: var(--a2t-ink);
}

.download-link,
body[data-template='listen'] .download-link,
body[data-page='voice-recorder'] .download-link,
body[data-theme] .download-link {
  border-color: var(--a2t-line-strong);
  background: var(--a2t-surface-soft);
  color: var(--a2t-ink);
}

@media (max-width: 700px) {
  .hero,
  body[data-template='listen'] .hero,
  body[data-template='listen'][data-page='voice-recorder'] .hero,
  body[data-theme] .hero {
    padding: 46px 0 24px;
  }

  .hero h1,
  body[data-template='listen'] .hero h1,
  body[data-template='listen'][data-page='voice-recorder'] .hero h1,
  body[data-theme] .hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }
}

/* AEO info-gain table (shared, token-free) */
.info-table{width:100%;border-collapse:collapse;margin:14px 0 18px;font-size:15px;border:1px solid rgba(120,130,150,0.28);border-radius:12px;overflow:hidden}
.info-table th,.info-table td{padding:10px 14px;text-align:left;border-bottom:1px solid rgba(120,130,150,0.22);vertical-align:top}
.info-table thead th{background:rgba(120,130,150,0.12);font-weight:800}
.info-table tbody tr:last-child td{border-bottom:0}
