@font-face {
  font-family: "DM Sans";
  src: url("../media/dm-sans.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../media/dm-sans-bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17322e;
  --text: #253b36;
  --muted: #556761;
  --faint: #798580;
  --teal: #175344;
  --teal-hover: #0d4638;
  --mint: #e5efe8;
  --clay: #a45535;
  --panel: #fcfbf7;
  --paper: #faf9f4;
  --line: #d7dad2;
  --line-mid: #bac3b9;
  --line-ink: #99a99e;
  --toolbar: #f6f6f0;
  --ring: #126a79;
  --radius: 5px;
  --shadow: 0 7px 22px #243b331c, 0 1px 2px #243b330a;
  font-family: "DM Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.45;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--paper); }
button, input, select, textarea, summary { font: inherit; color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .43; }
a { color: var(--teal); text-underline-offset: .16em; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
button, input, select, textarea, summary { outline-offset: 1px; }
button::-moz-focus-inner { border: 0; }
button:disabled:hover { border-color: var(--line); }
svg.icon {
  width: 17px; height: 17px; flex: none; display: block; fill: none;
  stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 8px 12px; background: white; }
#studio-startup {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center;
  color: var(--ink); background: var(--paper);
}
#studio-startup p { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.workbench[inert] { visibility: hidden; }
.workbench {
  display: grid; grid-template-rows: 66px minmax(0,1fr) auto;
  height: 100vh; height: 100dvh; min-height: 340px; isolation: isolate;
}
.masthead {
  display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 16px;
  padding: 0 19px; border-bottom: 1px solid var(--line-ink); background: var(--panel); z-index: 6;
}
.identity, .file-actions, .brand-text, .button, .icon-button, .menu-list button,
.edit-tools, .drawing-toolbar, .view-switch, .panel-heading, .tab-bar,
.snap-control, .snap-control label, .status-controls, .status-mode, .datum, .units { display: flex; align-items: center; }
.identity { min-width: 0; gap: 10px; }
.brand-text { flex-direction: column; align-items: flex-start; min-width: 0; }
.brand-text h1 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -.052em; color: var(--ink); }
.brand-byline { line-height: 1.2; margin-top: 2px; font-size: 11px; color: var(--muted); text-decoration: none; }
.brand-byline:hover { text-decoration: underline; }
.brand-mark {
  display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 5px;
  background: var(--teal); color: white;
}
.brand-mark svg { width: 33px; height: 33px; }
.file-actions { gap: 7px; }
.button, .icon-button, .tool-grid button, .view-switch button {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-mid);
  border-radius: var(--radius); line-height: 1.15; min-height: 35px; font-size: 13px;
  font-weight: 600; white-space: nowrap; justify-content: center;
}
.button { gap: 7px; padding: 0 11px; }
.icon-button { padding: 0; min-width: 35px; width: 35px; }
.button:hover, .icon-button:hover:not(:disabled), .tool-grid button:hover, .view-switch button:hover { background: #eef1e9; border-color: var(--line-ink); }
.button.primary, .view-switch [aria-pressed=true], .edit-tools button[aria-pressed=true] { border-color: var(--teal); background: var(--teal); color: white; }
.button.primary:hover, .view-switch [aria-pressed=true]:hover, .edit-tools button[aria-pressed=true]:hover { background: var(--teal-hover); }
.chevron.icon { width: 11px; height: 11px; }
.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .chevron { transform: rotate(180deg); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 7px); min-width: 212px;
  display: grid; gap: 2px; padding: 5px; border-radius: 7px; border: 1px solid var(--line-mid);
  background: var(--panel); box-shadow: var(--shadow); z-index: 12;
}
.menu-list button { border: 0; border-radius: 3px; background: transparent; gap: 9px; padding: 9px; width: 100%; font-size: 13px; text-align: left; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--mint); }
.menu-list button small { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.work-area {
  display: grid; position: relative; grid-template-columns: clamp(194px,17.4%,260px) minmax(0,1fr) clamp(229px,20%,315px);
  min-height: 0; min-width: 0;
}
.sidebar { min-width: 0; background: var(--panel); }
.tools-panel {
  padding: 17px 13px 17px; border-right: 1px solid var(--line); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #bcc6bc transparent;
}
.panel-heading { justify-content: space-between; margin: 0 0 12px; }
.sidebar h2, .group-title { font-size: 15px; line-height: 1.3; letter-spacing: -.026em; font-weight: 700; color: var(--ink); }
.panel-heading h2, .draw-tools h2 { margin: 0; }
.library { display: grid; gap: 5px; }
.library :where(button, .asset-button) {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 7px 9px;
  min-height: 46px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  line-height: 1.21; color: var(--ink); background: var(--panel);
}
.library :where(button, .asset-button):hover { background: #f1f5ee; border-color: #93ab9d; }
.library :is([aria-pressed=true], .active, .selected, [data-active=true]),
.tool-grid button[aria-pressed=true], .tool-grid button.active {
  background: var(--mint); color: var(--teal); border-color: #6b9782;
  box-shadow: inset 2px 0 0 var(--teal);
}
.library .asset-preview, .library .asset-thumb {
  flex: 0 0 clamp(36px,3.8vw,66px); width: clamp(36px,3.8vw,66px); height: 32px;
  display: grid; place-items: center; color: var(--teal);
}
.library button > svg, .library .asset-preview svg, .library .asset-thumb svg { display: block; width: clamp(36px,3.8vw,66px); height: 30px; flex: none; }
.library :where(.asset-title, strong) { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.24; }
.library :where(.asset-spec, small) { display: block; font-size: 10px; line-height: 1.25; color: var(--muted); font-weight: 400; margin-top: 2px; }
.library :where(.asset-copy,.asset-text) { min-width: 0; }
.library :where(h3,.library-label) { margin: 10px 0 0; font-size: 11px; letter-spacing: .015em; color: var(--muted); }
.draw-tools { margin: 16px -1px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.tool-grid button { display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 0 7px; min-height: 33px; font-size: 11.5px; font-weight: 500; border-color: var(--line); }
.tool-grid .icon { width: 16px; height: 16px; }
.route-icon { color: var(--clay); }
.drawer-close, .mobile-tools, .drawer-scrim { display: none; }
.drawing-workspace {
  min-height: 0; min-width: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr);
  padding: 15px 12px 12px; background: #f8f8f2;
}
.drawing-title { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 1px 9px; border-bottom: 1px solid var(--line); }
.name-control { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
#project-name {
  width: 100%; min-width: 0; text-overflow: ellipsis; padding: 2px 3px; margin-left:-3px;
  background: transparent; border: 1px solid transparent; border-radius: 3px;
  color: var(--ink); font: 700 clamp(20px,1.65vw,29px)/1.15 "DM Sans",Arial,sans-serif; letter-spacing: -.05em;
}
#project-name:hover { border-color: var(--line); }
#project-name:focus { text-overflow: clip; border-color: var(--line-ink); background: var(--panel); }
.edit-project { cursor: text; color: var(--muted); }
.edit-project .icon { width: 13px; height: 13px; }
.drawing-summary { font-size: 11px; white-space: nowrap; color: var(--muted); padding-left: 11px; border-left: 1px solid var(--line); }
.drawing-summary:empty { display: none; }
.drawing-toolbar { gap: 9px; height: 49px; min-width: 0; }
.view-switch { flex: none; }
.view-switch button { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 31px; border-radius: 0; font-size: 12px; }
.view-switch :first-child { border-radius: var(--radius) 0 0 var(--radius); }
.view-switch :last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.view-switch button + button { margin-left: -1px; }
.view-switch .icon { width: 15px; height: 15px; }
.toolbar-rule { width: 1px; height: 18px; background: var(--line-mid); flex: none; }
.edit-tools { gap: 4px; }
.edit-tools .icon-button { width: 31px; min-width: 31px; min-height: 31px; border-color: transparent; background: transparent; }
.edit-tools .icon-button[aria-pressed=true] { background: var(--teal); }
.drawing-frame {
  position: relative; isolation: isolate; min-width: 0; min-height: 0;
  border: 1px solid #aab7ab; border-radius: 5px; background: var(--paper); overflow: hidden;
}
#scene { position: absolute; inset: 0; touch-action: none; overflow: hidden; }
#scene:focus-visible { outline-offset: -3px; }
#scene > svg, #scene > canvas { width: 100%; height: 100%; display: block; }
.canvas-zoom { display: flex; position: absolute; bottom: 11px; right: 11px; border: 1px solid var(--line-mid); border-radius: 4px; background: var(--panel); box-shadow: 0 1px 4px #253a3114; overflow: hidden; }
.canvas-zoom .icon-button { border: 0; border-right: 1px solid var(--line); border-radius: 0; min-width: 30px; width: 30px; min-height: 29px; }
.canvas-zoom .icon-button:last-child { border: 0; }
.canvas-zoom .icon-button:focus-visible { outline-offset: -3px; }
.canvas-zoom .icon { width: 15px; height: 15px; }
.draft-controls { position: absolute; top: 9px; left: 9px; right: 9px; width: fit-content; max-width: calc(100% - 18px); display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line-mid); border-radius: 5px; padding: 6px; font-size: 12px; }
.draft-controls button, .draft-controls input { min-height: 29px; border: 1px solid var(--line-mid); background: var(--panel); border-radius: 3px; padding: 2px 7px; font-size: 12px; }
.draft-controls .draft-help { flex-basis: 100%; line-height: 1.3; }
.draft-controls .draft-finish:not(:disabled) { background: var(--teal); color: white; border-color: var(--teal); }
.draft-controls button:hover { background: var(--mint); }
.draft-controls input { max-width: 75px; background: white; }
.draft-controls label { display: inline-flex; align-items: center; gap: 4px; }
.notice { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: min(90%,510px); width: max-content; padding: 8px 13px; border: 1px solid #486759; background: #224639; color: white; font-size: 12px; border-radius: 5px; box-shadow: var(--shadow); }
.notice:empty { display: none; }
.detail-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.tab-bar { min-height: 49px; padding: 0 11px; border-bottom: 1px solid var(--line); flex: none; }
.details-tabs { display: flex; align-self: stretch; width: 100%; }
.details-tabs button { position: relative; min-width: 0; flex: 1; border: 0; padding: 0 5px; margin: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.2; }
.details-tabs button:hover { background: #f0f3ec; color: var(--ink); }
.details-tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; }
.details-tabs button[aria-selected=true]::after { content: ""; position: absolute; height: 2px; background: var(--teal); left: 6px; right: 6px; bottom: -1px; }
.details-tabs button:focus-visible { outline-offset: -4px; }
.detail-content { min-height: 0; min-width: 0; overflow: auto; padding: 15px 13px 22px; scrollbar-width: thin; scrollbar-color: #bcc6bc transparent; }
.detail-content:focus-visible { outline-offset: -3px; }
.detail-content :where(h2,h3,h4,legend) { color: var(--ink); line-height: 1.28; font-weight: 700; }
.detail-content :where(h2) { margin: 0 0 8px; font-size: 17px; letter-spacing: -.035em; }
.detail-content :where(h3,h4,legend,.group-title) { margin: 13px 0 8px; font-size: 13px; letter-spacing: -.015em; }
.detail-content > :first-child { margin-top: 0; }
.detail-content p { margin: 7px 0 11px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.detail-content small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.detail-content :where(fieldset,.field-group,.inspector-group) { border: 0; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.detail-content fieldset legend { float: left; width: 100%; margin: 0 0 9px; }
.detail-content :where(label,.field-label) { color: var(--text); font-size: 12px; font-weight: 500; }
.detail-content :where(label.field,label:has(>input),label:has(>select),label:has(>textarea)) { display: grid; gap: 4px; margin: 6px 0; }
.detail-content :where(input:not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; min-width: 0; min-height: 32px; padding: 4px 7px; font-size: 12px; background: #fffefa; color: var(--ink); border: 1px solid var(--line-mid); border-radius: 4px; }
.detail-content input[type=color] { max-width: 60px; padding: 2px; }
.detail-content textarea { resize: vertical; min-height: 55px; }
.detail-content input:focus, .detail-content select:focus, .detail-content textarea:focus { border-color: var(--teal); }
.detail-content :where(.field-grid,.pair,.field-pair) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 8px; }
.detail-content :where(.field-grid,.pair,.field-pair) > * { min-width: 0; margin: 0; }
.detail-content :where(.row,.field-row,.inspector-row) { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.detail-content :where(button,.btn) { border: 1px solid var(--line-mid); border-radius: 4px; padding: 6px 9px; background: var(--panel); color: var(--ink); min-height: 31px; font-size: 12px; font-weight: 600; }
.detail-content :where(button,.btn):hover { background: var(--mint); border-color: var(--line-ink); }
.detail-content :where(.danger,.destructive) { color: #973e31; }
.detail-content :where(.actions,.button-row) { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.detail-content :where(details) { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
.detail-content :where(summary) { padding: 3px 0; font-weight: 600; font-size: 13px; cursor: pointer; }
.detail-content :where(dl) { margin: 6px 0 12px; font-size: 12px; }
.detail-content :where(dt) { color: var(--muted); }
.detail-content :where(dd) { margin: 0 0 4px; }
.detail-content :where(ul,ol) { padding-left: 17px; font-size: 12px; }
.detail-content :where(.review-item,.check-item) { border-top: 1px solid var(--line); padding: 10px 0; }
.detail-content :where(.review-item,.check-item) > :first-child { margin-top: 0; }
.status-bar {
  min-width: 0; min-height: 34px; display: flex; align-items: center; gap: 14px; padding: 4px 16px;
  border-top: 1px solid var(--line-mid); background: var(--panel); color: var(--muted); font-size: 11px;
}
.status-mode { gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
#mode-status { color: var(--ink); }
.local-status:empty,.cursor-coords:empty { display: none; }
.local-status { padding-left: 12px; border-left: 1px solid var(--line); flex: none; }
.status-controls { margin-left: auto; gap: 12px; flex: none; }
.status-controls > * + * { padding-left: 12px; border-left: 1px solid var(--line); }
.snap-control, .snap-control label, .datum, .units { gap: 5px; }
.status-bar .icon { width: 13px; height: 13px; color: var(--teal); }
.snap-control select { max-width: 82px; border: 0; background: transparent; color: var(--ink); font-size: 11px; cursor: pointer; }
.units b { font-weight: 600; color: var(--ink); }
.noscript { position: fixed; top: 75px; left: 50%; transform: translateX(-50%); max-width: 400px; padding: 18px; border: 1px solid var(--line-mid); background: var(--panel); z-index: 20; }
.help-button { border-color: transparent; padding: 0; width: 35px; }
.help-list { width: 292px; max-width: calc(100vw - 16px); padding: 15px; }
.help-list h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.help-list ol { margin: 7px 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.help-list li + li { margin-top: 5px; }
.help-list a { display: block; padding: 3px 0; font-size: 12px; }
@media (min-width: 1500px) {
  .masthead { padding-inline: 24px; }
  .tools-panel, .detail-content { padding-inline: 18px; }
  .library :where(button, .asset-button) { min-height: 53px; padding: 8px 12px; }
  .drawing-workspace { padding: 17px 15px 14px; }
  .library :where(.asset-title,strong) { font-size: 13px; }
}
@media (max-width: 1110px) and (min-width: 801px) {
  .work-area { grid-template-columns: 176px minmax(0,1fr) 214px; }
  .tools-panel, .detail-content { padding-inline: 10px; }
  .library :where(button, .asset-button) { gap: 7px; padding-inline: 6px; }
  .drawing-workspace { padding-inline: 8px; }
  .tool-grid button { gap: 4px; padding-inline: 5px; }
  .drawing-summary { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 900px) {
  .cursor-coords { display: none; }
  .status-bar { gap: 9px; padding-inline: 11px; }
  .status-controls { gap: 8px; }
  .status-controls > * + * { padding-left: 8px; }
}
@media (max-width: 800px), (max-width: 975px) and (orientation: portrait) {
  .workbench { grid-template-rows: 56px minmax(0,1fr) auto; }
  .masthead { padding-inline: 12px; gap: 7px; }
  .work-area { grid-template-columns: minmax(0,1fr); }
  .drawing-workspace { padding: 10px 8px 8px; }
  .drawing-title { padding: 0 2px 5px; }
  .drawing-summary { overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
  .drawing-toolbar { height: 47px; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; }
  .brand-mark { width: 32px; height: 34px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-text h1 { font-size: 17px; }
  .brand-byline { font-size: 10px; }
  .sidebar { position: absolute; top: 0; bottom: 0; width: min(310px,calc(100% - 40px)); z-index: 5; visibility: hidden; }
  .sidebar.tools-panel { left: 0; padding: 13px; }
  .sidebar.detail-panel { right: 0; }
  .work-area[data-drawer=tools] .tools-panel, .work-area[data-drawer=details] .detail-panel { visibility: visible; box-shadow: var(--shadow); }
  .drawer-scrim:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 4; border: 0; background: #15292248; cursor: default; }
  .drawer-close { display: flex; min-width: 30px; width: 30px; min-height: 30px; border-color: transparent; }
  .mobile-tools { display: flex; gap: 4px; margin-left: auto; }
  .mobile-tools .button { padding: 0 8px; min-height: 32px; font-size: 12px; }
  .library :where(button,.asset-button) { min-height: 48px; }
  .library button > svg, .library .asset-preview, .library .asset-preview svg, .library .asset-thumb, .library .asset-thumb svg { width: 62px; flex-basis: 62px; }
  .detail-panel .tab-bar { gap: 5px; }
  .status-bar { min-height: 35px; }
  .local-status { font-size: 10px; }
  .status-mode { font-size: 10px; }
  .canvas-zoom { bottom: 8px; right: 8px; }
  .canvas-zoom .icon-button { min-height: 33px; min-width: 33px; }
  .help-list { right: auto; left: -85px; }
}
@media (max-width: 550px) {
  .masthead { padding-inline: 8px; }
  .identity { gap: 6px; }
  .button { min-height: 32px; gap: 4px; }
  .file-actions { gap: 3px; }
  .file-actions > .button, .open-menu > summary { padding-inline: 6px; }
  .file-actions .help-button { width: 24px; }
  .file-actions .export-options > summary { padding-inline: 7px; }
  .file-actions .export-options .chevron { display: none; }
  .status-controls .datum, .units, .local-status { display: none; }
  .status-controls > .snap-control { border: 0; padding-left: 0; }
  .drawing-summary { display: none; }
  .help-list { position: fixed; top: 49px; left: auto; right: 8px; }
}
@media (max-width: 420px) {
  .brand-text h1 { font-size: 16px; }
  .brand-mark { width: 29px; height: 31px; }
  .file-actions .open-menu > summary span, #save-project span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .file-actions > .button,.open-menu > summary { width: 31px; }
  .drawing-toolbar { gap: 5px; }
  .view-switch button { padding-inline: 7px; }
  .toolbar-rule { display: none; }
  .edit-tools { gap: 1px; }
  .edit-tools .icon-button { width: 27px; min-width: 27px; }
  .mobile-tools .button { padding-inline: 6px; }
  .mobile-tools .icon { width: 14px; }
  .draft-controls { left: 4px; right: 4px; top: 4px; max-width: calc(100% - 8px); }
}
@media (max-width: 365px) {
  .workbench { overflow-x: clip; }
  .open-menu .menu-list { position: fixed; top: 49px; left: 8px; right: auto; }
  .mobile-tools .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-tools .button { width: 30px; }
  .brand-text h1 { font-size: 14px; }
  .identity { gap: 4px; }
}
@media (max-height: 720px) and (min-width: 801px) {
  .workbench { grid-template-rows: 55px minmax(0,1fr) auto; }
  .drawing-workspace,.tools-panel { padding-top: 10px; }
  .library :where(button,.asset-button) { min-height: 39px; padding-block: 4px; }
  .library { gap: 4px; }
  .draw-tools { margin-top: 11px; padding-top: 9px; }
}
@media (prefers-reduced-motion:no-preference) {
  .button,.icon-button,.tool-grid button,.library button,.view-switch button { transition: background-color 100ms ease,border-color 100ms ease,color 100ms ease; }
}
.inspector-title { margin: 0 0 11px; }
.inspector-title .panel-tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--teal); }
.inspector-title h2 { margin: 3px 0 7px; }
.detail-content .fact-list { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 9px; margin: 7px 0 12px; }
.fact-list dt, .fact-list dd { padding: 5px 0; margin: 0; border-bottom: 1px solid var(--line); }
.fact-list dd { font-weight: 600; text-align: right; }
.detail-content .panel-group { margin: 10px 0; padding-top: 7px; }
.panel-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; padding: 4px 1px; }
.panel-group > summary::-webkit-details-marker { display: none; }
.panel-group > summary::after { content: ""; width: 6px; height: 6px; display: block; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); flex: none; margin-right: 3px; }
.panel-group[open] > summary::after { transform: rotate(45deg); margin-bottom: 3px; }
.panel-group > summary:hover { color: var(--teal); }
.panel-group[open] > summary { margin-bottom: 4px; }
.field-label { display: block; }
.detail-content .check-field, .studio-dialog .check-field { display: flex; align-items: center; gap: 7px; margin: 7px 0; }
.check-field input { margin: 0; accent-color: var(--teal); }
.detail-content .field-hint { margin: 7px 0; font-size: 11px; color: var(--muted); }
.detail-content .item-actions { display: flex; gap: 5px; flex-wrap: wrap; padding-top: 9px; border-top: 1px solid var(--line); margin-top: 12px; }
.detail-content .object-list { display: grid; gap: 3px; margin-top: 5px; }
.detail-content .object-link { display: inline-block; min-height: 25px; text-align: left; padding: 3px 7px; color: var(--teal); background: #f1f5ed; font-size: 11px; border-color: var(--line); }
.detail-content .vertex-table { display: grid; gap: 6px; margin: 6px 0 9px; }
.detail-content .vertex-row { display: grid; grid-template-columns: 24px minmax(0,1fr) minmax(0,1fr) 22px; align-items: end; gap: 4px; }
.detail-content .vertex-row .field { margin: 0; }
.detail-content :where(.vertex-no,.vertex-delete) { padding: 0; width: 100%; min-height: 31px; }
.detail-content .vertex-no[aria-pressed=true] { background: var(--teal); color: white; }
.detail-content .vertex-delete { color: #923f31; }
.detail-content .review-item { padding: 10px 0 11px; }
.review-item .check-status { display: inline-block; padding: 1px 4px 1px 5px; color: var(--muted); font-size: 10px; text-transform: capitalize; border-left: 2px solid var(--line-ink); }
.review-item.warning .check-status { color: #94432d; border-color: #b35d41; background: #f9eee5; }
.review-item.review .check-status { color: #725524; border-color: #a6874b; background: #f5f1e3; }
.review-item.pass .check-status { color: var(--teal); border-color: var(--teal); background: var(--mint); }
.detail-content .review-item h3 { margin: 4px 0; }
.detail-content .review-item p { margin: 4px 0 7px; }
.review-item a { display: inline-block; margin-left: 6px; font-size: 11px; }
.studio-dialog { border: 1px solid var(--line-ink); border-radius: 8px; width: min(385px,calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 20px; color: var(--text); background: var(--panel); box-shadow: var(--shadow); }
.studio-dialog::backdrop { background: #172c235a; }
.studio-dialog h2 { margin: 0 0 12px; font-size: 20px; color: var(--ink); line-height: 1.2; letter-spacing: -.035em; }
.studio-dialog p { font-size: 12px; color: var(--muted); }
.studio-dialog .field { display: grid; gap: 3px; margin: 8px 0; font-size: 12px; }
.studio-dialog .field input, .studio-dialog .field select { width: 100%; min-height: 33px; padding: 5px 7px; border: 1px solid var(--line-mid); border-radius: 4px; color: var(--ink); background: #fffefa; }
.studio-dialog .dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.studio-dialog .dialog-primary { background: var(--teal); border-color: var(--teal); color: white; }
.studio-dialog .dialog-error { color: #953c2d; margin-bottom: 0; }
.studio-dialog .dialog-error:empty { display: none; }
.notice.error { background: #793c32; border-color: #69362d; }
.draft-controls button[aria-pressed=true] { background: var(--mint); color: var(--teal); border-color: #7e9e8c; }
.network-button { min-height: 31px; font-size: 12px; padding: 0 9px; }
.network-button .icon { width: 15px; height: 15px; }
.help-list p { margin: 3px 0 7px; color: var(--muted); font-size: 11px; }
.network-dialog {
  padding: 0; border: 1px solid #9bab9f; border-radius: 8px; color: var(--text); background: var(--panel);
  width: min(1200px,calc(100vw - 40px)); height: min(860px,calc(100dvh - 50px));
  max-width: none; max-height: none; overflow: hidden; box-shadow: 0 12px 45px #18322835;
}
.network-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.network-dialog::backdrop { background: #172c235c; }
.network-header,.network-controls,.network-zoom,.network-filter,.network-footer,.network-view-buttons { display: flex; align-items: center; }
.network-header { gap: 8px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.network-header > div { flex: 1; min-width: 0; }
.network-header h2 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.25; letter-spacing: -.045em; }
.network-header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-controls { min-width: 0; flex-wrap: wrap; min-height: 45px; padding: 6px 13px; gap: 9px; border-bottom: 1px solid var(--line); background: var(--toolbar); }
.network-controls .network-filter { gap: 5px; font-size: 12px; }
.network-filter select, .network-objects input { background: #fffefa; color: var(--ink); border: 1px solid var(--line-mid); border-radius: 4px; min-height: 30px; padding: 3px 7px; }
.network-filter select { max-width: 170px; }
.network-totals { font-size: 12px; color: var(--muted); }
.network-zoom { margin-left: auto; gap: 3px; }
.network-zoom .icon-button { min-height: 30px; width: 30px; min-width: 30px; }
.network-scale { min-width: 39px; text-align: center; color: var(--muted); font-size: 11px; }
.network-body { display: grid; grid-template-columns: minmax(0,1fr) clamp(195px,22%,260px); min-height: 0; }
.network-drawing { min-width: 0; min-height: 0; background: var(--paper); }
.network-drawing > svg { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; touch-action: none; }
.network-drawing > svg:focus-visible { outline-offset: -3px; }
.network-drawing svg.panning { cursor: grabbing; }
.network-drawing [data-asset-id], .network-drawing [data-route-id] { cursor: pointer; }
.network-drawing [data-asset-id]:hover > rect { stroke: var(--teal); stroke-width: 2; }
.network-drawing [data-route-id]:hover path { stroke-width: 3.2; }
.network-objects { min-width: 0; min-height: 0; overflow-y: auto; padding: 11px; border-left: 1px solid var(--line); }
.network-objects h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.02em; }
.network-objects input { width: 100%; font-size: 12px; }
.network-list { display: grid; gap: 3px; }
.network-list h4 { margin: 10px 0 2px; color: var(--muted); font-size: 11px; }
.network-object { display: grid; width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; text-align: left; color: var(--ink); background: var(--panel); }
.network-object:hover { border-color: #94ac9b; background: var(--mint); }
.network-object > * { overflow-wrap: anywhere; }
.network-object strong { font-size: 12px; }
.network-object span { font-size: 11px; }
.network-object small { color: var(--muted); font-size: 10px; }
.network-empty { color: var(--muted); font-size: 12px; }
.network-footer { border-top: 1px solid var(--line); padding: 7px 14px; color: var(--muted); font-size: 11px; }
.network-view-buttons { display: none; }
@media (max-width:800px), (max-width:975px) and (orientation:portrait) {
  .drawing-toolbar .network-button { min-width: 31px; padding: 0 6px; }
  .network-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .network-dialog { height: calc(100dvh - 16px); width: calc(100vw - 14px); }
}
@media (max-width:620px) {
  .network-header { padding: 8px; gap: 4px; }
  .network-header h2 { font-size: 17px; }
  .network-header .primary { font-size: 12px; }
  .network-controls { padding: 5px 7px; gap: 5px; }
  .network-totals { display: none; }
  .network-filter { flex-basis: 100%; }
  .network-filter select { max-width: none; flex: 1; }
  .network-view-buttons { display: flex; gap: 3px; }
  .network-view-buttons .button { min-height: 30px; font-size: 12px; }
  .network-view-buttons [aria-pressed=true] { background: var(--mint); color: var(--teal); border-color: #80a390; }
  .network-body { grid-template-columns: minmax(0,1fr); }
  .network-body[data-pane=objects] .network-drawing,.network-body[data-pane=diagram] .network-objects { display: none; }
  .network-objects { border: 0; }
  .network-footer { padding: 6px 8px; font-size: 10px; }
}
@media (max-width:420px) {
  .mobile-tools .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-tools .button { width: 31px; }
}
.help-list .offline-examples { display: block; position: static; margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); }
.help-list .offline-examples summary { display: list-item; list-style: disclosure-closed; font-size: 12px; font-weight: 600; }
.help-list .offline-examples[open] summary { list-style: disclosure-open; }
.help-list { max-height: min(75dvh,calc(100dvh - 65px)); overflow-y: auto; overscroll-behavior: contain; }

.outline-preview{display:block;width:100%;height:145px;background:#f3f4ee;border:1px solid #d9ded1;border-radius:6px}.outline-hole-list{max-height:150px;overflow:auto}.studio-dialog select{max-width:100%}

.export-options .menu-list, .help-menu .menu-list {max-height:min(78vh,580px);overflow-y:auto;overscroll-behavior:contain;}
.section-list {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;}
.section-list button[aria-pressed="true"] {color:var(--teal);border-color:var(--teal);background:var(--mint);}
.section-fields[hidden] {display:none;}
.check-filter {display:grid;gap:6px;margin:8px 0;}
.check-filter input,.check-filter select {width:100%;min-width:0;}
.review-item .object-link {margin-right:4px;}

.battery-portfolio > img { display:block; width:100%; height:auto; max-height:190px; object-fit:contain; background:var(--paper); border:1px solid var(--line); border-radius:5px; }
.battery-portfolio > img[hidden] { display:none; }
.battery-portfolio dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:12px 0; }
.battery-portfolio dt, .battery-portfolio small { color:var(--muted); font-size:11px; }
.battery-portfolio dd { margin:2px 0; color:var(--ink); font-size:14px; font-weight:600; }
.battery-portfolio a { color:var(--teal); font-size:12px; }
.battery-portfolio small { display:block; margin-top:8px; }

.plan-command-bar { min-width: 0; }
.satellite-controls { min-width: 0; padding: 0 1px 8px; }
.satellite-find label { font-size: 12px; font-weight: 650; }
.satellite-search, .satellite-actions, .satellite-options { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.satellite-search { margin-top: 3px; }
.satellite-search input { flex: 1 1 135px; min-width: 0; height: 33px; padding: 4px 8px; border: 1px solid var(--line-ink); border-radius: var(--radius); font: inherit; }
.satellite-search .button { min-height: 33px; }
.satellite-note, .satellite-feedback { color: var(--muted); font-size: 11px; line-height: 1.4; }
.satellite-note { margin: 3px 0; }
.satellite-feedback:not(:empty) { margin: 3px 0; }
.satellite-actions { margin: 0 0 3px; }
.satellite-controls button:not(.button), .satellite-credit button {
  padding: 3px 6px; min-height: 27px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--teal); background: var(--panel); cursor: pointer; font: 600 11px/1.25 "DM Sans",sans-serif;
}
.satellite-options button:not(.button), .satellite-credit button { border: 0; min-height: 23px; text-decoration: underline; text-underline-offset: 2px; }
.satellite-options button:first-child { margin-left: 0; }
.satellite-credit { position: absolute; left: 6px; bottom: 6px; z-index: 1; max-width: calc(100% - 116px); padding: 3px 6px; border-radius: 3px; color: #253a31; background: #fffffff5; font: 10px/1.3 "DM Sans",sans-serif; }
.satellite-credit a { color: #124f3d; text-underline-offset: 2px; }
#satellite-state:not(:empty)::before { content: " · "; }
.satellite-controls [hidden], .satellite-credit[hidden], .satellite-credit [hidden] { display: none !important; }
@media (max-width: 480px) {
  .satellite-controls { padding-bottom: 5px; }
  .satellite-actions { gap: 4px; }
  .satellite-controls button:not(.button) { min-height: 28px; }
  .satellite-credit { font-size: 9px; }
}

.site-location-methods, .site-picker-tools { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:5px; }
.site-picker-dialog { width:min(620px,calc(100% - 16px)); }
.site-picker-map { position:relative; overflow:hidden; height:clamp(160px,43dvh,380px); border:1px solid var(--line-ink); border-radius:4px; background:#eeeee7; touch-action:none; cursor:crosshair; }
.site-picker-map > svg { width:100%; height:100%; display:block; pointer-events:none; }
.site-picker-map text { text-anchor:middle; font:600 10px system-ui,sans-serif; fill:#314238; stroke:#fff; stroke-width:2.5px; paint-order:stroke; }
.site-picker-mark { position:absolute; top:50%; left:50%; width:17px; height:17px; transform:translate(-50%,-50%); border:2px solid #113d35; outline:2px solid white; border-radius:50%; pointer-events:none; }
.site-picker-mark::after { content:''; position:absolute; width:3px; height:3px; inset:0; margin:auto; border-radius:50%; background:white; outline:1px solid #113d35; }
.site-picker-tools .button { min-width:40px; min-height:40px; }
.site-picker-tools output { font-variant-numeric:tabular-nums; font-size:12px; }
.site-picker-dialog .picker-layers { margin:0 0 5px; }
.picker-layers button[aria-pressed="true"] { background:var(--teal); color:white; }
.site-picker-credits { margin-block:4px; font-size:11px; line-height:1.3; }
.site-picker-credits a { color:var(--teal); }
.locator-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:9px; }
.locator-grid[hidden] { display:none; }

.selection-tools span { max-width: 17ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rotation-turns { display:flex; flex-wrap:wrap; gap:6px; }
#scene [data-mode="select"][data-view="plan"] [data-scene-type="asset"] { cursor:move; }
#scene [data-mode="select"] [data-scene-action="rotate"] { cursor:grab; }
#scene [data-mode="select"] [data-scene-action="rotate"]:active { cursor:grabbing; }
@media (pointer:coarse) { .selection-tools button { min-height:36px; padding-inline:10px; } }
