/* Shared folding workspace: familiar controls, clear labels and touch targets. */
.fold-experience-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 18px;flex-wrap:wrap}
.fold-experience-bar>div>span{display:block;color:#b94720;letter-spacing:1.6px;font:700 11px/1.6 Arial,sans-serif}
.fold-experience-bar p{font-size:14px;line-height:1.7;margin:4px 0;color:#565a50}
.fold-stage-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 26px;padding:0;counter-reset:fold-step}
.fold-stage-nav a{display:flex;align-items:center;gap:12px;min-height:58px;padding:12px 16px;border:1px solid #c8cabe;border-radius:12px;background:#fbfcf5;color:#343b30;text-decoration:none;font:600 14px/1.4 Arial,sans-serif}
.fold-stage-nav a:before{counter-increment:fold-step;content:counter(fold-step,decimal-leading-zero);display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#e6e9df;color:#4f5b44;font-size:12px}
.fold-stage-nav a[aria-current]{border-color:#bd4b26;background:#fff4e9;box-shadow:inset 0 -3px #c14f29}
.fold-stage-nav a[aria-current]:before{background:#bd4b26;color:#fff}
.fold-text-button,.fold-template-gallery button{min-height:44px;padding:10px 16px;border:1px solid #a2aa99;border-radius:9px;background:transparent;color:inherit;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
.fold-page .fold-mode-picker .fold-mode-option{min-height:142px;align-items:flex-start;padding:22px 18px}
.fold-page .fold-mode-picker .fold-mode-icon{width:54px;height:54px;flex-basis:54px}
.fold-page .fold-mode-picker .fold-mode-icon svg{width:40px;height:40px}
.fold-page .fold-mode-picker .fold-mode-title{font-size:17px;line-height:1.35}
.fold-page .fold-mode-picker .fold-mode-description{font-size:13px;line-height:1.65;margin-top:6px;display:block}
.fold-mode-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px;grid-column:1/-1}
.fold-mode-extra a{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:70px;padding:15px 20px;background:#e7eade;border:1px dashed #aeb8a0;border-radius:12px;color:#3b4434;text-decoration:none}
.fold-mode-extra strong{display:block!important;font-size:15px!important}.fold-mode-extra small{display:block;font-size:13px;line-height:1.6;margin-top:3px}
.fold-mode-extra a>span:last-child{font-size:26px;color:#ab4220}
.fold-workspace-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 22px;background:#1c221b;border-bottom:1px solid #ffffff20}
.fold-view-switch,.fold-history-tools{display:flex;gap:7px;flex-wrap:wrap}
.fold-workspace-toolbar button,.fold-measure-chips button{min-height:44px;padding:10px 14px;border:1px solid #8b9781;border-radius:8px;background:#2c3527;color:#f4f6ec;font:600 13px/1.4 Arial,sans-serif;cursor:pointer}
.fold-workspace-toolbar button[aria-pressed=true],.fold-measure-chips button[aria-pressed=true]{background:#f3d2b7;border-color:#f3d2b7;color:#41270f}
.fold-workspace-toolbar button:disabled{opacity:.4;cursor:default}
.fold-selection-help{padding:12px 22px 0;margin:0;color:#dfe4d4;font-size:13px;line-height:1.65}
.fold-measure-chips{display:flex;gap:7px;flex-wrap:wrap;padding:12px 22px 18px}
.fold-measure-chips button{font-size:12px;font-weight:400;background:transparent}
.fold-page .fold-field label{font-size:13px;line-height:1.65}.fold-page .fold-field input,.fold-page .fold-field select,.fold-page .fold-field textarea{font-size:16px;min-height:48px}
.fold-page .fold-field-help,.fold-page .fold-quick-hint,.fold-page .fold-width-status,.fold-page .fold-end-state{font-size:13px;line-height:1.75}
.fold-page .fold-field.is-measure-selected{outline:2px solid #d06c32;outline-offset:6px;border-radius:4px}
.fold-value-kind{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:4px;background:#e0e7d6;color:#3c4a31;font:500 10px/1.5 Arial,sans-serif;vertical-align:middle}
#fold-preview-drawing [data-fold-dimension]{cursor:pointer}#fold-preview-drawing [data-fold-dimension]:focus{outline:none;filter:drop-shadow(0 0 3px #ffd99f)}
#fold-preview-drawing text.is-measure-selected{fill:#ffd59b!important;font-weight:700;text-decoration:underline}
#fold-preview-drawing polygon.is-measure-selected,#fold-preview-drawing rect.is-measure-selected{stroke:#fff0c9;stroke-width:4;filter:drop-shadow(0 0 4px #f9bb74)}
.fold-wall-field{padding:15px;border:1px solid #c4c8b8;border-left:5px solid var(--wall-color,#a2b9a4);border-radius:10px;background:#eef0e5}
.fold-wall-field[data-tray-wall=front]{--wall-color:#71a9be}.fold-wall-field[data-tray-wall=rear]{--wall-color:#93a56b}.fold-wall-field[data-tray-wall=left]{--wall-color:#bb8c5a}.fold-wall-field[data-tray-wall=right]{--wall-color:#a087b8}
.fold-wall-field>label:not(:first-child){margin-top:14px}.fold-wall-help{grid-column:1/-1;font-size:13px;line-height:1.75;color:#555e4b}
.fold-advanced{grid-column:1/-1;border:1px solid #c2c8b7;border-radius:10px;background:#e9ede2;padding:0 17px}
.fold-advanced>summary{min-height:50px;padding:15px 0;cursor:pointer;font-size:14px;font-weight:600;color:#3e4935;line-height:1.6}
.fold-advanced>.fold-field{margin:12px 0 20px}.fold-advanced>.fold-symmetry-options{margin-bottom:20px}
.fold-workspace-feedback{margin:18px 0 0;padding:14px 17px;border:1px solid #a8b89a;border-radius:10px;background:#eaf0e2;color:#35482a;font:500 14px/1.7 Arial,sans-serif}
.fold-workspace-feedback[data-kind=error]{border-color:#c88250;background:#fff1e3;color:#81340f}
.fold-review-measures{border:0;background:transparent;min-height:44px;padding:8px 0;color:#9c3614;font-weight:600;text-decoration:underline;cursor:pointer}
.fold-design-save-status{font-size:12px;line-height:1.7;color:#59634d;margin-top:12px}
.fold-angle-help{display:flex;align-items:center;gap:10px;border-radius:9px;background:#f3f5ec;color:#3d4c3b;padding:10px 12px;margin-top:12px;font-size:12px;line-height:1.6}
.fold-angle-help>div{flex:0 0 100px}.fold-angle-help svg{display:block;width:100%;height:auto}.fold-angle-help p{font-size:12px;line-height:1.6!important;margin:0!important;color:#3d4c3b!important}
.fold-review-visual{padding:20px;color:#eff3e9}.fold-review-heading{border-bottom:1px solid #ffffff20;padding-bottom:14px;margin-bottom:16px}.fold-review-heading h3{font-size:21px;letter-spacing:-.4px;margin:0 0 6px}.fold-review-heading p{font-size:11px;color:#c0c9b6;overflow-wrap:anywhere}
.ficha-styled .ficha-document{max-height:50vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.fold-review-piece{display:grid;grid-template-columns:180px 1fr;gap:18px;border-bottom:1px solid #ffffff1c;padding:0 0 18px;margin-bottom:18px;min-width:0}
.fold-review-picture{display:flex;align-items:center;background:#22291e;border-radius:10px;overflow:hidden;min-width:0}.fold-review-picture svg{display:block;width:100%;height:auto;pointer-events:none}.fold-review-piece h4{font-size:16px;line-height:1.5;margin:0 0 5px}.fold-review-meta{font-size:12px;line-height:1.7;color:#c1cdb8;margin-bottom:12px}
.fold-review-piece dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:0}.fold-review-piece dl>div{min-width:0}.fold-review-piece dt{font-size:10px;line-height:1.6;color:#bbc5b1}.fold-review-piece dd{font-size:13px;line-height:1.6;color:#f4f6ec;margin:2px 0 0;overflow-wrap:anywhere}
.fold-review-files h4{font-size:14px;margin-bottom:12px}.fold-review-files ul{list-style:none;padding:0;margin:0}.fold-review-files li{display:flex;align-items:start;gap:10px;margin:8px 0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.fold-file-badge{flex:0 0 50px;font-size:10px;font-weight:700;text-align:center;background:#3f4c35;color:#e3eed8;border-radius:4px;padding:2px 4px}.fold-review-files p,.fold-review-contact{font-size:12px;line-height:1.8;color:#c5cfba;margin-top:12px;overflow-wrap:anywhere}
.fold-review-details{padding:0 20px 18px;color:#d4dccb}.fold-review-details>summary{font-size:13px;min-height:44px;padding-top:12px;cursor:pointer}.fold-review-details .ficha-summary{max-height:270px;font-size:12px}
:is(.designer-page,.dxf-page) .fold-experience-bar{margin-top:25px}:is(.designer-page,.dxf-page) .fold-experience-bar p{color:#bbc8ca}:is(.designer-page,.dxf-page) .fold-experience-bar>div>span{color:#ffb889}
:is(.designer-page,.dxf-page) .fold-stage-nav a{background:#202b2d;border-color:#59696c;color:#e3eceb}:is(.designer-page,.dxf-page) .fold-stage-nav a:before{background:#394b4b;color:#e7f2eb}:is(.designer-page,.dxf-page) .fold-stage-nav a[aria-current]{background:#343225;border-color:#d99e68}
:is(.designer-page,.dxf-page) .fold-view-switch button{min-height:44px;padding:10px 14px;border:1px solid #7e999d;border-radius:8px;background:#243b40;color:#e7f1ee;cursor:pointer}:is(.designer-page,.dxf-page) .fold-view-switch button[aria-pressed=true]{background:#d2e5da;color:#263c33}
.fold-template-gallery{display:flex;gap:10px;flex-wrap:wrap;padding:18px 0;margin-bottom:12px}.fold-template-gallery button{display:flex;align-items:center;gap:12px;background:#253336;border-color:#607477;color:#edf3ee;min-width:125px;text-align:left}.fold-template-gallery svg{width:40px;height:34px;fill:none;stroke:#eab88d;stroke-width:2}.fold-template-gallery button[aria-pressed=true]{border-color:#f9b787;background:#3c392d}
:is(.designer-page,.dxf-page) input,:is(.designer-page,.dxf-page) select{font-size:16px!important;min-height:46px}.designer-field label,.dxf-field label{font-size:13px!important;line-height:1.7}.designer-help,.designer-field-note,.dxf-help,.dxf-gesture{font-size:13px!important;line-height:1.75!important}
.designer-history button,.dxf-review-bar button,.dxf-mini-actions button,.dxf-preview-zoom button,.designer-view-tools button,.dxf-view-tools button{min-height:44px;font-size:13px}
.dxf-comparison{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;padding:13px;border:1px solid #61797c;border-radius:10px;background:#1a2b2f;color:#dbe8e4}.dxf-comparison>strong{font-size:12px}.dxf-comparison button{min-height:44px;padding:9px 12px;border:1px solid #77918e;background:#253d40;color:#e4eeeb;border-radius:7px;cursor:pointer}.dxf-comparison button[aria-pressed=true]{background:#d6e8db;color:#293f33}.dxf-comparison p{flex-basis:100%;font-size:12px;line-height:1.6;margin:0}
.fold-large-text :is(.fold-field label,.designer-field label,.dxf-field label){font-size:16px!important}.fold-large-text :is(.fold-field input,.fold-field select,.designer-field input,.designer-field select,.dxf-field input,.dxf-field select){font-size:18px!important}.fold-large-text :is(.fold-field-help,.fold-quick-hint,.designer-help,.designer-field-note,.dxf-help,.fold-review-piece dd){font-size:15px!important}
:is(.fold-page,.designer-page,.dxf-page) :focus-visible{outline:3px solid #dc8a46;outline-offset:4px}:is(.fold-page,.designer-page,.dxf-page) :is(button,a,input,select,summary){scroll-margin-block:90px}
@media(max-width:760px){.fold-stage-nav{gap:6px}.fold-stage-nav a{padding:10px 9px;font-size:12px;gap:7px;flex-direction:column;text-align:center}.fold-stage-nav a:before{flex-basis:26px;height:26px;width:26px}.fold-page .fold-mode-picker .fold-mode-option{min-height:110px;padding:16px;align-items:center}.fold-mode-extra{grid-template-columns:1fr}.fold-workspace-toolbar{padding:12px;gap:10px}.fold-workspace-toolbar .fold-view-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}.fold-workspace-toolbar .fold-history-tools{width:100%;display:grid;grid-template-columns:1fr 1fr}.fold-selection-help{padding:12px 14px 0}.fold-measure-chips{padding:12px 14px;max-height:125px;overflow:auto}.fold-review-piece{grid-template-columns:1fr}.fold-review-picture{max-height:170px;justify-content:center}.fold-review-picture svg{width:auto;max-width:100%;max-height:170px}.fold-review-visual{padding:15px}.ficha-styled .ficha-document{max-height:44vh}.fold-review-piece dl{gap:10px}.fold-angle-help>div{flex-basis:80px}.fold-template-gallery{display:grid;grid-template-columns:1fr 1fr}.fold-template-gallery button{min-width:0;padding:10px}.fold-experience-bar p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.fold-page *,.designer-page *,.dxf-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.fold-review-picture{align-self:start;aspect-ratio:1.25;padding:14px}.fold-review-picture svg{max-height:180px}.fold-review-picture polygon{vector-effect:non-scaling-stroke}
.fold-page .fold-preview-panel .fold-field label{font-size:13px;line-height:1.65}.fold-page .fold-preview-panel .fold-field input,.fold-page .fold-preview-panel .fold-field select{font-size:16px;min-height:48px}.fold-page .fold-primary-measures{grid-column:1/-1;gap:15px;margin-top:2px}.fold-primary-measures>h4{grid-column:1/-1;font-size:17px;font-weight:600;color:#eef1e7;margin:0 0 2px}.fold-inline-help{margin:12px 0}.fold-inline-help>summary{min-height:38px;line-height:1.65;padding:7px 0;font-size:12px;cursor:pointer;color:#d2ddc4}.fold-inline-help p{margin-top:7px}.fold-page .fold-primary-measures .fold-value-kind{font-size:10px}
.fold-page.fold-large-text .fold-preview-panel .fold-field label{font-size:16px}.fold-page.fold-large-text .fold-preview-panel .fold-field input,.fold-page.fold-large-text .fold-preview-panel .fold-field select{font-size:18px}
.fold-page .fold-dimensions-panel .fold-wall-field{background:#29332a;border-color:#68745d;border-left-color:var(--wall-color)}.fold-page .fold-dimensions-panel .fold-wall-field label{color:#e1e8d9}.fold-page .fold-dimensions-panel .fold-wall-help{color:#c8d4bb}.fold-page .fold-dimensions-panel .fold-advanced{background:#293225;border-color:#617250}.fold-page .fold-dimensions-panel .fold-advanced>summary{color:#e7efdb}.fold-page .fold-dimensions-panel .fold-field-help,.fold-page .fold-dimensions-panel .fold-quick-hint,.fold-page .fold-dimensions-panel .fold-width-status,.fold-page .fold-dimensions-panel .fold-end-state{font-size:13px;line-height:1.75}
@media(max-width:760px){
  .fold-page .fold-viewer{position:relative;top:auto}
  .fold-page .fold-measure-chips{flex-wrap:nowrap;overflow-x:auto;max-height:none;scrollbar-width:thin}
  .fold-page .fold-measure-chips button{flex-shrink:0;white-space:nowrap}
  .fold-page .fold-preview-panel.is-editing .fold-viewer{position:sticky;top:var(--fold-view-top,0)}
  .fold-page .fold-preview-panel.is-editing .fold-measure-chips,.fold-page .fold-preview-panel.is-editing .fold-selection-help,.fold-page .fold-preview-panel.is-editing .fold-material-indicator,.fold-page .fold-preview-panel.is-editing .fold-segment-editor,.fold-page .fold-preview-panel.is-editing .fold-view-toolbar,.fold-page .fold-preview-panel.is-editing .fold-history-tools{display:none}
  .fold-page .fold-preview-panel.is-editing .fold-workspace-toolbar{padding:6px 12px}
  .fold-page .fold-preview-panel.is-editing .fold-view-switch button{min-height:38px;padding:8px 10px;font-size:12px}
  .designer-toolbar{flex-wrap:wrap;gap:10px}
  .designer-toolbar .fold-view-switch{display:flex;gap:7px;flex-basis:100%}
  .designer-page.is-editing .designer-toolbar .fold-view-switch{display:none}
}
