.workspace-tabs{height:46px;display:flex;align-items:center;gap:4px;padding:0 28px;border-bottom:1px solid #e9e9e9;background:#fff}.workspace-tabs button{display:flex;align-items:center;gap:8px;padding:8px 13px;border-radius:7px;font-size:11px;color:#8b8b8b}.workspace-tabs button[aria-selected=true]{background:#f0f0f0;color:#202020}.workspace-tabs button small{font-size:9px;color:#999}.workspace-mode-on .editor{height:calc(100dvh - 118px)}
.stereo-studio{height:calc(100dvh - 118px);min-height:430px;display:flex;background:#fff;overflow:hidden}.stereo-viewport{position:relative;flex:1;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#fff 35%,#fafafa 100%)}#stereoCanvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;outline:none}.stereo-stage-hint{position:absolute;top:18px;left:22px;z-index:2;font-size:11px;color:#909090;pointer-events:none}.stereo-view-actions{position:absolute;top:12px;right:15px}.stereo-view-actions button{background:#ffffffd9;border:1px solid #e8e8e8;border-radius:7px;padding:8px 10px;color:#777;font-size:10px}.stereo-footer{position:absolute;bottom:19px;left:20px;right:20px;display:flex;align-items:center;gap:12px;justify-content:space-between;pointer-events:none}.stereo-footer>div{display:flex;pointer-events:auto;gap:3px}.stereo-footer button{width:30px;height:30px;font-size:20px;color:#737373;border-radius:6px}.stereo-footer>span{font-size:9px;color:#aaa}.stereo-panel{width:272px;flex:none;margin:14px 12px 14px 0;border:1px solid #e4e4e4;border-radius:12px;background:#fff;padding:18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddd transparent}.stereo-panel>header small,.stereo-picker small{font-size:8px;letter-spacing:1.5px;color:#aaa}.stereo-panel h2{font-size:17px;font-weight:550;color:#303030;margin:8px 0 18px;line-height:1.4}.stereo-body-select{display:flex;gap:6px;margin-bottom:15px}.stereo-instruction{font-size:10px;line-height:1.8;color:#909090;margin:14px 0;min-height:36px}.stereo-draft{display:flex;flex-wrap:wrap;gap:5px}.stereo-draft button{padding:6px 8px;border:1px solid #dce5ec;border-radius:6px;background:#f7fafc;color:#63809a;font-size:10px}.stereo-draft:not(:empty){margin-bottom:13px}.stereo-details{border-top:1px solid #ededed;border-bottom:1px solid #ededed;padding:14px 0;margin-top:18px}.stereo-details summary{font-size:10px;color:#929292;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.stereo-details summary::after{content:'+'}.stereo-details[open] summary::after{content:'−'}.stereo-checks{margin-top:12px}.stereo-checks label{display:flex;align-items:center;gap:8px;font-size:10px;color:#777;margin:10px 0}.stereo-checks input{accent-color:#252525;width:13px;height:13px;margin:0}.stereo-dimensions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.stereo-dimensions label{font-size:9px;color:#969696}.stereo-dimensions input{display:block;width:100%;height:32px;border:1px solid #ddd;border-radius:6px;background:#fafafa;font-size:11px;color:#555;padding:6px;margin-top:6px}.stereo-constructions h3{font-size:11px;font-weight:500;color:#777;margin:18px 0 8px}.stereo-empty-list{font-size:10px;line-height:1.7;color:#aaa}.stereo-construction-row{display:flex;align-items:center;border-bottom:1px solid #f0f0f0;padding:8px 0;gap:6px;font-size:10px;color:#777}.stereo-construction-row>button:first-child{flex:1;text-align:left;min-width:0;font-size:11px;padding:3px 0;color:#5f7d96}.stereo-construction-row>button:first-child[aria-pressed=false]{opacity:.4}.stereo-construction-row small{display:block;font-size:9px;color:#a2a2a2;padding:5px 0 0 15px;line-height:1.5}.stereo-construction-row>button:last-child{width:25px;height:25px;flex:none;border-radius:5px;color:#aaa}.stereo-section-dot{display:inline-block;height:6px;width:6px;background:#7294ae;border-radius:2px;margin-right:8px}.stereo-selected-point:not(:empty){border:1px solid #e5e5e5;border-radius:8px;padding:11px;margin-top:15px}.stereo-selected-point label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#888}.stereo-selected-point input{width:60px;padding:5px 7px;font-size:11px;color:#555;border:1px solid #ddd;background:#fafafa;border-radius:5px}.stereo-selected-point p{font-size:9px;color:#999;line-height:1.7}.stereo-selected-point>div{display:flex;flex-wrap:wrap;gap:5px}.stereo-selected-point button{font-size:9px;padding:5px 6px;border:1px solid #e3e3e3;border-radius:5px;color:#888}.stereo-picker{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 32px));padding:22px;border:1px solid #e5e5e5;border-radius:15px;background:#fff;max-height:calc(100% - 32px);overflow:auto;box-shadow:0 10px 60px #00000008}.stereo-picker header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.stereo-picker header button{font-size:22px;line-height:1;color:#aaa;padding:2px 5px}.stereo-picker h2{font-size:23px;font-weight:500;letter-spacing:-.4px;color:#333;margin:9px 0 22px}.stereo-picker>p{font-size:10px;line-height:1.7;color:#a5a5a5;margin:18px 0 0}.stereo-shape-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stereo-shape-grid button{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #e9e9e9;border-radius:8px;padding:14px 5px 11px;color:#777;min-width:0}.stereo-shape-grid button:hover{border-color:#bbb;background:#f7f7f7}.stereo-shape-grid svg{flex:none;width:44px;height:42px;fill:none;stroke:#858585;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}.stereo-shape-grid span{min-width:0;overflow-wrap:anywhere;font-size:9px;line-height:1.5;text-align:center}.stereo-empty .stereo-panel{display:none}.stereo-empty #stereoResetView,.stereo-empty .stereo-footer{display:none}
@media(max-width:1000px){.stereo-shape-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stereo-picker{max-height:calc(100% - 40px);overflow:auto;width:min(420px,calc(100% - 32px))}.stereo-shape-grid button{flex-direction:row;padding:8px 10px;gap:9px}.stereo-shape-grid svg{width:36px;height:34px}.stereo-shape-grid span{text-align:left}}
@media(max-width:700px){.workspace-tabs{height:43px;padding:0 13px}.workspace-tabs button{font-size:10px;padding:7px 10px}.workspace-mode-on .editor,.stereo-studio{height:calc(100dvh - 105px)}.stereo-studio{display:grid;grid-template-rows:minmax(260px,1fr) minmax(170px,32dvh);min-height:500px}.stereo-viewport{min-height:0}.stereo-panel{width:auto;margin:0 10px 10px;padding:13px 15px}.stereo-panel>header{display:none}.stereo-body-select{margin-bottom:10px}.stereo-instruction{min-height:0;margin:10px 0;font-size:10px}.stereo-footer{bottom:9px;left:12px;right:12px}.stereo-footer>span{font-size:8px;max-width:180px;text-align:right;line-height:1.5}.stereo-empty{grid-template-rows:1fr}.stereo-picker{padding:17px;width:calc(100% - 24px);max-height:calc(100% - 20px)}.stereo-picker h2{font-size:20px;margin-bottom:15px}.stereo-picker>p{font-size:9px;margin-top:12px}.stereo-view-actions{top:9px;right:10px}.stereo-stage-hint{top:14px;left:13px;font-size:10px}}
.stereo-projection{margin:0 0 17px}.stereo-projection-switch{display:grid;grid-template-columns:1fr 1fr;padding:3px;gap:3px;border:1px solid #e7e7e7;border-radius:8px;background:#f7f7f7}.stereo-projection-switch button{min-height:31px;padding:6px 4px;border-radius:5px;font-size:10px;color:#888;line-height:1.4}.stereo-projection-switch button[aria-pressed=true]{background:#fff;color:#222;box-shadow:0 1px 3px #0000000d}.stereo-standard-views{display:flex;gap:5px;margin:9px 0 11px}.stereo-standard-views button{flex:1;padding:7px 2px;border:1px solid #e6e6e6;border-radius:5px;font-size:9px;color:#777}.stereo-standard-views button[aria-pressed=true]{color:#222;border-color:#999;background:#f5f5f5}.stereo-measures-toggle{display:flex;gap:7px;align-items:center;font-size:10px;color:#666}.stereo-measures-toggle input{accent-color:#333;width:13px;height:13px;margin:0}#stereoOrthoControls>p{font-size:9px;line-height:1.6;color:#999;margin:9px 0 0}@media(max-width:700px){.stereo-projection{margin-bottom:12px}.stereo-standard-views{margin:7px 0}.stereo-projection-switch button{font-size:10px;min-height:30px}}
.stereo-body-settings{margin-top:18px;padding:15px 0;border-top:1px solid #ededed}.stereo-body-settings h3{font-size:11px;font-weight:500;color:#555;margin:0 0 12px}.stereo-body-settings>label,.stereo-line-controls label{display:block;font-size:10px;color:#888;line-height:1.6}.stereo-line-controls input{width:100%;min-width:0;padding:7px;margin-top:5px;font-size:11px;color:#555;background:#fafafa;border:1px solid #ddd;border-radius:6px;height:33px}.stereo-body-settings>p{font-size:9px;color:#aaa;line-height:1.6;margin-bottom:0}.stereo-body-settings .stereo-dimensions{margin-top:12px}.stereo-dimensions label{line-height:1.6}.stereo-line-row{border-bottom:1px solid #ededed;padding:10px 0}.stereo-line-row summary{font-size:11px;color:#555;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:5px;list-style:none}.stereo-line-row summary::before{content:'›';color:#aaa}.stereo-line-row[open] summary::before{content:'⌄'}.stereo-line-row summary small{margin-left:auto;font-size:10px;color:#aaa}.stereo-line-controls{padding-top:10px;display:grid;gap:9px}.stereo-line-controls button{font-size:9px;color:#888;justify-self:start;padding:5px 0}

.stereo-body-settings .stereo-dimensions{grid-template-columns:repeat(auto-fit,minmax(60px,1fr))}

.stereo-panel {
  --stereo-control-height: 38px;
  --stereo-control-radius: 8px;
}
.stereo-panel select {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: var(--stereo-control-height);
  padding: 0 34px 0 11px;
  border: 1px solid #dedede;
  border-radius: var(--stereo-control-radius);
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23696969' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px 16px;
  color: #333;
  font: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stereo-panel select:hover:not(:disabled) {
  border-color: #bcbcbc;
  background-color: #f4f4f4;
}
.stereo-panel select:focus {
  border-color: #8b8b8b;
  outline: none;
}
.stereo-panel select:focus-visible {
  outline: 2px solid #777;
  outline-offset: 2px;
}
.stereo-panel select:disabled {
  opacity: .55;
  cursor: default;
}
.stereo-body-settings select { margin-top: 5px; }
.stereo-body-select button {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--stereo-control-height);
  height: var(--stereo-control-height);
  padding: 0;
  border: 1px solid #dedede;
  border-radius: var(--stereo-control-radius);
  color: #606060;
  font-size: 18px;
}
@media (max-width: 700px), (pointer: coarse) {
  .stereo-panel { --stereo-control-height: 44px; }
  .stereo-panel select { font-size: 16px; }
}
@media (forced-colors: active) {
  .stereo-panel select {
    appearance: auto;
    padding-inline-end: 8px;
    background-image: none;
  }
  .stereo-panel select:focus-visible { outline-color: Highlight; }
}

@media (max-width: 420px) {
  .stereo-shape-grid button { flex-direction: column; gap: 5px; padding: 7px 6px; }
  .stereo-shape-grid span { text-align: center; }
}

.stereo-tools {
  top: 50%;
  bottom: auto;
  left: 18px;
  transform: translateY(-50%);
  flex-direction: column;
  max-height: calc(100% - 90px);
  overflow-y: auto;
  scrollbar-width: none;
}
.stereo-tools .tool { flex: none; padding: 0; }
.stereo-tools .icon { width: 19px; height: 19px; }
.stereo-tool-divider { flex: none; width: 22px; height: 1px; margin: 3px 0; background: #e5e5e5; }
.stereo-panel .stereo-delete-body,
.button.stereo-delete-confirm {
  min-height: 36px;
  border: 1px solid #e6b9b9;
  background: #fff5f5;
  color: #aa2020;
  border-radius: 7px;
  font-size: 12px;
}
.stereo-panel .stereo-delete-body {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 16px;
  padding: 7px 10px;
}
.stereo-delete-body .icon { width: 16px; height: 16px; }
.stereo-panel .stereo-delete-body:hover,
.button.stereo-delete-confirm:hover { background: #ffe6e6; border-color: #d98c8c; }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .stereo-tools {
    top: auto;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    width: max-content;
    max-width: calc(100% - 20px);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    padding: 4px;
  }
  .stereo-tools .tool { width: 40px; height: 40px; }
  .stereo-tool-divider { width: 1px; height: 22px; margin: 0 3px; }
}

.stereo-notes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stereo-tools .tool { position: relative; }
.stereo-tools [data-stereo-tool=erase-whole]::after {
  content: "×";
  position: absolute;
  right: 3px;
  bottom: 2px;
  font: 700 11px/1 system-ui, sans-serif;
}

.stereo-view-actions { display: flex; align-items: center; gap: 6px; z-index: 6; }
#stereoTourButton { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0; }
#stereoTourButton .icon { width: 18px; height: 18px; }
@media (pointer: coarse) {
  #stereoTourButton { min-width: 44px; min-height: 44px; }
}
