/* v3.1 layout. Control surfaces and interaction colors inherit the v2.33 theme in neumorphic.css. */
:root {
  --ui-font: "Helvetica Neue",Inter,"Source Han Sans SC","Microsoft YaHei",sans-serif;
  --status-height: 28px;
}
body,body button,body select,body label,body summary {font-family:var(--ui-font)}
.cad-header {display:flex;align-items:center;justify-content:flex-start;gap:8px;padding-inline:14px}
.cad-header-end {margin-left:auto;min-width:0}
.cad-header .project-menu {flex:none}
.project-menu>div {left:0;right:auto}
.cad-header .cad-tabs {gap:8px;padding:5px 6px;align-items:center;box-sizing:border-box;flex:0 1 auto}
.cad-header .cad-tabs button,.cad-header .project-menu>summary {
  font:650 14px/1.3 var(--ui-font);padding:0 14px;min-width:0;white-space:nowrap;
}
#clear-widths,#library-controls select,#param-form .size-mode {width:100%;box-sizing:border-box}
#param-form .size-mode {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#param-form .size-mode label,#param-form .size-mode span {min-width:0;text-align:center;padding-inline:0}
#param-form .size-mode input:focus-visible + span {outline:2px solid #89dae8;outline-offset:2px}
#clear-widths {margin-top:12px}
#param-form .generate-row {margin-top:12px;gap:10px}
#param-form .generate-row #library-save {margin-left:auto}
#part-tabs {gap:8px}
#library-controls {margin-block:10px 16px}
#library-controls[hidden],#library-download[hidden] {display:none}
#library-controls .record-actions {align-items:center;gap:8px}
#library-download {color:#a1deeb}
.export-section #export {width:100%;margin:0 0 8px}
#diagram-unit {font-size:12px;font-weight:400;color:#b8c9d4}
.help-manual {padding:0 clamp(18px,3vw,44px) 20px;border-radius:12px}
.help-manual header {padding:23px 0 16px;gap:12px}
.help-manual header h1 {font-size:clamp(21px,2.4vw,32px);letter-spacing:.02em}
.help-manual header strong {color:#9de4eb;font-variant-numeric:tabular-nums}
.help-manual .help-intro {margin:16px 0 8px;line-height:1.85;color:#d1e0e9;max-width:76ch}
.help-manual section {padding:16px 0}.help-manual section h2 {color:#a9e1eb;font-size:15px}
.help-manual section p {max-width:90ch;line-height:1.85}
#help-history {width:100%;margin-top:16px}
#release-history {width:min(680px,86vw);max-height:76vh}
#release-history header {display:flex;align-items:center;justify-content:space-between;position:sticky;top:-22px;background:#29343f;padding-block:8px;z-index:1}
#release-list details {border-top:1px solid #445562;padding:10px 0}
#release-list summary {cursor:pointer;font-weight:650;color:#afe4ed}
#release-list details>div {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.72;margin:9px 0;color:#c6d5df}
.cad-statusbar #assistant-launch {width:52px;height:46px;padding:0;align-self:flex-end}
.cad-statusbar #assistant-launch img {width:46px;height:46px;object-fit:contain}
.cad-statusbar {justify-content:flex-start}
.cad-statusbar #cad-version {margin-right:0}
.cad-statusbar #workspace-state,.cad-statusbar #def-status {min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.cad-statusbar #cad-coordinate {margin-left:auto;flex-shrink:0}
.cad-statusbar #def-status:empty,body:not([data-workspace=deformation]) #def-status {display:none}
body[data-workspace=deformation] .cad-statusbar #def-status:not(:empty) {flex:1 0 44%}
.ui-workspace button.view-reset {min-width:54px;padding-inline:12px;flex-shrink:0;white-space:nowrap}
.history-actions {align-items:start}
.history-actions select[hidden],#seam-downloads:empty {display:none!important}
.history-actions .record-picker-inline {grid-column:1;min-width:0}
.history-actions .record-picker-inline summary {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#seam-downloads {padding:0 12px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#seam-downloads a:first-child {grid-column:auto;align-items:center;box-sizing:border-box;min-height:32px;padding:4px 8px}
.seam-print-frame {position:fixed;bottom:0;right:0;width:1px;height:1px;border:0;pointer-events:none}
@media (max-width:900px){.cad-header{padding-inline:7px;gap:3px}.cad-header .cad-tabs button,.cad-header .project-menu>summary{padding-inline:9px}.cad-statusbar #cad-coordinate{display:none}}
