:root {
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #08080a;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 0, 0, 0.035), transparent 30%),
    #ffffff;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-legal-footer {
  position: relative;
  z-index: 80;
  color: rgba(222, 237, 245, 0.62);
  background: linear-gradient(180deg, rgba(2, 8, 14, 0.64), rgba(2, 8, 14, 0.88));
  box-shadow: 0 -1px 0 rgba(185, 232, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.08);
  font-size: 11px;
  line-height: 1.35;
}

.site-legal-footer__inner {
  display: flex;
  width: min(1440px, calc(100% - 48px));
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 0 auto;
  padding: 7px 0;
}

.site-legal-footer__identity,
.site-legal-footer__actions,
.site-legal-footer__links,
.site-legal-footer__records,
.site-legal-footer__record {
  display: flex;
  align-items: center;
}

.site-legal-footer__identity {
  min-width: 0;
  flex: 0 1 auto;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.site-legal-footer__product {
  color: rgba(242, 250, 253, 0.82);
  font-weight: 650;
}

.site-legal-footer__separator {
  color: rgba(80, 225, 255, 0.42);
}

.site-legal-footer__copyright {
  color: rgba(222, 237, 245, 0.5);
}

.site-legal-footer__actions {
  min-width: 0;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 12px 18px;
}

.site-legal-footer__links,
.site-legal-footer__records {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-legal-footer__links {
  gap: 7px 15px;
}

.site-legal-footer__links a {
  color: rgba(234, 247, 252, 0.64);
  white-space: nowrap;
}

.site-legal-footer__records {
  gap: 8px 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(185, 232, 255, 0.11);
}

.site-legal-footer__record {
  gap: 6px;
  color: rgba(234, 247, 252, 0.62);
  white-space: nowrap;
}

.site-legal-footer__record-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(80, 225, 255, 0.72);
  box-shadow: 0 0 10px rgba(38, 217, 255, 0.36);
}

.site-legal-footer__record-label {
  color: rgba(80, 225, 255, 0.62);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.site-legal-footer a {
  transition: color 160ms ease;
}

.site-legal-footer a:hover {
  color: rgba(255, 255, 255, 0.96);
}

.site-legal-footer a:focus-visible {
  border-radius: 2px;
  outline: 1px solid rgba(80, 225, 255, 0.88);
  outline-offset: 3px;
}

@media (min-width: 981px) {
  body[data-workbench-layout="c"] .site-legal-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

@media (max-width: 760px) {
  .site-legal-footer__inner {
    width: min(100% - 28px, 1440px);
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 0 11px;
  }

  .site-legal-footer__identity {
    flex-wrap: wrap;
    gap: 4px 7px;
    white-space: normal;
  }

  .site-legal-footer__actions {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
  }

  .site-legal-footer__links,
  .site-legal-footer__records {
    justify-content: flex-start;
  }

  .site-legal-footer__records {
    padding-left: 0;
    border-left: 0;
  }

  .site-legal-footer__record {
    max-width: 100%;
    white-space: normal;
  }
}

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(185, 232, 255, 0.18);
  border-radius: 8px;
  color: rgba(222, 237, 245, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  line-height: 1.5;
}

.legal-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--workbench-cyan, #26d9ff);
}

.legal-consent a {
  margin: 0 2px;
  color: rgba(80, 225, 255, 0.96);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page-body {
  color: rgba(245, 251, 255, 0.94);
  background:
    radial-gradient(circle at 16% 4%, rgba(38, 217, 255, 0.12), transparent 30rem),
    linear-gradient(145deg, #06111b, #02070c 56%, #081018);
}

.legal-page-shell {
  width: min(920px, calc(100% - 32px));
  min-height: calc(100vh - 54px);
  margin: 0 auto;
  padding: 32px 0 56px;
}

.legal-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 22px;
  color: rgba(222, 237, 245, 0.68);
  font-size: 13px;
}

.legal-page-nav a {
  color: rgba(80, 225, 255, 0.96);
}

.legal-document {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(185, 232, 255, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(4, 12, 20, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.legal-kicker {
  margin: 0 0 12px;
  color: rgba(38, 217, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.legal-document h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.legal-document h2 {
  margin: 30px 0 10px;
  color: rgba(248, 252, 255, 0.96);
  font-size: 19px;
  line-height: 1.35;
}

.legal-document p {
  margin: 10px 0;
  color: rgba(222, 237, 245, 0.76);
  font-size: 15px;
  line-height: 1.8;
}

.legal-document a {
  color: rgba(80, 225, 255, 0.96);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 42px;
  background:
    linear-gradient(180deg, rgba(248, 248, 249, 0.78) 0, #ffffff 72px),
    #ffffff;
}

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid #e5e5e7;
}

.brand {
  font-size: 25px;
  line-height: 1;
  font-weight: 760;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1a1a1c;
  font-size: 16px;
  line-height: 1;
}

.lab-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #696970;
  font-size: 14px;
  line-height: 1;
  font-weight: 640;
}

.lab-link:hover,
.lab-link:focus-visible {
  color: #111113;
  border-color: #d4d4d8;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.shield {
  position: relative;
  width: 20px;
  height: 23px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 9px 9px 11px 11px;
  transform: scaleX(0.86);
}

.shield::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.hero {
  max-width: 980px;
  margin: 49px auto 29px;
  text-align: center;
  padding: 0 24px;
}

.hero h1 {
  margin: 0;
  font-size: 74px;
  line-height: 1.08;
  font-weight: 820;
}

.hero p {
  margin: 23px 0 0;
  color: #3f3f46;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 420;
}

.upload-panel {
  width: 884px;
  margin: 0 auto;
  padding: 38px 43px 39px;
  border: 1px solid #d9d9dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.upload-zone {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(169, 169, 175, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within,
.upload-zone.is-dragging {
  border-color: #111113;
  background: rgba(250, 250, 251, 0.92);
}

.upload-zone.has-file,
.upload-zone.has-submitted {
  border-color: #111113;
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 247, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 19, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.08);
}

.upload-zone.has-file::before,
.upload-zone.has-submitted::before {
  content: "已选择";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 5px 9px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: #111113;
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: 0;
}

.upload-zone.has-submitted::before {
  content: "本次提交";
  background: #303036;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone strong {
  max-width: 286px;
  color: #0b0b0d;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 720;
  text-align: center;
  overflow-wrap: anywhere;
}

.upload-zone small {
  color: #6a6a71;
  font-size: 15px;
  line-height: 1.35;
}

.upload-zone.has-file small,
.upload-zone.has-submitted small {
  color: #232328;
  font-weight: 680;
}

.file-name {
  max-width: 88%;
  padding: 8px 13px;
  border-radius: 7px;
  color: #ffffff;
  background: #111113;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 720;
  text-align: center;
  overflow-wrap: anywhere;
}

.upload-zone.has-submitted .file-name {
  background: #303036;
}

.file-glyph {
  position: relative;
  width: 54px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  color: #111113;
  flex: 0 0 auto;
}

.file-shape {
  width: 42px;
  height: 52px;
  border: 2px solid #141416;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 49%, #141416 50% 54%, transparent 55%) right top / 18px 18px no-repeat,
    #ffffff;
}

.file-glyph > span:last-child,
.mini-file {
  position: absolute;
  left: 10px;
  bottom: 4px;
  min-width: 34px;
  padding: 2px 3px 3px;
  border-radius: 3px;
  color: #ffffff;
  background: #171719;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: end;
  margin-top: 28px;
}

.form-row label {
  display: grid;
  gap: 9px;
  color: #19191c;
  font-size: 16px;
  line-height: 1;
  font-weight: 560;
}

.form-row input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  color: #111113;
  border: 1px solid #cfcfd4;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-row input::placeholder {
  color: #96979d;
}

.form-row input:focus {
  border-color: #0a0a0b;
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.08);
}

.generate-button,
.download-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(180deg, #171718 0%, #050506 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.12);
  font-size: 22px;
  line-height: 1;
  font-weight: 650;
}

.generate-button:hover,
.download-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 15px 28px rgba(0, 0, 0, 0.16);
}

.generate-button:disabled,
.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.assurance-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 28px auto 0;
  color: #27272b;
  font-size: 17px;
  line-height: 1;
}

.assurance-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.assurance-row .shield {
  width: 20px;
  height: 23px;
}

.assurance-row i {
  width: 1px;
  height: 24px;
  background: #dedee2;
}

.status-note {
  width: 884px;
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid #d9d9dc;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
}

.status-note strong {
  margin-right: 10px;
}

.status-detail {
  display: block;
  margin-top: 7px;
  color: inherit;
  opacity: 0.78;
}

.status-note.is-done {
  border-color: #c8e3c9;
  color: #235b28;
  background: #f0fbf1;
}

.status-note.is-error {
  border-color: #f1c4c4;
  color: #7b1d1d;
  background: #fff3f3;
}

.failure-detail {
  width: 884px;
  margin: 14px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dedee4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}

.failure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 18px;
  border-bottom: 1px solid #ececf0;
  color: #111113;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  font-size: 14px;
  line-height: 1;
}

.failure-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #111113;
  font-weight: 720;
  white-space: nowrap;
}

.failure-head strong {
  flex: 1;
  color: #111113;
  font-size: 16px;
}

.failure-head small {
  padding: 5px 8px;
  border: 1px solid #e2e2e7;
  border-radius: 999px;
  color: #5b5c63;
  background: #ffffff;
  white-space: nowrap;
}

.failure-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
  border-bottom: 1px solid #ececf0;
}

.failure-compare article {
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid #ececf0;
  border-radius: 0;
  background: #ffffff;
}

.failure-compare article:nth-child(2) {
  border-right: 0;
  background: #fcfcfd;
}

.failure-detail h2 {
  margin: 0 0 10px;
  color: #686970;
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.failure-detail p {
  margin: 0;
  color: #111113;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.failure-compare article:nth-child(2) p {
  color: #7b1d1d;
}

.failure-compare p + p {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #efeff2;
}

.srt-context {
  margin-top: 0;
  padding: 16px 18px 18px;
  background: #ffffff;
}

.srt-context ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7e7ec;
  border-radius: 8px;
  list-style: none;
}

.srt-context li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 11px 14px;
  border-bottom: 1px solid #eeeeef;
  background: #ffffff;
}

.srt-context li:last-child {
  border-bottom: 0;
}

.srt-context li.is-current {
  background: #fff5f5;
  box-shadow: inset 3px 0 0 #7b1d1d;
}

.srt-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  color: #62636a;
  font-size: 12px;
  line-height: 1.3;
}

.srt-meta strong {
  color: #111113;
  min-width: 38px;
  font-size: 13px;
}

.srt-meta time {
  color: #6c6d73;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.srt-meta em {
  padding: 3px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: #7b1d1d;
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
  white-space: nowrap;
}

.srt-context li > p {
  padding-left: 42px;
}

.report-strip {
  width: 884px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 14px auto 0;
}

.report-strip div {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.report-strip strong {
  display: block;
  color: #101012;
  font-size: 24px;
  line-height: 1.15;
}

.report-strip span {
  display: block;
  margin-top: 5px;
  color: #6c6d74;
  font-size: 13px;
}

.outputs {
  width: 1290px;
  margin: 43px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e0e0e4;
}

.outputs h2 {
  margin: 0 0 23px 26px;
  color: #42434a;
  font-size: 16px;
  line-height: 1;
  font-weight: 450;
}

.outputs ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}

.output-item {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  border-right: 1px solid #e0e0e4;
}

.output-item:last-child {
  border-right: 0;
}

.mini-file {
  position: static;
  min-width: 42px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: 0 0 auto;
}

.output-item span:not(.mini-file) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.output-item strong {
  color: #0f0f12;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 760;
  white-space: nowrap;
}

.output-item small {
  color: #64656b;
  font-size: 13px;
  line-height: 1.2;
}

.download-button {
  width: 324px;
  margin: 27px auto 0;
  display: flex;
  color: #0b0b0d;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cfd0d5;
  box-shadow: none;
  font-size: 20px;
  font-weight: 560;
}

.download-button:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.download-button.is-disabled {
  color: #9b9ca3;
  cursor: not-allowed;
  background: #f6f6f7;
}

.lab-hero {
  margin-bottom: 32px;
}

.lab-kicker {
  margin: 0 0 12px;
  color: #6b6b72;
  font-size: 14px;
  line-height: 1;
  font-weight: 720;
}

.lab-badge {
  min-height: 34px;
  color: #44444b;
  background: #f7f7f8;
}

@media (max-width: 1180px) {
  .upload-panel,
  .status-note,
  .failure-detail,
  .report-strip {
    width: calc(100% - 64px);
  }

  .outputs {
    width: calc(100% - 64px);
  }

  .outputs ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .output-item:nth-child(2n) {
    border-right: 0;
  }

  .hero h1 {
    font-size: 60px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
  }

  .hero {
    margin-top: 42px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 17px;
  }

  .upload-panel,
  .status-note,
  .failure-detail,
  .report-strip,
  .outputs {
    width: calc(100% - 32px);
  }

  .upload-panel {
    padding: 24px;
  }

  .upload-grid,
  .form-row,
  .failure-compare,
  .report-strip,
  .outputs ul {
    grid-template-columns: 1fr;
  }

  .failure-detail {
    padding: 0;
  }

  .failure-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .failure-compare article {
    border-right: 0;
    border-bottom: 1px solid #ececf0;
  }

  .failure-compare article:nth-child(2) {
    border-bottom: 0;
  }

  .srt-context li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .srt-meta {
    flex-wrap: wrap;
  }

  .srt-context li > p {
    padding-left: 0;
  }

  .output-item {
    border-right: 0;
    border-bottom: 1px solid #e0e0e4;
    padding: 14px 6px;
  }

  .output-item:last-child {
    border-bottom: 0;
  }

  .download-button {
    width: calc(100% - 32px);
  }

  .asr-config-actions {
    grid-template-columns: 1fr;
  }
}

/* Dynamic video workbench */
.background-video,
.video-vignette,
.video-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  z-index: -3;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 42%);
  background: transparent;
  opacity: 0;
  transition: opacity 360ms ease;
  will-change: opacity;
}

.background-video.is-visible {
  opacity: 1;
}

.video-vignette {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.62), rgba(8, 9, 10, 0.12) 24%, rgba(8, 9, 10, 0.08) 58%, rgba(8, 9, 10, 0.62)),
    linear-gradient(180deg, rgba(8, 9, 10, 0.54), rgba(8, 9, 10, 0.08) 34%, rgba(8, 9, 10, 0.62));
}

.video-fallback {
  z-index: -4;
  background-image:
    var(--video-poster, none),
    linear-gradient(135deg, #1a1c1f 0%, #31342f 48%, #151617 100%);
  background-position:
    var(--focus-x, 50%) var(--focus-y, 42%),
    center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.92);
  transform: scale(1.01);
}

.video-workbench {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 76px minmax(360px, 1fr) minmax(360px, 392px);
  grid-template-rows: 62px minmax(418px, 1fr) 176px;
  gap: 16px;
  padding: 18px 24px 20px;
  color: rgba(255, 255, 248, 0.94);
  background: transparent;
  overflow: hidden;
}

.workbench-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 4px 0 6px;
}

.video-workbench .brand {
  color: rgba(255, 255, 248, 0.96);
  font-size: 22px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.video-workbench .topnav {
  gap: 12px;
}

.layout-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(5px);
}

.layout-switcher button {
  width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 248, 0.58);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.layout-switcher button:hover,
.layout-switcher button:focus-visible,
.layout-switcher button.is-active {
  color: rgba(18, 20, 20, 0.94);
  background: rgba(255, 255, 248, 0.88);
  outline: none;
}

.video-workbench .lab-link {
  color: rgba(255, 255, 248, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(7px);
}

.video-workbench .lab-link:hover,
.video-workbench .lab-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.scene-rail {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: start;
  position: relative;
  display: grid;
  gap: 10px;
  padding: 8px 0 0 13px;
  counter-reset: scene;
}

.scene-rail::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 248, 0.46), rgba(255, 255, 248, 0.08));
}

.scene-rail button {
  counter-increment: scene;
  position: relative;
  min-height: 40px;
  padding: 0 0 0 31px;
  border: 0;
  color: rgba(255, 255, 248, 0.64);
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
  white-space: nowrap;
  transition:
    opacity 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.scene-rail button::before {
  content: counter(scene, decimal-leading-zero);
  position: absolute;
  left: -4px;
  top: 50%;
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 248, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 248, 0.52);
  background: rgba(9, 10, 10, 0.2);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 820;
  transform: translateY(-50%);
}

.scene-rail button:hover,
.scene-rail button:focus-visible,
.scene-rail button.is-active {
  color: #ffffff;
  transform: translateX(2px);
  outline: none;
}

.scene-rail button.is-active::before {
  color: rgba(15, 17, 17, 0.94);
  border-color: rgba(255, 255, 248, 0.82);
  background: rgba(255, 255, 248, 0.88);
}

.scene-rail button.is-preview {
  opacity: 0.78;
}

.scene-rail button.is-preview::before {
  border-color: rgba(255, 255, 248, 0.42);
  background: rgba(255, 255, 248, 0.14);
}

.command-panel,
.timeline-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(3px) saturate(1.02);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.command-panel {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  max-height: min(580px, calc(100vh - 286px));
  overflow: auto;
  padding: 20px;
  transform-origin: right center;
}

.video-workbench.is-scene-changing .command-panel {
  transform: translateX(7px);
}

.video-workbench.is-scene-changing .timeline-panel {
  transform: translateY(6px);
}

.video-workbench .eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 248, 0.66);
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: 0;
}

.scene-copy {
  margin: 9px 0 12px;
  color: rgba(255, 255, 248, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.video-workbench .mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0 12px;
  padding: 4px;
  border: 1px solid rgba(185, 232, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(2, 8, 14, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.video-workbench .mode-card {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label title"
    "label hint";
  gap: 1px 8px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(222, 237, 245, 0.72);
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-workbench .mode-card:hover,
.video-workbench .mode-card:focus-visible,
.video-workbench .mode-card.is-active {
  border-color: rgba(38, 217, 255, 0.42);
  color: rgba(245, 251, 255, 0.96);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.2), rgba(255, 255, 255, 0.055));
  outline: none;
}

.video-workbench .mode-card span {
  grid-area: label;
  align-self: center;
  padding: 3px 6px;
  border: 1px solid rgba(38, 217, 255, 0.3);
  border-radius: 999px;
  color: rgba(38, 229, 255, 0.92);
  background: rgba(38, 217, 255, 0.09);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.video-workbench .mode-card strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-workbench .mode-card small {
  grid-area: hint;
  min-width: 0;
  overflow: hidden;
  color: rgba(222, 237, 245, 0.56);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.trust-strip article {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(220, 244, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.1;
}

.trust-strip span {
  display: block;
  color: rgba(222, 237, 245, 0.56);
  font-size: 11px;
  line-height: 1.32;
}

.beginner-panel {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 248, 0.78);
}

.beginner-head {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.beginner-head strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  line-height: 1.2;
}

.beginner-head span,
.beginner-steps p {
  margin: 0;
  color: rgba(255, 255, 248, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.example-project {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(38, 217, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 217, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(2, 8, 14, 0.08);
}

.example-project span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(38, 217, 255, 0.38);
  border-radius: 999px;
  color: rgba(38, 229, 255, 0.92);
  background: rgba(38, 217, 255, 0.08);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.example-project strong {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  line-height: 1.2;
}

.example-project p {
  margin: 5px 0 0;
  color: rgba(222, 237, 245, 0.62);
  font-size: 13px;
  line-height: 1.42;
}

.example-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.example-links a {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(220, 244, 255, 0.2);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.example-links a:hover,
.example-links a:focus-visible {
  border-color: rgba(38, 217, 255, 0.56);
  background: rgba(38, 217, 255, 0.13);
  outline: none;
}

.beginner-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beginner-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.beginner-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(38, 217, 255, 0.42);
  border-radius: 999px;
  color: rgba(38, 229, 255, 0.96);
  background: rgba(38, 217, 255, 0.12);
  font-size: 13px;
  font-weight: 780;
}

.beginner-steps strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.2;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.template-link {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(220, 244, 255, 0.22);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.template-link:hover,
.template-link:focus-visible {
  border-color: rgba(38, 217, 255, 0.58);
  background: rgba(38, 217, 255, 0.12);
  outline: none;
}

.template-link span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 6px;
  color: rgba(20, 22, 22, 0.92);
  background: rgba(255, 255, 248, 0.88);
  font-size: 11px;
  font-weight: 820;
}

.template-link strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.25;
}

.format-checker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(220, 244, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(2, 8, 14, 0.1);
}

.format-checker-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.format-checker-head > span {
  padding: 3px 7px;
  border: 1px solid rgba(38, 217, 255, 0.34);
  border-radius: 999px;
  color: rgba(38, 229, 255, 0.92);
  background: rgba(38, 217, 255, 0.08);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.format-checker-head strong {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.2;
}

.format-checker-head p {
  margin: 4px 0 0;
  color: rgba(222, 237, 245, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.format-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.format-check-file {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(220, 244, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.format-check-file:hover,
.format-check-file:focus-within {
  border-color: rgba(38, 217, 255, 0.52);
  background: rgba(38, 217, 255, 0.1);
}

.format-check-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.format-check-file span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 6px;
  color: rgba(20, 22, 22, 0.92);
  background: rgba(255, 255, 248, 0.88);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.format-check-file strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-check-file small {
  overflow: hidden;
  color: rgba(222, 237, 245, 0.56);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-check-action {
  min-height: 38px;
  border: 1px solid rgba(38, 217, 255, 0.5);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(38, 217, 255, 0.16);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.format-check-action:hover,
.format-check-action:focus-visible {
  border-color: rgba(38, 217, 255, 0.78);
  background: rgba(38, 217, 255, 0.24);
  outline: none;
}

.format-check-result {
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(220, 244, 255, 0.15);
  border-radius: 8px;
  color: rgba(222, 237, 245, 0.66);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}

.format-check-result.is-ok {
  border-color: rgba(93, 227, 154, 0.42);
  color: rgba(220, 255, 236, 0.86);
  background: rgba(93, 227, 154, 0.08);
}

.format-check-result.is-warning {
  border-color: rgba(255, 181, 71, 0.42);
  color: rgba(255, 229, 187, 0.9);
  background: rgba(255, 181, 71, 0.08);
}

.format-check-result.is-error {
  border-color: rgba(255, 123, 123, 0.48);
  color: rgba(255, 210, 210, 0.92);
  background: rgba(255, 123, 123, 0.08);
}

.beginner-primary {
  min-height: 42px;
  border: 1px solid rgba(38, 217, 255, 0.75);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.58), rgba(30, 109, 152, 0.62));
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
}

.beginner-primary:hover,
.beginner-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(38, 217, 255, 0.13);
  outline: none;
}

.video-workbench .upload-panel {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.video-workbench .upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.video-workbench .upload-zone {
  min-height: 68px;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px 8px 61px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(4, 10, 16, 0.08);
  color: rgba(255, 255, 248, 0.92);
}

.video-workbench .upload-zone:hover,
.video-workbench .upload-zone:focus-within,
.video-workbench .upload-zone.is-dragging {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.video-workbench .upload-zone.has-file,
.video-workbench .upload-zone.has-submitted {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.video-workbench .upload-zone.has-file::before,
.video-workbench .upload-zone.has-submitted::before {
  top: 10px;
  right: 10px;
  color: rgba(20, 22, 22, 0.92);
  background: rgba(255, 255, 248, 0.86);
}

.video-workbench .file-glyph {
  position: absolute;
  left: 12px;
  top: 9px;
  color: rgba(255, 255, 248, 0.9);
  transform: scale(0.66);
  transform-origin: left top;
}

.video-workbench .file-shape {
  border-color: currentColor;
  background:
    linear-gradient(135deg, transparent 0 49%, currentColor 50% 54%, transparent 55%) right top / 18px 18px no-repeat,
    rgba(255, 255, 255, 0.08);
}

.video-workbench .file-glyph > span:last-child {
  color: #151716;
  background: rgba(255, 255, 248, 0.9);
}

.video-workbench .upload-zone strong {
  max-width: 100%;
  color: #ffffff;
  font-size: 15px;
  text-align: left;
}

.video-workbench .upload-zone small,
.video-workbench .file-name {
  color: rgba(255, 255, 248, 0.68);
  font-size: 13px;
}

.video-workbench .file-name {
  max-width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-align: left;
}

.workbench-form-row {
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  margin-top: 10px;
}

.context-panel {
  margin-top: 8px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(220, 244, 255, 0.14);
}

.context-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 248, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.context-panel-head strong {
  color: rgba(255, 255, 248, 0.9);
  font-size: 13px;
}

.context-panel-head span {
  text-align: right;
  opacity: 0.72;
}

.video-workbench .context-panel-head span {
  display: none;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.context-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: rgba(255, 255, 248, 0.74);
  font-size: 12px;
  line-height: 1;
  font-weight: 560;
}

.video-workbench .form-row label {
  color: rgba(255, 255, 248, 0.74);
  font-size: 13px;
}

.video-workbench .context-grid input,
.video-workbench .form-row input,
.video-workbench .form-row select {
  height: 40px;
  width: calc(100% - 8px);
  margin: 0 8px 8px 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.video-workbench .context-grid input::placeholder,
.video-workbench .form-row input::placeholder {
  color: rgba(255, 255, 248, 0.44);
}

.video-workbench .form-row select option {
  color: #111113;
}

.video-workbench .custom-select,
.asr-workbench .custom-select {
  position: relative;
  display: block;
  width: calc(100% - 8px);
  margin: 0 8px 8px 0;
}

.custom-select-native {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.video-workbench .custom-select-trigger,
.asr-workbench .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(220, 244, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.custom-select-trigger [data-custom-select-value] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-grid .custom-select-trigger,
.video-workbench .context-grid input {
  height: 38px;
  font-size: 13px;
}

.context-grid .custom-select-trigger {
  padding-right: 10px;
}

.video-workbench .custom-select-trigger:hover,
.video-workbench .custom-select-trigger:focus-visible,
.asr-workbench .custom-select-trigger:hover,
.asr-workbench .custom-select-trigger:focus-visible,
.video-workbench .custom-select.is-open .custom-select-trigger,
.asr-workbench .custom-select.is-open .custom-select-trigger {
  border-color: rgba(38, 217, 255, 0.66);
  background: linear-gradient(180deg, rgba(38, 217, 255, 0.18), rgba(255, 255, 255, 0.075));
  box-shadow:
    0 0 0 3px rgba(38, 217, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-select-arrow {
  width: 9px;
  height: 9px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
  opacity: 0.86;
}

.custom-select.is-open .custom-select-arrow {
  transform: translateY(2px) rotate(225deg);
}

.video-workbench .custom-select-menu,
.asr-workbench .custom-select-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(185, 232, 255, 0.28);
  border-radius: 8px;
  color: rgba(245, 251, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(18, 29, 49, 0.94), rgba(10, 16, 29, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.video-workbench .custom-select-menu[hidden],
.asr-workbench .custom-select-menu[hidden] {
  display: none;
}

.custom-select.is-open-upward .custom-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.video-workbench .custom-select-menu button,
.asr-workbench .custom-select-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.video-workbench .custom-select-menu button:hover,
.video-workbench .custom-select-menu button:focus-visible,
.asr-workbench .custom-select-menu button:hover,
.asr-workbench .custom-select-menu button:focus-visible {
  border-color: rgba(38, 217, 255, 0.24);
  background: rgba(38, 217, 255, 0.12);
  outline: none;
}

.video-workbench .custom-select-menu button.is-selected,
.asr-workbench .custom-select-menu button.is-selected {
  border-color: rgba(38, 217, 255, 0.5);
  color: #eefdff;
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.52), rgba(35, 125, 174, 0.42));
}

.video-workbench .generate-button,
.video-workbench .download-button {
  width: 100%;
  min-height: 44px;
  height: auto;
  margin: 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #141716;
  background: rgba(255, 255, 248, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-size: 18px;
  font-weight: 760;
}

.video-workbench .download-button.is-disabled {
  min-height: 34px;
  margin-top: 8px;
  color: rgba(255, 255, 248, 0.52);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 14px;
  font-weight: 680;
}

.video-workbench .status-note,
.video-workbench .failure-detail {
  width: auto;
  margin: 14px 0 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.video-workbench .status-note.is-done {
  color: rgba(227, 255, 230, 0.94);
  border-color: rgba(174, 230, 181, 0.34);
  background: rgba(83, 142, 91, 0.18);
}

.video-workbench .status-note.is-error {
  color: rgba(255, 224, 224, 0.96);
  border-color: rgba(255, 156, 156, 0.34);
  background: rgba(126, 40, 40, 0.2);
}

.video-workbench .failure-head,
.video-workbench .failure-compare article,
.video-workbench .srt-context {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.video-workbench .failure-detail h2,
.video-workbench .failure-detail p,
.video-workbench .srt-meta,
.video-workbench .srt-meta strong {
  color: rgba(255, 255, 248, 0.88);
}

.video-workbench .srt-context ol {
  border-color: rgba(255, 255, 255, 0.14);
}

.video-workbench .srt-context li {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-panel {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  min-width: 0;
  max-height: 152px;
  overflow: hidden;
  padding: 10px 12px 11px;
}

.timeline-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.timeline-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
}

.timeline-head > span {
  color: rgba(255, 255, 248, 0.58);
  font-size: 12px;
}

.video-workbench .report-strip {
  width: auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 6px;
}

.video-workbench .report-strip div {
  min-height: 36px;
  padding: 5px 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.video-workbench .report-strip strong {
  color: #ffffff;
  font-size: 14px;
}

.video-workbench .report-strip span {
  color: rgba(255, 255, 248, 0.58);
  font-size: 10px;
  margin-top: 2px;
}

.delivery-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  list-style: none;
}

.delivery-list li {
  min-width: 248px;
  flex: 0 0 248px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  scroll-snap-align: start;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.delivery-list li:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 248, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.delivery-list span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 5px;
  color: rgba(22, 24, 23, 0.92);
  background: rgba(255, 255, 248, 0.82);
  font-size: 11px;
  font-weight: 820;
}

.delivery-list strong {
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-list em {
  min-width: 0;
  color: rgba(255, 255, 248, 0.58);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-no-video .video-vignette {
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.64), rgba(8, 9, 10, 0.34) 50%, rgba(8, 9, 10, 0.64)),
    linear-gradient(180deg, rgba(8, 9, 10, 0.6), rgba(8, 9, 10, 0.78));
}

.video-workbench.layout-a {
  grid-template-columns: 104px minmax(430px, 0.92fr) minmax(420px, 0.8fr);
  grid-template-rows: 62px minmax(520px, 1fr);
}

.layout-a .scene-rail {
  grid-row: 2;
}

.layout-a .command-panel {
  grid-column: 2;
  grid-row: 2;
  max-height: calc(100vh - 112px);
}

.layout-a .timeline-panel {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.layout-a .delivery-list {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.layout-a .delivery-list li {
  min-width: 0;
  flex: initial;
}

.video-workbench.layout-b {
  grid-template-columns: 88px minmax(420px, 1fr) minmax(330px, 366px);
  grid-template-rows: 62px minmax(360px, 1fr) 166px;
}

.layout-b .scene-rail {
  grid-row: 2;
}

.layout-b .command-panel {
  grid-column: 3;
  grid-row: 2;
  max-height: 500px;
}

.layout-b .timeline-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: min(1040px, calc(100vw - 48px));
}

.video-workbench.layout-c {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 62px minmax(0, 1fr);
}

.layout-c .scene-rail {
  grid-column: 1;
  grid-row: 2;
  z-index: 2;
  align-self: start;
  justify-self: center;
  display: flex;
  gap: 8px;
  padding: 0;
}

.layout-c .scene-rail::before {
  display: none;
}

.layout-c .scene-rail button {
  width: auto;
  min-width: 72px;
  padding: 0 12px 0 36px;
}

.layout-c .command-panel {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  width: min(420px, calc(100vw - 44px));
  max-height: min(620px, calc(100vh - 150px));
  margin-top: 30px;
}

.layout-c .timeline-panel {
  display: none;
}

body[data-workbench-layout="c"] .video-vignette {
  background:
    radial-gradient(circle at 50% 46%, rgba(8, 9, 10, 0.1), rgba(8, 9, 10, 0.48) 58%, rgba(8, 9, 10, 0.72)),
    linear-gradient(180deg, rgba(8, 9, 10, 0.5), rgba(8, 9, 10, 0.28) 42%, rgba(8, 9, 10, 0.7));
}

@media (max-width: 1120px) {
  .video-workbench {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .scene-rail {
    grid-column: 1;
    grid-row: 2 / 4;
  }

  .command-panel {
    grid-column: 2;
    grid-row: 2;
    max-height: none;
  }

  .timeline-panel {
    grid-column: 2;
    grid-row: 3;
  }

  .delivery-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .delivery-list li {
    min-width: 0;
    flex: initial;
  }
}

@media (max-width: 760px) {
  .video-workbench {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 14px;
    gap: 12px;
    overflow: visible;
  }

  .workbench-topbar {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .video-workbench .brand {
    font-size: 20px;
  }

  .scene-rail {
    order: 2;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .scene-rail button {
    flex: 0 0 auto;
    min-width: 74px;
    min-height: 38px;
    padding: 0 13px 0 34px;
  }

  .command-panel {
    order: 3;
    max-height: none;
    padding: 16px;
  }

  .command-panel h1 {
    font-size: 28px;
  }

  .workbench-form-row {
    grid-template-columns: 1fr;
  }

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

  .context-panel-head {
    display: grid;
    gap: 4px;
  }

  .context-panel-head span {
    text-align: left;
  }

  .timeline-panel {
    order: 4;
    padding: 14px;
  }

  .video-workbench .report-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-list {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .delivery-list li {
    min-width: 0;
    flex: initial;
  }

  .layout-switcher {
    display: none;
  }
}

@media (max-width: 520px) {
  .context-grid {
    grid-template-columns: 1fr;
  }

  .format-check-grid,
  .template-grid,
  .example-links,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Prototype variant replica pass */
:root {
  --workbench-cyan: #26d9ff;
  --workbench-amber: #ffb547;
  --workbench-green: #5de39a;
  --workbench-text: rgba(245, 251, 255, 0.96);
  --workbench-muted: rgba(222, 237, 245, 0.72);
  --workbench-faint: rgba(222, 237, 245, 0.46);
  --workbench-line: rgba(185, 232, 255, 0.24);
}

.background-video {
  filter: saturate(1.08) contrast(1.08) brightness(1);
}

.video-vignette {
  background:
    radial-gradient(circle at var(--focus-x, 62%) var(--focus-y, 40%), rgba(48, 212, 255, 0.04), transparent 30rem),
    linear-gradient(90deg, rgba(1, 6, 11, 0.25), rgba(1, 7, 12, 0.03) 42%, rgba(1, 6, 11, 0.22)),
    linear-gradient(180deg, rgba(1, 6, 11, 0.25), transparent 38%, rgba(1, 6, 11, 0.34));
}

.video-workbench {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 28px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 84px minmax(0, 1fr);
  gap: 22px;
  color: var(--workbench-text);
}

.workbench-topbar {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  min-height: 84px;
  padding: 0;
}

.brand-stack {
  display: grid;
  gap: 6px;
}

.brand-eyebrow {
  margin: 0;
  color: var(--workbench-cyan);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.video-workbench .brand {
  font-size: clamp(38px, 3.2vw, 52px);
  line-height: 0.92;
  font-weight: 860;
  letter-spacing: 0;
}

.video-workbench .topnav {
  position: static;
  z-index: 46;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.video-workbench .lab-link {
  position: fixed;
  left: 0;
  top: 138px;
  z-index: 48;
  min-height: auto;
  padding: 9px 7px 9px 6px;
  border-color: rgba(185, 232, 255, 0.16);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: rgba(222, 237, 245, 0.58);
  background: rgba(2, 8, 14, 0.24);
  font-size: 12px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  backdrop-filter: blur(5px);
}

.video-workbench .lab-link:hover,
.video-workbench .lab-link:focus-visible {
  color: rgba(245, 251, 255, 0.92);
  border-color: rgba(38, 217, 255, 0.36);
  background: rgba(38, 217, 255, 0.12);
}

.layout-switcher {
  position: static;
  z-index: 46;
  flex-direction: row;
  gap: 4px;
  min-height: 32px;
  padding: 3px;
  border-color: rgba(185, 232, 255, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(2, 8, 14, 0.12);
  box-shadow: none;
  backdrop-filter: blur(3px) saturate(1.04);
  transform: none;
}

.layout-switcher button {
  width: 28px;
  height: 26px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 7px;
  color: var(--workbench-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.layout-switcher button:hover,
.layout-switcher button:focus-visible,
.layout-switcher button.is-active {
  color: #06131b;
  border-color: rgba(38, 217, 255, 0.72);
  background: linear-gradient(180deg, rgba(71, 225, 255, 0.95), rgba(34, 167, 220, 0.84));
  box-shadow: 0 0 18px rgba(38, 217, 255, 0.2);
}

.scene-rail {
  position: fixed;
  top: 29px;
  right: 34px;
  z-index: 52;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--workbench-line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(4, 10, 16, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px) saturate(1.08);
}

.scene-rail::before,
.scene-rail button::before {
  display: none;
}

.scene-rail button {
  min-width: 74px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--workbench-text);
  background: transparent;
  font-size: 15px;
  font-weight: 760;
  text-align: center;
}

.scene-rail button:hover,
.scene-rail button:focus-visible,
.scene-rail button.is-active {
  color: var(--workbench-text);
  border-color: rgba(38, 217, 255, 0.34);
  background: rgba(38, 217, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(38, 217, 255, 0.16);
  transform: none;
}

.command-panel,
.timeline-panel,
.hero-panel,
.flow-rail,
.flow-strip article {
  border: 1px solid var(--workbench-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(4, 12, 20, 0.1), rgba(4, 12, 20, 0.03));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px) saturate(1.08);
}

.command-panel,
.timeline-panel {
  padding: 22px;
}

.hero-panel,
.flow-rail,
.flow-strip {
  display: none;
}

.video-workbench:not([data-active-scene="upload"]):not([data-active-scene="failed"]) .delivery-form {
  display: none;
}

.video-workbench:not([data-active-scene="upload"]):not([data-active-scene="failed"]) .mode-switcher,
.video-workbench:not([data-active-scene="upload"]):not([data-active-scene="failed"]) .trust-strip,
.video-workbench:not([data-active-scene="upload"]):not([data-active-scene="failed"]) .beginner-panel {
  display: none;
}

.video-workbench .eyebrow {
  color: var(--workbench-cyan);
  letter-spacing: 0.12em;
}

.command-panel h1 {
  font-size: 24px;
}

.video-workbench .generate-button,
.video-workbench .download-button {
  border-color: rgba(38, 217, 255, 0.82);
  color: var(--workbench-text);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.7), rgba(23, 126, 177, 0.5));
  box-shadow: 0 0 28px rgba(38, 217, 255, 0.2);
}

.video-workbench .download-button.is-disabled {
  color: var(--workbench-muted);
  border-color: rgba(127, 219, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.video-workbench .report-button {
  margin-top: 10px;
  color: rgba(248, 252, 255, 0.82);
  border-color: rgba(220, 235, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.delivery-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.delivery-actions .download-button {
  margin-top: 0;
}

.compact-delivery-list {
  display: none;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.compact-delivery-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  border-bottom: 1px solid rgba(127, 219, 255, 0.14);
}

.compact-delivery-list span,
.compact-delivery-list strong {
  color: var(--workbench-text);
  font-size: 15px;
  font-weight: 720;
}

.video-workbench.layout-a {
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.85fr);
  grid-template-rows: 84px minmax(0, 1fr) 76px;
}

.layout-a .command-panel {
  grid-column: 1;
  grid-row: 2;
  width: auto;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.layout-a .timeline-panel {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.layout-a .flow-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-strip article {
  min-height: 76px;
  padding: 17px;
  border-radius: 12px;
}

.flow-strip strong {
  display: block;
  color: var(--workbench-text);
  font-size: 16px;
}

.flow-strip span {
  display: block;
  margin-top: 4px;
  color: var(--workbench-muted);
  font-size: 13px;
}

.layout-a .delivery-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.layout-a .delivery-list li {
  min-width: 0;
  flex: initial;
}

.video-workbench.layout-b {
  display: block;
}

.layout-b .workbench-topbar {
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 45;
}

.layout-b .hero-panel {
  position: fixed;
  top: 128px;
  left: 28px;
  z-index: 20;
  display: block;
  width: min(330px, 27vw);
  padding: 20px 22px;
}

.layout-b .success-mark {
  display: none;
}

.layout-b .hero-panel h2 {
  margin: 0;
  color: var(--workbench-text);
  font-size: 20px;
  line-height: 1.2;
}

.layout-b .hero-panel p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--workbench-muted);
  font-size: 13px;
  line-height: 1.55;
}

.layout-b .command-panel {
  position: fixed;
  top: 128px;
  right: 28px;
  z-index: 20;
  width: min(340px, 25vw);
  max-height: calc(100vh - 176px);
  overflow: auto;
}

.layout-b .timeline-panel {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 18;
  width: min(664px, 46vw);
  max-height: min(356px, 46vh);
  padding-bottom: 58px;
  overflow: auto;
  transform: translateX(-50%);
}

.layout-b .report-strip {
  display: none;
}

.layout-b .report-strip div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(220, 244, 255, 0.14);
  border-radius: 0;
  background: transparent;
}

.layout-b .delivery-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  overflow: visible;
}

.layout-b .delivery-list li {
  min-width: 0;
  flex: initial;
}

.video-workbench.layout-c {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.64fr);
  grid-template-rows: 84px minmax(0, 1fr);
  gap: 34px;
  overflow: hidden;
}

.video-workbench.layout-c .scene-rail {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.video-workbench.layout-c .scene-rail button {
  min-width: 74px;
  min-height: 44px;
  padding: 0 13px;
}

.layout-c .hero-panel {
  position: absolute;
  left: 28px;
  bottom: 0;
  z-index: 16;
  display: block;
  width: min(820px, calc(100vw - 580px));
  margin-bottom: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.success-mark {
  display: none;
  width: 88px;
  height: 88px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(93, 227, 154, 0.5);
  border-radius: 50%;
  color: var(--workbench-green);
  font-size: 46px;
  box-shadow: 0 0 50px rgba(93, 227, 154, 0.24);
}

.layout-c[data-active-scene="success"] .success-mark {
  display: grid;
}

.layout-c .hero-panel h2 {
  margin: 0;
  max-width: none;
  color: var(--workbench-text);
  font-size: clamp(48px, 5.4vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 6px 48px rgba(0, 0, 0, 0.52);
}

.layout-c .hero-panel p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(238, 248, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.layout-c .command-panel {
  position: absolute;
  top: 98px;
  right: 28px;
  bottom: auto;
  z-index: 22;
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  align-self: stretch;
  width: min(452px, calc(100vw - 56px));
  height: min(660px, calc(100vh - 171px));
  min-height: 0;
  max-height: none;
  margin-top: 25px;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.layout-c .scene-copy {
  margin-bottom: 16px;
}

.layout-c .upload-grid {
  gap: 10px;
}

.layout-c .workbench-form-row {
  gap: 14px 16px;
  margin-top: 14px;
}

.layout-c .download-button,
.layout-c .generate-button {
  margin-top: auto;
}

.layout-c .delivery-actions {
  margin-top: auto;
}

.layout-c .delivery-actions .download-button {
  margin-top: 0;
}

.layout-c[data-active-scene="success"] .compact-delivery-list {
  display: grid;
}

.layout-c .timeline-panel,
.layout-c .flow-rail,
.layout-c .flow-strip {
  display: none;
}

body[data-workbench-layout="c"] .video-vignette {
  background:
    radial-gradient(circle at 50% 46%, rgba(8, 9, 10, 0.08), rgba(8, 9, 10, 0.42) 58%, rgba(8, 9, 10, 0.68)),
    linear-gradient(180deg, rgba(8, 9, 10, 0.42), rgba(8, 9, 10, 0.18) 42%, rgba(8, 9, 10, 0.68));
}

@media (min-width: 981px) {
  body[data-workbench-layout="c"] {
    overflow: hidden;
  }

  .video-workbench.layout-a .brand-stack,
  .video-workbench.layout-a .layout-switcher {
    transform: translateY(20px);
  }

  .video-workbench.layout-c .brand-stack,
  .video-workbench.layout-c .layout-switcher {
    transform: translateY(10px);
  }
}

.video-workbench.layout-d {
  display: block;
}

.layout-d .workbench-topbar {
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 45;
}

.layout-d .flow-rail {
  position: fixed;
  top: 140px;
  left: 28px;
  z-index: 20;
  display: block;
  width: 220px;
  padding: 18px;
}

.flow-kicker {
  margin-bottom: 14px;
  color: var(--workbench-cyan);
  font-size: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0 10px 14px;
  border-left: 1px solid rgba(228, 246, 255, 0.2);
  color: rgba(245, 251, 255, 0.68);
}

.flow-step.is-current {
  border-left-color: var(--workbench-cyan);
  color: var(--workbench-text);
}

.flow-step strong {
  color: var(--workbench-faint);
  font-size: 12px;
  font-weight: 500;
}

.flow-step.is-current strong {
  color: var(--workbench-cyan);
}

.layout-d .command-panel {
  position: fixed;
  top: 140px;
  right: 28px;
  z-index: 20;
  width: min(390px, 30vw);
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.layout-d .timeline-panel {
  position: fixed;
  right: min(458px, 33vw);
  bottom: 48px;
  left: min(288px, 21vw);
  z-index: 18;
  width: auto;
  max-height: 272px;
  padding-bottom: 58px;
  overflow: auto;
}

.layout-d .delivery-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  overflow: visible;
}

.layout-d .delivery-list li {
  min-width: 0;
  min-height: 48px;
  flex: initial;
  grid-template-columns: 88px minmax(0, 1fr) 72px;
  grid-template-rows: auto;
}

.layout-d .delivery-list span {
  grid-row: auto;
}

.layout-d .delivery-list em {
  justify-self: end;
}

@media (max-width: 980px) {
  .video-workbench,
  .video-workbench.layout-a,
  .video-workbench.layout-b,
  .video-workbench.layout-c,
  .video-workbench.layout-d {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px;
    gap: 12px;
    overflow: visible;
  }

  .video-workbench.layout-c {
    position: static;
    height: auto;
  }

  .workbench-topbar,
  .layout-b .workbench-topbar,
  .layout-d .workbench-topbar,
  .scene-rail,
  .video-workbench .topnav,
  .video-workbench .lab-link,
  .layout-b .hero-panel,
  .layout-b .command-panel,
  .layout-b .timeline-panel,
  .layout-c .command-panel,
  .layout-d .flow-rail,
  .layout-d .command-panel,
  .layout-d .timeline-panel {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    transform: none;
    writing-mode: horizontal-tb;
  }

  .workbench-topbar {
    order: 1;
  }

  .scene-rail {
    order: 2;
    max-width: 100%;
    overflow-x: auto;
  }

  .hero-panel,
  .flow-rail,
  .flow-strip {
    display: none !important;
  }

  .layout-c .hero-panel {
    position: static;
    width: auto;
    order: 3;
    display: block !important;
    margin-bottom: 0;
    padding: 0;
  }

  .layout-c .hero-panel h2 {
    font-size: 44px;
    white-space: normal;
  }

  .command-panel,
  .layout-c .command-panel {
    order: 4;
    height: auto;
    min-height: 0;
    margin-top: 0;
  }

  .timeline-panel {
    order: 5;
  }

  .layout-c .timeline-panel {
    display: none !important;
  }

  .layout-switcher {
    display: none;
  }

  .background-video {
    filter: saturate(1.12) contrast(1.08) brightness(1.04);
  }

  body[data-workbench-layout="c"] .video-vignette {
    background:
      radial-gradient(circle at 50% 46%, rgba(8, 9, 10, 0.04), rgba(8, 9, 10, 0.32) 62%, rgba(8, 9, 10, 0.56)),
      linear-gradient(180deg, rgba(8, 9, 10, 0.36), rgba(8, 9, 10, 0.18) 42%, rgba(8, 9, 10, 0.58));
  }

  .video-workbench .topnav {
    align-self: stretch;
    flex-wrap: wrap;
  }

  .video-workbench .brand {
    font-size: 32px;
  }
}

/* ── MiMo ASR Section ─────────────────────────────────────────── */

.asr-section {
  width: 884px;
  margin: 32px auto 0;
  padding: 32px 40px 36px;
  border: 1px solid #d9d9dc;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 248, 250, 0.88) 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.asr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.asr-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.asr-icon {
  font-size: 28px;
}

.asr-badge {
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
  letter-spacing: 0.02em;
}

.asr-config-trigger {
  min-height: 34px;
  cursor: pointer;
}

.asr-config-trigger:hover,
.asr-config-trigger:focus-visible {
  box-shadow: 0 10px 22px rgba(238, 9, 121, 0.22);
  outline: none;
}

.asr-desc {
  margin: 0 0 24px;
  color: #52525b;
  font-size: 15px;
  line-height: 1.5;
}

.asr-form {
  margin: 0;
}

.asr-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.asr-upload-zone {
  min-height: 150px;
}

.asr-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.asr-select-label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 560;
  color: #19191c;
}

.asr-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfd4;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #111113;
  outline: none;
  cursor: pointer;
}

.asr-key-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfd4;
  border-radius: 6px;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.asr-key-input::placeholder {
  color: #96979d;
}

.asr-select:focus,
.asr-key-input:focus {
  border-color: #0a0a0b;
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.08);
}

.asr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
  cursor: pointer;
}

.asr-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111113;
}

.asr-button {
  width: 100%;
  height: 44px;
  font-size: 18px;
}

.asr-config-status {
  min-height: 20px;
  margin: 0;
  color: #696970;
  font-size: 13px;
  line-height: 1.45;
}

.asr-config-status.is-ready {
  color: #235b28;
}

.asr-config-status.is-missing {
  color: #7b1d1d;
}

.asr-config-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 12, 0.28);
}

.asr-config-modal[hidden] {
  display: none;
}

.asr-config-dialog {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid #d8d8dd;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.asr-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.asr-config-head h2 {
  margin: 0;
  color: #111113;
  font-size: 22px;
  line-height: 1.2;
}

.asr-config-close {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #686970;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.asr-config-close:hover,
.asr-config-close:focus-visible {
  border-color: #d4d4d8;
  color: #111113;
  background: #f8f8f9;
  outline: none;
}

.asr-config-copy {
  margin: 0 0 18px;
  color: #5a5b62;
  font-size: 14px;
  line-height: 1.55;
}

.asr-config-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #686970;
  font-size: 13px;
  line-height: 1.45;
}

.asr-config-message.is-error {
  color: #7b1d1d;
}

.asr-config-message.is-ok {
  color: #235b28;
}

.asr-config-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.asr-secondary-button,
.asr-test-button {
  width: 100%;
  height: 42px;
  font-size: 16px;
}

.asr-secondary-button {
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  color: #2f3035;
  background: #ffffff;
}

.asr-secondary-button:hover,
.asr-secondary-button:focus-visible {
  border-color: #111113;
  outline: none;
}

/* ── ASR Result ────────────────────────────────────────────────── */

.asr-result {
  margin-top: 24px;
  border: 1px solid #d9d9dc;
  border-radius: 8px;
  overflow: hidden;
}

.asr-result-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8f8f9 0%, #f3f3f4 100%);
  border-bottom: 1px solid #e5e5e7;
  font-size: 14px;
  color: #27272b;
}

.asr-result-meta span {
  font-weight: 720;
}

.asr-result-meta small {
  color: #71717a;
}

.asr-result-text {
  padding: 16px 20px;
  background: #fff;
}

.asr-result-text pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: #18181b;
}

.asr-result-srt {
  padding: 12px 16px 16px;
  border-top: 1px solid #e5e5e7;
  background: #fafafa;
}

.asr-result-srt details {
  margin: 0;
}

.asr-result-srt summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #3f3f46;
  padding: 4px 0;
}

.asr-result-srt summary:hover {
  color: #18181b;
}

.asr-result-srt pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #27272b;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 6px;
}

.asr-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.5;
}

.asr-result.asr-error {
  border-color: #f1c4c4;
  padding: 16px 20px;
  background: #fff3f3;
  color: #7b1d1d;
}

.asr-result.asr-error strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.asr-result.asr-error span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.asr-result.asr-error small {
  display: block;
  margin-top: 4px;
  opacity: 0.7;
  font-size: 13px;
}

.asr-config-note {
  margin-bottom: 20px;
}

/* ── Align Section ─────────────────────────────────────────────── */

.align-section {
  margin-top: 36px;
}

.align-title {
  max-width: 980px;
  margin: 0 auto 20px;
  padding: 0 24px;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.2;
}

/* ── ASR Responsive ────────────────────────────────────────────── */

@media (max-width: 920px) {
  .asr-section {
    width: calc(100% - 32px);
    padding: 24px 20px 28px;
  }

  .asr-upload-row {
    grid-template-columns: 1fr;
  }

  .asr-header h2 {
    font-size: 20px;
  }
}

/* ASR dynamic workbench */
.asr-workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(430px, 560px);
  grid-template-rows: 84px minmax(0, 1fr) auto;
  gap: 24px 34px;
  min-height: 100vh;
  padding: 28px;
  color: var(--workbench-text);
  background: transparent;
  overflow: hidden;
}

.asr-background-video {
  filter: saturate(1.05) contrast(1.1) brightness(0.92);
}

.asr-video-vignette {
  background:
    radial-gradient(circle at var(--focus-x, 55%) var(--focus-y, 34%), rgba(38, 217, 255, 0.08), transparent 28rem),
    linear-gradient(90deg, rgba(1, 5, 10, 0.42), rgba(1, 5, 10, 0.08) 46%, rgba(1, 5, 10, 0.36)),
    linear-gradient(180deg, rgba(1, 5, 10, 0.34), transparent 36%, rgba(1, 5, 10, 0.58));
}

.asr-workbench .workbench-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 0;
}

.asr-workbench .brand {
  color: var(--workbench-text);
  font-size: clamp(34px, 3vw, 50px);
  line-height: 0.92;
  font-weight: 860;
  letter-spacing: 0;
  text-shadow: 0 6px 42px rgba(0, 0, 0, 0.42);
}

.asr-workbench .topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.asr-home-link,
.lab-state-pill,
.asr-workbench .asr-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(185, 232, 255, 0.22);
  border-radius: 8px;
  color: rgba(245, 251, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(4, 10, 16, 0.06);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  backdrop-filter: blur(2px) saturate(1.05);
}

.asr-home-link:hover,
.asr-home-link:focus-visible,
.asr-workbench .asr-config-trigger:hover,
.asr-workbench .asr-config-trigger:focus-visible {
  color: var(--workbench-text);
  border-color: rgba(38, 217, 255, 0.42);
  background: rgba(38, 217, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(38, 217, 255, 0.14);
  outline: none;
}

.asr-hero-panel {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 740px;
  padding: 0 0 70px;
}

.asr-hero-panel .lab-kicker,
.asr-workbench .eyebrow {
  margin: 0 0 10px;
  color: var(--workbench-cyan);
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.asr-hero-panel h1 {
  margin: 0;
  max-width: 720px;
  color: var(--workbench-text);
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.92;
  font-weight: 880;
  letter-spacing: 0;
  text-shadow: 0 8px 54px rgba(0, 0, 0, 0.56);
}

.asr-hero-panel > p {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(238, 248, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
}

.asr-lab-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.asr-lab-facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(185, 232, 255, 0.18);
  border-radius: 8px;
  color: rgba(245, 251, 255, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 680;
}

.asr-workbench .asr-section {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  width: auto;
  max-height: calc(100vh - 188px);
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid rgba(185, 232, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(4, 10, 16, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px) saturate(1.08);
}

.asr-workbench .asr-header {
  align-items: flex-start;
  margin-bottom: 12px;
}

.asr-workbench .asr-header h2 {
  margin: 0;
  color: var(--workbench-text);
  font-size: 26px;
  line-height: 1.15;
}

.asr-workbench .asr-desc {
  margin: 0 0 22px;
  color: var(--workbench-muted);
  font-size: 15px;
}

.asr-workbench .asr-upload-row {
  grid-template-columns: 1fr;
  gap: 16px;
}

.asr-workbench .asr-upload-zone {
  min-height: 186px;
  border-color: rgba(220, 244, 255, 0.54);
  color: var(--workbench-text);
  background: rgba(255, 255, 255, 0.035);
}

.asr-workbench .asr-upload-zone:hover,
.asr-workbench .asr-upload-zone:focus-within,
.asr-workbench .asr-upload-zone.is-dragging {
  border-color: rgba(38, 217, 255, 0.74);
  background: rgba(38, 217, 255, 0.08);
}

.asr-workbench .upload-zone.has-file,
.asr-workbench .upload-zone.has-submitted {
  border-color: rgba(38, 217, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(38, 217, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(4, 10, 16, 0.08);
}

.asr-workbench .upload-zone.has-file::before,
.asr-workbench .upload-zone.has-submitted::before {
  color: #06131b;
  background: rgba(38, 217, 255, 0.92);
}

.asr-workbench .file-glyph {
  color: var(--workbench-text);
}

.asr-workbench .upload-zone strong {
  color: var(--workbench-text);
}

.asr-workbench .upload-zone small,
.asr-workbench .file-name {
  color: var(--workbench-muted);
}

.asr-workbench .asr-controls {
  gap: 14px;
  justify-content: flex-start;
}

.asr-workbench .asr-select-label,
.asr-workbench .asr-checkbox-label {
  color: rgba(245, 251, 255, 0.9);
}

.asr-workbench .asr-select,
.asr-workbench .asr-key-input {
  height: 46px;
  border-color: rgba(220, 244, 255, 0.28);
  border-radius: 8px;
  color: var(--workbench-text);
  background: rgba(255, 255, 255, 0.055);
}

.asr-workbench .asr-custom-select,
.asr-workbench .asr-custom-select .custom-select-trigger {
  height: 46px;
}

.asr-workbench .asr-select option {
  color: #111113;
  background: #ffffff;
}

.asr-workbench .asr-key-input::placeholder {
  color: rgba(222, 237, 245, 0.52);
}

.asr-workbench .asr-select:focus,
.asr-workbench .asr-key-input:focus {
  border-color: rgba(38, 217, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(38, 217, 255, 0.12);
}

.asr-workbench .asr-checkbox-label input[type="checkbox"] {
  accent-color: #26d9ff;
}

.asr-workbench .generate-button,
.asr-workbench .download-button {
  border-color: rgba(38, 217, 255, 0.82);
  color: var(--workbench-text);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.7), rgba(23, 126, 177, 0.5));
  box-shadow: 0 0 28px rgba(38, 217, 255, 0.2);
}

.asr-workbench .asr-config-status {
  color: var(--workbench-muted);
}

.asr-workbench .asr-config-status.is-ready {
  color: rgba(93, 227, 154, 0.96);
}

.asr-workbench .asr-config-status.is-missing {
  color: rgba(255, 181, 71, 0.96);
}

.asr-lab-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.asr-lab-strip article {
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 232, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(4, 10, 16, 0.06);
  backdrop-filter: blur(2px) saturate(1.05);
}

.asr-lab-strip strong {
  display: block;
  color: var(--workbench-text);
  font-size: 15px;
}

.asr-lab-strip span {
  display: block;
  margin-top: 5px;
  color: var(--workbench-muted);
  font-size: 13px;
  line-height: 1.45;
}

.asr-workbench .asr-result {
  margin-top: 22px;
  border-color: rgba(185, 232, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.asr-workbench .asr-result-meta {
  border-bottom-color: rgba(185, 232, 255, 0.16);
  color: var(--workbench-text);
  background: rgba(255, 255, 255, 0.055);
}

.asr-workbench .asr-result-meta small {
  color: var(--workbench-muted);
}

.asr-workbench .asr-result-text,
.asr-workbench .asr-result-srt {
  background: transparent;
}

.asr-workbench .asr-result-text pre,
.asr-workbench .asr-result-srt pre {
  color: var(--workbench-text);
}

.asr-workbench .asr-result-srt {
  border-top-color: rgba(185, 232, 255, 0.16);
}

.asr-workbench .asr-result-srt summary {
  color: rgba(245, 251, 255, 0.86);
}

.asr-workbench .asr-result-srt pre {
  border-color: rgba(185, 232, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.asr-workbench .asr-note {
  color: var(--workbench-muted);
}

.asr-workbench .asr-result.asr-error {
  border-color: rgba(255, 181, 71, 0.42);
  color: rgba(255, 218, 166, 0.96);
  background: rgba(255, 181, 71, 0.08);
}

.asr-workbench .asr-config-note {
  margin-bottom: 18px;
}

.asr-workbench .asr-config-modal {
  z-index: 120;
  background: rgba(1, 5, 10, 0.58);
  backdrop-filter: blur(4px);
}

.asr-workbench .asr-config-dialog {
  border-color: rgba(185, 232, 255, 0.28);
  color: var(--workbench-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.026)),
    rgba(4, 10, 16, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(7px) saturate(1.08);
}

.asr-workbench .asr-config-head h2 {
  color: var(--workbench-text);
}

.asr-workbench .asr-config-close {
  color: var(--workbench-muted);
}

.asr-workbench .asr-config-close:hover,
.asr-workbench .asr-config-close:focus-visible {
  border-color: rgba(185, 232, 255, 0.26);
  color: var(--workbench-text);
  background: rgba(255, 255, 255, 0.06);
}

.asr-workbench .asr-config-copy,
.asr-workbench .asr-config-message {
  color: var(--workbench-muted);
}

.asr-workbench .asr-config-message.is-error {
  color: rgba(255, 181, 71, 0.96);
}

.asr-workbench .asr-config-message.is-ok {
  color: rgba(93, 227, 154, 0.96);
}

.asr-workbench .asr-secondary-button {
  border-color: rgba(185, 232, 255, 0.28);
  border-radius: 8px;
  color: var(--workbench-text);
  background: rgba(255, 255, 255, 0.035);
}

.asr-workbench .asr-secondary-button:hover,
.asr-workbench .asr-secondary-button:focus-visible {
  border-color: rgba(38, 217, 255, 0.42);
  background: rgba(38, 217, 255, 0.1);
}

@media (max-width: 980px) {
  .asr-workbench {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px;
    gap: 14px;
    overflow: visible;
  }

  .asr-workbench .workbench-topbar {
    min-height: 0;
    flex-direction: column;
    gap: 12px;
  }

  .asr-workbench .topnav {
    align-self: stretch;
    justify-content: space-between;
    margin-top: 0;
  }

  .asr-workbench .brand {
    font-size: 32px;
  }

  .asr-hero-panel {
    max-width: none;
    padding: 16px 0 0;
  }

  .asr-hero-panel h1 {
    font-size: 46px;
  }

  .asr-hero-panel > p {
    margin-top: 14px;
    font-size: 16px;
  }

  .asr-workbench .asr-section {
    width: auto;
    max-height: none;
    padding: 20px;
  }

  .asr-lab-strip {
    grid-template-columns: 1fr;
  }
}

/* B-roll report route */
.broll-report-workbench {
  display: block;
  min-height: 100vh;
  padding: 28px;
  overflow: hidden;
}

.broll-report-workbench .workbench-topbar {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.broll-report-workbench .topnav {
  width: auto;
  min-width: 0;
  padding: 7px;
}

.broll-report-panel {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 138px);
  margin: 34px auto 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(185, 232, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(19, 25, 37, 0.38), rgba(10, 14, 22, 0.26)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(1.12);
}

.broll-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.broll-report-head h1 {
  margin: 2px 0 8px;
  color: var(--workbench-text);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
}

.broll-report-head p {
  max-width: 760px;
  margin: 0;
  color: var(--workbench-muted);
  font-size: 16px;
  line-height: 1.65;
}

.broll-report-head > span {
  color: var(--workbench-muted);
  font-size: 13px;
  white-space: nowrap;
}

.broll-report-strip {
  margin-top: 20px;
}

.broll-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.broll-context-grid > div {
  padding: 14px;
  border: 1px solid rgba(185, 232, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.broll-context-grid span,
.broll-context-grid p {
  color: var(--workbench-muted);
}

.broll-context-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.broll-context-grid strong {
  color: var(--workbench-text);
  font-size: 17px;
}

.broll-context-grid p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.broll-table-wrap {
  max-height: min(42vh, 410px);
  margin-top: 16px;
  overflow: auto;
  scrollbar-width: none;
}

.broll-table-wrap::-webkit-scrollbar {
  display: none;
}

.broll-execution-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: var(--workbench-text);
  font-size: 13px;
}

.broll-execution-table th,
.broll-execution-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(185, 232, 255, 0.16);
  text-align: left;
  vertical-align: top;
}

.broll-execution-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: rgba(245, 251, 255, 0.72);
  background: rgba(8, 12, 18, 0.82);
}

.broll-execution-table p {
  min-width: 180px;
  max-width: 260px;
  margin: 0;
  color: var(--workbench-text);
  line-height: 1.45;
}

.broll-execution-table td {
  color: rgba(236, 246, 251, 0.82);
}

.broll-execution-table tr.is-skipped td {
  color: rgba(222, 237, 245, 0.55);
}

.broll-execution-table .decision-pill {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(9, 18, 22, 0.92);
  background: rgba(38, 217, 255, 0.82);
  font-weight: 800;
}

.broll-execution-table tr.is-skipped .decision-pill {
  color: rgba(230, 238, 242, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .broll-report-workbench {
    padding: 18px;
    width: 100%;
    overflow-x: hidden;
  }

  .broll-report-workbench .workbench-topbar {
    align-items: flex-start;
  }

  .broll-report-workbench .brand {
    font-size: clamp(32px, 12vw, 52px);
  }

  .broll-report-nav {
    display: none;
  }

  .broll-report-panel {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 128px);
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    box-sizing: border-box;
    min-width: 0;
  }

  .broll-report-head {
    display: grid;
  }

  .broll-report-head h1 {
    font-size: clamp(30px, 10vw, 46px);
  }

  .broll-report-strip,
  .broll-context-grid {
    grid-template-columns: 1fr;
  }

  .broll-table-wrap {
    max-width: 100%;
    max-height: 40vh;
    overflow-x: hidden;
  }

  .broll-execution-table,
  .broll-execution-table tbody,
  .broll-execution-table tr,
  .broll-execution-table td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .broll-execution-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .broll-execution-table thead {
    display: none;
  }

  .broll-execution-table tr {
    padding: 12px;
    border: 1px solid rgba(185, 232, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
  }

  .broll-execution-table tr + tr {
    margin-top: 10px;
  }

  .broll-execution-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(185, 232, 255, 0.1);
    word-break: break-word;
  }

  .broll-execution-table td:last-child {
    border-bottom: 0;
  }

  .broll-execution-table td::before {
    color: rgba(245, 251, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
  }

  .broll-execution-table td:nth-child(1)::before { content: "序号"; }
  .broll-execution-table td:nth-child(2)::before { content: "时间码"; }
  .broll-execution-table td:nth-child(3)::before { content: "决策"; }
  .broll-execution-table td:nth-child(4)::before { content: "优先级"; }
  .broll-execution-table td:nth-child(5)::before { content: "字幕"; }
  .broll-execution-table td:nth-child(6)::before { content: "类型"; }
  .broll-execution-table td:nth-child(7)::before { content: "搜索词"; }
  .broll-execution-table td:nth-child(8)::before { content: "排除词"; }
  .broll-execution-table td:nth-child(9)::before { content: "下一步"; }
  .broll-execution-table td:nth-child(10)::before { content: "原因"; }

  .broll-execution-table p {
    min-width: 0;
    max-width: none;
  }
}
