:root {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #183b32;
  background: #faf8f0;
  color-scheme: light;
  --muted: #536a60;
  --line: #d7e4da;
  --mint: #e5f2e7;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.frame { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.top { background: #fffdf8; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 66px; display: flex; gap: 11px; align-items: center; font-weight: 800; }
.mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; background: var(--mint); color: #29674f; }
.top-label { color: var(--muted); font-size: .84rem; font-weight: 600; padding-left: 12px; border-left: 1px solid var(--line); }
.locale { margin-left: auto; font-size: .72rem; letter-spacing: .08em; color: #286049; background: var(--mint); border-radius: 20px; padding: 6px 10px; }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 212px; padding: 28px 40px; margin-top: 24px; border-radius: 25px; background: #19483c; color: #fbfff6; }
.eyebrow { margin: 0 0 7px; color: #387961; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.hero .eyebrow { color: #b6e9c6; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 12px; }
h2 { font-size: 1.19rem; margin-bottom: 12px; letter-spacing: -.025em; }
.intro { max-width: 49ch; color: #d4eadc; margin-bottom: 0; line-height: 1.55; }
.hero-art { position: relative; flex: 0 0 205px; height: 152px; display: grid; place-items: center; }
.hero-art img { position: relative; width: 146px; height: 146px; object-fit: contain; filter: drop-shadow(0 10px 12px #0d30296b); }
.wave { position: absolute; width: 169px; height: 140px; border-radius: 46% 54% 58% 42%; background: #83c9a059; transform: rotate(-11deg); box-shadow: 0 0 0 15px #74c3962b, 0 0 0 31px #74c39617; }
.voice-section { margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading p { font-size: .83rem; color: var(--muted); }
.voice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, audio:focus-visible { outline: 3px solid #49866c; outline-offset: 2px; }
.voice { display: flex; align-items: center; text-align: left; gap: 10px; padding: 8px 10px; background: #fffef9; border: 1px solid var(--line); border-radius: 13px; min-height: 65px; }
.voice:hover, .clip:hover { background: #f1f7ed; }
.voice[aria-pressed="true"], .clip[aria-pressed="true"] { border-color: #6ba389; background: var(--mint); }
.voice img { width: 43px; height: 43px; object-fit: contain; }
.voice strong, .voice small { display: block; }
.voice small { color: var(--muted); font-size: .72rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 14px; align-items: start; margin-top: 18px; }
.panel { min-width: 0; background: #fffef9; border: 1px solid var(--line); border-radius: 17px; padding: 18px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, .54fr); gap: 9px; }
.filters label, .local-control { display: grid; gap: 5px; font-size: .76rem; font-weight: 700; }
.filters input, .filters select { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid #b8cbbd; border-radius: 8px; background: #fffef9; font-size: .88rem; }
.library-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block: 12px 8px; font-size: .8rem; color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.checkbox input { accent-color: #34785d; }
.clips { display: grid; gap: 5px; list-style: none; padding: 0; margin: 0; }
.clip { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 8px; border: 1px solid transparent; border-radius: 8px; background: #f7f8f1; padding: 9px 10px; }
.clip-copy { min-width: 0; }
.clip-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; font-size: .88rem; }
.clip small, .muted, footer { color: var(--muted); font-size: .81rem; }
.clip small { display: block; }
.clip-play { font-size: .78rem; color: #35745b; font-weight: 800; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.pagination button { border: 1px solid var(--line); border-radius: 8px; background: #f5f8f0; padding: 7px 10px; }
.detail-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--mint); border-radius: 20px; padding: 5px 9px; color: #285741; font-size: .72rem; font-weight: 750; }
.chip[data-status="demo"] { background: #fff1cf; color: #644e20; }
.chip[data-status="missing"] { background: #edf0e9; color: #4b6458; }
.script { font-size: 1.33rem; font-weight: 690; line-height: 1.35; margin: 14px 0 10px; overflow-wrap: anywhere; }
.audio-id { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
audio { width: 100%; display: block; margin-bottom: 8px; }
.local-control { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.local-control input { min-width: 0; font-weight: 450; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-block: 20px; }
@media (max-width: 850px) {
  .frame { width: calc(100% - 30px); }
  .hero { padding: 24px; }
  .hero-art { flex-basis: 158px; }
}
@media (max-width: 650px) {
  .workspace { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { display: none; }
}
