:root {
  --ink: #18181a;
  --muted: #626269;
  --soft: #777780;
  --brand: #171719;
  --brand-dark: #343438;
  --line: #e6e6eb;
  --line-strong: #d7d7df;
  --canvas: #fff;
  --white: #fff;
  --rail: #fafafc;
  --panel-tint: #f6f6f8;
  --round: 14px;
  --shadow: 0 10px 30px rgb(18 18 27 / 7%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  color-scheme: light;
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button:not(:disabled), select, input[type="range"] { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid #5245c1; outline-offset: 3px; }
h1, h2, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 11; transform: translateY(-150%); padding: 8px 12px; border-radius: 8px; background: var(--brand); color: white; }
.skip-link:focus { transform: none; }
.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.icon.external-icon { width: 12px; height: 12px; }
.icon.filled { fill: currentColor; stroke: none; width: 16px; height: 16px; }

.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-size: 18px; font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.brand img { display: block; width: 31px; height: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; font-size: 13px; line-height: 1.3; font-weight: 650; white-space: nowrap; transition: background-color .18s, border-color .18s; }
.button-primary { background: var(--brand); border-color: var(--brand); color: white; }
.button-primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--panel-tint); }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover:not(:disabled), .quiet-link:hover:not(:disabled) { background: var(--panel-tint); color: var(--ink); }
.button-sm { min-height: 35px; padding: 7px 10px; font-size: 12px; }
.quiet-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; border: 0; border-radius: 6px; background: transparent; padding: 5px 6px; color: var(--muted); font-size: 12px; font-weight: 590; line-height: 1.35; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .105em; }
.eyebrow i, .art-light i { display: inline-block; width: 6px; height: 6px; background: #8a77b7; border-radius: 50%; flex-shrink: 0; }

.admin-shell { display: grid; grid-template-columns: 214px minmax(0,1fr); align-items: start; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 19px 15px 13px; border-right: 1px solid var(--line); background: var(--rail); min-width: 0; }
.sidebar .brand { margin: 1px 6px 0; }
.side-body { padding-top: 36px; flex: 1; min-height: 0; overflow-y: auto; }
.side-label { padding: 0 9px 10px; color: var(--soft); font-size: 11px; font-weight: 650; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button, .side-preview { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 570; white-space: nowrap; }
.sidebar nav button:hover:not(:disabled), .side-preview:hover { color: var(--ink); background: #f0f0f3; }
.sidebar nav button.active { background: #ececf0; color: var(--ink); font-weight: 670; }
.sidebar nav .icon { width: 17px; height: 17px; }
.side-preview { justify-content: space-between; margin-top: 7px; }
.rail-help { margin: 0 3px 12px; }
.side-foot { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 11px 2px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eae8f7; color: #4e4277; font-size: 11px; font-weight: 730; flex: 0 0 auto; }
.side-foot strong, .side-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot strong { font-size: 12px; }
.side-foot small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.rail-logout { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.rail-logout:hover { background: #ededf0; color: var(--ink); }
.main-area { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 9px 32px; border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; }
.breadcrumb { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.crumb-separator { color: #8d8d96; }
.secure-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 11px; font-weight: 680; white-space: nowrap; }
.dashboard { max-width: 1380px; margin: 0 auto; padding: 32px 32px 20px; }
.dash-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin: 0 0 24px; }
.dash-heading h1 { font-size: clamp(31px,4vw,42px); font-weight: 740; line-height: 1.1; letter-spacing: -.055em; }
.dash-heading .eyebrow { margin-bottom: 9px; }
.dash-heading p, .table-top p, .table-empty p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.dash-heading p { margin-top: 8px; }
.dash-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 1px 0; color: var(--muted); font-size: 11px; }
.dash-footer .quiet-link { padding-left: 0; font-size: 11px; }

.studio-heading { margin-bottom: 21px; }
.studio-workbench { display: grid; grid-template-columns: minmax(0,1fr) minmax(276px,319px); align-items: start; gap: 13px; }
.compose, .inspector, .editor-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--round); background: white; }
.compose { display: flex; flex-direction: column; overflow: hidden; }
.compose:focus-within { border-color: var(--line-strong); }
.compose-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 14px 6px 17px; border-bottom: 1px solid var(--line); }
.compose-title { display: flex; align-items: center; gap: 8px; }
.compose-title .icon { color: #6b6b74; }
.compose-title h2, .inspector-intro h2, .provider-card h2 { font-size: 14px; font-weight: 680; letter-spacing: -.01em; }
.compose textarea { display: block; width: 100%; min-height: clamp(298px,44vh,490px); margin: 0; padding: 18px 20px; resize: vertical; background: white; border: 0; border-radius: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.compose textarea::placeholder { color: #767683; }
.compose textarea:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px #d8d2fc; }
.compose textarea[readonly] { background: #fdfdfe; }
.compose-footer { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; padding: 10px 13px 10px 16px; border-top: 1px solid var(--line); }
.compose-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#char-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.studio-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 13px; border-top: 1px solid var(--line); background: #fbfbfd; }
.studio-status:not(:has(> :not([hidden]))) { display: none; }
.studio-status .callout { flex: 1 1 160px; padding: 0; margin: 0; border: 0; background: none; }
.studio-status .callout-error { color: #9c3131; }
.inspector { overflow: hidden; }
.inspector-nav { display: flex; gap: 12px; align-items: stretch; min-height: 52px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.inspector-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 49px; padding: 0 4px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 620; white-space: nowrap; }
.inspector-nav button:hover, .inspector-nav button[aria-pressed="true"] { color: var(--ink); }
.inspector-nav button[aria-pressed="true"] { border-bottom-color: var(--ink); }
.count-chip { display: grid; place-items: center; min-width: 17px; min-height: 17px; padding-inline: 4px; border-radius: 10px; background: #eeeef2; color: #4b4b56; font-size: 10px; }
.inspector-body { padding: 15px 16px 17px; }
.inspector-intro { margin-bottom: 16px; }
.inspector-intro p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field, .provider-card label, .dialog label, .gate-form label { display: block; color: var(--ink); font-size: 12px; font-weight: 660; }
.inspector-body .field { margin-top: 12px; }
.field select, .provider-card input, .provider-card select, .gate-form input:not([type=checkbox]), .dialog input, .dialog select, .dialog textarea { display: block; width: 100%; min-height: 38px; margin-top: 5px; padding: 8px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink); font-size: 13px; font-weight: 470; }
.field select:disabled { opacity: .65; cursor: not-allowed; }
.voice-select { position: relative; display: block; }
.voice-select select { padding-left: 33px; }
.voice-orb { position: absolute; left: 9px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 28%,#decafa 1%,#ad87d8 44%,#6a63b2 74%,#e3d6f8 100%); pointer-events: none; }
.speed-label, .range-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.speed-label output { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.range-meta { color: var(--muted); font-size: 10px; font-weight: 460; }
.speed-field input { display: block; width: 100%; height: 22px; margin: 3px 0 0; accent-color: var(--brand); }
.engine-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding: 8px; border-radius: 8px; background: #f6f6f8; color: var(--muted); }
.engine-hint .icon { width: 15px; height: 15px; }
.engine-note { font-size: 11px; line-height: 1.45; }
.segments-body { max-height: min(585px,70vh); overflow-y: auto; }
.empty-parts { color: var(--muted); font-size: 12px; line-height: 1.55; padding: 6px 0; }
.part-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 8px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.part-number { display: grid; place-items: center; min-width: 27px; height: 22px; padding-inline: 3px; border-radius: 6px; background: var(--panel-tint); color: #51515a; font-size: 11px; font-weight: 680; }
.part-title { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.part-buttons { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.part-buttons .button { min-height: 29px; padding: 4px 7px; font-size: 11px; }
.audio-dock { position: sticky; bottom: 10px; z-index: 2; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 65px; margin-top: 14px; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--line); background: white; box-shadow: 0 5px 17px rgb(16 16 26 / 7%); }
.transport-cover { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: #f0edf8; color: #55486e; }
.transport-meta { flex: 0 0 auto; }
.transport-meta h2 { font-size: 13px; font-weight: 690; }
.transport-meta p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.transport-empty { flex: 1; margin-left: 7px; color: var(--muted); font-size: 12px; }
.audio-dock:has(.transport-output:not([hidden])) .transport-empty { display: none; }
.transport-output { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: 3px; }
.transport-output audio { display: block; width: min(100%,550px); height: 39px; }
.transport-output .quiet-link { flex: 0 1 auto; font-size: 11px; }
#download { flex: 0 0 auto; margin-left: auto; }
#download .icon { width: 14px; height: 14px; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(272px,100%),1fr)); gap: 12px; }
.provider-card { padding: 16px; }
.provider-card p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.provider-card form { display: grid; gap: 10px; }
.provider-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.metric { display: grid; align-content: start; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.metric-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.metric-top > span { color: var(--muted); font-size: 12px; font-weight: 630; }
.metric-icon, .empty-icon { display: grid; place-items: center; border-radius: 8px; background: var(--panel-tint); color: #575761; }
.metric-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.metric-violet { background: #f0edf9; color: #5b4a85; }
.metric-amber { background: #fff4e8; color: #874f26; }
.metric strong { margin: 4px 0; color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: -.05em; line-height: 1.12; }
.metric small { color: var(--muted); font-size: 11px; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--round); background: white; }
.table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.table-top h2 { margin-bottom: 3px; font-size: 17px; font-weight: 690; letter-spacing: -.025em; }
.table-tools { display: flex; align-items: center; gap: 7px; }
.search, .select-filter { display: flex; align-items: center; min-height: 37px; gap: 6px; padding: 0 8px; background: white; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); }
.search input, .select-filter select { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search :focus-visible, .select-filter :focus-visible { outline: 0; }
.search:focus-within, .select-filter:focus-within { outline: 2px solid #5245c1; outline-offset: 1px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
th { background: #f8f8fa; color: var(--muted); font-size: 11px; font-weight: 680; }
td { color: var(--muted); }
td strong { color: var(--ink); font-weight: 650; }
th:first-child, td:first-child { padding-left: 14px; }
tr:last-child td { border-bottom: 0; }
.customer-cell { display: flex; align-items: center; gap: 8px; }
.customer-cell small, .customer-cell strong { display: block; }
.customer-cell small { margin-top: 3px; font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; background: #f1f1f4; border-radius: 999px; color: #52525d; font-size: 11px; font-weight: 650; }
.badge i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge-pro { background: #f0ebfb; color: #594381; }
.badge-active { background: #ecf6f0; color: #256047; }
.badge-pending { background: #fff4df; color: #785322; }
.badge-disabled, .badge-denied { background: #fff0ee; color: #8c3b36; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--ink); }
.table-empty { display: grid; gap: 7px; justify-items: center; padding: 27px 13px 32px; text-align: center; }
.table-empty strong { font-size: 14px; }
.empty-icon { width: 36px; height: 36px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.callout { display: flex; align-items: center; gap: 7px; padding: 9px 11px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-tint); color: #4b4b54; font-size: 12px; line-height: 1.45; }
.callout-error, .form-message { border-color: #f1cfcc; background: #fff1f0; color: #913a36; }
.form-message { padding: 7px 9px; border-radius: 7px; font-size: 12px !important; line-height: 1.45; margin: 0 !important; }
.dialog { width: min(483px,calc(100% - 24px)); max-height: calc(100% - 20px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--round); background: white; color: var(--ink); box-shadow: 0 22px 70px rgb(12 12 18 / 25%); }
.dialog::backdrop { background: rgb(10 10 16 / 36%); }
.dialog form { display: grid; gap: 12px; padding: 16px; }
.dialog-head { display: flex; justify-content: space-between; gap: 7px; }
.dialog-head h2 { font-size: 21px; font-weight: 690; letter-spacing: -.04em; }
.dialog-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.dialog label small { color: var(--muted); font-weight: 480; }
.dialog input[readonly] { background: var(--panel-tint); }
.dialog textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; padding-top: 11px; border-top: 1px solid var(--line); }
.wrap { flex-wrap: wrap; }

.public-page { display: flex; flex-direction: column; min-height: 100dvh; background: white; }
.public-nav, .public-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(1120px,100%); margin: 0 auto; padding: 18px 28px; }
.public-nav { border-bottom: 1px solid var(--line); }
.public-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-footer span:first-child { color: var(--ink); font-weight: 690; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); align-items: center; gap: 38px; width: min(1120px,100%); padding: 46px 28px; margin: auto; }
.hero h1 { margin: 8px 0 13px; font-size: clamp(48px,7.5vw,91px); line-height: .95; font-weight: 740; letter-spacing: -.082em; }
.hero h1 em { font-family: Georgia, 'Times New Roman', serif; color: #292831; font-weight: 500; }
.hero p { max-width: 390px; margin-bottom: 17px; color: var(--muted); font-size: clamp(14px,1.4vw,16px); line-height: 1.6; }
.hero .hero-note { margin: 11px 0 0; font-size: 12px; }
.sound-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; min-height: 282px; border: 1px solid var(--line-strong); border-radius: 18px; background: radial-gradient(ellipse at 56% 38%,#faf7ff 0,#f6f4fa 52%,#fff 100%); box-shadow: var(--shadow); }
.art-top, .art-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 11px; }
.art-top > span:first-child { color: var(--ink); font-size: 13px; font-weight: 670; }
.art-light { display: flex; align-items: center; gap: 5px; padding: 4px 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.wave-grid { display: grid; place-items: center; height: 187px; margin: 8px 0; border: 1px solid var(--line); border-radius: 9px; background: repeating-linear-gradient(0deg,#fff8,#fff8 22px,#eae6f48f 23px,#fff8 24px); }
.wave { display: flex; align-items: center; justify-content: center; gap: clamp(2px,.65vw,6px); width: 90%; height: 62%; }
.wave i { flex: 1; min-width: 2px; max-width: 7px; border-radius: 10px; background: linear-gradient(#282632,#83759d); }
.wave i:nth-child(1){height:12%}.wave i:nth-child(2){height:26%}.wave i:nth-child(3){height:38%}.wave i:nth-child(4){height:24%}.wave i:nth-child(5){height:52%}.wave i:nth-child(6){height:67%}.wave i:nth-child(7){height:43%}.wave i:nth-child(8){height:27%}.wave i:nth-child(9){height:75%}.wave i:nth-child(10){height:100%}.wave i:nth-child(11){height:54%}.wave i:nth-child(12){height:37%}.wave i:nth-child(13){height:68%}.wave i:nth-child(14){height:50%}.wave i:nth-child(15){height:29%}.wave i:nth-child(16){height:86%}.wave i:nth-child(17){height:100%}.wave i:nth-child(18){height:56%}.wave i:nth-child(19){height:36%}.wave i:nth-child(20){height:72%}.wave i:nth-child(21){height:49%}.wave i:nth-child(22){height:58%}.wave i:nth-child(23){height:84%}.wave i:nth-child(24){height:51%}.wave i:nth-child(25){height:27%}.wave i:nth-child(26){height:47%}.wave i:nth-child(27){height:35%}.wave i:nth-child(28){height:17%}.wave i:nth-child(29){height:35%}.wave i:nth-child(30){height:22%}.wave i:nth-child(31){height:14%}
.gate { width: min(435px,calc(100% - 30px)); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--round); background: white; box-shadow: var(--shadow); }
.gate-icon { display: block; width: 36px; height: 36px; margin-bottom: 12px; }
.gate h1 { margin: 6px 0; font-size: clamp(26px,5vw,34px); font-weight: 730; letter-spacing: -.055em; }
.gate p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.gate-form form { display: grid; gap: 10px; margin-top: 13px; }
.gate-form .check-label { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); line-height: 1.5; font-weight: 520; }
.check-label input { margin-top: 3px; accent-color: var(--brand); }
.check-label a { text-decoration: underline; }
.gate-foot { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 1090px) {
  .admin-shell { grid-template-columns: 181px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .dashboard, .topbar { padding-inline: 20px; }
  .studio-workbench { grid-template-columns: minmax(0,1fr) minmax(246px,278px); gap: 10px; }
}
@media (max-width: 835px) {
  .admin-shell { grid-template-columns: 159px minmax(0,1fr); }
  .studio-workbench { grid-template-columns: minmax(0,1fr) 231px; gap: 8px; }
  .sidebar .brand { font-size: 15px; }
  .sidebar .brand img { width: 25px; height: 25px; }
  .sidebar nav button, .side-preview { font-size: 11px; }
  .dashboard, .topbar { padding-inline: 13px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compose textarea { min-height: 280px; padding: 13px; }
  .hero { gap: 16px; }
}
@media (max-width: 660px) {
  .admin-shell { display: block; }
  .sidebar { position: relative; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; padding: 10px 12px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0; }
  .side-body { grid-column: 1/-1; grid-row: 2; padding: 0; display: flex; align-items: center; gap: 5px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar nav button, .side-preview { width: auto; min-height: 32px; padding: 5px 6px; }
  .side-preview { margin: 0; }
  .side-label, .rail-help { display: none; }
  .side-foot { grid-row: 1; grid-column: 2; padding: 0; border: 0; display: flex; gap: 5px; }
  .side-foot .avatar { width: 25px; height: 25px; }
  .side-foot > div:nth-child(2) { display: none; }
  .topbar { min-height: 42px; padding-block: 7px; }
  .topbar, .breadcrumb strong { font-size: 11px; }
  .dashboard { padding-top: 16px; }
  .dash-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 13px; }
  .dash-heading h1 { font-size: 31px; }
  .studio-workbench { grid-template-columns: minmax(0,1fr); }
  .compose textarea { min-height: 235px; font-size: 16px; }
  .audio-dock { gap: 6px; min-height: 59px; bottom: 5px; margin-top: 8px; padding: 6px 8px; }
  .transport-cover { width: 28px; height: 28px; border-radius: 6px; }
  .transport-meta h2 { font-size: 11px; }
  .transport-meta p, .transport-empty { font-size: 10px; }
  .transport-empty { margin-left: 0; }
  .audio-dock:has(.transport-output:not([hidden])) { flex-wrap: wrap; }
  .transport-output { flex-basis: 100%; order: 2; }
  .table-top { flex-wrap: wrap; padding: 10px; }
  .table-tools { width: 100%; }
  .table-tools .search { flex: 1; }
  .public-nav, .public-footer { padding: 12px; }
  .public-nav .brand { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 23px 12px; gap: 13px; }
  .sound-art { min-height: 183px; padding: 10px; }
  .wave-grid { height: 121px; }
  .gate { margin-block: 24px; }
}
@media (max-width: 360px) {
  .compose-footer .generate { flex: 1 1 100%; }
  .table-tools { flex-wrap: wrap; }
  .table-tools .search { flex-basis: 100%; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .public-nav .button { padding-inline: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
