:root {
  --bg: #0b1220;
  --bg-soft: #101827;
  --panel: #121a2b;
  --panel-2: #182235;
  --text: #f1f5f9;
  --muted: #a7b4c6;
  --border: #2d3a50;
  --accent: #354D75;
  --accent-strong: #3fb8aa;
  --accent2: #93c5fd;
  --warn: #fbbf24;
  --danger: #f87171;
  --success: #86efac;
  --accent-soft: rgba(63, 184, 170, 0.14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, rgba(20,184,166,0.16), transparent 32%), linear-gradient(180deg, #070b14 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px;
}
.ttp-simple-logo {
  max-width: 640px;
  margin: 18px auto 22px;
  padding: 0 16px;
}

.ttp-simple-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.card {
  background: rgba(18, 26, 43, 0.94);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}
h1, h2, h3 { margin-top: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 0.98; margin-bottom: 14px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
h3 { font-size: 19px; margin-bottom: 14px; }
.hero-card { padding: 34px; position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; inset: auto -120px -160px auto; width: 320px; height: 320px; border-radius: 50%; background: rgba(94,234,212,0.12); filter: blur(6px); }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand-mark { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #07111f; font-weight: 900; box-shadow: 0 10px 30px rgba(94,234,212,0.22); }
.brand-name { font-weight: 800; color: var(--text); }
.hero-subtitle { max-width: 820px; font-size: 18px; color: var(--muted); margin-bottom: 18px; }
p, li { line-height: 1.58; }
.muted { color: var(--muted); }
.warning {
  border-left: 4px solid var(--warn);
  padding: 12px 14px;
  background: rgba(251,191,36,0.08);
  border-radius: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row {
  display: grid;
  grid-template-columns: 170px 1fr 105px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.mt-8 {
  margin-top: 8px;
}
.tone-texture-row {
  margin-top: 14px;
}
.onboarding-texture-inline {
  display: none;
  margin: -4px 0 12px 170px;
}
.quick-start-title {
  margin-top: 20px;
}
.status-grid-session,
.range-results-grid {
  margin-top: 18px;
}
.meter-panel {
  margin-top: 16px;
}
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
  .onboarding-texture-inline {
    margin: 8px 0 12px;
  }
}
label { font-weight: 750; color: var(--text); }
input[type="range"], input[type="number"], input[type="text"], select {
  width: 100%;
}
input[type="number"], input[type="text"], select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1525;
  color: var(--text);
}
input[type="checkbox"] { transform: scale(1.1); }
button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
button:hover { transform: translateY(-1px); filter: brightness(1.04); }
button:active { transform: translateY(0); }
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #f8fafc; box-shadow: 0 10px 22px rgba(20,184,166,0.2); }
.secondary { background: #24344f; color: #dbeafe; border: 1px solid rgba(147,197,253,0.25); }
.tone-mark-added { background: #1f4d56; box-shadow: 0 6px 14px rgba(20,184,166,0.12); }
.ghost { background: #162033; color: var(--text); border: 1px solid var(--border); }
.warn-btn { background: var(--warn); color: #3b1d00; }
.danger { background: var(--danger); color: white; }
.box {
  background: rgba(13, 21, 37, 0.88);
  border: 1px solid rgba(147,197,253,0.14);
  border-radius: 18px;
  padding: 18px;
}
.meter {
  height: 12px;
  background: #0f172a;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.08s linear;
}
.big {
  font-size: 32px;
  font-weight: bold;
  margin: 4px 0;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: #18243a;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
}
.pill.active {
  color: #f8fafc;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(94,234,212,0.14);
}
.mini {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .status-grid { grid-template-columns: 1fr; }
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}
.kbd {
  background: #111827;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 2px 8px;
  font-family: monospace;
}
canvas {
  width: 100%;
  max-width: 100%;
  background: #08111f;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
}
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.topnav a {
  color: var(--text);
  text-decoration: none;
  background: #111827;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.chart-wrap {
  position: relative;
}
.chart-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.96);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  white-space: nowrap;
  transform: translate(10px, -110%);
}
.run-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #111827;
  font-size: 12px;
}
.run-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.zoom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.zoom-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zoom-field input {
  width: 100%;
}
.results-subtable {
  width: 100%;
  margin-top: 10px;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.results-subtable th, .results-subtable td {
  font-size: 12px;
  padding: 6px 8px;
}
.results-subtable thead th {
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.results-subrow td {
  padding-top: 0;
}
.next-step-panel {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 17, 31, 0.96));
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}
.next-step-panel.is-visible {
  display: block;
}
.next-step-panel h3 {
  margin-bottom: 8px;
  font-size: 22px;
}
.range-check-toggle {
  margin-top: 14px;
}
.range-check-content {
  display: none;
  margin-top: 18px;
}
.range-check-content.is-open {
  display: block;
}
.advanced-settings {
  margin-top: 14px;
  border: 1px solid rgba(147,197,253,0.16);
  border-radius: 14px;
  background: rgba(8,17,31,0.45);
  padding: 12px;
}
.advanced-settings summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}
.advanced-settings .row:first-of-type {
  margin-top: 14px;
}
#section3 .grid-3 {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  align-items: start;
}
#section3 .grid-3 > .box {
  min-width: 0;
  overflow: hidden;
}
#section3 .grid-3 > .box:first-child .row {
  grid-template-columns: minmax(100px, 130px) minmax(0, 1fr);
  align-items: start;
}
#section3 .grid-3 > .box:first-child .row .mini {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}
#section3 .advanced-settings {
  overflow: hidden;
}
#section3 .advanced-settings .row {
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px 10px;
  align-items: center;
}
#section3 .advanced-settings .row label,
#section3 .advanced-settings .row .mini,
#section3 .advanced-settings .row select {
  grid-column: 1 / -1;
}
#section3 .advanced-settings .row input[type="range"] {
  min-width: 0;
  width: 100%;
}
#section3 .advanced-settings .row input[type="number"] {
  width: 86px;
  max-width: 86px;
  min-width: 0;
}
#section3 .advanced-settings .row select {
  min-width: 0;
  width: 100%;
}
@media (max-width: 1100px) {
  #section3 .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  #section3 .grid-3 > .box:first-child .row,
  #section3 .advanced-settings .row {
    grid-template-columns: 1fr;
  }
  #section3 .grid-3 > .box:first-child .row .mini,
  #section3 .advanced-settings .row label,
  #section3 .advanced-settings .row .mini,
  #section3 .advanced-settings .row select {
    grid-column: 1;
  }
  #section3 .advanced-settings .row input[type="number"] {
    width: 100%;
    max-width: none;
  }
}
.next-step-copy {
  max-width: 760px;
  color: var(--muted);
}
.range-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.range-result-detail {
  padding: 14px 16px;
  border: 1px solid rgba(147,197,253,0.16);
  border-radius: 14px;
  background: rgba(13, 21, 37, 0.82);
  font-size: 16px;
  line-height: 1.45;
}
.range-result-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.frequency-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.frequency-summary .box {
  border-color: rgba(148, 163, 184, 0.28);
}
.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
}
.action-link.primary {
  background: var(--accent);
  color: #052e16;
}
.action-link.secondary {
  background: var(--accent2);
  color: #082f49;
}
.trust-text {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.tone-activity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #111827;
  color: var(--muted);
  font-weight: bold;
}
.tone-activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(100, 116, 139, 0);
}
.tone-activity.is-playing {
  color: var(--text);
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(5, 46, 22, 0.38);
}
.tone-activity.is-playing .tone-activity-dot {
  background: var(--accent);
  animation: tonePulse 0.9s ease-in-out infinite;
}
.tone-activity.is-waiting {
  border-color: rgba(56, 189, 248, 0.35);
}
.tap-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tap-response-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@keyframes tonePulse {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

input[type="range"] {
  accent-color: var(--accent);
  min-height: 28px;
}
.ear-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ear-card h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(94,234,212,0.5);
}
.tuning-control-group {
  border-radius: 16px;
  padding: 10px 12px 2px;
  margin: -6px -12px 10px;
}
.tuning-control-group .row:last-child {
  margin-bottom: 0;
}
.step-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(94,234,212,0.1);
  border: 1px solid rgba(94,234,212,0.22);
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.onboarding-card {
  position: relative;
  border-color: rgba(94, 234, 212, 0.42);
  background: linear-gradient(135deg, rgba(18, 26, 43, 0.98), rgba(8, 17, 31, 0.94));
}
.onboarding-close-button {
  position: fixed;
  top: 16px;
  right: 16px;
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  background: #24344f;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  cursor: pointer;
  z-index: 20000;
  pointer-events: auto;
}
.onboarding-close-button.is-visible {
  display: block;
}
.onboarding-card-actions,
.onboarding-choice-actions,
.onboarding-popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.onboarding-choice-actions {
  display: none;
}
.onboarding-choice-actions.is-visible {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.onboarding-choice {
  min-height: 58px;
  font-size: 18px;
}
.marked-tones-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(94,234,212,0.24);
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.7);
}
.marked-tone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.marked-tone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #111827;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.marked-tone button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  background: rgba(248,113,113,0.14);
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.28);
  line-height: 1;
}
.onboarding-highlight {
  position: relative;
  z-index: 1002;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.9),
              0 0 32px rgba(94, 234, 212, 0.45);
}
.onboarding-dimmed {
  opacity: 0.28;
  pointer-events: none;
}
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  z-index: 1000;
  pointer-events: none;
}
.onboarding-overlay.is-result-screen {
  background: rgba(2, 6, 23, 0.9);
}
.onboarding-popover {
  position: fixed;
  z-index: 1003;
  max-width: 360px;
  background: #0f172a;
  border: 1px solid rgba(94, 234, 212, 0.45);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}
.onboarding-popover p {
  margin: 0;
}
.onboarding-popover .mini {
  margin-top: 10px;
}
.onboarding-popover.is-headphone-step {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #101827);
}
.onboarding-popover.is-headphone-step p {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}
.onboarding-popover.is-headphone-step .mini {
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.headphone-step-copy {
  display: grid;
  gap: 14px;
}
.headphone-step-copy strong {
  color: #99f6e4;
}
.headphone-step-copy p {
  margin: 0;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 500 !important;
}
.onboarding-popover.is-headphone-step .onboarding-popover-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.onboarding-popover.is-headphone-step button {
  display: flex;
  align-items: center;
  min-height: 52px;
  justify-content: center;
  font-size: 16px;
}
.onboarding-popover.is-result-screen {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  background: #0f172a;
}
.result-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}
.result-copy {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}
.result-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}
.result-section h3 {
  margin-bottom: 16px;
  font-size: 22px;
}
.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.result-detail {
  padding: 14px 16px;
  border: 1px solid rgba(147,197,253,0.16);
  border-radius: 14px;
  background: rgba(13, 21, 37, 0.82);
  font-size: 17px;
  line-height: 1.45;
}
.result-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.result-upgrade {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 18px;
  background: rgba(94,234,212,0.08);
}
.result-upgrade p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
}
.onboarding-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .frequency-summary { grid-template-columns: 1fr; }
  .range-result-details { grid-template-columns: 1fr; }
  .action-link { width: 100%; }
  .onboarding-choice-actions.is-visible { grid-template-columns: 1fr; }
  .onboarding-popover {
    left: 16px !important;
    right: 16px !important;
    max-width: none;
  }
  .onboarding-popover.is-headphone-step {
    left: 50% !important;
    top: max(88px, 50%) !important;
    right: auto !important;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
    padding: 22px;
  }
  .onboarding-popover.is-headphone-step p {
    font-size: 22px;
  }
  .onboarding-popover.is-headphone-step .mini {
    font-size: 16px;
    line-height: 1.6;
  }
  .onboarding-popover.is-headphone-step button {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }
  .onboarding-popover.is-result-screen {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 22px;
  }
  .result-details { grid-template-columns: 1fr; }
  .result-actions button { width: 100%; }
}
	[hidden] {
  display: none !important;
}
.floating-feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  padding: 10px 16px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f8fafc;

  border: none;
  font-weight: 800;

  box-shadow: 0 12px 28px rgba(20,184,166,0.25);
}
@media (max-width: 700px) {
  .floating-feedback-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}
.legal-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 24px 32px;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  text-align: center;
  font-size: 12px;
}

.legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .legal-footer {
    padding: 8px 18px 74px;
  }
}
.stop-btn {
  background: var(--danger-soft);
  color: #ffb3b5;
  border: 1px solid var(--danger);
  box-shadow: 0 6px 14px rgba(229, 72, 77, 0.15);
}

.stop-btn:hover {
  background: rgba(229, 72, 77, 0.25);
  filter: brightness(1.05);
}