:root {
  color-scheme: dark;
  --bg: #0f1216;
  --panel: #171c23;
  --panel-soft: #131820;
  --grid: #2a3038;
  --grid-strong: #3c4552;
  --text: #d7dde7;
  --muted: #8fa0b5;
  --line: #4dd6ff;
  --range: #7ee787;
  --amber: #f0b35a;
  --border: #29323d;
  --border-soft: rgb(188 236 255 / 0.12);
  --danger: #ff806c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 18% 0%, rgb(77 214 255 / 0.08), transparent 28%),
    linear-gradient(180deg, #10151b 0%, #0d1116 48%, #0a0d11 100%);
  color: var(--text);
}

body.is-anchor-ad-dismissed {
  padding-bottom: 0;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.topbar,
.metric-strip,
.panel,
.ad-slot {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.055), transparent 48%),
    linear-gradient(135deg, rgb(77 214 255 / 0.028), transparent 42%),
    url("assets/ui/glass-panel-texture.png") center / cover,
    var(--panel);
  background-blend-mode: normal, normal, soft-light, normal;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.035),
    inset 0 -1px 0 rgb(0 0 0 / 0.24),
    0 16px 36px rgb(0 0 0 / 0.22);
}

.ad-slot {
  border-radius: 0;
  box-shadow: none;
}

.topbar {
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 210px 214px;
  align-items: center;
  gap: 10px 16px;
}

.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.brand-hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand-banner-image {
  width: auto;
  max-width: 100%;
  max-height: 170px;
  height: auto;
  display: block;
  border: 1px solid rgb(77 214 255 / 0.18);
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    0 14px 28px rgb(0 0 0 / 0.26),
    0 0 24px rgb(77 214 255 / 0.10);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  font-size: 15px;
  font-weight: 650;
}

p,
.tagline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 8px;
  min-width: 360px;
  align-items: center;
}

.button {
  min-width: 82px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #39424e;
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.055), transparent 52%),
    linear-gradient(180deg, #252c35 0%, #1b222b 100%);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled),
.small-button:hover,
.menu-button:hover {
  border-color: #4a6474;
  background: #242c36;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 48px;
  padding: 5px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  border-color: #307693;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 52%),
    linear-gradient(180deg, #1c5167 0%, #183341 100%);
  color: #dff8ff;
  box-shadow: 0 0 18px rgb(77 214 255 / 0.10), inset 0 1px 0 rgb(255 255 255 / 0.06);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.start-button-main {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  transition: transform 180ms ease, color 180ms ease;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}

.button-primary .button-icon {
  color: #a9f6ff;
  filter: drop-shadow(0 0 5px rgb(77 214 255 / 0.45));
}

.button-primary .start-button-main span {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.button-primary small {
  width: 100%;
  min-width: 0;
  color: #bfeeff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.button-primary.is-start-guided:not(:disabled) {
  animation: start-button-pulse 1600ms ease-in-out infinite;
  -webkit-animation: start-button-pulse 1600ms ease-in-out infinite;
}

.button-primary.is-start-attention:not(:disabled) {
  animation: start-button-attention 560ms ease-in-out 3;
  -webkit-animation: start-button-attention 560ms ease-in-out 3;
}

.button-primary.is-start-guided.is-start-tick:not(:disabled),
.button-primary.is-start-attention.is-start-tick:not(:disabled) {
  border-color: #8ee8ff;
  box-shadow: 0 0 0 5px rgb(77 214 255 / 0.18), 0 0 32px rgb(77 214 255 / 0.38), inset 0 1px 0 rgb(255 255 255 / 0.12);
  transform: translateY(-1px) scale(1.025);
}

.button-primary.is-start-guided.is-start-tick:not(:disabled) .start-button-main,
.button-primary.is-start-attention.is-start-tick:not(:disabled) .start-button-main {
  transform: scale(1.035);
}

.button-primary.is-start-guided.is-start-tick:not(:disabled) .button-icon,
.button-primary.is-start-attention.is-start-tick:not(:disabled) .button-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgb(77 214 255 / 0.85));
  transform: scale(1.22);
}

.button-primary.is-start-guided:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: skewX(-18deg);
  animation: start-button-sheen 1600ms ease-in-out infinite;
  -webkit-animation: start-button-sheen 1600ms ease-in-out infinite;
  pointer-events: none;
}

.button-primary.is-start-guided:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgb(77 214 255 / 0.62);
  border-radius: 9px;
  animation: start-button-ring 1600ms ease-out infinite;
  -webkit-animation: start-button-ring 1600ms ease-out infinite;
  pointer-events: none;
}

@keyframes start-button-pulse {
  0%,
  100% {
    border-color: #307693;
    box-shadow: 0 0 18px rgb(77 214 255 / 0.10), inset 0 1px 0 rgb(255 255 255 / 0.06);
    transform: translateY(0);
  }

  42% {
    border-color: #69dcff;
    box-shadow: 0 0 0 4px rgb(77 214 255 / 0.16), 0 0 30px rgb(77 214 255 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.10);
    transform: translateY(-1px) scale(1.035);
  }
}

@keyframes start-button-ring {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  30% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes start-button-sheen {
  0%,
  34% {
    left: -55%;
  }

  70%,
  100% {
    left: 116%;
  }
}

@keyframes start-button-attention {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  35% {
    border-color: #b2f1ff;
    box-shadow: 0 0 0 6px rgb(77 214 255 / 0.20), 0 0 34px rgb(77 214 255 / 0.42), inset 0 1px 0 rgb(255 255 255 / 0.12);
    transform: translateY(-2px) scale(1.065);
  }

  68% {
    transform: translateY(0) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-primary.is-start-guided:not(:disabled),
  .button-primary.is-start-attention:not(:disabled),
  .button-primary.is-start-guided:not(:disabled)::before,
  .button-primary.is-start-guided:not(:disabled)::after {
    animation: none;
    -webkit-animation: none;
  }
}

.start-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.start-benefits span {
  min-height: 20px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(77 214 255 / 0.24);
  border-radius: 999px;
  color: #dff8ff;
  background: rgb(77 214 255 / 0.08);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.input-state {
  position: relative;
  min-height: 34px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text);
  background: rgb(17 22 28 / 0.68);
  font-size: 13px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
}

.input-level-fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 0%;
  background:
    linear-gradient(90deg, rgb(77 214 255 / 0.26) 0%, rgb(126 231 135 / 0.20) 75%, rgb(240 179 90 / 0.24) 100%);
  box-shadow: 0 0 18px rgb(77 214 255 / 0.14);
  transition: width 90ms linear;
}

.input-state::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 55%);
  pointer-events: none;
}

.state-dot {
  position: relative;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex: none;
}

#inputStateText {
  position: relative;
  z-index: 2;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.input-detected .state-dot {
  background: var(--range);
}

.input-measuring .state-dot {
  background: var(--line);
}

.input-quiet .state-dot,
.input-unstable .state-dot {
  background: var(--amber);
}

.sensitivity-control {
  height: 36px;
  min-width: 214px;
  border: 1px solid #307693;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 92px repeat(3, 1fr);
  overflow: hidden;
  background: rgb(17 22 28 / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
}

.sensitivity-label {
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid #39424e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bcecff;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.sensitivity-label:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: -2px;
}

.sensitivity-control button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #39424e;
  color: #dff8ff;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.sensitivity-control button:first-child {
  border-left: 0;
}

.sensitivity-control button.is-active {
  color: #dff8ff;
  background: #183341;
  box-shadow: inset 0 0 0 1px rgb(77 214 255 / 0.08);
}

.sensitivity-control button:not(.is-active) {
  color: var(--muted);
}

.sensitivity-control button:hover {
  color: var(--text);
  background: #20262e;
}

.sensitivity-control button.is-active:hover {
  color: #dff8ff;
  background: #183341;
}

.debug-panel {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(260px, 1.2fr) minmax(280px, 1.4fr);
  gap: 10px 14px;
  align-items: start;
  border: 1px solid rgb(240 179 90 / 0.42);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgb(240 179 90 / 0.075), transparent 70%),
    rgb(22 18 15 / 0.92);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    0 12px 28px rgb(0 0 0 / 0.22);
}

.debug-panel[hidden] {
  display: none;
}

.debug-panel-heading {
  display: grid;
  gap: 6px;
  align-content: start;
}

.debug-panel-heading strong {
  color: #ffe1b4;
  font-size: 13px;
}

.debug-panel-heading span {
  color: #bfc8d4;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.debug-mode-control {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #4d5360;
  border-radius: 6px;
  overflow: hidden;
  background: rgb(13 17 22 / 0.78);
}

.debug-mode-control button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-left: 1px solid #343b45;
  color: #bfc8d4;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

.debug-mode-control button:first-child {
  border-left: 0;
}

.debug-mode-control button.is-active {
  color: #fff4df;
  background: rgb(240 179 90 / 0.18);
  box-shadow: inset 0 0 0 1px rgb(240 179 90 / 0.10);
}

.debug-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.debug-readouts span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 5px;
  background: rgb(8 11 15 / 0.55);
}

.debug-readouts b,
.debug-readouts output {
  display: block;
}

.debug-readouts b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.debug-readouts output {
  margin-top: 3px;
  color: #f4f7fb;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.debug-settings {
  grid-column: 1 / -1;
  max-height: 220px;
  margin: 0;
  padding: 9px 10px;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 6px;
  color: #cfdae6;
  background: rgb(5 8 11 / 0.76);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-nav {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.menu-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #39424e;
  border-radius: 6px;
  display: inline-grid;
  place-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #1a2028, #11161c);
  cursor: pointer;
}

.menu-button span {
  width: 16px;
  height: 2px;
  display: block;
  background: var(--text);
}

.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--border);
  background: #171c23;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.32);
  display: none;
}

.site-menu.is-open {
  display: grid;
}

.site-menu a {
  padding: 10px 11px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.site-menu a:hover {
  background: #20262e;
}

.ad-band-top {
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ad-between {
  display: none;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  overflow: hidden;
  justify-content: center;
}

.ad-portrait-end {
  display: none;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  overflow: hidden;
  justify-content: center;
}

.ad-reserved {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  overflow: hidden;
}

.ad-slot {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgb(255 255 255 / 0.025) 12px 24px),
    #11161c;
  font-size: 12px;
  text-transform: uppercase;
  overflow: hidden;
}

.ad-reserved.ad-rectangle-reserved,
.ad-slot.ad-slot-rectangle {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}

.ad-slot-active {
  padding: 0;
  background: #11161c;
}

.ad-slot-active .adsbygoogle {
  width: 320px;
  height: 50px;
  min-height: 0;
  max-height: 50px;
}

.ad-slot-active.ad-slot-rectangle .adsbygoogle {
  width: 300px;
  height: 250px;
  max-height: 250px;
}

.manual-anchor-ad {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 7px 10px 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgb(8 11 15 / 0.76) 38%, rgb(8 11 15 / 0.94) 100%);
}

.manual-anchor-ad-inner {
  position: relative;
  width: 320px;
  min-width: 320px;
  max-width: calc(100vw - 20px);
  height: 50px;
  pointer-events: auto;
  filter: drop-shadow(0 -8px 22px rgb(0 0 0 / 0.34));
}

body.is-anchor-ad-dismissed .manual-anchor-ad {
  padding-top: 0;
  background: transparent;
}

body.is-anchor-ad-dismissed .manual-anchor-ad-inner {
  width: auto !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  filter: none;
}

body.is-anchor-ad-dismissed .manual-anchor-ad-label,
body.is-anchor-ad-dismissed .manual-anchor-ad-slot {
  display: none;
}

.manual-anchor-ad-label {
  position: absolute;
  top: -16px;
  left: 28px;
  padding: 2px 6px 2px 5px;
  border: 1px solid rgb(188 236 255 / 0.16);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: rgb(215 221 231 / 0.72);
  background: rgb(17 22 28 / 0.94);
  font-size: 10px;
  line-height: 1;
}

.manual-anchor-ad-close {
  position: absolute;
  top: -16px;
  left: 0;
  z-index: 2;
  width: 28px;
  height: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgb(188 236 255 / 0.22);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: var(--text);
  background: rgb(17 22 28 / 0.96);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.manual-anchor-ad-close::before {
  content: "";
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
}

body.is-anchor-ad-dismissed .manual-anchor-ad-close {
  top: -22px;
  left: 50%;
  width: 58px;
  height: 22px;
  transform: translateX(-50%);
  gap: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font-size: 10px;
}

body.is-anchor-ad-dismissed .manual-anchor-ad-close::before {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}

body.is-anchor-ad-dismissed .manual-anchor-ad-close::after {
  content: "広告";
}
.manual-anchor-ad-close:hover,
.manual-anchor-ad-close:focus-visible {
  color: #fff;
  border-color: rgb(77 214 255 / 0.52);
  background: #17202a;
  outline: none;
}

.manual-anchor-ad-slot {
  border: 1px solid rgb(188 236 255 / 0.20);
  background: #11161c;
}

.manual-anchor-ad-slot.ad-slot-active {
  border-color: rgb(188 236 255 / 0.18);
}

.manual-anchor-ad-slot.ad-slot-active .adsbygoogle {
  width: 320px;
  height: 50px;
  max-height: 50px;
}

.metric-strip {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.55fr 1.55fr 1fr 0.9fr;
  overflow: hidden;
}

.metric-strip.is-sample-preview {
  min-height: 112px;
}

.sample-cta-area {
  position: relative;
}

.sample-cta-area.is-sample-preview {
  cursor: pointer;
}

.sample-cta-area.is-sample-preview > :not(.sample-cta-cover) {
  filter: blur(0.8px);
}

.graph-frame.is-sample-preview svg {
  filter: blur(0.8px);
}

.sample-cta-area.is-sample-preview::after,
.graph-frame.is-sample-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(77 214 255 / 0.20);
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgb(77 214 255 / 0.055), transparent 46%),
    rgb(8 13 18 / 0.20);
  backdrop-filter: blur(3px) saturate(1.12);
  -webkit-backdrop-filter: blur(3px) saturate(1.12);
  pointer-events: none;
  z-index: 4;
}

.sample-cta-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 12px 16px;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  border: 0;
  border-radius: inherit;
  color: #e7faff;
  background:
    radial-gradient(circle at 50% 50%, rgb(18 42 52 / 0.48), rgb(8 13 18 / 0.26) 64%),
    rgb(8 13 18 / 0.12);
  backdrop-filter: blur(3.5px) saturate(1.12);
  -webkit-backdrop-filter: blur(3.5px) saturate(1.12);
  box-shadow: inset 0 0 0 1px rgb(77 214 255 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.04);
  cursor: pointer;
  z-index: 5;
}

.sample-cta-cover[hidden] {
  display: none;
}

.sample-cta-cover strong,
.sample-cta-cover span:last-child {
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.72);
}

.sample-cta-cover strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.sample-cta-cover span:last-child {
  color: #bfeeff;
  font-size: 12px;
  line-height: 1.35;
}

.sample-cta-cover-compact {
  width: 100%;
}

.metric-cell {
  padding: 10px 14px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.metric-cell:first-of-type {
  border-left: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.metric-cell strong {
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pitch-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 7px;
  line-height: 1.2;
}

.pitch-value .pitch-note {
  color: var(--text);
}

.pitch-value .pitch-singer {
  color: #bcecff;
}

.pitch-value .pitch-hz {
  color: var(--muted);
  font-size: 0.82em;
}

.workspace {
  flex: none;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.panel {
  padding: 12px;
}

.pitch-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.panel-heading {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.pitch-tools {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.vibrato-readouts {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.vibrato-readouts span {
  min-width: 128px;
  height: 34px;
  padding: 5px 9px;
  border: 1px solid rgb(188 236 255 / 0.10);
  border-radius: 7px;
  display: grid;
  align-content: center;
  gap: 2px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent 58%),
    rgb(17 22 28 / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
}

.vibrato-readouts b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.vibrato-readouts strong {
  color: #dff8ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.small-button {
  height: 28px;
  border: 1px solid #39424e;
  border-radius: 6px;
  color: var(--text);
  background: #11161c;
  cursor: pointer;
}

.small-button {
  padding: 0 10px;
  font-size: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line {
  width: 26px;
  height: 2px;
  display: inline-block;
  background: var(--line);
}

.graph-frame {
  position: relative;
  flex: none;
  min-height: 0;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(77 214 255 / 0.025), transparent 20%),
    #11161c;
  overflow: hidden;
}

.sample-prompt {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  border: 0;
  border-radius: inherit;
  color: #e7faff;
  background:
    radial-gradient(circle at 50% 50%, rgb(18 42 52 / 0.48), rgb(8 13 18 / 0.26) 64%),
    rgb(8 13 18 / 0.12);
  backdrop-filter: blur(3.5px) saturate(1.12);
  -webkit-backdrop-filter: blur(3.5px) saturate(1.12);
  box-shadow: inset 0 0 0 1px rgb(77 214 255 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.04);
  cursor: pointer;
  z-index: 5;
}

.sample-prompt[hidden] {
  display: none;
}

.sample-prompt:hover {
  border-color: rgb(126 231 135 / 0.58);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.38), 0 0 30px rgb(77 214 255 / 0.24);
}

.sample-prompt strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.sample-prompt span:last-child {
  color: #bfeeff;
  font-size: 12px;
  line-height: 1.4;
}

#pitchGraph {
  width: 100%;
  height: min(calc((100vw - 72px) * 0.5373), 634px);
  min-height: 0;
  display: block;
}

.axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.time-axis {
  display: none;
}

.range-panel {
  min-height: 118px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.range-panel.is-sample-preview {
  min-height: 154px;
}

.range-heading {
  min-height: 32px;
}

.range-values {
  display: flex;
  gap: 28px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.range-values > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.range-pitch-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.15;
}

.range-pitch-note {
  color: var(--text);
  font-weight: 700;
}

.range-pitch-singer {
  color: #bcecff;
  font-weight: 650;
}

.range-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reset-button {
  height: 31px;
  min-width: 128px;
  margin: 8px auto 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 5px;
  color: #7ee787;
  border-color: rgb(126 231 135 / 0.44);
  background:
    linear-gradient(180deg, rgb(126 231 135 / 0.12), transparent 54%),
    linear-gradient(180deg, #10261a 0%, #0b1711 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.045),
    0 0 14px rgb(126 231 135 / 0.12);
  font-weight: 700;
  z-index: 3;
}

.reset-button:hover:not(:disabled) {
  color: #a7f3b4;
  border-color: rgb(126 231 135 / 0.72);
  background:
    linear-gradient(180deg, rgb(126 231 135 / 0.18), transparent 54%),
    linear-gradient(180deg, #143221 0%, #0d1d14 100%);
}

.reset-button .button-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 4px rgb(126 231 135 / 0.38));
}

.reset-button[hidden] {
  display: none;
}

.range-values b {
  color: var(--muted);
  font-weight: 600;
  margin-right: 5px;
}

.keyboard-scale {
  position: relative;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #121820 0%, #0f141a 100%);
}

.keyboard-scale + .reset-button {
  flex: none;
}

.key {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px solid #252c35;
  background: #161b21;
}

.key.white {
  z-index: 1;
}

.key-label {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}

.key.white.in-range .key-label {
  color: #092612;
  font-weight: 650;
}

.key.black {
  top: 0;
  bottom: auto;
  height: 36px;
  z-index: 2;
  background: #080b0e;
  border: 1px solid #20262e;
}

.key.white.in-range {
  background: linear-gradient(180deg, #263f30 0%, #61d979 100%);
  box-shadow: inset 0 0 12px rgb(126 231 135 / 0.34);
}

.key.black.in-range {
  background: linear-gradient(180deg, #15351f 0%, #4fbf63 100%);
  border-color: #6ee57e;
  box-shadow: 0 0 10px rgb(126 231 135 / 0.32);
}

@media (max-width: 1180px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    padding: 12px;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .input-state {
    grid-column: 1;
  }

  .sensitivity-control {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    grid-template-columns: minmax(92px, 1.1fr) repeat(3, minmax(52px, 1fr));
  }

  .debug-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .debug-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-cell:nth-of-type(4) {
    border-left: 0;
  }

  .workspace {
    flex: none;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pitch-panel {
    overflow: visible;
  }

  .graph-frame {
    flex: none;
    height: auto;
    min-height: 0;
  }

  #pitchGraph {
    height: min(calc((100vw - 48px) * 0.5373), 634px);
    min-height: 0;
  }

}

@media (orientation: portrait) {
  .ad-top-secondary {
    display: none;
  }

  .ad-between {
    display: flex;
  }

  .ad-portrait-end {
    display: flex;
  }
}

@media (max-width: 960px) {
  .app-shell {
    padding: 10px;
    gap: 10px;
  }

  h1 {
    font-size: 16px;
    white-space: normal;
  }

  .topbar,
  .panel {
    border-radius: 7px;
  }

  .topbar {
    gap: 8px;
  }

  .sensitivity-control button {
    font-size: 14px;
  }

  .sensitivity-label {
    padding: 0 8px;
    font-size: 14px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .menu-button {
    justify-self: end;
  }

  .site-menu {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 44px));
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell,
  .metric-cell:nth-of-type(4) {
    border-left: 1px solid var(--border);
  }

  .metric-cell:nth-of-type(odd) {
    border-left: 0;
  }

  .metric-cell {
    padding: 12px;
  }

  .panel-heading {
    flex-direction: column;
    gap: 10px;
  }

  .sample-prompt {
    width: 100%;
    padding: 12px 13px;
  }

  .sample-prompt strong {
    font-size: 14px;
  }

  .pitch-tools {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .vibrato-readouts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vibrato-readouts span {
    min-width: 0;
  }

  .legend {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }

  .graph-frame {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  #pitchGraph {
    width: 100%;
    min-width: 0;
    height: min(calc((100vw - 48px) * 0.5373), 634px);
    min-height: 0;
  }

  .axis-label {
    font-size: 10px;
  }

  .metric-cell strong.pitch-value {
    align-items: flex-start;
    gap: 2px 6px;
  }

  .metric-cell strong.pitch-value .pitch-hz {
    flex-basis: 100%;
  }

  .time-axis {
    padding-left: 86px;
    padding-right: 10px;
  }

  .range-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .range-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .range-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .range-panel:not(.is-sample-preview) .reset-button {
    margin: 8px auto 0;
    height: 34px;
  }

  .range-values {
    white-space: normal;
  }

  .range-values > span {
    width: 100%;
    min-width: 150px;
    justify-content: space-between;
  }

  .keyboard-scale {
    height: 60px;
  }

  .key.black {
    height: 36px;
  }

}

@media (max-width: 720px) {
  .sample-cta-cover {
    width: 100%;
    padding: 9px 10px;
    gap: 4px;
    text-align: center;
  }

  .sample-cta-cover strong {
    font-size: 12px;
  }

  .sample-cta-cover span:last-child {
    font-size: 11px;
  }

  #pitchGraph {
    height: auto;
  }
}

@media (max-width: 430px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell,
  .metric-cell:nth-of-type(odd),
  .metric-cell:nth-of-type(4) {
    border-top: 1px solid var(--border);
  }

  .metric-cell:nth-of-type(odd) {
    border-left: 0;
  }

  .metric-cell:nth-of-type(1),
  .metric-cell:nth-of-type(2) {
    border-top: 0;
  }

  .metric-cell {
    min-height: 58px;
    padding: 8px 10px;
    gap: 4px;
  }

  .metric-label {
    font-size: 10px;
  }

  .metric-cell strong {
    font-size: 14px;
  }

  .pitch-value {
    gap: 1px 5px;
  }

  .pitch-value .pitch-hz {
    flex-basis: auto;
    font-size: 0.78em;
  }

  .graph-frame {
    min-height: 0;
  }

  .sample-prompt {
    inset: 0;
    width: 100%;
    padding: 10px;
  }

  .sample-prompt strong {
    font-size: 13px;
  }

  #pitchGraph {
    min-width: 0;
    height: auto;
    min-height: 0;
  }

}

.content-shell {
  min-height: 100vh;
  padding: 18px;
  overflow: visible;
}

.content-page {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.content-header,
.content-section {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 18px;
}

.content-header {
  display: grid;
  gap: 10px;
}

.content-header h1 {
  white-space: normal;
  font-size: 24px;
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-nav a {
  padding: 8px 10px;
  border: 1px solid #39424e;
  border-radius: 6px;
  color: var(--text);
  background: #11161c;
  text-decoration: none;
  font-size: 13px;
}

.content-section {
  display: grid;
  gap: 12px;
}

.content-section h2 {
  font-size: 18px;
}

.content-section h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.content-section p,
.content-section li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.content-section ul,
.content-section ol {
  margin: 0;
  padding-left: 1.35em;
}

.usage-shot {
  margin: 0;
  display: grid;
  gap: 8px;
}

.usage-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #11161c;
  display: block;
}

.usage-shot figcaption {
  color: var(--muted);
  font-size: 12px;
}

.app-info {
  display: grid;
  gap: 8px;
}

.info-accordion {
  border: 1px solid var(--border);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent 52%),
    var(--panel);
  overflow: hidden;
}

.info-accordion summary {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.info-accordion summary::-webkit-details-marker {
  display: none;
}

.info-accordion summary::after {
  content: "+";
  color: #bcecff;
  font-size: 18px;
  font-weight: 500;
}

.info-accordion[open] > summary {
  border-bottom: 1px solid var(--border);
}

.info-accordion[open] > summary::after {
  content: "-";
}

.info-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.info-body h3 {
  margin: 6px 0 0;
  font-size: 14px;
}

.info-body p,
.info-body li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.info-body p,
.info-body ol,
.info-body ul {
  margin: 0;
}

.info-body ol,
.info-body ul {
  padding-left: 1.35em;
}

.usage-infographic {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(188 236 255 / 0.12);
  border-radius: 7px;
  background: #11161c;
}

.usage-infographic img {
  display: block;
  width: 100%;
  height: auto;
}

.usage-infographic img:not([src]) {
  aspect-ratio: 16 / 9;
  background: #11161c;
}

.note-table-wrap {
  overflow-x: auto;
  border: 1px solid rgb(188 236 255 / 0.22);
  border-radius: 7px;
  background: #0d1319;
}

.note-reference-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.note-reference-table th,
.note-reference-table td {
  padding: 8px 10px;
  border-right: 1px solid rgb(188 236 255 / 0.16);
  border-bottom: 1px solid rgb(188 236 255 / 0.14);
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.note-reference-table th:nth-child(1),
.note-reference-table td:nth-child(1) {
  width: 13%;
}

.note-reference-table th:nth-child(2),
.note-reference-table td:nth-child(2) {
  width: 23%;
}

.note-reference-table th:nth-child(3),
.note-reference-table td:nth-child(3) {
  width: 19%;
}

.note-reference-table th:nth-child(4),
.note-reference-table td:nth-child(4) {
  width: 11%;
}

.note-reference-table th:nth-child(5),
.note-reference-table td:nth-child(5),
.note-reference-table th:nth-child(6),
.note-reference-table td:nth-child(6) {
  width: 17%;
}

.note-reference-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18313d;
  color: #bcecff;
  font-weight: 650;
}

.note-reference-table tbody td {
  background: #0f151b;
}

.note-reference-table tbody tr:nth-child(even) td {
  background: #172027;
}

.note-reference-table th:last-child,
.note-reference-table td:last-child {
  border-right: 0;
}

.note-reference-table tbody tr:last-child td {
  border-bottom: 0;
}

.note-reference-table td:nth-child(4),
.note-reference-table th:nth-child(4),
.note-reference-table td:nth-child(5),
.note-reference-table th:nth-child(5),
.note-reference-table td:nth-child(6),
.note-reference-table th:nth-child(6) {
  text-align: center;
}

@media (max-width: 720px) {
  .note-reference-table {
    font-size: 11px;
  }

  .note-reference-table th,
  .note-reference-table td {
    padding: 7px 4px;
  }
}

.qa-list details {
  border: 1px solid rgb(188 236 255 / 0.10);
  border-radius: 6px;
  background: rgb(17 22 28 / 0.55);
}

.qa-list details summary {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.qa-list details p {
  padding: 0 12px 12px;
}

.app-credit {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 720px) {
  .content-shell {
    padding: 10px;
  }

  .content-header,
  .content-section {
    padding: 14px;
    border-radius: 7px;
  }

  .content-header h1 {
    font-size: 20px;
  }
}

