html[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #0f172a;
  --ink: #f4f8ff;
  --muted: rgba(244, 248, 255, 0.78);
  --subtle: rgba(244, 248, 255, 0.62);
  --line: rgba(244, 248, 255, 0.12);
  --line-strong: rgba(244, 248, 255, 0.22);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.2);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.45);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.55);
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f8ff;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --sky-border: #93c5fd;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(37, 99, 235, 0.09);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
.no-trans, .no-trans * { transition: none !important; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 16px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: 46px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark { display: inline-flex; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover, .nav-link.is-current {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--sky-border); color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.ila-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
.ila-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ila-btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}
.ila-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.ila-btn-dark {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.ila-btn-dark:hover:not(:disabled) { background: #1e293b; border-color: #1e293b; }
.ila-btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.ila-btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--sky-border); }
.ila-btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.ila-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.ila-btn-sm:hover:not(:disabled) { background: var(--surface-2); border-color: var(--sky-border); }
.ila-btn-sm.ila-btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.ila-btn-sm.ila-btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.ila-btn-sm.ila-btn-dark { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.ila-btn-xs { min-height: 30px; padding: 0 10px; font-size: 12px; background: var(--surface); border-color: var(--line-strong); color: var(--ink); }

.section { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-note { margin: 0; max-width: 46ch; color: var(--muted); font-size: 15px; }

.home-hero {
  padding: 52px 0 60px;
  background:
    radial-gradient(60% 90% at 10% 15%, rgba(37, 99, 235, 0.11), transparent 65%),
    radial-gradient(55% 85% at 92% 20%, rgba(147, 197, 253, 0.28), transparent 68%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  margin-bottom: 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); margin: 16px 0 24px; max-width: 52ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.pills-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tool-pill.is-live { color: var(--ink); border-color: var(--sky-border); }
.tool-pill.is-live svg { color: var(--accent); }
.tool-pill:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-visual-col { display: flex; flex-direction: column; gap: 16px; }
.hero-visual {
  margin: 0;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.hero-explore-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
  transition: background 0.15s ease, transform 0.12s ease;
}
.hero-explore-bar:hover { background: var(--accent-hover); transform: translateY(-1px); }

.steps-section { background: var(--bg); padding: 48px 0 56px; border-top: 0; }
.steps-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.steps-head h2 { font-size: 32px; }
.steps-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.step-card:hover { border-color: var(--sky-border); box-shadow: var(--shadow-md); }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(15, 23, 42, 0.12);
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); }


.flagship-section { background: var(--surface-2); }
.flagship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.flagship-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.flagship-card:hover { border-color: var(--sky-border); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.card-code { color: var(--subtle); letter-spacing: 0.06em; }
.card-status.is-live {
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.flagship-card h3 { font-size: 24px; }
.flagship-card h3 a:hover { color: var(--accent); }
.card-desc { margin: 0; color: var(--muted); font-size: 15px; }
.card-specs { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; display: grid; gap: 6px; }
.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-formats { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }

.suite-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.suite-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 0.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.suite-row:last-child { border-bottom: 0; }
.suite-row.is-queued { background: var(--surface-2); }
.suite-idx { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); }
.suite-row.is-live .suite-idx { color: var(--accent); font-weight: 600; }
.suite-main h3 { font-size: 18px; margin-bottom: 4px; }
.suite-main h3 a:hover { color: var(--accent); }
.suite-main p { margin: 0; font-size: 14px; color: var(--muted); }
.suite-io { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.suite-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}

.craft-section { background: var(--surface-2); }
.craft-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.craft-visual {
  margin: 0;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.craft-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.craft-copy p { color: var(--muted); margin: 14px 0 0; max-width: 58ch; }

.tool-hero {
  padding: 32px 0 44px;
  background:
    radial-gradient(60% 90% at 12% 10%, rgba(37, 99, 235, 0.09), transparent 65%),
    var(--bg);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.tool-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.tool-sub { margin: 8px 0 0; color: var(--muted); font-size: 16px; max-width: 66ch; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mono-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
}

.ila-deck {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ila-deck-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.ila-rail-left { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.ila-rail-meta { color: var(--muted); }
.ila-led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ila-deck[data-state="busy"] .ila-led { opacity: 0.45; }
.ila-deck[data-state="done"] .ila-led { background: #16a34a; }

/* File selection and drag feedback for all audio workbenches. */
.ila-cmd-bar {
  display: grid;
  gap: 10px;
  padding: 20px;
}
.ila-upload-target {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 132px;
  padding: 14px;
  border: 1px dashed var(--subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.ila-upload-target > span { pointer-events: none; }
.ila-upload-target:hover, .ila-upload-zone.is-drag .ila-upload-target {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ila-upload-target:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ila-upload-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 21px;
  line-height: 1;
}
.ila-upload-label { font-size: 15px; font-weight: 600; }
.ila-upload-choice { color: var(--muted); font-size: 13px; }
.ila-upload-choice strong {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.ila-upload-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.ila-upload-formats { color: var(--muted); font-size: 12px; }
.ila-msg { padding: 12px 20px; font-size: 14px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.ila-msg[data-tone="error"] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 500; }

.ila-stage { border-top: 1px solid var(--line); padding: 20px; display: grid; gap: 18px; }
.ila-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ila-file-info { display: flex; flex-direction: column; gap: 2px; }
.ila-file-name { font-weight: 600; font-size: 15px; }
.ila-file-specs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ila-inline-btns { display: flex; gap: 8px; }

.ila-ab-bar {
  display: inline-flex;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  gap: 4px;
  justify-self: start;
}
.ila-seg {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
}
.ila-seg.is-active { background: var(--surface); color: var(--accent-hover); box-shadow: var(--shadow-sm); }

.ila-wave-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ila-wave { width: 100%; height: 156px; display: block; cursor: pointer; }
.ila-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
}
.ila-time-hint { font-family: var(--font-body); font-size: 13px; }

.ila-meter-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ila-meter-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ila-meter-item span { font-size: 12px; color: var(--muted); }
.ila-meter-item strong { font-family: var(--font-mono); font-size: 16px; font-weight: 600; }

.ila-controls-grid { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.ila-ctrl-group { display: flex; flex-direction: column; gap: 10px; }
.ila-transport { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ila-range-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ila-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.ila-field input, .ila-field select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}
.ila-slider-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.ila-slider-field strong { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.ila-slider-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.ila-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); min-height: 44px; cursor: pointer; }
.ila-check input { width: 16px; height: 16px; accent-color: var(--accent); }

.ila-track-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ila-track-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ila-track-item:last-child { border-bottom: 0; }
.ila-track-idx, .ila-track-dur { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.ila-track-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ila-track-acts { display: flex; gap: 6px; }

.ila-export-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ila-export-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ila-progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.ila-progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.12s linear; }


.engage-bar { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.engage-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.engage-like[data-gf-liked] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.engage-num { font-family: var(--font-mono); font-size: 12px; padding-left: 6px; border-left: 1px solid var(--line-strong); }
.engage-toast { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.engage-privacy { font-size: 13px; color: var(--subtle); }

.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.example-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.example-io { display: grid; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.example-io > div { display: flex; flex-direction: column; gap: 2px; }
.example-io strong { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.io-tag { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.io-tag.is-out { color: var(--accent); }
.example-card p { margin: 0; font-size: 14px; color: var(--muted); }

.prose-wrap { max-width: 72ch; margin-left: auto; margin-right: auto; }
.prose-wrap h2 { margin: 32px 0 12px; font-size: 26px; }
.prose-wrap h2:first-child { margin-top: 0; }
.prose-wrap h3 { margin: 24px 0 10px; font-size: 19px; }
.prose-wrap p { margin: 0 0 16px; color: var(--ink); }
.prose-wrap ul, .prose-wrap ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-wrap code { font-family: var(--font-mono); font-size: 14px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.faq-section { background: var(--surface-2); }
.faq-wrap, .comments-wrap { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-ans { padding-bottom: 18px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.faq-ans p { margin: 0; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { border-color: var(--sky-border); box-shadow: var(--shadow-md); }
.related-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.related-card strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.related-card span:last-child { font-size: 14px; color: var(--muted); }

.comment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.comment-row input, .comment-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
}
.comment-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-msg { font-size: 13px; color: var(--accent); }
.comment-list { display: grid; gap: 12px; }
.comment-empty-note { display: none; color: var(--muted); font-size: 14px; margin: 0; }
.comment-list[data-gf-empty] .comment-empty-note { display: block; }
.comment-list[data-gf-off] { display: none; }
.comment-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.comment-item[data-gf-owner] { border-color: var(--sky-border); background: var(--accent-soft); }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-meta time { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.owner-badge { font-family: var(--font-mono); font-size: 12px; color: #ffffff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.comment-body { margin: 0 0 8px; font-size: 15px; }
.comment-reply-btn { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.comment-replies { margin-top: 12px; padding-left: 18px; border-left: 2px solid var(--sky-border); display: grid; gap: 10px; }
.comment-reply-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-reply-banner { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.comment-reply-item { padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.reply-to-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.page-hero { padding: 48px 0 64px; }
.legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); margin: 12px 0 28px; }
.page-body { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-tagline { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.footer-spec { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a { font-size: 14px; color: var(--muted); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }

.ask-ai-band { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ask-ai-kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; }
.ask-ai-kicker:hover { text-decoration: underline; }
.ask-ai-copy { margin: 0; font-size: 14px; color: var(--muted); }
.ask-ai-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.ask-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.ask-ai-btn:hover { border-color: var(--sky-border); background: var(--accent-soft); transform: translateY(-1px); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }

.auth-slot { display: flex; align-items: center; }
.account-menu { position: relative; }
.account-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; }
.account-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; z-index: 60; }
.account-drop-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.account-drop-email { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-drop-credits { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 4px; }
.account-drop-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; }
.account-drop-item:hover { background: var(--surface-2); }
.account-drop-item.is-danger { color: var(--accent); }
.account-wrap { max-width: 760px; }
.account-stack { display: grid; gap: 20px; margin-top: 24px; }
.account-card { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.account-stack .account-card { margin-top: 0; }
.account-card h2 { font-size: 20px; margin-bottom: 8px; }
.account-card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.account-profile-main { display: flex; align-items: center; gap: 14px; }
.account-avatar-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-strong); }
.account-email { margin: 2px 0 0 !important; font-family: var(--font-mono); font-size: 13px !important; }
.account-profile-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-stat { display: flex; flex-direction: column; align-items: flex-end; }
.account-stat span { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.account-stat strong { font-family: var(--font-mono); font-size: 22px; color: var(--ink); }
.account-ledger-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-ledger-table th, .account-ledger-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.account-ledger-table th { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); font-weight: 500; }
.account-empty { margin: 0 !important; font-size: 14px !important; }
.account-danger { border-color: rgba(37, 99, 235, 0.35); }
.is-danger-btn { color: var(--accent); border-color: var(--sky-border); }
.account-delete-confirm { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); }
.account-msg { margin: 10px 0 0 !important; font-family: var(--font-mono); font-size: 12px !important; color: var(--accent) !important; }

html[data-theme="dark"] .site-header { background: rgba(15, 23, 42, 0.92); }
html[data-theme="dark"] .nav-link { color: rgba(244, 248, 255, 0.82); }
html[data-theme="dark"] .ila-btn-ghost,
html[data-theme="dark"] .ila-btn-sm,
html[data-theme="dark"] .tool-pill { background: #1e293b; color: #f4f8ff; border-color: rgba(244, 248, 255, 0.22); }
html[data-theme="dark"] .tool-pill.is-live { border-color: #93c5fd; }
html[data-theme="dark"] .tool-pill.is-live svg { color: #93c5fd; }
html[data-theme="dark"] .home-hero {
  background:
    radial-gradient(60% 90% at 12% 18%, rgba(37, 99, 235, 0.22), transparent 65%),
    radial-gradient(50% 80% at 90% 22%, rgba(37, 99, 235, 0.14), transparent 68%),
    var(--bg);
}
html[data-theme="dark"] .tool-hero {
  background: radial-gradient(60% 90% at 12% 10%, rgba(37, 99, 235, 0.18), transparent 65%), var(--bg);
}
html[data-theme="dark"] .brand-tag,
html[data-theme="dark"] .card-status.is-live,
html[data-theme="dark"] .mono-pill,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.is-current,
html[data-theme="dark"] .ila-seg.is-active,
html[data-theme="dark"] .engage-like[data-gf-liked],
html[data-theme="dark"] .ila-msg[data-tone="error"],
html[data-theme="dark"] .tool-pill:hover { color: #93c5fd; }
html[data-theme="dark"] .step-num { color: rgba(244, 248, 255, 0.12); }
html[data-theme="dark"] .ila-btn-dark,
html[data-theme="dark"] .ila-btn-sm.ila-btn-dark { background: #f4f8ff; color: #0f172a; border-color: #f4f8ff; }
html[data-theme="dark"] .ila-btn-dark:hover:not(:disabled) { background: #eff6ff; border-color: #eff6ff; }
html[data-theme="dark"] .flagship-section,
html[data-theme="dark"] .craft-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .site-footer { background: #0f172a; }

@media (max-width: 900px) {
  .hero-grid, .steps-grid, .craft-grid, .flagship-grid, .examples-grid, .related-grid, .ila-controls-grid { grid-template-columns: 1fr; }
  .suite-row { grid-template-columns: 40px 1fr; }
  .suite-io, .suite-action { grid-column: 2; }
  .tool-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 8px; }
  .header-actions { align-self: flex-end; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-cta-row .ila-btn, .ila-cmd-bar .ila-btn, .ila-export-bar .ila-btn { width: 100%; }
  .ila-cmd-bar { padding: 14px; }
  .ila-range-pair, .ila-meter-strip { grid-template-columns: 1fr; }
  .ila-deck-rail { flex-direction: column; align-items: flex-start; }
  .ila-track-item { grid-template-columns: 28px 1fr; }
  .ila-track-dur, .ila-track-acts { grid-column: 2; }
  .ask-ai-band { padding: 18px 16px; }
  .account-stat { align-items: flex-start; }
}



/* Centered Search-First Hero & Categorized Tool Catalog */
.hero-centered {
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered .hero-lead {
  max-width: 56ch;
  margin: 14px auto 26px;
}
.hero-search {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--sky-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.hero-search-ico {
  display: inline-flex;
  color: var(--subtle);
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 8px 4px;
  outline: none;
}
.hero-search-input:focus,
.hero-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.hero-search-input::placeholder { color: var(--subtle); }
.hero-search-clear {
  border: 0;
  background: var(--surface-2);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.hero-search-clear:hover { color: var(--ink); }
.hero-search-btn { min-height: 40px; padding: 0 20px; border-radius: 11px; }

.hero-centered .hero-pills { justify-content: center; margin-bottom: 22px; }
.hero-explore-wrap { width: 100%; max-width: 380px; margin-bottom: 24px; }
.hero-centered .hero-trust { justify-content: center; }

.catalog-section { background: var(--surface-2); padding: 52px 0 60px; }
.catalog-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.catalog-head h2 { font-size: 32px; }
.catalog-head p { margin: 10px 0 22px; color: var(--muted); font-size: 15px; }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cat-tab {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cat-tab:hover { border-color: var(--sky-border); color: var(--ink); }
.cat-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.24);
}
.catalog-search-status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.tool-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; }
.catalog-section .tool-grid { grid-template-columns: 1fr; }
.tool-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tool-group-head h3 { font-size: 19px; }
.tool-group-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.tool-card.is-live:hover {
  border-color: var(--sky-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card.is-queued { opacity: 0.9; }
.tool-card-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-card-ico.is-muted { background: var(--surface-2); color: var(--muted); }
.tool-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-card h4 { font-size: 17px; font-weight: 700; }
.tool-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.tool-badge.is-live {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(37, 99, 235, 0.2);
}
.tool-card-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.tool-card-io { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); margin-top: 4px; }
.tool-card-arrow { font-size: 20px; color: var(--subtle); line-height: 1; align-self: center; }
.tool-card.is-live:hover .tool-card-arrow { color: var(--accent); }

.tool-empty {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tool-empty p { margin: 0 0 14px; color: var(--muted); }

html[data-theme="dark"] .hero-search { background: #1e293b; border-color: rgba(244, 248, 255, 0.22); }
html[data-theme="dark"] .cat-tab { background: #1e293b; color: rgba(244, 248, 255, 0.8); border-color: rgba(244, 248, 255, 0.18); }
html[data-theme="dark"] .cat-tab.is-active { background: #2563eb; border-color: #2563eb; color: #ffffff; }
html[data-theme="dark"] .catalog-section { background: #0f172a; }
html[data-theme="dark"] .tool-badge.is-live { color: #93c5fd; }
html[data-theme="dark"] .tool-card-ico { color: #93c5fd; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: nowrap; padding: 5px 5px 5px 12px; }
  .hero-search-btn { padding: 0 14px; }
}



/* Floating Bottom-Right Feedback Widget (Template-Aligned) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fb-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease;
}
.fb-fab:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
}
.fb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.fb-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  outline: none;
}
.fb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fb-close:hover { background: var(--surface-2); color: var(--ink); }
.fb-form { display: grid; gap: 16px; }
.fb-head { padding-right: 32px; }
.fb-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.fb-head h2 { font-size: 24px; margin-bottom: 6px; }
.fb-head p { margin: 0; font-size: 14px; color: var(--muted); }
.fb-types { border: 0; padding: 0; margin: 0; }
.fb-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fb-type-btn {
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fb-type-btn:hover { border-color: var(--sky-border); color: var(--ink); }
.fb-type-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.fb-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fb-opt { font-style: normal; font-weight: 400; color: var(--muted); }
.fb-field textarea, .fb-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}
.fb-field textarea { min-height: 110px; resize: vertical; }
.fb-count { text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--subtle); }
.fb-msg { margin: 0; font-size: 13px; color: var(--accent); min-height: 1em; }
.fb-msg:empty { display: none; }
.fb-full-btn { width: 100%; min-height: 46px; }
.fb-foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.fb-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.fb-sent { padding: 18px 8px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.fb-sent-ico { color: #16a34a; }
.fb-sent h2 { font-size: 24px; }
.fb-sent p { margin: 0 0 8px; font-size: 14px; color: var(--muted); max-width: 38ch; }

html[data-theme="dark"] .fb-fab { background: #2563eb; border-color: #2563eb; color: #ffffff; }
html[data-theme="dark"] .fb-fab:hover { background: #1d4ed8; border-color: #1d4ed8; }
html[data-theme="dark"] .fb-type-btn { background: #0f172a; color: rgba(244, 248, 255, 0.78); }
html[data-theme="dark"] .fb-type-btn.is-active { background: rgba(37, 99, 235, 0.22); border-color: #93c5fd; color: #93c5fd; }

@media (max-width: 640px) {
  .fb-fab { right: 14px; bottom: 14px; padding: 0 15px; min-height: 42px; }
  .fb-backdrop { place-items: end center; padding: 10px; }
  .fb-dialog { padding: 20px; }
  .fb-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
