/* GemCore Live Commerce Studio — isolated component styles */
.gcls {
  --gcls-bg: var(--bg, #040d16);
  --gcls-bg-deep: #02070d;
  --gcls-panel: var(--panel, #0a1b2a);
  --gcls-panel-2: var(--panel2, #0d2334);
  --gcls-line: var(--line, #12344a);
  --gcls-line-bright: #1b5266;
  --gcls-teal: var(--teal, #25f3e6);
  --gcls-teal-2: var(--teal2, #0ea898);
  --gcls-gold: var(--gold, #d9b96a);
  --gcls-ink: var(--ink, #eafdfb);
  --gcls-muted: var(--muted, #7fa8b8);
  --gcls-danger: var(--danger, #ff5d73);
  --gcls-green: var(--green, #3ef08c);
  --gcls-warn: #ffc857;
  --gcls-radius: 14px;
  --gcls-shadow: 0 22px 60px rgba(0, 0, 0, .28);
  display: block;
  width: 100%;
  min-height: 100%;
  color: var(--gcls-ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 78% -10%, rgba(37, 243, 230, .1), transparent 28rem),
    linear-gradient(180deg, #07131e 0%, var(--gcls-bg) 42%, #03090f 100%);
  color-scheme: dark;
}

.gcls,
.gcls * {
  box-sizing: border-box;
}

.gcls [hidden] {
  display: none !important;
}

.gcls button,
.gcls input,
.gcls select {
  font: inherit;
}

.gcls button {
  color: inherit;
}

.gcls button:focus-visible,
.gcls input:focus-visible,
.gcls select:focus-visible {
  outline: 2px solid var(--gcls-teal);
  outline-offset: 3px;
}

.gcls-shell {
  min-height: 100%;
  padding: clamp(14px, 2vw, 28px);
}

.gcls-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1720px;
  margin: 0 auto 14px;
}

.gcls-header h1 {
  margin: 2px 0 4px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
  letter-spacing: .04em;
}

.gcls-eyebrow,
.gcls-kicker {
  margin: 0;
  color: var(--gcls-teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .24em;
}

.gcls-subtitle {
  margin: 0;
  color: var(--gcls-muted);
  font-size: 13px;
}

.gcls-header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.gcls-status-pill,
.gcls-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--gcls-line-bright);
  border-radius: 999px;
  background: rgba(5, 16, 24, .78);
  color: var(--gcls-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gcls-status-pill {
  min-height: 31px;
  padding-inline: 12px;
}

.gcls-status-pill::before,
.gcls-chip.is-live::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.gcls-status-pill.is-offline,
.gcls-chip.is-offline {
  border-color: rgba(255, 93, 115, .58);
  color: var(--gcls-danger);
}

.gcls-status-pill.is-online,
.gcls-chip.is-ok {
  border-color: rgba(62, 240, 140, .48);
  color: var(--gcls-green);
}

.gcls-chip.is-warn,
.gcls-chip.is-local {
  border-color: rgba(255, 200, 87, .52);
  color: var(--gcls-warn);
}

.gcls-chip.is-live {
  border-color: var(--gcls-danger);
  background: rgba(255, 32, 72, .13);
  color: #ff8798;
  animation: gcls-live-pulse 1.8s ease-in-out infinite;
}

.gcls-chip.is-muted {
  color: var(--gcls-muted);
}

@keyframes gcls-live-pulse {
  50% { box-shadow: 0 0 0 5px rgba(255, 93, 115, 0); }
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 115, .22); }
}

.gcls-button,
.gcls-mini,
.gcls-take,
.gcls-scene,
.gcls-camera {
  border: 1px solid var(--gcls-line);
  background: linear-gradient(160deg, rgba(13, 35, 52, .96), rgba(5, 16, 24, .96));
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.gcls-button:hover:not(:disabled),
.gcls-mini:hover:not(:disabled),
.gcls-scene:hover:not(:disabled),
.gcls-camera:hover:not(:disabled) {
  border-color: var(--gcls-teal-2);
  transform: translateY(-1px);
}

.gcls button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.gcls-button {
  min-height: 35px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--gcls-ink);
  font-size: 11px;
  font-weight: 700;
}

.gcls-button.is-primary {
  border-color: rgba(37, 243, 230, .42);
  background: linear-gradient(135deg, #0a5a55, var(--gcls-teal-2));
  box-shadow: 0 9px 28px rgba(14, 168, 152, .16);
}

.gcls-button.is-quiet {
  background: rgba(5, 16, 24, .46);
  color: var(--gcls-muted);
}

.gcls-button.is-danger {
  border-color: rgba(255, 93, 115, .55);
  background: linear-gradient(135deg, rgba(113, 26, 43, .88), rgba(57, 15, 27, .92));
  color: #ffb5c0;
}

.gcls-offline-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1720px;
  margin: 0 auto 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 200, 87, .32);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 200, 87, .11), rgba(255, 200, 87, .025));
  color: #efd89b;
  font-size: 12px;
}

.gcls-offline-banner strong {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .15em;
}

.gcls-offline-banner span {
  color: #cbbd95;
}

.gcls-destinations {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  max-width: 1720px;
  margin: 0 auto 14px;
}

.gcls-destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 11px;
  border: 1px solid var(--gcls-line);
  border-radius: 10px;
  background: rgba(6, 17, 26, .78);
}

.gcls-destination-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gcls-muted);
  box-shadow: 0 0 0 4px rgba(127, 168, 184, .08);
}

.gcls-destination.is-ok .gcls-destination-light {
  background: var(--gcls-green);
  box-shadow: 0 0 0 4px rgba(62, 240, 140, .09), 0 0 12px rgba(62, 240, 140, .35);
}

.gcls-destination.is-warn .gcls-destination-light {
  background: var(--gcls-warn);
}

.gcls-destination.is-offline .gcls-destination-light {
  background: var(--gcls-danger);
}

.gcls-destination b,
.gcls-destination small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcls-destination b {
  font-size: 11px;
}

.gcls-destination small {
  margin-top: 2px;
  color: var(--gcls-muted);
  font-size: 9px;
}

.gcls-destination em {
  color: var(--gcls-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.gcls-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 14px;
  max-width: 1720px;
  margin: 0 auto;
}

.gcls-production,
.gcls-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.gcls-monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.gcls-monitor {
  overflow: hidden;
  border: 1px solid var(--gcls-line-bright);
  border-radius: var(--gcls-radius);
  background: #010407;
  box-shadow: var(--gcls-shadow);
}

.gcls-monitor.is-preview {
  border-color: rgba(37, 243, 230, .42);
}

.gcls-monitor.is-program {
  border-color: rgba(255, 93, 115, .48);
}

.gcls-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--gcls-line);
  background: linear-gradient(180deg, rgba(14, 38, 55, .98), rgba(5, 16, 24, .96));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.gcls-monitor.is-preview .gcls-monitor-head > span:first-child {
  color: var(--gcls-teal);
}

.gcls-monitor.is-program .gcls-monitor-head > span:first-child {
  color: #ff8193;
}

.gcls-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(rgba(37, 243, 230, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 243, 230, .025) 1px, transparent 1px),
    radial-gradient(circle at center, #0c2030, #010509 68%);
  background-size: 32px 32px, 32px 32px, auto;
}

.gcls-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gcls-screen-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.gcls-screen-empty::before {
  display: block;
  width: 58px;
  height: 37px;
  margin-bottom: 8px;
  border: 1px solid var(--gcls-line-bright);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 243, 230, .09), rgba(217, 185, 106, .03));
  box-shadow: inset 0 0 0 5px rgba(2, 7, 13, .8);
  content: "";
}

.gcls-screen-empty b {
  color: #c5dee6;
  font-size: 12px;
}

.gcls-screen-empty span {
  color: var(--gcls-muted);
  font-size: 10px;
}

.gcls-safe-frame,
.gcls-program-frame {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(37, 243, 230, .16);
  border-radius: 6px;
  pointer-events: none;
}

.gcls-safe-frame::before,
.gcls-program-frame::before,
.gcls-safe-frame::after,
.gcls-program-frame::after {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: rgba(37, 243, 230, .55);
  content: "";
}

.gcls-safe-frame::before,
.gcls-program-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.gcls-safe-frame::after,
.gcls-program-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.gcls-program-frame,
.gcls-program-frame::before,
.gcls-program-frame::after {
  border-color: rgba(255, 93, 115, .45);
}

.gcls-source-flag {
  position: absolute;
  right: 9px;
  bottom: 8px;
  max-width: calc(100% - 18px);
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(1, 5, 8, .82);
  color: #cde5e9;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.gcls-take-column {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.gcls-take {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 6px;
  border-color: rgba(217, 185, 106, .6);
  border-radius: 50%;
  flex-direction: column;
  background: radial-gradient(circle at 35% 30%, #3b3020, #12100c 68%);
  box-shadow: 0 0 0 5px rgba(217, 185, 106, .05), 0 12px 28px rgba(0, 0, 0, .35);
}

.gcls-take:hover {
  border-color: var(--gcls-gold);
  box-shadow: 0 0 0 6px rgba(217, 185, 106, .08), 0 0 24px rgba(217, 185, 106, .18);
  transform: scale(1.03);
}

.gcls-take span {
  color: var(--gcls-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.gcls-take small,
.gcls-take-note {
  color: var(--gcls-muted);
  font-size: 7px;
  text-align: center;
}

.gcls-take-note {
  max-width: 74px;
  line-height: 1.3;
}

.gcls-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr);
  gap: 14px;
}

.gcls-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--gcls-line);
  border-radius: var(--gcls-radius);
  background: linear-gradient(155deg, rgba(10, 27, 42, .98), rgba(5, 16, 24, .98));
  box-shadow: 0 12px 38px rgba(0, 0, 0, .15);
}

.gcls-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gcls-panel h2 {
  margin: 2px 0 0;
  color: var(--gcls-ink);
  font-size: 16px;
  letter-spacing: .04em;
}

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

.gcls-scene {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
}

.gcls-scene:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.gcls-scene.is-selected {
  border-color: rgba(37, 243, 230, .72);
  background: linear-gradient(135deg, rgba(14, 168, 152, .22), rgba(5, 16, 24, .96));
  box-shadow: inset 3px 0 var(--gcls-teal), 0 0 18px rgba(37, 243, 230, .08);
}

.gcls-scene-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(217, 185, 106, .35);
  border-radius: 8px;
  color: var(--gcls-gold);
  font-size: 16px;
}

.gcls-scene b,
.gcls-scene small {
  display: block;
}

.gcls-scene b {
  font-size: 11px;
}

.gcls-scene small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--gcls-muted);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gcls-field {
  display: block;
  margin-top: 9px;
}

.gcls-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--gcls-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gcls input,
.gcls select {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--gcls-line);
  border-radius: 8px;
  background: #04101a;
  color: var(--gcls-ink);
}

.gcls input::placeholder {
  color: #557481;
}

.gcls-help {
  margin: 9px 0 0;
  color: var(--gcls-muted);
  font-size: 9px;
  line-height: 1.5;
}

.gcls-camera-list {
  display: flex;
  max-height: 238px;
  margin-top: 10px;
  overflow: auto;
  flex-direction: column;
  gap: 6px;
  scrollbar-color: var(--gcls-line-bright) transparent;
}

.gcls-camera {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 8px 9px;
  border-radius: 9px;
  text-align: left;
}

.gcls-camera.is-selected {
  border-color: var(--gcls-teal);
  background: linear-gradient(120deg, rgba(14, 168, 152, .18), rgba(5, 16, 24, .95));
}

.gcls-camera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gcls-teal);
  box-shadow: 0 0 12px rgba(37, 243, 230, .45);
}

.gcls-camera-copy b,
.gcls-camera-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcls-camera-copy b {
  font-size: 10px;
}

.gcls-camera-copy small {
  margin-top: 2px;
  color: var(--gcls-muted);
  font-size: 8px;
}

.gcls-obs-panel {
  border-color: rgba(37, 243, 230, .25);
  background:
    linear-gradient(90deg, rgba(37, 243, 230, .035) 1px, transparent 1px),
    linear-gradient(155deg, rgba(10, 27, 42, .98), rgba(5, 16, 24, .98));
  background-size: 34px 100%, auto;
}

.gcls-obs-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--gcls-line);
  border-radius: 10px;
  background: rgba(2, 9, 14, .48);
}

.gcls-obs-summary > div {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border-right: 1px solid var(--gcls-line);
}

.gcls-obs-summary > div:last-child {
  border-right: 0;
}

.gcls-obs-summary span,
.gcls-obs-summary b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcls-obs-summary span {
  color: var(--gcls-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.gcls-obs-summary b {
  margin-top: 6px;
  color: #cae2e8;
  font-size: 10px;
}

.gcls-obs-summary .gcls-lock-state {
  color: #ff9aaa;
}

.gcls-obs-summary .gcls-lock-state.is-active {
  color: #ff5d73;
  text-shadow: 0 0 14px rgba(255, 93, 115, .5);
}

.gcls-obs-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.gcls-obs-control {
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 11px;
  border: 1px solid var(--gcls-line);
  border-radius: 10px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: rgba(3, 13, 21, .72);
}

.gcls-obs-control.is-locked {
  border-color: rgba(255, 93, 115, .25);
  background:
    repeating-linear-gradient(135deg, rgba(255, 93, 115, .025) 0 9px, transparent 9px 18px),
    rgba(25, 8, 14, .48);
}

.gcls-obs-control p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.gcls-obs-control small {
  display: block;
  margin-top: 6px;
  color: var(--gcls-muted);
  font-size: 9px;
  line-height: 1.45;
}

.gcls-obs-control .gcls-button {
  width: 100%;
}

.gcls-evidence-warning {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 200, 87, .48);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 200, 87, .035) 0 10px, transparent 10px 20px),
    rgba(43, 32, 10, .55);
}

.gcls-warning-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--gcls-warn);
  border-radius: 50%;
  color: var(--gcls-warn);
  font-size: 19px;
  font-weight: 900;
}

.gcls-evidence-warning strong {
  color: #ffe19b;
  font-size: 10px;
  letter-spacing: .1em;
}

.gcls-evidence-warning p {
  margin: 4px 0 0;
  color: #cabb91;
  font-size: 10px;
  line-height: 1.55;
}

.gcls-listing-form {
  padding: 10px;
  border: 1px solid var(--gcls-line);
  border-radius: 10px;
  background: rgba(2, 9, 14, .48);
}

.gcls-listing-form .gcls-button {
  width: 100%;
  margin-top: 10px;
}

.gcls-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gcls-queue {
  display: flex;
  max-height: 460px;
  margin-top: 10px;
  overflow: auto;
  flex-direction: column;
  gap: 7px;
  scrollbar-color: var(--gcls-line-bright) transparent;
}

.gcls-listing {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--gcls-line);
  border-radius: 10px;
  background: rgba(5, 16, 24, .78);
}

.gcls-listing.is-claimed {
  border-color: rgba(255, 200, 87, .35);
}

.gcls-listing.is-sold {
  border-color: rgba(62, 240, 140, .32);
  opacity: .76;
}

.gcls-listing-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(37, 243, 230, .22);
  border-radius: 8px;
  color: var(--gcls-teal);
  font-size: 9px;
  font-weight: 800;
}

.gcls-listing-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.gcls-listing-title b {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcls-listing-title span {
  color: var(--gcls-gold);
  font-size: 10px;
  font-weight: 800;
}

.gcls-listing p {
  margin: 3px 0 0;
  color: var(--gcls-muted);
  font-size: 9px;
}

.gcls-listing .gcls-claimed-by {
  color: #ddca95;
}

.gcls-listing-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.gcls-mini {
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.gcls-mini.is-sold {
  border-color: rgba(62, 240, 140, .32);
  color: var(--gcls-green);
}

.gcls-mini.is-remove {
  width: 26px;
  margin-left: auto;
  border-color: rgba(255, 93, 115, .28);
  color: var(--gcls-danger);
  font-size: 13px;
}

.gcls-checklist {
  display: flex;
  flex-direction: column;
}

.gcls-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border-bottom: 1px solid rgba(18, 52, 74, .65);
}

.gcls-check > span:first-child {
  color: var(--gcls-danger);
  font-size: 13px;
  font-weight: 900;
}

.gcls-check.is-ok > span:first-child {
  color: var(--gcls-green);
}

.gcls-check b,
.gcls-check small {
  display: block;
}

.gcls-check b {
  font-size: 10px;
}

.gcls-check small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--gcls-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcls-broadcast-button {
  width: 100%;
  margin-top: 12px;
}

.gcls-log {
  max-height: 210px;
  overflow: auto;
  scrollbar-color: var(--gcls-line-bright) transparent;
}

.gcls-log-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(18, 52, 74, .55);
  font-size: 9px;
  line-height: 1.4;
}

.gcls-log-entry time {
  color: #557d8d;
  font-variant-numeric: tabular-nums;
}

.gcls-log-entry span {
  color: var(--gcls-muted);
}

.gcls-log-entry.is-ok span {
  color: #8feeb6;
}

.gcls-log-entry.is-warn span {
  color: #e7ca83;
}

.gcls-log-entry.is-error span {
  color: #ff9aaa;
}

.gcls-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 14px;
  border: 1px dashed var(--gcls-line-bright);
  border-radius: 9px;
  flex-direction: column;
  color: var(--gcls-muted);
  text-align: center;
}

.gcls-empty b {
  color: #b9d2da;
  font-size: 10px;
}

.gcls-empty span {
  max-width: 250px;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.45;
}

.gcls-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid var(--gcls-line-bright);
  border-radius: 10px;
  background: rgba(3, 12, 19, .96);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .42);
  color: var(--gcls-ink);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.gcls-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gcls-toast.is-ok {
  border-color: rgba(62, 240, 140, .55);
}

.gcls-toast.is-warn {
  border-color: rgba(255, 200, 87, .58);
}

.gcls-toast.is-error {
  border-color: rgba(255, 93, 115, .62);
}

@media (max-width: 1380px) {
  .gcls-main {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .gcls-destinations {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .gcls-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .gcls-main {
    grid-template-columns: 1fr;
  }

  .gcls-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .gcls-rail .gcls-panel:first-child {
    grid-row: span 2;
  }
}

@media (max-width: 800px) {
  .gcls-header,
  .gcls-offline-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .gcls-header-status {
    justify-content: flex-start;
  }

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

  .gcls-monitor-grid {
    grid-template-columns: 1fr;
  }

  .gcls-obs-controls {
    grid-template-columns: 1fr;
  }

  .gcls-take-column {
    flex-direction: row;
    justify-content: center;
  }

  .gcls-take {
    width: 110px;
    height: 44px;
    border-radius: 10px;
  }

  .gcls-take-note {
    max-width: 130px;
    text-align: left;
  }

  .gcls-rail {
    display: flex;
  }
}

@media (max-width: 560px) {
  .gcls-shell {
    padding: 10px;
  }

  .gcls-destinations,
  .gcls-scenes,
  .gcls-form-row,
  .gcls-obs-summary {
    grid-template-columns: 1fr;
  }

  .gcls-obs-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--gcls-line);
  }

  .gcls-obs-summary > div:last-child {
    border-bottom: 0;
  }

  .gcls-scene:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .gcls-destination {
    min-height: 49px;
  }

  .gcls-screen {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcls *,
  .gcls *::before,
  .gcls *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
