/* Appearance is a browser preference; Classic keeps the original workspace. */
:root {
  --accent: #48dbc0;
  --glass: rgba(13, 31, 44, 0.8);
  --glass-line: rgba(190, 230, 240, 0.16);
  --glass-text: #edf7fb;
}
body[data-style="glassy"] {
  --ink: #e5f2f8;
  --muted: #a1bdcb;
  --line: #b2d3e526;
  --green: var(--accent);
  --paper: #102837;
  --white: #153343;
  scrollbar-color: #4d7784 transparent;
  scrollbar-width: thin;
}
body[data-style="glassy"] .viewport-heading-chip {
  bottom: auto;
  right: auto;
  height: 30px;
}
body[data-style="glassy"] .viewport-top {
  position: absolute;
  top: 96px;
  left: calc(var(--explorer-width) + 105px);
  right: calc(var(--inspector-width) + 30px);
  padding: 0;
  justify-content: flex-end;
}
body[data-style="glassy"] .viewport-id {
  display: none;
}
body[data-style="glassy"] .segmented {
  background: #102a3dc9;
  border-color: #b4dce332;
  border-radius: 14px;
}
body[data-style="glassy"] .segmented button {
  color: #b5d3df;
}
body[data-style="glassy"] .segmented button.active {
  background: #61d8c224;
  color: #a1f8e5;
}
body[data-style="glassy"] .exploration {
  display: none;
}
body[data-style="glassy"] .viewport-guide {
  left: 90px;
  bottom: calc(var(--timeline-height) + 57px);
  font-size: calc(8px * var(--text-scale, 1));
}
body[data-style="glassy"] .asset-row {
  color: #b8d2de;
}
body[data-style="glassy"] .asset-row.active {
  background: #4fceb728;
  color: #c4ffee;
}
body[data-style="glassy"] .explorer-tabs button.active {
  color: #92edda;
  border-color: #62debf;
}
body[data-style="glassy"] .asset-tree {
  scrollbar-color: #496c7b transparent;
  scrollbar-width: thin;
}
body[data-style="glassy"] .search input {
  background: transparent;
}
body[data-style="glassy"] .account .avatar {
  background: #58bbac22;
  color: #8ce6d7;
  border-color: #7ad7ca44;
}
body[data-style="glassy"] .rail-button.active {
  background: #50d7bb1c;
  color: #99f4dc;
}
@media (max-width: 1200px) {
  .chart-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .chart-wall,
  .scenario-cards {
    grid-template-columns: 1fr;
  }
  .metric-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-style="glassy"] .viewport-top {
    left: 70px;
    right: 12px;
    top: 140px;
  }
  body[data-style="glassy"] .viewport-top .segmented button {
    font-size: calc(9px * var(--text-scale, 1));
  }
  body[data-style="glassy"] .viewport-tools {
    top: 200px;
  }
}
#experience-dock {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(var(--timeline-height) + 50px);
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 7px;
  border: 1px solid #bbcfc6;
  border-radius: 22px;
  background: #f4f7efee;
  box-shadow: 0 14px 40px #061e2520;
  backdrop-filter: blur(24px);
}
#experience-dock button,
#experience-dock .assistant-docked {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  width: auto;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 4px 8px;
  color: inherit;
  box-shadow: none;
  transform: none;
}
#experience-dock button:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-3px);
}
#experience-dock span {
  font-size: calc(21px * var(--text-scale, 1));
}
#experience-dock small {
  font-size: calc(9px * var(--text-scale, 1));
  white-space: nowrap;
}
#experience-dock [hidden] {
  display: none !important;
}
#experience-summary {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: calc(var(--timeline-height) + 120px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--glass-line);
  border-radius: 30px;
  background: var(--glass);
  color: #dceef5;
  font-size: calc(10px * var(--text-scale, 1));
  padding: 9px 14px;
  pointer-events: none;
  white-space: nowrap;
}
.live-spark {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  border-radius: 50%;
  animation: spark 3s infinite;
}
#notice-stack {
  position: fixed;
  z-index: 110;
  right: 22px;
  top: 90px;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.notice-card {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid #b8d9e54a;
  background: #102a3bef;
  color: #ecf8fc;
  box-shadow: 0 20px 70px #0005;
  backdrop-filter: blur(25px);
  border-radius: 20px;
  animation: enter 0.3s ease-out;
}
.notice-card.warning {
  border-color: #9587cd;
}
.notice-card strong {
  font-size: calc(12px * var(--text-scale, 1));
}
.notice-card p {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.5;
  margin: 6px 0;
}
.notice-icon {
  font-size: calc(25px * var(--text-scale, 1));
  color: var(--accent);
}
.notice-card button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 3px;
  font-size: calc(10px * var(--text-scale, 1));
}
.notice-dismiss {
  align-self: flex-start;
  margin-left: auto;
  font-size: calc(20px * var(--text-scale, 1)) !important;
}
body[data-style="glassy"] {
  background: #0d1e2b;
  color: var(--glass-text);
}
body[data-style="glassy"] .workspace,
body[data-style="glassy"] .main-content,
body[data-style="glassy"] .content-grid {
  display: contents;
}
body[data-style="glassy"] .viewport-panel {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  background: #0d1e2b;
  grid-column: auto;
}
body[data-style="glassy"] #viewport,
body[data-style="glassy"] #viewport-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body[data-style="glassy"] .header,
body[data-style="glassy"] .command-bar,
body[data-style="glassy"] .explorer,
body[data-style="glassy"] .inspector,
body[data-style="glassy"] .timeline-panel,
body[data-style="glassy"] .rail,
body[data-style="glassy"] #experience-dock {
  background: var(--glass);
  color: var(--glass-text);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 15px 55px #0002,
    inset 0 1px #ffffff0c;
  backdrop-filter: blur(26px) saturate(135%);
  border-radius: 22px;
}
body[data-style="glassy"] .header {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 16px;
  right: 16px;
  height: 66px;
  padding: 0 18px;
}
body[data-style="glassy"] .breadcrumb {
  display: none;
}
body[data-style="glassy"] .brand {
  color: #fff;
  min-width: 180px;
}
body[data-style="glassy"] .header-right {
  margin-left: auto;
}
body[data-style="glassy"] .command-bar {
  position: fixed;
  top: 23px;
  left: 230px;
  right: 315px;
  height: 47px;
  z-index: 45;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  gap: 10px;
  padding: 0;
}
body[data-style="glassy"] .work-domain > .eyebrow {
  display: none;
}
body[data-style="glassy"] .work-domain select {
  max-width: 180px;
}
body[data-style="glassy"] .layout-buttons {
  margin-left: auto;
}
body[data-style="glassy"] .rail {
  position: fixed;
  left: 16px;
  top: 96px;
  bottom: calc(var(--timeline-height) + 55px);
  width: 56px;
  padding: 10px 3px;
  z-index: 20;
}
body[data-style="glassy"] .explorer {
  position: fixed;
  left: 84px;
  top: 96px;
  bottom: calc(var(--timeline-height) + 55px);
  width: var(--explorer-width);
  z-index: 15;
}
body[data-style="glassy"] .inspector {
  position: fixed;
  right: 16px;
  top: 96px;
  bottom: calc(var(--timeline-height) + 55px);
  width: var(--inspector-width);
  height: auto;
  z-index: 15;
  padding: 18px;
  overflow: auto;
}
body[data-style="glassy"] .timeline-panel {
  position: fixed;
  left: 84px;
  right: 16px;
  bottom: 39px;
  height: var(--timeline-height);
  z-index: 20;
  padding: 15px 19px;
}
body[data-style="glassy"] .workspace-footer {
  position: fixed;
  bottom: 7px;
  left: 84px;
  right: 20px;
  z-index: 20;
  border: 0;
  background: transparent;
  color: #bbd4df;
  padding: 0;
  height: 25px;
  font-size: calc(9px * var(--text-scale, 1));
}
body[data-style="glassy"] .page-heading {
  display: none;
}
body[data-style="glassy"] .viewport-heading-chip {
  left: calc(var(--explorer-width) + 104px);
  top: 98px;
  max-width: 300px;
  background: var(--glass);
  color: #d9ebf4;
  border-color: var(--glass-line);
}
body[data-style="glassy"] .view-tabs {
  top: 98px;
  background: var(--glass);
  color: #eaf6fa;
  border-color: var(--glass-line);
}
body[data-style="glassy"] .kpis {
  left: calc(var(--explorer-width) + 110px);
  right: calc(var(--inspector-width) + 40px);
  top: 151px;
  justify-content: center;
  gap: 8px;
}
body[data-style="glassy"] .kpis article {
  background: #15324499;
  color: #fff;
  border-color: var(--glass-line);
  backdrop-filter: blur(15px);
  min-width: 112px;
  padding: 11px 13px;
  border-radius: 17px;
}
body[data-style="glassy"] .kpis footer {
  display: none;
}
body[data-style="glassy"] .viewport-tools {
  left: calc(var(--explorer-width) + 102px);
  top: 225px;
  bottom: auto;
  background: var(--glass);
  border-color: var(--glass-line);
  color: white;
}
body[data-style="glassy"] .compass {
  right: calc(var(--inspector-width) + 40px);
  bottom: calc(var(--timeline-height) + 70px);
}
body[data-style="glassy"] .explorer-grip {
  position: fixed;
  left: calc(var(--explorer-width) + 313px - 230px);
  top: 110px;
  bottom: calc(var(--timeline-height) + 70px);
  z-index: 25;
}
body[data-style="glassy"] .inspector-grip {
  position: fixed;
  right: calc(var(--inspector-width) + 14px);
  top: 110px;
  bottom: calc(var(--timeline-height) + 70px);
  z-index: 25;
}
body[data-style="glassy"].inspector-left .inspector {
  left: calc(var(--explorer-width) + 100px);
  right: auto;
}
body[data-style="glassy"].inspector-left .inspector-grip {
  left: calc(var(--explorer-width) + var(--inspector-width) + 100px);
  right: auto;
}
body[data-style="glassy"] .search,
body[data-style="glassy"] select,
body[data-style="glassy"] input,
body[data-style="glassy"] textarea {
  background: #071a2870;
  color: #d9ecf5;
  border-color: #9bd3e22b;
}
body[data-style="glassy"] option {
  background: #17313f;
  color: white;
}
body[data-style="glassy"] button,
body[data-style="glassy"] .secondary {
  color: #d8ebf2;
  border-color: #a3cbda30;
}
body[data-style="glassy"] button:hover {
  background-color: #72cbd21a;
}
body[data-style="glassy"] button.primary {
  background: var(--accent);
  color: #08242a;
  border: 0;
}
body[data-style="glassy"] .badge,
body[data-style="glassy"] .status-pill,
body[data-style="glassy"] .live-button {
  background: #42c6aa20;
  color: #83edd8;
  border-color: #54dbbb30;
}
body[data-style="glassy"] .tree-asset,
body[data-style="glassy"] .hierarchy-row {
  color: #d6e7ee;
}
body[data-style="glassy"] .tree-asset.active,
body[data-style="glassy"] .tree-asset:hover {
  background: #73d5d719;
}
body[data-style="glassy"] .measurement strong {
  color: #fff;
}
body[data-style="glassy"] .detail-rows > div,
body[data-style="glassy"] .explorer-footer,
body[data-style="glassy"] .inspector-top,
body[data-style="glassy"] .timeline-heading {
  border-color: #a5c9d51c;
}
body[data-style="glassy"] .measurement {
  border-color: #a5c9d530;
}
body[data-style="glassy"] .model-label {
  background: #0c243bc9;
  color: #e6f4fa;
  border-color: #74b9d855;
  box-shadow: 0 5px 15px #0003;
  backdrop-filter: blur(10px);
}
body[data-style="glassy"] .model-label.active {
  border-color: var(--accent);
}
body[data-style="glassy"] dialog {
  background: #132c3ff5;
  color: #e4f1f7;
  border: 1px solid #97c5d83b;
  box-shadow: 0 40px 130px #0008;
  backdrop-filter: blur(35px);
  border-radius: 25px;
}
body[data-style="glassy"] dialog .dialog-heading {
  border-color: #a9d0e32b;
}
body[data-style="glassy"] dialog .notice {
  background: #73c6db0d;
  color: #c3dce8;
  border-color: #88cde12c;
}
body[data-style="glassy"] dialog .notice.amber {
  background: #eab25c10;
  border-color: #eab25c50;
}
body[data-style="glassy"] dialog .list-card,
body[data-style="glassy"] dialog .detail-json {
  background: #091b2866;
  border-color: #91bfce24;
  color: #d4e5ef;
}
body[data-style="glassy"] dialog label {
  color: #b9d0df;
}
dialog::backdrop {
  background: #04121e87;
  backdrop-filter: blur(7px);
}
dialog[open] {
  animation: enter 0.25s ease-out;
}
.wide-dialog {
  width: min(1140px, 95vw) !important;
  max-width: 1140px !important;
  max-height: 91dvh;
}
.wide-dialog #dialog-content {
  padding: 24px;
}
.intelligence-hero,
.report-hero,
.device-intro,
.compliance-banner {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 23px;
  border: 1px solid #83b4c52b;
  border-radius: 22px;
  background: linear-gradient(120deg, #44d8bb13, #718dff12);
  margin-bottom: 20px;
}
.intelligence-hero h3,
.report-hero h3,
.device-intro h3,
.compliance-banner h3 {
  font-size: calc(27px * var(--text-scale, 1));
  letter-spacing: -1px;
  margin: 8px 0;
}
.intelligence-hero p,
.report-hero p {
  margin: 0;
  font-size: calc(12px * var(--text-scale, 1));
  opacity: 0.7;
}
.report-hero > span,
.device-orbit,
.compliance-banner > span {
  font-size: calc(46px * var(--text-scale, 1));
  color: var(--accent);
}
.compliance-banner > b {
  font-size: calc(9px * var(--text-scale, 1));
  letter-spacing: 1px;
  border: 1px solid #d2a971;
  padding: 10px;
  border-radius: 20px;
}
.dashboard-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.dashboard-filters label {
  min-width: 150px;
}
.intelligence-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.intelligence-stats article {
  border: 1px solid #81adbd33;
  padding: 17px;
  border-radius: 17px;
}
.intelligence-stats small {
  display: block;
  font-size: calc(10px * var(--text-scale, 1));
  text-transform: uppercase;
  opacity: 0.65;
}
.intelligence-stats strong {
  display: block;
  font-size: calc(30px * var(--text-scale, 1));
  margin-top: 10px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.chart-card {
  border: 1px solid #81adbd33;
  border-radius: 19px;
  padding: 14px;
  overflow: hidden;
}
.chart-card header {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.chart-card h4 {
  font-size: calc(12px * var(--text-scale, 1));
  margin: 0;
}
.chart-card .chart-number {
  font-size: calc(23px * var(--text-scale, 1));
  font-weight: 600;
  margin: 10px 0;
}
.chart-card small {
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.65;
}
.chart-card .chart-plot {
  width: 100%;
  min-height: 145px;
}
.chart-card footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.7;
}
.data-caveat {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.7;
  opacity: 0.65;
}
.studio-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.studio-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.studio-world-grid,
.drill-grid,
.scenario-grid,
.format-grid,
.compliance-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.drill-grid button,
.scenario-grid button,
.format-grid article,
.compliance-items article {
  padding: 20px;
  text-align: left;
  border: 1px solid #81adbd33;
  border-radius: 18px;
  background: #739ca008;
}
.drill-grid button > span,
.scenario-grid button > span {
  display: block;
  font-size: calc(28px * var(--text-scale, 1));
  margin-bottom: 14px;
  color: var(--accent);
}
.drill-grid strong,
.scenario-grid strong {
  display: block;
  font-size: calc(14px * var(--text-scale, 1));
}
.drill-grid small,
.scenario-grid small {
  display: block;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.6;
  margin-top: 8px;
  opacity: 0.65;
}
.format-grid strong,
.format-grid b {
  display: block;
  font-size: calc(11px * var(--text-scale, 1));
  margin: 7px 0;
}
.format-grid p,
.compliance-items p {
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.7;
  opacity: 0.7;
}
.format-extension {
  font-size: calc(24px * var(--text-scale, 1));
  color: var(--accent);
}
.compliance-items > article > span {
  font-family: monospace;
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--accent);
}
.compliance-items h3 {
  font-size: calc(14px * var(--text-scale, 1));
}
.compliance-items small {
  display: block;
  margin: 10px 0;
}
.device-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}
.code-editor {
  width: 100%;
  font:
    calc(12px * var(--text-scale, 1))/1.7 Consolas,
    monospace;
  padding: 17px;
  border-radius: 18px;
  resize: vertical;
}
.device-grid p {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.7;
}
.full {
  grid-column: 1/-1;
}
.calendar-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.calendar-tools h3 {
  margin: 0 auto 0 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.weekday {
  text-align: center;
  font-size: calc(10px * var(--text-scale, 1));
  padding: 10px;
  opacity: 0.65;
}
.calendar-day {
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 8px;
  border: 1px solid #7da6b52d;
  border-radius: 10px;
  background: #80b0bf06;
  overflow: hidden;
}
.calendar-day.today {
  border-color: var(--accent);
}
.calendar-day.selected {
  background: #56c8c322;
}
.calendar-day.outside {
  opacity: 0.3;
}
.calendar-day small {
  font-size: calc(9px * var(--text-scale, 1));
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}
.agenda-row,
.activity-row {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #86adbd28;
  align-items: center;
}
.agenda-row > div:nth-child(2),
.activity-row > div {
  flex: 1;
}
.agenda-row small,
.activity-row small {
  display: block;
  font-size: calc(10px * var(--text-scale, 1));
  opacity: 0.6;
  line-height: 1.8;
}
.agenda-time {
  font-size: calc(10px * var(--text-scale, 1));
  min-width: 70px;
}
.agenda-time strong {
  display: block;
  font-size: calc(18px * var(--text-scale, 1));
  margin-top: 5px;
}
.agenda-row button,
.activity-row button {
  font-size: calc(10px * var(--text-scale, 1));
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.activity-dot.warning {
  background: #ffaf72;
  box-shadow: 0 0 20px #ff9f4077;
}
.activity-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  font-size: calc(12px * var(--text-scale, 1));
}
.activity-summary button {
  margin-left: auto;
}
.report-library article {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #86adbd28;
  padding: 15px;
  border-radius: 15px;
  margin: 10px 0;
}
.report-library article div {
  flex: 1;
}
.report-library small {
  display: block;
  font-size: calc(10px * var(--text-scale, 1));
  opacity: 0.6;
  margin-top: 6px;
}
.pdf-mark {
  font: calc(10px * var(--text-scale, 1)) monospace;
  border: 1px solid #86adbd55;
  padding: 14px;
  border-radius: 9px;
}
.schematic-preview {
  max-height: 460px;
  overflow: auto;
}
.schematic-preview svg {
  width: 100%;
  height: auto;
}
.metric-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.metric-tiles article {
  padding: 18px;
  border: 1px solid #83afc132;
  border-radius: 18px;
}
.metric-tiles span,
.metric-tiles small {
  display: block;
  font-size: calc(10px * var(--text-scale, 1));
  opacity: 0.6;
}
.metric-tiles strong {
  display: block;
  font-size: calc(30px * var(--text-scale, 1));
  margin: 12px 0;
}
.chart-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.chart-card h3 {
  font-size: calc(13px * var(--text-scale, 1));
  margin: 8px 0;
}
.chart-card > div > strong {
  display: block;
  font-size: calc(24px * var(--text-scale, 1));
  margin-bottom: 10px;
}
.chart-card > div > span {
  font-size: calc(9px * var(--text-scale, 1));
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
}
.chart-card canvas {
  max-width: 100%;
}
.chart-card footer {
  padding-top: 12px;
}
.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.scenario-cards button {
  padding: 22px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid #86adbd28;
  background: #86adbd08;
}
.scenario-cards span {
  display: block;
  font-size: calc(9px * var(--text-scale, 1));
  color: var(--accent);
  letter-spacing: 2px;
}
.scenario-cards strong {
  display: block;
  font-size: calc(20px * var(--text-scale, 1));
  margin: 13px 0;
}
.scenario-cards small {
  display: block;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.7;
  opacity: 0.65;
}
.studio-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #5bf7c412, #8a7bff12);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.studio-hero h3 {
  font-size: calc(28px * var(--text-scale, 1));
  letter-spacing: -1px;
  margin: 10px 0;
}
.studio-hero p {
  font-size: calc(12px * var(--text-scale, 1));
  opacity: 0.65;
}
.studio-orb {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 20%,
    #a2ffed,
    #49bea6 30%,
    #203d5b 70%
  );
  box-shadow: 0 0 45px #56dfca44;
  animation: spark 5s infinite;
}
.theme-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.theme-preview {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid #86adbd55;
  padding: 18px;
  border-radius: 20px;
  cursor: pointer;
}
.theme-preview input {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 18px;
}
.theme-preview strong,
.theme-preview small {
  display: block;
  position: relative;
  margin-top: 8px;
}
.theme-preview small {
  font-size: calc(10px * var(--text-scale, 1));
  opacity: 0.65;
}
.mini-scene {
  display: block;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(140deg, #143b53, #49b3b340);
  position: relative;
}
.mini-scene:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 35px;
  border: 1px solid #fff5;
  border-radius: 9px;
  background: #ffffff20;
  backdrop-filter: blur(4px);
}
.mini-scene:after {
  content: "◇";
  position: absolute;
  left: 50%;
  font-size: calc(64px * var(--text-scale, 1));
  color: #80e7d1;
  top: 0;
}
.classic-preview .mini-scene {
  background: #dde7d3;
}
.classic-preview .mini-scene:before {
  background: #f6f7ef;
  border-color: #aabfa6;
}
.companion-hero {
  text-align: center;
  padding: 30px;
}
.companion-hero > span {
  font-size: calc(50px * var(--text-scale, 1));
  color: var(--accent);
  animation: spark 4s infinite;
}
.companion-hero p {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.8;
  opacity: 0.7;
}
.companion-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.companion-answer {
  white-space: pre-line;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.9;
  border: 1px solid #86adbd28;
  border-radius: 18px;
  padding: 24px;
  margin-top: 20px;
}
.viewport-alert {
  position: absolute;
  z-index: 8;
  max-width: 200px;
  pointer-events: none;
  background: #292e50ed;
  color: #e6deff;
  border: 1px solid #9587cd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: calc(11px * var(--text-scale, 1));
  box-shadow: 0 6px 24px #0c162d66;
  transform: translate(-50%, -100%);
}
.reduce-motion *,
.reduce-motion *:before,
.reduce-motion *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body.locked #experience-dock,
body.locked #experience-summary,
body.locked #notice-stack {
  display: none;
}
body.locked[data-style="glassy"] dialog {
  z-index: 1000;
}
.lock-screen img {
  animation: spark 4s ease-in-out infinite;
}
.lock-screen {
  background: radial-gradient(ellipse at 50% 35%, #153b50, #06111b) !important;
  color: #d9edf8 !important;
}
.lock-screen h1 {
  color: #ecf9ff;
}
.lock-screen p {
  color: #b2cfda;
}
@keyframes spark {
  50% {
    filter: brightness(1.3);
    opacity: 0.7;
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body[data-style="glassy"][data-layout="focus"] .explorer,
body[data-style="glassy"][data-layout="focus"] .inspector,
body[data-style="glassy"][data-layout="focus"] .resize-grip {
  display: none;
}
body[data-style="glassy"][data-layout="focus"] .viewport-heading-chip {
  left: 95px;
}
body[data-style="glassy"][data-layout="focus"] .viewport-tools {
  left: 95px;
  top: 150px;
}
body[data-style="glassy"][data-layout="focus"] .compass {
  right: 40px;
}
@media (max-width: 1200px) {
  body[data-style="glassy"] .header .brand {
    min-width: 150px;
  }
  body[data-style="glassy"] .command-bar {
    left: 195px;
    right: 290px;
  }
  body[data-style="glassy"] #domain-status {
    display: none;
  }
  body[data-style="glassy"] .layout-buttons button {
    font-size: calc(9px * var(--text-scale, 1));
    padding: 6px;
  }
  body[data-style="glassy"] .kpis {
    display: none;
  }
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #experience-dock button {
    min-width: 45px;
    padding: 4px 6px;
  }
  #experience-dock small {
    font-size: calc(8px * var(--text-scale, 1));
  }
}
@media (max-width: 950px) {
  body[data-style="glassy"] .inspector,
  body[data-style="glassy"] .inspector-grip {
    display: none;
  }
  body[data-style="glassy"] .command-bar {
    right: 180px;
  }
  body[data-style="glassy"] .layout-buttons {
    display: none;
  }
  body[data-style="glassy"] #account-label,
  body[data-style="glassy"] #connection {
    display: none;
  }
  body[data-style="glassy"] .view-tabs {
    left: auto;
    right: 20px;
    transform: none;
  }
  .studio-world-grid,
  .drill-grid,
  .scenario-grid,
  .format-grid,
  .compliance-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intelligence-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  body[data-style="glassy"] .explorer,
  body[data-style="glassy"] .explorer-grip {
    display: none;
  }
  body[data-style="glassy"] .rail {
    left: 8px;
    width: 48px;
  }
  body[data-style="glassy"] .header {
    left: 8px;
    right: 8px;
  }
  body[data-style="glassy"] .command-bar {
    left: 170px;
    right: 70px;
  }
  body[data-style="glassy"] .work-domain select {
    font-size: calc(9px * var(--text-scale, 1));
    max-width: 150px;
  }
  body[data-style="glassy"] .timeline-panel {
    left: 65px;
    right: 8px;
  }
  body[data-style="glassy"] .workspace-footer {
    left: 65px;
  }
  body[data-style="glassy"] .viewport-heading-chip {
    left: 70px;
    max-width: 190px;
  }
  body[data-style="glassy"] .viewport-tools {
    left: 70px;
    top: 150px;
  }
  #experience-dock {
    left: 65px;
    right: 8px;
    transform: none;
    overflow: auto;
    justify-content: flex-start;
    border-radius: 15px;
  }
  #experience-dock button {
    min-width: 44px;
  }
  #experience-summary {
    left: 70px;
    transform: none;
    font-size: calc(8px * var(--text-scale, 1));
    max-width: calc(100vw - 85px);
    overflow: hidden;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    height: 65px;
    font-size: calc(10px * var(--text-scale, 1));
  }
  .calendar-day small {
    display: none;
  }
  .intelligence-hero h3 {
    font-size: calc(22px * var(--text-scale, 1));
  }
  .intelligence-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-previews {
    grid-template-columns: 1fr;
  }
  .wide-dialog #dialog-content {
    padding: 15px;
  }
  .activity-summary {
    flex-wrap: wrap;
  }
  .studio-world-grid,
  .drill-grid,
  .scenario-grid,
  .format-grid,
  .compliance-items {
    grid-template-columns: 1fr;
  }
}
body[data-style="glassy"] .explorer-footer {
  display: none;
}
body[data-style="glassy"] .explorer-heading h2 {
  margin-bottom: 8px;
}
body[data-style="glassy"] .explorer {
  padding-bottom: 12px;
}
body[data-style="glassy"] .rail {
  scrollbar-width: none;
  overflow-x: hidden;
}
body[data-style="glassy"] .rail-button {
  min-width: 46px;
  width: 46px;
}
body[data-style="glassy"] .rail-button small {
  font-size: calc(7px * var(--text-scale, 1));
}
body[data-style="glassy"] #experience-dock {
  background: #102b3cce;
}
body[data-style="glassy"] .viewport-heading-chip {
  max-width: 220px;
}
.intelligence-hero {
  padding: 15px 20px;
  margin-bottom: 16px;
}
.intelligence-hero h3 {
  font-size: calc(24px * var(--text-scale, 1));
  margin: 6px 0;
}
.metric-tiles article {
  padding: 12px 16px;
  line-height: 1.3;
}
.metric-tiles strong {
  font-size: calc(27px * var(--text-scale, 1));
  margin: 8px 0;
}
.metric-tiles small {
  font-size: calc(9px * var(--text-scale, 1));
}
.dashboard-filters label {
  display: grid;
  gap: 6px;
  font-size: calc(10px * var(--text-scale, 1));
}
.dashboard-filters select {
  padding: 7px;
  border: 1px solid #83b4c54a;
  border-radius: 8px;
}
.dashboard-filters button {
  align-self: end;
  padding: 8px 12px;
  font-size: calc(11px * var(--text-scale, 1));
}
.local-map-title {
  position: absolute;
  left: 18px;
  top: 65px;
  z-index: 4;
  display: grid;
  gap: 7px;
  background: #173d50d9;
  color: #ddf6ff;
  padding: 15px;
  border-radius: 15px;
  font-size: calc(11px * var(--text-scale, 1));
}
.local-map-title small {
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.7;
}
.local-site-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 70px 20px 50px;
}
.local-site-map circle {
  cursor: pointer;
}
.local-site-map circle:hover {
  r: 2;
  fill: #ffc58d;
}
body[data-style="glassy"] #map-viewport {
  inset: 0;
}
body[data-style="glassy"] .local-map-title {
  left: calc(var(--explorer-width) + 105px);
  top: 145px;
}
body[data-style="glassy"] .local-site-map {
  padding: 110px calc(var(--inspector-width) + 30px)
    calc(var(--timeline-height) + 80px) calc(var(--explorer-width) + 95px);
}
body[data-style="glassy"] .map-context-tools {
  left: calc(var(--explorer-width) + 110px);
  right: auto;
  top: 200px;
  bottom: auto;
  display: flex;
  gap: 8px;
  color: #c7e2ec;
  background: #123344bd;
  border: 1px solid #83b4c54a;
  border-radius: 12px;
  padding: 9px;
}
@media (max-width: 1200px) {
  .chart-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .chart-wall,
  .scenario-cards {
    grid-template-columns: 1fr;
  }
  .metric-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-style="glassy"] .local-site-map {
    padding: 160px 20px 210px 70px;
  }
  body[data-style="glassy"] .local-map-title {
    left: 75px;
    top: 180px;
  }
  body[data-style="glassy"] .map-context-tools {
    left: 75px;
    top: 245px;
    font-size: calc(8px * var(--text-scale, 1));
  }
}
/* Compact scene header: identity, saved status, then view modes. */
body[data-style="glassy"] .viewport-top {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(180px, 1.5fr) max-content;
  align-items: center;
  gap: 8px;
  left: calc(var(--explorer-width) + 104px);
  right: calc(var(--inspector-width) + 30px);
  height: 36px;
}
body[data-style="glassy"] .viewport-top .viewport-heading-chip {
  position: static;
  min-width: 0;
  max-width: none;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
}
body[data-style="glassy"] .viewport-heading-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-style="glassy"] .viewport-top .kpis {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 5px;
  min-width: 0;
  pointer-events: auto;
}
body[data-style="glassy"] .viewport-top .kpis article {
  min-width: 0;
  min-height: 0;
  height: 34px;
  padding: 3px 7px;
  border-radius: 10px;
  background: #163748b8;
  overflow: hidden;
  line-height: 1.25;
}
body[data-style="glassy"] .viewport-top .kpis article > span {
  display: block;
  font-size: calc(8px * var(--text-scale, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.7;
}
body[data-style="glassy"] .viewport-top .kpis article > span b {
  display: none;
}
body[data-style="glassy"] .viewport-top .kpis article > div {
  font-size: calc(13px * var(--text-scale, 1));
  margin: 1px 0 0;
  white-space: nowrap;
  line-height: 1.1;
}
body[data-style="glassy"] .viewport-top .kpis small {
  font-size: calc(7px * var(--text-scale, 1));
  margin-left: 2px;
}
body[data-style="glassy"] .viewport-top .segmented {
  margin: 0;
  align-self: center;
}
body[data-style="glassy"] .viewport-top .segmented button {
  font-size: calc(8px * var(--text-scale, 1));
  padding: 6px 8px;
}
body[data-style="glassy"] .viewport-tools {
  top: 151px;
}
body[data-style="glassy"][data-layout="focus"] .viewport-top {
  left: 95px;
  right: 24px;
}
body[data-style="classic"] .viewport-top {
  position: static;
}
body[data-style="classic"] .viewport-top .segmented,
body[data-style="classic"] .viewport-id {
  position: relative;
  z-index: 3;
}
.timeline-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: calc(9px * var(--text-scale, 1));
  line-height: 1.3;
  color: #718d80;
  margin-bottom: 4px;
}
#timeline-series {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.timeline-key {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  font-size: calc(8px * var(--text-scale, 1));
  opacity: 0.8;
}
.timeline-key i {
  width: 13px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.timeline-key b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #efa858;
  display: inline-block;
  margin-left: 5px;
}
body[data-style="glassy"] .timeline-legend {
  color: #b7d0dc;
}
.timeline-ticks {
  margin-top: 6px;
}
body[data-style="glassy"] #timeline {
  accent-color: var(--accent);
  height: 4px;
  background: transparent;
  border: 0;
}
@media (min-width: 951px) and (max-width: 1100px) {
  body[data-style="glassy"] .viewport-top {
    grid-template-columns: minmax(65px, 1fr) minmax(150px, 1.3fr) max-content;
    gap: 4px;
  }
  body[data-style="glassy"] .viewport-top .kpis article {
    padding: 3px 4px;
  }
  body[data-style="glassy"] .viewport-top .segmented button {
    padding: 6px 5px;
    font-size: calc(7px * var(--text-scale, 1));
  }
}
@media (max-width: 950px) {
  body[data-style="glassy"] .viewport-top {
    right: 16px;
  }
}
@media (max-width: 680px) {
  body[data-style="glassy"] .viewport-top {
    left: 70px;
    right: 12px;
    top: 98px;
    grid-template-columns: minmax(75px, 1fr) minmax(165px, 2fr);
    height: auto;
    gap: 6px;
  }
  body[data-style="glassy"] .viewport-top .segmented {
    grid-column: 1/-1;
    justify-self: end;
  }
  .timeline-key {
    font-size: 0;
    gap: 5px;
  }
  .timeline-key i,
  .timeline-key b {
    display: inline-block;
  }
  body[data-style="glassy"] .viewport-tools {
    top: 185px;
  }
  .timeline-legend {
    font-size: calc(8px * var(--text-scale, 1));
  }
}

/* Clear glass controls, keyboard focus and persistent object inspection. */
body[data-style="glassy"]
  :is(
    input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not(
        [type="color"]
      ),
    select,
    textarea
  ),
body[data-style="glassy"]
  .form-grid
  :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
    select,
    textarea
  ),
body[data-style="glassy"] .field :is(input, select) {
  background-color: #102c3e;
  color: #f0f8ff;
  border: 1px solid #7ca6b8;
  color-scheme: dark;
}
body[data-style="glassy"] input::placeholder,
body[data-style="glassy"] textarea::placeholder {
  color: #b2c9d8;
  opacity: 1;
}
body[data-style="glassy"] input:-webkit-autofill {
  -webkit-text-fill-color: #eff8ff;
  box-shadow: 0 0 0 1000px #102c3e inset;
  caret-color: #eff8ff;
}
body[data-style="glassy"] :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
}
body[data-style="glassy"] select option {
  background: #102c3e;
  color: #f0f8ff;
}
body[data-style="glassy"] input:disabled,
body[data-style="glassy"] select:disabled {
  color: #a7bdc9;
  opacity: 0.7;
}
.asset-row.active {
  box-shadow:
    inset 4px 0 var(--accent),
    inset 0 0 0 1px var(--accent);
  font-weight: 700;
}
body[data-style="glassy"] .asset-row.active {
  background: #24635d;
  color: #f3fffc;
}
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.model-label {
  pointer-events: auto;
  cursor: pointer;
}
.model-label.active {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px #50e6ca88;
}
.selection-actions {
  position: fixed;
  z-index: 9;
  left: calc(var(--explorer-width) + 155px);
  top: 145px;
  width: 235px;
  border: 1px solid #5cdbcf8a;
  background: #102c3eea;
  color: #effaff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 35px #00141c77;
  backdrop-filter: blur(22px);
}
.selection-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: 700;
}
.selection-heading i,
.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6beac7;
  box-shadow: 0 0 10px #68e6c9;
  flex-shrink: 0;
  display: inline-block;
}
.selection-heading span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-heading button {
  border: 0;
  background: transparent;
  color: inherit;
}
.radial-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}
.radial-actions button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1a4254;
  color: #ecfaff;
  border: 1px solid #67a1ac;
  font-size: calc(9px * var(--text-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.radial-actions button b {
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 400;
}
.radial-actions button:hover {
  background: #287663;
  transform: translateY(-2px);
}
.selection-actions > small {
  display: block;
  font-size: calc(9px * var(--text-scale, 1));
  color: #b4d1de;
  line-height: 1.5;
}
.selection-drawer {
  position: fixed;
  z-index: 12;
  right: 18px;
  top: 95px;
  bottom: calc(var(--timeline-height) + 55px);
  width: 330px;
  max-width: calc(100vw - 90px);
  background: #fffef6;
  color: #244836;
  border: 1px solid #76ad9e;
  border-radius: 20px;
  box-shadow: 0 16px 50px #00142166;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.selection-drawer > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #97b7b544;
  gap: 8px;
}
.selection-drawer h2 {
  font-size: calc(16px * var(--text-scale, 1));
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.selection-drawer header small {
  font-size: calc(8px * var(--text-scale, 1));
  letter-spacing: 0.15em;
  opacity: 0.7;
}
.selection-drawer header button {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: calc(22px * var(--text-scale, 1));
}
#selection-content {
  padding: 14px;
  overflow: auto;
  flex: 1;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.6;
}
#selection-content button,
#selection-content select {
  padding: 8px;
  border: 1px solid #71a0a65e;
  border-radius: 9px;
  max-width: 100%;
}
#selection-content label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
#selection-content .form-actions {
  flex-wrap: wrap;
}
body[data-style="glassy"] .selection-drawer {
  background: #102a3cf2;
  color: #e2f2f8;
  backdrop-filter: blur(25px);
}
.property-group {
  border: 1px solid #80a6ab40;
  border-radius: 10px;
  margin: 7px 0;
  overflow: hidden;
}
.property-group > summary {
  cursor: pointer;
  padding: 10px;
  background: #719da014;
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: 700;
}
.property-group summary small {
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.65;
  margin-left: 6px;
  font-weight: 400;
}
.property-group > .property-group {
  margin: 7px;
}
.property-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.8fr) minmax(0, 1.2fr);
  gap: 9px;
  padding: 8px 10px;
  border-top: 1px solid #7d9caa20;
  font-size: calc(10px * var(--text-scale, 1));
  overflow-wrap: anywhere;
}
.property-row > span {
  opacity: 0.7;
}
.property-row strong {
  font-weight: 500;
  white-space: pre-wrap;
}
.property-limit {
  padding: 8px;
  opacity: 0.65;
  font-size: calc(10px * var(--text-scale, 1));
}
.site-cards {
  display: grid;
  gap: 8px;
}
.site-cards button {
  display: flex;
  gap: 10px;
  text-align: left;
  background: #6cb7aa10;
  align-items: center;
}
.site-cards b {
  font-size: calc(23px * var(--text-scale, 1));
  color: var(--accent);
}
.site-cards span {
  flex: 1;
}
.site-cards strong,
.site-cards small {
  display: block;
}
.site-cards small {
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.7;
}
.site-cards em {
  font-size: calc(8px * var(--text-scale, 1));
  white-space: nowrap;
  font-style: normal;
  color: var(--accent);
}
.atlas-label {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  background: #102d42ee;
  color: #c1ffee;
  border: 1px solid #5ec7bf;
  padding: 7px 12px;
  border-radius: 18px;
  font-size: calc(10px * var(--text-scale, 1));
  cursor: pointer;
  box-shadow: 0 0 16px #3ee8d933;
}
.camera-card {
  padding: 12px;
  border: 1px solid #7da6b14a;
  border-radius: 12px;
  margin: 9px 0;
}
.camera-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.camera-card small {
  font-size: calc(9px * var(--text-scale, 1));
  opacity: 0.7;
}
.camera-card button {
  margin: 3px;
  font-size: calc(10px * var(--text-scale, 1));
}
.status-light.occupied {
  background: #ffc575;
  box-shadow: 0 0 10px #f9ac4e;
}
body.locked :is(.selection-actions, .selection-drawer) {
  display: none !important;
}
body[data-layout="focus"] .selection-actions {
  left: 145px;
}
@media (max-width: 950px) {
  .selection-actions {
    left: 100px;
    top: 142px;
  }
  .selection-drawer {
    width: 310px;
    top: 140px;
  }
  .layout-buttons {
    gap: 3px;
  }
  .layout-buttons button {
    font-size: calc(9px * var(--text-scale, 1));
  }
}
@media (max-width: 680px) {
  .selection-actions {
    left: 70px;
    top: auto;
    bottom: calc(var(--timeline-height) + 120px);
    width: 200px;
  }
  .selection-drawer {
    top: 150px;
    bottom: calc(var(--timeline-height) + 45px);
    right: 8px;
  }
  .radial-actions {
    gap: 7px;
  }
}

body[data-style="glassy"]
  :is(
    #tree-mode,
    #workspace-domain,
    #history-day,
    #replay-speed,
    #asset-search
  ) {
  background-color: #102c3e;
  color: #f0f8ff;
  border-color: #7ca6b8;
  color-scheme: dark;
}
body[data-style="glassy"] #asset-search {
  border: 0;
  background: transparent;
}
.selection-drawer {
  z-index: 40;
}
.selection-actions {
  z-index: 30;
}

/* Keep notices in the scene margin, away from both inspectors and forms. */
#notice-stack {
  top: auto;
  right: auto;
  left: calc(var(--explorer-width) + 110px);
  bottom: calc(var(--timeline-height) + 145px);
  width: 270px;
  max-height: 145px;
  overflow: auto;
  gap: 6px;
}
.notice-card {
  padding: 10px 12px;
  border-radius: 13px;
  gap: 8px;
}
.notice-card strong {
  font-size: calc(10px * var(--text-scale, 1));
}
.notice-card p {
  font-size: calc(9px * var(--text-scale, 1));
  margin: 4px 0;
}
.notice-card button {
  font-size: calc(9px * var(--text-scale, 1));
}
@media (max-width: 680px) {
  #notice-stack {
    left: 75px;
    width: 210px;
    max-height: 90px;
    bottom: calc(var(--timeline-height) + 130px);
  }
}
