/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --border: #d6d3d1;
  --fg: #1c1917;
  --muted: #57534e;
  --accent: #0f4c81;
  --accent-fg: #ffffff;
  --danger: #b91c1c;
  --ok: #15803d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

header.app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.app .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}
header.app nav a { margin-left: 18px; color: var(--muted); }
header.app nav a:hover { color: var(--fg); }

h1 { font-size: 22px; margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 17px; margin: 24px 0 10px; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.row { display: flex; gap: 12px; align-items: center; }

button, .btn {
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
button:hover, .btn:hover { filter: brightness(0.93); }
button:disabled { background: #a8a29e; cursor: not-allowed; }
button.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

input[type=text], input[type=email], input[type=password], input[type=file], textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
label { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th { background: #f1efed; font-weight: 600; color: var(--muted); }
tr:last-child td { border-bottom: none; }

a.row-delete { color: var(--danger); }
a.row-delete:hover { text-decoration: underline; }

.muted  { color: var(--muted); }
.error  { color: var(--danger); }
.ok     { color: var(--ok); }
.right  { text-align: right; }
.spacer { height: 16px; }

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.status.uploading,
.status.uploaded   { background: #fef3c7; color: #854d0e; }
.status.processing { background: #dbeafe; color: #1e40af; }
.status.completed  { background: #dcfce7; color: #166534; }
.status.failed,
.status.expired    { background: #fee2e2; color: #991b1b; }

.progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}
.progress > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* Pipeline checklist */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li.done    { color: var(--ok); }
.steps li.active  { color: var(--fg); font-weight: 500; }
.steps li.failed  { color: var(--danger); }
.steps .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.steps li.done    .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.failed  .mark { background: var(--danger); border-color: var(--danger); color: #fff; }
.steps li.active  .mark {
  border-color: var(--accent);
  color: var(--accent);
  animation: pulse 1.1s ease-in-out infinite;
}
.steps .step-progress {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.steps li.active .step-progress { color: var(--accent); }
.steps li.failed .step-progress { color: var(--danger); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15,76,129,0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(15,76,129,0); }
}

.progress.indeterminate { position: relative; overflow: hidden; }
.progress.indeterminate > div {
  width: 35% !important;
  position: absolute;
  left: 0;
  animation: indeterminate 1.4s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { left: -35%; }
  100% { left: 100%; }
}

.transcript-pages article.transcript-page { margin-bottom: 24px; }
.transcript-pages .page-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.transcript-pages .page-content p.transcript-paragraph {
  margin: 0 0 12px;
  line-height: 1.7;
}

/* Topic label of a paragraph — discrete badge floated to the right of the
   first line, ignoring pointer events so word click-to-play under it still
   works. Matches sigmity styling. */
.transcript-pages .transcript-paragraph[data-label]::before {
  content: attr(data-label);
  float: right;
  text-indent: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.7);
  background-color: rgba(241, 245, 249, 0.85);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 12px;
  margin-top: 2px;
  line-height: 1.5;
  pointer-events: none;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transcript-pages .speaker-label {
  font-weight: 600;
  margin-right: 6px;
  color: var(--accent);
}
.transcript-pages span[data-start] {
  cursor: pointer;
  border-radius: 2px;
  padding: 0 1px;
}
.transcript-pages span[data-start]:hover {
  background: rgba(15, 76, 129, 0.08);
}
.transcript-pages span.word-active {
  background: rgba(15, 76, 129, 0.18);
  outline: 1px solid rgba(15, 76, 129, 0.35);
}

/* Task log page */
.log-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) { .log-grid { grid-template-columns: 1fr; } }

.log-table { font-size: 13px; }
.log-table tbody tr { cursor: pointer; }
.log-table tbody tr:hover { background: #fafaf9; }
.log-table tbody tr.sel { background: #eef4fb; }
.log-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.log-table .right { text-align: right; }

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  text-transform: lowercase;
}
.chip-step    { color: var(--muted); }
.chip-runpod  { background: #fef3c7; color: #854d0e; border-color: #fcd34d; }
.chip-claude  { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.tabs button {
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
}
.tabs button.active { color: var(--fg); border-bottom-color: var(--accent); }
.tabs button:disabled { color: #d6d3d1; cursor: not-allowed; }
.tabs button:hover:not(:disabled):not(.active) { background: #fafaf9; color: var(--fg); }

.overview .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: 12px;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}
.overview .kv .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.error-block {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 10px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #991b1b;
}

.body-pre {
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60vh;
  overflow: auto;
}

.transcript-pair {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.transcript-pair:first-child { border-top: none; padding-top: 0; }
.transcript-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  padding: 2px 0;
  word-break: break-word;
}
.transcript-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  text-align: center;
  height: -moz-fit-content;
  height: fit-content;
}
.transcript-large .transcript-tag { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.transcript-turbo .transcript-tag { background: #fef3c7; color: #854d0e; border-color: #fcd34d; }
.transcript-final .transcript-tag { background: #dcfce7; color: #14532d; border-color: #86efac; }
.transcript-turbo { color: var(--muted); }
.transcript-final { font-weight: 500; }

select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
}

pre.transcript {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
}

