#app { position: fixed; inset: 0; overflow: clip; background: var(--studio); }
#stage { position: absolute; inset: 0; z-index: var(--z-stage); overflow: clip; background: var(--studio); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 460ms var(--ease-out); }
.scene.in { opacity: 1; }
.scene.out { opacity: 0; pointer-events: none; }
.scene canvas { display: block; }
#hud { position: absolute; inset: 0; z-index: var(--z-hud); pointer-events: none; overflow: clip; }
#hud > * { pointer-events: auto; }

#hdr { position: absolute; z-index: var(--z-hdr); top: calc(var(--top) + env(safe-area-inset-top, 0px)); inset-inline-start: var(--gut); max-width: calc(100vw - 2 * var(--gut)); display: flex; align-items: center; pointer-events: none !important; }
#hdr[hidden] { display: none; }
#hdr > * { pointer-events: auto; }
.orb-path { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; height: 40px; padding: 0 4px; border-radius: var(--r-sm); background-color: var(--sf-bg); -webkit-backdrop-filter: var(--sf-blur); backdrop-filter: var(--sf-blur); box-shadow: var(--sf-edge), var(--sf-shadow); overflow: hidden; font-family: var(--font); }
.orb-path-inline { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 0; margin-inline-start: -8px; height: 32px; }
.orb-path-inline a, .orb-path-inline span:not(.sep-icon) { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 10px rgba(0, 0, 0, .3); }
:is([data-surface], .glass, .glass-solid, .orb-card) .orb-path-inline a, :is([data-surface], .glass, .glass-solid, .orb-card) .orb-path-inline span:not(.sep-icon) { text-shadow: none; }
.orb-path:empty { display: none; }
.orb-path > * { flex: none; }
.orb-path .crumb-off { display: none; }
.orb-path a, .orb-path span:not(.sep-icon) { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 13px; line-height: 1; color: color-mix(in srgb, var(--sf-ink) 88%, transparent); text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.orb-path span.here, .orb-path > span:only-child { color: var(--sf-ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .orb-path a:hover { background: var(--sf-hover); color: var(--sf-ink); } }
.orb-path a:focus-visible { outline: 2px solid var(--sf-ink); outline-offset: -2px; }
.orb-path .sep-icon { display: grid; place-items: center; width: 13px; color: color-mix(in srgb, var(--sf-ink) 64%, transparent); }
.orb-path svg { width: 13px; height: 13px; }
.orb-path-back { padding-inline-start: 4px !important; font-weight: 500; color: var(--sf-ink) !important; }
.orb-path-back svg { width: 16px; height: 16px; color: var(--sf-ink-2); transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .orb-path-back:hover svg { transform: translateX(-2px); } [dir="rtl"] .orb-path-back:hover svg { transform: translateX(2px) scaleX(-1); } }
[dir="rtl"] .orb-path-back svg, [dir="rtl"] .orb-path .sep-icon svg, [dir="rtl"] .cl-btn svg, [dir="rtl"] .cl-tab-c svg { transform: scaleX(-1); }

#hdr-center { position: absolute; z-index: var(--z-hdr); top: calc(var(--top) + env(safe-area-inset-top, 0px)); inset-inline-end: var(--gut); max-width: calc(100vw - 2 * var(--gut)); display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-md); font-family: var(--font); }
#hdr-center[hidden], #hdr-center > [hidden] { display: none !important; }
#hdr-center.bare { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-slot { display: flex; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.hdr-nav .seg { background: transparent; padding: 0; }
.hdr-pick { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: 44px; min-width: 0; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--sf-ink); text-align: left; white-space: nowrap; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .hdr-pick:hover { background: var(--sf-hover); } }
.hdr-pick[aria-expanded="true"] { background: var(--sf-hover); }
.hdr-pick small { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1; color: var(--sf-ink-3); }
.hdr-pick > span { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; line-height: 1; }
.hdr-pick > span svg { width: 13px; height: 13px; color: var(--sf-ink-3); }
.hdr-pick.on > span { color: var(--sf-accent); }
.hdr-sep { flex: none; width: 1px; height: 24px; margin: 0 4px; background: var(--rule); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font); color: var(--chalk); background: var(--studio-2); border: 0; }

#caption {
  position: absolute; z-index: var(--z-panel);
  top: calc(var(--top) + env(safe-area-inset-top, 0px)); inset-inline-start: var(--gut);
  max-width: min(420px, calc(100vw - var(--panel-w) - 3 * var(--gut)));
  padding: 18px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  transition: opacity 200ms var(--ease-enter), transform 200ms var(--ease-enter);
}
#caption[hidden] { display: none; }
#caption.leaving { opacity: 0; transform: scale(.97); }
#caption h2 { font: 600 calc(var(--fs-display) - 6px)/1.1 var(--font); letter-spacing: -.02em; }
#caption .cap-sub { margin-top: 6px; color: var(--sf-ink-2); font-size: var(--fs-body); line-height: 1.45; }
#caption .cap-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
#caption .cap-facts b { display: block; font: 600 var(--fs-readout)/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#caption .cap-facts span { display: block; margin-top: 4px; font-size: 13px; color: var(--sf-ink-3); }
#caption .cap-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

#panel {
  position: absolute; z-index: var(--z-panel);
  top: calc(var(--top) + env(safe-area-inset-top, 0px)); inset-inline-end: var(--gut);
  bottom: calc(var(--console) + 16px + env(safe-area-inset-bottom, 0px));
  width: var(--panel-w-open); max-width: calc(100vw - 2 * var(--gut));
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  transform: translateX(calc(24px * var(--dir))); opacity: 0;
  transition: transform 240ms var(--ease-enter), opacity 200ms ease, visibility 0s linear 240ms;
  pointer-events: none;
  visibility: hidden;
}
#panel.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
#panel.wide { width: min(560px, calc(100vw - 2 * var(--gut))); }
.panel-hd { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0 12px; padding-inline: 20px 12px; }
.panel-hd h3 { font: 600 var(--fs-title)/1.2 var(--font); letter-spacing: -.015em; }
.panel-hd .sub { margin-top: 3px; font-size: 13px; color: var(--sf-ink-2); font-variant-numeric: tabular-nums; }
.panel-hd .ibtn-s { margin-top: -4px; }
.panel-body { flex: 1; min-height: 0; padding: 4px 20px 20px; }
.panel-ft { padding: 12px 16px 16px; border-top: 1px solid var(--sf-line); display: flex; align-items: center; gap: 8px; }

#bottom {
  position: absolute; z-index: var(--z-stack);
  left: 50%; bottom: calc(var(--console) + var(--dial-rise) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--stack-gap);
  max-width: calc(100vw - var(--rr) - 2 * var(--gut));
  pointer-events: none;
}
#bottom > * { pointer-events: auto; }
#dock { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-md); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#dock:not(.scrolls) { overflow: visible; }
#dock > .row { gap: 2px !important; }
#dock .ibtn:not(.on) { background: transparent; color: var(--sf-ink-2); }
@media (hover: hover) and (pointer: fine) { #dock .ibtn:not(.on):hover { background: var(--sf-hover); color: var(--sf-ink); } }
#dock::-webkit-scrollbar { display: none; }
#dock[hidden] { display: none; }
#dock .dock-sep { flex: none; width: 1px; align-self: stretch; margin: 8px 4px; background: var(--sf-line); }
#dock .seg { background: transparent; padding: 0; }
#dock .seg > button.icon-only { min-width: 40px; }
#luz { min-height: 0; }

#toasts { position: absolute; z-index: var(--z-toast); left: 50%; bottom: calc(var(--console) + var(--dial-rise) + 20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 2 * var(--gut)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px; padding-inline-start: 14px; border-radius: var(--r-md); background-color: var(--sf-bg-strong); font: 500 var(--fs-body)/1.35 var(--font); color: var(--sf-ink); pointer-events: auto; transform-origin: 50% 100%; animation: toast-in 200ms var(--ease-enter); }
.toast > span { padding: 6px 0; padding-inline-end: 10px; text-wrap: pretty; }
.toast:not(:has(.btn)) { padding-inline-end: 18px; }
.toast:not(:has(.btn)) > span { padding-inline-end: 0; }
.toast > svg { width: 18px; height: 18px; flex: none; color: var(--sf-accent); }
.toast .btn { min-height: 40px; }
.toast.leaving { opacity: 0; transform: scale(.97); transition: opacity 150ms ease, transform 150ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }

#modal-root { position: absolute; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gut); background: rgba(10, 9, 8, .6); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
#modal-root.open { opacity: 1; pointer-events: auto; }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 2 * var(--gut)); display: flex; flex-direction: column; border-radius: var(--r-lg); background-color: var(--sf-bg-strong); transform: scale(.97); transition: transform 200ms var(--ease-enter); font-family: var(--font); }
#modal-root.open .modal { transform: none; }
.modal.s { width: min(420px, 100%); }
.modal.l { width: min(880px, 100%); }
.modal.xl { width: min(1180px, 100%); }
.modal-hd { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0 8px; padding-inline: 24px 14px; }
.modal-hd .ibtn-s { margin-top: -2px; background: transparent; }
.modal-hd h3 { font: 600 calc(var(--fs-title) + 3px)/1.15 var(--font); letter-spacing: -.015em; }
.modal-body { padding: 8px 24px 24px; min-height: 0; }

#tide { position: absolute; inset: 0; z-index: var(--z-tide); pointer-events: none; opacity: 0; background: var(--studio); }
#tide.run { animation: tide 460ms var(--ease-out) 1; }
@keyframes tide { 0% { opacity: 0; } 30% { opacity: .18; } 100% { opacity: 0; } }

#loader { position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; background: var(--studio); transition: opacity 600ms var(--ease-out), visibility 600ms; font-family: var(--font); }
#loader.done { opacity: 0; visibility: hidden; }
#loader .wordmark { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--chalk); }
#loader .wordmark .brand-logo { display: block; height: 56px; }
#loader .wordmark .brand-logo svg { height: 100%; width: auto; display: block; overflow: visible; }
#loader .wordmark .brand-fallback { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
#loader .wordmark > span:not(.brand-logo) { display: block; margin-top: 16px; font-size: 13px; color: var(--chalk-3); }
#loader .wordmark i { position: relative; display: block; width: 120px; height: 2px; margin-top: 22px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); }
#loader .wordmark i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--lamp); animation: loader-run 1.2s ease-in-out infinite; }
@keyframes loader-run { from { left: -40%; } to { left: 100%; } }
@keyframes loader-run-rtl { from { right: -40%; } to { right: 100%; } }
[dir="rtl"] #loader .wordmark i::after { animation-name: loader-run-rtl; }

.glass-setting[hidden] { display: none; }

.empty { padding: 28px 8px; text-align: center; color: var(--sf-ink-2); text-wrap: pretty; }
.empty b { display: block; margin-bottom: 6px; color: var(--sf-ink); font: 600 20px/1.2 var(--font); }

.zoomctl { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.zoomctl.zc-row { flex-direction: row; }
.zc-group { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: var(--r-md); }
.zc-row .zc-group { flex-direction: row; }
.zc-btn { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); color: var(--sf-ink); background: transparent; transition: background-color 150ms ease, transform 150ms var(--ease-out), opacity 150ms ease; }
.zc-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .zc-btn:hover { background: var(--sf-hover); } }
.zc-btn:active { transform: scale(.96); }
.zc-btn:focus-visible { outline: 2px solid var(--sf-ink); outline-offset: -2px; }
.zc-btn[disabled] { opacity: .32; pointer-events: none; }
.zc-sep { position: relative; z-index: 1; width: 16px; height: 1px; margin: 2px 0; background: var(--sf-line); }
.zc-row .zc-sep { width: 1px; height: 16px; margin: 0 2px; }
.zc-gap { display: none; }
.zc-l .zc-btn { width: 40px; height: 40px; }
@media (pointer: coarse) { .zc-btn { width: 40px; height: 40px; } }

.mapdock { position: absolute; z-index: 20; left: max(var(--gut), calc(var(--left-reserve, 0px) + 12px)); bottom: calc(var(--console) + 16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; transition: left 320ms var(--ease-out); }
.mapdock[hidden] { display: none; }
.mapdock > *, .md-row > * { pointer-events: none; }
.md-slot > * { pointer-events: auto; }
.md-row { display: flex; align-items: flex-end; gap: 8px; }
.md-map { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.md-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.md-slot:empty, .md-map:not(:has(.md-slot > :not(.md-off):not([hidden]))) { display: none; }
.md-zoom { align-items: center; }
.mapdock [hidden], .mapdock .md-off { display: none !important; }
.mapdock [data-docked] { position: relative !important; inset: auto !important; margin: 0 !important; z-index: auto !important; }
.mapdock:not(.md-mini) .md-row { flex-direction: column; align-items: center; }
.mapdock.md-mini .md-compass { display: none; }
.mapdock .scalebar { pointer-events: none; }
.dock-ph { display: none !important; }

.minimap { position: relative; display: block; padding: 4px; border-radius: var(--r-md); touch-action: none; user-select: none; -webkit-user-select: none; }
.minimap > * { position: relative; z-index: 1; }
.mm-cv { display: block; width: var(--mm-w); height: var(--mm-h); border-radius: var(--r-sm); cursor: pointer; }
.minimap.dragging .mm-cv { cursor: grabbing; }
.mm-n { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: center; width: 22px; padding: 3px 0 4px; border-radius: var(--r-xs); color: var(--chalk); background: rgba(16, 15, 14, .72); box-shadow: var(--sf-edge); pointer-events: none; transition: transform 320ms var(--ease-out); }
.mm-n i { display: block; width: 10px; height: 10px; }
.mm-n svg { display: block; width: 100%; height: 100%; fill: var(--sf-accent); }
.mm-n b { font: 600 12px/1 var(--font); }

.compass { position: relative; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }
button.compass { cursor: pointer; transition: transform 150ms var(--ease-out); }
button.compass:active { transform: scale(.96); }
button.compass:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }
.compass svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cmp-b0, .cmp-b1, .cmp-b2 { stop-color: #22211F; }
.cmp-f0, .cmp-f1 { stop-color: #100F0E; }
.cmp-face { stroke: rgba(255, 255, 255, .12); stroke-width: .8; }
.cmp-bezel { stroke: rgba(255, 255, 255, .06); stroke-width: .6; }
.cmp-rose { transform-origin: 50px 50px; transition: transform 460ms var(--ease-out); }
.cmp-tk { stroke: var(--chalk-3); stroke-width: .7; opacity: .6; }
.cmp-tk-m { stroke: var(--chalk); stroke-width: 1.1; }
.cmp-l { fill: var(--chalk-2); font: 600 8.5px/1 var(--font); text-anchor: middle; dominant-baseline: central; }
.cmp-n { fill: var(--chalk); font-size: 11px; }
.cmp-nmark { fill: var(--lamp); }
.cmp-nd-n { fill: var(--lamp); }
.cmp-nd-ns { fill: var(--lamp-press); }
.cmp-nd-s { fill: #4A4946; }
.cmp-nd-ss { fill: #3A3937; }
.cmp-cap { fill: var(--studio-2); stroke: rgba(255, 255, 255, .2); stroke-width: .7; }
.cmp-cap-i { fill: var(--chalk-3); }
.cmp-lubber { fill: var(--lamp); stroke: var(--studio); stroke-width: .5; }
.cmp-dome { display: none; }

.scalebar { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); color: var(--sf-ink); }
.scalebar:not(.glass) { padding: 0; }
.sb-track { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.sb-bar { order: 2; display: flex; width: 80px; height: 4px; border-radius: 1px; box-shadow: 0 0 0 1px currentColor; transition: width 320ms var(--ease-out); }
.sb-bar i { flex: 1; }
.sb-bar i:nth-child(odd) { background: currentColor; }
.sb-l1 { order: 1; font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 900px) {
  #caption { max-width: calc(100vw - 2 * var(--gut)); }
}
@media (max-width: 640px) {
  #panel { left: 8px; right: 8px; width: auto; top: auto; bottom: calc(var(--console) + 8px + env(safe-area-inset-bottom, 0px)); max-height: min(70dvh, calc(100dvh - var(--console) - 80px)); transform: translateY(24px); }
  #panel.open { transform: none; }
  #caption { padding: 14px 16px 16px; }
  #caption h2 { font-size: 22px; }
  #caption .cap-facts b { font-size: 20px; }
  #hdr-center { left: var(--gut); right: var(--gut); top: auto; bottom: calc(var(--console) + var(--dial-rise) + 56px); justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .mapdock { bottom: calc(var(--console) + var(--dial-rise) + 64px); }
}

#veil { position: fixed; inset: 0; z-index: calc(var(--z-tide) + 1); display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; background: rgba(16, 15, 14, .55); transition: opacity 260ms ease, visibility 0s linear 260ms; font-family: var(--font); }
#veil.on { opacity: 1; visibility: visible; pointer-events: auto; cursor: progress; transition: opacity 160ms ease, visibility 0s; }
.veil-card { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: var(--r-md); background: var(--glass-strong); transform: scale(.97); transition: transform 200ms var(--ease-enter); }
#veil.on .veil-card { transform: none; }
.veil-orb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--studio); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.veil-orb-in { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); border-top-color: var(--lamp); animation: veil-spin .9s linear infinite; }
.veil-t { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }
.veil-l { font: 500 14px/1.2 var(--font); color: var(--chalk); }
.veil-bar { position: relative; display: block; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.veil-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: inherit; background: var(--lamp); animation: veil-run 1.15s ease-in-out infinite; }
@keyframes veil-spin { to { transform: rotate(360deg); } }
@keyframes veil-run { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
@keyframes veil-run-rtl { from { transform: translateX(100%); } to { transform: translateX(-270%); } }
[dir="rtl"] .veil-bar::after { left: auto; right: 0; animation-name: veil-run-rtl; }
@media (prefers-reduced-motion: reduce) { .veil-orb-in, .veil-bar::after { animation-duration: 3s; } }

.cl-btn { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); color: var(--sf-ink-2); background: transparent; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; position: relative; }
.cl-btn::after { content: ""; position: absolute; inset: -6px; }
@media (hover: hover) and (pointer: fine) { .cl-btn:hover { color: var(--sf-ink); background: var(--sf-hover); } }
.cl-btn:focus-visible { outline: 2px solid var(--sf-ink); outline-offset: 0; }
.cl-btn.cl-abs { position: absolute; z-index: 6; top: 10px; inset-inline-end: 10px; }
.cl-left .cl-btn.cl-abs { inset-inline-end: 10px; }
.cl-tab { display: none; align-items: center; gap: 8px; height: 44px; padding: 0; padding-inline: 10px 12px; border: 0; border-radius: inherit; font: 500 14px/1 var(--font); color: var(--sf-ink); background: transparent; cursor: pointer; white-space: nowrap; }
.cl-tab-i { display: grid; place-items: center; width: 24px; height: 24px; color: var(--sf-accent); }
.cl-tab-c { display: grid; place-items: center; color: var(--sf-ink-3); }
.cl-tab:focus-visible { outline: 2px solid var(--sf-ink); outline-offset: -2px; }
.cl-panel.collapsed { width: auto !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; gap: 0 !important; overflow: visible !important; bottom: auto !important; animation: none !important; }
.cl-panel.collapsed > :not(.cl-tab) { display: none !important; }
.cl-panel.collapsed > .cl-tab { display: inline-flex; }

.sg-scene { background: var(--studio); }
.sg { position: absolute; inset: 0; padding: 24px 32px calc(var(--console) + var(--dial-rise) + 40px); font-family: var(--font); }
.sg > * { max-width: 1480px; margin-left: auto; margin-right: auto; }
.sg-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.sg-hd h1 { font-size: 36px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.sg-hd h1 small { font-size: 15px; font-weight: 500; color: var(--chalk-3); letter-spacing: 0; margin-inline-start: 12px; vertical-align: middle; }
.sg-hd p { font-size: var(--fs-body); color: var(--chalk-2); margin-top: 10px; max-width: 66ch; }
.sg-hd .orb-path-inline { margin-bottom: 8px; }
.sg-refs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 520px; }
.sg-refs span { font-size: 12px; color: var(--chalk-2); padding: 6px 9px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .05); }
.sg-cols { display: grid; grid-template-columns: 268px 300px 356px minmax(0, 1fr); column-gap: 28px; row-gap: 28px; }
.sg-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sg-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 500; color: var(--chalk-3); }
.sg-h-s { font-weight: 400; }
.sg-sws { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.sg-sw { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sg-sw i { width: 26px; height: 26px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sg-sw b { display: block; font-size: 12px; font-weight: 500; line-height: 1.2; }
.sg-sw span { display: block; font-size: 12px; color: var(--chalk-3); line-height: 1.25; }
.sg-ts-r { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.sg-ts-r:last-child { border-bottom: 0; }
.sg-ts-r > b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-ts-r > span { font-size: 12px; color: var(--chalk-3); white-space: nowrap; }
.sg-ts-r > .sg-ts-k { font-size: 13px; color: var(--chalk); }
.sg-ts-r .sg-press { align-self: center; }
.sg-shape { display: flex; align-items: flex-end; gap: 10px; }
.sg-shape > div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--chalk-3); }
.sg-shape i { display: block; width: 28px; height: 28px; background: var(--studio-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sg-frame { position: relative; width: 100%; aspect-ratio: 1440 / 900; border-radius: var(--r-md); overflow: hidden; background: var(--studio-1) url(../img/island/aerial/oblique_s_dusk-t.webp) center / cover; }
.sg-frame-c { position: absolute; left: 0; right: 0; bottom: 0; height: 8.4%; background: var(--studio); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sg-frame-c i { display: block; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.sg-frame-c i.p { background: var(--chalk); width: 30px; }
.sg-frame-d { position: absolute; left: 50%; bottom: 1%; width: 20%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--studio); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); z-index: 1; }
.sg-frame-d::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--lamp); transform: translateX(-50%); }
.sg-z { position: absolute; border: 1px dashed rgba(250, 208, 143, .8); border-radius: var(--r-xs); font-size: 12px; white-space: nowrap; color: var(--chalk); display: flex; align-items: flex-start; padding: 3px 5px; background: rgba(16, 15, 14, .45); }
.sg-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--chalk-3); }
.sg-legend b { color: var(--chalk); font-weight: 500; }
.sg-comp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sg-comp:last-child { margin-bottom: 0; }
.sg-tagdot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 3px rgba(250, 208, 143, .22); flex: none; }
.sg-dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.sg-dfig { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.sg-dhost { width: 108px; height: 108px; }
.sg-dhost .orb-dial { width: 108px; height: 108px; }
.sg-dfig figcaption { font-size: 12px; color: var(--chalk-2); text-align: center; line-height: 1.3; }
.sg-dfig figcaption b { display: block; color: var(--chalk); font-weight: 500; }
.sg-states { display: flex; flex-direction: column; margin-top: 16px; }
.sg-states > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sg-states b { font-weight: 500; }
.sg-states span { color: var(--chalk-3); }
.sg-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.sg-pm > div { display: grid; grid-template-columns: 8px 1fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.3; }
.sg-pm em { width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); margin-top: 6px; }
.sg-pm a { font-weight: 500; text-decoration: none; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .sg-pm a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--chalk-3); } }
.sg-pm span { color: var(--chalk-3); }
.sg-fm { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin-top: 4px; }
.sg-fm > div { font-size: 13px; line-height: 1.3; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.sg-fm b { font-weight: 500; }
.sg-fm span { color: var(--chalk-3); }
.sg-shared { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sg-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r-md); background: var(--studio-1); }
.sg-cell.sg-wide { grid-column: 1 / -1; }
.sg-l { font-size: 12px; color: var(--chalk-3); }
.sg-choices { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.sg-range { display: flex; align-items: center; gap: 14px; width: 100%; }
.sg-range .range { flex: 1; }
.sg-out { min-width: 72px; text-align: end; font-weight: 500; }
.sg-cell .field { width: 100%; }
.sg-map { align-items: flex-end; gap: 16px; padding: 12px; border-radius: var(--r-md); background: var(--studio-1) url(../img/island/aerial/oblique_e_dusk-t.webp) center / cover; width: 100%; }
.sg-card-demo { width: 100%; max-width: 320px; }
@media (max-width: 1360px) {
  .sg-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sg { padding: 20px 20px calc(var(--console) + var(--dial-rise) + 40px); }
  .sg-hd { flex-direction: column; align-items: flex-start; }
  .sg-refs { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sg { padding: 16px 12px calc(var(--console) + var(--dial-rise) + 64px); }
  .sg-cols { grid-template-columns: minmax(0, 1fr); }
  .sg-hd h1 { font-size: 34px; }
  .sg-hd h1 small { display: block; margin: 8px 0 0; }
  .sg-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-dials { grid-template-columns: repeat(2, 1fr); }
}
