:root {
  --bg: #070807;
  --panel: #101310;
  --panel-2: #171b17;
  --panel-3: #20261f;
  --line: #2b332b;
  --line-2: #3a4639;
  --ink: #eef3e8;
  --ink-2: #b8c4b0;
  --ink-3: #7f8d79;
  --ink-4: #566050;
  --acid: #c5ff4a;
  --mint: #65e6b2;
  --amber: #f3ba4d;
  --red: #ff6b73;
  --blue: #74a8ff;
  --font-sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 12%, rgba(197, 255, 74, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 4%, rgba(101, 230, 178, 0.13), transparent 22rem),
    linear-gradient(135deg, #050605 0%, #0b0e0b 45%, #090b09 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
textarea { color: inherit; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-4); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.app-root {
  min-height: 100vh;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto 14px;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.hero-copy > div {
  min-width: 0;
}

.queue-btn {
  flex: 0 0 auto;
  margin-top: 6px;
  border-color: rgba(101, 230, 178, 0.34);
  background: rgba(101, 230, 178, 0.09);
  color: var(--mint);
}

.audio-transport {
  display: grid;
  grid-template-columns: minmax(210px, 300px) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 1480px;
  min-width: 0;
  margin: 0 auto 22px;
  padding: 14px 16px;
  border: 1px solid rgba(197, 255, 74, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(101, 230, 178, 0.08), transparent 36%),
    rgba(16, 19, 16, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.transport-info {
  min-width: 0;
}

.transport-info strong,
.transport-info span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-info strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.transport-info span {
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 12px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.transport-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--ink-2);
}

.transport-btn:hover:not(:disabled) {
  border-color: var(--line-2);
  background: var(--panel-3);
  color: var(--ink);
}

.transport-btn.play {
  width: 46px;
  height: 46px;
  border-color: var(--acid);
  background: var(--acid);
  color: #10150b;
  box-shadow: 0 0 22px rgba(197, 255, 74, 0.18);
}

.transport-btn.play:hover:not(:disabled) {
  background: #d9ff68;
  color: #10150b;
}

.transport-scrub {
  position: relative;
  min-width: 0;
  height: 48px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 32px),
    #070907;
}

.transport-scrub.disabled {
  cursor: default;
  opacity: 0.55;
}

.scrub-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 7px;
}

.scrub-wave-bar {
  flex: 1 1 0;
  min-width: 1px;
  margin: 0 1px;
  border-radius: 999px;
  background: rgba(184, 196, 176, 0.22);
}

.scrub-wave-bar.active {
  background: linear-gradient(180deg, var(--acid), var(--mint));
}

.scrub-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  pointer-events: none;
  box-shadow: 0 0 9px rgba(243, 186, 77, 0.72);
}

.scrub-playhead::after {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 7px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.transport-time {
  min-width: 128px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070907;
  color: var(--ink);
  font-size: 13px;
}

.transport-time .total {
  color: var(--ink-4);
  font-size: 11px;
}

.transport-time b {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.transport-time b.has-audio {
  border: 1px solid rgba(101, 230, 178, 0.32);
  color: var(--mint);
  background: rgba(101, 230, 178, 0.08);
}

.transport-time b.no-audio {
  border: 1px solid var(--line);
  color: var(--ink-4);
  background: var(--panel-2);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(197, 255, 74, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(197, 255, 74, 0.28), rgba(101, 230, 178, 0.08)),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(197, 255, 74, 0.08);
  color: var(--acid);
  font-family: var(--font-mono);
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 900px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  min-width: 0;
}

.workspace > * {
  min-width: 0;
}

.left-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.upload-card,
.library-card,
.status-card,
.log-card,
.editor-shell {
  border: 1px solid rgba(197, 255, 74, 0.12);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.upload-card,
.library-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.upload-card::before,
.library-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(197, 255, 74, 0.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 24px);
  opacity: 0.65;
}

.upload-card.dragging {
  border-color: rgba(197, 255, 74, 0.75);
  background: color-mix(in srgb, var(--panel-2) 94%, var(--acid));
}

.upload-card > * {
  position: relative;
  z-index: 1;
}

.library-card > * {
  position: relative;
  z-index: 1;
}

.library-list {
  display: grid;
  gap: 8px;
  max-height: 255px;
  overflow: auto;
}

.library-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}

.library-item:hover:not(:disabled),
.library-item.selected {
  border-color: rgba(197, 255, 74, 0.42);
  background: rgba(197, 255, 74, 0.07);
}

.library-item > div {
  min-width: 0;
}

.library-item strong,
.library-item span {
  min-width: 0;
}

.library-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item div span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-status {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.library-status.completed {
  border-color: rgba(101, 230, 178, 0.32);
  color: var(--mint);
}

.library-status.transcribing,
.library-status.translating {
  border-color: rgba(197, 255, 74, 0.36);
  color: var(--acid);
}

.library-status.failed {
  border-color: rgba(255, 107, 115, 0.36);
  color: var(--red);
}

.library-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 107, 115, 0.2);
  border-radius: 9px;
  color: var(--red);
}

.library-delete:hover {
  background: rgba(255, 107, 115, 0.08);
}

.upload-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #d9ff68;
  color: #14170f;
  box-shadow: 0 16px 40px rgba(197, 255, 74, 0.18);
}

h2 {
  margin: 6px 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

p {
  color: var(--ink-3);
  line-height: 1.65;
}

.upload-card p,
.status-card p {
  margin: 0;
  font-size: 13px;
}

.btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--ink-2);
  transition: border-color 140ms, background 140ms, color 140ms, transform 140ms;
}

.btn:hover:not(:disabled) {
  border-color: var(--line-2);
  background: var(--panel-3);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--acid);
  color: #11150e;
  border-color: var(--acid);
  font-weight: 700;
}

.btn.accent {
  border-color: rgba(197, 255, 74, 0.38);
  background: rgba(197, 255, 74, 0.12);
  color: var(--acid);
}

.btn.danger {
  border-color: rgba(255, 107, 115, 0.3);
  color: var(--red);
}

.upload-actions,
.toolbar-actions,
.line-actions,
.time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.file-chip > div {
  flex: 1 1 0;
  min-width: 0;
}

.file-chip strong,
.file-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip span {
  margin-top: 3px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.audio-player {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  margin-top: 4px;
}

.status-card,
.log-card {
  padding: 20px;
}

.stage-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-3);
  background: rgba(0,0,0,0.12);
}

.stage-item span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-3);
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10px;
}

.stage-item.active {
  border-color: rgba(197, 255, 74, 0.46);
  color: var(--ink);
  background: rgba(197, 255, 74, 0.08);
}

.stage-item.done span {
  background: var(--acid);
  color: #10150b;
}

.progress-wrap {
  margin-top: 18px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 12px;
}

.progress-track {
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}

.progress-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--mint));
  transition: width 240ms ease;
}

.tiny-note {
  margin-top: 12px;
  color: var(--ink-4);
  font-size: 12px;
}

.card-head,
.editor-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.card-head > *,
.editor-toolbar > * {
  min-width: 0;
}

.log-box {
  height: 230px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080a08;
  padding: 10px;
}

.empty-log {
  padding: 18px;
  color: var(--ink-4);
}

.log-line {
  display: grid;
  grid-template-columns: 72px 42px 1fr;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ink-2);
  font-size: 12px;
  min-width: 0;
}

.log-line > * {
  min-width: 0;
}

.log-line > span:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-line b {
  color: var(--ink-4);
  text-transform: uppercase;
}

.log-line.ok b { color: var(--mint); }
.log-line.err b { color: var(--red); }
.log-line.work b { color: var(--amber); }

.editor-shell {
  min-height: 720px;
  min-width: 0;
  padding: 20px;
}

.editor-toolbar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.editor-toolbar p {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.play-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-3);
}

.play-badge.playing {
  color: var(--acid);
  border-color: rgba(197, 255, 74, 0.4);
}

.empty-editor {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
  color: var(--ink-3);
}

.empty-orbit {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(197, 255, 74, 0.45);
  border-radius: 50%;
  color: var(--acid);
  font-family: var(--font-mono);
}

.empty-editor h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 16px;
  padding-top: 16px;
  min-width: 0;
}

.line-list {
  max-height: calc(100vh - 230px);
  min-height: 560px;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,0.16);
}

.line-row {
  display: grid;
  grid-template-columns: 34px 46px 190px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  min-width: 0;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.line-row:hover {
  background: rgba(255,255,255,0.03);
}

.line-row.selected {
  background: rgba(197, 255, 74, 0.08);
}

.line-row.active {
  box-shadow: inset 3px 0 0 var(--acid);
}

.row-play {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--ink-2);
}

.row-index {
  color: var(--ink-4);
  font-size: 12px;
}

.row-time {
  color: var(--mint);
  font-size: 11px;
}

.row-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.row-text {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-translation {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-size: 12px;
}

.row-translation span {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid rgba(101, 230, 178, 0.26);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.row-translation b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  padding: 16px;
}

.detail-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-title span {
  color: var(--acid);
}

.field-label {
  display: block;
  margin: 14px 0 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-input,
.line-textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #090b09;
  color: var(--ink);
  outline: none;
}

.time-input {
  height: 40px;
  padding: 0 11px;
  color: var(--mint);
}

.time-input:focus,
.line-textarea:focus {
  border-color: rgba(197, 255, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(197, 255, 74, 0.08);
}

.time-actions {
  margin-top: 8px;
}

.line-textarea {
  min-height: 150px;
  padding: 13px;
  resize: vertical;
  line-height: 1.6;
}

.line-textarea.translation {
  min-height: 96px;
  border-color: rgba(101, 230, 178, 0.32);
  background:
    linear-gradient(135deg, rgba(101, 230, 178, 0.07), transparent 48%),
    #090b09;
}

.line-actions {
  margin-top: 12px;
}

.preview-card {
  margin-top: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070907;
  padding: 14px;
}

.preview-card pre {
  max-height: 260px;
  max-width: 100%;
  margin: 10px 0 0;
  overflow: auto;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 440px;
  padding: 13px 16px;
  border: 1px solid rgba(197, 255, 74, 0.35);
  border-radius: 14px;
  background: #11160e;
  color: var(--ink);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.job-dialog {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(197, 255, 74, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(197, 255, 74, 0.08), transparent 34%),
    #0c0f0c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.translate-dialog {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid rgba(101, 230, 178, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(101, 230, 178, 0.14), transparent 20rem),
    linear-gradient(135deg, rgba(197, 255, 74, 0.07), transparent 40%),
    #0c0f0c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.translate-body {
  padding: 0 22px 22px;
}

.translate-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #070907;
  color: var(--ink);
  outline: none;
}

.translate-input:focus {
  border-color: rgba(101, 230, 178, 0.55);
  box-shadow: 0 0 0 3px rgba(101, 230, 178, 0.08);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-head > div {
  min-width: 0;
}

.dialog-head h2 {
  margin-top: 4px;
}

.dialog-head p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.dialog-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.job-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.job-summary-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.job-summary-item span {
  display: block;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-summary-item strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.job-summary-item.running strong { color: var(--acid); }
.job-summary-item.queued strong { color: var(--amber); }
.job-summary-item.completed strong { color: var(--mint); }
.job-summary-item.failed strong { color: var(--red); }

.job-error {
  margin: 14px 22px 0;
  padding: 12px;
  border: 1px solid rgba(255, 107, 115, 0.32);
  border-radius: 14px;
  color: var(--red);
  background: rgba(255, 107, 115, 0.08);
}

.job-list {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 22px;
}

.job-row-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.job-row-card.running {
  border-color: rgba(197, 255, 74, 0.32);
  background: rgba(197, 255, 74, 0.055);
}

.job-row-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.job-row-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-row-head .mono {
  color: var(--ink-4);
  font-size: 11px;
}

.job-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.job-status.running { color: var(--acid); border-color: rgba(197, 255, 74, 0.36); }
.job-status.queued { color: var(--amber); border-color: rgba(243, 186, 77, 0.38); }
.job-status.completed { color: var(--mint); border-color: rgba(101, 230, 178, 0.36); }
.job-status.failed { color: var(--red); border-color: rgba(255, 107, 115, 0.38); }

.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.job-meta-grid div {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.job-meta-grid span {
  display: block;
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-meta-grid b {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-row-card p {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.job-row-card code {
  display: block;
  margin-top: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .audio-transport {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .transport-scrub {
    grid-column: 1 / -1;
    order: 3;
  }

  .transport-time {
    order: 2;
  }

  .workspace {
    grid-template-columns: minmax(340px, 360px) minmax(0, 1fr);
  }

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

  .detail-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero-copy {
    display: grid;
  }

  .audio-transport {
    grid-template-columns: 1fr;
  }

  .transport-controls,
  .transport-time {
    justify-self: start;
  }

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

  .job-summary,
  .job-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-root { padding: 18px; }
  .hero { grid-template-columns: 1fr; }
  .dialog-head {
    display: grid;
  }
  .job-summary,
  .job-meta-grid,
  .job-row-head {
    grid-template-columns: 1fr;
  }
  .line-row {
    grid-template-columns: 32px 38px 1fr;
  }
  .row-time {
    grid-column: 3;
  }
}
