:root {
  /* EP reference: anthracite / white, magenta and lime. All UI fonts are local. */
  --ink:#222423;
  --muted:#63676b;
  --line:#dedfe1;
  --paper:#f7f7f8;
  --accent:#e6007e;
  --accent-strong:#b80065;
  --accent-soft:#fff0f7;
  --lime:#bfd730;
  --control:#222423;
  --soft:#eff0f2;
  --design:#c6006d;
  --building:#454d54;
  --grid-minor:#d9dcdf;
  --grid-major:#b8bec4;
  font-family:Ubuntu,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  min-height:100%;
  font-size:14px
}
button,input,select {
  font:inherit;
  color:inherit
}
button,summary {
  cursor:pointer
}
button:disabled {
  opacity:.35;
  cursor:not-allowed
}
button,input,select,summary {
  outline-offset:3px
}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid var(--accent)
}
[hidden] {
  display:none!important
}
button {
  transition:background .12s,border-color .12s
}
button:hover:not(:disabled) {
  filter:brightness(.96)
}
input,select {
  min-width:0
}
input[type=number] {
  font-variant-numeric:tabular-nums
}
::selection {
  background:#ffd5ec;
  color:var(--ink)
}
.export-button:hover:not(:disabled),.primary-button:hover:not(:disabled) {
  background:var(--accent-strong);
  border-color:var(--accent-strong);
  filter:none
}
.import-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.small-button:hover:not(:disabled) {
  background:var(--soft)
}
input[type=range],input[type=checkbox] {
  accent-color:var(--accent)
}
.spaced {
  margin-top:14px
}
.app-shell {
  height:100dvh;
  display:grid;
  grid-template-rows:76px minmax(0,1fr) 28px
}
.topbar {
  display:grid;
  grid-template-columns:190px minmax(180px,1fr) auto;
  align-items:center;
  gap:24px;
  padding:0 22px;
  background:#fff;
  color:var(--ink);
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0
}
.brand-logo {
  display:block;
  width:56px;
  height:53px;
  object-fit:contain;
  flex-shrink:0
}
.brand strong,.brand small {
  display:block
}
.brand strong {
  font-size:15px;
  letter-spacing:.025em;
  line-height:1.1
}
.brand small {
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
  letter-spacing:.075em
}
.project-name {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:520px
}
.project-name>span {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.1em;
  font-weight:500
}
.project-name input {
  width:100%;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:2px;
  color:var(--ink);
  padding:9px 11px
}
.top-actions {
  display:flex;
  align-items:center;
  gap:8px
}
.export-button,.import-button {
  border-radius:0;
  font-weight:700;
  padding:11px 14px;
  border:1px solid var(--ink);
  background:transparent;
  color:var(--ink);
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:12px
}
.export-button {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff
}
.history-actions {
  display:flex;
  margin-right:8px;
  border-right:1px solid var(--line);
  padding-right:12px;
  gap:2px
}
.history-actions button {
  width:32px;
  height:36px;
  background:transparent;
  color:var(--ink);
  border:0;
  font-size:24px
}
.workspace {
  display:grid;
  grid-template-columns:176px 376px minmax(0,1fr);
  min-height:0
}
.sidebar {
  background:var(--ink);
  color:#f2f2f2;
  padding:24px 10px 14px;
  display:flex;
  flex-direction:column
}
.sidebar nav {
  display:grid;
  gap:7px
}
.sidebar nav button {
  display:grid;
  grid-template-columns:29px 1fr;
  align-items:center;
  gap:9px;
  background:transparent;
  color:inherit;
  border:0;
  border-radius:0;
  padding:15px 10px;
  text-align:left;
  position:relative
}
.sidebar nav button.active {
  color:var(--ink);
  background:#fff
}
.sidebar nav button>span {
  font-size:11px;
  border:1px solid #686b6c;
  border-radius:0;
  padding:6px 3px;
  text-align:center;
  font-variant-numeric:tabular-nums
}
.sidebar nav button.active>span {
  background:var(--accent);
  color:white;
  border-color:var(--accent)
}
.sidebar nav b,.sidebar nav small {
  display:block
}
.sidebar nav b {
  font-size:13px;
  font-weight:500
}
.sidebar nav small {
  font-size:11px;
  color:#b8babe;
  margin-top:4px;
  line-height:1.35
}
.sidebar nav .active small {
  color:var(--muted)
}
.project-status {
  margin-top:auto;
  border-top:1px solid #4b4e4c;
  padding:22px 8px 0;
  position:relative
}
.project-status span {
  font-size:10px;
  letter-spacing:.14em;
  color:var(--lime);
  font-weight:700
}
.project-status p {
  font-size:11px;
  line-height:1.6;
  color:#c4c6c8
}
.project-status::before {
  content:"";
  position:absolute;
  top:-3px;
  left:10px;
  width:44px;
  height:5px;
  background:linear-gradient(110deg,var(--accent) 65%,var(--lime) 65%);
  transform:skewX(-20deg)
}
.sidebar nav button.active::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:var(--accent)
}
.inspector {
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:23px 18px 0;
  background:var(--paper);
  border-right:1px solid var(--line);
  min-width:0
}
.inspector-title>span,.preview-head>div>span {
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--accent-strong)
}
.inspector-title h1 {
  font-size:28px;
  letter-spacing:-.025em;
  margin:8px 0;
  font-weight:700;
  text-transform:uppercase
}
.inspector-title p {
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  margin:0 0 20px
}
.subtabs,.segmented {
  display:flex;
  gap:2px;
  padding:3px;
  border-radius:2px;
  background:#e9ebed
}
.subtabs {
  margin-bottom:16px;
  flex-wrap:wrap
}
.floor-point-table { margin-top:12px; display:grid; gap:6px }
.floor-point-row { display:grid; grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) 28px 28px; gap:5px; align-items:end }
.floor-point-row .field>span { font-size:10px }
.floor-point-row .number-box b { display:none }
.floor-point-row input { padding:7px 5px; min-width:0 }
.floor-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center }
/* Metric SVG units must never scale native focus/tap decorations into metre-sized
   blobs. Keep keyboard focus visible on the actual shape with non-scaling strokes. */
.plan-surface svg,.elevation-surface svg { -webkit-tap-highlight-color:transparent }
.plan-surface svg:focus,.plan-surface svg *:focus,
.elevation-surface svg:focus,.elevation-surface svg *:focus,
.plan-surface svg [tabindex],.elevation-surface svg [tabindex] {
  outline:none!important;
  outline-width:0!important;
  outline-offset:0!important;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent
}
.plan-surface svg [tabindex],.elevation-surface svg [tabindex] { fill:none }
.svg-point[data-selected="true"] circle,.svg-point:focus circle { stroke:var(--accent); stroke-width:2px }
.plan-floors [tabindex]:focus polygon,.other-design:focus polyline:first-child { stroke:var(--accent); stroke-width:2px }
.plan-toolbar>select { max-width:100%; min-width:0; padding:6px; border:1px solid var(--line); background:white; font-size:12px }
.subtabs button {
  flex:1
}
.subtabs button,.segmented button {
  background:transparent;
  border:0;
  border-radius:0;
  padding:8px 10px;
  font-size:12px;
  white-space:nowrap;
  font-weight:500
}
.subtabs button.active,.segmented button.active {
  background:var(--control);
  box-shadow:inset 0 -2px var(--lime);
  color:#fff;
  font-weight:500
}
.card {
  padding:18px 16px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:2px;
  background:white;
  box-shadow:none;
  border-top:2px solid #d6d8da
}
.card-head {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:start;
  margin-bottom:16px
}
.card-head h2 {
  margin:0;
  font-size:16px;
  letter-spacing:-.02em;
  font-weight:500
}
.card-head p {
  margin:6px 0 0;
  font-size:12px;
  line-height:1.55;
  color:var(--muted)
}
.field-grid,.cut-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.field {
  display:block;
  min-width:0
}
.field>span,.label {
  display:block;
  font-size:12px;
  font-weight:500;
  margin-bottom:6px;
  color:#535960
}
.field input,.field select {
  width:100%;
  height:38px;
  padding:0 9px;
  border:1px solid #c7cace;
  border-radius:2px;
  background:#fff
}
.number-box {
  display:flex;
  align-items:center;
  border:1px solid #c7cace;
  border-radius:2px;
  background:#fff;
  overflow:hidden
}
.number-box input {
  border:0;
  background:transparent;
  padding-right:3px;
  min-width:0
}
.number-box b {
  padding:0 9px;
  font-size:11px;
  font-weight:500;
  color:#686e74
}
.number-box:focus-within {
  box-shadow:0 0 0 2px #e6007e1c;
  border-color:var(--accent)
}
.number-box input:focus {
  outline:none
}
.toggle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid #eaeaea;
  padding:14px 0;
  cursor:pointer
}
.toggle-row:first-child {
  border:0
}
.toggle-row>span b,.toggle-row small {
  display:block
}
.toggle-row b {
  font-size:12px;
  font-weight:600
}
.toggle-row small {
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5
}
.toggle-row input {
  position:absolute;
  opacity:0
}
.toggle-row i {
  flex:none;
  width:35px;
  height:21px;
  background:#d4d4d4;
  border-radius:12px;
  padding:3px
}
.toggle-row i:after {
  content:"";
  display:block;
  width:15px;
  height:15px;
  background:white;
  border-radius:50%;
  box-shadow:0 1px 3px #0002;
  transition:transform .15s
}
.toggle-row input:checked+i {
  background:var(--control)
}
.toggle-row input:checked+i:after {
  transform:translateX(14px)
}
.toggle-row input:focus-visible+i {
  outline:2px solid var(--accent);
  outline-offset:3px
}
.point-table {
  border:1px solid var(--line);
  border-radius:2px;
  overflow:hidden
}
.point-table-head,.point-table-row {
  display:grid;
  grid-template-columns:30px repeat(3,minmax(0,1fr)) 23px;
  gap:5px;
  padding:7px 6px;
  align-items:center
}
.point-table-head {
  background:var(--soft);
  font-size:10px;
  color:var(--muted)
}
.point-table-row {
  border-top:1px solid #e8e8e8
}
.point-table-row .field>span {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}
.point-table-row .number-box b {
  display:none
}
.point-table-row input {
  height:33px;
  padding:3px;
  font-size:12px
}
.point-ref {
  border:0;
  background:transparent;
  color:var(--control);
  padding:0;
  font-size:11px;
  font-weight:700
}
.icon-button {
  border:0;
  background:transparent;
  font-size:21px;
  min-height:28px;
  padding:0 4px;
  border-radius:2px
}
.danger,.text-danger {
  color:#b74431
}
.text-danger {
  border:0;
  background:transparent;
  padding:3px 0;
  font-size:11px
}
.small-button,.secondary-button {
  border:1px solid #bfc3c8;
  background:#fff;
  border-radius:0;
  padding:9px 11px;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
  color:var(--ink)
}
.secondary-button.full {
  width:100%;
  margin-top:16px;
  padding:12px
}
.inline-setting {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:9px;
  margin-bottom:15px
}
.empty-state {
  border:1px dashed #c6cacf;
  background:#f8f9fa;
  border-radius:2px;
  text-align:center;
  padding:22px 14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
.obstacle-card,.beam-card,.cut-card {
  border:1px solid var(--line);
  border-radius:2px;
  padding:12px;
  margin-top:12px;
  background:#f8f9fa
}
.obstacle-card {
  border-color:#efd6cc;
  background:#fff9f6
}
.obstacle-card header,.cut-card header {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:start;
  margin-bottom:14px;
  font-size:12px
}
.beam-card summary {
  font-size:12px;
  font-weight:650
}
.rotation-row {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:13px
}
.type-choice,.side-choice {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px
}
.type-choice {
  margin-bottom:12px
}
.type-choice button,.side-choice button {
  padding:13px;
  border:1px solid var(--line);
  border-radius:2px;
  background:#fff;
  text-align:left
}
.type-choice .active,.side-choice .active {
  border-color:var(--accent);
  box-shadow:inset 0 0 0 1px var(--accent);
  background:var(--accent-soft)
}
.type-choice span,.type-choice small {
  display:block
}
.type-choice span {
  font-size:15px;
  font-weight:650
}
.type-choice small {
  margin-top:4px;
  font-size:11px;
  color:var(--muted)
}
.side-choice button {
  font-size:12px
}
.support-note {
  font-size:11px;
  line-height:1.6;
  background:#f3f4ef;
  border-left:3px solid #87982e;
  border-radius:0;
  padding:10px;
  margin:13px 0 0;
  color:#545b40
}
.face-tabs {
  display:flex;
  gap:6px;
  overflow:auto;
  padding:2px 2px 6px
}
.face-tabs button {
  flex:0 0 52px;
  padding:8px;
  border-radius:0;
  border:1px solid var(--line);
  background:#fff
}
.face-tabs button span,.face-tabs button small {
  display:block
}
.face-tabs button span {
  font-size:12px;
  font-weight:650
}
.face-tabs button small {
  font-size:11px;
  margin-top:3px;
  color:var(--muted)
}
.face-tabs .active {
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
  box-shadow:inset 0 -3px var(--lime)
}
.face-tabs .active small {
  color:#eceeef
}
.angle-editor {
  padding:12px;
  border-radius:2px;
  background:var(--soft);
  margin-top:14px
}
.angle-editor>input {
  width:100%;
  margin:16px 0 10px
}
.angle-editor footer {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px
}
.rules summary {
  font-size:12px;
  padding:8px 0
}
.rules dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  font-size:11px;
  line-height:1.6
}
.rules dt {
  color:var(--muted)
}
.rules dd {
  margin:0;
  font-weight:600
}
.palette {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:15px 2px
}
.palette button,.custom-color {
  width:32px;
  height:32px;
  border:2px solid white;
  border-radius:2px;
  box-shadow:0 0 0 1px #c3c3c3
}
.palette button.active {
  box-shadow:0 0 0 2px var(--accent)
}
.custom-color {
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:conic-gradient(#f4bda6,#eaeaea,#a9a9a9,#f4bda6);
  font-weight:700;
  font-size:22px;
  cursor:pointer
}
.custom-color input {
  position:absolute;
  inset:0;
  opacity:0;
  width:100%;
  height:100%;
  cursor:pointer
}
.cut-visual {
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:10px;
  margin-bottom:10px
}
.cut-visual svg {
  width:100%;
  touch-action:none;
  cursor:crosshair
}
.cut-visual .segmented {
  flex-wrap:wrap
}
.cut-visual p {
  font-size:11px;
  line-height:1.6;
  color:var(--muted)
}
.cut-visual .segmented button {
  padding:6px;
  font-size:11px
}
.cut-grid {
  margin-bottom:12px
}
.inspector-nav {
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:13px 18px;
  margin:22px -18px 0;
  border-top:1px solid var(--line);
  background:#f7f7f8f5;
  backdrop-filter:blur(8px);
  z-index:5
}
.inspector-nav button {
  border:0;
  background:transparent;
  padding:10px 0;
  font-size:12px
}
.inspector-nav span {
  font-size:11px;
  color:var(--muted)
}
.inspector-nav .primary-button {
  background:var(--accent);
  color:white;
  padding:10px 14px;
  border-radius:0;
  font-weight:700
}
.preview {
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:64px minmax(0,1fr) auto;
  background:#eceef0
}
.preview-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 20px;
  border-bottom:1px solid var(--line);
  background:#fff
}
.preview-head b {
  display:block;
  margin-top:4px;
  font-size:17px;
  font-weight:500
}
.preview-switches {
  display:flex;
  gap:9px;
  align-items:center
}
.preview-canvas {
  position:relative;
  min-height:0;
  overflow:hidden
}
.scene-container {
  position:absolute;
  inset:0
}
.wall-3d {
  position:relative;
  width:100%;
  height:100%
}
.wall-3d canvas {
  display:block;
  width:100%;
  height:100%;
  touch-action:none
}
.wall-3d-help {
  position:absolute;
  bottom:14px;
  left:16px;
  background:#222423ed;
  padding:10px 12px;
  border-radius:2px;
  color:#fff;
  pointer-events:none;
  max-width:320px;
  border-left:3px solid var(--lime)
}
.wall-3d-help b,.wall-3d-help span {
  display:block
}
.wall-3d-help b {
  font-size:11px
}
.wall-3d-help span {
  font-size:10px;
  line-height:1.6;
  margin-top:4px;
  color:#d0d3d6
}
.scene-toolbar {
  position:absolute;
  left:12px;
  top:12px;
  right:12px;
  display:flex;
  align-items:start;
  gap:8px;
  pointer-events:none
}
.scene-toolbar>* {
  pointer-events:auto
}
.scene-toolbar details {
  padding:9px 11px;
  background:#ffffffed;
  border:1px solid #c9cdd1;
  border-radius:2px;
  font-size:12px
}
.scene-toolbar details label {
  display:flex;
  gap:7px;
  padding-top:10px
}
.scene-toolbar .updating {
  font-size:11px;
  color:var(--control);
  background:#fff9;
  padding:10px;
  border-radius:2px
}
.loading-scene {
  display:grid;
  place-items:center;
  height:100%;
  font-size:14px;
  color:var(--muted)
}
.wall-elevation-editor {
  --wall-selection:#146cba;
  height:100%; min-height:0; display:grid; grid-template-rows:auto auto minmax(150px,1fr) auto auto; gap:10px; padding:16px
}
.elevation-toolbar,.elevation-zoom,.elevation-readout { display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.selected-wall-badge { display:inline-block; color:#124a7e; background:#e8f2fc; border-left:3px solid #146cba; padding:8px 10px; font-size:12px; font-weight:600 }
.wall-permission { font-size:11px; color:var(--muted) }
.wall-permission.prohibited { color:#b02e28; font-weight:600 }
.elevation-zoom button,.obstacle-align-actions button { padding:7px 10px; background:white; border:1px solid var(--line); font-size:11px }
.elevation-zoom button.active { border-color:#146cba; color:#124a7e; background:#e8f2fc }
.elevation-zoom span { margin-left:auto; color:var(--muted); font-size:11px }
.elevation-surface { min-width:0; min-height:0; display:flex }
.elevation-surface svg { width:100%; height:100%; min-width:0; touch-action:none; user-select:none; overflow:hidden }
.elevation-surface [tabindex]:focus .obstacle-rectangle,.elevation-surface [tabindex]:focus .resize-grip { stroke:var(--accent); stroke-width:2px }
.elevation-obstacle>g:first-child { cursor:move }
.obstacle-resize.resize-n,.obstacle-resize.resize-s { cursor:ns-resize }
.obstacle-resize.resize-w,.obstacle-resize.resize-e { cursor:ew-resize }
.obstacle-resize.resize-ne,.obstacle-resize.resize-sw { cursor:nesw-resize }
.obstacle-resize.resize-nw,.obstacle-resize.resize-se { cursor:nwse-resize }
.elevation-readout { padding:10px 12px; background:white; border-left:3px solid #146cba; font-size:12px }
.elevation-readout strong { color:#124a7e }
.elevation-help { margin:0; font-size:11px; line-height:1.6; color:var(--muted) }
.obstacle-add-actions,.obstacle-align-actions { display:flex; flex-wrap:wrap; gap:6px }
.obstacle-add-actions button { flex:1; padding:9px 7px; white-space:nowrap; font-size:12px }
.wall-view-button { width:100%; padding:10px; text-align:left; background:#e8f2fc; color:#124a7e; border:1px solid #bed4ec; font-size:12px }
.obstacle-list { display:grid; gap:6px; margin:14px 0; max-height:210px; overflow:auto }
.obstacle-list button { text-align:left; padding:10px; background:white; border:1px solid var(--line); overflow-wrap:anywhere }
.obstacle-list button.active { border-color:#146cba; box-shadow:inset 3px 0 #146cba; background:#f1f7fd }
.obstacle-list b,.obstacle-list small { display:block }
.obstacle-list b { font-size:12px }
.obstacle-list small { margin-top:4px; font-size:11px; color:var(--muted) }
.obstacle-properties h3 { font-size:12px; margin:18px 0 10px }
.obstacle-align-actions { margin:10px 0 }
.obstacle-normal-actions button { flex:1; padding:8px 6px; font-size:11px }
.obstacle-normal-actions button[aria-pressed="true"] { color:#124a7e; background:#e8f2fc; border-color:#146cba }
.obstacle-align-actions select { max-width:100%; padding:8px; font-size:11px; background:white; border:1px solid var(--line) }
.plan-editor { --wall-selection:#146cba;
  display:grid;
  height:100%;
  grid-template-rows:auto minmax(140px,1fr) auto auto;
  padding:15px 16px 12px;
  gap:12px
}
.plan-toolbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px
}
.plan-toolbar .segmented button {
  font-size:11px
}
.snap-select {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--muted);
  margin-left:auto
}
.snap-select select {
  border:1px solid #cdcdcd;
  border-radius:2px;
  padding:7px;
  background:#fff
}
.plan-surface {
  min-height:0;
  display:flex
}
.plan-obstacle { cursor:pointer }
.plan-obstacle:focus rect { stroke:var(--accent); stroke-width:2px }
@media(max-width:600px) {
  .wall-elevation-editor { padding:10px; gap:8px }
  .elevation-help { font-size:10px }
  .elevation-readout { gap:6px 12px; font-size:11px }
  .elevation-toolbar .snap-select { margin-left:0 }
}
.plan-surface svg {
  height:100%;
  width:100%;
  display:block;
  touch-action:none
}
.plan-surface svg.adding {
  cursor:crosshair
}
.svg-point {
  cursor:grab;
  outline:none
}
.svg-point:active {
  cursor:grabbing
}
.edge-hit {
  cursor:pointer
}
.point-inspector {
  display:grid;
  grid-template-columns:30px repeat(3,minmax(0,1fr)) 24px;
  align-items:center;
  gap:12px;
  background:#fff;
  padding:12px;
  border:1px solid var(--line);
  border-radius:2px;
  box-shadow:0 3px 12px #22242308;
  border-left:3px solid var(--accent)
}
.point-inspector>strong {
  font-size:14px;
  color:var(--accent-strong)
}
.point-inspector .field>span {
  font-size:10px
}
.point-inspector input {
  height:32px
}
.plan-hint {
  font-size:12px;
  text-align:center;
  line-height:1.5;
  color:#6a6a6a;
  padding:8px
}
.plan-legend {
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:10px;
  color:#6d6d6d
}
.plan-legend span {
  display:flex;
  align-items:center;
  gap:5px
}
.plan-legend i {
  width:13px;
  height:2px;
  border-top:2px solid
}
.legend-building {
  border-color:var(--building)!important
}
.legend-warning {
  border-color:#d73f37!important;
  border-style:dashed!important
}
.legend-design {
  border-color:var(--design)!important
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:#fff;
  border-top:1px solid var(--line)
}
.metrics>div {
  padding:12px 15px;
  border-right:1px solid #e2e2e2
}
.metrics>div:last-child {
  border:0
}
.metrics span {
  font-size:10px;
  color:var(--muted);
  display:block
}
.metrics b {
  display:block;
  font-size:16px;
  font-weight:500;
  margin-top:4px;
  font-variant-numeric:tabular-nums
}
.diagnostics {
  background:#fff6e7;
  border-top:1px solid #e7d2aa;
  color:#825923;
  font-size:12px
}
.diagnostics summary {
  padding:10px 16px
}
.diagnostics ul {
  max-height:160px;
  overflow:auto;
  padding:0 28px 10px;
  margin:0;
  line-height:1.6
}
.statusbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  font-size:10px;
  color:var(--muted);
  border-top:1px solid var(--line);
  background:#f7f7f8
}
.notice {
  position:fixed;
  bottom:42px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 32px);
  padding:13px 16px;
  display:flex;
  align-items:center;
  gap:16px;
  border-radius:2px;
  box-shadow:0 8px 30px #22242324;
  background:var(--ink);
  color:#fff;
  font-size:12px;
  z-index:30;
  border-left:4px solid var(--lime)
}
.notice button {
  border:0;
  background:none;
  color:#fff;
  font-size:21px
}
@media(min-width:1650px) {
  .workspace {
    grid-template-columns:190px 420px minmax(0,1fr)
  }
  .inspector {
    padding:28px 24px 0
  }
  .inspector-nav {
    margin-inline:-24px;
    padding-inline:24px
  }
  .card {
    padding:20px
  }
}
@media(max-width:1200px) {
  .workspace {
    grid-template-columns:70px 350px minmax(0,1fr)
  }
  .sidebar {
    padding-inline:8px
  }
  .sidebar nav button {
    grid-template-columns:1fr;
    justify-items:center;
    padding:12px 4px
  }
  .sidebar nav button div {
    display:none
  }
  .project-status {
    display:none
  }
  .topbar {
    gap:14px
  }
  .plan-toolbar {
    gap:5px
  }
  .plan-toolbar .segmented button {
    padding:7px
  }
  .snap-select {
    margin-left:0
  }
  .point-inspector {
    gap:6px
  }
  .metrics>div {
    padding:10px
  }
  .metrics span {
    font-size:9px
  }
}
@media(max-width:860px) {
  .app-shell {
    height:auto;
    min-height:100dvh;
    grid-template-rows:auto 1fr 28px
  }
  .topbar {
    grid-template-columns:minmax(0,1fr) auto;
    min-height:64px;
    padding:12px 16px;
    gap:10px
  }
  .project-name {
    grid-row:2;
    grid-column:1/-1;
    max-width:none
  }
  .brand small {
    display:none
  }
  .workspace {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(440px,55dvh) auto
  }
  .sidebar {
    position:sticky;
    top:0;
    z-index:10;
    padding:6px;
    grid-row:1
  }
  .sidebar nav {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:2px
  }
  .sidebar nav button {
    display:flex;
    justify-content:center;
    padding:8px 4px;
    gap:7px
  }
  .sidebar nav button div {
    display:block
  }
  .sidebar nav b {
    font-size:11px
  }
  .sidebar nav small {
    display:none
  }
  .sidebar nav button>span {
    padding:4px;
    font-size:10px
  }
  .preview {
    grid-row:2;
    min-height:440px;
    grid-template-rows:54px minmax(0,1fr) auto
  }
  .inspector {
    grid-row:3;
    overflow:visible;
    padding:20px 20px 0;
    border-right:0
  }
  .inspector-nav {
    margin-inline:-20px;
    padding-inline:20px
  }
  .inspector-title p {
    margin-bottom:14px
  }
  .inspector .card {
    max-width:680px;
    margin-inline:auto
  }
  .subtabs {
    max-width:680px;
    margin-inline:auto
  }
  .statusbar>span:last-child {
    display:none
  }
  .plan-editor {
    padding:10px;
    gap:6px
  }
  .plan-legend {
    font-size:9px;
    gap:8px
  }
  .metrics>div {
    padding:8px 10px
  }
  .metrics b {
    font-size:13px
  }
  .point-inspector {
    padding:7px
  }
  .plan-hint {
    font-size:11px;
    padding:3px
  }
  .scene-toolbar {
    top:8px;
    left:8px
  }
  .wall-3d-help {
    max-width:260px;
    bottom:8px;
    left:8px
  }
  .wall-3d-help span {
    font-size:9px
  }
  .diagnostics ul {
    max-height:85px
  }
}
@media(max-width:430px) {
  .topbar {
    padding:10px
  }
  .brand strong {
    font-size:12px
  }
  .brand-logo {
    width:38px;
    height:36px
  }
  .top-actions {
    gap:5px
  }
  .history-actions {
    margin:0;
    padding:0;
    border:0
  }
  .history-actions button {
    width:25px
  }
  .import-button,.export-button {
    padding:8px;
    font-size:11px
  }
  .sidebar nav b {
    font-size:10px
  }
  .sidebar nav button {
    gap:4px
  }
  .preview-head {
    padding:0 12px
  }
  .preview-head b {
    font-size:13px
  }
  .snap-select {
    font-size:10px
  }
  .snap-select select {
    padding:5px
  }
  .plan-toolbar .segmented button {
    font-size:10px;
    padding:6px
  }
  .point-inspector .number-box b {
    display:none
  }
  .point-inspector input {
    padding:0 4px
  }
  .inspector {
    padding-inline:12px
  }
  .inspector-nav {
    margin-inline:-12px;
    padding-inline:12px
  }
  .card {
    padding:13px
  }
  .metrics span {
    font-size:8px
  }
  .metrics b {
    font-size:12px
  }
}
@media(max-width:860px) {
  .inspector-nav {
    position:static
  }
}
@media(max-width:360px) {
  .topbar {
    gap:8px
  }
  .brand {
    gap:6px
  }
  .brand strong {
    font-size:10px
  }
  .brand-logo {
    width:32px;
    height:30px
  }
  .sidebar nav button {
    flex-direction:column;
    gap:4px;
    padding:6px 2px;
    min-width:0
  }
  .plan-toolbar .segmented button {
    padding:6px 5px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.finish-picker { display:grid; gap:12px }
.finish-selected { display:grid; gap:3px; padding:10px 12px; border:1px solid #d1d1d1; border-radius:2px; background:#f5f5f5 }
.finish-selected b { font-size:13px }
.finish-selected span,.finish-note { color:#696969; font-size:11px; line-height:1.55 }
.finish-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px }
.finish-grid button { position:relative; min-width:0; display:grid; gap:5px; padding:5px; border:1px solid #dbdbdb; border-radius:2px; background:white; text-align:left; font-size:10px; font-weight:650 }
.finish-grid button:hover { border-color:#6c6c6c }
.finish-grid button.active {
  outline:2px solid var(--accent);
  border-color:transparent
}
.finish-grid button i {
  position:absolute;
  right:8px;
  top:8px;
  background:white;
  color:var(--accent-strong);
  border-radius:50%;
  width:17px;
  height:17px;
  text-align:center;
  font-style:normal
}
.finish-swatch { height:30px; border-radius:2px; box-shadow:inset 0 0 0 1px #00000015 }
.finish-custom { display:flex; align-items:center; gap:8px; font-size:12px }
.finish-custom input { width:34px; height:28px; padding:0; border:0; background:none }
.finish-custom small { margin-left:auto; color:#696969 }
.finish-note { margin:0 }
.exchange-dialog {
  width:min(520px,calc(100vw - 24px));
  max-height:calc(100dvh - 32px);
  padding:24px;
  border:1px solid var(--line);
  border-radius:3px;
  color:var(--ink);
  box-shadow:0 24px 80px #22242340;
  background:#fff;
  overflow:auto
}
.exchange-dialog::backdrop {
  background:#22242380;
  backdrop-filter:blur(3px)
}
.exchange-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px }
.exchange-dialog header span { color:#6c6c6c; font-size:10px; letter-spacing:.12em }
.exchange-dialog h2 { font-size:22px; margin:8px 0 12px }
.exchange-dialog header button { padding:0; width:32px; height:32px; font-size:23px; border:0; background:transparent }
.exchange-dialog section { display:grid; gap:10px; padding:18px 0; border-top:1px solid #dfdfdf }
.exchange-dialog h3 { margin:0; font-size:15px }
.exchange-dialog p { margin:0; font-size:13px; line-height:1.6 }
.exchange-dialog section button { padding:12px; border:1px solid #bbbbbb; border-radius:2px}
.exchange-dialog section .primary-button {
  background:var(--accent);
  color:white;
  border-color:var(--accent);
  font-weight:650
}
.exchange-dialog small { color:#696969; font-size:11px; line-height:1.6 }
.exchange-dialog .exchange-status:not(:empty) { padding:12px; margin-bottom:14px; background:#ececec; border-radius:2px}
.exchange-dialog .finish-note { font-size:11px }
.mat-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; font-size:12px; line-height:1.45; margin:12px 0 }
.mat-facts dt { color:#6c6c6c }
.mat-facts dd { margin:0; text-align:right }
.mat-warning { padding:10px 12px; border-left:3px solid #c84a33; border-radius:2px; background:#fff0e8; color:#923c2b; font-size:12px; line-height:1.5 }
.import-command { display:block; padding:10px; background:#ececec; border-radius:2px; font-size:11px; overflow-wrap:anywhere; user-select:all }
.reference-card { display:grid; gap:10px; font-size:12px; padding:12px 0 }
.reference-card b { overflow-wrap:anywhere }
.reference-card small { color:#696969 }
.reference-card label { display:flex; align-items:center; gap:7px }
.field-note { font-size:12px; color:#696969; line-height:1.6 }
.design-manager {
  margin:0 0 20px;
  padding:12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:2px;
  display:grid;
  gap:10px;
  border-left:3px solid var(--accent)
}
.design-manager .field span { font-size:11px; font-weight:700 }
.design-actions { display:flex; gap:8px }
.design-actions button { flex:1; font-size:11px; padding:9px 5px; background:white; border:1px solid #c5c5c5; border-radius:2px}
.design-manager summary { font-size:11px; cursor:pointer; color:#555555 }
.design-manager details[open] .field { margin-top:10px }
.design-list { margin:10px 0; display:grid; gap:10px }
.design-list label { display:flex; gap:7px; align-items:center; font-size:12px }
.design-list span { overflow-wrap:anywhere; flex:1; min-width:0 }
.design-list small { color:#6d6d6d; font-size:10px }
.design-manager p { margin:0; color:#876032; font-size:11px; line-height:1.5 }
.other-design { cursor:pointer }
.other-design:hover { opacity:.7 }

/* EP modeling workspace: canvas first, a single properties rail, discoverable actions. */
.studio-shell { grid-template-rows:62px auto minmax(0,1fr) 26px }
.studio-shell .topbar { grid-template-columns:180px minmax(130px,1fr) auto; padding:0 18px; gap:18px }
.studio-shell .brand-logo { width:42px; height:42px }
.studio-shell .brand strong { font-size:14px }
.studio-shell .brand small { font-size:9px }
.studio-shell .project-name { max-width:360px }
.studio-shell .project-name>span { display:none }
.studio-shell .project-name input { padding:9px; background:transparent; border-color:transparent; font-weight:500 }
.studio-shell .project-name input:hover,.studio-shell .project-name input:focus { border-color:var(--line); background:var(--paper) }
.tool-search-button,.create-button,.help-button,.properties-button { display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:white; color:var(--ink); padding:9px 11px; font-size:12px; border-radius:6px }
.tool-search-button { color:#525960; background:#f6f7f8 }
.tool-search-button>span:first-child { font-size:22px; line-height:14px }
kbd { font:10px Ubuntu,"Segoe UI",sans-serif; color:#59616a; padding:3px 5px; background:#f2f3f5; border:1px solid #d6dbe0; border-radius:4px; white-space:nowrap }
.create-button { background:var(--ink); color:white; border-color:var(--ink); font-weight:600 }
.help-button { width:32px; padding:8px; font-weight:700 }
.studio-shell .history-actions { margin:0; padding:0 6px; border-right:0; border-left:1px solid var(--line) }
.studio-shell .history-actions button { width:27px; height:32px; font-size:22px }
.studio-shell .export-button,.studio-shell .import-button { padding:9px 12px; font-size:11px; border-radius:4px }
.project-strip { display:flex; align-items:center; min-width:0; padding:7px 18px 7px 108px; gap:20px; background:white; border-bottom:1px solid var(--line); z-index:14 }
.project-strip .design-manager { display:flex; align-items:center; gap:10px; padding:0; margin:0; background:none; border:0; min-width:0; position:relative }
.project-strip .design-manager>.field { width:230px; min-width:120px; flex-shrink:1 }
.project-strip .design-manager>.field>span { display:none }
.project-strip .design-manager select { padding:7px 10px; font-size:12px; background:#f5f6f7; border-color:#d5dadd; border-radius:5px }
.project-strip .design-actions { gap:5px; flex-shrink:0 }
.project-strip .design-actions button { padding:7px 10px; font-size:11px; border-radius:5px; white-space:nowrap }
.project-strip .design-manager>details { position:relative; flex-shrink:0 }
.project-strip .design-manager summary { padding:8px; color:#505960; font-size:11px }
.project-strip .design-manager>details[open] { z-index:20 }
.project-strip .zone-menu { position:absolute; right:0; top:34px; width:290px; max-height:min(440px,65dvh); overflow:auto; padding:15px; background:white; border:1px solid #d4dbe2; border-radius:8px; box-shadow:0 14px 32px #18304926 }
.project-strip .design-manager>p { max-width:180px }
.project-strip-note { font-size:11px; color:#626b73; margin-left:auto; text-align:right }
.studio-shell .workspace { grid-template-columns:96px minmax(0,1fr) 352px; grid-template-areas:"navigation model properties" }
.studio-shell .sidebar { grid-area:navigation; padding:14px 7px; background:#24292c }
.studio-shell .sidebar nav { gap:8px }
.studio-shell .sidebar nav button { display:flex; flex-direction:column; gap:7px; padding:13px 3px; text-align:center; border-radius:7px }
.studio-shell .sidebar nav button>span { display:grid; place-items:center; width:25px; height:25px; padding:0; border-radius:6px; font-size:10px }
.studio-shell .sidebar nav button div { display:block }
.studio-shell .sidebar nav b { font-size:10px; font-weight:500 }
.studio-shell .sidebar nav small { display:none }
.studio-shell .sidebar nav button.active::before { display:none }
.studio-shell .sidebar nav button.active { background:#fff; color:#24292c; box-shadow:0 3px 9px #0002 }
.studio-shell .project-status { padding:13px 0 0; border-color:#495156 }
.studio-shell .project-status::before { left:4px; width:33px }
.studio-shell .project-status span { font-size:8px; letter-spacing:.04em }
.studio-shell .project-status p { font-size:9px; line-height:1.5 }
.studio-shell .inspector { grid-area:properties; padding:0 14px 0; border:0; border-left:1px solid #d8dde2; background:#f7f8fa; scroll-padding-top:140px }
.studio-shell .inspector-title { position:sticky; top:0; z-index:5; background:#f7f8fa; padding:16px 0 12px; margin-bottom:2px; border-bottom:1px solid #e1e5e9 }
.studio-shell .inspector-title>div { display:flex; align-items:center; justify-content:space-between; gap:10px }
.studio-shell .inspector-title>div>span { color:#666f78; font-size:9px; letter-spacing:.08em; font-weight:700; text-transform:uppercase }
.studio-shell .inspector-title h1 { font-size:19px; text-transform:none; margin:5px 0; overflow-wrap:anywhere }
.studio-shell .inspector-title p { font-size:11px; margin:0; line-height:1.5 }
.inspector-collapse { background:transparent; border:0; color:#596673; padding:3px; font-size:18px }
.studio-shell .inspector .subtabs { position:relative; z-index:4; margin:10px 0 12px; border:1px solid #dfe4e8; background:#f0f2f4; border-radius:6px }
.studio-shell .subtabs button { font-size:11px; padding:8px 7px; border-radius:4px }
.studio-shell .card { margin-top:12px; margin-bottom:12px; padding:14px; background:#fff; border:1px solid #dde3e8; border-radius:8px; box-shadow:0 1px 2px #24344904 }
.studio-shell .card-head { margin-bottom:12px }
.studio-shell .card-head h2 { font-size:13px }
.studio-shell .card-head p { font-size:11px; line-height:1.55 }
.studio-shell .field>span { font-size:11px; color:#424e5a }
.studio-shell .field select,.studio-shell .field>input,.studio-shell .number-box { border-radius:5px; border-color:#ccd5de }
.studio-shell .field select,.studio-shell .field>input { padding:8px 10px }
.studio-shell .number-box input { padding:8px 9px; font-size:13px }
.studio-shell .field-grid { gap:10px }
.selected-point-settings { display:grid; gap:12px }
.studio-shell .field-note { font-size:10px; line-height:1.6 }
.studio-shell .inspector-nav { position:static; margin:16px -14px 0; padding:12px 14px; background:#f7f8fa; border-top:1px solid var(--line) }
.disclosure-card summary { display:flex; gap:12px; align-items:center; justify-content:space-between; cursor:pointer; font-size:12px }
.disclosure-card summary span { font-size:10px; color:#64717d; text-align:right }
.disclosure-card summary::before { content:"▸"; color:#637384 }
.disclosure-card[open] summary::before { content:"▾" }
.studio-shell .preview { grid-area:model; grid-template-rows:51px auto minmax(0,1fr) auto; background:#edf1f4 }
.studio-shell .preview-head { padding:0 16px; background:white }
.studio-shell .preview-head>div>span { display:none }
.studio-shell .preview-head b { font-size:13px; font-weight:500 }
.studio-shell .preview-switches { gap:8px }
.studio-shell .preview-switches .segmented { border-radius:6px; background:#edf0f3 }
.studio-shell .preview-switches .segmented button { padding:7px 11px; font-size:11px; border-radius:4px }
.properties-button { padding:7px 10px; font-size:11px }
.context-tools { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px 16px; border-bottom:1px solid #dce3e9; background:#f9fafb; min-width:0 }
.context-tools>div:first-child { display:flex; gap:7px; flex-wrap:wrap; align-items:center; min-width:0 }
.context-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0 }
.context-tools b { font-size:11px; overflow-wrap:anywhere }
.context-tools small { font-size:10px; color:#606f7c }
.context-tools>div:last-child { display:flex; flex-shrink:0; gap:6px }
.context-tools button { background:#fff; border:1px solid #ced9e2; color:#364e64; border-radius:5px; padding:6px 8px; font-size:10px }
.studio-shell .plan-editor { padding:12px 14px 8px; gap:9px }
.studio-shell .plan-toolbar { gap:8px }
.studio-shell .plan-toolbar .segmented { background:#e1e7ed; border-radius:6px }
.studio-shell .plan-toolbar .segmented button { border-radius:4px; font-size:11px; padding:7px 9px }
.studio-shell .plan-hint { color:#586774; font-size:11px }
.studio-shell .plan-legend { font-size:9px; gap:10px }
.studio-shell .plan-legend span:nth-child(n+5) { display:none }
.studio-shell .point-inspector { border-radius:6px; padding:8px; border-left:3px solid var(--accent) }
.studio-shell .scene-toolbar { top:12px; left:14px }
.studio-shell .scene-toolbar .segmented,.studio-shell .scene-toolbar details { border-radius:6px; box-shadow:0 2px 5px #263b4810 }
.studio-shell .metrics>div { padding:8px 13px }
.studio-shell .metrics span { font-size:9px }
.studio-shell .metrics b { font-size:13px }
.studio-shell .diagnostics summary { padding:7px 14px; font-size:10px }
.studio-shell .statusbar { padding:0 14px; font-size:10px }
.studio-shell.inspector-hidden .workspace { grid-template-columns:96px minmax(0,1fr); grid-template-areas:"navigation model" }
.studio-shell.inspector-hidden .inspector { display:none }
.command-dialog { width:min(640px,calc(100vw - 32px)); border:1px solid #d7e0e7; border-radius:14px; padding:0; box-shadow:0 24px 90px #17273340; background:#fff; color:var(--ink); max-height:calc(100dvh - 60px); overflow:auto }
.command-dialog::backdrop { background:#16233466; backdrop-filter:blur(3px) }
.command-dialog>header { display:flex; justify-content:space-between; gap:16px; padding:22px 24px 14px }
.command-dialog>header span { font-size:9px; letter-spacing:.12em; color:var(--accent-strong); font-weight:700 }
.command-dialog h2 { margin:5px 0 0; font-size:21px; letter-spacing:-.02em }
.command-dialog>header button { border:0; background:transparent; align-self:flex-start; color:#5b6670; font-size:24px; padding:0 4px }
.command-search { margin:0 20px; padding:10px 12px; display:flex; gap:12px; align-items:center; border:1px solid #a7b7c6; border-radius:8px; background:#fafbfc }
.command-search>span { font-size:24px; color:#526878 }
.command-search input { width:100%; padding:4px 0; border:0; background:transparent; font-size:14px; outline:none }
.command-search:focus-within { border-color:var(--accent); box-shadow:0 0 0 2px #e6007e12 }
.command-context { margin:12px 24px; font-size:11px; color:#61707e }
.command-context b { color:#354958 }
.command-results { padding:0 10px 10px; max-height:min(420px,50dvh); overflow:auto }
.command-results button { width:100%; text-align:left; display:flex; align-items:center; gap:12px; padding:11px 12px; border:1px solid transparent; background:white; border-radius:7px; color:#233648 }
.command-results button[aria-selected="true"] { background:#eef4f9; border-color:#d4e1ec }
.command-results button[aria-disabled="true"] { opacity:.55 }
.command-kind { display:grid; place-items:center; width:29px; height:29px; flex-shrink:0; border:1px solid #d3dde5; background:white; border-radius:6px; font-size:18px; color:#45667f }
.command-results button>span:nth-child(2) { flex:1; min-width:0 }
.command-results b,.command-results small { display:block }
.command-results b { font-size:13px; font-weight:500 }
.command-results small { margin-top:4px; color:#61717e; font-size:11px; line-height:1.45 }
.command-results em { font-style:normal; font-size:10px; color:#6a7a87 }
.command-empty { padding:25px; text-align:center; color:#61717e; font-size:13px }
.command-dialog>footer { display:flex; justify-content:space-between; gap:12px; padding:13px 22px; border-top:1px solid #e3e8ed; color:#5f6c78; font-size:10px; background:#fafbfc }
.workspace-help>section { padding:0 24px 12px }
.workspace-help h3 { font-size:13px; margin:15px 0 10px }
.workspace-help p,.workspace-help li,.workspace-help dd { font-size:12px; color:#586875; line-height:1.7 }
.workspace-help ol { padding-left:20px; margin:0 }
.workspace-help li { padding:3px 0 }
.workspace-help dl { display:grid; grid-template-columns:85px 1fr; gap:9px; margin:0 }
.workspace-help dt { font-size:12px; font-weight:600 }
.workspace-help dd { margin:0 }
.shortcut-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; font-size:11px; color:#536270 }
.shortcut-grid kbd { display:inline-block; margin-right:6px }
@media(max-width:1200px) {
 .studio-shell .topbar { grid-template-columns:150px minmax(130px,1fr) auto; gap:10px; padding:0 12px }
 .studio-shell .brand strong { font-size:12px }
 .tool-search-button>span:nth-child(2) { display:none }
 .project-strip-note { display:none }
 .studio-shell .workspace { grid-template-columns:82px minmax(0,1fr) 326px }
 .studio-shell.inspector-hidden .workspace { grid-template-columns:82px minmax(0,1fr) }
 .studio-shell .sidebar nav b { font-size:9px }
 .project-strip { padding-left:94px }
 .context-tools { gap:8px; padding:8px 12px; flex-wrap:wrap }
 .context-tools small { display:none }
 .studio-shell .preview-head { padding:0 12px }
 .studio-shell .preview-head b { font-size:12px }
 .studio-shell .preview-switches { gap:4px }
}
@media(max-width:860px) {
 .studio-shell { height:auto; min-height:100dvh; grid-template-rows:auto auto minmax(0,1fr) 26px }
 .studio-shell .topbar { grid-template-columns:1fr auto; gap:9px; padding:10px 12px }
 .studio-shell .project-name { grid-row:2; grid-column:1/-1; max-width:none; border:1px solid #e3e7ea; border-radius:5px }
 .studio-shell .top-actions { flex-wrap:wrap; justify-content:flex-end; gap:5px }
 .tool-search-button { padding:7px 9px }
 .tool-search-button kbd { display:none }
 .create-button { padding:8px 10px; font-size:11px }
 .project-strip { padding:8px 12px; overflow:visible }
 .project-strip .design-manager { width:100%; gap:7px; flex-wrap:wrap }
 .project-strip .design-manager>.field { flex:1; width:auto }
 .project-strip .design-manager>details { width:100% }
 .project-strip .design-manager summary { padding:4px; font-size:10px }
 .project-strip .zone-menu { top:26px; width:min(290px,calc(100vw - 30px)); right:0 }
 .studio-shell .workspace,.studio-shell.inspector-hidden .workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(490px,65dvh) auto; grid-template-areas:"navigation" "model" "properties" }
 .studio-shell .sidebar { padding:5px 8px; position:sticky; top:0; z-index:10 }
 .studio-shell .sidebar nav { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px }
 .studio-shell .sidebar nav button { flex-direction:row; justify-content:center; padding:7px 4px; gap:5px; border-radius:4px }
 .studio-shell .sidebar nav button>span { width:20px; height:20px; font-size:9px; border-radius:4px }
 .studio-shell .sidebar nav b { font-size:10px }
 .studio-shell .preview { min-height:490px; grid-template-rows:48px auto minmax(0,1fr) auto }
 .studio-shell .inspector { padding:0 16px; overflow:visible; border:0; border-top:1px solid #d7e0e6 }
 .studio-shell .inspector-title,.studio-shell .inspector .subtabs { position:static; max-width:680px; margin-left:auto; margin-right:auto }
 .studio-shell .inspector-title { padding:18px 0 12px }
 .studio-shell .inspector-nav { margin:14px -16px 0; padding:12px 16px }
 .studio-shell .inspector .card { max-width:680px; margin:12px auto }
 .studio-shell .plan-editor { padding:9px; gap:6px }
 .studio-shell .plan-toolbar { gap:5px }
 .studio-shell .plan-legend { gap:6px; font-size:8px }
 .studio-shell .metrics>div { padding:7px 9px }
 .studio-shell .metrics span { font-size:8px }
 .studio-shell .metrics b { font-size:12px }
 .studio-shell .context-tools { padding:7px 11px; gap:7px }
 .studio-shell .preview-head>div:first-child { display:none }
 .studio-shell .preview-switches { width:100%; justify-content:space-between }
 .studio-shell .preview-switches .segmented button { padding:7px 8px }
 .studio-shell .point-inspector input { padding:4px 5px }
}
@media(max-width:460px) {
 .studio-shell .topbar { grid-template-columns:1fr; gap:7px }
 .studio-shell .brand { justify-content:center }
 .studio-shell .brand-logo { width:30px; height:30px }
 .studio-shell .top-actions { grid-row:3; justify-content:space-between }
 .studio-shell .project-name { grid-row:2 }
 .studio-shell .project-name input { font-size:12px; padding:7px }
 .studio-shell .help-button { width:27px; padding:6px }
 .studio-shell .history-actions { padding:0; border:0 }
 .studio-shell .history-actions button { width:24px }
 .studio-shell .export-button,.studio-shell .import-button { padding:8px; font-size:10px }
 .project-strip .design-manager>.field { flex-basis:100%; width:100% }
 .project-strip .design-actions { flex:1 }
 .project-strip .design-manager>details { width:auto; max-width:150px }
 .project-strip .design-manager>details[open] { width:100%; max-width:none }
 .studio-shell .sidebar nav button { flex-direction:column; padding:6px 2px; gap:4px }
 .studio-shell .sidebar nav b { font-size:9px }
 .studio-shell .plan-toolbar .segmented button { padding:6px 7px; font-size:10px }
 .studio-shell .context-tools b { font-size:10px }
 .studio-shell .context-tools>div:last-child { flex-wrap:wrap; flex-shrink:1 }
 .studio-shell .context-tools button { font-size:9px; padding:5px 7px }
 .studio-shell .properties-button { font-size:10px; padding:7px }
 .studio-shell .preview-switches .small-button { font-size:9px; padding:6px }
 .command-dialog { width:calc(100vw - 18px); max-height:calc(100dvh - 20px) }
 .command-dialog>header { padding:17px 16px 12px }
 .command-dialog h2 { font-size:18px }
 .command-search { margin:0 12px; gap:8px; padding:8px }
 .command-search input { font-size:12px }
 .command-search kbd { display:none }
 .command-results em { display:none }
 .command-dialog>footer { flex-wrap:wrap; gap:10px; padding:12px }
 .workspace-help>section { padding:0 16px 10px }
 .shortcut-grid { grid-template-columns:1fr }
}
.building-workflow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0 18px;padding:8px;border:1px solid #d3dde5;background:#f2f5f7;border-radius:7px}.building-workflow>button{display:flex;gap:7px;align-items:center;text-align:left;border:1px solid #d3dde5;background:white;color:#3a4b58;border-radius:5px;padding:9px 7px;font:inherit;font-size:11px;cursor:pointer;min-height:45px}.building-workflow>button>span{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#e7edf1;flex-shrink:0;font-size:10px}.building-workflow>button[aria-current]{background:#24343f;color:white;border-color:#24343f}.building-workflow>button[aria-current]>span{background:var(--accent);color:white}.building-workflow>div{display:flex;gap:7px;grid-column:1/-1}.building-workflow>div>button{flex:1;padding:7px;border:0;background:transparent;color:#496c85;font-size:10px;cursor:pointer}.workspace-parts .workspace-part-title{font-size:10px;font-weight:700;color:#abb7c0;border-top:1px solid #5b6267;margin:20px 10px 6px;padding:14px 0 0;letter-spacing:.06em}.beam-add-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 15px}.beam-add-actions button,.beam-list button{border:1px solid #c5d1db;background:white;border-radius:5px;padding:9px;font:inherit;font-size:11px;cursor:pointer}.beam-list{display:grid;gap:6px;margin:15px 0}.beam-list button{text-align:left}.beam-list button[aria-pressed=true]{border-color:#228ac5;background:#edf6fc;box-shadow:inset 3px 0 #228ac5}.beam-list small{display:block;color:#697c8a;font-size:10px;margin-top:5px}.beam-properties{border-top:1px solid #d4dee7;padding-top:15px}.card textarea,.portal-card textarea{width:100%;resize:vertical;max-height:220px;min-height:65px;padding:9px;border:1px solid #bfcbd5;border-radius:5px;background:white;color:#2b3a45;font:inherit;font-size:12px}.point-table .point-table-row,.point-table .point-table-head{grid-template-columns:30px repeat(3,minmax(0,1fr)) 19px 19px;gap:4px}.point-table-row.selected{background:#eaf5fd;box-shadow:inset 3px 0 #2189c8;border-radius:4px}.point-ref[aria-pressed=true]{background:#1575b0;color:white}.point-position-guides circle{stroke-width:2;vector-effect:non-scaling-stroke}.plan-building-elements [role=button]{cursor:grab;touch-action:none}.plan-building-elements [role=button]:active{cursor:grabbing}.plan-building-elements [role=button]:focus{outline:none}.plan-building-elements [role=button]:focus>polygon{stroke:#e5007d;stroke-width:3}.snap-feedback{display:block;color:#d0f24a;margin-bottom:5px}.blank-layout{align-items:start}.blank-plan{height:calc(100dvh - 310px);min-height:450px;position:sticky;top:0}.blank-layout>aside{min-width:0}.blank-layout>aside>.building-workflow{margin-top:0}.blank-layout .card{margin-bottom:18px}.point-inspector{position:relative;z-index:3}.point-inspector .field{min-width:0}.building-workflow button:focus-visible,.beam-list button:focus-visible{outline:2px solid #2189c8;outline-offset:2px}@media(max-width:1000px){.workspace-parts .workspace-part-title{display:none}}@media(max-width:800px){.blank-plan{position:static;height:500px;min-height:500px}.building-workflow{margin-top:8px}}@media(max-width:650px){.workspace-parts nav{display:flex}.workspace-parts nav>button{flex:1}.point-table-row input{font-size:10px}.beam-add-actions button{flex:1}}
.beam-3d-tools{position:absolute;z-index:5;top:14px;right:16px;max-width:calc(100% - 32px);width:500px;padding:12px;background:#fffef8f5;border:1px solid #b9c3cc;border-radius:8px;box-shadow:0 4px 20px #18232a18;display:grid;gap:8px;color:#23333f}
.beam-3d-tools>div{display:flex;gap:5px;flex-wrap:wrap}.beam-3d-tools button{padding:8px 10px;border:1px solid #bac8d3;background:white;border-radius:5px;font-size:12px}.beam-3d-tools button[aria-pressed=true]{background:#23333f;color:white;border-color:#23333f}.beam-3d-tools label{display:flex;align-items:center;gap:6px;font-size:12px}.beam-3d-tools small{font-size:11px;line-height:1.5}.beam-3d-tools input{width:16px;height:16px;accent-color:#e5007d}
.portal-card-actions{display:flex;border-top:1px solid #d6dce2}.portal-card-actions button{flex:1}.portal-card-actions .portal-rename-card{border-top:0}.portal-delete-card{background:white;border:0;border-radius:0 0 8px 0;color:#a32635;padding:12px}.danger-button{background:#b72036;color:white;border:1px solid #b72036;border-radius:5px;padding:10px 14px}.danger-button:disabled{opacity:.45}.portal-delete-card:hover{background:#fff0f2}
@media(max-width:700px){.beam-3d-tools{top:52px;right:8px;max-width:calc(100% - 16px);padding:8px;gap:5px}.beam-3d-tools small,.beam-3d-tools>strong{display:none}.beam-3d-tools button{font-size:10px;padding:6px}.beam-3d-tools label{font-size:10px}}

.portal-shell{min-height:100dvh;background:#eef0f3;color:#252a30}.portal-project-open{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.portal-bar{min-height:58px;background:#121517;color:white;display:flex;align-items:center;gap:24px;padding:8px 22px;border-bottom:3px solid var(--accent);flex-shrink:0}.portal-bar button{background:transparent;color:inherit;border:1px solid transparent;border-radius:5px;padding:8px 10px;cursor:pointer}.portal-bar button:disabled{opacity:.45;cursor:default}.portal-brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.portal-brand img{background:white;border-radius:3px;padding:2px}.portal-brand strong{font-size:13px;letter-spacing:.05em}.portal-brand span{font-size:9px;padding:4px 6px;background:#363c40;border-radius:3px}.portal-bar nav{display:flex;align-items:center;gap:6px}.portal-bar nav button{font-size:12px;color:#c5cbd0}.portal-bar nav button[aria-current]{background:#fff;color:#252a30}.portal-user{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px}.portal-user>span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-user button{border-color:#4c545a;font-size:11px}.portal-dashboard{max-width:1240px;margin:0 auto;padding:48px 30px}.portal-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#717b84;margin:0 0 10px}.portal-dashboard h1,.portal-access h1,.estimate-heading h1{font-size:28px;margin:0 0 12px}.portal-dashboard>p,.portal-access>p{color:#65717d;line-height:1.7;max-width:750px}.portal-dashboard-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.portal-shell button,.portal-auth button{font-family:inherit}.portal-dashboard-actions button,.portal-card button,.estimate-page button,.portal-project-strip button{border:1px solid #cbd1d8;padding:9px 13px;border-radius:5px;cursor:pointer;background:#fff;color:#2b343b;font-size:12px}.portal-primary,.portal-card button.portal-primary,.estimate-page button.portal-primary,.portal-dashboard-actions button.portal-primary{background:#252a2e;color:#fff;border:1px solid #252a2e;padding:11px 16px;border-radius:5px;cursor:pointer}.portal-shell button:disabled,.portal-auth button:disabled{opacity:.5;cursor:default}.portal-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;margin:24px 0}.portal-project-card{text-align:left;background:white;border:1px solid #d3d9df;border-top:3px solid var(--accent);border-radius:8px;padding:24px;cursor:pointer;min-height:190px;color:#252a30}.portal-project-card:hover{border-color:var(--accent)}.portal-project-card>span{font-size:9px;color:#747f87;letter-spacing:.08em}.portal-project-card h2{font-size:19px;line-height:1.4;margin:18px 0 12px}.portal-project-card p{font-size:11px;color:#6c7680}.portal-project-card b{display:block;font-size:12px;margin-top:24px}.portal-empty{background:white;border:1px dashed #c3cbd3;padding:32px;border-radius:8px}.portal-auth{min-height:100dvh;background:#eef0f3;display:grid;place-items:center;padding:30px}.portal-auth-card{background:white;padding:38px;max-width:480px;width:100%;border:1px solid #d7dce2;border-top:5px solid var(--accent);border-radius:12px;box-shadow:0 16px 50px #22303b10}.portal-auth-card>img{display:block;margin:0 0 24px}.portal-auth h1{font-size:25px;margin:0 0 14px}.portal-auth p{line-height:1.6;color:#68737e;font-size:13px}.portal-auth form{display:grid;gap:18px;margin:25px 0}.portal-auth label,.portal-card label{display:grid;gap:8px;font-size:12px}.portal-auth input,.portal-card input{font:inherit;padding:11px 12px;border:1px solid #c6ced6;border-radius:5px;background:white;width:100%;min-width:0}.portal-auth small{display:block;font-size:11px;line-height:1.6;color:#7a838d}.portal-error{background:#fff0ec;border:1px solid #e7b4a5;color:#8c3620!important;padding:13px 16px;border-radius:5px;font-size:12px;line-height:1.6}.portal-message{flex-shrink:0;margin:0;border-radius:0;display:flex;align-items:center;justify-content:space-between}.portal-message button{background:none;border:0;cursor:pointer;font-size:20px}.portal-project-strip{flex-shrink:0;min-height:41px;padding:6px 18px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #d0d7dd;background:#fff}.portal-project-strip>strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px}.portal-project-strip>span{font-size:11px;color:#62717b;margin-left:auto}.portal-project-strip button{padding:6px 9px;white-space:nowrap;font-size:11px}.portal-project-open>.studio-shell{height:auto;flex:1;min-height:0}.workspace-edit-fields{display:contents;border:0;min-width:0;padding:0;margin:0}.portal-access,.estimate-page{overflow:auto;flex:1;min-height:0;padding:30px clamp(16px,3vw,44px)}.portal-access{max-width:1100px;width:100%;margin:0 auto}.portal-card{background:#fff;border:1px solid #d2d8df;border-radius:8px;padding:23px;margin:22px 0}.portal-card h2{font-size:17px;margin:0 0 12px}.portal-invite-form{display:flex;align-items:flex-end;gap:14px}.portal-invite-form label{flex:1;max-width:420px}.portal-invitation-result{margin:24px 0 0;padding:20px;background:#f0f5f8;border-radius:6px;display:grid;gap:12px}.portal-invitation-result p{font-size:12px;line-height:1.6;color:#53616d}.portal-invitation-result button{justify-self:start}.portal-invite-row{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #e0e5ea;font-size:12px}.portal-invite-row:last-child{border-bottom:0}.portal-invite-row>span:first-child{flex:1;overflow-wrap:anywhere}.portal-bar button:focus-visible,.portal-shell button:focus-visible,.portal-shell input:focus-visible,.portal-auth input:focus-visible,.portal-auth button:focus-visible{outline:2px solid #247cbb;outline-offset:3px}
.estimate-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.estimate-heading>div:first-child>p:last-child{color:#687681;font-size:12px}.estimate-actions{display:flex;gap:10px;flex-wrap:wrap}.estimate-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;background:white;border:1px solid #d2d8df;border-radius:8px;padding:24px;margin:24px 0 16px}.estimate-summary>div{border-left:3px solid var(--accent);padding:0 16px}.estimate-summary span{display:block;font-size:12px;color:#62707d}.estimate-summary strong{display:block;font-size:27px;margin-top:12px}.estimate-warning,.estimate-ok{padding:13px 17px;border-radius:5px;font-size:12px;line-height:1.6}.estimate-warning{background:#fff6df;border:1px solid #e5cd8d;color:#715619}.estimate-ok{background:#eef8f0;border:1px solid #badbc2;color:#316040}.estimate-measures>p{font-size:13px;line-height:1.7}.estimate-measures>small{display:block;color:#6a7781;line-height:1.6;font-size:11px}.estimate-options{margin:16px 0;padding:0;border:0;display:flex;gap:20px;flex-wrap:wrap}.estimate-options label{display:flex;align-items:center;gap:8px;font-size:12px}.estimate-options input{width:auto;margin:0}.estimate-table-scroll{overflow-x:auto}.estimate-table{width:100%;border-collapse:collapse;font-size:12px}.estimate-table th,.estimate-table td{padding:12px 13px;border-bottom:1px solid #e2e6ea;vertical-align:top;text-align:left}.estimate-table thead{background:#f0f3f5;color:#4c5a65}.estimate-table thead th{white-space:nowrap;font-size:11px;font-weight:500}.estimate-table th[scope=row]{font-weight:500;min-width:200px;max-width:310px;line-height:1.5}.estimate-table th small{display:block;color:#7c8791;font-weight:400;margin-top:5px;font-size:10px}.estimate-table td{min-width:80px}.estimate-table input{font:inherit;width:118px;min-width:90px;max-width:140px;padding:8px;border:1px solid #bcc7d0;border-radius:4px;text-align:right;background:white}.estimate-table input:disabled{background:#f2f4f6}.estimate-table input.estimate-missing{background:#fff6dd;border-color:#caaa57}.estimate-table .estimate-basis{min-width:210px;color:#6b7883;font-size:11px;line-height:1.6}.estimate-help{font-size:12px;color:#6c7b87;line-height:1.6}.estimate-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:36px 0 20px}.estimate-detail-heading h2{font-size:21px;margin:0}.estimate-detail-heading label{font-size:12px;display:flex;align-items:center;gap:8px}.estimate-category{background:white;border:1px solid #d0d8df;border-top:3px solid #334c5b;border-radius:7px;overflow:hidden;margin:0 0 26px;box-shadow:0 3px 9px #19314904}.estimate-category>header{display:flex;align-items:center;gap:18px;background:#f7f9fa;border-bottom:1px solid #d5dde4;padding:20px 22px}.estimate-category-number{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:5px;background:#26333d;color:#fff;font-size:12px}.estimate-category h2{margin:0 0 5px;font-size:18px}.estimate-category header p{margin:0;color:#6a7985;font-size:11px;line-height:1.5}.estimate-category-total{margin-left:auto;text-align:right;white-space:nowrap}.estimate-category-total small{display:block;font-size:10px;color:#6b7781}.estimate-category-total b{display:block;font-size:17px;margin-top:5px}.estimate-category>.estimate-help{padding:10px 22px}.estimate-category[data-category=habillage]{border-top-color:#c58443}.estimate-category[data-category=structure]{border-top-color:#7c3f7f}.estimate-category[data-category=mats]{border-top-color:#337d90}.estimate-category[data-category=study]{border-top-color:#5d759e}.estimate-category[data-category=shipping]{border-top-color:#a38843}.estimate-category[data-category=install]{border-top-color:#477c5f}.estimate-excluded{opacity:.58}.estimate-page button.estimate-reset-line{display:block;font-size:9px;border:0;padding:6px 0;color:#577793;background:none}
@media(max-width:1000px){.portal-bar{gap:12px;padding:8px 12px;flex-wrap:wrap}.portal-user{gap:5px}.portal-brand strong{font-size:11px}.portal-bar nav{order:3;width:100%}.portal-project-strip>strong{max-width:200px}.portal-project-strip{gap:8px}.estimate-heading{flex-direction:column}.estimate-summary strong{font-size:23px}.portal-project-open>.studio-shell{min-height:0}}
@media(max-width:650px){.portal-auth{padding:16px}.portal-auth-card{padding:25px}.portal-dashboard{padding:30px 18px}.portal-dashboard h1,.estimate-heading h1,.portal-access h1{font-size:23px}.portal-project-strip{flex-wrap:wrap;padding:8px 12px}.portal-project-strip>span{order:4;width:100%;margin-left:0}.portal-project-strip>strong{max-width:calc(100vw - 220px)}.portal-user>span{max-width:110px}.portal-project-open{overflow:auto;height:auto;min-height:100dvh}.portal-project-open>.studio-shell{height:auto;min-height:100dvh;flex:none}.portal-invite-form{align-items:stretch;flex-direction:column}.portal-invite-row{gap:10px;flex-wrap:wrap}.portal-card{padding:18px}.estimate-summary{grid-template-columns:1fr;gap:20px;padding:20px}.estimate-detail-heading{align-items:flex-start;flex-direction:column}.estimate-category>header{gap:10px;padding:17px 13px;flex-wrap:wrap}.estimate-category>header>div:nth-child(2){flex:1;min-width:180px}.estimate-category-total{width:100%;text-align:left;margin:6px 0 0 44px}.estimate-category h2{font-size:16px}.estimate-actions{width:100%}.estimate-actions button{flex:1}.portal-card input{min-width:0}.portal-bar nav button{flex:1}}
.blank-workspace{flex:1;min-height:0;overflow:auto;padding:24px;background:var(--soft)}.blank-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.blank-heading h1{margin:6px 0 10px;font-size:23px}.blank-heading p{font-size:13px;color:var(--muted)}.blank-actions{display:flex;gap:8px}.blank-actions button,.blank-stages button{padding:9px 12px;background:white;border:1px solid var(--line);border-radius:5px;cursor:pointer}.blank-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;min-height:520px;margin-top:16px}.blank-layout>.portal-card{margin:0}.blank-layout fieldset{border:0;padding:0;margin:20px 0;min-width:0}.blank-stages{display:grid;gap:8px}.blank-stages button.active{background:var(--ink);color:white}.blank-plan{min-width:0;background:white;border:1px solid var(--line);border-radius:8px;padding:12px;min-height:500px}.blank-plan .plan-editor{height:100%}.blank-status{padding:12px 0;font-size:12px;color:var(--muted)}.portal-project-entry .portal-project-card{width:100%}.portal-rename-card{margin-top:9px;padding:7px 11px;border:1px solid var(--line);background:white;border-radius:4px;font-size:11px;cursor:pointer}.rename-project-dialog{border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:9px;padding:28px;width:min(460px,92vw)}.rename-project-dialog::backdrop{background:#151c2570}.rename-project-dialog h2{margin:0 0 22px;font-size:21px}.rename-project-dialog form>div{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.rename-project-dialog label{display:grid;gap:9px;font-size:13px}.rename-project-dialog input{padding:12px;font:inherit;border:1px solid #aab5be;border-radius:5px}.rename-project-dialog button{padding:9px 13px;border-radius:5px;border:1px solid var(--line);cursor:pointer}.estimate-input-error{display:block;color:#b03b21;font-size:10px;margin-top:5px;max-width:150px}.estimate-input input[aria-invalid=true]{border-color:#b03b21}.estimate-input input::placeholder{color:#937121}@media(max-width:800px){.blank-layout{grid-template-columns:1fr}.blank-heading{flex-direction:column}.blank-workspace{padding:16px}.blank-plan{height:560px}.blank-actions{flex-wrap:wrap}}
.estimate-tariff-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:white;border:1px solid #d2d8df;border-radius:8px;padding:16px 20px;margin:16px 0}.estimate-tariff-bar>div{flex:1;min-width:220px;font-size:12px}.estimate-tariff-bar p{margin:6px 0}.estimate-tariff-bar small{color:#687681}.estimate-origin,.estimate-review,.estimate-basis small{display:block;margin-bottom:6px}.estimate-review{color:#875414}.estimate-stale-row{background:#fffaeb}.estimate-basis small{margin-top:6px;color:#65717b}.tariff-dialog{width:min(960px,94vw);max-height:90dvh;padding:25px;border:1px solid #cbd1d8;border-top:4px solid var(--accent);border-radius:9px;color:#252a30}.tariff-dialog::backdrop{background:#151c2570}.tariff-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.tariff-dialog-heading h2{margin:0;font-size:23px}.tariff-dialog button{padding:9px 13px;border-radius:5px;border:1px solid #cbd1d8;background:white;cursor:pointer;font:inherit;font-size:12px}.tariff-fields{display:flex;gap:18px;align-items:end;flex-wrap:wrap;border:0;padding:0;margin:22px 0}.tariff-fields label{display:grid;gap:8px;flex:1;min-width:180px;font-size:12px}.tariff-fields input{border:1px solid #bbc6cf;border-radius:4px;padding:10px;font:inherit;min-width:0}.tariff-fields span{font-size:11px;color:#65717b}.tariff-category{border:1px solid #d2d8df;border-radius:5px;margin:10px 0;overflow:hidden}.tariff-category summary{padding:13px 16px;background:#f4f6f8;font-size:13px;font-weight:600;cursor:pointer}.tariff-dialog footer{position:sticky;bottom:-25px;background:#fff;border-top:1px solid #d2d8df;padding:17px 0 6px;display:flex;gap:15px;align-items:center;justify-content:space-between}.tariff-dialog footer button{flex-shrink:0}.tariff-dialog button:disabled{opacity:.5;cursor:default}
.tariff-dialog button.portal-primary{background:#252a2e;color:#fff}
.language-switcher{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;border:1px solid #75818b;border-radius:5px;padding:2px;font-size:11px}.portal-bar .language-switcher button,.portal-auth .language-switcher button{font:inherit;font-weight:600;border:0;background:transparent;color:inherit;min-width:29px;padding:5px 6px;border-radius:3px;cursor:pointer}.portal-bar .language-switcher button[aria-pressed=true]{background:#fff;color:#171d21}.portal-auth .language-switcher button[aria-pressed=true]{background:#252a2e;color:#fff}.language-switcher>span{opacity:.55;font-size:10px}.portal-auth-card>.language-switcher{float:right;margin:-6px -4px 14px 12px}.language-switcher button:focus-visible{outline:2px solid #2684ca;outline-offset:3px}@media(max-width:650px){.portal-bar .portal-user{flex-wrap:wrap;justify-content:flex-end}.portal-bar .language-switcher button{padding:4px;min-width:26px}}
.project-versions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 18px;background:#f5f7f9;border-bottom:1px solid #cbd3db;flex-shrink:0}.version-tabs{display:flex;gap:5px;overflow:auto;max-width:46vw;scrollbar-width:thin}.version-tabs button{border:1px solid #c3cdd5;background:#fff;padding:8px 14px;border-radius:5px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.version-tabs button[aria-selected=true]{background:#252a30;color:white;border-color:#252a30;box-shadow:inset 0 -3px var(--accent)}.version-tabs button small{font-size:10px}.version-origin{color:#687681;font-size:10px;white-space:nowrap}.version-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.version-actions button,.share-version-link button,.project-comments button{font:inherit;font-size:11px;padding:8px 11px;border:1px solid #c6d0d8;border-radius:5px;background:white;color:#26333e;cursor:pointer}.version-actions button[aria-expanded=true]{border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.portal-version-content{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}.portal-version-main{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}.portal-version-main>.studio-shell{height:auto;flex:1;min-height:0}.project-comments{width:350px;flex-shrink:0;min-height:0;overflow:auto;background:#fff;border-left:1px solid #cbd3db;padding:20px}.project-comments>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.project-comments h2{margin:0;font-size:20px}.project-comments>header>button{font-size:20px;line-height:1}.project-comments fieldset{padding:0;border:0;min-width:0;margin:20px 0 10px}.project-comments label{display:grid;gap:7px;margin:12px 0;font-size:12px}.project-comments select,.project-comments textarea,.share-version-link input{width:100%;min-width:0;font:inherit;border:1px solid #bdc8d2;border-radius:5px;padding:9px;background:#fff;color:#26333e}.project-comments textarea{resize:vertical;min-height:90px;max-height:330px}.comment-compose-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}.comment-compose-actions>small{margin-right:auto;color:#7a8791;font-size:10px}.project-comments button.portal-primary{background:#252a30;color:white}.comment-thread{margin-top:24px}.comment-thread article{border-top:1px solid #dce2e8;padding:16px 0}.comment-thread article header{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;font-size:12px}.comment-thread article header>span{font-size:9px;background:#eef1f4;padding:2px 5px;border-radius:3px}.comment-thread time{font-size:10px;color:#7a8791}.comment-target{display:block;font-size:10px;color:#657684;margin:8px 0}.comment-thread article>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0}.share-version-link{flex-shrink:0;display:flex;gap:14px;flex-wrap:wrap;align-items:end;background:#fff;border-bottom:1px solid #d1dae2;padding:18px 24px}.share-version-link>div{flex:1;min-width:220px}.share-version-link b{font-size:14px}.share-version-link p{font-size:11px;line-height:1.5;margin:7px 0;color:#657684}.share-version-link label{display:grid;gap:6px;flex:1;min-width:180px;font-size:11px}.share-version-link small{width:100%;color:#657684;font-size:11px}.portal-version-main>.portal-access{margin-top:0}.version-actions button:focus-visible,.version-tabs button:focus-visible,.project-comments textarea:focus-visible,.project-comments select:focus-visible{outline:2px solid #2684ca;outline-offset:2px}@media(max-width:1100px){.version-tabs{max-width:65vw}.version-actions{margin-left:0}.project-comments{width:310px;padding:16px}}@media(max-width:650px){.project-versions{gap:8px;padding:10px 12px}.version-tabs{max-width:calc(100vw - 24px);flex:1}.version-origin{display:none}.version-actions{width:100%}.version-actions button{font-size:10px;padding:8px}.portal-version-content{display:block;overflow:visible;flex:none}.portal-version-main{overflow:visible}.portal-version-main>.studio-shell{height:auto;min-height:100dvh;flex:none}.project-comments{position:fixed;inset:12dvh 0 0;z-index:80;width:100%;max-width:none;border-left:0;border-top:4px solid var(--accent);box-shadow:0 -10px 40px #17202a50;padding:20px}.share-version-link{padding:16px}}
.comment-sharing-note{font-size:11px;color:#577183;background:#f0f5f8;border-radius:4px;padding:9px 10px;line-height:1.5}.comment-model-changed{display:block;color:#8a6d2b;font-size:10px;margin-top:9px}

/* Keep the embedded document independent from the host viewer theme. */
body { display: block; color: var(--ink); background: var(--paper); font-family: Ubuntu, 'Segoe UI', sans-serif; }
