:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-strong: #171c22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ea;
  --muted: #929aa4;
  --accent: #f0b95d;
  --accent-soft: rgba(240, 185, 93, 0.14);
  --cyan: #77d8d2;
  --danger: #ff7a72;
  --success: #76d39b;
  --radius: 16px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(119, 216, 210, 0.08), transparent 28rem),
    radial-gradient(circle at 8% 82%, rgba(240, 185, 93, 0.08), transparent 30rem),
    var(--bg);
}

button, input, select { font: inherit; }
button { color: inherit; }

.hidden { display: none !important; }

.app-shell { min-height: 100vh; }

.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #18120a;
  font-weight: 800;
  background: linear-gradient(145deg, #ffe2a8, var(--accent));
  box-shadow: 0 0 0 6px rgba(240, 185, 93, 0.08);
}
.brand h1 { font-size: 16px; margin: 0 0 4px; letter-spacing: 0.02em; }
.brand p { color: var(--muted); font-size: 12px; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.button, .icon-button, .text-button, .quick-nav button {
  border: 0;
  cursor: pointer;
  transition: 150ms ease;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.button.primary { color: #171108; background: var(--accent); }
.button.primary:hover { background: #ffd080; transform: translateY(-1px); }
.button.ghost { background: rgba(255,255,255,0.055); border: 1px solid var(--line); }
.button.ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--line-strong); }
.button.danger { color: #ffd8d5; background: rgba(255, 122, 114, 0.12); border: 1px solid rgba(255, 122, 114, 0.24); }
.button.danger:hover { background: rgba(255, 122, 114, 0.2); }
.button:disabled { opacity: 0.5; cursor: wait; transform: none; }
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.icon-button:hover { color: var(--text); border-color: var(--line-strong); }
.text-button { padding: 3px; color: var(--cyan); background: none; font-size: 12px; }
.text-button:hover { color: #b6f4ef; }

.status-pill {
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.status-pill.ok { color: var(--success); background: rgba(118, 211, 155, 0.08); }
.status-pill.bad { color: var(--danger); background: rgba(255, 122, 114, 0.08); }

.layout {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 218px minmax(520px, 1fr) 330px;
}

.sidebar, .inspector { background: rgba(18, 22, 27, 0.78); }
.sidebar { padding: 26px 18px; border-right: 1px solid var(--line); }
.inspector { padding: 24px; border-left: 1px solid var(--line); overflow: auto; }
.side-section + .side-section { margin-top: 30px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.quick-nav { display: grid; gap: 5px; }
.quick-nav button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  color: var(--muted);
  background: transparent;
}
.quick-nav button:hover, .quick-nav button.active { color: var(--text); background: rgba(255,255,255,0.06); }
.quick-nav button.active::before { content: "·"; color: var(--accent); margin-right: 8px; }

.stats-card, .note-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: rgba(255,255,255,0.025); }
.stats-card dl { display: grid; gap: 11px; margin: 0; }
.stats-card dl div { display: flex; justify-content: space-between; align-items: baseline; }
.stats-card dt { color: var(--muted); font-size: 12px; }
.stats-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.note-card p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.note-card strong { color: var(--text); }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.workspace-header {
  min-height: 94px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.breadcrumbs button { border: 0; padding: 2px 3px; background: none; color: var(--text); cursor: pointer; font-size: 15px; font-weight: 700; }
.breadcrumbs button:hover { color: var(--accent); }
.breadcrumbs span { color: #505862; }
.root-path { margin: 6px 0 0; max-width: 48vw; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }
.search-box {
  width: min(260px, 25vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
}
.search-box:focus-within { border-color: rgba(240,185,93,0.55); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }

.file-table-wrap { flex: 1; overflow: auto; position: relative; }
.file-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.file-table th { position: sticky; top: 0; z-index: 2; padding: 12px 18px; text-align: left; color: #6f7882; background: #0e1115; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: 0.08em; }
.file-table th:first-child { width: 36%; }
.file-table th:nth-child(2) { width: 13%; }
.file-table th:nth-child(3) { width: 18%; }
.file-table th:nth-child(4) { width: 13%; }
.file-table th:nth-child(5) { width: 20%; }
.file-table td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.055); color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-table tr { cursor: pointer; transition: background 120ms ease; }
.file-table tbody tr:hover { background: rgba(255,255,255,0.035); }
.file-table tbody tr.selected { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.file-name { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.file-glyph { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--cyan); background: rgba(119,216,210,0.08); border: 1px solid rgba(119,216,210,0.13); }
.file-glyph.directory { color: var(--accent); background: var(--accent-soft); border-color: rgba(240,185,93,0.18); }
.spec-chip { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,0.045); color: #b7bec6; font-variant-numeric: tabular-nums; }
.spec-chip.aligned { color: var(--success); }
.empty-state { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-state div { color: var(--accent); font-size: 42px; }
.empty-state h2 { color: var(--text); font-size: 16px; margin: 8px 0 4px; }
.empty-state p { margin: 0; font-size: 12px; }
.workspace-footer { min-height: 48px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.inspector-empty { min-height: 70vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.inspector-empty h2 { margin: 20px 0 5px; color: var(--text); font-size: 16px; }
.inspector-empty p { margin: 0; font-size: 12px; }
.orb { width: 70px; height: 70px; margin: auto; border-radius: 50%; border: 1px solid rgba(240,185,93,0.4); background: radial-gradient(circle at 35% 35%, #f8d393, #8a5520 50%, #16110d 72%); box-shadow: inset -9px -12px 24px rgba(0,0,0,0.6), 0 0 35px rgba(240,185,93,0.12); }
.preview-player { margin-bottom: 20px; }
.preview { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #070809; border: 1px solid var(--line); }
.preview img, .preview video { width: 100%; height: 100%; display: block; object-fit: contain; }
.preview video { background: #050607; }
.preview.video-mode { border-radius: 14px; }
.preview.overlay-mode {
  background-color: #10141a;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.035) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}
.preview.overlay-mode img {
  position: absolute;
  top: 8%;
  width: var(--overlay-preview-scale, 16%);
  height: var(--overlay-preview-scale, 16%);
  object-fit: contain;
}
.preview-placeholder { color: var(--muted); font-size: 12px; }
.preview-live { position: absolute; top: 16px; right: 28px; padding: 4px 7px; border-radius: 99px; color: #171108; background: var(--accent); box-shadow: 0 4px 18px rgba(0,0,0,0.38); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; }
.preview-controls { margin-top: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.025); }
.preview-control-row { min-height: 30px; display: flex; align-items: center; gap: 9px; }
.preview-control-row + .preview-control-row { margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--line); }
.preview-play-button { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(240,185,93,0.28); border-radius: 50%; color: #171108; background: var(--accent); cursor: pointer; font-size: 11px; font-weight: 900; }
.preview-play-button:hover { background: #ffd080; }
.preview-play-button:disabled { opacity: 0.55; cursor: wait; }
.preview-frame-status { min-width: 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-options { justify-content: space-between; color: var(--muted); font-size: 10px; }
.preview-options label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.preview-options input[type="number"] { width: 48px; height: 26px; padding: 0 5px; color: var(--text); background: #0c0f12; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; font-variant-numeric: tabular-nums; }
.preview-options input[type="number"]:focus { border-color: rgba(240,185,93,0.65); }
.preview-options input[type="checkbox"] { accent-color: var(--accent); }
.inspector-content h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.selected-path { margin: 7px 0 20px; color: var(--muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.detail-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.detail-grid div { min-height: 64px; padding: 11px; background: var(--panel); }
.detail-grid dt { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.detail-grid dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.hardware-hint { margin: 12px 0 0; padding: 10px 11px; border-radius: 9px; color: var(--success); background: rgba(118,211,155,0.08); border: 1px solid rgba(118,211,155,0.15); font-size: 11px; line-height: 1.5; }
.hardware-hint.warning { color: var(--accent); background: var(--accent-soft); border-color: rgba(240,185,93,0.18); }
.inspector-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inspector-actions .primary, .inspector-actions .danger { grid-column: 1 / -1; }

.jobs-panel, .voices-panel { position: fixed; z-index: 50; top: 0; right: 0; width: min(430px, 92vw); height: 100vh; padding: 24px; background: #11151a; border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: translateX(105%); transition: transform 220ms ease; overflow: auto; }
.voices-panel { width: min(620px, 96vw); }
.jobs-panel.open, .voices-panel.open { transform: translateX(0); }
.panel-scrim { display: none; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,0.58); }
.panel-scrim.open { display: block; }
.jobs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.jobs-header h2 { margin: 0; font-size: 22px; }
.jobs-list { display: grid; gap: 10px; }
.job-card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid var(--line); }
.job-top { display: flex; justify-content: space-between; gap: 12px; }
.job-card strong { font-size: 12px; overflow-wrap: anywhere; }
.job-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.job-status.completed { color: var(--success); }
.job-status.failed { color: var(--danger); }
.job-card p { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,0.07); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width 300ms ease; }

.voice-capability { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #0d1115; }
.voice-capability strong { font-size: 12px; }
.voice-capability span, .voice-panel-status { color: var(--muted); font-size: 11px; line-height: 1.5; }
.voice-capability.unavailable { border-color: rgba(255,122,114,0.32); }
.voice-toolbar { display: flex; gap: 8px; margin-top: 14px; }
.voice-search { width: auto; flex: 1; }
.voice-actions { display: flex; gap: 8px; margin: 10px 0 13px; }
.voice-actions .button { flex: 1; }
.voice-preview { width: 100%; height: 36px; margin: 0 0 10px; }
.voice-panel-status { min-height: 17px; margin: 0 0 10px; }
.voice-list { display: grid; gap: 8px; }
.voice-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.025); }
.voice-card:hover { border-color: var(--line-strong); }
.voice-card-main { min-width: 0; }
.voice-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.voice-card-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.voice-status { padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.voice-status.ready { border-color: rgba(118,211,155,0.3); color: var(--success); background: rgba(118,211,155,0.07); }
.voice-status.failed { border-color: rgba(255,122,114,0.3); color: var(--danger); background: rgba(255,122,114,0.07); }
.voice-status.training { border-color: rgba(240,185,93,0.35); color: var(--accent); background: var(--accent-soft); }
.voice-id { margin: 6px 0 4px; overflow-wrap: anywhere; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.voice-meta { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.voice-card-actions { display: grid; grid-template-columns: repeat(2, 30px); align-content: start; gap: 5px; }
.voice-card-actions .icon-button { width: 30px; height: 30px; font-size: 13px; }
.voice-empty { padding: 24px 12px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }

.modal { width: min(540px, calc(100vw - 30px)); padding: 0; color: var(--text); background: #171b20; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(5px); }
.modal form { padding: 24px; }
.compact-modal { width: min(430px, calc(100vw - 30px)); }
.convert-modal, .voice-clone-modal { width: min(620px, calc(100vw - 30px)); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal h2 { margin: 0; font-size: 21px; }
.modal-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.field { display: grid; gap: 7px; margin: 14px 0; color: #c3c8ce; font-size: 11px; font-weight: 650; }
.field input:not([type="range"]), .field select, .field textarea { width: 100%; min-height: 40px; padding: 0 11px; color: var(--text); background: #0f1216; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; }
.field textarea { min-height: 74px; padding-top: 9px; padding-bottom: 9px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(240,185,93,0.65); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { color: var(--muted); font-weight: 400; line-height: 1.5; }
.quality-field strong { color: var(--accent); }
.quality-field input { accent-color: var(--accent); }
.form-grid { display: grid; gap: 12px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 15px 0; color: var(--muted); font-size: 11px; }
.check-field input { accent-color: var(--accent); }
.drop-zone { min-height: 130px; display: grid; place-content: center; text-align: center; gap: 5px; margin: 15px 0; border: 1px dashed rgba(240,185,93,0.35); border-radius: 13px; background: var(--accent-soft); cursor: pointer; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: rgba(240,185,93,0.2); }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-zone strong { font-size: 13px; }
.drop-zone span { color: var(--muted); font-size: 11px; }
.clone-mode-fieldset { margin: 0 0 13px; padding: 0; border: 0; }
.clone-mode-fieldset legend { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0e1115; }
.segmented-control label { position: relative; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { display: grid; min-height: 34px; place-items: center; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.segmented-control input:checked + span { color: #17120a; background: var(--accent); }
.clone-audio-picker { position: relative; display: grid; min-height: 84px; place-content: center; gap: 5px; margin: 14px 0; padding: 12px; border: 1px dashed rgba(240,185,93,0.4); border-radius: 8px; background: var(--accent-soft); cursor: pointer; text-align: center; }
.clone-audio-picker:hover { border-color: var(--accent); }
.clone-audio-picker input { position: absolute; opacity: 0; pointer-events: none; }
.clone-audio-picker strong { font-size: 13px; }
.clone-audio-picker span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.clone-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clone-options .check-field { margin: 4px 0 10px; }
.billing-warning { margin: 3px 0 11px; padding: 11px 12px; border: 1px solid rgba(240,185,93,0.28); border-radius: 8px; background: var(--accent-soft); }
.billing-warning strong { color: var(--accent); font-size: 11px; }
.billing-warning p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.authorization-check { align-items: flex-start; }
.conversion-source { padding: 12px; border-radius: 10px; background: #0f1216; border: 1px solid var(--line); }
.conversion-source span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.conversion-source strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.alignment-message { padding: 8px 10px; border-radius: 8px; color: var(--success); background: rgba(118,211,155,0.08); font-size: 11px; }
.alignment-message.warning { color: var(--accent); background: var(--accent-soft); }
.form-error { color: #ffaaa4; background: rgba(255,122,114,0.08); border-radius: 8px; padding: 9px 10px; font-size: 11px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 380px; padding: 11px 14px; border-radius: 10px; color: var(--text); background: #242a31; border: 1px solid var(--line-strong); box-shadow: 0 12px 35px rgba(0,0,0,0.32); font-size: 12px; animation: toast-in 180ms ease; }
.toast.error { border-color: rgba(255,122,114,0.3); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1120px) {
  .layout { grid-template-columns: 190px minmax(500px, 1fr); }
  .inspector { position: fixed; z-index: 35; top: var(--workspace-header-height,84px); right: 0; bottom: 0; width: 340px; transform: translateX(102%); transition: transform 180ms ease; box-shadow: var(--shadow); }
  .inspector.has-selection { transform: translateX(0); }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 76px; padding: 14px 16px; }
  .brand p, .status-pill { display: none; }
  .topbar-actions .ghost { display: none; }
  .topbar-actions .voice-button { display: inline-flex; }
  .layout { min-height: calc(100vh - 76px); grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .workspace-header { align-items: flex-start; flex-direction: column; padding: 16px; }
  .workspace-actions { width: 100%; }
  .search-box { width: auto; flex: 1; }
  .file-table th, .file-table td { padding-left: 12px; padding-right: 12px; }
  .file-table th:first-child { width: 58%; }
  .file-table th:nth-child(2), .file-table td:nth-child(2), .file-table th:nth-child(5), .file-table td:nth-child(5) { display: none; }
  .file-table th:nth-child(3) { width: 24%; }
  .file-table th:nth-child(4) { width: 18%; }
  .root-path { max-width: 88vw; }
  .inspector { top: var(--workspace-header-height,84px); width: 100%; }
  .voices-panel { width: 100vw; padding: 18px; }
  .voice-card { grid-template-columns: minmax(0, 1fr); }
  .voice-card-actions { grid-template-columns: repeat(4, 30px); }
  .clone-options, .voice-clone-modal .two-columns { grid-template-columns: 1fr; }
}
