* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px 64px;
}
header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
  margin: 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 12px;
}
p {
  color: var(--muted);
}
.intro {
  max-width: 760px;
  font-size: 18px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 6px;
}
.badge {
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px;
  background: var(--panel);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}
.options,
.actions,
.row,
.trim {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.actions {
  margin-top: 20px;
}
.grow {
  flex: 1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #d1dbea;
  min-width: 0;
}
.check {
  flex-direction: row;
  align-items: center;
}
input,
textarea,
select,
button,
a.download {
  font: inherit;
  max-width: 100%;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #566882;
  border-radius: 8px;
  background: #121c2c;
  color: inherit;
  min-width: 0;
}
input[type=checkbox] {
  width: auto;
}
input[type=range] {
  padding: 0;
}
.trim input {
  width: 150px;
}
textarea {
  resize: vertical;
}
button,
a.download,
.file-button {
  padding: 10px 15px;
  border: 1px solid #566882;
  border-radius: 9px;
  background: #28364c;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
button.primary {
  background: #5268df;
  border-color: #7587ef;
}
button:hover,
a.download[href]:hover,
.file-button:hover {
  filter: brightness(1.13);
}
button:disabled,
[aria-disabled=true] {
  opacity: .45;
  cursor: default;
}
button:disabled:hover {
  filter: none;
}
[aria-invalid=true] {
  border-color: #ff9b9b;
}
a {
  color: #b8cbff;
}
small {
  color: var(--muted);
  display: inline-block;
  font-size: 13px;
}
video,
canvas {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #090d15;
  border-radius: 10px;
  margin: 16px 0;
}
canvas {
  height: auto;
  display: block;
}
#status {
  min-height: 24px;
  color: #d6e2ff;
}
#warning {
  color: #ffd894;
}
#studio-error {
  background: #492832;
  color: #ffdadd;
  padding: 12px;
  border-radius: 8px;
}
.live-stats {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: #121c2c;
  border-radius: 9px;
  padding: 12px;
  margin: 16px 0;
}
.live-stats strong {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
}
.live-stats label {
  font-size: 12px;
}
progress,
meter {
  width: 140px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 24px;
}
.track-card,
.history-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
  background: #172030;
}
.track-card .row {
  justify-content: flex-start;
  margin-bottom: 16px;
}
.track-card strong {
  margin-right: auto;
  overflow-wrap: anywhere;
}
.history-card {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.history-card strong {
  overflow-wrap: anywhere;
}
.history-card .row {
  margin-top: 8px;
}
.effect-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.effect-row textarea {
  flex: 1;
  min-width: 150px;
}
.effect-row label {
  flex: 1;
  min-width: 100px;
}
details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
fieldset {
  border: 0;
  padding: 16px 0 0;
  margin: 0;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
footer {
  font-size: 13px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 720px) {
  main {
    padding: 20px 12px 40px;
  }
  .panel {
    padding: 16px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .badge {
    font-size: 12px;
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .options {
    align-items: stretch;
  }
  .options > label:first-child {
    width: 100%;
  }
  .trim > label {
    flex: 1;
  }
  .trim input {
    width: 100%;
  }
  .actions > button {
    flex: 1;
  }
  .effect-row textarea {
    flex-basis: 100%;
  }
}
@media (max-width: 400px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .row > button {
    flex: 1;
  }
  .live-stats {
    gap: 12px;
  }
  .live-stats label {
    flex: 1;
  }
  .live-stats progress,
  .live-stats meter {
    width: 100%;
  }
}
.visual-timeline {
  position: relative;
  overflow: auto;
  max-height: 440px;
  border: 1px solid var(--border,#354050);
  border-radius: 8px;
  margin: 12px 0;
  background: #101826;
}
.timeline-inner {
  position: relative;
  padding-bottom: 8px;
}
.timeline-ruler {
  height: 30px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #172235;
  cursor: crosshair;
  border-bottom: 1px solid #354050;
}
.timeline-ruler span {
  position: absolute;
  top: 5px;
  font-size: 12px;
  color: #c3cfdf;
}
.timeline-ruler span:last-child {
  transform: translateX(-100%);
}
.timeline-row {
  position: relative;
  height: 112px;
  border-bottom: 1px solid #354050;
}
.timeline-label {
  display: block;
  padding: 4px 8px;
  font-size: 12px;
  color: #d3dbea;
  position: sticky;
  left: 0;
  width: max-content;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-lane {
  position: relative;
  height: 80px;
  cursor: crosshair;
}
.timeline-clip {
  position: absolute;
  top: 0;
  height: 80px;
  min-width: 32px;
  border: 1px solid #57bdae;
  border-radius: 5px;
  background: #19473f;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  box-sizing: border-box;
}
.timeline-thumbnails {
  display: flex;
  height: 50px;
  overflow: hidden;
  pointer-events: none;
}
.timeline-thumbnails canvas {
  width: 16.667%;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
}
.timeline-thumbnails span {
  font-size: var(--text-min);
  padding: 8px;
}
.timeline-waveform {
  width: 100%;
  height: 28px;
  pointer-events: none;
}
.trim-handle {
  position: absolute;
  top: 0;
  height: 100%;
  width: 18px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #184d48bd;
  color: #fff;
  cursor: ew-resize;
  touch-action: none;
}
.trim-left {
  left: 0;
}
.trim-right {
  right: 0;
}
.timeline-playhead {
  position: absolute;
  top: 30px;
  bottom: 8px;
  width: 2px;
  background: #fff3a6;
  pointer-events: none;
  z-index: 2;
}
.timeline-clip.missing,
.track-card.missing {
  border-color: #efb66a;
}
.timeline-clip.missing {
  background: #463325;
}
.visual-timeline[aria-disabled=true] {
  opacity: .65;
}
.visual-timeline :focus-visible {
  outline: 3px solid #fff3a6;
  outline-offset: 2px;
}
.timeline-clip:focus-visible {
  outline-offset: -3px;
}
.timeline-clip.selected {
  border: 3px solid #fff3a6;
}
.track-card.selected {
  border-color: #fff3a6;
}
.export-task {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
}
.export-task progress {
  width: 100%;
  margin: 12px 0;
}
.export-task strong,
.export-task p {
  overflow-wrap: anywhere;
}
.export-task.failed {
  border-color: #efb66a;
}
#media-load-progress {
  width: min(100%, 320px);
}
#media-load-status:empty {
  display: none;
}
#editor-preview {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  margin-inline: auto;
  touch-action: none;
  user-select: none;
}
sm-tools-account {
  display: block;
  min-height: 48px;
  inline-size: 100%;
}
.recording-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #182238;
  border: 1px solid #596b91;
  border-radius: 12px;
  box-shadow: 0 4px 28px #0008;
  z-index: 30;
  max-width: 94vw;
}
.recording-dock[hidden] {
  display: none;
}
.timed-word {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px;
  padding: 4px;
  border: 1px solid #596b91;
  border-radius: 4px;
}
.timed-word input {
  width: auto;
}
.timed-word[data-estimated=true] {
  border-style: dashed;
}
#media-creator-tools section {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #40516b;
}
#media-creator-tools ul {
  padding-left: 22px;
}
:root {
  font:
    14px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --panel:#1d1f27;
  --border:#333640;
  --muted:#a4a8b8;
  --accent:#b6a5ff;
  --focus:#bcaaff;
  --text-min:12px;
  --target-min:44px;
  color: #eef0f7;
  background: #14151b;
  color-scheme: dark;
}
body {
  min-width: 320px;
}
sm-tools-account {
  min-height: 48px;
  color-scheme: dark;
  background: #19212e;
}
button,
a.download,
.file-button {
  min-height: var(--target-min);
  padding: 8px 13px;
  border-color: #444753;
  background: #292c36;
  border-radius: 8px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
button.primary {
  background: #7357d9;
  border-color: #967bed;
  color: #fff;
  font-weight: 650;
}
button.primary:hover {
  background: #8063e6;
  filter: none;
}
button.danger {
  background: #502a36;
  border-color: #975268;
}
input,
textarea,
select {
  background: #171921;
  border-color: #454955;
  padding: 8px 10px;
  border-radius: 7px;
  color: #e8eaf3;
  font-size: 13px;
}
input[type=checkbox] {
  accent-color: #aa93fa;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}
input[type=range] {
  accent-color: #a48cf5;
}
label {
  font-size: 12px;
  color: #bec2d0;
  gap: 5px;
}
.check {
  gap: 9px;
}
.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
small {
  font-size: 12px;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
h2 {
  font-size: 19px;
  letter-spacing: -.02em;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 18px 0 10px;
}
.panel {
  margin: 0;
  border-radius: 14px;
  padding: 26px;
  background: var(--panel);
}
details {
  margin-top: 14px;
  padding: 10px 0;
  border-color: var(--border);
}
summary {
  font-size: 13px;
  font-weight: 550;
  padding: 4px 0;
  color: #d9dcea;
}
details > p {
  font-size: 12px;
}
.row,
.actions {
  gap: 9px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.file-button:focus-within {
  outline: 2px solid var(--focus);
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: #eee;
  color: #111;
  padding: 10px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}
.app-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}
.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: calc(100vh - 48px);
  padding: 28px 18px 20px;
  background: #191a21;
  border-right: 1px solid #2b2d36;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f1f8;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.04em;
}
.app-brand > span:last-child {
  white-space: nowrap;
}
.app-brand strong {
  font-weight: 650;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border: 1px solid #9d80f3;
  border-radius: 11px;
  background: #6e52d1;
  color: #fff;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
}
.app-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: .15em;
  color: #979baa;
  margin-top: 5px;
}
.nav-caption {
  display: block;
  font-size: var(--text-min);
  letter-spacing: .14em;
  color: #838899;
  margin: 0 12px 12px;
}
#workspace-sidebar {
  display: grid;
  gap: 6px;
}
#workspace-sidebar > button {
  border: 1px solid transparent;
  background: transparent;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  color: #afb4c4;
  font-size: 14px;
  text-align: left;
}
#workspace-sidebar > button svg {
  width: 20px;
  height: 20px;
  flex: none;
}
#workspace-sidebar > button[aria-current=page] {
  background: #2c2543;
  border-color: #493767;
  color: #d2c4ff;
}
#workspace-sidebar > button:hover {
  background: #252833;
  filter: none;
}
.nav-count {
  margin-left: auto;
  background: #36303f;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: var(--text-min);
  color: #c6bcdf;
}
.sidebar-bottom {
  margin-top: auto;
}
.private-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 10px;
  border-top: 1px solid var(--border);
}
.private-note > svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: #a2bda9;
  margin-top: 3px;
}
.private-note strong {
  font-size: var(--text-min);
  font-weight: 600;
  color: #c5cbd8;
}
.private-note p {
  font-size: var(--text-min);
  margin-top: 4px;
  line-height: 1.5;
}
.sidebar-links {
  display: grid;
  gap: 8px;
  padding: 14px 10px 0;
  border-top: 1px solid #2a2d37;
}
.sidebar-links a {
  font-size: var(--text-min);
  color: #8f95a8;
  text-decoration: none;
}
.sidebar-links a:hover {
  color: #d0c2ff;
}
main#workspace-content {
  max-width: 1580px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 34px 18px;
  min-width: 0;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.workspace-header {
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  gap: 18px;
}
.eyebrow {
  font-size: var(--text-min);
  letter-spacing: .16em;
  color: #9a8ac6;
  margin: 0 0 8px;
}
.workspace-header p:last-child {
  margin: 8px 0 0;
  font-size: 13px;
}
.workspace-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-min);
  padding: 7px 12px;
  border: 1px solid #373a46;
  background: #1c1e26;
  border-radius: 99px;
  color: #c1c6d5;
  white-space: nowrap;
}
.state-dot {
  width: 6px;
  height: 6px;
  background: #9bb4a1;
  border-radius: 50%;
}
body[data-capture-state=recording] .state-dot {
  background: #ee8d9f;
}
body[data-capture-state=paused] .state-dot {
  background: #e0bf79;
}
.step-label,
.subtle-tag {
  font-size: var(--text-min);
  font-weight: 600;
  letter-spacing: .09em;
  color: #999db0;
}
.section-heading {
  gap: 12px;
  flex-wrap: wrap;
}
.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}
.capture-card .section-heading {
  margin-bottom: 24px;
}
.capture-card h2 {
  font-size: 18px;
}
.source-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.source-cards > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 9px;
  min-height: 130px;
  padding: 16px 13px;
  background: #20232c;
  border: 1px solid #3c404c;
  border-radius: 11px;
}
.source-cards > button > svg {
  width: 27px;
  height: 27px;
  color: #a6a9ba;
  margin-bottom: 3px;
}
.source-cards strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.source-cards span {
  font-size: var(--text-min);
  color: #9fa4b5;
  font-weight: 400;
  line-height: 1.4;
}
.source-cards > button[aria-checked=true] {
  background: #2c2641;
  border-color: #977ddc;
  box-shadow: inset 0 0 0 1px #977ddc44;
}
.source-cards > button[aria-checked=true] > svg {
  color: #c6afff;
}
.source-cards > button[aria-checked=true] strong {
  color: #e9ddff;
}
.source-cards > button:hover {
  filter: none;
  border-color: #8774aa;
}
.audio-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 15px;
}
.audio-options label {
  font-size: 13px;
  color: #d4d7e1;
}
.settings-summary {
  font-size: var(--text-min);
  color: #969caf;
  padding: 0 0 4px;
}
.capture-card #capture-advanced {
  margin: 10px 0 4px;
  padding-top: 14px;
}
.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 21px;
}
.record-button {
  min-height: 48px;
  min-width: 176px;
  font-size: 14px;
}
.record-button:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  margin-right: 10px;
}
.active-capture-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
body[data-capture-state=idle] .active-capture-actions {
  display: none;
}
.capture-card #status {
  font-size: 12px;
  min-height: 20px;
  margin: 10px 0 8px;
  color: #b4b9cb;
}
.capture-card #warning,
.capture-card #capability-status,
.capture-card #capture-health {
  font-size: 12px;
}
.capture-card p:empty {
  display: none;
}
.help-disclosure {
  margin-top: 9px;
  padding: 8px 0;
}
.help-disclosure summary {
  font-size: var(--text-min);
  color: #a2a7b9;
}
.help-disclosure p {
  font-size: var(--text-min);
  line-height: 1.7;
}
#capture-settings h3 {
  font-size: 13px;
  color: #d8dbea;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.capture-side {
  display: grid;
  gap: 18px;
}
.monitor-card {
  padding: 22px;
}
.monitor-card h2 {
  font-size: 14px;
}
.monitor-frame {
  aspect-ratio: 16/10;
  position: relative;
  margin: 20px 0 12px;
  background: #14161d;
  border: 1px solid #2f3340;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.capture-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 20px;
}
.capture-placeholder p {
  font-size: var(--text-min);
  text-align: center;
  color: #8e96a9;
  margin: 0;
}
.mock-window {
  width: 76%;
  max-width: 240px;
  height: 110px;
  border: 1px solid #595374;
  border-radius: 7px;
  background: #242332;
  transform: rotate(-4deg);
  box-shadow: 0 12px 28px #07071350;
}
.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 8px;
  border-bottom: 1px solid #46415e;
}
.mock-window-bar i {
  width: 4px;
  height: 4px;
  background: #867da6;
  border-radius: 50%;
}
.mock-content {
  position: relative;
  height: 85px;
  padding: 15px 16px;
}
.mock-content > span {
  display: block;
  width: 67%;
  height: 5px;
  margin: 8px 0;
  background: #514966;
  border-radius: 3px;
}
.mock-content > span:nth-child(2) {
  width: 50%;
  background: #443e58;
}
.mock-content > span:nth-child(3) {
  width: 56%;
  background: #373548;
}
.mock-camera {
  position: absolute;
  right: -10px;
  bottom: -9px;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #69509c;
  border: 3px solid #ad95db;
  border-radius: 50%;
  transform: rotate(4deg);
}
.mock-camera svg {
  width: 24px;
  height: 24px;
  color: #ded0f7;
}
.monitor-frame #live-preview {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}
.monitor-card #level-help {
  font-size: var(--text-min);
  line-height: 1.6;
}
.monitor-card .live-stats {
  padding: 10px;
  background: #252834;
  margin: 12px 0;
  font-size: var(--text-min);
  gap: 10px;
}
.monitor-card .live-stats strong {
  font-size: 19px;
}
.monitor-card progress,
.monitor-card meter {
  width: 85px;
}
body[data-capture-state=idle] .monitor-card .live-stats {
  display: none;
}
.open-file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 21px;
  border: 1px dashed #414452;
  border-radius: 12px;
  background: #1b1d25;
}
.open-file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #2c283b;
  color: #b6a1e3;
}
.open-file-icon svg {
  width: 21px;
  height: 21px;
}
.open-file-card h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.open-file-card p {
  font-size: var(--text-min);
  margin: 0;
}
.open-file-card > button {
  grid-column: 2;
  width: max-content;
  padding: 5px 0;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #bfa7ff;
  font-size: 12px;
  gap: 8px;
}
.open-file-card > button svg {
  width: 16px;
  height: 16px;
}
.open-file-card.dragging {
  border-color: #ba9bfc;
  background: #2c2540;
}
.studio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-name-field {
  font-size: 0;
}
.project-name-field input {
  font-size: 17px;
  font-weight: 550;
  border: 1px solid transparent;
  padding: 5px 8px;
  margin-left: -8px;
  background: transparent;
  width: 220px;
  max-width: 100%;
}
.project-name-field input:hover,
.project-name-field input:focus {
  border-color: #4c4561;
  background: #1d1c28;
}
.studio-toolbar .file-button,
.studio-toolbar button {
  font-size: 12px;
}
.studio-toolbar button svg {
  width: 15px;
  height: 15px;
  margin-left: 9px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 22px;
  align-items: start;
}
.studio-stage {
  min-width: 0;
}
.preview-stage {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 230px;
  height: clamp(230px, 36vh, 390px);
  border: 1px solid #2e313c;
  border-radius: 12px;
  background: #101116;
  overflow: hidden;
}
.preview-stage #editor-preview {
  max-height: clamp(230px, 36vh, 390px);
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
body[data-workspace=edit] .workspace-header {
  margin-bottom: 16px;
}
body[data-workspace=edit] .workspace-header .eyebrow,
body[data-workspace=edit] #workspace-description {
  display: none;
}
body[data-workspace=edit] .workspace-header h1 {
  font-size: 23px;
}
body[data-workspace=edit] .studio-toolbar {
  margin-bottom: 12px;
}
.media-operation {
  margin-bottom: 8px;
}
.media-operation p {
  font-size: var(--text-min);
  margin: 0;
}
.media-operation p:empty {
  display: none;
}
.editor-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #191a23;
}
.editor-empty > svg {
  width: 42px;
  height: 42px;
  stroke: #b29ae2;
  margin-bottom: 14px;
}
.editor-empty h3 {
  font-size: 17px;
  margin: 0;
}
.editor-empty p {
  font-size: 12px;
  margin: 8px 0 20px;
}
.editor-empty button {
  font-size: 12px;
}
.playback-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 13px 0 10px;
}
.playback-controls button {
  font-size: var(--text-min);
  min-height: 32px;
  padding: 5px 10px;
}
.playback-controls #preview-pause:disabled {
  display: none;
}
.playback-controls .check {
  font-size: var(--text-min);
}
.playback-controls #preview-time {
  font-size: var(--text-min);
  font-variant-numeric: tabular-nums;
  color: #aeb5c8;
}
.playhead-control {
  font-size: 0;
  gap: 0;
}
.playhead-control input {
  width: 100%;
  margin: 0;
}
.timeline-panel {
  margin-top: 20px;
  padding: 18px;
  background: #1b1d26;
  border: 1px solid #323641;
  border-radius: 12px;
}
.timeline-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.timeline-toolbar h3 {
  font-size: 13px;
  margin: 0 7px 0 0;
}
.timeline-toolbar button {
  font-size: var(--text-min);
  min-height: 30px;
  padding: 4px 8px;
}
.timeline-toolbar label {
  font-size: var(--text-min);
}
.timeline-toolbar select {
  padding: 4px 7px;
  min-height: 28px;
  font-size: var(--text-min);
}
.timeline-toolbar .check {
  flex-direction: row;
}
.timeline-toolbar label:not(.check) {
  flex-direction: row;
  align-items: center;
}
.timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-footer p,
.timeline-footer span {
  font-size: var(--text-min);
  margin: 0;
}
.timeline-footer button {
  font-size: var(--text-min);
  min-height: 28px;
  padding: 3px 8px;
  background: transparent;
}
.visual-timeline {
  max-height: 300px;
  margin: 13px 0;
  background: #151923;
  border-color: #383d4c;
}
.timeline-thumbnails canvas,
.timeline-waveform {
  margin: 0;
  border-radius: 0;
}
.timeline-ruler {
  background: #222633;
}
.timeline-clip {
  background: #294538;
  border-color: #628c78;
}
.timeline-clip.selected {
  border-color: #c9b4ff;
}
.timeline-playhead {
  background: #c9b4ff;
}
.editor-feedback {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.editor-feedback p {
  font-size: var(--text-min);
  margin: 0;
  flex: 1;
}
.editor-feedback button,
.editor-feedback a.download {
  font-size: var(--text-min);
  min-height: 32px;
}
.export-tasks {
  margin-top: 17px;
}
.export-tasks > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}
.export-tasks .nav-count {
  margin-left: 0;
}
.task-help {
  font-size: var(--text-min);
}
.export-task {
  padding: 13px;
  background: #21242e;
  border-color: #3b3f4c;
}
.export-task p {
  font-size: var(--text-min);
}
.export-task strong {
  font-size: 12px;
}
.export-task button,
.export-task a.download {
  font-size: var(--text-min);
  min-height: 32px;
}
.editor-inspector {
  background: #1d1f28;
  border: 1px solid #343844;
  border-radius: 12px;
  position: sticky;
  top: 18px;
  min-width: 0;
  overflow: hidden;
}
.inspector-heading {
  padding: 17px 16px 12px;
  border-bottom: 1px solid #2f3340;
}
.inspector-heading h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.inspector-heading > span {
  display: block;
  font-size: var(--text-min);
  color: #969eb2;
  overflow-wrap: anywhere;
}
#inspector-tabs {
  display: flex;
  gap: 3px;
  padding: 10px;
  background: #191b23;
  border-bottom: 1px solid #2d313c;
}
#inspector-tabs button {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  min-height: 31px;
  padding: 5px 4px;
  font-size: var(--text-min);
  background: transparent;
  border-color: transparent;
  color: #a4adc1;
}
#inspector-tabs button[aria-selected=true] {
  background: #342947;
  color: #d9c6ff;
  border-color: #58406f;
}
.tool-panel {
  padding: 0 15px 17px;
  min-width: 0;
  max-height: calc(100vh - 260px);
  overflow: auto;
}
.tool-panel > details:first-child {
  border-top: 0;
}
.tool-panel details {
  margin-top: 7px;
}
.tool-panel .field-grid {
  gap: 10px;
}
.tool-panel label {
  font-size: var(--text-min);
}
.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  font-size: var(--text-min);
  padding: 7px 8px;
}
.tool-panel button,
.tool-panel .file-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: var(--text-min);
}
.tool-panel p,
.tool-panel small {
  font-size: var(--text-min);
  line-height: 1.6;
}
.tool-panel summary {
  font-size: var(--text-min);
}
.tool-panel .field-grid > button {
  align-self: end;
}
.tool-panel .field-grid > label:has(textarea) {
  grid-column: 1/-1;
}
.track-card {
  background: #242731;
  border-color: #3b4050;
  padding: 12px;
  margin: 12px 0;
  border-radius: 9px;
}
.track-card.selected {
  border-color: #a58de0;
}
.track-card .clip-heading {
  gap: 7px;
  margin: 0;
  align-items: center;
}
.track-card strong {
  font-size: var(--text-min);
  line-height: 1.4;
  flex-basis: 100%;
  margin-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
}
.track-card .clip-heading .check {
  font-size: var(--text-min);
  margin-right: auto;
}
.track-card .clip-heading button {
  font-size: var(--text-min);
  min-height: 27px;
  padding: 3px 7px;
}
.track-card > .field-grid {
  margin-top: 14px;
}
.track-card .field-grid > label {
  font-size: var(--text-min);
}
.track-card .field-grid > label > input[type=checkbox] {
  margin-top: 5px;
}
.track-card > small {
  display: block;
  margin: 12px 0 6px;
}
.track-card > .file-button,
.track-card > button {
  font-size: var(--text-min);
  min-height: 30px;
  margin: 5px 4px 0 0;
}
.track-card:not(.inspector-active) > :not(.clip-heading) {
  display: none;
}
#inspector-content #creator-tools,
#media-creator-tools {
  min-width: 0;
}
.tool-panel .effect-row {
  gap: 8px;
}
.tool-panel .effect-row label {
  min-width: 85px;
}
.timed-word {
  max-width: 100%;
  font-size: var(--text-min);
  border-color: #5a5369;
}
.timed-word button {
  min-height: 24px;
  min-width: 24px;
  padding: 1px 4px;
}
.tool-panel pre {
  font: 10px/1.7 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b7c3d3;
}
.tool-panel .row {
  gap: 7px;
}
dialog {
  color: inherit;
  width: min(100% - 32px, 540px);
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid #555365;
  border-radius: 16px;
  padding: 26px;
  background: #22232d;
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #090a11b8;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.dialog-header h2 {
  font-size: 22px;
}
.dialog-header > button {
  font-size: 23px;
  min-height: 34px;
  width: 34px;
  padding: 0;
  line-height: 1;
  background: transparent;
  border-color: transparent;
  color: #a8b0c2;
}
.dialog-intro {
  font-size: 12px;
  margin-bottom: 22px;
}
dialog > .field-grid {
  margin-top: 15px;
}
dialog > label {
  font-size: 12px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
  margin-top: 18px;
  border-top: 1px solid #393c48;
}
.dialog-footer button {
  font-size: 12px;
}
.export-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #2c2c38;
  color: #b8bfd0;
  font-size: var(--text-min);
}
#export-dialog-error {
  background: #4b2836;
  color: #ffccdd;
  border-radius: 8px;
  font-size: 12px;
  padding: 10px;
}
#project-dialog .project-extra-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
#project-dialog button,
#project-dialog .file-button {
  font-size: 12px;
}
#original-dialog {
  width: min(100% - 32px, 850px);
}
.original-result video {
  max-height: 380px;
  margin: 15px 0;
}
.original-result .trim label {
  flex: 1;
}
.original-result .trim input {
  width: 100%;
}
.original-result .trim button {
  font-size: var(--text-min);
}
.original-result h2 {
  margin-bottom: 15px;
}
.original-result p {
  font-size: 12px;
}
.library-view {
  background: #1b1d25;
  border: 1px solid #30343e;
  border-radius: 14px;
  padding: 25px;
}
.library-view .section-heading {
  margin-bottom: 22px;
}
.library-view .section-heading p {
  font-size: 12px;
}
.library-view button,
.library-view a.download,
.library-view .file-button {
  font-size: var(--text-min);
}
.library-search {
  font-size: 0;
  max-width: 420px;
  margin: 18px 0;
}
.library-search input {
  font-size: 12px;
}
#storage-status {
  font-size: var(--text-min);
  color: #9ba3b6;
}
#history-list,
#project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 13px;
}
#history-list > p,
#project-list > p {
  font-size: 12px;
  grid-column: 1/-1;
}
.history-card {
  padding: 15px;
  margin: 0;
  background: #242731;
  border-color: #3b404d;
  border-radius: 10px;
}
.history-card strong {
  font-size: 12px;
}
.history-card p,
.history-card small {
  font-size: var(--text-min);
}
.history-card > .row {
  margin-top: auto;
  padding-top: 10px;
}
.history-card button,
.history-card a.download {
  font-size: var(--text-min);
  min-height: 32px;
}
.library-help,
.player-disclosure {
  margin-top: 20px;
  font-size: 12px;
}
.library-help p,
.player-disclosure p {
  font-size: 12px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-min);
  color: #747d94;
  margin-top: auto;
  padding-top: 30px;
}
.app-footer a {
  color: #9098ad;
  text-decoration: none;
}
.recording-dock {
  background: #24202f;
  border-color: #766283;
}
.recording-dock button {
  font-size: 12px;
}
@media (min-width: 1800px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}
@media (max-width: 1200px) {
  main#workspace-content {
    padding: 26px 24px 18px;
  }
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .app-sidebar {
    padding: 24px 13px;
  }
  .app-brand {
    font-size: 15px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
  }
  .app-brand small {
    font-size: 7px;
  }
  .capture-layout {
    grid-template-columns: 1fr;
  }
  .capture-side {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
    align-items: start;
  }
  .monitor-frame {
    aspect-ratio: 16/8;
  }
  .open-file-card {
    margin-top: 0;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 16px;
  }
  .timeline-toolbar button {
    font-size: var(--text-min);
  }
  .studio-toolbar .project-heading {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    max-height: none;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 15px;
    border-right: 0;
    border-bottom: 1px solid #343743;
  }
  .app-brand small,
  .sidebar-bottom,
  .nav-caption {
    display: none;
  }
  .app-brand {
    font-size: 14px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  #workspace-sidebar {
    display: flex;
    gap: 4px;
  }
  #workspace-sidebar > button {
    padding: 7px 12px;
    min-height: var(--target-min);
    font-size: 12px;
    gap: 8px;
    width: auto;
  }
  #workspace-sidebar > button svg {
    width: 16px;
    height: 16px;
  }
  .workspace-header {
    margin-bottom: 22px;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .editor-inspector {
    top: 85px;
  }
  .tool-panel {
    max-height: calc(100vh - 260px);
  }
  main#workspace-content {
    min-height: calc(100vh - 92px);
  }
}
@media (max-width: 700px) {
  .app-sidebar {
    padding: 10px 13px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .app-brand {
    font-size: 15px;
  }
  #workspace-sidebar {
    width: 100%;
    justify-content: space-between;
  }
  #workspace-sidebar > button {
    flex: 1;
    justify-content: center;
    min-height: 40px;
  }
  main#workspace-content {
    padding: 21px 14px 18px;
  }
  .workspace-header {
    align-items: center;
    margin-bottom: 19px;
  }
  .workspace-header h1 {
    font-size: 26px;
  }
  .workspace-header p:last-child {
    font-size: 12px;
    max-width: 240px;
  }
  .workspace-state {
    font-size: var(--text-min);
    padding: 6px 9px;
  }
  .capture-card {
    padding: 20px;
  }
  .capture-card .section-heading {
    margin-bottom: 18px;
  }
  .capture-card h2 {
    font-size: 17px;
  }
  .step-label {
    display: none;
  }
  .source-cards {
    gap: 7px;
  }
  .source-cards > button {
    align-items: center;
    text-align: center;
    padding: 13px 7px;
    min-height: 111px;
    gap: 8px;
  }
  .source-cards > button svg {
    width: 25px;
    height: 25px;
  }
  .source-cards strong {
    font-size: 12px;
  }
  .source-cards span {
    display: none;
  }
  .audio-options {
    margin: 20px 0 15px;
    gap: 18px;
  }
  .audio-options label {
    font-size: 12px;
  }
  .record-button {
    width: 100%;
    min-height: 48px;
  }
  .capture-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .active-capture-actions {
    width: 100%;
  }
  .active-capture-actions > button {
    flex: 1;
    min-height: 44px;
  }
  .capture-side {
    grid-template-columns: 1fr;
  }
  body[data-capture-state=idle] .monitor-card {
    display: none;
  }
  .monitor-frame {
    aspect-ratio: 16/10;
  }
  .open-file-card {
    padding: 19px;
  }
  .open-file-card > button {
    min-height: var(--target-min);
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .editor-inspector {
    position: static;
  }
  .tool-panel {
    max-height: none;
    padding-bottom: 20px;
  }
  .tool-panel label,
  .tool-panel input,
  .tool-panel select,
  .tool-panel textarea {
    font-size: 12px;
  }
  .tool-panel button,
  .tool-panel .file-button {
    min-height: 40px;
    font-size: 12px;
  }
  .studio-toolbar {
    gap: 12px;
    margin-bottom: 16px;
  }
  .studio-toolbar > .row {
    width: 100%;
    gap: 7px;
  }
  .studio-toolbar > .row > * {
    flex: 1;
    font-size: var(--text-min);
    padding: 7px 8px;
    min-height: 40px;
  }
  .studio-toolbar #open-export-dialog {
    font-size: 12px;
  }
  .project-name-field input {
    font-size: 16px;
    width: 210px;
  }
  .project-heading {
    gap: 10px;
  }
  .preview-stage {
    min-height: 0;
    min-width: 0;
    height: clamp(160px, calc((100vw - 28px) * 9 / 16), 380px);
  }
  .preview-stage #editor-preview {
    max-height: clamp(158px, calc((100vw - 32px) * 9 / 16), 378px);
  }
  #export-dialog > .field-grid {
    grid-template-columns: 1fr;
  }
  #export-advanced .field-grid > label:last-child {
    grid-column: 1/-1;
  }
  .playback-controls .check {
    font-size: var(--text-min);
  }
  .playback-controls button {
    min-height: var(--target-min);
  }
  .timeline-panel {
    padding: 13px;
    margin-top: 17px;
  }
  .timeline-toolbar {
    gap: 12px;
  }
  .timeline-toolbar button {
    min-height: var(--target-min);
    font-size: var(--text-min);
  }
  .timeline-toolbar .row {
    gap: 6px;
  }
  .timeline-toolbar h3 {
    flex-basis: 100%;
    margin-bottom: 1px;
  }
  .timeline-footer button {
    min-height: var(--target-min);
  }
  .timeline-footer {
    margin-top: 4px;
  }
  .visual-timeline {
    max-height: 280px;
  }
  #inspector-tabs button {
    min-height: 40px;
    font-size: 12px;
  }
  .inspector-heading h3 {
    font-size: 15px;
  }
  .inspector-heading > span {
    font-size: var(--text-min);
  }
  .track-card strong {
    font-size: 12px;
  }
  .track-card .clip-heading button {
    min-height: 34px;
    font-size: var(--text-min);
  }
  .track-card .clip-heading label {
    font-size: 12px;
  }
  .track-card .field-grid > label {
    font-size: 12px;
  }
  .editor-feedback button,
  .editor-feedback a.download {
    min-height: var(--target-min);
  }
  .library-view {
    padding: 20px;
  }
  .library-view .section-heading {
    align-items: stretch;
  }
  .library-view .section-heading > .row {
    width: 100%;
  }
  .library-view .section-heading button {
    flex: 1;
    min-height: 40px;
  }
  #history-list,
  #project-list {
    grid-template-columns: 1fr;
  }
  .history-card {
    padding: 16px;
  }
  .history-card strong {
    font-size: 13px;
  }
  .history-card button,
  .history-card a.download {
    min-height: 40px;
    font-size: 12px;
  }
  .library-search {
    max-width: 100%;
  }
  .library-search input {
    min-height: 42px;
  }
  .dialog-footer button {
    min-height: 44px;
  }
  dialog {
    padding: 22px;
    max-height: 90dvh;
  }
  .dialog-header > button {
    min-height: 40px;
    width: 40px;
  }
  .app-footer {
    font-size: var(--text-min);
    padding-top: 25px;
    justify-content: center;
    text-align: center;
  }
  .recording-dock {
    bottom: 10px;
    gap: 8px;
    padding: 10px;
    width: max-content;
    max-width: calc(100% - 20px);
  }
  .recording-dock button {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.save-conflict{padding:14px 18px;margin-bottom:16px;border:1px solid #a8792b;border-radius:12px;background:#342812;color:#fff1c9}.save-conflict p{margin:0 0 10px}.save-conflict button{min-height:40px}.library-pager{margin-top:16px;justify-content:flex-start}.library-pager span{font-size:.875rem;color:var(--muted)}

.library-notice {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}

/* Simplified layout (2026-11): fewer labels, one quiet status, settings tucked away. */
.sidebar-note {
  margin: auto 12px 0;
  font-size: var(--text-min);
  color: #8f95a8;
  line-height: 1.5;
}
.workspace-header {
  margin-bottom: 22px;
}
.workspace-state[hidden] {
  display: none;
}
.capture-card .section-heading {
  margin-bottom: 18px;
}
.source-cards > button {
  min-height: 96px;
  align-items: center;
  text-align: center;
}
.capture-actions {
  margin-top: 8px;
}
.record-button {
  min-width: 200px;
}
#status:empty,
#warning:empty,
#capability-status:empty,
#capture-health:empty,
#editor-status:empty,
#media-load-status:empty {
  display: none;
}
#capture-summary {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
#capture-advanced {
  border-top: none;
  margin-top: 6px;
}
#capture-advanced > h3 {
  font-size: 14px;
  margin: 22px 0 10px;
}
.monitor-card .capture-placeholder {
  min-height: 0;
}
.monitor-card .capture-placeholder p {
  margin: 0;
}
body[data-capture-state=idle] #level-help {
  display: none;
}
.open-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 0;
}
.open-file-card .open-file-icon {
  width: 32px;
  height: 32px;
}
.open-file-card p {
  flex: 1;
  margin: 0;
  font-size: 13px;
}
.export-tasks[hidden] {
  display: none;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.app-footer a,
.app-footer .link-button {
  color: #8f95a8;
}
@media (max-width: 760px) {
  .sidebar-note {
    display: none;
  }
  .source-cards > button {
    min-height: 84px;
  }
  .record-button {
    width: 100%;
  }
}
body:not(:has(> sm-tools-account)) .app-shell,
body:not(:has(> sm-tools-account)) main#workspace-content {
  min-height: 100vh;
}
body:not(:has(> sm-tools-account)) .app-sidebar {
  max-height: 100vh;
  top: 0;
}
.app-footer .link-button {
  text-decoration: none;
}
.app-footer a:hover,
.app-footer .link-button:hover {
  color: #d0c2ff;
}
#studio[data-empty=true] .playback-controls,
#studio[data-empty=true] .playhead-control,
#studio[data-empty=true] .timeline-panel,
#studio[data-empty=true] .editor-inspector,
#studio[data-empty=true] #save-project,
#studio[data-empty=true] #open-export-dialog {
  display: none;
}
#studio[data-empty=true] .studio-layout {
  grid-template-columns: minmax(0, 1fr);
}
#preview-frame {
  display: none;
}
body:not([data-capture-state=idle]) #start,
body:not([data-capture-state=idle]) #capture-dropzone {
  display: none;
}
body[data-capture-state=idle] .active-capture-actions {
  display: none;
}
.browser-notice {
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid #5a4a2a;
  border-radius: 9px;
  background: #2a2418;
  color: #e6d3a8;
  font-size: 13px;
  line-height: 1.5;
}
.browser-notice[hidden] {
  display: none;
}
.capture-card .section-heading:has(+ .browser-notice:not([hidden])) {
  margin-bottom: 12px;
}
#legal-dialog {
  max-width: 560px;
}
.legal-body h3 {
  font-size: 15px;
  margin: 18px 0 6px;
}
.legal-body p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.legal-body a {
  color: #c6afff;
}

/* Next steps and language */
.app-footer{flex-wrap:wrap;gap:6px 16px}
.next-steps a{color:inherit}
.next-hint{display:none;margin:6px 0 0;font-size:.9em;opacity:.8}
#editor-download:not([hidden])~.next-hint{display:block}
label:has(> #timeline-zoom){white-space:nowrap}
