:root {
  --font: 'Segoe UI',Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --mono: 'Cascadia Code','SFMono-Regular',Consolas,monospace;
  --chrome: #f1f3f5;
  --panel: #fff;
  --subtle: #f7f8fa;
  --border: #d9dfe6;
  --border2: #e9edf1;
  --text: #293447;
  --muted: #7b8797;
  --accent: #16836b;
  --accentSoft: #e4f3ed;
  --blue: #2768ac;
  --selection: #e9f1fa;
  --navy: #172431;
  --left: 232px;
  --right: 248px;
  --chart: 282px;
  --shadow: 0 12px 40px #0e1d3626;
  color-scheme: light
}
* {
  box-sizing: border-box
}
html,body,#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden
}
body {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: var(--chrome)
}
button,input,select,textarea {
  font: inherit
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap
}
button:hover {
  background: var(--selection)
}
button:disabled {
  opacity: .4;
  cursor: default
}
button:focus-visible,a:focus-visible {
  outline: 2px solid #35ac91;
  outline-offset: 1px
}
input,select,textarea {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 8px;
  outline: none;
  min-width: 0
}
input:focus,select:focus,textarea:focus {
  border-color: #29967f;
  box-shadow: 0 0 0 2px #29967f1c
}
select {
  cursor: pointer
}
textarea {
  resize: vertical;
  line-height: 1.7
}
input[type=checkbox] {
  accent-color: var(--accent)
}
input[type=number] {
  font-variant-numeric: tabular-nums
}
button svg {
  flex-shrink: 0;
  pointer-events: none
}
h1,h2,h3,p {
  margin: 0
}
kbd {
  font: 10px var(--font);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--muted)
}
.app-shell {
  display: flex;
  height: 100%;
  flex-direction: column
}
.titlebar {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--navy);
  color: #d1dae3;
  gap: 20px;
  flex-shrink: 0
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.5px;
  color: white
}
.brand-mark {
  color: #65d9b5;
  display: flex
}
.brand-small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #889ba9;
  margin-left: 3px;
  align-self: center
}
.title-divider {
  width: 1px;
  height: 17px;
  background: #ffffff20
}
.document-title {
  font-size: 11px;
  color: #b7c4d2
}
.document-title span {
  color: #7a8c9e;
  margin-left: 9px
}
.titlebar .spacer {
  flex: 1
}
.titlebar .title-btn {
  height: 27px;
  font-size: 11px;
  color: #b9c9d6
}
.titlebar .title-btn:hover {
  background: #ffffff12
}
.titlebar kbd {
  border-color: #ffffff25;
  color: #90a1b3
}
.local-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #93aaab;
  font-size: 10px
}
.status-dot {
  height: 6px;
  width: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #3ba88e;
  box-shadow: 0 0 0 3px #2f9c7e12
}
.menubar {
  height: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: stretch;
  padding-left: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 25
}
.menubar>button {
  padding: 0 11px;
  border-radius: 0;
  font-size: 11px
}
.menubar>button.menu-open {
  background: var(--selection);
  color: var(--blue)
}
.menubar .menu-right {
  margin-left: auto;
  font-size: 10px;
  padding: 0 14px;
  color: var(--muted)
}
.dropdown {
  position: fixed;
  min-width: 235px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 5px;
  z-index: 120
}
.dropdown button {
  width: 100%;
  justify-content: flex-start;
  padding: 7px 10px;
  font-size: 12px
}
.dropdown button .key {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px
}
.dropdown hr {
  border: 0;
  border-top: 1px solid var(--border2);
  margin: 4px
}
.toolbar {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  gap: 5px;
  background: var(--chrome);
  border-bottom: 1px solid #cbd3dc;
  flex-shrink: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none
}
.tool-group {
  display: flex;
  align-items: center;
  gap: 2px;
  border-right: 1px solid var(--border);
  padding-right: 10px;
  margin-right: 5px
}
.tool-group:last-child {
  border: 0
}
.tool-button {
  width: 30px;
  height: 30px;
  color: #526477;
  border-radius: 4px
}
.tool-button:hover {
  background: #dce5ed
}
.tool-button.active {
  color: var(--accent);
  background: #dbeee7;
  border-color: #b9d8ce
}
.tool-group .profile-select {
  width: 144px;
  font-size: 11px;
  height: 30px;
  padding: 3px 7px
}
.button-primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 8px 15px;
  border-color: var(--accent)
}
.button-primary:hover {
  background: #126e59;
  color: white
}
.button-secondary {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 8px 13px;
  font-weight: 500
}
.button-danger {
  background: #a83939;
  color: white;
  padding: 7px 14px
}
.run-button {
  height: 30px;
  padding: 0 15px;
  font-size: 11px
}
.run-button svg {
  fill: currentColor;
  stroke-width: 1
}
.toolbar-label {
  font-size: 10px;
  color: var(--muted);
  margin: 0 6px
}
.toolbar-spacer {
  flex: 1;
  min-width: 0
}
.backend-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #c9dbd4;
  background: #edf6f1;
  color: #4b7969;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .6px;
  border-radius: 4px
}
.workbench {
  display: grid;
  grid-template-columns: var(--left) minmax(180px,1fr) var(--right);
  flex: 1;
  min-height: 0
}
.panel {
  background: var(--panel);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column
}
.panel-header {
  height: 35px;
  min-height: 35px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .65px;
  color: #69788b
}
.panel-header .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px
}
.mini-button {
  height: 24px;
  width: 24px;
  color: var(--muted)
}
.project-panel {
  border-right: 1px solid var(--border);
  position: relative
}
.project-tree {
  padding: 14px 8px 13px;
  min-height: 246px;
  overflow: auto;
  flex: 1
}
.tree-row {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer
}
.tree-row:hover {
  background: var(--subtle)
}
.tree-row svg {
  color: #7a8c9d;
  flex-shrink: 0
}
.tree-row .folder-icon {
  color: #b49b66
}
.tree-row.indent1 {
  padding-left: 18px
}
.tree-row.indent2 {
  padding-left: 37px
}
.tree-row.indent3 {
  padding-left: 54px
}
.tree-row.selected {
  background: var(--selection);
  color: var(--blue);
  font-weight: 600
}
.tree-row .small-note {
  margin-left: auto;
  color: #99a5b3;
  font-size: 10px
}
.tree-row .tree-caret {
  width: 9px;
  color: #8999a8;
  font-size: 9px
}
.tree-subtitle {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  margin: 18px 7px 7px;
  color: #96a1b0
}
.design-file {
  font-weight: 600
}
.side-tabs {
  height: 29px;
  min-height: 29px;
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--subtle)
}
.side-tabs button {
  font-size: 10px;
  border-radius: 0;
  flex: 1;
  color: var(--muted)
}
.side-tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  background: var(--panel)
}
.library-panel {
  height: 41%;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border)
}
.search-field {
  position: relative;
  margin: 10px 10px 8px;
  display: flex;
  align-items: center
}
.search-field svg {
  position: absolute;
  left: 9px;
  color: #8d9aad;
  pointer-events: none
}
.search-field input {
  width: 100%;
  padding-left: 32px;
  font-size: 11px;
  height: 30px;
  background: var(--subtle)
}
.library-filter {
  display: flex;
  gap: 4px;
  padding: 0 10px 8px;
  flex-wrap: wrap
}
.chip-filter {
  font-size: 9px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  color: var(--muted)
}
.chip-filter.active {
  background: var(--accentSoft);
  color: var(--accent);
  border-color: #c6dfd5
}
.parts-list {
  overflow: auto;
  flex: 1;
  padding: 0 6px 8px
}
.part-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 7px 8px
}
.part-row svg {
  color: #755394
}
.part-row .part-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px
}
.part-row strong {
  font-weight: 500;
  font-size: 11px
}
.part-row small {
  font-size: 9px;
  color: var(--muted)
}
.part-row .part-key {
  color: #9aa5b5;
  font-size: 9px;
  max-width: 48px;
  text-overflow: ellipsis;
  overflow: hidden
}
.library-bottom {
  padding: 8px 12px;
  font-size: 9px;
  color: #8b98a6;
  border-top: 1px solid var(--border2)
}
.center {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative
}
.document-tabs {
  height: 35px;
  min-height: 35px;
  background: #e6eaee;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border)
}
.document-tab {
  height: 35px;
  border-radius: 0;
  border-right: 1px solid var(--border);
  padding: 0 14px;
  font-size: 10px;
  color: #788798;
  gap: 8px
}
.document-tab.active {
  background: var(--panel);
  border-top: 2px solid var(--accent);
  font-weight: 600;
  color: var(--text)
}
.document-tab.active svg {
  color: var(--accent)
}
.document-tab .unsaved {
  font-size: 10px;
  color: var(--accent)
}
.tabs-trailing {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 8px
}
.schematic-region {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 170px
}
.vertical-tools {
  width: 37px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  padding: 8px 3px;
  gap: 5px;
  z-index: 2
}
.vertical-tools .tool-button {
  width: 29px;
  height: 29px
}
.vertical-tools hr {
  border: 0;
  border-top: 1px solid var(--border);
  width: 19px;
  margin: 4px auto
}
.canvas-host {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #fbfbfa;
  touch-action: none
}
.schematic-layer {
  position: absolute;
  inset: 0;
  display: block
}
.interaction-surface {
  outline: 0;
  touch-action: none
}
.canvas-breadcrumb {
  position: absolute;
  top: 15px;
  left: 19px;
  z-index: 4;
  color: #85939f;
  font-size: 10px;
  display: flex;
  gap: 7px;
  pointer-events: none
}
.canvas-breadcrumb span {
  color: #b9c1c8
}
.canvas-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  z-index: 5;
  box-shadow: 0 2px 8px #182b4010
}
.canvas-controls button {
  height: 27px;
  width: 29px
}
.canvas-controls .zoom-label {
  width: 42px;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  text-align: center
}
.tool-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  background: #172431ed;
  color: #d4e2eb;
  border: 1px solid #52657750;
  padding: 7px 14px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 5;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.tool-hint:empty {
  display: none
}
.properties-panel {
  border-left: 1px solid var(--border);
  overflow-y: auto
}
.property-content {
  padding: 0 13px 16px;
  overflow-y: auto;
  flex: 1
}
.selection-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 19px 0 16px
}
.selection-icon {
  height: 37px;
  width: 37px;
  background: #f0ecf6;
  color: #78579b;
  border: 1px solid #e2dbee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px
}
.selection-heading h3 {
  font-size: 14px;
  font-weight: 600
}
.selection-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px
}
.section-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .9px;
  color: #8592a3;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between
}
.section-label:first-child {
  margin-top: 15px
}
.prop-field {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px
}
.prop-field>label {
  font-size: 10px;
  color: #758397
}
.prop-field input,.prop-field select {
  width: 100%;
  height: 26px;
  padding: 4px 6px;
  font-size: 10px
}
.prop-field .readonly {
  font-size: 10px;
  color: #5c6d82;
  word-break: break-word
}
.prop-field.wide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 9px 0
}
.prop-description {
  font-size: 10px;
  color: #8a96a5;
  line-height: 1.7;
  margin-top: 10px
}
.prop-divider {
  height: 1px;
  background: var(--border2);
  margin: 17px -13px
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}
.summary-cell {
  background: var(--subtle);
  border: 1px solid var(--border2);
  padding: 10px;
  border-radius: 5px
}
.summary-cell strong {
  font-size: 18px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px
}
.summary-cell span {
  font-size: 9px;
  color: var(--muted)
}
.profile-card {
  border: 1px solid #d9e7df;
  background: #f6faf8;
  border-radius: 6px;
  padding: 12px
}
.profile-card .card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 8px
}
.profile-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #798d86
}
.profile-card .edit-profile {
  font-size: 10px;
  padding: 5px 0;
  color: var(--accent);
  margin-top: 5px
}
.part-actions {
  display: flex;
  gap: 5px;
  margin-top: 14px
}
.part-actions button {
  flex: 1;
  border: 1px solid var(--border);
  font-size: 10px;
  height: 29px
}
.nets-list {
  display: flex;
  flex-direction: column;
  gap: 2px
}
.net-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 3px;
  cursor: pointer;
  font-size: 10px
}
.net-row:hover {
  background: var(--subtle)
}
.net-row .net-square {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #55a48b
}
.net-row .node-count {
  margin-left: auto;
  color: #93a1af
}
.help-card {
  border-top: 1px solid var(--border2);
  padding: 13px;
  background: var(--subtle);
  font-size: 10px;
  color: #8c99a9;
  line-height: 1.8
}
.help-card strong {
  font-weight: 600;
  color: #687b8b;
  font-size: 10px;
  display: block;
  margin-bottom: 5px
}
.help-shortcut {
  display: flex;
  justify-content: space-between
}
.chart-resize {
  height: 5px;
  min-height: 5px;
  background: #d8dfe5;
  cursor: row-resize;
  position: relative;
  z-index: 10
}
.chart-resize:after {
  content: '';
  position: absolute;
  left: calc(50% - 20px);
  top: 1px;
  width: 40px;
  height: 2px;
  border-radius: 3px;
  background: #aab5c0
}
.results-pane {
  height: var(--chart);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  background: #111b26;
  color: #c3d1df
}
.results-header {
  height: 37px;
  min-height: 37px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #293542;
  padding: 0 12px;
  gap: 16px;
  background: #17222f
}
.results-tab {
  font-size: 10px;
  color: #869bb0;
  height: 37px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0 2px
}
.results-tab.active {
  color: #d1e0eb;
  border-bottom-color: #4fc4a1
}
.results-tab svg {
  color: #64c5a7
}
.results-spacer {
  flex: 1
}
.result-status {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #69b498
}
.result-status .status-dot {
  width: 5px;
  height: 5px
}
.chart-mini {
  color: #8698a9;
  width: 23px;
  height: 24px
}
.chart-mini:hover {
  background: #2a3948
}
.chart-toolbar {
  height: 29px;
  min-height: 29px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #233140;
  gap: 9px
}
.trace-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  overflow: hidden
}
.trace-toggle {
  font: 10px var(--mono);
  gap: 6px;
  padding: 3px 0;
  color: #aabbcc
}
.trace-toggle:hover {
  background: transparent
}
.trace-toggle.hidden {
  opacity: .4
}
.trace-line {
  width: 13px;
  height: 2px;
  display: inline-block
}
.trace-dash {
  height: 0;
  border-bottom: 1px dashed
}
.chart-toolbar select {
  font-size: 9px;
  color: #9baebe;
  border-color: #344454;
  background: #1c2a37;
  padding: 2px 5px;
  height: 22px
}
.add-trace {
  font-size: 10px;
  color: #a2b8c9;
  padding: 3px 6px
}
.chart-host {
  flex: 1;
  position: relative;
  min-height: 20px;
  overflow: hidden
}
.chart-host .interaction-surface {
  cursor: crosshair
}
.chart-footer {
  height: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 13px;
  color: #7792a7;
  border-top: 1px solid #263443;
  font: 9px var(--mono);
  background: #131f2b
}
.chart-footer strong {
  color: #a4c4d4;
  font-weight: 400
}
.chart-footer .right {
  margin-left: auto
}
.results-content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0
}
.output-log {
  overflow: auto;
  flex: 1;
  font: 10px/1.9 var(--mono);
  padding: 10px 16px;
  color: #8fa6b9;
  background: #101923
}
.output-log .success {
  color: #75c3a1
}
.output-log .error {
  color: #ee9797
}
.output-log .warning {
  color: #d3b379
}
.output-log .time {
  color: #526b7d;
  margin-right: 12px
}
.bias-table {
  border-collapse: collapse;
  min-width: 100%;
  font: 11px var(--mono)
}
.bias-table th {
  text-align: left;
  color: #7c98ae;
  background: #1c2c3b;
  position: sticky;
  top: 0
}
.bias-table th,.bias-table td {
  padding: 5px 16px;
  border-bottom: 1px solid #213242
}
.bias-table td:last-child {
  color: #76c1b6;
  text-align: right
}
.table-scroll {
  overflow: auto;
  flex: 1
}
.statusbar {
  height: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: #edf1f4;
  border-top: 1px solid #cbd4de;
  font-size: 10px;
  color: #7f8b9b;
  gap: 13px
}
.statusbar .status-message {
  color: #536677;
  display: flex;
  gap: 6px;
  align-items: center
}
.statusbar .status-message svg {
  color: #43a187
}
.statusbar .spacer {
  flex: 1
}
.statusbar .status-item {
  padding-left: 12px;
  border-left: 1px solid #d1d9e1
}
.statusbar .coordinates {
  font-variant-numeric: tabular-nums
}
.progress-track {
  height: 2px;
  background: #254b42;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20
}
.progress-bar {
  height: 100%;
  background: #63d4ab;
  transition: width .1s
}
.panel-hidden-left .workbench {
  grid-template-columns: 0 minmax(180px,1fr) var(--right)
}
.panel-hidden-left .project-panel {
  display: none
}
.panel-hidden-right .workbench {
  grid-template-columns: var(--left) minmax(180px,1fr) 0
}
.panel-hidden-right .properties-panel {
  display: none
}
.panel-hidden-left.panel-hidden-right .workbench {
  grid-template-columns: 0 minmax(180px,1fr) 0
}
.results-max .schematic-region,.results-max .document-tabs {
  display: none
}
.results-max .results-pane {
  height: auto;
  flex: 1
}
.results-hidden .results-pane,.results-hidden .chart-resize {
  display: none
}
.empty-state {
  margin: auto;
  max-width: 330px;
  text-align: center;
  padding: 28px;
  color: #728d9f
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: #a8bdc9
}
.empty-state p {
  font-size: 11px;
  line-height: 1.8
}
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 15px;
  color: #6f8995
}
.boot-logo {
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #18352e;
  color: #71d3b5;
  align-items: center;
  justify-content: center;
  font-size: 25px
}
.boot h1 {
  font-size: 22px;
  letter-spacing: -1px;
  color: #314b55
}
dialog {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  width: 580px;
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 50px);
  box-shadow: 0 25px 90px #1023374a;
  overflow: hidden
}
dialog::backdrop {
  background: #10233560;
  backdrop-filter: blur(2px)
}
.dialog-header {
  display: flex;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px
}
.dialog-header h2 {
  font-weight: 600;
  font-size: 16px;
  flex: 1
}
.dialog-header .header-icon {
  color: var(--accent)
}
.dialog-content {
  padding: 20px;
  max-height: calc(100vh - 212px);
  overflow: auto
}
.dialog-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 20px;
  background: var(--subtle);
  border-top: 1px solid var(--border)
}
.dialog-footer .spacer {
  flex: 1
}
.dialog-footer small {
  color: var(--muted);
  font-size: 10px
}
.dialog-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px
}
.form-field>label {
  font-size: 11px;
  font-weight: 500;
  color: #697d8d
}
.form-field>small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5
}
.form-field.full {
  grid-column: 1/-1
}
.form-field .inline-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text)
}
.form-field .inline-check input {
  margin: 0
}
.dialog-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0
}
.dialog-error {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #efcccc;
  background: #fff5f5;
  border-radius: 5px;
  font-size: 11px;
  color: #a64c4c;
  line-height: 1.6
}
.dialog-error:empty {
  display: none
}
.code-editor {
  font: 11px/1.8 var(--mono);
  width: 100%;
  min-height: 300px;
  resize: vertical;
  tab-size: 2;
  white-space: pre;
  background: var(--subtle);
  padding: 14px;
  overflow: auto
}
.dialog-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px
}
.dialog-tabs button {
  padding: 7px 10px;
  font-size: 11px;
  background: var(--subtle);
  border: 1px solid var(--border)
}
.dialog-tabs button.active {
  background: var(--accentSoft);
  border-color: #accfc0;
  color: var(--accent)
}
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}
.example-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px;
  text-align: left;
  white-space: normal;
  border: 1px solid var(--border);
  min-height: 126px;
  gap: 7px
}
.example-card svg {
  color: var(--accent);
  margin-bottom: 2px
}
.example-card strong {
  font-size: 12px;
  font-weight: 600
}
.example-card small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6
}
.example-card:hover {
  border-color: #98c5b2;
  background: #f0f8f5
}
.command-results {
  display: flex;
  flex-direction: column;
  gap: 3px
}
.command-result {
  padding: 10px 7px;
  justify-content: flex-start;
  font-size: 12px;
  text-align: left
}
.command-result .key {
  margin-left: auto;
  color: var(--muted)
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px
}
.table th {
  text-align: left;
  background: var(--subtle);
  color: var(--muted);
  font-weight: 600
}
.table th,.table td {
  padding: 9px;
  border-bottom: 1px solid var(--border)
}
.table input {
  width: 95px;
  padding: 4px
}
.issues-list .issue {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 11px;
  line-height: 1.6
}
.issue.error svg {
  color: #bf6868
}
.issue.warning svg {
  color: #b6934f
}
.notice {
  background: #f2f7fb;
  border: 1px solid #d9e5ef;
  border-radius: 5px;
  color: #6d859a;
  font-size: 11px;
  line-height: 1.75;
  padding: 10px 13px;
  margin: 12px 0
}
.notice.good {
  background: #eef8f2;
  border-color: #d2e7da;
  color: #5f8d74
}
#toast-stack {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  max-width: 460px;
  pointer-events: none
}
.toast {
  padding: 12px 16px;
  background: #172f3a;
  color: #d5eee6;
  font-size: 12px;
  border: 1px solid #49676a;
  border-radius: 6px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
  line-height: 1.6
}
.toast.error {
  background: #462c31;
  color: #f3d9d9;
  border-color: #78454b
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.recovery-banner {
  background: #fff7df;
  padding: 8px 12px;
  color: #8b783c;
  display: flex;
  align-items: center;
  gap: 10px
}
.recovery-banner button {
  font-size: 10px;
  text-decoration: underline
}
body.dark,.app-shell.dark {
  --chrome: #1d2733;
  --panel: #222e3b;
  --subtle: #1d2835;
  --border: #344353;
  --border2: #2d3a49;
  --text: #c2cfdd;
  --muted: #8296ac;
  --accent: #229d81;
  --accentSoft: #203d36;
  --selection: #2a4055;
  color-scheme: dark;
  color: var(--text)
}
.dark .menubar,.dark .toolbar {
  background: var(--chrome)
}
.dark .document-tabs {
  background: #172330
}
.dark .vertical-tools,.dark .statusbar {
  background: #1a2633
}
.dark .tool-button {
  color: #90a6bc
}
.dark .profile-card {
  background: #20332f;
  border-color: #304c42
}
.dark .selection-icon {
  background: #352f47;
  border-color: #4f4563
}
.dark .profile-card p {
  color: #87a99b
}
.dark .summary-cell {
  background: #1f2a36
}
.dark .chart-resize {
  background: #344353
}
.dark .backend-badge {
  background: #253e35;
  border-color: #3c5e50;
  color: #87b69f
}
.dark .tool-button.active {
  background: #29473e;
  border-color: #39755e;
  color: #75d2ad
}
.dark .example-card:hover {
  background: #234138
}
.dark .notice {
  background: #243548;
  border-color: #314c66;
  color: #91b1cb
}
.dark .notice.good {
  background: #263e33;
  border-color: #365e49;
  color: #90ba9f
}
.dark .dialog-error {
  background: #462f35;
  border-color: #78444c;
  color: #ebacac
}
.dark .statusbar {
  border-color: #344353
}
.dark .statusbar .status-message {
  color: #9fb0c1
}
.dark .toolbar {
  border-color: #344353
}
@media(max-width:1150px) {
  :root {
    --left: 200px;
    --right: 210px;
    --chart: 252px
  }
  .brand-small,.toolbar-label,.local-indicator {
    display: none
  }
  .tool-group {
    padding-right: 6px;
    margin-right: 1px
  }
  .toolbar {
    padding-left: 7px;
    gap: 2px
  }
  .tool-group .profile-select {
    width: 113px
  }
  .prop-field {
    grid-template-columns: 70px minmax(0,1fr)
  }
  .titlebar {
    gap: 12px
  }
  .document-title {
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden
  }
  .toolbar-optional {
    display: none
  }
}
@media(max-width:850px) {
  :root {
    --left: 180px;
    --right: 0px;
    --chart: 230px
  }
  .properties-panel {
    display: none
  }
  .brand-small,.document-title span,.toolbar-optional2 {
    display: none
  }
  .menubar>button {
    padding: 0 9px
  }
  .titlebar {
    padding: 0 10px
  }
  .menubar .menu-right {
    display: none
  }
  .trace-legend {
    gap: 8px
  }
  .toolbar {
    height: 42px
  }
  .statusbar .optional {
    display: none
  }
}
@media(max-width:620px) {
  :root {
    --left: 0px;
    --right: 0px;
    --chart: 220px
  }
  .project-panel {
    display: none
  }
  .titlebar {
    height: 38px
  }
  .brand {
    font-size: 15px
  }
  .title-divider,.document-title,.titlebar .title-btn span {
    display: none
  }
  .menubar {
    height: 29px
  }
  .menubar>button {
    padding: 0 8px;
    font-size: 10px
  }
  .toolbar {
    padding: 4px;
    gap: 0
  }
  .tool-group {
    padding-right: 4px;
    margin-right: 3px
  }
  .tool-button {
    width: 27px;
    height: 29px
  }
  .toolbar-optional,.toolbar-optional2,.toolbar-optional3,.toolbar-spacer,.backend-badge {
    display: none
  }
  .tool-group .profile-select {
    width: 102px
  }
  .run-button {
    padding: 0 9px
  }
  .document-tab {
    padding: 0 10px
  }
  .vertical-tools {
    width: 34px
  }
  .canvas-breadcrumb {
    display: none
  }
  .canvas-controls {
    right: 8px;
    bottom: 10px
  }
  .statusbar {
    font-size: 9px;
    padding: 0 7px;
    gap: 8px
  }
  .statusbar .status-item {
    padding-left: 7px
  }
  .statusbar .coordinates {
    display: none
  }
  .results-header {
    gap: 10px;
    padding: 0 9px
  }
  .results-tab {
    font-size: 9px
  }
  .result-status {
    display: none
  }
  .chart-toolbar {
    padding: 0 8px
  }
  .trace-legend {
    gap: 8px
  }
  .trace-toggle {
    font-size: 9px
  }
  .chart-toolbar select {
    max-width: 76px
  }
  .chart-footer {
    font-size: 8px;
    padding: 0 8px;
    gap: 8px
  }
  .chart-footer .right {
    display: none
  }
  .form-grid,.example-grid {
    grid-template-columns: 1fr
  }
  .dialog-content {
    padding: 15px
  }
  .tool-hint {
    bottom: 46px;
    font-size: 9px;
    max-width: 95%;
    padding: 6px 10px
  }
  dialog {
    max-height: calc(100vh - 22px)
  }
  .button-primary,.button-secondary {
    padding: 8px 10px
  }
  .results-pane {
    min-height: 80px
  }
}
@media print {
  .titlebar,.menubar,.toolbar,.project-panel,.properties-panel,.vertical-tools,.results-pane,.statusbar,.document-tabs,.chart-resize,.canvas-controls,.tool-hint,.canvas-breadcrumb {
    display: none!important
  }
  .workbench {
    display: block
  }
  .center,.schematic-region {
    height: 100%
  }
  .canvas-host {
    height: 100%;
    width: 100%
  }
  .app-shell {
    height: 100vh
  }
}
[hidden] {
  display: none!important
}
/* Explicit grid placement keeps the center in column 2 when either dock is hidden. */
.workbench {
  position: relative
}
.project-panel {
  grid-column: 1;
  grid-row: 1
}
.center {
  grid-column: 2;
  grid-row: 1
}
.properties-panel {
  grid-column: 3;
  grid-row: 1
}
.mobile-panel-close {
  display: none
}
@media(max-width:850px) {
  .mobile-properties-open .properties-panel {
    display: flex!important;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(300px,85vw);
    z-index: 45;
    box-shadow: -12px 0 30px #15243630
  }
  .properties-panel .mobile-panel-close {
    display: inline-flex
  }
}
@media(max-width:620px) {
  .mobile-project-open .project-panel {
    display: flex!important;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(275px,85vw);
    z-index: 45;
    box-shadow: 12px 0 30px #15243630
  }
  .project-panel .mobile-panel-close {
    display: inline-flex
  }
  .dialog-footer small {
    display: none
  }
}
