:root {
  --ink: #123a35;
  --ink-2: #31564f;
  --muted: #6f8b84;
  --line: #dcebe4;
  --bg: #eaf6ef;
  --surface: #ffffff;
  --surface-soft: #f4faf7;
  --accent: #e35b2c;
  --accent-dark: #c8481d;
  --teal: #2f9c88;
  --purple: #9e80d8;
  --orange: #e67442;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(18, 58, 53, 0.09);
  --shadow-soft: 0 6px 20px rgba(18, 58, 53, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fbf9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.card { background: var(--surface); border: 1px solid rgba(220, 235, 228, 0.9); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1280px, calc(100% - 40px)); margin: 0 auto;
  min-height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; color: var(--teal); display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.brand-text small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: .18s; }
.main-nav a:hover { background: #eef6f2; color: var(--ink); }
.main-nav a.is-active { color: var(--ink); font-weight: 600; position: relative; }
.main-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -18px; height: 2px; background: var(--teal); border-radius: 2px; }
.header-right { display: flex; align-items: center; }
.local-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(188, 230, 211, .72), transparent 70%),
    linear-gradient(160deg, #e6f5ec 0%, #eff8f1 42%, #f7fbf8 100%);
  border-bottom: 1px solid #e2efe8;
}
.hero-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-lines::before, .hero-lines::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(47, 156, 136, .13);
}
.hero-lines::before { width: 1180px; height: 1180px; right: -420px; top: 70px; box-shadow: 0 0 0 40px rgba(47,156,136,.035), 0 0 0 90px rgba(47,156,136,.025), 0 0 0 145px rgba(47,156,136,.02); }
.hero-lines::after { width: 720px; height: 720px; left: -380px; top: 360px; box-shadow: 0 0 0 55px rgba(47,156,136,.025); }
.hero > .container { position: relative; z-index: 1; padding: 44px 0 72px; }
.hero-head { max-width: 760px; margin-bottom: 30px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.hero h1 {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: .01em;
}
.hero-sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--ink-2); }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges .icon { color: var(--teal); }

/* ---------- upload ---------- */
.tool-card { position: relative; z-index: 2; overflow: hidden; }
.upload-panel { padding: 10px; }
.drop-zone {
  border: 1.5px dashed #c8e0d5; border-radius: 14px; background: #fcfefd;
  padding: 46px 24px 40px; text-align: center; transition: .2s;
}
.drop-zone.is-dragging { border-color: var(--teal); background: #eef9f4; transform: scale(.995); }
.upload-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e8f4ee; color: var(--teal); font-size: 20px; }
.mini-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 22px; margin: 10px 0 14px; }
.mini-wave i { width: 2px; background: var(--teal); border-radius: 2px; opacity: .85; }
.mini-wave i:nth-child(1), .mini-wave i:nth-child(9) { height: 6px; }
.mini-wave i:nth-child(2), .mini-wave i:nth-child(8) { height: 12px; }
.mini-wave i:nth-child(3), .mini-wave i:nth-child(7) { height: 18px; }
.mini-wave i:nth-child(4), .mini-wave i:nth-child(6) { height: 10px; }
.mini-wave i:nth-child(5) { height: 22px; }
.drop-zone h2 { font-size: 22px; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; }
.drop-zone > p:not(.upload-note):not(.upload-status):not(.error-text) { margin-top: 10px; color: var(--muted); font-size: 13px; }
.upload-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.upload-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.upload-status { margin-top: 12px; color: var(--teal); font-size: 13px; }
.error-text { margin-top: 12px; color: #b8402a; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
  background: transparent; color: var(--ink); white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgba(227, 91, 44, .22); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border-color: #cbded5; background: #fff; color: var(--ink-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--teal); color: var(--ink); background: #f6fbf8; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1d5149; }
.btn-text { padding: 6px 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.btn-text:hover { color: var(--ink); background: #eef6f2; }
.btn-small { padding: 6px 11px; font-size: 12.5px; font-weight: 500; border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-small:hover:not(:disabled) { border-color: var(--teal); color: var(--ink); }
.btn-small.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-square { min-width: 32px; padding: 6px; font-size: 16px; line-height: 1.2; }
.btn-block { width: 100%; }

/* ---------- editor ---------- */
.editor-panel { padding: 0; }
.file-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.file-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #eaf5ef; color: var(--teal); font-size: 20px; }
.file-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.file-info span:not(.file-icon) { font-size: 12px; color: var(--muted); }
.file-actions { display: flex; align-items: center; gap: 8px; }
.file-type { font-size: 12px; color: var(--muted); margin-right: 6px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; }
.wave-column { padding: 18px 22px 24px; min-width: 0; border-right: 1px solid var(--line); }
.settings-column { padding: 18px; background: #f7fbf9; display: flex; flex-direction: column; gap: 16px; }
.wave-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar-group { display: flex; gap: 6px; }
.wave-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.wave-wrap { margin-top: 12px; height: 224px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6fbf9; }
#waveCanvas, #simpleWaveCanvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.wave-legend { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.wave-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.dot-auto { background: rgba(158, 128, 216, .65); }
.dot-manual { background: rgba(230, 116, 66, .7); }
.dot-select { background: rgba(40, 116, 190, .6); }
.view-label { margin-left: auto; font-variant-numeric: tabular-nums; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px solid #c9dff4; background: #f0f7ff; border-radius: 10px; font-size: 13px; }
.selection-bar > div { display: flex; gap: 6px; }

.player { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #f2f8f5; border: 1px solid var(--line); }
.player .btn { padding: 8px 14px; }
.mode-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.mode-switch button { border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mode-switch button.is-active { background: var(--ink); color: #fff; }
#seekBar { flex: 1; min-width: 60px; }
.play-time { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 16px; padding: 0; margin: 0;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: #d9e9e1; border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border: 3px solid var(--teal); border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(18, 58, 53, .18);
}
input[type="range"]::-moz-range-track { height: 4px; background: #d9e9e1; border-radius: 999px; }
input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px; border: 3px solid var(--teal);
  border-radius: 50%; background: #fff;
}
input[type="text"], input[type="number"], select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: #fff; color: var(--ink); outline: none; font-size: 13px;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,156,136,.12); }

.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title-row h3 { font-size: 14px; }
.section-title-row > span { font-size: 12px; color: var(--muted); }
.muted-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cuts-section { margin-top: 22px; }
.cuts-list { margin-top: 10px; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.cuts-list .empty { padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12.5px; }
.cut-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; }
.cut-item.is-off { opacity: .58; }
.cut-item.is-off .cut-time { text-decoration: line-through; }
.cut-badge { padding: 2px 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.cut-badge.auto { background: #f0e9fb; color: #6d51a8; }
.cut-badge.manual { background: #fdeee6; color: #b65327; }
.cut-time { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.cut-length { color: var(--muted); white-space: nowrap; }
.cut-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cut-actions button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.cut-actions button:hover { background: #eef6f2; color: var(--ink); }
.cut-actions .icon { width: 13px; height: 13px; }
.cut-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.cut-toggle input { accent-color: var(--teal); }
.range-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.range-fields { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.range-fields label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.range-fields label span { display: inline-flex; align-items: center; gap: 4px; }
.range-fields input { width: 96px; padding: 6px 8px; }

.settings-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; box-shadow: var(--shadow-soft); }
.settings-card h2 { font-size: 17px; }
.card-intro { font-size: 12px; color: var(--muted); margin-top: 6px; }
.control { margin-top: 18px; }
.control-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.control-head output { font-size: 12.5px; color: var(--teal); font-variant-numeric: tabular-nums; }
.control input[type="range"] { width: 100%; margin: 10px 0 0; }
.control-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.estimate { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.estimate-row { display: flex; align-items: baseline; justify-content: space-between; }
.estimate-row span { font-size: 12.5px; color: var(--muted); }
.estimate-row strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.estimate p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.detect-summary { margin-top: 12px !important; padding: 9px 10px; background: #f1f8f4; border-radius: 8px; color: var(--ink-2) !important; line-height: 1.6; }
.export-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; box-shadow: var(--shadow-soft); }
.export-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.export-card h3 .icon { color: var(--teal); font-size: 18px; }
.export-fields { margin-top: 14px; display: grid; gap: 6px; }
.export-fields label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.export-summary { margin-top: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.export-card .btn-primary { margin-top: 10px; }
#exportProgress { width: 100%; height: 6px; margin-top: 12px; accent-color: var(--teal); }
.export-status { font-size: 12px; color: var(--teal); margin-top: 8px; }

/* ---------- content sections ---------- */
.section { margin-top: 56px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 24px; }
.section-head > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.demo-card { padding: 22px; }
.demo-row + .demo-row { margin-top: 18px; }
.demo-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.demo-labels strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-row canvas { display: block; width: 100%; height: 78px; border-radius: 8px; background: #f6fbf9; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.demo-foot p { font-size: 12.5px; color: var(--muted); }
.steps-card { padding: 24px; }
.steps-lead { display: flex; gap: 14px; align-items: flex-start; }
.step-icon { width: 36px; height: 36px; border-radius: 10px; background: #eaf5ef; color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.steps-lead h3 { font-size: 16px; }
.steps-lead p { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.steps li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fcfa; }
.steps li span { font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: .08em; }
.steps li p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.sample-card { padding: 24px; }
.sample-card > p + p { margin-top: 12px; }
.sample-card p { font-size: 13.5px; color: var(--ink-2); }
.sample-card strong { color: var(--ink); }
.sample-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sample-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.checksum { margin-top: 10px; padding: 12px; background: #f5faf7; border-radius: 8px; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); word-break: break-all; }
.sample-card .muted-note { margin-top: 14px; }
.caution { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: #fffdf6; border-color: #f0e5c8; }
.caution-icon { width: 36px; height: 36px; border-radius: 10px; background: #fbf1d8; color: #a5741b; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.caution h3 { font-size: 15px; }
.caution p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.faq-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { padding: 16px 20px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--teal); font-size: 16px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { color: var(--teal); }
.faq-list details p { padding: 0 20px 18px; font-size: 13.5px; color: var(--ink-2); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-tile { display: block; padding: 20px; text-decoration: none; transition: .2s; position: relative; }
.tool-tile:hover { transform: translateY(-2px); border-color: #bcd9cc; }
.tile-icon { width: 34px; height: 34px; border-radius: 9px; background: #eaf5ef; color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.tool-tile strong { display: block; margin-top: 12px; font-size: 15px; }
.tool-tile p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.tool-tile em { position: absolute; right: 16px; top: 16px; font-style: normal; font-size: 11px; color: var(--muted); background: #f2f7f4; border-radius: 999px; padding: 2px 8px; }
.tech-reference { margin-top: 16px; font-size: 12px; color: var(--muted); }
.tech-reference a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; background: #f1f7f3; border-top: 1px solid var(--line); padding: 36px 0 18px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { margin-bottom: 10px; }
.footer-inner p { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 60px; }
.footer-links div { display: flex; flex-direction: column; gap: 6px; }
.footer-links strong { font-size: 12.5px; margin-bottom: 4px; }
.footer-links a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(18,58,53,.25); max-width: min(90vw, 520px); }

/* ---------- shared workbench ---------- */
.btn-result { margin-top: 8px; padding: 8px 12px; font-size: 12.5px; }
#simpleControls { max-height: 430px; overflow-y: auto; padding-right: 4px; }
#simpleControls .control:first-child { margin-top: 14px; }
.control-select { margin-top: 16px; }
.control-select label { display: block; font-size: 13px; font-weight: 600; }
.control-select select { margin-top: 8px; }
.control-select .control-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.control-check { margin-top: 16px; }
.control-check label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.control-check input { accent-color: var(--teal); margin: 4px 0 0; flex: none; }
.control-check .control-hint { font-size: 11.5px; color: var(--muted); margin: 4px 0 0 24px; }
.handoff { margin-top: 22px; padding: 16px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.handoff h3 { font-size: 14px; }
.handoff p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.handoff-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.handoff-links a { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.handoff-links a:hover, .handoff-links a.is-active { border-color: var(--teal); color: var(--ink); background: #f0f8f4; }
.tool-tile.is-active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(47, 156, 136, .15); }
.tool-tile.is-active em { background: var(--teal); color: #fff; }
.tools-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .editor-grid { grid-template-columns: 1fr; }
  .wave-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-column { flex-direction: row; flex-wrap: wrap; }
  .settings-column > * { flex: 1 1 280px; }
  .header-right { display: none; }
}
@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .main-nav a { padding: 8px 9px; font-size: 12.5px; }
  .main-nav a.is-active::after { bottom: -8px; }
  .hero > .container { padding: 30px 0 48px; }
  .hero-badges { gap: 10px; }
  .file-bar { flex-direction: column; align-items: flex-start; }
  .file-info strong { max-width: 62vw; }
  .steps, .tools-grid { grid-template-columns: 1fr; }
  .section { margin-top: 40px; }
  .player { flex-wrap: wrap; }
  #seekBar { order: 4; flex-basis: 100%; }
  .section-head h2 { font-size: 21px; }
  .footer-links { gap: 32px; }
}
@media (max-width: 480px) {
  .container, .header-inner { width: calc(100% - 24px); }
  .brand-text small { display: none; }
  .drop-zone { padding: 32px 14px; }
  .drop-zone h2 { font-size: 19px; }
  .wave-column, .file-bar { padding-left: 14px; padding-right: 14px; }
  .wave-wrap { height: 190px; }
  .btn { padding: 9px 13px; font-size: 13px; }
  .cut-item { flex-wrap: wrap; }
  .cut-actions { margin-left: 0; width: 100%; }
}
