:root {
  color-scheme: light;
  --ink: #172b25;
  --muted: #50675c;
  --line: #d7dfd8;
  --green: #146448;
  --canvas: #f4f6f4;
  --card: #fff;
  font:
    16px/1.5 "Inter",
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
h1,
h2,
p {
  margin: 0;
}
button,
input,
summary,
a {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.top {
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(5vw, calc((100vw - 1250px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}
.brand b {
  font-size: 19px;
  letter-spacing: 0.105em;
}
.mark {
  width: 30px;
  height: 30px;
  position: relative;
  background: var(--green);
  border-radius: 8px;
  transform: rotate(-3deg);
}
.mark:after {
  content: "";
  position: absolute;
  inset: 9px 6px;
  border: 2px solid white;
  border-radius: 70% 16%;
  transform: rotate(36deg);
}
.mark:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  position: absolute;
  inset: 12.5px;
}
.divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.top-label {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1390px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 83px) clamp(16px, 5vw, 70px) 50px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.kicker,
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(35px, 4.1vw, 61px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.055em;
}
.intro {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
}
.status {
  font-size: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c5a49;
  background: #e7eee8;
  border: 1px solid #d7e2d9;
  padding: 5px 10px;
  border-radius: 999px;
}
.status i,
.indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c9185;
}
.status[data-on="true"] i,
body.live .indicator {
  background: #16a26e;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.viewer-card,
.control-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panel-head,
.stage-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 21px;
}
.panel-head {
  justify-content: space-between;
}
.panel-head h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.panel-head > span {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.stage {
  aspect-ratio: 16 / 10;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #ecf7ee;
  background-color: #16342b;
  background-image:
    radial-gradient(circle at 50% 45%, #315244 0%, transparent 67%),
    radial-gradient(#60806f55 0.8px, transparent 0.8px);
  background-size:
    auto,
    16px 16px;
}
.stage:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #08130e;
}
.stage-empty {
  text-align: center;
  display: grid;
  justify-items: center;
  padding: 22px;
}
.screen-icon {
  width: 51px;
  height: 35px;
  border: 2px solid #a7bfac;
  border-radius: 6px;
  margin-bottom: 26px;
  position: relative;
}
.screen-icon:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 6px;
  left: 16px;
  bottom: -7px;
  border-bottom: 2px solid #a7bfac;
}
.screen-icon i {
  display: block;
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  top: 13px;
  left: 21px;
  background: #b6d9c4;
}
.stage-empty strong {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.stage-empty span {
  color: #c0d2c5;
  font-size: 13px;
  margin-top: 4px;
}
.stage video {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: #101a15;
}
.stage-foot {
  min-height: 53px;
  font-size: 12px;
  color: var(--muted);
}
.right {
  margin-left: auto;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
  padding: 4px;
}
.actions {
  display: grid;
  gap: 13px;
}
.control-card {
  padding: clamp(18px, 2vw, 28px);
}
.control-card h2 {
  font-size: 24px;
  font-weight: 630;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.muted,
.note {
  color: var(--muted);
  margin-top: 10px;
}
.muted {
  font-size: 15px;
}
.note {
  font-size: 12px;
  line-height: 1.55;
}
.primary,
.secondary,
.end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  text-decoration: none;
  min-height: 44px;
  font-weight: 620;
  font-size: 14px;
  padding: 9px 13px;
  width: 100%;
  margin-top: 16px;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: #0f5039;
}
.secondary {
  background: #fafcf9;
  border: 1px solid #bbcbbf;
  color: var(--ink);
}
.secondary:hover {
  background: #eaf0e9;
}
.end {
  color: #903e34;
  background: white;
  border: 1px solid #d9bbb6;
  margin: 0;
}
.primary span {
  font-size: 18px;
}
input {
  border: 1px solid #bdcbbf;
  border-radius: 7px;
  padding: 9px 11px;
  max-width: 100%;
  width: 100%;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
input[readonly] {
  background: #f5f7f4;
}
.control-card label {
  display: block;
  font-size: 12px;
  font-weight: 630;
  margin: 16px 0 5px;
}
.control-card details {
  margin-top: 13px;
}
.control-card summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
#notice {
  padding: 12px 15px;
  font-size: 14px;
  border-radius: 9px;
  background: #e8efeb;
  border: 1px solid #cadace;
}
#notice[data-error="true"] {
  color: #793e31;
  background: #fff4ec;
  border-color: #e8cebd;
}
:focus-visible {
  outline: 3px solid #228cca;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .top {
    min-height: 60px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .stage {
    aspect-ratio: 16/9;
  }
  .intro {
    font-size: 15px;
  }
  .actions {
    gap: 10px;
  }
  .top-label {
    display: none;
  }
}
@media (max-width: 430px) {
  .stage-empty strong {
    font-size: 16px;
  }
  .stage-empty span {
    max-width: 220px;
  }
  .screen-icon {
    margin-bottom: 18px;
  }
  .panel-head,
  .stage-foot {
    padding: 12px 15px;
  }
  .stage-foot {
    font-size: 11px;
  }
  .stage {
    aspect-ratio: 1.7;
  }
  .control-card h2 {
    font-size: 22px;
  }
}

select {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #bdcbbf;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
#operator-clients {
  font-size: 13px;
  margin-top: 12px;
}
#operator-clients a {
  color: var(--green);
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-tools .text-button {
  font-size: 13px;
}

.file-links {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.file-links a,
.source-link {
  color: var(--green);
  font-size: 13px;
}
.source-link {
  display: inline-block;
  margin-top: 12px;
}
#direct-tools {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
