@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  color-scheme: dark;
  --bg: #04060d;
  --panel: rgba(14, 18, 30, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(88, 154, 255, 0.45);
  --text: #f4f7fb;
  --muted: #9da8c0;
  --accent: #64a9ff;
  --success: #42d392;
  --error: #f87171;
  --shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'VT323', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    radial-gradient(circle at 20% -10%, rgba(100, 169, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(66, 211, 146, 0.25), transparent 50%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  padding: 2.2rem clamp(1rem, 3vw, 2.2rem);
}

.shell {
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
}

.shell--two-column {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.8rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .shell--two-column {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: 1rem;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero h1 {
  margin: 0.3rem 0 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin: 0;
  color: var(--accent);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.45rem;
  display: block;
}

.controls {
  display: flex;
  gap: 0.6rem;
}

input[type="text"],
textarea {
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.95);
  color: var(--text);
  padding: 0.72rem 0.9rem;
  font-size: 0.95rem;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 2px rgba(100, 169, 255, 0.25);
}

button {
  border: none;
  border-radius: 7px;
  padding: 0.72rem 1.2rem;
  background: linear-gradient(120deg, #64a9ff, #7dd3fc);
  color: #030712;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(100, 169, 255, 0.2);
}

button svg {
  transition: transform 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

button.processing {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(100, 169, 255, 0.35);
}

button:not(:disabled):hover svg {
  transform: translateX(3px);
}

button:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(100, 169, 255, 0.2);
}

/* Input error state */
input.error,
textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
  animation: shake 0.3s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* Input Section Redesign */
.input-section {
  display: flex;
  flex-direction: column;
}

.input-section-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.input-section-body {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-field-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.input-field-group label .required {
  color: var(--error);
  font-size: 1rem;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.25rem;
}

.input-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}

.status-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}


.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 0.6rem 1rem;
}

.endpoints {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  align-items: center;
}

/* label acts like a modern pill chip */
.endpoints label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--muted);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .12s ease;
  user-select: none;
}

/* tiny indicator on the left of each chip */
.endpoints label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
  flex: 0 0 auto;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

/* hide native inputs but keep them focusable via label */
.endpoints input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* hover + focus affordances */
.endpoints label:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.endpoints label:focus-within {
  box-shadow: 0 6px 18px rgba(100, 169, 255, 0.06);
  border-color: rgba(100, 169, 255, 0.16);
}

/* when the input is checked — modern accent treatment
   Uses :has for the label container, with an additional sibling rule
   for HTML structures like: <label><input ...><span>Text</span></label> */
.endpoints label:has(input:checked),
.endpoints label input:checked+* {
  background: linear-gradient(120deg, rgba(100, 169, 255, 0.12), rgba(61, 167, 255, 0.06));
  border-color: rgba(100, 169, 255, 0.22);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(100, 169, 255, 0.06);
}

.endpoints label:has(input:checked)::before,
.endpoints label input:checked+*::before {
  background: var(--accent);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(100, 169, 255, 0.14);
}

/* subtle reduced emphasis for disabled chips */
.endpoints label[aria-disabled="true"],
.endpoints label:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  margin-top: 0.7rem;
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.prompt .mini {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.console {
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  min-width: 400px;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 5, 9, 0.92);
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .console {
    max-width: 100%;
    min-width: auto;
    position: relative;
    top: 0;
    height: 500px;
  }
}

.console-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0rem 0rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.35);
}

.console-dot:nth-child(2) {
  background: #febc2e;
}

.console-dot:nth-child(3) {
  background: #28c840;
}

.console-title {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(219, 234, 255, 0.65);
  margin-right: auto;
}

.console-head button {
  width: 32px;
  height: 32px;
  color: rgb(94, 103, 115);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  transform: none;
  box-shadow: none;
  padding: 0;
  border-radius: 4px;
}

.console-head button:hover {
  color: rgb(219, 234, 255);
  background: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.console-head button svg {
  transform: none;
}


.icon-copy {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.icon-copy::before,
.icon-copy::after {
  content: '';
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-copy::before {
  top: 3px;
  left: 0;
  width: 10px;
  height: 10px;
  opacity: 0.65;
}

.icon-copy::after {
  top: 1px;
  left: 3px;
  width: 10px;
  height: 10px;
}

pre#event-log {
  flex: 1;
  margin: 0;
  padding: 0;
  color: rgba(219, 234, 255, 0.65);
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: 0;
  overflow: auto;
  white-space: pre;
  background: transparent;
  text-shadow: 0 0 3px rgba(0, 255, 127, 0.15);
}

pre#event-log::-webkit-scrollbar {
  width: 8px;
}

pre#event-log::-webkit-scrollbar-thumb {
  background: rgba(100, 169, 255, 0.45);
  border-radius: 999px;
}

@keyframes pulse {
  from {
    transform: scale(0.95);
    opacity: 0.5;
  }

  to {
    transform: scale(1.05);
    opacity: 1;
  }
}

.log-line {
  display: block;
  padding: 0.08rem 0.8rem;
}

.log-line--info {
  color: rgba(219, 234, 255, 0.65);
}

.log-line--success {
  color: #86ffb3;
}

.log-line--error {
  color: #ff8ea3;
}

.log-line--muted {
  color: rgba(219, 234, 255, 0.45);
}

.pipeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pipeline-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.pipeline-status {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  align-self: flex-start;
}

.pipeline-progress {
  margin-top: 0.85rem;
  height: 6px;
}

.stage-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stage-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.86rem;
}

.stage-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  flex: 0 0 auto;
}

.stage-status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1 1 auto;
}

.stage-status--waiting {
  color: rgba(157, 168, 192, 0.78);
}

.stage-status--running {
  color: var(--accent);
}

.stage-status--done {
  color: var(--success);
}

.stage-status--error {
  color: var(--error);
}

.stage-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.stage-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 5px;
  border: 1px solid transparent;
}

.stage-dot[data-status="waiting"] {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.stage-dot[data-status="running"] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.stage-dot[data-status="running"]::after {
  border-color: transparent;
  animation: none;
}

.stage-dot[data-status="running"]::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  color: var(--accent);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  --loader-d: 6px;
  box-shadow:
    calc(1*var(--loader-d)) calc(0*var(--loader-d)) 0 1.5px currentColor,
    calc(0.707*var(--loader-d)) calc(0.707*var(--loader-d)) 0 -0.5px currentColor,
    calc(0*var(--loader-d)) calc(1*var(--loader-d)) 0 0px currentColor,
    calc(-0.707*var(--loader-d)) calc(0.707*var(--loader-d)) 0 0.5px currentColor,
    calc(-1*var(--loader-d)) calc(0*var(--loader-d)) 0 1.5px currentColor,
    calc(-0.707*var(--loader-d)) calc(-0.707*var(--loader-d)) 0 -0.5px currentColor,
    calc(0*var(--loader-d)) calc(-1*var(--loader-d)) 0 0px currentColor,
    calc(0.707*var(--loader-d)) calc(-0.707*var(--loader-d)) 0 0.5px currentColor;
  animation: stage-loader 1s steps(8) infinite;
}

.stage-dot[data-status="done"] {
  background: rgba(0, 255, 140, 0.85);
  border-color: rgba(0, 255, 140, 0.85);
  box-shadow: inset 0 0 0 2px rgba(0, 62, 39, 0.933);
}

.stage-dot[data-status="error"] {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.85);
}

.mini {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.jobs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jobs-actions {
  display: inline-flex;
  gap: 0.5rem;
}

.jobs-list {
  display: grid;
  gap: 0.8rem;
}

.filter-bar {
  padding: 0.9rem 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.filters-actions {
  display: flex;
  gap: 0.5rem;
}

.chip-set {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

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

.chip.active {
  background: linear-gradient(120deg, rgba(100, 169, 255, 0.18), rgba(61, 167, 255, 0.14));
  border-color: rgba(100, 169, 255, 0.35);
  color: var(--text);
}

.input-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  min-width: 260px;
}

.input-with-icon input {
  background: transparent;
  border: none;
  color: var(--text);
  width: 100%;
  font-size: 0.95rem;
}

.input-with-icon input:focus {
  outline: none;
}

.input-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.3rem;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.job-title {
  font-weight: 700;
}

.job-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.job-notes {
  margin: 0;
  color: var(--text);
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
}

.badge--queued {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.badge--downloading {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.45);
}

.badge--extracting {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.45);
}

.badge--transcribing {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.45);
}

.badge--done {
  color: var(--success);
  border-color: rgba(66, 211, 146, 0.45);
}

.badge--error {
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.45);
}

/* Job Preview Styles */
.jobs-preview {
  display: flex;
  flex-direction: column;
}

.jobs-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.jobs-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.75rem 0;
  margin: 0;
}

.jobs-preview-list::-webkit-scrollbar {
  width: 6px;
}

.jobs-preview-list::-webkit-scrollbar-track {
  background: transparent;
}

.jobs-preview-list::-webkit-scrollbar-thumb {
  background: rgba(100, 169, 255, 0.3);
  border-radius: 999px;
}

.jobs-preview-list::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 169, 255, 0.5);
}

.job-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.job-preview-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.job-preview-info {
  flex: 1;
  min-width: 0;
}

.job-preview-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.job-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-preview-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.jobs-preview-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.view-all-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(100, 169, 255, 0.15), rgba(125, 211, 252, 0.12));
  border: 1px solid rgba(100, 169, 255, 0.3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(100, 169, 255, 0.1);
}

.view-all-button:hover {
  background: linear-gradient(120deg, rgba(100, 169, 255, 0.22), rgba(125, 211, 252, 0.18));
  border-color: rgba(100, 169, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(100, 169, 255, 0.2);
}

.view-all-button svg {
  transition: transform 0.2s ease;
}

.view-all-button:hover svg {
  transform: translateX(3px);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-row.subtle {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.1rem;
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.code.wrap {
  word-break: break-all;
}

.artifact-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.artifact-row a {
  color: var(--accent);
  text-decoration: none;
}

.artifact-row a:hover {
  text-decoration: underline;
}

.snippet-block {
  margin-top: 0.8rem;
}

.snippet {
  margin: 0.4rem 0 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 140px;
  max-height: 320px;
  overflow: auto;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.35;
  white-space: pre-wrap;
}

.progress {
  position: relative;
  height: 5px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress .buffer,
.progress .bar {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.progress .buffer {
  background: rgba(100, 169, 255, 0.28);
}

.progress .bar {
  background: linear-gradient(120deg, #64a9ff, #38bdf8);
}

@keyframes stage-loader {
  100% {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

/* Compact Job List Styles */
.compact-job-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compact-job-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 100px 100px 100px 150px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--panel);
  transition: background 0.15s ease;
}

.compact-job-row:hover {
  background: transparent;
}

.compact-job-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-job-cell.main {
  gap: 0.2rem;
}

.compact-job-cell.main .job-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-job-cell.main .job-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

.compact-job-cell .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  display: none;
  /* Hidden on desktop */
}

.compact-job-cell .value {
  font-size: 0.9rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.compact-job-cell .value.muted {
  color: var(--muted);
}

.compact-job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  opacity: 1;
  /* Always visible */
  transition: opacity 0.2s ease;
}

.compact-job-row:hover .compact-job-actions {
  opacity: 1;
}

/* Override global button styles */
.compact-job-actions .icon-btn {
  padding: 0.5rem 0.55rem !important;
  border-radius: 6px;
  color: var(--muted) !important;
  transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row-reverse;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden;
  white-space: nowrap;
  min-width: 44px;
}

.compact-job-actions .icon-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.compact-job-actions .icon-btn span {
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0;
}

.compact-job-actions .icon-btn:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding-left: 0.9rem !important;
}

.compact-job-actions .icon-btn:hover span {
  opacity: 1;
  transform: translateX(0);
  max-width: 120px;
}

/* Specific Button Colors */
.compact-job-actions .icon-btn.btn-edit {
  color: #7dd3fc !important;
  background: rgba(125, 211, 252, 0.1) !important;
  border-color: rgba(125, 211, 252, 0.2) !important;
}

.compact-job-actions .icon-btn.btn-edit:hover {
  background: rgba(125, 211, 252, 0.2) !important;
  color: #bae6fd !important;
}

.compact-job-actions .icon-btn.btn-pipeline {
  color: #a78bfa !important;
  background: rgba(167, 139, 250, 0.1) !important;
  border-color: rgba(167, 139, 250, 0.2) !important;
}

.compact-job-actions .icon-btn.btn-pipeline:hover {
  background: rgba(167, 139, 250, 0.2) !important;
  color: #c4b5fd !important;
}

.compact-job-actions .icon-btn.btn-neuro {
  color: #34d399 !important;
  background: rgba(52, 211, 153, 0.1) !important;
  border-color: rgba(52, 211, 153, 0.2) !important;
}

.compact-job-actions .icon-btn.btn-neuro:hover {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #6ee7b7 !important;
}

.compact-job-actions .icon-btn.btn-delete {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.1) !important;
}

@media (max-width: 900px) {
  .compact-job-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .compact-job-cell.main {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }

  .compact-job-cell .label {
    display: block;
  }

  .compact-job-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    opacity: 1;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}