:root {
  color-scheme: dark;
  --canvas: #0d0f0e;
  --surface: #141715;
  --surface-raised: #1a1d1b;
  --surface-hover: #202421;
  --line: #2a2f2c;
  --line-strong: #3a403c;
  --text: #f5f6f4;
  --text-soft: #b2b8b4;
  --text-muted: #767e79;
  --accent: #ff6158;
  --accent-hover: #ff756d;
  --accent-deep: #d6423b;
  --success: #82d5a2;
  --warning: #e8c16e;
  --radius-sm: 8px;
  --radius-md: 13px;
  --radius-lg: 19px;
  --shadow: 0 24px 70px rgb(0 0 0 / 35%);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #ff8a84;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px 1fr;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #101210;
}

.topbar-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-new-recording {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #55d7a0;
  border-radius: 8px;
  background: #42cd91;
  color: #071a12;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(66 205 145 / 16%);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  animation: newRecordingEnter 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header-new-recording:hover {
  border-color: #79e2b5;
  background: #56daa1;
  box-shadow: 0 8px 24px rgb(66 205 145 / 22%);
  transform: translateY(-1px);
}

.header-new-recording:active {
  transform: translateY(0) scale(0.98);
}

.header-new-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.header-new-icon::before,
.header-new-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.header-new-icon::before {
  width: 12px;
  height: 2px;
}

.header-new-icon::after {
  width: 2px;
  height: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #40302e;
  border-radius: 9px;
  background: #261a19;
}

.brand-mark::before,
.brand-mark span {
  content: "";
  display: block;
  border-radius: 999px;
}

.brand-mark::before {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.brand-mark span {
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(255 97 88 / 24%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(130 213 162 / 9%);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6e756f;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.status-badge[data-state="ready"] .status-dot,
.status-badge[data-state="saved"] .status-dot {
  background: var(--success);
}

.status-badge[data-state="recording"] {
  border-color: rgb(255 97 88 / 45%);
  background: #251716;
  color: #ffd1ce;
}

.status-badge[data-state="recording"] .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 97 88 / 12%);
  animation: statusPulse 1.45s ease-in-out infinite;
}

.status-badge[data-state="paused"] .status-dot {
  background: var(--warning);
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  min-height: 0;
  overflow: hidden;
}

.studio {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) 86px;
  gap: 0;
  padding: 26px 28px 0;
  overflow: hidden;
}

.preview-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #272b29;
  border-radius: var(--radius-lg);
  background: #090a0a;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.preview-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: #101311;
  background-image:
    linear-gradient(#171a18 1px, transparent 1px),
    linear-gradient(90deg, #171a18 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.7;
}

.preview-frame.has-source {
  background: #050606;
}

.preview-frame.has-source::before {
  opacity: 0;
}

.preview-frame.is-recording {
  border-color: rgb(255 97 88 / 65%);
  box-shadow: 0 24px 76px rgb(0 0 0 / 42%), 0 0 0 1px rgb(255 97 88 / 12%);
}

#previewVideo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050606;
  opacity: 0;
  transition: opacity 320ms ease;
}

.preview-frame.has-source #previewVideo {
  opacity: 1;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 38px;
  text-align: center;
  animation: emptyEnter 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.empty-visual {
  position: relative;
  width: 110px;
  height: 84px;
  margin-bottom: 26px;
}

.screen-shape {
  position: absolute;
  inset: 0 7px 14px 0;
  border: 1px solid #444a46;
  border-radius: 12px;
  background: #171a18;
  box-shadow: inset 0 0 0 7px #111311;
}

.screen-shape::before,
.screen-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #444a46;
  transform: translateX(-50%);
}

.screen-shape::before {
  bottom: -11px;
  width: 1px;
  height: 10px;
}

.screen-shape::after {
  bottom: -13px;
  width: 32px;
  height: 1px;
}

.cursor-shape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 31px;
  border: 2px solid var(--accent);
  background: #171a18;
  clip-path: polygon(0 0, 100% 67%, 59% 70%, 42% 100%);
  transform: rotate(-7deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state h1 {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.empty-copy {
  max-width: 420px;
  margin: 15px 0 24px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 690;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: #1b0c0b;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-hover);
}

.button-large {
  min-height: 46px;
  padding: 0 19px;
}

.screen-icon,
.source-picker-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.screen-icon::after,
.source-picker-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-50%);
}

.shortcut-hint {
  margin: 17px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

kbd {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin: 0 3px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 10px;
}

.source-label,
.recording-overlay {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.source-label {
  left: 16px;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  background: rgb(9 10 10 / 82%);
  color: #d9ddda;
  font-size: 11px;
  backdrop-filter: blur(12px);
}

.source-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
}

.recording-overlay {
  right: 16px;
  gap: 10px;
  animation: overlayEnter 220ms ease both;
}

.recording-chip,
.overlay-timer {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  background: rgb(9 10 10 / 84%);
  backdrop-filter: blur(12px);
}

.recording-chip {
  gap: 7px;
  padding: 0 10px;
  color: #ffb8b4;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.recording-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 1.35s ease-in-out infinite;
}

.overlay-timer {
  padding: 0 11px;
  color: #f2f4f2;
  font-variant-numeric: tabular-nums;
  font-weight: 640;
}

.countdown {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(7 8 8 / 72%);
  color: white;
  font-size: clamp(74px, 12vw, 148px);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  backdrop-filter: blur(4px);
}

.countdown.tick {
  animation: countTick 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.finished-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  background: rgb(15 18 16 / 90%);
  box-shadow: 0 18px 42px rgb(0 0 0 / 35%);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  animation: finishedEnter 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.finished-check {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(130 213 162 / 13%);
  color: var(--success);
  font-weight: 800;
}

.finished-panel div {
  display: grid;
  gap: 3px;
}

.finished-panel strong {
  font-size: 12px;
}

.finished-panel span:last-child {
  color: var(--text-muted);
  font-size: 11px;
}

.transport {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 4px;
}

.transport-meta,
.transport-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.transport-meta {
  gap: 11px;
  font-variant-numeric: tabular-nums;
}

.timecode {
  color: var(--text-soft);
  font-weight: 680;
}

.transport-divider {
  width: 1px;
  height: 13px;
  background: var(--line);
}

.transport-actions {
  justify-content: flex-end;
  gap: 10px;
}

.transport-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.record-button {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #50322f;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.record-button:hover:not(:disabled) {
  border-color: #8c4641;
  transform: scale(1.04);
}

.record-button:active:not(:disabled) {
  transform: scale(0.96);
}

.record-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.record-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 -2px 0 rgb(117 20 16 / 18%);
  transition: border-radius 180ms ease, width 180ms ease, height 180ms ease;
}

.record-button:hover:not(:disabled) .record-inner {
  background: var(--accent-hover);
}

.record-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.record-button:hover:not(:disabled) .record-tooltip,
.record-button:focus-visible .record-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.pause-icon {
  width: 11px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.pause-button.is-paused .pause-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-right: 0;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.stop-button {
  border-color: #49312f;
}

.stop-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

.text-button {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.text-button:hover {
  color: var(--text);
}

.ready-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector {
  min-width: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #111311;
  scrollbar-color: #303531 transparent;
}

.inspector-heading {
  padding: 27px 24px 21px;
}

.inspector-heading .eyebrow {
  margin-bottom: 7px;
}

.inspector-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.setting-group {
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line);
}

.setting-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.setting-heading-row h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 690;
  letter-spacing: -0.01em;
}

.setting-heading-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.setting-state,
.audio-summary {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}

.setting-state.is-ready {
  background: rgb(130 213 162 / 10%);
  color: var(--success);
}

.source-picker,
.folder-button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.source-picker:hover,
.folder-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.source-picker-icon {
  width: 20px;
  height: 15px;
  margin: 0 3px;
  color: var(--accent);
}

.source-picker span:nth-child(2),
.folder-button span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.source-picker strong,
.folder-button strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-picker small,
.folder-button small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: var(--text-muted);
  font-size: 21px;
  font-weight: 300;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  cursor: pointer;
}

.toggle-row + .toggle-row {
  border-top: 1px solid #222623;
}

.toggle-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.toggle-row strong {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 620;
}

.toggle-row small {
  color: var(--text-muted);
  font-size: 10px;
}

.switch {
  position: relative;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  display: block;
  width: 34px;
  height: 20px;
  padding: 3px;
  border: 1px solid #3a3f3b;
  border-radius: 999px;
  background: #242825;
  transition: border-color 160ms ease, background 160ms ease;
}

.switch-thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #929993;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 160ms ease;
}

.switch input:checked + .switch-track {
  border-color: #733b37;
  background: #492522;
}

.switch input:checked + .switch-track .switch-thumb {
  background: var(--accent);
  transform: translateX(14px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid #ff8a84;
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span:first-child {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 590;
}

.field select,
.field input {
  width: 100%;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  transition: border-color 150ms ease, background 150ms ease;
}

.field select {
  padding: 0 28px 0 10px;
  cursor: pointer;
}

.field input {
  padding: 0 10px;
}

.field select:hover,
.field input:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.quality-field,
.microphone-field,
.filename-field {
  margin-top: 11px;
}

.microphone-field {
  padding-top: 11px;
  border-top: 1px solid #222623;
}

.folder-icon {
  position: relative;
  width: 20px;
  height: 15px;
  margin: 0 3px;
  border: 1px solid #8c8170;
  border-radius: 3px;
  background: #332d24;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -5px;
  width: 9px;
  height: 5px;
  border: 1px solid #8c8170;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #332d24;
}

.filename-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filename-input-wrap:focus-within {
  outline: 2px solid #ff8a84;
  outline-offset: 2px;
}

.filename-input-wrap input {
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.filename-input-wrap > span {
  padding-right: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.compatibility-note {
  margin: 0;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.compatibility-note strong {
  color: var(--text-soft);
  font-weight: 650;
}

.setting-group.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.toast-region {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(350px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #1a1d1b;
  box-shadow: 0 16px 48px rgb(0 0 0 / 38%);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toastIn 220ms ease both;
}

.toast::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--success);
}

.toast.warning::before {
  background: var(--warning);
}

.toast.error::before {
  background: var(--accent);
}

.toast.leaving {
  animation: toastOut 180ms ease forwards;
}

@keyframes emptyEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayEnter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.84);
  }
}

@keyframes countTick {
  0% {
    opacity: 0;
    transform: scale(1.3);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.78);
  }
}

@keyframes finishedEnter {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
}

@keyframes newRecordingEnter {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1060px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .studio {
    padding-right: 22px;
    padding-left: 22px;
  }

  .privacy-note {
    display: none;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .topbar {
    height: 62px;
    padding: 0 18px;
  }

  .workspace {
    display: block;
    overflow: visible;
  }

  .studio {
    display: block;
    padding: 18px;
    overflow: visible;
  }

  .preview-frame {
    min-height: 440px;
  }

  .transport {
    min-height: 86px;
  }

  .inspector {
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .inspector-heading,
  .setting-group,
  .compatibility-note {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 14px;
  }

  .topbar-primary {
    gap: 9px;
  }

  .header-new-recording {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .status-badge {
    min-width: 0;
  }

  .studio {
    padding: 12px;
  }

  .preview-frame {
    min-height: 410px;
    border-radius: 15px;
  }

  .empty-state {
    padding: 24px;
  }

  .empty-visual {
    transform: scale(0.85);
    margin-bottom: 16px;
  }

  .empty-state h1 {
    font-size: 30px;
  }

  .empty-copy {
    margin-top: 12px;
    font-size: 13px;
  }

  .shortcut-hint {
    display: none;
  }

  .transport {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .transport-controls {
    order: -1;
    grid-row: span 2;
  }

  .transport-actions {
    justify-content: flex-start;
  }

  .ready-hint {
    max-width: 180px;
  }

  .finished-panel {
    right: 12px;
    left: 12px;
    min-width: 0;
    transform: none;
  }

  .finished-panel[hidden] {
    display: none !important;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
