@font-face {
  font-family: "dbm-field";
  font-style: normal;
  font-display: optional;
  font-weight: 400 700;
  src: url("/assets/instrument-sans-latin-ext-wght-normal.c4fcfea41f2c.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "dbm-field";
  font-style: normal;
  font-display: optional;
  font-weight: 400 700;
  src: url("/assets/instrument-sans-latin-wght-normal.2ee17598a98d.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #0d2b23;
  --muted: #526b63;
  --soft: #edf4ef;
  --paper: #fffdf8;
  --line: #cbdcd4;
  --green: #08694f;
  --green-2: #0d8b68;
  --mint: #dcf5e9;
  --yellow: #e8b93f;
  --coral: #dc684f;
  --blue: #537895;
  --page-bg: #f6f8f3;
  --page-glow: rgba(104, 211, 166, 0.15);
  --wave-line: rgba(8, 105, 79, 0.075);
  --header-bg: rgba(246, 248, 243, 0.94);
  --header-line: rgba(151, 181, 167, 0.46);
  --surface-muted: #eef5f0;
  --canvas-bg: #f5f9f5;
  --canvas-grid: #d4e2da;
  --canvas-idle: #86aa9b;
  --canvas-label: #5b6f68;
  --field-bg: #fffefa;
  --track-bg: #e7f0ea;
  --gauge-mask: #e9efe8;
  --level-mask: rgba(238, 243, 239, 0.96);
  --note-bg: #eaf3ee;
  --cookie-bg: rgba(255, 253, 248, 0.985);
  --strong-line: #adc9bc;
  --meter-line: #cae9db;
  --hero-line: #c8ded5;
  --primary-bg: #08634e;
  --primary-hover: #0c8063;
  --on-primary: #fff;
  --on-primary-muted: rgba(255, 255, 255, 0.76);
  --display-bg: #103f33;
  --display-ink: #8cf0ca;
  --display-muted: #c0e4d6;
  --hero-reading-bg: rgba(13, 92, 70, 0.92);
  --stop-bg: #c64f3c;
  --warning-ink: #674e00;
  --warning-bg: #fff6d8;
  --danger-ink: #862f20;
  --danger-bg: #fee9e4;
  --focus-ring: rgba(8, 99, 78, 0.42);
  --theme-track: #dce8e3;
  --theme-thumb: #fff;
  --theme-icon: #536d65;
  --shadow: 0 24px 64px rgba(16, 47, 39, 0.14);
  --card-shadow: 0 10px 28px rgba(23, 51, 44, 0.075);
  --raised-shadow: 0 16px 34px rgba(23, 51, 44, 0.11);
  --cookie-shadow: 0 22px 54px rgba(23, 51, 44, 0.2);
  --header-offset: 96px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6f2ed;
  --muted: #afc2ba;
  --soft: #0d1815;
  --paper: #13221d;
  --line: #2b453c;
  --green: #74d9b7;
  --green-2: #48b991;
  --mint: #193a31;
  --yellow: #f1c75b;
  --coral: #ff8a75;
  --blue: #82abc9;
  --page-bg: #0a1411;
  --page-glow: rgba(33, 107, 80, 0.25);
  --wave-line: rgba(116, 217, 183, 0.065);
  --header-bg: rgba(10, 20, 17, 0.93);
  --header-line: rgba(72, 112, 98, 0.55);
  --surface-muted: #182923;
  --canvas-bg: #0e1b17;
  --canvas-grid: #284139;
  --canvas-idle: #5f8d7c;
  --canvas-label: #afc2ba;
  --field-bg: #0d1a16;
  --track-bg: #1a2c26;
  --gauge-mask: #263a33;
  --level-mask: rgba(19, 34, 29, 0.94);
  --note-bg: #172721;
  --cookie-bg: rgba(16, 30, 25, 0.98);
  --strong-line: #3d6658;
  --meter-line: #315d4e;
  --hero-line: #386653;
  --primary-bg: #176b53;
  --primary-hover: #1d8064;
  --on-primary: #fff;
  --on-primary-muted: rgba(255, 255, 255, 0.78);
  --display-bg: #071612;
  --display-ink: #79e4bd;
  --display-muted: #a9cfc0;
  --hero-reading-bg: rgba(10, 61, 46, 0.96);
  --stop-bg: #a64334;
  --warning-ink: #ffe195;
  --warning-bg: #3a3013;
  --danger-ink: #ffb4a7;
  --danger-bg: #3a1f1a;
  --focus-ring: rgba(116, 217, 183, 0.55);
  --theme-track: #08131f;
  --theme-thumb: #edf5f2;
  --theme-icon: #a9bbb5;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  --raised-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --cookie-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  scrollbar-color: var(--strong-line) var(--soft);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, var(--page-glow), transparent 34rem),
    var(--page-bg);
  font-family: "dbm-field", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 12%, transparent 0 5.5rem, var(--wave-line) 5.55rem 5.62rem, transparent 5.68rem 9.6rem, var(--wave-line) 9.65rem 9.72rem, transparent 9.78rem 14rem, var(--wave-line) 14.05rem 14.12rem, transparent 14.18rem),
    linear-gradient(180deg, transparent 0 38rem, var(--soft) 66rem);
  transform-origin: 84% 12%;
  animation: signal-settle 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

input,
textarea {
  caret-color: var(--green-2);
}

@keyframes signal-settle {
  from {
    opacity: 0.72;
    filter: blur(3px);
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

main {
  min-width: 0;
}

body > *,
.site-header *,
main :where(section, article, div, nav, ul, ol, details, form),
.site-footer * {
  min-width: 0;
}

.site-footer :is(a, button, p, strong) {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

main :where(h1, h2, h3, p, li, a, strong, small, label, summary, button, output) {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  inset-block-start: max(10px, env(safe-area-inset-top));
  inset-inline-start: max(10px, env(safe-area-inset-left));
  inset-inline-end: max(10px, env(safe-area-inset-right));
  z-index: 200;
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
  padding: 10px 14px;
  color: var(--on-primary);
  background: var(--primary-bg);
  border-radius: 10px;
  font-weight: 700;
  overflow-wrap: break-word;
  text-align: center;
  white-space: normal;
  transform: translateY(calc(-100% - 24px));
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

output,
.primary-readout output,
.metric-grid strong,
.level-scale,
.db-value {
  font-variant-numeric: tabular-nums lining-nums;
}



.hero-copy,
.hero-panel,
.meter-card,
.settings-panel,
.tool-card,
.learn-grid article,
.wave-layout,
.exposure-layout {
  min-width: 0;
}

canvas {
  display: block;
  width: 100%;
  background: var(--canvas-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

#meterCanvas {
  height: 220px;
}

#waveCanvas {
  height: 300px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
  min-height: 72px;
  padding-block: max(12px, env(safe-area-inset-top)) 12px;
  padding-inline-start: max(20px, env(safe-area-inset-left), calc((100vw - 1300px) / 2));
  padding-inline-end: max(20px, env(safe-area-inset-right), calc((100vw - 1300px) / 2));
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.site-header > *,
.header-controls > * {
  min-width: 0;
}

.header-controls {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.theme-toggle {
  position: relative;
  width: 72px;
  min-width: 72px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  padding: 4px;
  color: var(--theme-icon);
  background: var(--theme-track);
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  cursor: pointer;
  direction: ltr;
  touch-action: manipulation;
}

.theme-toggle:hover {
  border-color: var(--green-2);
}

.theme-icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}

.theme-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 34px;
  height: 34px;
  background: var(--theme-thumb);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
  pointer-events: none;
}

:root[data-theme="dark"] .theme-thumb {
  transform: translateX(30px);
}

:root[data-theme="light"] .theme-icon-light,
:root[data-theme="dark"] .theme-icon-dark {
  color: var(--primary-bg);
}

.header-controls .language-switcher {
  justify-self: auto;
}

.brand,
.nav,
.trust-list,
.hero-actions,
.control-row,
.meter-topline,
.metric-grid,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.brand span {
  min-width: 0;
  max-width: 100%;
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 40%, var(--paper) 40% 47%, transparent 47%),
    linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.nav {
  min-width: 0;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
  border-bottom: 2px solid transparent;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
}

.nav-label,
.footer-link-label,
.meter-guide-label,
.cookie-settings-label {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 700;
}

.header-action {
  color: var(--green);
  font-weight: 750;
}

.hero,
.tool-band,
.tool-grid,
.learn-band,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 54px 0 34px;
}

.meter-hero {
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
  min-height: auto;
  padding: 34px 0 42px;
}

.meter-hero h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.65rem);
}

.meter-hero .hero-text {
  max-width: 520px;
}

.meter-hero .hero-actions {
  margin-top: 24px;
}

.meter-hero .meter-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  gap: 14px;
}

.meter-hero .settings-panel {
  padding: 20px;
}

h1,
h2,
h3,
p {
  word-break: normal;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

p,
li,
label,
summary {
  overflow-wrap: break-word;
  hyphens: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.012em;
}

.hero-text,
.section-heading p,
.tool-card p,
.learn-grid p,
.site-footer p,
.small-copy {
  color: var(--muted);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.18rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
  }
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.control-row .button {
  width: 100%;
}

.primary {
  color: var(--on-primary);
  background: var(--primary-bg);
}

.primary:hover {
  background: var(--primary-hover);
}

.secondary {
  color: var(--green);
  background: transparent;
  border-color: var(--strong-line);
}

.control-toggle.is-running {
  color: var(--on-primary);
  background: var(--stop-bg);
  border-color: var(--stop-bg);
}

.control-toggle.is-running:hover {
  background: var(--stop-bg);
  border-color: var(--stop-bg);
}

.trust-list {
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
}

.trust-list li {
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-panel {
  position: relative;
}

.hero-panel canvas {
  min-height: 360px;
  box-shadow: var(--shadow);
}

.hero-reading {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 150px;
  padding: 14px 16px;
  color: var(--on-primary);
  background: var(--hero-reading-bg);
  border-radius: 8px;
}

.hero-reading span,
.label {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.hero-reading span {
  color: var(--on-primary-muted);
}

.hero-reading strong {
  display: block;
  margin-top: 3px;
  font-size: 2.1rem;
  line-height: 1;
}

.tool-band,
.learn-band {
  padding: 74px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.meter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.meter-card,
.settings-panel,
.tool-card,
.learn-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.meter-card,
.settings-panel,
.tool-card {
  padding: clamp(18px, 3vw, 28px);
}

.meter-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 190px);
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.meter-actions {
  display: grid;
  min-width: 0;
  gap: 12px;
  justify-items: stretch;
}

.meter-actions .control-toggle {
  width: 100%;
  min-width: 0;
}

.db-value {
  display: inline-block;
  max-width: 100%;
  margin-top: 2px;
  font-size: clamp(3.2rem, 6.8vw, 4.55rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.status-pill {
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 8px 12px;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  overflow-wrap: break-word;
}

.status-pill:empty {
  display: none;
}

[data-meter-state="starting"] .status-pill,
[data-meter-state="waiting"] .status-pill,
[data-meter-state="gesture-required"] .status-pill {
  color: var(--warning-ink);
  background: var(--warning-bg);
}

[data-meter-state="no-signal"] .status-pill,
[data-meter-state="error"] .status-pill {
  color: var(--danger-ink);
  background: var(--danger-bg);
}

.gauge {
  margin-bottom: 18px;
}

.gauge-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 48%, var(--yellow) 66%, var(--coral) 100%);
  border-radius: 999px;
}

.gauge-fill {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  background: var(--gauge-mask);
  border-radius: inherit;
}

.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-grid {
  --metric-min: 150px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--metric-min)), 1fr));
  gap: 10px;
  margin: 16px 0;
}

.metric-grid div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-muted);
  border-radius: 10px;
}

.metric-grid strong {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  font-size: 1.32rem;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.metric-grid .label {
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

.meter-graphs {
  display: grid;
  gap: 12px;
}

.graph-panel {
  display: grid;
  gap: 7px;
}

.graph-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spectrum-bands {
  --metric-min: 88px;
  margin: 8px 0 2px;
}

.spectrum-bands div {
  padding: 10px 12px;
}

.spectrum-bands strong {
  font-size: 1.05rem;
}

.mic-help {
  min-height: 0;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.settings-panel h3 + label,
.tool-card label {
  display: block;
  margin-top: 14px;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--green);
}

select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 7px 0 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
}

.range-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.range-control output {
  min-width: 64px;
  font-weight: 850;
  text-align: right;
}

.small-copy {
  margin: 12px 0 24px;
  font-size: 0.92rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 10px 0 24px;
  background: var(--track-bg);
  border-radius: 8px;
}

.segmented button {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.segmented button.active {
  color: var(--green);
  background: var(--field-bg);
  box-shadow: var(--card-shadow);
}

.compact-list {
  padding-left: 18px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 74px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card.wide {
  grid-column: 1 / -1;
}

.tool-card-heading {
  display: grid;
  gap: 3px;
}

.tool-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.tone-readout {
  padding: 16px;
  color: var(--green);
  background: var(--mint);
  border-radius: 8px;
  font-size: 2.3rem;
  font-weight: 850;
  line-height: 1;
}

.tap-button {
  width: 100%;
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 0;
  color: var(--on-primary);
  background: var(--primary-bg);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 -12px 28px rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
}

.tap-button:active {
  transform: translateY(1px);
}

.tap-button span {
  font-size: clamp(4rem, 12vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.tap-button small {
  color: var(--on-primary-muted);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.metronome-face,
.pitch-readout,
.exposure-result {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metronome-face {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.metronome-face span {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
}

.metronome-face.pulse {
  animation: beatPulse 170ms ease-out;
}

.metronome-face.accent {
  color: var(--coral);
}

@keyframes beatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.toggle-row label {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pitch-readout {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
}

.pitch-readout output {
  color: var(--green);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
}

.pitch-readout span {
  color: var(--muted);
  font-weight: 800;
}

#pitch .metric-grid.small {
  --metric-min: 152px;
}

.tuner-line {
  position: relative;
  height: 38px;
  margin: 4px 0;
}

.tuner-line span {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--yellow), var(--coral));
  border-radius: 999px;
}

.tuner-line i {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 4px;
  height: 30px;
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 100ms ease;
}

.exposure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.exposure-result {
  padding: 22px;
}

.exposure-result strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1;
}

.exposure-result p {
  margin-bottom: 0;
}

.metric-grid.small {
  --metric-min: 128px;
  margin-bottom: 0;
}

.wave-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
}

.wave-controls {
  display: grid;
  gap: 8px;
}

.learn-band {
  border-top: 1px solid var(--line);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.learn-grid article {
  padding: 22px;
}

.learn-grid h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.learn-grid p {
  margin-bottom: 0;
}

.faq-list,
.policy-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: min(900px, 100%);
}

.faq-list details,
.policy-list article {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 850;
}

.faq-list p,
.policy-list p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(760px, 100%);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-panel > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.contact-panel a {
  color: var(--green);
  font-weight: 850;
}

.seo-page {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 56px;
}

.editorial-note {
  max-width: 800px;
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.editorial-note h2 {
  font-size: 1.3rem;
}

.editorial-note p {
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.footer-links button {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.footer-links button:hover {
  color: var(--green-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a,
.footer-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - max(32px, env(safe-area-inset-bottom)));
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
  padding: 12px 12px 12px 16px;
  background: var(--cookie-bg);
  border-radius: 14px;
  box-shadow: var(--cookie-shadow);
  transform: translateX(-50%);
}

.cookie-copy {
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cookie-copy strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cookie-copy p {
  margin: 3px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.34;
  overflow-wrap: break-word;
  hyphens: auto;
}

.analytics-vendors {
  display: block;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.cookie-link,
.cookie-settings-button {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cookie-settings-button {
  border: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  cursor: pointer;
  white-space: normal;
}

.cookie-actions {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cookie-button {
  min-width: min(100%, 76px);
  max-width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.cookie-button.primary {
  color: var(--on-primary);
  background: var(--primary-bg);
  border-color: var(--primary-bg);
}

.cookie-button.secondary {
  color: var(--green);
  background: var(--mint);
}

@media (max-width: 1080px) {
  :root {
    --header-offset: 24px;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 4px 0 0;
  }

  .nav a {
    padding: 7px 8px;
    background: var(--surface-muted);
    border: 0;
    border-radius: 10px;
    line-height: 1.2;
  }

  .nav a[aria-current="page"] {
    background: var(--mint);
  }

  .hero,
  .meter-layout,
  .wave-layout,
  .exposure-layout,
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .meter-hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .meter-hero .meter-layout {
    order: -1;
    grid-template-columns: 1fr;
  }

  .hero-panel canvas {
    min-height: 280px;
  }

  .tap-button {
    min-height: 150px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .cookie-banner {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: calc(100vh - max(20px, env(safe-area-inset-bottom)));
    max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom)));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    overflow: hidden;
    padding: 10px 12px;
    margin: 0;
    transform: none;
  }

  .cookie-actions {
    width: 100%;
    justify-content: stretch;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .cookie-button {
    flex: 1 1 min(100%, 10rem);
  }
}

:where(section, article)[id] {
  scroll-margin-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }

  .button,
  .hub-tool-card,
  .related-card,
  .theme-thumb,
  .skip-link {
    transition: none;
  }
}

@media (max-width: 620px) {
  :root {
    --header-offset: 24px;
  }

  .site-header {
    position: relative;
    gap: 10px 12px;
    padding-block: max(12px, env(safe-area-inset-top)) 12px;
    padding-inline-start: max(16px, env(safe-area-inset-left));
    padding-inline-end: max(16px, env(safe-area-inset-right));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav a {
    display: grid;
    place-items: center;
    min-height: 48px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .tool-band,
  .tool-grid,
  .learn-band,
  .site-footer {
    width: min(1180px, calc(100% - 32px));
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button,
  .cookie-button,
  .footer-links button,
  .language-switcher summary {
    overflow-wrap: anywhere;
  }

  .nav-label,
  .footer-link-label,
  .meter-guide-label,
  .cookie-settings-label,
  .site-footer p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nav-label {
    hyphens: none;
    word-break: normal;
  }

  .site-footer > div,
  .site-footer p {
    width: 100%;
    max-width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .cookie-banner {
    width: calc(100% - 20px);
    max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom)));
    gap: 8px;
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 10px 12px;
  }

  .cookie-copy p {
    margin-block: 2px;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1;
  }

  .meter-topline {
    grid-template-columns: 1fr;
  }

  .meter-actions {
    width: 100%;
    justify-items: stretch;
  }

  .meter-actions .control-toggle {
    width: 100%;
    min-width: 0;
  }

  .metric-grid {
    --metric-min: 136px;
    gap: 8px;
  }

  .metric-grid div {
    padding: 9px;
  }

  .metric-grid strong {
    font-size: 1.05rem;
  }

  .metric-grid .label {
    font-size: 0.75rem;
    letter-spacing: 0.035em;
  }

  .metric-grid.small {
    --metric-min: 112px;
  }

  #pitch .metric-grid.small {
    --metric-min: 152px;
  }

  .meter-card,
  .settings-panel {
    width: 100%;
    max-width: calc(100vw - 32px);
    justify-self: start;
    padding: 16px;
  }

  #meterCanvas {
    height: 160px;
  }

  .hero-reading {
    position: static;
    margin-top: 10px;
  }
}


@media (max-width: 620px) {
  h1 {
    max-width: none;
    font-size: clamp(1.95rem, 8.8vw, 2.12rem);
    line-height: 1.14;
  }

  .hero-text {
    max-width: 31ch;
    font-size: 1.02rem;
  }

  .trust-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .trust-list li {
    width: 100%;
    padding: 9px 11px;
  }

  .hero-panel canvas {
    min-height: 240px;
  }

  .tool-card h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2rem;
  }

  .db-value {
    font-size: clamp(2.55rem, 15vw, 3rem);
  }

  .metric-grid,
  .metric-grid.small,
  #pitch .metric-grid.small {
    --metric-min: 100%;
  }
}

/* Standalone, indexable tool pages and localized hubs */
.language-switcher {
  position: relative;
  min-width: 0;
  justify-self: end;
}

.language-switcher summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
  white-space: nowrap;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
}

.language-switcher[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 50;
  width: min(440px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  max-height: min(70dvh, 520px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.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;
}

.language-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  padding-bottom: 4px;
  background: var(--paper);
}

.language-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.language-links {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.language-links [hidden] {
  display: none;
}

.language-menu a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 5px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  color: var(--green);
  background: var(--mint);
}

.breadcrumbs,
.tool-page-hero,
.content-section,
.hub-hero,
.hub-primary-tool,
.hub-grid,
.hub-meter-hero,
.hub-tools-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding-block: 20px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs > * {
  min-width: 0;
  overflow-wrap: break-word;
}

.breadcrumbs > a,
.breadcrumbs > .flow-arrow {
  flex: 0 0 auto;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.tool-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
  padding-block: 38px 68px;
}

.guide-summary {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-summary > * {
  min-width: 0;
  max-width: 100%;
}

.guide-summary h2,
.guide-summary p {
  margin: 0;
}

.guide-summary h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.guide-summary p {
  color: var(--muted);
}

.guide-summary .button {
  justify-self: start;
  margin-top: 4px;
}

.tool-intro {
  min-width: 0;
  padding-block: 18px;
}

.tool-intro h1,
.hub-hero h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.tool-intro h1 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

.hub-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

.standalone-tool {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.standalone-tool > * {
  min-width: 0;
  max-width: 100%;
}

.standalone-tool .button {
  width: 100%;
}

.tool-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  flex-wrap: wrap;
}

.tool-status-row .button {
  min-width: min(100%, 11rem);
  width: auto;
  max-width: 100%;
}

.primary-readout {
  min-width: 0;
  padding: 18px;
  color: var(--display-ink);
  background: var(--display-bg);
  border-radius: 14px;
}

.primary-readout span {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--display-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.primary-readout output {
  display: block;
  margin-top: 4px;
  font-size: clamp(2.7rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: break-word;
}

.level-gauge {
  --level: 0%;
  height: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 var(--level), var(--level-mask) var(--level) 100%),
    linear-gradient(90deg, var(--green) 0 45%, var(--yellow) 68%, var(--coral) 100%);
  border-radius: 999px;
}

.level-gauge-wrap {
  display: grid;
  gap: 5px;
}

.level-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.canvas-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.canvas-heading > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.canvas-heading small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

#levelCanvas,
#waveformCanvas {
  height: clamp(220px, 34vw, 330px);
}

.meter-settings {
  border-top: 1px solid var(--line);
}

.meter-settings summary {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  overflow-wrap: break-word;
  hyphens: auto;
}

.meter-settings summary::-webkit-details-marker {
  display: none;
}

.meter-settings summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.meter-settings[open] summary::after {
  content: "−";
}

.meter-settings-body {
  padding: 4px 2px 14px;
}

.meter-accuracy-note {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--note-bg);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.84rem;
  line-height: 1.45;
}

.meter-accuracy-note strong {
  color: var(--ink);
}

.standalone-metrics {
  margin: 0;
}

.number-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.number-control input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 650;
}

.number-control span {
  font-weight: 700;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.preset-row button {
  min-width: 0;
  min-height: 44px;
  padding: 7px;
  color: var(--green);
  background: var(--mint);
  border: 1px solid var(--strong-line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.safety-note {
  margin: 0;
  padding: 10px 12px;
  color: var(--warning-ink);
  background: var(--warning-bg);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yellow) 42%, transparent);
  font-size: 0.9rem;
}

.wave-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.wave-control-grid > div {
  min-width: 0;
}

.exposure-result {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.exposure-result > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.standard-reference {
  min-width: 0;
  max-width: 100%;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: break-word;
}

.exposure-result strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  overflow-wrap: break-word;
}

.result-advice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  color: var(--green);
  background: var(--mint);
  border-radius: 6px;
}

.result-advice.caution {
  color: var(--warning-ink);
  background: var(--warning-bg);
}

.result-advice.danger {
  color: var(--danger-ink);
  background: var(--danger-bg);
}

.content-section {
  padding-block: 62px;
}

.content-section :is(h1, h2, h3, p, li, strong, a),
.calibration-guide,
.calibration-guide > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.two-column-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.two-column-content article,
.references {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.two-column-content h2,
.references h2,
.content-section .section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.two-column-content h3 {
  margin-top: 28px;
}

.two-column-content p,
.steps {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 14px;
  padding-inline-start: 24px;
}

.steps li::marker {
  color: var(--green);
  font-weight: 900;
}

.method-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.method-detail > div {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.method-detail h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.method-detail p,
.review-date {
  color: var(--muted);
}

.review-date {
  margin-bottom: 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.references {
  display: grid;
  gap: 10px;
}

.references a {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.related-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 16px;
}

.hub-meter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 0.78fr);
  grid-template-areas: "tool intro";
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 76px) 84px;
}

.hub-meter-intro {
  grid-area: intro;
  min-width: 0;
  padding-block: 18px;
}

.hub-meter-hero .tool-context-title {
  max-width: 100%;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.hub-purpose {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

.hub-meter-intro .hero-text {
  max-width: 37rem;
  margin-top: 12px;
  font-size: 1.08rem;
}

.hub-meter-intro .trust-list {
  margin-top: 22px;
}

.featured-tool-copy {
  min-width: 0;
  margin-top: 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.featured-tool-copy > * {
  min-width: 0;
  max-width: 100%;
}

.featured-tool-copy h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: pretty;
}

.featured-tool-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.featured-tool-copy .meter-guide-link {
  margin-top: 10px;
}

.meter-guide-link {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  flex-wrap: wrap;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.hub-meter-hero .standalone-tool {
  grid-area: tool;
  width: 100%;
  max-width: 42rem;
  justify-self: start;
}

.tool-context-title {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.hub-meter-hero #levelCanvas {
  height: clamp(180px, 22vw, 250px);
}

.hub-tools-section {
  padding-block: 70px 90px;
  border-top: 1px solid var(--line);
}

.hub-tools-section > .section-heading {
  max-width: 760px;
}

.hub-tools-section .hub-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 0;
  margin: 0;
  padding: 0;
}

.related-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: color 160ms ease, border-color 160ms ease;
}

.hub-tool-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title action"
    "copy action";
  gap: 7px 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: color 160ms ease, border-color 160ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .related-card:hover,
  .hub-tool-card:hover {
    color: var(--green);
    border-color: var(--green-2);
  }

  .hub-tool-card:hover {
    transform: translateY(-2px);
  }
}

.hub-tool-card .tool-icon {
  display: none;
}

.hub-tool-card :is(h2, h3) {
  grid-area: title;
}

.hub-tool-card p {
  grid-area: copy;
}

.hub-tool-card b {
  grid-area: action;
  align-self: center;
  justify-self: end;
  color: var(--green);
  white-space: nowrap;
}

.related-card:focus-visible,
.hub-tool-card:focus-visible {
  border-color: var(--strong-line);
}

.related-card strong,
.related-card span,
.hub-tool-card :is(h2, h3),
.hub-tool-card p {
  min-width: 0;
}

.related-card strong,
.hub-tool-card :is(h2, h3) {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: pretty;
}

.related-card span,
.hub-tool-card p {
  overflow-wrap: break-word;
}

.related-card span,
.hub-tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.related-card b,
.hub-tool-card b {
  margin-top: auto;
  color: var(--green);
}

.hub-hero {
  max-width: 880px;
  padding-block: clamp(58px, 9vw, 110px) 52px;
}

.hub-grid {
  padding-block-end: 90px;
}

.hub-primary-tool {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  padding-block: 8px 72px;
}

.hub-primary-tool .section-heading {
  min-width: 0;
  padding-block: 20px;
}

.hub-primary-tool .section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.hub-tool-card :is(h2, h3) {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 900;
}

.language-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.flow-arrow {
  display: inline-block;
}

[dir="rtl"] .flow-arrow {
  transform: scaleX(-1);
}

@media (max-width: 1080px) {
  .tool-page-hero,
  .hub-meter-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-meter-hero {
    grid-template-areas:
      "tool"
      "intro";
  }

  .tool-intro {
    max-width: 720px;
  }

  .hub-meter-intro {
    max-width: 720px;
    padding-block: 0;
  }

  .hub-meter-hero .standalone-tool {
    max-width: 46rem;
    justify-self: stretch;
  }
}

@media (max-width: 920px) {
  .tool-page-hero,
  .hub-primary-tool,
  .hub-meter-hero,
  .two-column-content,
  .method-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-meter-intro {
    max-width: 720px;
    padding-block: 0;
  }

  .hub-meter-hero .tool-context-title {
    max-width: 100%;
  }

  .tool-intro {
    max-width: 720px;
  }

  .related-grid,
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tool-intro h1,
  .hub-hero h1,
  .content-section h2,
  .content-section h3 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .breadcrumbs,
  .tool-page-hero,
  .content-section,
  .hub-hero,
  .hub-primary-tool,
  .hub-grid,
  .hub-meter-hero,
  .hub-tools-section {
    width: min(1180px, calc(100% - 32px));
  }

  .hub-meter-hero {
    gap: 22px;
    padding-block: 18px 56px;
  }

  .hub-meter-hero .tool-context-title {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hub-purpose {
    margin-top: 12px;
    font-size: 1.05rem;
  }

  .hub-meter-intro .hero-text {
    margin-top: 14px;
    font-size: 1rem;
  }

  .featured-tool-copy {
    margin-top: 18px;
    padding: 18px 0 0;
  }

  .hub-meter-intro .trust-list {
    display: flex;
    width: auto;
    gap: 7px;
    margin-top: 18px;
  }

  .hub-meter-intro .trust-list li {
    width: auto;
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .meter-guide-link {
    margin-top: 12px;
  }

  .hub-meter-hero .standalone-tool {
    padding: 18px;
  }

  .hub-meter-hero #levelCanvas {
    height: 170px;
  }

  .hub-tools-section {
    padding-block: 48px 64px;
  }

  .tool-page-hero {
    gap: 18px;
    padding-block: 20px 40px;
  }

  .hub-primary-tool {
    gap: 12px;
    padding-block: 0 48px;
  }

  .tool-intro h1,
  .hub-hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 7.4vw, 2.4rem);
  }

  .tool-intro .hero-text,
  .hub-hero .hero-text {
    max-width: none;
  }

  .tool-intro {
    padding-block: 4px;
  }

  .tool-intro .hero-text {
    margin-top: 14px;
    font-size: 1rem;
  }

  .tool-intro .trust-list {
    display: flex;
    width: auto;
    gap: 7px;
    margin-top: 16px;
  }

  .tool-intro .trust-list li {
    width: auto;
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .tool-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-status-row .button {
    width: 100%;
    max-width: none;
  }

  .preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wave-control-grid,
  .related-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-tools-section .hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-tool-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "copy"
      "action";
    gap: 8px;
  }

  .hub-tool-card b {
    justify-self: start;
    margin-top: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .content-section {
    padding-block: 38px;
  }

  .language-menu {
    grid-template-columns: 1fr;
  }

  .language-links {
    grid-template-columns: 1fr;
  }

  .language-switcher summary {
    max-width: 34vw;
    min-height: 44px;
    height: auto;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .range-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .range-control output {
    min-width: 0;
    max-width: 100%;
    text-align: start;
    overflow-wrap: anywhere;
  }

  .language-switcher summary {
    width: 52px;
    max-width: 52px;
    justify-content: center;
    padding-inline: 7px;
  }

  .language-switcher .language-label {
    display: none;
  }

  .language-switcher .language-icon {
    display: block;
  }

  .language-switcher summary::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
    padding-inline-start: max(12px, env(safe-area-inset-left));
    padding-inline-end: max(12px, env(safe-area-inset-right));
  }

  .brand span {
    font-size: 1rem;
  }

  .exposure-result {
    grid-template-columns: 1fr;
  }

  .result-advice {
    grid-column: 1;
  }
}
