/* Transcript workspace — route-specific composition for the authenticated app.
   The shared transcript behavior still comes from home.ts; this layer turns the
   landing-page tool anatomy into a focused product workspace. */

body.def-page.vw-app[data-vw-workspace="1"] {
  --workspace-line: #d9d2bf;
  --workspace-line-soft: #e8e2d2;
  --workspace-teal-soft: #e6f3f0;
  --workspace-coral-soft: #fae8e1;
}

body.def-page.vw-app[data-vw-workspace="1"] main.vw-content {
  max-width: 1380px;
  padding-top: 34px;
}

/* ── "Create a transcript" entry state ──────────────────────────────────────
   Two-column composition (creation form + summary receipt) that matches the
   app-suite mockup. Uses the shell's teal-primary tokens; coral marks the
   optional AI Watch register. Collapses to the working surface once a job
   starts (body.vw-workspace-live) or a saved transcript is reopened
   (body.vw-workspace-history). */

.nt {
  --nt-line: var(--workspace-line);
  --nt-line-soft: var(--workspace-line-soft);
  --nt-card: #fffefa;
  --nt-teal-soft: var(--workspace-teal-soft);
  --nt-coral: #e14a35;
  --nt-coral-soft: var(--workspace-coral-soft);
  --nt-coral-border: #f2c9bd;
  display: block;
  margin: 0;
}

.nt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 24px;
}

.nt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  background: var(--nt-teal-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.nt-eyebrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.vw-app .nt-head h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.nt-head .vw-sub {
  max-width: 60ch;
  margin: 11px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Step rail — an orientation map of the one job's arc: pick a video here, tune
   options and review the result in the workspace that opens below. */
.nt-steps {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
  margin: 0;
  padding: 0 2px 4px;
  list-style: none;
}

.nt-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nt-steps li + li::before {
  content: "";
  width: 26px;
  height: 1.5px;
  margin-right: 2px;
  border-radius: 2px;
  background: var(--nt-line);
}

.nt-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1.5px solid var(--nt-line);
  border-radius: 50%;
  background: var(--nt-card);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.nt-steps li.is-active {
  color: var(--accent-dark);
}

.nt-steps li.is-active .nt-step-dot {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.nt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.nt-main,
.nt-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Cards */
.nt-card {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--nt-line);
  border-radius: 15px;
  background: var(--nt-card);
  box-shadow: 0 1px 2px rgba(9, 45, 47, .04), 0 16px 38px -28px rgba(9, 45, 47, .30);
}

.nt-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.nt-card-head h2,
.nt-card-head-row h2,
.nt-summary h2,
.nt-fmt-card h2 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.nt-badge--coral {
  background: var(--nt-coral);
}

/* Source tabs */
.nt-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.nt-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--nt-line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nt-tab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-tab.is-active {
  border-color: var(--accent);
  background: var(--nt-card);
  box-shadow: inset 0 0 0 1px var(--accent), 0 1px 2px rgba(9, 45, 47, .06);
}

.nt-tab:not(.is-active):not([disabled]):hover {
  border-color: var(--accent-2);
}

.nt-tab[disabled] {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72;
}

.nt-tab-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  background: #ff0000;
  color: #fff;
}

.nt-tab-yt svg {
  width: 11px;
  height: 11px;
  fill: #fff;
  stroke: none;
}

.nt-soon {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--nt-line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* URL input */
.nt-input {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--nt-line);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.nt-input:has(input:focus-visible) {
  border-color: var(--accent-2);
  background: var(--nt-card);
  box-shadow: var(--ring);
}

.nt-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-right: 6px;
  color: var(--muted);
}

.nt-input-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt .nt-input input {
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
}

.nt .nt-input input:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* These set an explicit `display`, which would otherwise beat the [hidden] UA
   rule — keep the attribute authoritative so JS can toggle them. */
.nt-preview[hidden],
.nt-input-check[hidden] {
  display: none;
}

.nt-input-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.nt-input-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Live preview */
.nt-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--nt-line-soft);
  border-radius: 12px;
  background: var(--surface-2);
}

.nt-preview-thumb {
  width: 132px;
  aspect-ratio: 16 / 9;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--nt-line-soft);
  border-radius: 8px;
  background: #e7e0d1;
}

.nt-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.nt-preview-copy strong {
  font-size: 14.5px;
  letter-spacing: -.01em;
}

.nt-preview-copy span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.nt-preview-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--nt-teal-soft);
  color: var(--accent);
}

.nt-preview-ok svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Options */
.nt-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--nt-line-soft);
}

.nt-opt:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.nt-opt-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--nt-teal-soft);
  color: var(--accent);
}

.nt-opt-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-opt-label {
  flex: none;
  min-width: 120px;
  font-size: 14px;
  font-weight: 600;
}

.nt-opt-ctl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.nt-opt-ctl--end {
  justify-content: flex-end;
}

.nt-pill {
  padding: 5px 11px;
  border: 1px solid var(--nt-line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}

.nt-opt-hint {
  color: var(--muted);
  font-size: 12.5px;
}

/* Layout segmented control */
.nt-seg {
  display: inline-flex;
  flex: none;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--nt-line);
  border-radius: 10px;
  background: #eae3d3;
}

.nt-seg-btn {
  padding: 7px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.nt-seg-btn.is-active {
  background: var(--nt-card);
  color: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(9, 45, 47, .18);
}

.nt-seg-btn:not(.is-active):hover {
  color: var(--text);
}

/* Toggle */
.nt-toggle {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 26px;
  flex: none;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #cfc8b7;
  cursor: pointer;
  transition: background .18s ease;
}

.nt-toggle > span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}

.nt-toggle[aria-checked="true"] {
  background: var(--accent);
}

.nt-toggle--coral[aria-checked="true"] {
  background: var(--nt-coral);
}

.nt-toggle[aria-checked="true"] > span {
  transform: translateX(18px);
}

.nt-opt-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--nt-line-soft);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.nt-opt-foot svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Optional AI Watch card */
.nt-watch {
  border-color: var(--nt-coral-border);
  background: linear-gradient(180deg, var(--nt-coral-soft) 0, var(--nt-card) 64px);
}

.nt-watch .nt-card-head {
  margin-bottom: 10px;
}

.nt-watch .nt-card-head h2 {
  flex: 1;
}

.nt-watch-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.nt-watch-body {
  margin-top: 16px;
}

.nt-watch-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.nt-watch-samples li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.nt-watch-samples svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--nt-coral);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-watch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nt-watch-row label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.nt .nt-watch-row select {
  width: auto;
  min-height: 42px;
  border-color: var(--nt-line);
  border-radius: 9px;
  background: var(--nt-card);
}

.nt-watch-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Summary receipt */
.nt-summary {
  position: sticky;
  top: 80px;
}

.nt-sum-list {
  margin: 14px 0 0;
}

.nt-sum-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--nt-line-soft);
}

.nt-sum-list > div:first-child {
  border-top: 0;
}

.nt-sum-list dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.nt-sum-list dt svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-sum-list dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
}

.nt-sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1.5px solid var(--nt-line);
}

.nt-sum-total span {
  font-size: 14px;
  font-weight: 600;
}

.nt-sum-total b {
  color: var(--accent-dark);
  font-family: Sora, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.nt-sum-bal {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.nt-sum-bal b {
  color: var(--text);
  font-weight: 700;
}

.nt-sum-reassure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 10px;
  background: var(--nt-teal-soft);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
}

.nt-sum-reassure svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt .btn.nt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
}

.nt .btn.secondary.nt-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border-color: var(--nt-line);
  border-radius: 11px;
  background: transparent;
  font-weight: 600;
}

/* Recent imports */
.nt-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.nt-viewall {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.nt-recent {
  display: flex;
  flex-direction: column;
}

.nt-recent-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--nt-line-soft);
  color: var(--text);
  text-decoration: none;
}

.nt-recent-row:first-child {
  border-top: 0;
  padding-top: 8px;
}

.nt-recent-row:hover {
  text-decoration: none;
}

.nt-recent-row:hover .nt-recent-title {
  color: var(--accent-dark);
}

.nt-recent-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--nt-teal-soft);
  color: var(--accent);
}

.nt-recent-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-recent-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.nt-recent-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .15s ease;
}

.nt-recent-meta {
  color: var(--muted);
  font-size: 11.5px;
}

.nt-recent-empty {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

/* Export formats */
.nt-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.nt-formats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--nt-line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nt-formats svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-fmt-card .nt-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

body.def-page.vw-app[data-vw-workspace="1"] #notice:not(:empty) {
  margin-top: 14px;
}

/* Loaded / reopened / AI-Watch state: retire the creation surface — the working
   result takes over, and “New transcript” in the sidebar starts a fresh job.
   (vw-workspace-watch is set for the direct-Watch flow — #99.) */
body.vw-workspace-live .nt,
body.vw-workspace-history .nt,
body.vw-workspace-watch .nt {
  display: none;
}
body.def-page.vw-app[data-vw-workspace="1"] .lp-tool {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.def-page.vw-app[data-vw-workspace="1"] .lp-tool #skeleton {
  margin: 18px 0 0;
}

body.def-page.vw-app[data-vw-workspace="1"] .lp-tool #result {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-areas:
    "head head"
    "tools tools"
    "transcript-title ai"
    "search ai"
    "transcript ai";
  gap: 0 22px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 84px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result:not([style*="display: none"]) {
  display: grid !important;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .result-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--workspace-line);
  border-radius: 15px 15px 0 0;
  background: #fffefa;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .video-head {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .video-head img {
  width: 148px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--workspace-line-soft);
  border-radius: 9px;
  box-shadow: none;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .video-head h2 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .video-head .by {
  font-size: 13.5px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-app-links {
  justify-content: flex-end;
  margin: 0;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-app-links a {
  min-height: 38px;
  padding: 8px 11px;
  border-color: var(--workspace-line);
  border-radius: 8px;
  background: #fffefa;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .stats {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid var(--workspace-line-soft);
  font-size: 12.5px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar {
  grid-area: tools;
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--workspace-line);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: #f5efe3;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar :where(select, .btn.secondary, button.small) {
  min-height: 38px;
  border-color: var(--workspace-line);
  border-radius: 8px;
  background: #fffefa;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar #ai-btn,
body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar #chat-toggle-btn {
  min-height: 38px;
  border-color: var(--accent-soft-border);
  background: var(--workspace-teal-soft);
  color: var(--accent-dark);
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar #ai-btn:hover,
body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar #chat-toggle-btn:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
}

.vw-transcript-heading {
  grid-area: transcript-title;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.vw-transcript-heading h3 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 18px;
  letter-spacing: -.02em;
}

.vw-transcript-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.vw-transcript-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  background: var(--workspace-teal-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.vw-transcript-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .search-row {
  grid-area: search;
  position: relative;
  margin: 0 0 10px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .search-row > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .search-row input {
  min-height: 46px;
  padding-left: 42px;
  border-color: var(--workspace-line);
  border-radius: 10px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .transcript-box {
  grid-area: transcript;
  min-height: 440px;
  max-height: min(68vh, 760px);
  padding: 6px 0;
  overflow-y: auto;
  border-color: var(--workspace-line);
  border-radius: 12px;
  background: #fffefa;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .chapter-head {
  padding: 20px 20px 5px;
  font-size: 15.5px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .seg {
  padding-inline: 20px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .seg.para {
  padding-block: 10px;
  line-height: 1.7;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .seg .ts,
body.def-page.vw-app[data-vw-workspace="1"] #result .chapter-head .ts {
  min-width: 52px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > .result-watch-cta {
  grid-area: ai;
  align-self: start;
  align-content: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 12px;
  background: var(--workspace-teal-soft);
  box-shadow: none;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-copy .watch-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-copy h3 {
  margin-top: 1px;
  font-size: 16px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-actions {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  margin-top: 5px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-actions label {
  grid-column: auto;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-actions :where(select, .watch-btn) {
  width: 100%;
}

body.def-page.vw-app[data-vw-workspace="1"] #result .result-watch-cta .watch-estimate {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 11px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > :where(#summary, .chat-panel, .watch-workspace) {
  grid-column: 1 / -1;
}

body.def-page.vw-app[data-vw-workspace="1"] #result > #summary:not(:empty),
body.def-page.vw-app[data-vw-workspace="1"] #result > .chat-panel,
body.def-page.vw-app[data-vw-workspace="1"] #result > .watch-workspace {
  margin-top: 22px;
}

body.def-page.vw-app[data-vw-workspace="1"] #result.watch-only {
  display: block !important;
}

body.def-page.vw-app[data-vw-workspace="1"] #result.watch-only > .vw-transcript-heading {
  display: none;
}

@media (max-width: 1120px) {
  .nt-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .lp-tool #result {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 18px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .result-head {
    grid-template-columns: 1fr;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .result-app-links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  body.def-page.vw-app[data-vw-workspace="1"] main.vw-content {
    padding-top: 24px;
  }

  .nt-head {
    display: block;
  }

  .nt-steps {
    flex-wrap: wrap;
    row-gap: 10px;
    max-width: 100%;
    margin-top: 18px;
    padding-left: 0;
  }

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

  .nt-summary {
    position: static;
  }

  body.vw-app .nt-head h1 {
    font-size: 34px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .lp-tool #result {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "tools"
      "transcript-title"
      "search"
      "transcript"
      "ai";
    scroll-margin-top: 74px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .result-watch-cta {
    margin-top: 18px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .transcript-box {
    min-height: 400px;
    max-height: 64vh;
  }
}

@media (max-width: 640px) {
  body.def-page.vw-app[data-vw-workspace="1"] main.vw-content {
    padding: 18px 12px 42px;
  }

  body.vw-app .nt-head h1 {
    font-size: 29px;
  }

  .nt-head .vw-sub {
    font-size: 14.5px;
  }

  .nt-tabs {
    grid-template-columns: 1fr;
  }

  .nt-tab {
    justify-content: flex-start;
  }

  .nt-opt {
    flex-wrap: wrap;
  }

  .nt-opt-label {
    min-width: 0;
    flex: 1;
  }

  .nt-opt-ctl.nt-seg {
    flex-basis: 100%;
    justify-content: stretch;
  }

  .nt-seg {
    display: flex;
    width: 100%;
  }

  .nt-seg-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 6px;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .nt-watch-samples {
    grid-template-columns: 1fr;
  }

  .nt-preview-thumb {
    width: 104px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .result-head {
    padding: 16px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .video-head {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .video-head img {
    width: 108px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .video-head h2 {
    font-size: 17px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .result-app-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar {
    gap: 7px;
    padding: 10px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar .spacer {
    display: none;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar :where(select, .btn, button.small) {
    flex: 1 1 calc(50% - 7px);
    width: auto;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .toolbar .check-label {
    min-height: 38px;
    flex: 1 1 100%;
  }

  .vw-transcript-heading p {
    display: none;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result > .transcript-box {
    min-height: 360px;
    max-height: none;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .chapter-head,
  body.def-page.vw-app[data-vw-workspace="1"] #result .seg {
    padding-inline: 14px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .seg.para,
  body.def-page.vw-app[data-vw-workspace="1"] #result .chapter-head {
    gap: 10px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] #result .seg .ts,
  body.def-page.vw-app[data-vw-workspace="1"] #result .chapter-head .ts {
    min-width: 42px;
  }
}

@media (max-width: 360px) {
  body.def-page.vw-app[data-vw-workspace="1"] .vw-top {
    gap: 8px;
    padding-inline: 10px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .vw-chips {
    gap: 5px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .vw-chip {
    gap: 5px;
    padding: 6px 8px;
    font-size: 0;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .vw-chip b {
    font-size: 12px;
  }

  body.def-page.vw-app[data-vw-workspace="1"] .vw-chip svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nt-input,
  .nt-tab,
  .nt-toggle,
  .nt-toggle > span,
  .nt-seg-btn {
    transition: none;
  }
}
