/* golden/style/layout.css */
:root {
  --header:62px;
  --rail:56px;
  --inset:12px;
  --gap:12px;
  --pad:12px;
  --explorer:220px;
  --results:180px;
  --tools:52px;
  --inspector:440px;
  --r:4px;
  --background:#E8EDF3;
  --navigation:#DCE5EE;
  --panel:#F1F5F9;
  --canvas:#FFFFFF;
  --text:#172B3D;
  --muted:#40566B;
  --accent:#245D91;
  --accent2:#237078;
  --selected:#D6E7F5;
  --diagram:#344C62;
  --border:#B8C9D8;
  --success:#24633E;
  --warning:#815300;
  --fault:#A12F35;
  --unknown:#40566B;
  --series-1:#245D91;
  --series-2:#237078;
  --series-3:#76539A;
  --series-4:#825B27;
  --ink:var(--text);
  --line:var(--border);
  --soft:var(--selected);
  --stroke:var(--diagram);
  --green:var(--success);
  --liquid:transparent;
  --font-scale:1;
  --gap-1:12px;
  --pad-1:12px;
  --row-tree:32px;
  --row-table:40px;
  --kpi-h:76px;
  --font:"Inter",system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
html,
body {
  height: 100%;
}
b,
strong {
  font-weight: 500;
}
thead th,
.t-section,
.k-label {
  font-weight: 500;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}
ix-application {
  --ix-application-header-height:var(--header);
}
ix-application-header {
  height: var(--header);
  min-height: var(--header);
  border-bottom: 1px solid var(--border);
  background: var(--navigation);
}
ix-application-header .brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
}
.hdr-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-right: 16px;
}
.hdr-chip {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2px 8px;
  white-space: nowrap;
  max-width: min(46vw, 440px);
  overflow: hidden;
  text-overflow: ellipsis;
}
ix-menu {
  width: var(--rail);
}
ix-menu,
ix-menu-item,
ix-application-header {
  --theme-color-1:var(--navigation);
  --theme-color-2:var(--navigation);
}
#screen {
  padding: 0;
  background: var(--background);
}
#screen:focus {
  outline: none;
}
#pagehead {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px var(--inset) 8px var(--inset);
  min-height: 56px;
  box-sizing: border-box;
}
.ph-title {
  min-width: 0;
}
.ph-title h1 {
  margin: 0;
  font-size: calc(20px * var(--font-scale));
  line-height: calc(28px * var(--font-scale));
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-title p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.ph-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}
#view {
  padding: 0 var(--inset) var(--inset) var(--inset);
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
  min-height: 0;
}
.t-title {
  font-size: calc(20px * var(--font-scale));
  line-height: calc(28px * var(--font-scale));
  font-weight: 500;
  color: var(--text);
}
.t-section {
  font-size: calc(14px * var(--font-scale));
  line-height: calc(20px * var(--font-scale));
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.t-body {
  font-size: calc(13px * var(--font-scale));
  line-height: calc(20px * var(--font-scale));
  font-weight: 400;
  color: var(--text);
}
.t-label {
  font-size: calc(12px * var(--font-scale));
  line-height: calc(16px * var(--font-scale));
  font-weight: 400;
  color: var(--muted);
}
.t-caption {
  font-size: calc(11px * var(--font-scale));
  line-height: calc(16px * var(--font-scale));
  font-weight: 400;
  color: var(--muted);
}
.t-value {
  font-size: calc(24px * var(--font-scale));
  line-height: calc(28px * var(--font-scale));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
}
.ctxrow {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.ctxrow .lbl {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.ctxrow .sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.ctxrow .spacer {
  flex: 1;
}
.ctxselect {
  min-width: 280px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
  white-space: nowrap;
}
select.chip {
  height: 28px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 12px;
  padding: 0 8px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%);
  background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
select.chip option {
  background: var(--panel);
  color: var(--ink);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.chip.ok .dot {
  background: var(--green);
}
.chip.warn .dot {
  background: var(--accent);
}
.chip.na .dot {
  background: var(--line);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: none;
}
.kpi {
  height: var(--kpi-h);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
  min-width: 0;
}
.kpi .k-label {
  font-size: calc(12px * var(--font-scale));
  line-height: calc(16px * var(--font-scale));
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .k-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.kpi .k-value {
  font-size: calc(24px * var(--font-scale));
  line-height: calc(28px * var(--font-scale));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.kpi .k-unit {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
}
.kpi .k-src {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi.na .k-value {
  color: var(--muted);
}
.wb {
  display: grid;
  grid-template-columns: var(--explorer) 1px 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  min-height: 0;
  flex: 1;
}
.explorer {
  border-right: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 8px;
  box-sizing: border-box;
}
.explorer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  flex: none;
}
.explorer-head .t-section {
  margin: 0;
}
.tree {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.tree-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--row-tree);
  padding: 0 4px;
  border-radius: var(--r);
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.tree-group:hover {
  background: var(--soft);
}
.tree-group:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tree-group .caret {
  width: 12px;
  color: var(--muted);
  flex: none;
  font-size: 10px;
}
.tree-group .glabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--row-tree);
  padding: 0 4px 0 4px;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
}
.tree-item .indent {
  flex: none;
}
.ti {
  color: var(--muted);
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.tree-item:hover {
  background: var(--soft);
}
.tree-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tree-item[aria-selected=true] {
  background: var(--selected);
  box-shadow: inset 2px 0 0 var(--accent);
}
.tree-item .tag {
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tree-item .kind {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  margin-left: auto;
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}
.split {
  position: relative;
  width: 1px;
  height: 100%;
  align-self: stretch;
  background: var(--line);
  cursor: col-resize;
}
.split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
}
.split:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.split[aria-disabled=true] {
  cursor: default;
  background: var(--line);
}
.split-h {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--line);
  cursor: row-resize;
  flex: none;
}
.split-h::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  bottom: -4px;
}
.split-h:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.canvas-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-left: 8px;
  box-sizing: border-box;
}
.viewbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.viewbar .spacer {
  flex: 1;
}
.zoombox {
  display: flex;
  align-items: center;
  gap: 2px;
}
.zoombox .zb {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.zoombox .zb:hover {
  background: var(--soft);
}
.zoombox .zb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.zoombox .zx {
  min-width: 52px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.canvas {
  position: relative;
  flex: 1;
  min-height: 260px;
  min-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: 8px;
  overflow: hidden;
  background: var(--canvas);
}
.canvas .x6-graph {
  width: 100%;
  height: 100%;
}
.legend {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  overflow: visible;
}
.legend .li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend .sw {
  width: 22px;
  height: 0;
  border-top: 2px solid var(--stroke);
}
.legend .sw.dash {
  border-top-style: dashed;
}
.legend .sw.dot {
  border-top-style: dotted;
}
.legend .sw.thin {
  border-top-width: 1px;
}
.legend .sq {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  background: var(--selected);
}
.x6-edge-label rect,
.x6-edge-label-label,
.x6-edge-label-bg {
  fill: var(--panel) !important;
  stroke: none !important;
}
.x6-edge-label text,
.x6-edge text {
  fill: var(--muted) !important;
  font-family: var(--font) !important;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.panel-head .spacer {
  flex: 1;
}
.panel-body {
  padding: var(--pad-1);
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.expandable {
  height: var(--tools);
  flex: none;
}
.expandable .panel-head {
  padding: 4px 12px;
  border-bottom: none;
}
.charts2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: none;
}
.chart {
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.chartwrap {
  height: 100%;
  min-height: 160px;
}
.inspector {
  position: absolute;
  top: 8px;
  right: 8px;
  width: var(--inspector);
  height: var(--inspector-h,auto);
  max-width: calc(100% - 24px);
  max-height: calc(100% - 16px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.insp-grip {
  position: absolute;
  background: transparent;
  z-index: 31;
}
.insp-grip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.insp-grip[aria-disabled=true] {
  cursor: default;
}
.insp-grip-w {
  left: -4px;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: col-resize;
}
.insp-grip-h {
  bottom: -4px;
  left: 0;
  right: 0;
  height: 9px;
  cursor: row-resize;
}
.insp-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.insp-head .who {
  min-width: 0;
}
.insp-head .who .tag {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.insp-head .who .meta {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.insp-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.insp-body {
  padding: 8px 12px 12px;
  overflow: auto;
  min-height: 0;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  align-items: center;
}
.kv .k {
  font-size: 12px;
  line-height: 28px;
  color: var(--muted);
}
.kv .v {
  font-size: 13px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.kv .v.na {
  color: var(--muted);
}
.insp-section {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.insp-section button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  cursor: pointer;
  text-align: left;
}
.insp-section .prov {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 6px;
}
.tablewrap {
  overflow: auto;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(13px * var(--font-scale));
  line-height: calc(20px * var(--font-scale));
  color: var(--text);
}
table.grid thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  z-index: 2;
}
table.grid tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  height: var(--row-table);
  box-sizing: border-box;
  vertical-align: middle;
}
table.grid tbody tr:last-child td {
  border-bottom: none;
}
table.grid tbody td.num,
table.grid thead th.num {
  text-align: right;
}
table.grid tbody tr:hover {
  background: var(--soft);
}
table.grid tbody tr[aria-selected=true] {
  background: var(--selected);
}
table.grid td .sub {
  display: block;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}
.rowlink {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}
.rowlink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.tab {
  height: 37px;
  padding: 0 12px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.tab[aria-selected=true] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tab:disabled {
  color: var(--line);
  cursor: not-allowed;
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--soft);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}
.banner .bt {
  font-weight: 500;
}
.banner.na {
  border-left-color: var(--line);
}
.banner.warn {
  border-left-color: var(--muted);
}
.state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 12px;
  color: var(--muted);
}
.state .st {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  font-weight: 500;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.selbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.seg button {
  border: none;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  padding: 5px 10px;
  cursor: pointer;
}
.seg button[aria-pressed=true] {
  background: var(--selected);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.seg button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.cols2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.scroll {
  overflow: auto;
  min-height: 0;
}
.dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 0 12px;
}
.dl dt {
  font-size: 12px;
  line-height: 28px;
  color: var(--muted);
}
.dl dd {
  margin: 0;
  font-size: 13px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}
.dl dd.na {
  color: var(--muted);
}
.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  padding: 12px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  text-align: center;
}
.gallery figcaption {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  margin-top: 6px;
}
.hide {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.hdr-action {
  font-size: 12px;
  line-height: 16px;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 500;
}
.hdr-action:hover {
  background: var(--selected);
}
.hdr-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.appearance {
  position: fixed;
  top: calc(var(--header) + 8px);
  right: 8px;
  width: var(--appearance-w,400px);
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--header) - 16px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  z-index: 60;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}
.appearance[hidden] {
  display: none;
}
.ap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.ap-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
}
.ap-body {
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.ap-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  flex: none;
}
.ap-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-section h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-row label {
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
}
.ap-opt {
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--text);
  border-radius: var(--r);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  font-weight: 400;
}
.ap-opt[aria-pressed=true] {
  background: var(--selected);
  border-color: var(--accent);
  color: var(--text);
}
.ap-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.ap-opt[disabled] {
  color: var(--muted);
  cursor: not-allowed;
  border-style: dashed;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--canvas);
  border-radius: var(--r);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 11px;
  line-height: 16px;
  color: var(--text);
  font-weight: 400;
}
.swatch[aria-pressed=true] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.swatch .chips {
  display: flex;
  gap: 2px;
}
.swatch .chips i {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-block;
}
.swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.ap-note {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}
.ap-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
}
.ap-range input[type=range] {
  accent-color: var(--accent);
}
.ap-profile {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-error {
  color: var(--fault);
  font-size: 11px;
  line-height: 16px;
}

/* app/app.css */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 20px;
}
button,
input,
select,
textarea {
  font-family: var(--font);
}
[hidden] {
  display: none !important;
}
.boot-state {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--background);
  color: var(--text);
  z-index: 60;
}
.boot-title {
  font-size: 20px;
  font-weight: 600;
}
.boot-text {
  font-size: 12px;
  color: var(--muted);
}
.auth {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  z-index: 50;
  padding: 24px;
  box-sizing: border-box;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(23, 43, 61, .12);
}
.auth-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.auth-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text);
}
.auth-context {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.auth-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.auth-input {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--text);
  font-size: 13px;
  padding: 0 10px;
}
.auth-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.auth-error {
  min-height: 16px;
  font-size: 12px;
  color: var(--fault);
}
.auth-submit {
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.auth-submit[disabled] {
  opacity: .6;
  cursor: default;
}
.auth-note {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}
.uw-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.uw-header {
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  box-sizing: border-box;
  background: var(--navigation);
  border-bottom: 1px solid var(--border);
}
.uw-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}
.uw-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.uw-nav-btn {
  height: 32px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.uw-nav-btn:hover {
  color: var(--text);
  background: var(--selected);
}
.uw-nav-btn[aria-current=page] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.uw-header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.uw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uw-btn {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.uw-btn:hover {
  background: var(--selected);
}
.uw-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.uw-btn.danger {
  color: var(--fault);
}
.uw-btn[disabled] {
  opacity: .5;
  cursor: default;
}
.uw-btn.sm {
  height: 24px;
  padding: 0 7px;
  font-size: 11px;
}
.uw-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.uw-icon-btn:hover {
  background: var(--selected);
}
.uw-icon-btn[aria-pressed=true] {
  background: var(--selected);
  border-color: var(--accent);
  color: var(--accent);
}
.uw-icon-btn svg {
  width: 17px;
  height: 17px;
}
.uw-viewbar {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  white-space: nowrap;
}
.uw-viewbar .spacer {
  flex: 1;
}
.separator {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex: none;
}
.uw-viewbar .uw-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uw-viewbar .uw-error {
  color: var(--fault);
}
.uw-ctx {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.uw-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.uw-optional {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.uw-optional[hidden] {
  display: none;
}
.uw-more {
  position: relative;
  flex: 0 0 auto;
}
.uw-more[hidden] {
  display: none;
}
.uw-more > summary {
  list-style: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.uw-more > summary::-webkit-details-marker {
  display: none;
}
.uw-more > summary:hover {
  background: var(--selected);
}
.uw-more-body {
  position: absolute;
  right: 0;
  top: 32px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 190px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(23, 43, 61, .2);
}
.uw-more-body .uw-btn {
  width: 100%;
  text-align: left;
}
.uw-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  height: 32px;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.uw-viewbar .uw-tabs {
  height: 100%;
}
.uw-tab {
  height: 100%;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.uw-tab:hover {
  color: var(--text);
}
.uw-tab[aria-selected=true] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.uw-select {
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  padding: 0 6px;
  max-width: 200px;
  min-width: 96px;
  flex: 0 0 auto;
}
.uw-select.wide {
  max-width: 240px;
}
.uw-workbench {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.uw-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.uw-main-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.uw-explorer {
  width: 210px;
  min-width: 150px;
  max-width: 380px;
  flex: none;
  overflow: auto;
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 0;
  box-sizing: border-box;
}
.uw-explorer.closed {
  display: none;
}
.uw-details {
  width: 260px;
  min-width: 190px;
  max-width: 380px;
  flex: none;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: var(--panel);
  box-sizing: border-box;
}
.uw-details.closed {
  display: none;
}
.uw-split {
  width: 5px;
  flex: none;
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 2;
}
.uw-split:hover,
.uw-split:focus {
  background: var(--selected);
  outline: none;
}
.uw-split.closed {
  display: none;
}
.uw-display {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background);
  position: relative;
}
.uw-display.padded {
  padding: 8px;
  box-sizing: border-box;
  gap: 8px;
}
.uw-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.uw-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  flex: none;
  min-height: 32px;
  box-sizing: border-box;
}
.uw-panel-body {
  padding: 8px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.uw-panel-body.flush {
  padding: 0;
}
.uw-section-title {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.uw-muted {
  color: var(--muted);
}
.uw-caption {
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}
.uw-mono {
  font-family: var(--mono);
  font-size: 11px;
}
.uw-strong {
  font-weight: 500;
}
.uw-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.uw-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.uw-grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.uw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  flex: 1;
}
.uw-empty .uw-empty-title {
  font-size: 13px;
  color: var(--text);
}
.uw-table-wrap {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
table.uw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.uw-table th {
  position: sticky;
  top: 0;
  background: var(--panel);
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  z-index: 1;
}
table.uw-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.uw-table tr:hover td {
  background: var(--selected);
}
table.uw-table td.num,
table.uw-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.uw-rowlink {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  text-align: left;
}
.uw-rowlink:hover {
  text-decoration: underline;
}
.uw-rowlink[disabled] {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}
.uw-tree {
  display: flex;
  flex-direction: column;
}
.uw-tree-group {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.uw-tree-group:hover {
  background: var(--selected);
}
.uw-tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 22px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.uw-tree-item:hover {
  background: var(--selected);
}
.uw-tree-item[aria-selected=true] {
  background: var(--selected);
  color: var(--accent);
}
.uw-tree-item .tag {
  font-family: var(--mono);
  font-size: 11px;
  min-width: 52px;
}
.uw-tree-item .kind {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uw-kv {
  display: grid;
  grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
  gap: 3px 8px;
  font-size: 12px;
}
.uw-kv dt {
  color: var(--muted);
}
.uw-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.uw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.uw-badge.ok {
  color: var(--success);
  border-color: var(--success);
}
.uw-badge.warn {
  color: var(--warning);
  border-color: var(--warning);
}
.uw-badge.bad {
  color: var(--fault);
  border-color: var(--fault);
}
.uw-note {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted);
}
.uw-note.warn {
  border-color: var(--warning);
  color: var(--warning);
}
.uw-note.bad {
  border-color: var(--fault);
  color: var(--fault);
}
.uw-lib {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 8px;
}
.uw-lib-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.uw-lib-main {
  display: flex;
  min-height: 0;
  flex: 1;
  gap: 8px;
}
.uw-sim {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.uw-sim-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
.uw-sim-canvas {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.uw-sim-canvas .x6-graph {
  position: absolute;
  inset: 0;
}
.uw-float-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
}
.uw-float-toolbar.left {
  right: auto;
  left: 8px;
}
.uw-float-toolbar .uw-icon-btn {
  width: 30px;
  height: 30px;
}
.uw-toolbar-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 13px;
  height: 13px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  line-height: 13px;
  text-align: center;
}
.uw-params {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.uw-analytics {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.uw-analytics-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uw-chart-region {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.uw-chart {
  flex: 1;
  min-height: 180px;
  width: 100%;
}
.uw-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.uw-chart-toolbar .uw-btn {
  height: 24px;
  font-size: 11px;
  padding: 0 7px;
}
.uw-timefields {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.uw-timefields input {
  width: 74px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--text);
  font-size: 11px;
  padding: 0 6px;
}
.uw-series-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow: auto;
}
.uw-series-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  min-height: 24px;
}
.uw-series-row .sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.uw-series-row .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uw-series-row .unit {
  color: var(--muted);
}
.uw-cursor-readout {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.uw-cursor-readout b {
  color: var(--text);
  font-weight: 500;
}
.uw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  font-size: 11px;
}
.uw-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}
.uw-legend-item .sw {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.uw-legend-item.hidden {
  opacity: .42;
}
.uw-trend-grid {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 8px;
}
.uw-trend-body {
  display: flex;
  min-height: 0;
  flex: 1;
  gap: 8px;
}
.uw-trend-side {
  width: 260px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.uw-floating-layer {
  position: fixed;
  inset: 62px 0 0 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.uw-window {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(23, 43, 61, .22);
  min-width: 260px;
  min-height: 160px;
  overflow: hidden;
}
.uw-window.focused {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(23, 43, 61, .3);
}
.uw-window.maximized {
  border-radius: 0;
}
.uw-window.minimized {
  min-height: 0;
  height: 34px !important;
}
.uw-window-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--navigation);
  cursor: move;
  user-select: none;
}
.uw-window-title {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.uw-window-actions {
  display: flex;
  gap: 2px;
}
.uw-window-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}
.uw-window-body.tight {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.uw-window.minimized .uw-window-body {
  display: none;
}
.uw-window-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background:
    linear-gradient(
      135deg,
      transparent 50%,
      var(--border) 50%,
      var(--border) 60%,
      transparent 60%,
      transparent 70%,
      var(--border) 70%,
      var(--border) 80%,
      transparent 80%);
}
.uw-window.hidden {
  display: none;
}
.uw-window .uw-window-body table.uw-table {
  font-size: 11px;
}
.uw-obj {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.uw-obj-head {
  height: 32px;
  min-height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
}
.uw-obj-head .uw-obj-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.uw-obj-head .uw-obj-name {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.uw-obj-head .spacer {
  flex: 1;
}
.uw-obj-tabs {
  flex: none;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}
.uw-obj-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.uw-obj-body > .uw-table-wrap,
.uw-obj-body > .uw-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.uw-obj-foot {
  flex: none;
  padding: 4px 8px;
  border-top: 1px solid var(--border);
}
.uw-obj .uw-tabs {
  height: 32px;
}
.uw-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}
.uw-pending .uw-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: uw-spin .7s linear infinite;
}
@keyframes uw-spin {
  to {
    transform: rotate(360deg);
  }
}
.uw-numeric-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.uw-numeric-box {
  position: absolute;
  pointer-events: auto;
  min-width: 96px;
  max-width: 180px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(23, 43, 61, .18);
  padding: 4px 6px;
  font-size: 11px;
}
.uw-numeric-box .nb-tag {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
}
.uw-numeric-box .nb-value {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.uw-numeric-box .nb-unit {
  color: var(--muted);
  font-size: 10px;
}
.uw-numeric-box .nb-close {
  position: absolute;
  top: 0;
  right: 2px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.uw-busy {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--accent);
  font-size: 11px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 16px;
  width: min(560px, 94vw);
  box-shadow: 0 16px 40px rgba(23, 43, 61, .24);
}
dialog::backdrop {
  background: rgba(23, 43, 61, .35);
}
dialog h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}
.modal-field label {
  font-size: 12px;
  color: var(--muted);
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--text);
  font-size: 13px;
  padding: 6px 8px;
}
.uw-appearance-host {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.uw-appearance-host .appearance,
.uw-appearance-host .appearance-panel {
  pointer-events: auto;
  position: absolute;
  right: 12px;
  top: 68px;
  width: min(360px, 92vw);
  max-height: calc(100vh - 92px);
  overflow: auto;
}
.uw-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(23, 43, 61, .2);
}
@media (max-width: 1320px) {
  .uw-nav-btn {
    padding: 0 7px;
    font-size: 11px;
  }
  .uw-header {
    gap: 8px;
    padding: 0 10px;
  }
  .uw-header-tools .uw-chip {
    max-width: 160px;
  }
  .uw-explorer {
    width: 190px;
    min-width: 150px;
  }
  .uw-details {
    width: 240px;
  }
  .uw-trend-side {
    width: 220px;
  }
}
