:root {
  --bg: #10151e;
  --panel: #19212d;
  --panel2: #1e2936;
  --line: #2d3949;
  --text: #edf3f8;
  --muted: #a2b1c2;
  --mint: #8ee2cc;
  --amber: #edc580;
  --red: #ffb0b8;
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
a {
  font: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 15px;
  color: var(--text);
  background: #243040;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover:not(:disabled) {
  background: #344354;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mint);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 18px;
  background: #141c27;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 48px;
  font-size: 21px;
  letter-spacing: -0.6px;
}
.brandmark {
  background: var(--mint);
  color: #112f2b;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand small {
  display: block;
  letter-spacing: 1.05px;
  font-size: 7.5px;
  color: var(--muted);
  margin-top: 3px;
}
.workspace {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.2px;
  margin: 0 10px 15px;
}
.workspace span {
  display: block;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  padding: 13px 14px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 9px;
}
.nav.active {
  color: var(--mint);
  background: #20372f;
}
.nav:hover {
  color: var(--text);
}
.rail-bottom {
  margin-top: auto;
  padding: 15px 9px 0;
}
.dotline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.rail-bottom p {
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0 20px;
}
.version {
  font-size: 10px;
  color: #8190a4;
}
.main {
  min-width: 0;
}
header {
  height: 115px;
  padding: 26px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
.header-badges {
  display: flex;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--mint);
  font-size: 11px;
  white-space: nowrap;
  background: #1b2a2c;
}
.warning {
  background: #302a20;
  color: var(--amber);
  border-color: #5c4d32;
}
.notice {
  padding: 10px 40px;
  font-size: 11px;
  background: #20261f;
  color: #d4d9b5;
  border-bottom: 1px solid #343d2c;
}
main {
  padding: 30px 40px 45px;
  max-width: 1700px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 9px 0 30px;
}
.hero h2 {
  font-size: 35px;
  line-height: 1.22;
  letter-spacing: -1.4px;
  margin-top: 10px;
}
.hero h2 span {
  color: var(--mint);
}
.hero p {
  font-size: 13px;
  max-width: 450px;
  margin-top: 14px;
  line-height: 1.8;
}
.pathcard {
  background: linear-gradient(135deg, #1e342f, #1b2634);
  border: 1px solid #354844;
  min-width: 345px;
  max-width: 410px;
  border-radius: 18px;
  padding: 32px 28px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.endpoint {
  display: grid;
  place-items: center;
  background: #2b3e41;
  border: 1px solid #526868;
  border-radius: 13px;
  width: 61px;
  height: 65px;
  font-size: 25px;
  color: var(--mint);
}
.endpoint small {
  font-size: 8px;
  color: #cad7d9;
  margin-top: -10px;
}
.path {
  display: grid;
  gap: 8px;
  text-align: center;
  font-size: 10px;
  min-width: 126px;
  color: var(--mint);
}
.path small {
  font-size: 9px;
  color: var(--muted);
}
.path i {
  border-top: 2px dashed #81c7b7;
}
.control-label {
  flex-basis: 100%;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 17px 18px;
  display: grid;
  gap: 10px;
}
.metrics small {
  color: var(--muted);
  font-size: 11px;
}
.metrics strong {
  font-size: 27px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -1px;
}
.metrics em {
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
}
.metrics span {
  font-size: 10px;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  border-radius: var(--radius);
}
.card-head {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
}
.number {
  font-size: 12px;
  color: var(--mint);
  background: #263c39;
  border-radius: 8px;
  padding: 9px;
}
.card p {
  font-size: 12px;
  margin-top: 4px;
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #c3ceda;
}
input {
  width: 100%;
  border: 1px solid #364557;
  border-radius: 8px;
  background: #131c27;
  color: var(--text);
  padding: 11px 12px;
  font-size: 13px;
  min-width: 0;
}
input::placeholder {
  color: #7f8fa4;
}
.primary {
  background: var(--mint);
  color: #12332c;
  border-color: var(--mint);
}
.primary:hover:not(:disabled) {
  background: #b4f1e0;
}
.secondary {
  background: #243442;
  color: #e3eef5;
  border-color: #425365;
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.inline-note {
  font-size: 11px;
  color: var(--muted);
  padding: 13px 14px;
  border-left: 2px solid #52776d;
  background: #1b2b2e;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
  min-height: 77px;
}
.tablecard {
  margin-top: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.section-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.subtle {
  font-size: 12px;
  background: transparent;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 8px;
  border-bottom: 1px solid #293443;
}
td:first-child {
  font-weight: 600;
}
.empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.tiny {
  color: var(--muted);
  font-size: 10px !important;
  line-height: 1.6;
  margin-top: 14px !important;
}
footer {
  padding: 18px 40px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.session-top p {
  font-size: 12px;
  margin-top: 7px;
}
.code {
  color: var(--text);
  background: var(--panel2);
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}
.stage-column {
  min-width: 0;
}
.stage {
  min-height: 385px;
  background: #0b1119;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.stage-placeholder {
  grid-column: 1/-1;
  align-self: center;
  text-align: center;
  color: var(--muted);
  padding: 50px 15px;
}
.stage-placeholder h3 {
  margin: 15px 0 10px;
  color: #d5e0eb;
}
.stage-placeholder p {
  font-size: 12px;
}
.empty-icon {
  font-size: 50px;
  color: #5a7c77;
}
.video-tile {
  position: relative;
  min-width: 0;
  background: #17212d;
  border-radius: 11px;
  overflow: hidden;
  min-height: 175px;
}
.video-tile video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #080e15;
}
.video-tile.pinned {
  grid-column: 1/-1;
}
.video-label {
  position: absolute;
  bottom: 9px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #111923e8;
  border: 1px solid #2f3f4f;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10px;
  pointer-events: none;
}
.video-tile[data-remote] {
  cursor: pointer;
}
.video-tile .focus-btn[aria-pressed='true'] {
  background: #2f6b5f;
}
.video-label button {
  pointer-events: auto;
  font-size: 9px;
  padding: 3px 6px;
}
.call-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 15px 0 20px;
}
.call-controls button {
  font-size: 11px;
  padding: 11px;
}
.danger {
  background: #6a2c3a;
  border-color: #934154;
  color: #fff;
}
.danger-outline {
  background: none;
  color: var(--red);
  border-color: #774451;
}
.call-sidebar {
  display: grid;
  gap: 15px;
  align-content: start;
}
.compact {
  padding: 18px;
  border-radius: 12px;
}
.compact h3 {
  font-size: 13px;
  margin-bottom: 15px;
}
.key-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 11px;
}
.key-values span {
  color: var(--muted);
}
.key-values b {
  font-size: 10px;
  font-weight: 600;
}
.pill {
  display: inline-grid;
  place-items: center;
  background: #2d3b4a;
  border-radius: 9px;
  font-size: 10px;
  padding: 2px 7px;
  margin-left: 5px;
}
.person {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.person-name {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 12px;
}
.person small {
  font-size: 10px;
  color: var(--muted);
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.person-actions button {
  font-size: 9px;
  padding: 6px;
}
.captions-box {
  padding: 22px;
  background: #18262c;
  border: 1px solid #344b4f;
  border-radius: 14px;
}
.captions-box h3 {
  font-size: 15px;
}
.captions-box p {
  font-size: 12px;
  line-height: 1.7;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  margin: 14px 0;
}
.checkbox input {
  width: 15px;
  margin: 2px 0;
}
.captions-box button {
  font-size: 11px;
}
.caption-lines {
  margin-top: 20px;
  min-height: 75px;
  border-top: 1px solid #345056;
  padding-top: 14px;
}
.caption-line {
  font-size: 17px !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}
.caption-line strong {
  display: block;
  font-size: 10px;
  color: var(--mint);
  letter-spacing: 0.4px;
}
.caption-line.partial {
  opacity: 0.75;
}
.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  margin: 24px 0;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.mint {
  background: var(--mint);
}
.amber {
  background: var(--amber);
}
.usage-card {
  margin-bottom: 18px;
}
.usage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.usage-stats div {
  display: grid;
  gap: 7px;
}
.usage-stats small {
  color: var(--muted);
  font-size: 11px;
}
.usage-stats strong {
  font-size: 22px;
  font-weight: 550;
}
.bar {
  height: 7px;
  border-radius: 8px;
  background: #4d4232;
  overflow: hidden;
  margin-top: 18px;
}
.bar span {
  display: block;
  background: var(--mint);
  height: 100%;
  max-width: 100%;
}
.usage-card code {
  font-size: 10px;
  color: var(--muted);
  word-break: break-all;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 460px;
  background: #2c3948;
  border: 1px solid #6b859b;
  color: #fff;
  box-shadow: 0 15px 40px #0008;
  border-radius: 12px;
  padding: 15px 20px;
  z-index: 30;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .hero h2 {
    font-size: 40px;
  }
  .stage {
    min-height: 510px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 185px 1fr;
  }
  .rail {
    padding: 25px 12px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 6px;
  }
  .main header,
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 30px;
  }
  .pathcard {
    min-width: 270px;
    padding: 25px 15px;
    gap: 10px;
  }
  .path {
    min-width: 95px;
  }
  .endpoint {
    width: 48px;
    height: 55px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .call-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage {
    min-height: 430px;
  }
  .header-badges {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 210px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .rail {
    position: relative;
    height: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0;
  }
  .rail .workspace,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    margin-top: 13px;
  }
  .nav {
    font-size: 11px;
    padding: 9px;
    white-space: nowrap;
    margin: 0;
    gap: 5px;
  }
  .main header {
    height: 90px;
    padding: 20px;
  }
  .header-badges {
    max-width: 180px;
  }
  .chip {
    font-size: 9px;
  }
  h1 {
    font-size: 23px;
  }
  .notice {
    padding: 10px 20px;
  }
  .hero {
    display: block;
    margin-top: 0;
  }
  .hero h2 {
    font-size: 31px;
  }
  .pathcard {
    margin-top: 22px;
    max-width: none;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 14px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  main {
    padding: 24px 18px;
  }
  .card {
    padding: 20px;
  }
  .session-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-layout {
    gap: 16px;
  }
  .stage {
    min-height: 320px;
  }
  .stage-column {
    width: 100%;
  }
  .video-tile {
    min-height: 140px;
  }
  .call-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .compact {
    padding: 14px;
  }
  .key-values {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .usage-stats {
    grid-template-columns: 1fr 1fr;
  }
  .section-heading {
    align-items: flex-start;
  }
  footer {
    padding: 18px;
    flex-direction: column;
  }
  .eyebrow {
    font-size: 8px;
  }
  .call-controls {
    gap: 6px;
  }
  .call-controls button {
    padding: 9px;
    font-size: 10px;
  }
  #toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }
}

.lab-results {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lab-result {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.lab-result strong {
  grid-column: 1 / -1;
}
.lab-result input {
  min-width: 0;
}
