/* recoverer, same look as ahrix.io */

/* self-hosted Outfit, no google fonts request */
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin.woff2) format("woff2");
  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; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format("woff2");
  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; }

:root {
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --heading: #111827;   /* gray-900 */
  --text: #374151;      /* gray-700 */
  --muted: #6b7280;     /* gray-500 */
  --faint: #9ca3af;     /* gray-400 */
  --fainter: #d1d5db;   /* gray-300 */
  --label: #999;
  --line: rgba(229, 231, 235, 0.6);  /* gray-200/60 */
  --rule: #e5e7eb;      /* gray-200 */
  --rule-soft: #f3f4f6; /* gray-100 */
  --sep: rgba(17, 24, 39, 0.08);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --track: rgba(17, 24, 39, 0.04);
  --teal: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-soft: #2dd4bf;
  --blue: #60a5fa;
  --link-hover: #0d9488;
  --shimmer-base: #1a1a1a;
  --warn: #b45309;
  --number: #0d9488;   /* big counts */
}

.dark {
  --bg: #0a0a0f;
  --fg: #e5e5e5;
  --heading: #f3f4f6;   /* gray-100 */
  --text: #d1d5db;      /* gray-300 */
  --muted: #9ca3af;     /* gray-400 */
  --faint: #6b7280;     /* gray-500 */
  --fainter: #4b5563;   /* gray-600 */
  --label: #666;
  --line: rgba(31, 41, 55, 0.6);     /* gray-800/60 */
  --rule: #1f2937;      /* gray-800 */
  --rule-soft: #1f2937;
  --sep: rgba(255, 255, 255, 0.08);
  --glass: rgba(20, 20, 30, 0.5);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  --track: rgba(255, 255, 255, 0.05);
  --link-hover: #2dd4bf;
  --shimmer-base: #e5e5e5;
  --warn: #fbbf24;
  --number: #2dd4bf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: Outfit, system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-ligatures: no-common-ligatures;
  transition: background-color 0.3s, color 0.3s;
}
::selection { background: rgba(74, 158, 142, 0.2); color: #2d6e63; }
a { color: inherit; }
.hidden { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; background: #111827; color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 50; font-size: 14px; font-weight: 500; }
.skip:focus { left: 16px; }

/* ===== background ===== */
.topbar { height: 2px; background: var(--teal-600); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== layout ===== */
.page { position: relative; z-index: 10; max-width: 768px; margin: 0 auto; padding: 32px 24px 0; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; line-height: 32px; }
.theme-toggle { background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--faint); line-height: 0; transition: color 0.2s; }
.theme-toggle:hover { color: var(--muted); }
.theme-toggle .sun { display: none; }
.dark .theme-toggle .sun { display: inline; }
.dark .theme-toggle .moon { display: none; }
.tabs { display: flex; gap: 24px; margin-top: 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; color: var(--faint); padding-bottom: 10px; transition: color 0.3s; }
.tabs a:hover { color: var(--muted); }
.tabs a.active { color: var(--heading); font-weight: 500; border-bottom: 2px solid var(--teal); margin-bottom: -1px; }


.section-label { text-transform: uppercase; letter-spacing: 0.25em; font-size: 11px; font-weight: 500; color: var(--label); margin: 0 0 16px; }
.section-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.muted { color: var(--muted); margin: 0; }
.tiny { font-size: 12px; color: var(--faint); margin: 10px 0 0; overflow-wrap: anywhere; }

main { padding-bottom: 16px; }
.view { animation: rise 0.35s cubic-bezier(0.32, 0.72, 0, 1) both; }
body:not([data-view="home"]) .home-only { display: none; }
#view-scan, #view-results, #view-saved { margin-top: 48px; }

/* ===== buttons ===== */
.btn {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 999px; padding: 10px 20px;
  border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.btn.primary:hover { background: var(--teal-700); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2); }
.btn.big { font-size: 16px; font-weight: 600; padding: 13px 28px; }
.btn.ghost {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--glass); color: var(--text); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
}
html:not(.dark) .btn.ghost { border-color: rgba(17, 24, 39, 0.08); }
.btn.ghost:hover { color: var(--teal-700); border-color: rgba(94, 234, 212, 0.6); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.dark .btn.ghost:hover { color: #2dd4bf; }
.btn.small { font-size: 12px; padding: 8px 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 6px 8px; cursor: pointer; color: var(--faint); border-radius: 8px; transition: color 0.3s; }
.link:hover { color: var(--link-hover); }
.btn:focus-visible, .link:focus-visible, .tabs a:focus-visible, .theme-toggle:focus-visible, summary:focus-visible, input:focus-visible, .fab:focus-visible, .footer-list a:focus-visible, .footer-list button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ===== glass ===== */
.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.card { border-radius: 16px; }

/* ===== start screen ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 28px; margin-top: 44px; }
.hero-copy { grid-column: 1; grid-row: 1; }
.product-row { display: flex; align-items: baseline; gap: 9px; }
.product-name { margin: 0; color: var(--heading); font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.alpha-label { color: var(--muted); font-size: 11px; }
.eyebrow { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.headline { margin: 18px 0 0; color: var(--heading); font-size: clamp(2.1rem, 6vw, 2.85rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.sub { margin: 0; max-width: 60ch; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-sub { margin-top: 15px; }
.sound-journey { --story-time: 9s; grid-column: 2; grid-row: 1; align-self: center; width: 240px; margin: 0; }
.story-art svg { display: block; width: 100%; overflow: visible; }
.story-scene { opacity: 0; }
.story-reuse { opacity: 1; }
.story-panel { fill: var(--bg); stroke: var(--muted); stroke-opacity: .3; }
.story-sheet-back { fill: var(--track); stroke: var(--sep); }
.story-grid { stroke: var(--sep); }
.story-small { fill: var(--muted); font: 10px ui-monospace, Consolas, monospace; }
.story-preset-name { fill: var(--heading); font: 14px Outfit, sans-serif; }
.story-found-notes, .story-sound-fill { fill: var(--teal-600); }
.story-wave, .story-check { stroke: var(--teal-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-scan-line, .story-new-playhead { stroke: var(--teal); stroke-width: 1.5; opacity: 0; }
.story-existing-clips { fill: var(--muted); opacity: .2; }
.story-reused-sound { transform: translateX(104px); }
.story-sound-wave { stroke: white; stroke-width: 1.2; stroke-linejoin: round; }
.story-sound-name { fill: white; font: 11px Outfit, sans-serif; }
.dark .story-wave, .dark .story-check { stroke: var(--teal-soft); }
.dark .story-found-notes { fill: var(--teal-soft); }
.story-copy { margin-top: 7px; }
.story-caption { display: grid; margin: 0; min-height: 2.8em; align-items: center; color: var(--text); font-size: 13px; line-height: 1.4; text-align: center; }
.story-caption span { grid-area: 1 / 1; opacity: 0; }
.story-caption .story-caption-reuse { opacity: 1; }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 28px; }
.story-controls .quiet-link { font-size: 12px; }
.story-toggle { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 4px; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; }
.story-toggle[hidden] { display: none; }
.story-toggle:hover { background: var(--track); color: var(--heading); }
.story-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.story-toggle svg { display: none; width: 18px; height: 18px; }
.story-toggle[data-control='play'] .story-icon-play, .story-toggle[data-control='pause'] .story-icon-pause, .story-toggle[data-control='replay'] .story-icon-replay { display: block; }
/* All tracks share a finite timeline. The final reuse scene remains visible after it ends. */
.story-active .story-projects, .story-active .story-caption-projects { animation: story-projects var(--story-time) linear both; }
.story-active .story-presets, .story-active .story-caption-presets { animation: story-presets var(--story-time) linear both; }
.story-active .story-reuse, .story-active .story-caption-reuse { animation: story-reuse var(--story-time) linear both; }
.story-active .story-found-notes { animation: story-find-notes var(--story-time) linear both; }
.story-active .story-scan-line { animation: story-scan var(--story-time) linear both; }
.story-active .story-row-one { animation: story-preset-one var(--story-time) ease-out both; }
.story-active .story-row-two { animation: story-preset-two var(--story-time) ease-out both; }
.story-active .story-row-three { animation: story-preset-three var(--story-time) ease-out both; }
.story-active .story-reused-sound { animation: story-place-sound var(--story-time) ease-in-out both; }
.story-active .story-new-playhead { animation: story-play-track var(--story-time) linear both; }
.sound-journey[data-playback='paused'] * { animation-play-state: paused !important; }
@keyframes story-projects { 0%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes story-presets { 0%, 29% { opacity: 0; } 35%, 61% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes story-reuse { 0%, 64% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes story-find-notes { 0%, 8% { opacity: .25; } 22%, 100% { opacity: 1; } }
@keyframes story-scan { 0%, 4% { opacity: 0; transform: translateX(0); } 7% { opacity: .8; } 26% { opacity: .8; transform: translateX(160px); } 29%, 100% { opacity: 0; transform: translateX(160px); } }
@keyframes story-preset-one { 0%, 31% { opacity: 0; transform: translateY(5px); } 36%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes story-preset-two { 0%, 34% { opacity: 0; transform: translateY(5px); } 39%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes story-preset-three { 0%, 37% { opacity: 0; transform: translateY(5px); } 42%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes story-place-sound { 0%, 70% { transform: translateX(0); } 85%, 100% { transform: translateX(104px); } }
@keyframes story-play-track { 0%, 85% { opacity: 0; transform: translateX(0); } 87% { opacity: .65; } 98% { opacity: .65; transform: translateX(130px); } 100% { opacity: 0; transform: translateX(130px); } }
.project-picker { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 25px; }
.drop { border: 1px dashed var(--teal-600); border-radius: 14px; padding: 23px; text-align: center; background: rgba(13, 148, 136, .025); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.dark .drop { border-color: rgba(45, 212, 191, .6); }
.drop.dragging { border-color: var(--teal); background: rgba(20, 184, 166, .09); box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.drop-hint { color: var(--muted); font-size: 13px; }
.picker-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.project-picker > .privacy-note { text-align: center; }
.privacy-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.browser-permission { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.drop-error { margin: 14px 0 0; color: var(--warn); font-size: 14px; }
.start-options { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.secondary-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; }
.quiet-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--sep); text-underline-offset: 4px; cursor: pointer; }
.quiet-link:hover { color: var(--heading); text-decoration-color: currentColor; }
.quiet-link:disabled { opacity: .5; cursor: default; text-decoration: none; }
.quiet-link:focus-visible, .platform-switch button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 3px; }
.platform-control { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.platform-control .quiet-link { font-size: inherit; }
.platform-control .quiet-link::before { content: '·'; display: inline-block; margin-right: 8px; color: var(--muted); }
.save-platform { margin-bottom: 10px; }
.community { margin: 34px 0 0; padding: 22px 0; border-top: 1px solid var(--sep); }
.community p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.community .community-signature { margin-top: 9px; color: var(--heading); font-size: 13px; font-weight: 600; }
.help { margin-top: 4px; }
.help-topic { min-width: 0; border-top: 1px solid var(--sep); }
.help-topic:last-child { border-bottom: 1px solid var(--sep); }
.help-topic summary, .save-details summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.help-topic summary::-webkit-details-marker, .save-details summary::-webkit-details-marker { display: none; }
.help-topic summary::after, .save-details summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.help-topic[open] summary::after, .save-details[open] summary::after { content: '−'; }
.help-body { padding-bottom: 14px; }
.help-body h3, #setup-details h3 { color: var(--heading); margin: 20px 0 6px; font-size: 14px; font-weight: 500; }
.help-body p, #setup-details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.save-details { margin-top: 18px; border-block: 1px solid var(--sep); }
#setup-details { padding: 0 0 14px; }
#setup-details code { display: block; font-size: 12px; overflow-wrap: anywhere; margin-bottom: 14px; }
.mobile-card { grid-column: 1 / -1; grid-row: 2; margin-top: 25px; }
.mobile-card > p { margin: 0; color: var(--muted); font-size: 14px; }
.mobile-card .actions { justify-content: flex-start; margin-top: 14px; }
.mobile-card .privacy-note { margin-top: 12px; font-size: 12px; }
.platform-dialog, .demo-dialog { color: var(--text); background: var(--bg); border: 1px solid var(--sep); border-radius: 16px; padding: 24px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.platform-dialog { width: 400px; }
.demo-dialog { width: 760px; }
.platform-dialog::backdrop, .demo-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.platform-dialog h2, .dialog-heading h2 { margin: 0; color: var(--heading); font-size: 20px; line-height: 1.3; font-weight: 600; }
.platform-dialog > p { margin: 12px 0 20px; font-size: 14px; }
.platform-switch { display: flex; gap: 6px; margin: 16px 0; }
.platform-switch button { flex: 1; padding: 10px; font: inherit; font-size: 14px; border: 1px solid var(--sep); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.platform-switch button[aria-pressed='true'] { border-color: var(--teal-600); background: var(--track); color: var(--heading); }
#platform-close { display: block; width: 100%; margin-top: 20px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.demo-proof { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.tiny-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.tiny-toggle input { accent-color: var(--teal); margin: 0; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ===== scanning ===== */
#view-scan { text-align: center; padding-bottom: 40px; }
.counter {
  font-size: clamp(4.5rem, 20vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 8px 0 0.16em;
  font-variant-numeric: tabular-nums; color: var(--number);
}
#view-scan .sub { margin: 0 auto 26px; }
.progress { height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; max-width: 420px; margin: 0 auto; }
.progress-bar { height: 100%; width: 0; border-radius: 4px; background: var(--teal); transition: width 0.2s; }
.ticker { list-style: none; padding: 0; margin: 28px auto 0; max-width: 520px; display: grid; gap: 6px; text-align: left; min-height: 330px; align-content: start; }
.ticker li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 9px 14px; border-radius: 10px; background: var(--track); animation: rise 0.25s ease both; }
.ticker li:nth-child(n+5) { opacity: 0.55; }
.ticker li:nth-child(n+7) { opacity: 0.25; }
.ticker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker em { font-style: normal; color: var(--teal); white-space: nowrap; }

/* ===== results ===== */
.results-headline { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--heading); margin: 0 0 10px; }
.count-num { display: block; font-size: clamp(4rem, 17vw, 7rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--number); padding-bottom: 0.16em; }
#view-results .sub, #view-saved .sub { margin-bottom: 20px; }

.btn.accent { background: rgba(20, 184, 166, 0.1); color: var(--teal-700); border-color: rgba(45, 212, 191, 0.4); }
.dark .btn.accent { color: var(--teal-soft); }
.btn.accent:hover { background: rgba(20, 184, 166, 0.18); }
.stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); min-width: 96px; }
.stats strong { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--heading); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--faint); }
.note { font-size: 13px; color: var(--faint); margin: -8px 0 18px; }

.picker { margin-top: 8px; }
.picker-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.picker-tools input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--fg); background: var(--glass); border: 1px solid var(--sep); border-radius: 12px; padding: 10px 14px; }
.pick-hint { font-size: 13px; color: var(--faint); margin: 0 0 12px; }
.groups { display: grid; gap: 8px; }
.group { border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); box-shadow: var(--glass-shadow); overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 12px; padding-left: 16px; }
.group-toggle { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 12px 16px 12px 0; cursor: pointer; }
.group-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 12px; }
.group-name { font-weight: 600; font-size: 15px; color: var(--heading); }
.badge { grid-column: 1; grid-row: 2; justify-self: start; font-size: 12px; margin-top: 2px; color: var(--faint); }
.badge.daw::before, .badge.warn::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.badge.daw::before { color: var(--faint); }
.badge.warn::before { color: var(--warn); }
.group-count { grid-column: 2; grid-row: 1 / 3; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chevron { grid-column: 3; grid-row: 1 / 3; color: var(--faint); font-size: 20px; transition: transform 0.2s; }
.group.open .chevron { transform: rotate(90deg); }
.rows { display: none; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--sep); padding: 4px 0; }
.group.open .rows { display: block; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 7px 16px; font-size: 14px; cursor: pointer; }
.row[hidden] { display: none; }
.row:hover { background: var(--track); }
.row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.picker input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; flex: none; margin: 0; cursor: pointer; }

.save-bar { position: sticky; bottom: 16px; z-index: 5; margin-top: 22px; padding: 14px; border-radius: 16px; text-align: center; background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12); }
.dark .save-bar { box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35); }
.save-bar #download { font-size: 13px; }
.save-bar-inner { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.save-bar .btn.primary { flex: 1 1 260px; max-width: 420px; font-size: 15px; font-weight: 600; padding: 12px 20px; }
.save-bar .tiny { margin-top: 8px; }
.after-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; }

/* ===== saved ===== */
.where { padding: 20px 22px; margin: 6px 0 4px; }
.where-title { margin: 0 0 10px; font-weight: 600; color: var(--heading); }
.where-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 14px; line-height: 1.625; color: var(--muted); }
.where-list li + li { border-top: 1px solid var(--sep); padding-top: 14px; }
.where-note { color: var(--heading); font-weight: 500; }
.where-note p { margin: 0; }
.where-note .btn { margin-top: 10px; }
.where-more { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.where-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--heading); }
.where-count { color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.where-how { margin: 2px 0 0; }
.where-path { display: block; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.where-path-label { margin: 10px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.where-copy { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; }
.where-copy .where-path { margin: 0; color: var(--heading); }
.where-copy .copy { padding: 2px 8px; font-size: 13px; color: var(--teal); }
.where-tip { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ===== optional demo + compatibility table ===== */
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--teal-600); border: 1px solid rgba(20, 184, 166, 0.35); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.dark .step-n { color: var(--teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* hero clips: a tab per step over one clip of the real page, in a browser window on a soft teal panel */
.demo { margin-top: 28px; padding: 12px 12px 16px; border-radius: 22px; background: rgba(20, 184, 166, 0.07); border: 1px solid rgba(13, 148, 136, 0.16); }
.dark .demo { background: rgba(45, 212, 191, 0.045); border-color: rgba(45, 212, 191, 0.12); }
.demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; min-height: 64px; }
.demo-tab {
  position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 12px 14px 16px; border-radius: 14px; border: 1px solid transparent; background: none;
  font: inherit; color: var(--muted); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.demo-tab:hover { background: rgba(20, 184, 166, 0.08); }
.demo-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-tab h3 { margin: 3px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: inherit; }
.demo-tab[aria-selected="true"] { background: var(--bg); border-color: rgba(13, 148, 136, 0.18); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06); color: var(--heading); }
.dark .demo-tab[aria-selected="true"] { background: #111118; border-color: rgba(45, 212, 191, 0.16); box-shadow: none; }
.demo-tab[aria-selected="true"] .step-n { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.demo-progress { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--track); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.demo-progress i { display: block; height: 100%; background: var(--teal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.demo-tab[aria-selected="true"] .demo-progress { opacity: 1; }
.demo-window { border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid rgba(17, 24, 39, 0.1); box-shadow: 0 18px 40px -22px rgba(17, 24, 39, 0.35); }
.dark .demo-window { border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.demo-bar { height: 34px; display: grid; place-items: center; background: #f0f1f3; border-bottom: 1px solid rgba(17, 24, 39, 0.07); }
.dark .demo-bar { background: #15151d; border-bottom-color: rgba(255, 255, 255, 0.06); }
.demo-url { display: inline-flex; align-items: center; gap: 6px; padding: 3px 16px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--bg); }
.dark .demo-url { background: #0c0c12; }
.demo-url svg { color: var(--faint); }
.demo-frame { position: relative; aspect-ratio: 3 / 2; background: var(--bg); }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.demo-play {
  position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--heading); cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shadow); transition: transform 0.2s, color 0.2s;
}
html:not(.dark) .demo-play { border-color: rgba(17, 24, 39, 0.08); }
.demo-play:hover { color: var(--teal-600); transform: scale(1.06); }
.dark .demo-play:hover { color: var(--teal-soft); }
.demo-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-play .icon-play, .demo.paused .demo-play .icon-pause { display: none; }
.demo.paused .demo-play .icon-play { display: block; }
.demo-body { margin: 14px 6px 0; min-height: 3em; color: var(--text); font-size: 15px; line-height: 1.5; }
.demo-note { margin: 2px 6px 0; color: var(--faint); font-size: 12px; }
.synth-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13px; }
.synth-table th, .synth-table td { text-align: left; padding: 7px 8px 7px 0; border-top: 1px solid var(--sep); vertical-align: top; }
.synth-table th { font-weight: 600; color: var(--heading); width: 38%; }
.synth-table td { color: var(--muted); }
.synth-table .ext { white-space: nowrap; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ===== footer ===== */
.site-footer { margin-top: 32px; padding-bottom: 28px; }
.footer-inner { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.footer-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a, .footer-row button { font: inherit; color: inherit; border: 0; background: none; padding: 0; text-decoration: none; cursor: pointer; }
.footer-row a:hover, .footer-row button:hover { color: var(--heading); }
.footer-row a:focus-visible, .footer-row button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.footer-legal { max-width: 72ch; margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* ===== dialogs ===== */
.share-dialog { color: var(--fg); border-radius: 20px; padding: 22px; max-width: min(420px, calc(100vw - 32px)); width: 100%; text-align: center; background: var(--bg); }
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
.share-preview { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 14px; border: 1px solid var(--sep); }
.share-dialog .link { margin-top: 10px; }
.feedback-dialog { text-align: left; }
.feedback-intro { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.feedback-dialog textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: var(--track);
  border: 1px solid var(--sep); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 120px;
}
.feedback-dialog textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.feedback-details { display: flex; margin-top: 10px; }
.feedback-dialog .actions { justify-content: flex-start; }
.feedback-dialog a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.folder-dialog { text-align: left; }
.folder-title { margin: 0 0 8px; font-weight: 600; color: var(--heading); }
.folder-dialog .actions { justify-content: flex-start; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--heading); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 768px) {
  .page { padding: 40px 32px 0; }
  .hero { margin-top: 44px; }
  .footer-inner { padding: 0 32px; }
}



@media (max-width: 560px) {
  .drop { padding: 20px 16px; }
  .drop .btn.big { padding-inline: 18px; }
  .synth-table { table-layout: fixed; }
  .synth-table th, .synth-table td { overflow-wrap: anywhere; }
  .synth-table .ext { white-space: normal; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .sound-journey { grid-column: 1; grid-row: 3; width: 100%; display: grid; grid-template-columns: minmax(110px, .9fr) minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 22px; }
  .story-copy { margin: 0; }
  .story-caption { font-size: 12px; text-align: left; min-height: 3em; }
  .story-controls { justify-content: flex-start; flex-wrap: wrap; gap: 4px; }
  .story-controls .quiet-link { font-size: 11px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 8px; }
  .drop-hint { display: block; width: 100%; text-align: center; }
  .start-options { gap: 18px; }
  .platform-control { width: 100%; }
  .community { margin-top: 26px; }
  .demo-dialog { padding: 16px; }
  .demo { margin-top: 24px; padding: 8px 8px 12px; border-radius: 16px; }
  .demo-tabs { gap: 4px; margin-bottom: 8px; min-height: 96px; }
  .demo-tab { flex-direction: column; gap: 8px; padding: 10px 10px 14px; border-radius: 12px; }
  .demo-tab h3 { margin: 0; font-size: 13px; }
  .demo-progress { left: 10px; right: 10px; bottom: 6px; }
  .demo-window { border-radius: 10px; }
  .demo-bar { height: 24px; }
  .demo-url { font-size: 10px; padding: 1px 10px; gap: 4px; }
  .demo-url svg { width: 9px; height: 9px; }
  .demo-play { left: 8px; bottom: 8px; width: 32px; height: 32px; }
  .demo-body { margin-top: 10px; font-size: 14px; }
  .row-meta { display: none; }
  .save-bar { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .view, .ticker li { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
