/* Shared controls for browser-local audio tools. */
.tools-hero { padding-bottom: 38px; }
.tools-hero h1 { max-width: 840px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.tool-tags li { padding: 8px 13px; border: 1px solid #3f574b; border-radius: 30px; color: #c3d8ca; font-size: 12px; background: #18251f; }
.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 54px; }
.tools-grid .guide-card { padding: 30px; min-height: 245px; }
.tools-grid .guide-card:first-child { background: #1b2c23; border-color: #53735c; }
.tool-card-number { color: var(--mint); font: 24px/1.2 var(--mono); margin-bottom: 24px; }
.tools-grid .guide-card h2 { font-size: 26px; line-height: 1.25; }
.tools-grid .guide-card .eyebrow { margin-bottom: 12px; }
.tool-privacy-note { max-width: 980px; }
.tool-panel { padding: clamp(20px, 4vw, 34px); margin-bottom: 28px; max-width: 980px; background: #17251f; border: 1px solid #476651; border-radius: 18px; }
.tool-panel h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.25; }
.tool-panel h3 { font-size: 19px; line-height: 1.4; margin-block: 22px 12px; }
.tool-panel > p, .tool-panel > div > p { margin-top: 16px; line-height: 1.75; color: #c3d1c7; }
.tool-panel a:not(.button), .tool-note a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.tool-controls, .tool-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-block: 24px; }
.tool-controls > .tool-field { flex: 1 1 200px; }
.tool-field { min-width: 0; }
.tool-field label, label.tool-field, .tool-panel > label { display: block; font-size: 14px; line-height: 1.6; margin-bottom: 9px; }
.tool-field label + p { margin-top: 8px; }
.tool-panel input:not([type="checkbox"]):not([type="radio"]), .tool-panel select, .tool-panel textarea { width: 100%; min-height: 46px; border: 1px solid #617a6b; border-radius: 7px; background: #101b16; color: var(--foreground); padding: 10px 12px; font: 15px/1.5 var(--sans); }
.tool-panel input[type="range"] { padding-inline: 0; border: 0; background: transparent; accent-color: var(--mint); }
.tool-panel input[type="file"] { max-width: 100%; overflow: hidden; }
.tool-panel input::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid #617a6b; border-radius: 4px; color: var(--mint); background: #253b2e; cursor: pointer; }
.tool-panel textarea { min-height: 220px; resize: vertical; }
.tool-panel textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.tool-grid, .tool-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 22px; }
.tool-results > div, .tool-readout { min-width: 0; background: #101c17; border: 1px solid #354f3e; border-radius: 10px; padding: 18px; overflow-wrap: anywhere; }
.tool-results dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-results dd { margin: 7px 0 0; color: var(--mint); font: 20px/1.5 var(--mono); }
.tool-readout { margin: 0; }
.tool-readout > div + div { margin-top: 15px; }
.tool-readout dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-readout dd { margin: 5px 0 0; color: var(--mint); font: 18px/1.5 var(--mono); }
.tool-results > label, .tool-results > meter { grid-column: 1 / -1; }
.tool-results > .tool-readout { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-results > .tool-readout > div + div { margin-top: 0; }
.tool-button-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.tool-button-grid > button { min-width: 0; }
.tool-status { margin-block: 20px; border-block: 1px solid #3b5342; padding-block: 14px; min-height: 54px; color: var(--mint); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.tool-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin-block: 14px; }
.tool-meter, .tool-panel meter, .tool-panel progress { display: block; width: 100%; height: 23px; margin-block: 12px; accent-color: var(--mint); }
.tool-chart, .tool-panel canvas { display: block; width: 100%; max-width: 100%; height: auto; background: #0d1713; border: 1px solid #3b5342; border-radius: 8px; }
.tool-chart svg { display: block; width: 100%; height: auto; }
.tool-panel audio { display: block; width: 100%; margin-block: 18px; }
.tool-panel fieldset { border: 1px solid #476651; border-radius: 10px; padding: 18px; margin: 20px 0; min-width: 0; }
.tool-panel legend { padding-inline: 8px; font-size: 14px; color: var(--mint); }
.tool-panel output { color: var(--mint); font-family: var(--mono); }
.tool-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; list-style: none; padding: 0; margin: 24px 0; counter-reset: route; }
.tool-route li { border: 1px solid #4e6c59; background: #102219; padding: 19px; border-radius: 10px; line-height: 1.65; overflow-wrap: anywhere; counter-increment: route; }
.tool-route li::before { content: counter(route, decimal-leading-zero); display: block; color: var(--lilac); font: 13px/1.5 var(--mono); margin-bottom: 12px; }
.tool-route strong { display: block; margin-bottom: 8px; font-size: 17px; color: var(--mint); }
.tool-route span { color: #bdcec1; font-size: 13px; }
.tool-panel .prose h3 { margin-top: 20px; }
.tool-related { padding-block: 16px 54px; max-width: 980px; }
.tool-related h2 { font-size: 25px; margin-bottom: 16px; }
.tool-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 25px; }
.tool-related a { display: inline-block; padding-block: 8px; color: var(--mint); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.tool-panel .table-scroll { margin-block: 20px; }
.tool-panel table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; line-height: 1.6; }
.tool-panel th, .tool-panel td { padding: 12px; border-bottom: 1px solid #354f3e; }
.tool-panel th { color: var(--mint); }
.tool-panel details { padding-block: 16px; border-top: 1px solid #3b5342; }
.tool-panel summary { font-size: 15px; line-height: 1.6; color: var(--mint); }
.tools-section-head { margin: 12px 0 22px; }
.tools-section-head h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.25; margin-top: 8px; }
.tools-section-head p { margin-top: 10px; color: var(--muted); max-width: 720px; line-height: 1.7; }
.tool-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid #4e6c59; background: #102219; color: var(--mint); }
.tool-badge-warn { border-color: #7c6739; background: #262013; color: #f2cf8d; }
.tool-badge-alert { border-color: #824b4b; background: #291616; color: #f5b4b4; }
.tool-badge-info { border-color: #5b4d78; background: #1e1929; color: var(--lilac); }
.guidance-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.guidance-item { padding: 16px 18px; border-radius: 10px; border: 1px solid #354f3e; border-left: 4px solid var(--mint); background: #101c17; line-height: 1.65; }
.guidance-item strong { display: block; color: var(--foreground); margin-bottom: 4px; font-size: 15px; }
.guidance-item p { margin: 0; color: #c3d1c7; font-size: 14px; }
.guidance-warn { border-left-color: #f2cf8d; }
.guidance-alert { border-left-color: #f5b4b4; }
.guidance-info { border-left-color: var(--lilac); }
.tool-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.tool-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--foreground); cursor: pointer; min-height: 36px; }
.tool-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mint); cursor: pointer; }
.track-matrix th, .track-matrix td { text-align: center; padding: 10px 8px; }
.track-matrix th:first-child, .track-matrix td:first-child { text-align: left; min-width: 155px; }
.track-matrix input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--mint); cursor: pointer; }
.tool-divider { border: 0; border-top: 1px solid #354f3e; margin: 26px 0; }
@media (max-width: 760px) {
  .tool-route { grid-template-columns: 1fr; }
  .tool-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid .guide-card { padding: 24px; }
}
@media (max-width: 520px) {
  .tools-grid, .tool-grid, .tool-results { grid-template-columns: 1fr; }
  .tool-results > .tool-readout { grid-template-columns: 1fr; }
  .tool-controls > .button, .tool-actions > .button { flex: 1 1 140px; }
  .tool-panel { padding: 20px; border-radius: 12px; }
  .tool-button-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-panel .button { transition: none; }
}
