@font-face {
  font-family: CompanionInter;
  src: url("public/fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: CompanionInter;
  src: url("public/fonts/Inter-SemiBold.woff") format("woff");
  font-weight: 600 800;
  font-display: swap;
}
/* Isolated browser demo. No native application code or network requests. */
.hero-showcase.interactive-showcase {
  display: block;
  max-width: 1200px;
  padding: 0;
  text-align: left;
}
.demo-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--paper);
  flex-wrap: wrap;
}
.demo-intro > span:last-child {
  color: var(--muted);
  margin-left: 8px;
}
.demo-intro strong {
  font-weight: 500;
}
.demo-shell {
  --dy: #f5c518;
  --db: #151515;
  --dp: #1b1b1b;
  --dl: #363636;
  --dt: #ededed;
  --dm: #b5b5b5;
  background: var(--db);
  color: var(--dt);
  border: 1px solid #3b4940;
  border-radius: 6px;
  box-shadow: 0 20px 60px #0003;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  position: relative;
  color-scheme: dark;
}
.demo-shell * {
  box-sizing: border-box;
}
.demo-shell [hidden] {
  display: none !important;
}
.demo-shell button,
.demo-shell input,
.demo-shell select,
.demo-shell textarea {
  font: inherit;
}
.demo-shell button {
  border-radius: 4px;
  color: inherit;
  min-height: 44px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.demo-shell button:focus-visible,
.demo-shell input:focus-visible,
.demo-shell select:focus-visible,
.demo-shell textarea:focus-visible {
  outline: 2px solid var(--dy);
  outline-offset: 3px;
}
.demo-shell button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.demo-shell svg {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.demo-shell h3,
.demo-shell h4 {
  color: var(--dt);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.demo-shell p {
  color: var(--dm);
}
.demo-shell input:not([type="range"]),
.demo-shell select,
.demo-shell textarea {
  background: #171717;
  border: 1px solid #484848;
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--dt);
  max-width: 100%;
  font-size: 14px;
}
.demo-shell input::placeholder {
  color: #a2a2a2;
}
.demo-shell input[type="range"] {
  width: 100%;
  accent-color: var(--dy);
  min-height: 32px;
  margin: 8px 0 0;
}
.demo-shell textarea {
  resize: vertical;
  width: 100%;
  font:
    12px/1.5 "Courier New",
    monospace;
}
.demo-shell label {
  color: #ddd;
  font-size: 14px;
}
.demo-titlebar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--dl);
  background: #181818;
}
.demo-app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 1px;
}
.demo-app-brand b {
  display: grid;
  place-items: center;
  background: #fff;
  color: #171717;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0;
}
.demo-badge {
  font:
    10px/1.4 "Courier New",
    monospace;
  letter-spacing: 1px;
  color: var(--dy);
}
.demo-window-actions {
  display: flex;
  gap: 4px;
}
.demo-window-actions button {
  border: 0;
  background: transparent;
  width: 44px;
  display: grid;
  place-items: center;
  color: #aaa;
}
.demo-window-actions button:hover {
  background: #303030;
  color: var(--dy);
}
.demo-window-actions svg {
  width: 17px;
  height: 17px;
}
.demo-workspace {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 148px;
  flex: none;
  border-right: 1px solid var(--dl);
  padding: 14px 8px;
  background: #171717;
}
.demo-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 8px;
  color: var(--dm);
  font-size: 12px;
  border-radius: 3px;
  text-align: left;
}
.demo-nav button svg {
  width: 18px;
  height: 18px;
}
.demo-nav button:hover {
  background: #252525;
  color: #fff;
}
.demo-nav button[aria-selected="true"] {
  background: #ffcd0013;
  border-color: #ffcd004a;
  color: var(--dy);
}
.demo-main {
  flex: 1;
  min-width: 0;
}
.demo-panel {
  height: 590px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #666 #202020;
}
.demo-breadcrumb {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  color: #a6a6a6;
  border-bottom: 1px solid var(--dl);
  font:
    10px/1.5 "Courier New",
    monospace;
  letter-spacing: 0.5px;
}
.demo-breadcrumb > span {
  color: #999;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.demo-map-layout {
  display: flex;
  height: calc(100% - 46px);
}
.demo-map-area {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #0c3947;
  overflow: hidden;
}
.demo-map-viewport {
  position: absolute;
  inset: 0 0 32px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.demo-map-viewport:active {
  cursor: grabbing;
}
.demo-map-scene {
  width: min(100%, 512px);
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform;
  user-select: none;
}
.demo-map-scene > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.demo-map-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  background: #151515e8;
  padding: 4px;
  border: 1px solid #434343;
  border-radius: 5px;
}
.demo-map-tools button {
  min-height: 36px;
  min-width: 36px;
  background: #242424;
  border: 1px solid #444;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
}
.demo-map-tools button:hover {
  color: var(--dy);
  border-color: var(--dy);
}
.demo-map-tools svg {
  width: 16px;
  height: 16px;
}
.demo-map-tools output {
  min-width: 44px;
  text-align: center;
  font:
    12px "Courier New",
    monospace;
  color: #ddd;
}
.demo-map-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font:
    9px/1.5 "Courier New",
    monospace;
  color: #a8c2c9;
  background: #0b313d;
}
.demo-map-settings {
  width: 228px;
  flex: none;
  background: #171717;
  padding: 20px 16px;
  overflow: auto;
  border-left: 1px solid var(--dl);
}
.demo-map-settings h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.demo-map-settings > p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.demo-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  min-height: 44px;
}
.demo-setting label {
  font-size: 13px;
}
.demo-switch {
  position: relative;
  width: 42px;
  min-height: 44px;
  flex: none;
  border: 0;
  background: none;
  padding: 0;
}
.demo-switch:before {
  position: absolute;
  content: "";
  inset: 12px 0;
  background: #484848;
  border-radius: 30px;
}
.demo-switch span {
  position: absolute;
  top: 16px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f2f2f2;
  transition: transform 0.15s;
}
.demo-switch[aria-checked="true"]:before {
  background: var(--dy);
}
.demo-switch[aria-checked="true"] span {
  transform: translateX(22px);
  background: #171717;
}
.demo-range-label {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px !important;
}
.demo-range-label output {
  color: var(--dy);
  white-space: nowrap;
}
.demo-map-settings hr {
  margin: 20px -16px;
  border: 0;
  border-top: 1px solid var(--dl);
}
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  background: #232323;
  border: 1px solid #4a4a4a;
  color: #eee;
  border-radius: 4px;
  font-size: 13px !important;
  line-height: 1.4;
  white-space: normal;
}
.demo-btn:hover {
  background: #333;
  border-color: #777;
}
.demo-btn-yellow {
  border-color: var(--dy);
  background: var(--dy);
  color: #151515 !important;
  font-weight: 600;
}
.demo-btn-yellow:hover {
  background: #ffdc45;
  border-color: #ffdc45;
}
.demo-btn svg {
  width: 17px;
  height: 17px;
}
.demo-map-settings > .demo-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 12px !important;
}
.demo-map-settings > p.demo-map-disclaimer {
  font-size: 11px;
  margin: 14px 0 0;
  color: #a2a2a2;
}
.demo-calculated-zones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.demo-calculated-zones i {
  position: absolute;
  width: 21%;
  aspect-ratio: 1;
  background: #ffcd0030;
  border: 2px solid #ffcd0088;
  border-radius: 50%;
  left: 25%;
  top: 40%;
}
.demo-calculated-zones i:nth-child(2) {
  left: 55%;
  top: 19%;
  width: 14%;
  background: #dd795c33;
  border-color: #dd795c;
}
.demo-calculated-zones i:nth-child(3) {
  left: 60%;
  top: 66%;
  width: 18%;
}
.demo-user-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.demo-user-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font:
    10px "Courier New",
    monospace;
  white-space: nowrap;
  color: #fff;
  background: #161616db;
  padding: 3px 5px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ffcd0055;
}
.demo-user-marker:before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--dy);
  border-radius: 50%;
  border: 1px solid #171717;
}
.demo-content {
  padding: 24px;
  min-width: 0;
}
.demo-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.demo-section-heading h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.demo-section-heading p {
  font-size: 14px;
  line-height: 1.6;
}
.demo-count {
  font:
    11px "Courier New",
    monospace;
  color: var(--dy);
  white-space: nowrap;
}
.demo-group {
  background: #1b1b1b;
  border: 1px solid #3e3e3e;
  border-radius: 4px;
}
.demo-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dl);
}
.demo-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--dy) !important;
  text-align: left;
  min-width: 0;
  font-size: 14px;
}
.demo-collapse span {
  overflow-wrap: anywhere;
}
.demo-small-button {
  min-width: 44px;
  background: none;
  border: 1px solid #4a4a4a;
  padding: 8px 10px;
  font-size: 12px !important;
  flex: none;
}
.demo-small-button:hover {
  border-color: var(--dy);
  color: var(--dy);
}
.demo-group-controls {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #161616;
}
.demo-device-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #343434;
}
.demo-device-row:last-child {
  border-bottom: 0;
}
.demo-device-row > img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: none;
}
.demo-device-row > div {
  flex: 1;
  min-width: 0;
}
.demo-device-row strong {
  font-size: 17px;
  display: block;
  line-height: 1.4;
}
.demo-device-row small {
  font-size: 11px;
  color: var(--dm);
  display: block;
  margin-top: 5px;
  line-height: 1.6;
}
.demo-info {
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: #b8b8b8;
  border: 1px solid #343434;
  background: #191919;
  border-radius: 3px;
}
.demo-rename-form {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-rename-form label {
  width: 100%;
}
.demo-rename-form input {
  min-width: 0;
  flex: 1;
}
.demo-alarm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.demo-alarm-layout .demo-device-row {
  padding: 16px 12px;
  gap: 10px;
}
.demo-alarm-layout .demo-device-row > img {
  width: 44px;
  height: 44px;
}
.demo-alarm-layout .demo-device-row strong {
  font-size: 16px;
}
.demo-alarm-editor {
  padding: 16px;
}
.demo-alarm-editor label {
  display: block;
  margin-bottom: 10px;
}
.demo-alarm-editor input {
  width: 100%;
  font-size: 13px !important;
}
.demo-alarm-editor > .demo-btn {
  margin: 16px 0;
  width: 100%;
}
.demo-alarm-editor p {
  font-size: 12px;
  line-height: 1.7;
}
.demo-event-preview {
  padding: 24px;
  background: #211b18;
  border: 1px solid #644536;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-wrap: anywhere;
}
.demo-event-preview > span {
  font:
    10px/1.5 "Courier New",
    monospace;
  color: #dda983;
}
.demo-event-preview h4 {
  font-size: 25px;
  line-height: 1.3;
  margin: 20px 0 14px;
}
.demo-event-preview > p {
  font-size: 13px;
  line-height: 1.8;
}
.demo-event-preview.active {
  border-color: var(--dy);
  background: #28240f;
}
.demo-event-channels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.demo-event-channels span {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid #6c5b43;
  color: #ddc9ac;
  border-radius: 3px;
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #4a4a4a;
  background: #171717;
  padding: 0 12px;
  border-radius: 3px;
  margin-bottom: 20px;
  flex: 1;
  min-width: 0;
}
.demo-search svg {
  width: 18px;
  height: 18px;
  color: #a7a7a7;
}
.demo-search input {
  border: 0 !important;
  outline-offset: 0 !important;
  width: 100%;
  min-width: 0;
  padding-inline: 0 !important;
}
.demo-resource-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #363636;
  background: #1b1b1b;
}
.demo-resource-row > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: none;
}
.demo-resource-row > div {
  flex: 1;
  min-width: 0;
}
.demo-resource-row strong {
  font-size: 16px;
  display: block;
}
.demo-resource-row small {
  font-size: 11px;
  color: #aaa;
  display: block;
  margin-top: 4px;
}
.demo-resource-row b {
  font:
    20px "Courier New",
    monospace;
  white-space: nowrap;
  color: var(--dy);
}
.demo-empty {
  padding: 32px 16px;
  border: 1px dashed #555;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}
.demo-filter-toolbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 20px;
}
.demo-filter-toolbar .demo-search {
  margin: 0;
}
.demo-filter-toolbar button[aria-pressed="true"] {
  color: var(--dy);
  border-color: var(--dy);
}
.demo-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.demo-preset {
  border: 1px solid #444;
  padding: 16px;
  background: #1c1c1c;
  border-radius: 4px;
}
.demo-preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.demo-preset-top h4 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}
.demo-preset-fav {
  width: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  color: #aaa !important;
}
.demo-preset-fav[aria-pressed="true"] {
  color: var(--dy) !important;
}
.demo-preset-fav[aria-pressed="true"] svg {
  fill: var(--dy);
}
.demo-preset > small {
  font-size: 10px;
  color: #aaa;
  display: block;
  margin: 4px 0 16px;
}
.demo-preset-images {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}
.demo-preset-images img {
  width: calc((100% - 20px) / 5);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #272727;
  border: 1px solid #414141;
  padding: 3px;
  min-width: 0;
}
.demo-preset > .demo-btn {
  width: 100%;
}
.demo-scenario-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.demo-scenario-controls label {
  font-size: 13px;
}
.demo-scenario-controls select {
  width: auto;
}
.demo-scenario-controls .demo-btn {
  margin-left: auto;
}
.demo-scenario-graph {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.demo-node {
  padding: 20px 8px;
  min-width: 0;
  min-height: 210px;
  text-align: center;
  border: 1px solid #555;
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.demo-node > span {
  font:
    10px "Courier New",
    monospace;
  color: #aaa;
}
.demo-node > img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 18px 0;
}
.demo-node > b {
  font:
    48px/1 "Courier New",
    monospace;
  color: var(--dy);
  height: 60px;
  margin: 18px 0;
  display: grid;
  place-items: center;
}
.demo-node > strong {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.demo-node > small {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}
.demo-node.active {
  border-color: var(--dy);
  box-shadow: inset 0 0 0 1px #ffcd0033;
  background: #24220e;
}
.demo-wire {
  color: var(--dy);
  text-align: center;
  font-size: 24px;
}
.demo-scenario-log {
  padding: 14px 16px 14px 32px;
  border: 1px solid #363636;
  margin: 20px 0 0;
  background: #171717;
  font:
    12px/1.8 "Courier New",
    monospace;
  color: #ccc;
  min-height: 72px;
}
.demo-statusbar {
  border-top: 1px solid var(--dl);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  background: #181818;
  min-height: 42px;
  color: #999;
  font:
    9px/1.5 "Courier New",
    monospace;
}
.demo-statusbar > span:first-child {
  color: #b7ceba;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.demo-statusbar i {
  background: #77b779;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.demo-statusbar #demo-status {
  flex: 1;
  text-align: center;
  overflow-wrap: anywhere;
}
.demo-statusbar > span:last-child {
  white-space: nowrap;
}
.demo-footnote {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px auto 0;
}
.demo-preset-dialog {
  background: #1b1b1b;
  color: #eee;
  border: 1px solid #555;
  border-radius: 6px;
  width: min(660px, calc(100% - 32px));
  padding: 24px;
  max-height: 85vh;
  overflow: auto;
}
.demo-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.demo-dialog-head h3 {
  font-size: 24px;
  margin: 0;
}
.demo-preset-dialog > p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.demo-preset-dialog label {
  display: block;
  margin: 20px 0 10px;
}
.demo-preset-dialog textarea {
  display: block;
  margin-bottom: 16px;
}
.demo-preset-dialog > .demo-btn {
  margin-top: 0;
}
.demo-preset-dialog #demo-copy-status {
  font-size: 13px;
  margin: 12px 0 0;
}
.demo-dialog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #393939;
  font-size: 14px;
}
.demo-dialog-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.demo-shell.is-expanded {
  position: fixed;
  inset: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  border-color: #666;
}
.demo-shell.is-expanded .demo-workspace {
  flex: 1;
  min-height: 0;
}
.demo-shell.is-expanded .demo-main {
  height: 100%;
}
.demo-shell.is-expanded .demo-panel {
  height: 100%;
}
.demo-shell.is-expanded .demo-map-scene {
  width: min(100%, calc(100vh - 190px));
}
.demo-fullview {
  overflow: hidden;
}
@media (max-width: 1100px) {
  .demo-nav {
    width: 64px;
    padding: 12px 6px;
  }
  .demo-nav button {
    justify-content: center;
    padding: 10px;
  }
  .demo-nav button span {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  .demo-map-settings {
    width: 212px;
    padding-inline: 14px;
  }
  .demo-map-settings hr {
    margin-inline: -14px;
  }
  .demo-content {
    padding: 20px;
  }
  .demo-section-heading h3 {
    font-size: 23px;
  }
  .demo-alarm-layout {
    gap: 14px;
  }
  .demo-presets {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .demo-panel {
    height: 630px;
  }
  .demo-map-layout {
    flex-direction: column;
    height: auto;
  }
  .demo-map-area {
    flex: none;
    height: 390px;
  }
  .demo-map-scene {
    width: 358px;
    max-width: 100%;
  }
  .demo-map-settings {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--dl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    overflow: visible;
    padding: 16px;
  }
  .demo-map-settings > h3,
  .demo-map-settings > p,
  .demo-map-settings > hr {
    grid-column: 1/-1;
  }
  .demo-map-settings > p {
    margin-bottom: 4px;
  }
  .demo-setting {
    margin: 0;
  }
  .demo-map-settings > .demo-range-label,
  .demo-map-settings > input {
    grid-column: 1/-1;
  }
  .demo-map-settings hr {
    margin: 12px -16px;
  }
  .demo-alarm-layout {
    grid-template-columns: 1fr;
  }
  .demo-event-preview {
    min-height: 220px;
  }
  .demo-statusbar > span:last-child {
    display: none;
  }
  .demo-presets {
    grid-template-columns: 1fr;
  }
  .demo-preset-images img {
    max-width: 64px;
  }
  .demo-scenario-graph {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(
        0,
        1fr
      );
  }
  .demo-node > strong {
    font-size: 12px;
  }
  .demo-node > span {
    font-size: 8px;
  }
  .demo-node > small {
    font-size: 10px;
  }
  .demo-node {
    min-height: 190px;
    padding: 16px 6px;
  }
  .demo-shell.is-expanded .demo-map-scene {
    width: 358px;
  }
  .demo-shell.is-expanded .demo-map-area {
    height: 420px;
  }
}
@media (max-width: 560px) {
  .demo-intro {
    font-size: 12px;
    gap: 8px;
    margin-bottom: 16px;
  }
  .demo-intro > span:last-child {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 12px;
  }
  .demo-titlebar {
    height: 48px;
    padding: 0 6px 0 12px;
    gap: 4px;
  }
  .demo-app-brand {
    font-size: 10px;
    letter-spacing: 0.3px;
    gap: 8px;
  }
  .demo-app-brand b {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
  .demo-badge {
    display: none;
  }
  .demo-window-actions button {
    width: 38px;
    min-height: 44px;
  }
  .demo-workspace {
    flex-direction: column;
  }
  .demo-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--dl);
    gap: 4px;
  }
  .demo-nav button {
    padding: 8px 4px;
    gap: 6px;
    justify-content: center;
    font-size: 10px;
    min-height: 44px;
  }
  .demo-nav button span {
    position: static;
    clip: auto;
    width: auto;
    height: auto;
    white-space: normal;
    overflow: visible;
  }
  .demo-nav button svg {
    width: 16px;
    height: 16px;
  }
  .demo-main {
    width: 100%;
  }
  .demo-panel {
    height: 580px;
  }
  .demo-breadcrumb {
    font-size: 9px;
    padding: 12px;
    height: 42px;
    letter-spacing: 0;
  }
  .demo-breadcrumb > span {
    font-size: 8px;
    letter-spacing: 0;
  }
  .demo-map-area {
    height: 330px;
  }
  .demo-map-scene {
    width: 298px;
    max-width: 100%;
  }
  .demo-map-tools {
    top: 8px;
    right: 8px;
    padding: 3px;
    gap: 3px;
  }
  .demo-map-tools button {
    min-width: 36px;
    min-height: 38px;
    padding: 4px 6px;
  }
  .demo-map-tools output {
    font-size: 10px;
    min-width: 36px;
  }
  .demo-map-bottom {
    padding: 8px;
    font-size: 8px;
  }
  .demo-map-settings {
    gap: 4px 14px;
    padding: 16px 12px;
  }
  .demo-setting label {
    font-size: 12px;
  }
  .demo-setting {
    gap: 6px;
  }
  .demo-map-settings h3 {
    font-size: 14px;
  }
  .demo-map-settings hr {
    margin-inline: -12px;
  }
  .demo-map-settings > p {
    font-size: 12px;
  }
  .demo-map-settings > .demo-btn {
    font-size: 11px !important;
    padding: 8px;
  }
  .demo-map-settings > .demo-btn svg {
    width: 14px;
    height: 14px;
  }
  .demo-range-label {
    margin-top: 12px;
  }
  .demo-content {
    padding: 16px 12px;
  }
  .demo-section-heading {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .demo-section-heading h3 {
    font-size: 23px;
  }
  .demo-section-heading p {
    font-size: 13px;
  }
  .demo-count {
    font-size: 10px;
  }
  .demo-section-heading > .demo-btn {
    font-size: 12px !important;
  }
  .demo-group-header {
    padding: 8px 10px;
    flex-wrap: wrap;
  }
  .demo-small-button {
    font-size: 11px !important;
    min-height: 44px;
  }
  .demo-collapse {
    font-size: 13px;
  }
  .demo-group-controls {
    padding: 10px;
    gap: 8px;
  }
  .demo-group-controls .demo-btn {
    padding: 9px 10px;
    font-size: 11px !important;
    flex: 1;
  }
  .demo-device-row {
    gap: 10px;
    padding: 14px 10px;
  }
  .demo-device-row > img {
    width: 40px;
    height: 40px;
  }
  .demo-device-row strong {
    font-size: 14px;
  }
  .demo-device-row small {
    font-size: 10px;
  }
  .demo-info {
    font-size: 11px;
    margin-top: 16px;
    padding: 12px;
  }
  .demo-switch {
    width: 38px;
  }
  .demo-switch[aria-checked="true"] span {
    transform: translateX(18px);
  }
  .demo-rename-form {
    padding: 12px;
  }
  .demo-rename-form .demo-btn {
    width: 100%;
  }
  .demo-alarm-layout .demo-device-row strong {
    font-size: 14px;
  }
  .demo-alarm-editor {
    padding: 12px;
  }
  .demo-alarm-editor label {
    font-size: 13px;
  }
  .demo-event-preview {
    padding: 20px;
  }
  .demo-event-preview h4 {
    font-size: 24px;
  }
  .demo-resource-row {
    gap: 10px;
    padding: 12px 10px;
  }
  .demo-resource-row > img {
    width: 40px;
    height: 40px;
  }
  .demo-resource-row strong {
    font-size: 14px;
  }
  .demo-resource-row small {
    font-size: 10px;
  }
  .demo-resource-row b {
    font-size: 17px;
  }
  .demo-search {
    padding-inline: 10px;
  }
  .demo-search input {
    font-size: 12px !important;
  }
  .demo-search svg {
    width: 16px;
    height: 16px;
  }
  .demo-filter-toolbar {
    flex-wrap: wrap;
  }
  .demo-filter-toolbar .demo-search {
    width: 100%;
    flex-basis: 100%;
  }
  .demo-filter-toolbar .demo-btn {
    font-size: 12px !important;
  }
  .demo-preset {
    padding: 12px;
  }
  .demo-preset-top h4 {
    font-size: 15px;
  }
  .demo-preset-images img {
    max-width: none;
  }
  .demo-scenario-controls {
    gap: 8px;
  }
  .demo-scenario-controls label {
    font-size: 12px;
  }
  .demo-scenario-controls select {
    font-size: 12px !important;
    padding-inline: 8px;
  }
  .demo-scenario-controls .demo-btn {
    font-size: 11px !important;
    padding-inline: 8px;
  }
  .demo-scenario-graph {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: auto;
  }
  .demo-node {
    padding: 18px 12px;
    min-height: 190px;
  }
  .demo-node > strong {
    font-size: 16px;
  }
  .demo-node > span {
    font-size: 11px;
  }
  .demo-node > small {
    font-size: 12px;
  }
  .demo-wire {
    transform: rotate(90deg);
    height: 40px;
    line-height: 40px;
  }
  .demo-scenario-log {
    font-size: 11px;
    padding: 12px 12px 12px 28px;
  }
  .demo-statusbar {
    padding: 10px;
    gap: 10px;
    align-items: flex-start;
    font-size: 8px;
    min-height: 48px;
  }
  .demo-statusbar #demo-status {
    text-align: right;
  }
  .demo-footnote {
    font-size: 12px;
    margin-top: 16px;
  }
  .demo-footnote br {
    display: none;
  }
  .demo-preset-dialog {
    padding: 20px 16px;
  }
  .demo-dialog-head h3 {
    font-size: 22px;
  }
  .demo-preset-dialog label {
    font-size: 12px;
  }
  .demo-shell.is-expanded {
    inset: 6px;
  }
  .demo-shell.is-expanded .demo-workspace {
    overflow: hidden;
  }
  .demo-shell.is-expanded .demo-main {
    flex: 1;
    min-height: 0;
  }
  .demo-shell.is-expanded .demo-panel {
    height: 100%;
  }
  .demo-shell.is-expanded .demo-map-scene {
    width: 298px;
  }
  .demo-shell.is-expanded .demo-map-area {
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-shell * {
    transition: none !important;
  }
}

.demo-shell,
.demo-shell h3,
.demo-shell h4 {
  font-family: CompanionInter, Arial, sans-serif;
}
