:root {
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #152b36;
  --muted: #6c7d86;
  --line: #e4e9ec;
  --accent: #156e60;
  --accent-soft: #e9f4ef;
  --danger: #b34545;
  --shadow: 0 2px 8px #162e3d04,0 8px 26px #162e3d03;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,select {
  font: inherit;
}
button,select {
  cursor: pointer;
}
button:disabled,select:disabled {
  cursor: default;
  opacity: .45;
}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {
  outline: 3px solid #5ba991;
  outline-offset: 3px;
}
button {
  transition: background .15s,transform .15s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none!important;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 max(32px,calc((100vw - 1376px)/2));
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.4px;
}
.brand-dot {
  color: var(--accent);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 550;
  color: #425460;
}
.slash {
  color: #bdc8ce;
}
.environment {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.small-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: none;
  background: currentColor;
  border-radius: 50%;
}
main {
  max-width: 1376px;
  margin: auto;
  padding: 40px 32px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 10px;
}
h1 {
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -1.25px;
  margin: 0 0 10px;
}
.intro {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #d8eae2;
}
.status-badge.paused,.status-badge.starting {
  background: #fcf4e5;
  color: #996c20;
  border-color: #f0e5cf;
}
.status-badge.failed {
  background: #fbeded;
  color: var(--danger);
  border-color: #f1dada;
}
.status-badge.completed {
  background: #edf1f5;
  color: #576c7a;
  border-color: #dce4ea;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0,1fr) 354px;
  gap: 22px;
  align-items: start;
}
.preview-column,.control-column {
  display: grid;
  gap: 20px;
}
.mixer-card {
  min-width: 0;
}
#source-mixer {
  width: 100%;
  height: 300px;
  box-shadow: var(--shadow);
  border-radius: 12px;
}
.mixer-caption {
  margin: 7px 3px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
}
h2 {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -.15px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.tag {
  font-size: 10px;
  color: var(--muted);
  background: #f5f7f9;
  padding: 5px 8px;
  border: 1px solid #ebeff2;
  border-radius: 5px;
  white-space: nowrap;
}
.video-shell {
  position: relative;
  aspect-ratio: 16/9;
  background: #10232d;
  margin: 0 12px;
  border-radius: 7px;
  overflow: hidden;
}
.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-label {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #d6e8e3;
  font-size: 9px;
  letter-spacing: .8px;
  background: #10282bd9;
  padding: 6px 8px;
  border: 1px solid #7eaaa333;
  border-radius: 4px;
  pointer-events: none;
}
.preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #cad8de;
  gap: 12px;
  background: radial-gradient(ellipse at 50% 45%,#1c3845,#10232d 70%);
}
.preview-empty strong {
  font-weight: 500;
  font-size: 15px;
}
.preview-empty>span {
  font-size: 11px;
  color: #849ba7;
  text-align: center;
  padding: 0 20px;
}
.wave-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 45px;
  margin-bottom: 3px;
}
.wave-icon i {
  width: 4px;
  border-radius: 2px;
  background: #4e8a80;
  height: 15px;
  animation: wave 1.7s ease-in-out infinite;
}
.wave-icon i:nth-child(2) {
  height: 31px;
  animation-delay: .2s;
}
.wave-icon i:nth-child(3) {
  height: 43px;
  animation-delay: .4s;
}
.wave-icon i:nth-child(4) {
  height: 25px;
  animation-delay: .6s;
}
.wave-icon i:nth-child(5) {
  height: 12px;
  animation-delay: .8s;
}
@keyframes wave {
  50% {
    transform: scaleY(.45);
    opacity: .6;
  }
}
.preview-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 20px 22px 16px;
}
.select-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.select-label:first-child {
  flex: 1;
}
.select-label select {
  width: 100%;
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 6px;
  padding: 9px 26px 9px 10px;
  font-size: 11px;
  color: var(--ink);
  height: 36px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 12px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 550;
}
.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #10574c;
}
.secondary {
  background: #fff;
  border-color: #dce4e8;
  color: var(--ink);
}
.secondary:hover {
  background: #f6f8f9;
}
.subtle {
  background: #f5f7f9;
  border-color: #e7ecef;
  color: #5b707b;
  font-size: 11px;
  min-height: 36px;
}
.subtle:hover {
  background: #edf2f4;
}
.listen-button {
  white-space: nowrap;
}
.preview-details {
  border-top: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;
  font-size: 10px;
  color: var(--muted);
}
.preview-details>span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-details .small-dot {
  color: var(--accent);
  width: 5px;
  height: 5px;
}
.card-footnote {
  font-size: 10px;
  line-height: 1.7;
  color: #89979f;
  margin: 0;
  padding: 10px 22px 18px;
}
.source-card .card-heading {
  min-height: 58px;
}
.duration-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 22px;
  margin: 5px 0 13px;
}
.large-time {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 4px;
  border-radius: 3px;
  background: #edf2f3;
  margin: 0 22px 22px;
  overflow: hidden;
}
.progress-track>div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .3s;
}
.source-facts {
  margin: 0;
  padding: 0 22px;
  display: grid;
  gap: 13px;
  font-size: 10px;
}
.source-facts>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.source-facts dt {
  color: var(--muted);
}
.source-facts dd {
  margin: 0;
  font-weight: 500;
}
.source-buttons {
  display: flex;
  gap: 8px;
  margin: 23px 22px 0;
}
.source-buttons .primary {
  flex: 1;
}
.icon-button {
  min-width: 40px;
}
.source-card .card-footnote {
  padding-top: 13px;
}
.network-card .card-heading {
  min-height: 58px;
}
.network-description {
  margin: 0 22px 15px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.network-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 22px;
}
.network-presets button {
  font-size: 11px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 5px;
  color: #607582;
}
.network-presets button.active {
  border-color: #a8cdbd;
  background: #f0f8f4;
  color: var(--accent);
  font-weight: 600;
}
.network-presets button[data-preset=disconnected].active {
  background: #fff1f1;
  border-color: #e6b8b8;
  color: var(--danger);
}
.network-presets button:hover:not(:disabled) {
  border-color: #a9bfb8;
}
.network-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 12px;
  padding: 20px 22px 16px;
}
.network-settings label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.input-unit {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 10px;
  background: #fafbfc;
  padding-right: 9px;
}
.input-unit input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 9px;
  color: #48616e;
  font-size: 11px;
}
.network-active {
  font-size: 10px;
  color: var(--accent);
  padding: 0 22px 4px;
}
.network-card .card-footnote {
  padding-top: 7px;
}
.outputs-section {
  margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 15px;
}
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.endpoint {
  padding: 18px;
}
.endpoint-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}
.endpoint-icon {
  background: #f0f4f6;
  border-radius: 6px;
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #708894;
  font-size: 10px;
  font-weight: 600;
}
h3 {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 600;
}
.endpoint-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.copy-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 6px;
  min-height: 39px;
  overflow: hidden;
}
.copy-field code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  padding: 10px;
  font-size: 10px;
  color: #5d7481;
}
.copy-button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  padding: 0 12px;
  font-weight: 550;
}
.copy-button:hover {
  background: #f0f8f4;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #99a6ae;
  font-size: 10px;
  padding: 28px 0 7px;
}
.footer-mark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #77918c;
}
.footer-mark span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #99a6ae;
  margin-left: 9px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 24px #162e3d25;
  background: #183a32;
  color: white;
  font-size: 12px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.error {
  background: #8c3939;
}
.error-banner {
  background: #fff0f0;
  border: 1px solid #edcccc;
  border-radius: 8px;
  color: #963b3b;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px;
  margin-bottom: 20px;
  max-height: 150px;
  overflow: auto;
}
@media(min-width:1500px) {
  main {
    padding-top: 48px;
  }
  .page-heading {
    margin-bottom: 36px;
  }
}
@media(max-width:1100px) {
  .workspace {
    grid-template-columns: minmax(0,1fr) 310px;
  }
  .card-heading {
    padding: 0 18px;
  }
  .preview-toolbar {
    gap: 9px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .listen-button span {
    display: none;
  }
  .outputs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .endpoint:last-child {
    grid-column: 1/-1;
  }
}
@media(max-width:760px) {
  .topbar {
    height: 66px;
    padding: 0 20px;
    gap: 24px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 11px;
  }
  .breadcrumb>span:first-child,.breadcrumb .slash,.environment {
    display: none;
  }
  main {
    padding: 28px 16px 16px;
  }
  h1 {
    font-size: 27px;
  }
  .intro {
    font-size: 12px;
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 22px;
  }
  .status-badge {
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .control-column {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .source-facts>div {
    flex-wrap: wrap;
    gap: 4px;
  }
  .network-presets,.network-settings {
    padding-left: 16px;
    padding-right: 16px;
  }
  .network-description {
    margin-left: 16px;
    margin-right: 16px;
  }
  .source-buttons {
    margin-left: 16px;
    margin-right: 16px;
  }
  .source-buttons .button {
    font-size: 10px;
    padding: 8px;
  }
  .outputs-grid {
    grid-template-columns: 1fr;
  }
  .endpoint:last-child {
    grid-column: auto;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .large-time {
    font-size: 27px;
  }
  .duration-line {
    padding-left: 16px;
    padding-right: 16px;
    flex-wrap: wrap;
    gap: 3px;
  }
  .duration-line .small {
    font-size: 9px;
  }
  .card-footnote {
    padding-left: 16px;
    padding-right: 16px;
  }
  .source-facts {
    padding-left: 16px;
    padding-right: 16px;
  }
  footer {
    font-size: 9px;
  }
  .footer-mark span {
    display: none;
  }
}
@media(max-width:450px) {
  .control-column {
    grid-template-columns: 1fr;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  .select-label:first-child {
    min-width: 145px;
  }
  .listen-button {
    padding: 9px;
  }
  .tag {
    font-size: 9px;
  }
  .card-heading {
    gap: 8px;
  }
  .preview-details {
    font-size: 9px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .status-badge {
    margin-top: 18px;
  }
  h1 {
    font-size: 25px;
    letter-spacing: -.8px;
  }
  .source-facts>div {
    flex-wrap: nowrap;
  }
  .source-buttons .button {
    font-size: 12px;
  }
  .duration-line {
    flex-wrap: nowrap;
  }
  .network-presets {
    grid-template-columns: repeat(4,1fr);
  }
  .network-presets button {
    font-size: 10px;
  }
  .network-settings {
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
  }
  .input-unit {
    padding-right: 5px;
    font-size: 8px;
  }
  .input-unit input {
    padding: 8px 5px;
  }
  .network-settings label {
    font-size: 9px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
}
