body.view-gateway,
body.view-operator {
  overflow: hidden;
  background: var(--bg);
}

body.view-designer {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
}

body.view-auth {
  min-height: 100vh;
  background: #030407;
  color: var(--text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 8%, rgba(45, 212, 191, 0.12), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(135deg, #030407 0%, #080b12 52%, #0d1117 100%);
}

.auth-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 28px;
  align-items: center;
}

.auth-hero {
  display: grid;
  gap: 16px;
  padding: 8px 0;
}

.auth-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-workflow {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 4px;
}

.auth-workflow div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-workflow div:last-child {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-workflow strong {
  color: var(--text);
}

.auth-workflow span {
  color: rgba(203, 213, 225, 0.74);
}

.auth-preview-note {
  font-size: 0.92rem;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-form input {
  min-width: 0;
}

.auth-note {
  font-size: 0.82rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-status {
  min-height: 20px;
  font-size: 0.85rem;
}

.auth-request {
  display: grid;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 2px;
  padding-top: 14px;
}

.auth-request-form {
  padding-top: 4px;
}

.link-btn {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.link-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .auth-shell {
    align-items: start;
    padding: 22px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .auth-hero {
    padding-top: 8px;
  }

  .auth-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-hero h1 {
    font-size: 2.35rem;
  }

  .auth-workflow div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.gateway-shell {
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 12%, rgba(45, 212, 191, 0.14), transparent 32%),
    linear-gradient(135deg, #0b0d12 0%, #111827 48%, #0f172a 100%);
  color: var(--text);
}

.gateway-main {
  display: grid;
  gap: 16px;
  width: min(1000px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0;
}

.gateway-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.gateway-hero .brand {
  font-size: 30px;
}

.gateway-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gateway-hero-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: 540px;
}

.gateway-account-controls .topbar-auth-controls {
  max-width: 260px;
}

.gateway-account-controls .topbar-auth-user {
  max-width: 170px;
}

.gateway-show-card,
.gateway-template-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(16, 18, 24, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.gateway-template-card {
  background: rgba(16, 18, 24, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.gateway-show-list {
  display: grid;
  gap: 10px;
}

.gateway-show-item {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gateway-show-item.is-active {
  border-color: rgba(45, 212, 191, 0.56);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18);
}

.gateway-show-item--loading {
  border-style: dashed;
  opacity: 0.82;
}

.gateway-show-item--loading .tool-btn {
  pointer-events: none;
}

.gateway-show-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gateway-show-item h2 {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-show-updated {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}

.gateway-show-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.gateway-card-badge {
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gateway-card-badge--warning {
  border-color: rgba(125, 211, 252, 0.32);
  color: #bae6fd;
}

.gateway-show-heading,
.gateway-show-actions,
.gateway-show-stats {
  display: flex;
  align-items: center;
}

.gateway-show-heading {
  justify-content: space-between;
  gap: 16px;
}

.gateway-kicker,
.gateway-file-format {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gateway-show-card h1 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.12;
}

.gateway-show-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gateway-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gateway-stat span {
  font-size: 18px;
  font-weight: 900;
}

.gateway-stat label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.gateway-show-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-show-actions--secondary {
  padding-top: 2px;
  padding-bottom: 1px;
}

.gateway-show-actions--primary {
  padding-top: 0;
}

.gateway-show-actions--management {
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.gateway-show-actions--management .tool-btn {
  padding: 6px 9px;
  font-size: 12px;
}

.gateway-show-actions .danger-subtle {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fecaca;
}

.gateway-show-actions .tool-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.54;
}

.gateway-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gateway-helper {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.home-template-card {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  text-align: left;
}

.home-template-card--active {
  cursor: pointer;
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.07);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.16);
}

.home-template-card[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.home-template-card[disabled] .home-template-icon {
  color: var(--muted);
}

.home-template-icon {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
}

.home-template-card strong,
.home-template-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-template-card strong {
  align-self: end;
  font-size: 13px;
}

.home-template-card small {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.app-shell {
  display: grid;
  grid-template-rows: 58px 1fr;
  width: 100vw;
  height: 100vh;
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) auto minmax(430px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #101218;
  border-bottom: 1px solid var(--line);
}

.topbar-actions,
.project-workflow-row,
.project-file-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-actions {
  justify-content: flex-end;
}

.topbar-identity {
  min-width: 0;
}

.surface-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 2px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.surface-nav .tool-btn {
  padding: 7px 9px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
}

.project-workflow-controls {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: end;
  gap: 2px;
  width: min(620px, 48vw);
  min-width: 0;
  padding-right: 0;
}

.project-workflow-row {
  width: 100%;
  justify-content: flex-end;
}

.project-name-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.project-name-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-name-input {
  width: min(170px, 15vw);
  height: 30px;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: #161922;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.project-workflow-controls .tool-btn {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.project-save-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.project-save-status {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-save-status[data-project-save-state="unsaved"],
.project-save-status[data-project-save-state="failed"],
.project-save-status[data-project-save-state="imported"] {
  color: #facc15;
}

.project-save-status[data-project-save-state="saved"] {
  color: #86efac;
}

.project-menu-control,
.project-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.icon-tool-btn {
  width: 34px;
  min-width: 34px;
  height: 30px;
  min-height: 30px;
  justify-content: center;
  padding: 0;
}

.topbar-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141824;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.topbar-menu-panel[hidden] {
  display: none;
}

.topbar-menu-item {
  width: 100%;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.topbar-menu-item:hover,
.topbar-menu-item:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.topbar-menu-user {
  max-width: 220px;
  overflow: hidden;
  padding: 5px 8px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .app-topbar {
    grid-template-columns: minmax(130px, 0.5fr) auto minmax(370px, 1fr);
    gap: 10px;
    padding: 0 12px;
  }

  .surface-nav .tool-btn {
    padding: 6px 8px;
  }

  .project-workflow-controls {
    width: min(500px, 45vw);
    padding-right: 4px;
  }

  .project-name-control,
  .project-file-controls,
  .project-save-controls {
    gap: 6px;
  }

  .project-name-label {
    font-size: 11px;
  }

  .project-name-input {
    width: min(145px, 13vw);
    min-width: 96px;
    padding: 0 7px;
  }

  .project-workflow-controls .tool-btn {
    padding: 6px 7px;
    font-size: 11px;
  }

  .project-save-status {
    max-width: 116px;
  }
}

.project-name-input:focus {
  border-color: #7dd3fc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.16);
}

.project-file-controls {
  justify-content: flex-end;
}

.project-file-status {
  display: block;
  width: 100%;
  min-height: 12px;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-auth-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  min-width: 0;
  margin-left: 2px;
}

.topbar-auth-user {
  max-width: 110px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-auth-controls .tool-btn {
  padding: 6px 7px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.1;
}

.surface-label {
  color: var(--muted);
  font-weight: 600;
}

.designer-workspace,
.operator-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  background: var(--workspace);
}

.designer-workspace {
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.operator-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.surface-sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  min-height: 0;
  height: calc(100vh - 58px);
  overflow: auto;
  padding: 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.surface-sidebar,
.surface-sidebar * {
  box-sizing: border-box;
}

.panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.panel + .panel {
  margin-top: 12px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading-row h2 {
  margin: 0;
}

.debug-panel {
  color: var(--muted);
}

.debug-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.debug-panel-body {
  margin-top: 12px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.hidden-file-input {
  display: none;
}

.upload-status {
  min-height: 18px;
  margin: -2px 0 10px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.4;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.canvas-workspace {
  min-width: 0;
  min-height: 0;
  padding: clamp(10px, 1.4vh, 18px) clamp(12px, 1.7vw, 24px);
  overflow: visible;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  align-items: stretch;
  justify-items: center;
}

.canvas-help {
  width: min(1200px, 100%);
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.designer-context-toolbar {
  width: min(1200px, 100%);
  min-width: 0;
  min-height: 74px;
  max-height: min(136px, 20vh);
  display: flex;
}

.designer-stage-area {
  display: grid;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.designer-graphics-tray {
  width: min(1200px, 100%);
  min-width: 0;
  max-height: min(760px, 72vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.94);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.designer-graphics-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.designer-graphics-tray-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.designer-graphics-tray-body {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 2px;
}

.designer-context-toolbar,
.designer-context-toolbar * {
  box-sizing: border-box;
}

.context-toolbar-empty,
.context-toolbar-group {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.context-toolbar-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.context-toolbar-empty-copy,
.context-toolbar-state-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.context-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
}

.context-toolbar-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  padding-right: 5px;
  border-right: 1px solid var(--line);
}

.context-toolbar-state-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.context-toolbar-state-icon--canvas {
  background: linear-gradient(135deg, rgba(125,211,252,0.18), rgba(20,184,166,0.12));
}

.context-toolbar-state-icon--canvas::before {
  width: 14px;
  height: 10px;
  border: 1px solid rgba(248,250,252,0.7);
  border-radius: 2px;
  content: "";
}

.context-toolbar-state-icon--image::before,
.context-toolbar-state-icon--image::after {
  position: absolute;
  content: "";
}

.context-toolbar-state-icon--image::before {
  right: 6px;
  left: 6px;
  bottom: 7px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, transparent 47%, #7dd3fc 48%);
}

.context-toolbar-state-icon--image::after {
  top: 7px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #facc15;
}

.context-toolbar-state-icon--rectangle {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  background: #0f766e;
}

.context-toolbar-state-icon--accent-strip {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #14b8a6;
}

.context-toolbar-state-icon--pill {
  width: 22px;
  height: 14px;
  border-radius: 999px;
  background: #2563eb;
}

.context-toolbar-state-icon--badge {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #f59e0b;
}

.context-toolbar-state-icon--star {
  border: 0;
  background: #eab308;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.context-toolbar-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.context-toolbar-layer-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-toolbar-control-group {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: end;
  gap: 5px;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.context-toolbar-field {
  display: grid;
  flex: 0 1 82px;
  gap: 2px;
  width: 82px;
  min-width: 82px;
}

.context-toolbar-field--small {
  flex-basis: 48px;
  width: 48px;
  min-width: 48px;
}

.context-toolbar-field--color {
  flex-basis: 48px;
  width: 48px;
  min-width: 48px;
}

.context-toolbar-field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.context-toolbar-field input,
.context-toolbar-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.context-toolbar-field input:not([type="color"]),
.context-toolbar-field select {
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1219;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.brand-field input,
.brand-field select {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1219;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.context-toolbar-field input:not([type="color"]):focus-visible,
.context-toolbar-field select:focus-visible,
.brand-field input:focus-visible,
.brand-field select:focus-visible {
  border-color: #7dd3fc;
  outline: 2px solid rgba(125,211,252,0.22);
  outline-offset: 1px;
}

.context-toolbar-field input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.context-toolbar-color-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 44px;
  min-height: 28px;
  padding: 3px 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1017;
}

.context-toolbar-color-control::after {
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.context-toolbar-color-swatch {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
}

.context-toolbar-swatches {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-self: end;
  gap: 3px;
  width: 44px;
  min-width: 0;
}

.context-toolbar-swatch-btn {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  cursor: pointer;
}

.context-toolbar-swatch-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.context-toolbar-source {
  align-self: center;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.context-toolbar-source {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .designer-context-toolbar,
  .context-toolbar-empty,
  .context-toolbar-group {
    min-height: 116px;
  }

  .context-toolbar-group,
  .context-toolbar-control-group {
    flex-wrap: wrap;
  }
}

.operator-monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.monitor-panel {
  min-width: 0;
}

.monitor-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.monitor-panel--preview .monitor-label {
  color: #86efac;
}

.monitor-panel--program .monitor-label {
  color: #fca5a5;
}

.snapshot-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  font-size: 12px;
}

.snapshot-status-state {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-status-state--empty {
  color: var(--muted);
}

.snapshot-status-detail {
  flex: 0 0 auto;
  color: var(--muted);
}

.stage-preview {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.045) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.045) 75%),
    #090b10;
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.stage-preview--large {
  width: min(1200px, 100%, calc((100vh - 390px) * 16 / 9));
  max-width: min(1200px, 100%);
  max-height: 100%;
}

.stage-scale-frame,
.stage-render-root {
  width: 100%;
  height: 100%;
}

.stage-render-root {
  position: relative;
}

.stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-empty-note {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
}

.graphic-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
}

.graphic-safe-margins {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.graphic-safe-margin {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.66), inset 0 0 0 1px rgba(17, 24, 39, 0.45);
}

.graphic-safe-margin--action {
  left: 5%;
  top: 5%;
  width: 90%;
  height: 90%;
}

.graphic-safe-margin--title {
  left: 10%;
  top: 10%;
  width: 80%;
  height: 80%;
}

.graphic-layer {
  position: absolute;
  overflow: hidden;
}

.graphic-layer.is-interactive {
  cursor: move;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border-radius: 4px;
  background: rgba(76, 141, 255, 0.08);
  outline: 1px dashed rgba(255, 255, 255, 0.18);
  outline-offset: 4px;
}

.graphic-layer.is-interactive:hover {
  background: rgba(76, 141, 255, 0.14);
  outline-color: rgba(76, 141, 255, 0.65);
}

.graphic-layer.is-selected {
  overflow: visible;
  outline: 3px solid rgba(76, 141, 255, 0.95);
  outline-offset: 4px;
}

.is-dragging-layer .graphic-layer.is-selected {
  cursor: grabbing;
}

.is-resizing-layer .graphic-layer.is-selected {
  cursor: default;
}

.is-rotating-layer .graphic-layer.is-selected {
  cursor: grabbing;
}

.graphic-layer--text {
  display: block;
  overflow: hidden;
  clip-path: inset(0);
  contain: paint;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}

.graphic-layer--text.is-interactive,
.graphic-layer--text.is-selected {
  outline-offset: 0;
}

.graphic-layer--text.is-selected {
  overflow: visible;
  clip-path: none;
  contain: layout;
}

.graphic-layer--text.is-editing-text {
  overflow: hidden;
  clip-path: inset(0);
  contain: paint;
  cursor: text;
  background: rgba(255, 255, 255, 0.06);
}

.graphic-text-content {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
  line-height: inherit;
  contain: paint;
}

.graphic-text-edit-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 2px solid rgba(125, 211, 252, 0.85);
  outline-offset: -2px;
  resize: none;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.42);
  box-sizing: border-box;
  line-height: inherit;
  white-space: normal;
  overflow-wrap: break-word;
  caret-color: #ffffff;
}

.graphic-layer--image {
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}

.graphic-layer--image.is-selected {
  overflow: visible;
}

.graphic-image-content {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.graphic-missing-asset {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  box-sizing: border-box;
  font-size: 28px;
  text-align: center;
}

.graphic-layer--star {
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}

.graphic-layer--star.is-selected {
  overflow: visible;
}

.graphic-star-content {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.resize-handle {
  position: absolute;
  z-index: 12;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: #2563eb;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.72),
    0 6px 12px rgba(0, 0, 0, 0.28);
  font-size: 0;
  pointer-events: auto;
}

.resize-handle--top-left {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.resize-handle--top-right {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.resize-handle--bottom-left {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.resize-handle--bottom-right {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}

.rotation-handle {
  position: absolute;
  z-index: 13;
  top: -38px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.22);
  cursor: grab;
  font-size: 0;
  pointer-events: auto;
  transform: translateX(-50%);
}

.rotation-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 1px;
  height: 18px;
  background: rgba(125, 211, 252, 0.72);
  transform: translateX(-50%);
}

.rotation-handle:hover,
.rotation-handle:focus-visible {
  background: #22d3ee;
  outline: none;
}

.rotation-handle:active {
  cursor: grabbing;
}

.layer-list,
.layer-inspector,
.graphic-library {
  display: grid;
  gap: 8px;
}

.layer-list.is-pointer-reordering {
  cursor: grabbing;
  user-select: none;
}

.designer-brand-card {
  min-width: 0;
}

.brand-card {
  display: grid;
  gap: 10px;
}

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

.brand-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-field--wide {
  grid-column: 1 / -1;
}

.brand-field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-field input,
.brand-field select {
  width: 100%;
  min-width: 0;
}

.brand-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(2, 36px);
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  justify-items: start;
  min-width: 0;
}

.brand-color-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 62px;
  min-width: 0;
  min-height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a22;
}

.brand-color-cell .brand-element-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  transform: scale(0.82);
  transform-origin: center;
}

.brand-color-cell .creative-tool-mark--rectangle {
  width: 24px;
  height: 16px;
  flex-basis: 24px;
}

.brand-color-cell .creative-tool-mark--strip {
  width: 24px;
  height: 5px;
  flex-basis: 24px;
}

.brand-color-cell .creative-tool-mark--pill {
  width: 24px;
  height: 13px;
  flex-basis: 24px;
}

.brand-color-cell .creative-tool-mark--badge {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.brand-color-cell input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  min-width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.brand-color-cell input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.brand-color-cell input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 8px;
}

.brand-color-cell input[type="color"]::-moz-color-swatch {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 8px;
}

.panel-helper {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.creative-tool-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.creative-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.designer-image-bin-host {
  margin-top: 8px;
}

.designer-image-bin {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.designer-image-bin-empty {
  padding: 8px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.designer-image-bin-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.designer-image-bin-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.designer-image-bin-thumb {
  display: grid;
  width: 34px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  background: rgba(6, 9, 16, 0.56);
}

.designer-image-bin-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-image-bin-thumb .generic-graphic-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.designer-image-bin-name {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.designer-image-bin-name span,
.designer-image-bin-name small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-image-bin-name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.designer-image-bin-add {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.creative-tool-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12);
}

.creative-tool-mark--text {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.creative-tool-mark--image {
  border-radius: 4px;
}

.creative-tool-mark--image::before {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 10px;
  height: 6px;
  border-radius: 2px 2px 1px 1px;
  background: rgba(255,255,255,0.64);
  content: "";
  transform: skewX(-18deg);
}

.creative-tool-mark--rectangle {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  background: #0f766e;
}

.creative-tool-mark--strip {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: #14b8a6;
}

.creative-tool-mark--pill {
  width: 26px;
  height: 14px;
  border-radius: 999px;
  background: #2563eb;
}

.creative-tool-mark--badge {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #f59e0b;
}

.creative-tool-mark--star {
  width: 20px;
  height: 20px;
  border: 0;
  background: #eab308;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.shape-tool-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.shape-tool-group .tool-btn {
  min-width: 0;
}

.designer-layer-stack-header {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.designer-layer-stack-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.graphic-card-browser {
  display: grid;
  gap: 8px;
}

.designer-graphics-tray .graphic-card-browser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.designer-starter-presets {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1219;
}

.designer-starter-heading {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.designer-starter-grid {
  display: grid;
  gap: 6px;
}

.designer-starter-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 4px 8px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a22;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.designer-starter-card:hover {
  border-color: #7dd3fc;
  background: #111827;
}

.designer-starter-name,
.designer-starter-description {
  display: block;
}

.designer-starter-name {
  grid-column: 2;
  font-size: 13px;
  font-weight: 800;
}

.designer-starter-description {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.graphic-card {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a22;
}

.designer-graphics-tray .graphic-card {
  width: 100%;
  min-width: 0;
}

.graphic-card,
.graphic-card-open {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
}

.graphic-card-open {
  width: 100%;
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.graphic-card--new {
  border-style: dashed;
  background: #11151d;
}

.graphic-card:hover,
.graphic-card.is-active {
  border-color: #7dd3fc;
}

.graphic-card.is-active {
  box-shadow: inset 3px 0 0 #7dd3fc;
  background: #102032;
}

.graphic-card.is-included:not(.is-active) {
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(125, 211, 252, 0.08);
}

.designer-graphics-tray .graphic-card.is-active {
  box-shadow: inset 0 3px 0 #7dd3fc;
}

.graphic-card-include {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-width: 0;
  padding-top: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.graphic-card-include input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #7dd3fc;
  cursor: pointer;
}

.graphic-card-include:has(input:checked) {
  color: #bfdbfe;
}

.graphic-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.graphic-card-action {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #11131a;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.graphic-card-action:hover:not(:disabled) {
  border-color: #7dd3fc;
  color: var(--text);
}

.graphic-card-action--danger:hover:not(:disabled) {
  border-color: #fca5a5;
  color: #fecaca;
}

.graphic-card-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.graphic-card-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(184, 199, 255, 0.1)),
    #0b0d12;
}

.graphic-card-preview--new {
  color: #7dd3fc;
  font-size: 20px;
  font-weight: 700;
}

.graphic-card-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.graphic-card-name,
.graphic-card-meta,
.graphic-card-state {
  display: block;
}

.graphic-card-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graphic-card-meta,
.graphic-card-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.graphic-card-state {
  color: #7dd3fc;
}

.layer-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  color: var(--text);
  padding: 6px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: grab;
}

.layer-list-select {
  display: grid;
  grid-template-columns: 26px 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 3px 4px;
  text-align: left;
  cursor: inherit;
}

.layer-list-item.is-selected {
  border-color: rgba(76, 141, 255, 0.55);
  background: rgba(76, 141, 255, 0.18);
}

.layer-list-item.is-dragging {
  cursor: grabbing;
  opacity: 0.68;
}

.layer-list-item.is-drop-before,
.layer-list-item.is-drop-after {
  border-color: rgba(76, 141, 255, 0.7);
  background: rgba(76, 141, 255, 0.14);
}

.layer-list-item.is-drop-before::before,
.layer-list-item.is-drop-after::after {
  position: absolute;
  right: 8px;
  left: 8px;
  height: 4px;
  border-radius: 999px;
  background: #4c8dff;
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.22);
  content: "";
}

.layer-list-item.is-drop-before::before {
  top: -2px;
}

.layer-list-item.is-drop-after::after {
  bottom: -2px;
}

.layer-list-drag-handle {
  font-size: 14px;
}

.layer-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.layer-list-icon--image {
  position: relative;
}

.layer-list-icon--text {
  border-color: rgba(248, 250, 252, 0.24);
  background: #1f2937;
}

.layer-list-icon--image::before,
.layer-list-icon--image::after {
  position: absolute;
  content: "";
}

.layer-list-icon--image::before {
  right: 5px;
  left: 5px;
  bottom: 5px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, transparent 47%, #7dd3fc 48%);
}

.layer-list-icon--image::after {
  top: 5px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #facc15;
}

.layer-list-icon--rectangle {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  background: #0f766e;
}

.layer-list-icon--accent-strip {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #14b8a6;
}

.layer-list-icon--pill {
  width: 22px;
  height: 14px;
  border-radius: 999px;
  background: #2563eb;
}

.layer-list-icon--badge {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f59e0b;
}

.layer-list-icon--star {
  border: 0;
  background: #eab308;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.layer-list-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-list-delete {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 7px;
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  cursor: pointer;
}

.layer-list-delete:hover {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(127, 29, 29, 0.44);
  color: #fee2e2;
}

.layer-list-delete-icon,
.layer-list-delete-icon::before,
.layer-list-delete-icon::after {
  position: absolute;
  content: "";
}

.layer-list-delete-icon {
  width: 10px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.layer-list-delete-icon::before {
  top: -4px;
  left: -1px;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.layer-list-delete-icon::after {
  top: -6px;
  left: 3px;
  width: 4px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.empty-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.inspector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.inspector-grid .field {
  min-width: 0;
}

.inspector-grid input,
.inspector-grid select {
  max-width: 100%;
  min-width: 0;
}

.inspector-section {
  min-width: 0;
  margin-bottom: 12px;
}

.inspector-heading {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
}

.inspector-heading strong {
  color: var(--text);
  font-size: 13px;
}

.inspector-heading span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.inspector-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.image-asset-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  font-size: 13px;
  overflow: hidden;
}

.image-asset-name,
.image-asset-meta {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-asset-name {
  overflow-wrap: anywhere;
}

.image-asset-meta {
  color: var(--muted);
  white-space: nowrap;
}

.graphic-bin {
  display: grid;
  gap: 8px;
}

.operator-live-core {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 14px;
}

.operator-monitors {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.operator-monitors .monitor-panel {
  display: grid;
  grid-template-rows: auto auto;
}

.operator-monitors .stage-preview {
  height: clamp(260px, 26vw, 560px);
  max-width: none;
}

.monitor-panel--preview .stage-preview {
  border-color: rgba(34, 197, 94, 0.5);
}

.monitor-panel--program .stage-preview {
  border-color: rgba(239, 68, 68, 0.58);
}

.operator-primary-panel {
  border-color: rgba(76, 141, 255, 0.45);
  box-shadow: inset 3px 0 0 rgba(76, 141, 255, 0.72);
  padding-block: 12px;
}

.operator-sequence-panel {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.operator-shortcuts-panel {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
}

.operator-debug-panel {
  flex: 0 0 auto;
}

.operator-sequence-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.operator-sequence-header h2 {
  margin: 0;
}

.operator-sequence-kicker {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-load-actions {
  display: flex;
  gap: 8px;
}

.operator-load-actions .tool-btn {
  width: 100%;
}

.operator-rundown-live-actions {
  display: grid;
  gap: 8px;
}

.operator-rundown-live-actions .tool-btn {
  min-height: 40px;
}

.operator-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.operator-actions .tool-btn {
  min-height: 40px;
  white-space: nowrap;
}

.operator-action-group {
  display: contents;
  gap: 8px;
}

.operator-action-group--transition {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-action-group--clear {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-rundown {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.operator-collapsible-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.operator-collapsible-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(76, 141, 255, 0.22);
  border-radius: 8px;
  background: rgba(76, 141, 255, 0.07);
  color: var(--text);
  padding: 7px 9px;
  text-align: left;
}

.operator-collapsible-header:hover,
.operator-collapsible-header:focus-visible {
  border-color: rgba(76, 141, 255, 0.48);
  background: rgba(76, 141, 255, 0.12);
}

.operator-collapsible-title {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-collapsible-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-collapsible-action {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.operator-collapsible-header::before {
  content: "▾";
  display: inline-grid;
  width: 12px;
  place-items: center;
  color: #93c5fd;
  font-size: 10px;
  transform: rotate(0deg);
}

.operator-collapsible-header[aria-expanded="false"]::before {
  transform: rotate(-90deg);
}

.operator-rundown-primary {
  border-top: 0;
  padding-top: 0;
}

.operator-rundown-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.operator-rundown-list {
  display: grid;
  gap: 6px;
}

.operator-rundown-list.is-pointer-reordering {
  cursor: grabbing;
  user-select: none;
}

.operator-rundown-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: stretch;
}

.operator-rundown-row[draggable="true"] {
  cursor: grab;
}

.operator-rundown-row.is-dragging {
  opacity: 0.55;
}

.operator-rundown-row.is-drop-before,
.operator-rundown-row.is-drop-after {
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.22);
}

.operator-rundown-row.is-drop-before::before,
.operator-rundown-row.is-drop-after::after {
  position: absolute;
  left: 6px;
  right: 6px;
  z-index: 3;
  height: 4px;
  border-radius: 999px;
  background: #4c8dff;
  box-shadow: 0 0 0 2px rgba(76, 141, 255, 0.22);
  content: "";
  pointer-events: none;
}

.operator-rundown-row.is-drop-before::before {
  top: -5px;
}

.operator-rundown-row.is-drop-after::after {
  bottom: -5px;
}

.operator-rundown-select {
  display: grid;
  grid-template-columns: 26px 28px 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
}

.operator-rundown-drag {
  font-size: 15px;
}

.drag-reorder-handle {
  display: grid;
  width: 26px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: grab;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  touch-action: none;
}

.drag-reorder-handle:hover,
.drag-reorder-handle:focus-visible {
  border-color: rgba(139, 178, 255, 0.55);
  background: rgba(76, 141, 255, 0.12);
  color: var(--text);
}

.layer-list-item.is-dragging .layer-list-drag-handle,
.layer-list.is-pointer-reordering .layer-list-drag-handle,
.operator-rundown-row.is-dragging .operator-rundown-drag,
.operator-rundown-list.is-pointer-reordering .operator-rundown-drag {
  cursor: grabbing;
}

.generic-graphic-thumb,
.operator-graphic-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #080a0f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.generic-graphic-thumb::before,
.generic-graphic-thumb::after,
.operator-graphic-thumb::before,
.operator-graphic-thumb::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.generic-graphic-thumb--text::before,
.operator-graphic-thumb--text::before {
  inset: auto 7px 7px 7px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.generic-graphic-thumb--shape::before,
.generic-graphic-thumb--rectangle::before,
.generic-graphic-thumb--accent-strip::before,
.generic-graphic-thumb--pill::before,
.generic-graphic-thumb--badge::before,
.generic-graphic-thumb--star::before,
.operator-graphic-thumb--rectangle::before,
.operator-graphic-thumb--accent-strip::before,
.operator-graphic-thumb--pill::before,
.operator-graphic-thumb--badge::before,
.operator-graphic-thumb--star::before {
  inset: 9px 8px;
  border-radius: 3px;
  background: rgba(76, 141, 255, 0.6);
}

.generic-graphic-thumb--accent-strip::before,
.operator-graphic-thumb--accent-strip::before {
  inset-block: 12px;
  border-radius: 999px;
}

.generic-graphic-thumb--pill::before,
.operator-graphic-thumb--pill::before {
  border-radius: 999px;
}

.generic-graphic-thumb--badge::before,
.operator-graphic-thumb--badge::before {
  inset: 7px 18px;
  border-radius: 999px;
}

.generic-graphic-thumb--star::before,
.operator-graphic-thumb--star::before {
  inset: 7px 14px;
  border-radius: 0;
  background: #eab308;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.generic-graphic-thumb--image::before,
.operator-graphic-thumb--image::before {
  inset: 7px 9px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(148, 242, 181, 0.55) 50%),
    rgba(76, 141, 255, 0.28);
}

.generic-graphic-thumb--mixed::before,
.operator-graphic-thumb--mixed::before {
  inset: 8px 16px 7px 7px;
  border-radius: 4px;
  background: rgba(76, 141, 255, 0.45);
}

.generic-graphic-thumb--mixed::after,
.operator-graphic-thumb--mixed::after {
  inset: 13px 7px 8px 19px;
  border-radius: 999px;
  background: rgba(255, 217, 138, 0.65);
}

.generic-graphic-thumb--empty::before {
  inset: 7px 9px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

.generic-graphic-thumb--missing,
.operator-graphic-thumb--missing {
  border-color: rgba(255, 95, 86, 0.45);
  color: #ffaaa4;
}

.generic-graphic-thumb-mark,
.operator-graphic-thumb-mark {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.generic-graphic-thumb-swatches,
.operator-graphic-thumb-swatches {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  gap: 2px;
}

.generic-graphic-thumb-swatch,
.operator-graphic-thumb-swatch {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 999px;
}

.operator-rundown-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operator-rundown-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.operator-rundown-label,
.operator-rundown-source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-rundown-source {
  color: var(--muted);
  font-size: 11px;
}

.operator-rundown-row.is-selected .operator-rundown-select {
  border-color: rgba(76, 141, 255, 0.65);
  background: rgba(76, 141, 255, 0.18);
}

.operator-rundown-row.is-preview .operator-rundown-select {
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.92);
}

.operator-rundown-row.is-program .operator-rundown-select {
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.95);
}

.operator-rundown-row.is-preview.is-program .operator-rundown-select {
  box-shadow:
    inset 3px 0 0 rgba(34, 197, 94, 0.92),
    inset 6px 0 0 rgba(239, 68, 68, 0.95);
}

.operator-rundown-row.is-missing .operator-rundown-select {
  border-color: rgba(255, 95, 86, 0.55);
}

.operator-rundown-delete {
  display: grid;
  place-items: center;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  min-height: 54px;
  aspect-ratio: 1;
  justify-self: end;
  border-color: rgba(255, 95, 86, 0.35);
  background: rgba(255, 95, 86, 0.1);
  padding: 0;
  color: #ffaaa4;
}

.operator-rundown-delete:hover,
.operator-rundown-delete:focus-visible {
  border-color: rgba(255, 95, 86, 0.65);
  background: rgba(255, 95, 86, 0.18);
  color: #ffd0cc;
}

.operator-rundown-delete-icon {
  position: relative;
  width: 13px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.operator-rundown-delete-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -5px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.operator-rundown-delete-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.operator-rundown-state {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 20px;
}

.operator-rundown-badge {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 10px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.operator-rundown-badge--program {
  border-color: rgba(239, 68, 68, 0.65);
  color: #fca5a5;
}

.operator-rundown-badge--missing {
  border-color: rgba(250, 204, 21, 0.58);
  color: #fde68a;
}

.operator-secondary-section {
  border-top: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  padding: 8px;
}

.operator-secondary-section summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style-position: inside;
  text-transform: uppercase;
}

.operator-secondary-section[open] summary {
  margin-bottom: 8px;
}

.operator-secondary-body {
  display: grid;
  gap: 8px;
}

.operator-collapsible-section--add-graphics .operator-secondary-body {
  grid-template-columns: 1fr;
}

.operator-rundown-management {
  display: grid;
  gap: 8px;
}

.operator-rundown-management-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-rundown-helper {
  color: var(--muted);
  font-size: 11px;
}

.operator-fast-action-list {
  display: grid;
  gap: 6px;
}

.operator-add-graphic-list {
  display: grid;
  gap: 6px;
}

.operator-add-graphic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.operator-add-graphic-summary {
  display: grid;
  grid-template-columns: 24px 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  color: var(--text);
  padding: 7px 10px;
}

.operator-add-graphic-button {
  min-width: 40px;
  padding-inline: 0;
  font-size: 18px;
  line-height: 1;
}

.operator-fast-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.operator-fast-action-select {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
}

.operator-fast-action-hotkey {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operator-fast-action-row.is-selected .operator-fast-action-select {
  border-color: rgba(76, 141, 255, 0.65);
  background: rgba(76, 141, 255, 0.18);
}

.operator-fast-action-row.is-loaded .operator-fast-action-select {
  box-shadow: inset 3px 0 0 rgba(40, 199, 111, 0.85);
}

.operator-fast-action-indicator {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.operator-fast-action-state {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 20px;
}

.operator-fast-action-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-fast-action-badge {
  border: 1px solid rgba(34, 197, 94, 0.65);
  border-radius: 999px;
  color: #86efac;
  font-size: 10px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.operator-shortcut-help {
  display: grid;
  gap: 10px;
}

.operator-shortcut-help-title {
  color: #8bb2ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.operator-shortcut-help-item {
  display: grid;
  gap: 3px;
  align-content: start;
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}

.operator-shortcut-help-item kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 2px 6px;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operator-shortcut-help-item span {
  min-width: 0;
}

.operator-future-controls-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  padding-top: 8px;
}

.graphic-bin-item {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131a;
  color: var(--text);
  padding: 9px 12px;
  text-align: left;
}

.graphic-bin-item.is-selected {
  border-color: rgba(76, 141, 255, 0.55);
  background: rgba(76, 141, 255, 0.18);
}

.session-diagnostics {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.diagnostic-row strong {
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .designer-workspace {
    grid-template-columns: 280px 1fr;
  }

  .operator-monitors {
    grid-template-columns: 1fr;
  }

  .operator-collapsible-section--add-graphics .operator-secondary-body {
    grid-template-columns: 1fr;
  }
}

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