@font-face{font-family:LocalUI;src:local('Inter'),local('Segoe UI');font-display:swap}
:root{--bg:#f6f7f5;--paper:#fff;--ink:#25352d;--muted:#6c776f;--line:#e2e7e1;--green:#34664e;--green-dark:#244d39;--tint:#eaf1e9;--orange:#af7538;--red:#ac4137;--radius:14px;font-family:LocalUI,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 14px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;font-weight:550;transition:background .15s,border-color .15s}button:hover{background:#f1f5f0;border-color:#c6d2c8}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:var(--green-dark)}button.ghost{background:transparent;border-color:transparent}button.danger{color:var(--red)}button.icon-btn{padding:8px;min-width:36px}button.small{min-height:30px;padding:5px 10px;font-size:12px}.icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}input,select,textarea{min-height:40px;min-width:0;width:100%;border:1px solid #dce3db;border-radius:7px;padding:8px 10px;background:#fff;color:var(--ink)}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--green);cursor:pointer}input[type=number]{font-variant-numeric:tabular-nums}input:focus,select:focus,textarea:focus{outline:2px solid #9fbba6;outline-offset:1px;border-color:var(--green)}:focus-visible{outline:2px solid var(--green);outline-offset:3px}label.field{display:grid;gap:6px;font-size:12px;color:var(--muted)}label.field>input,label.field>select,label.field>textarea{font-size:14px;color:var(--ink)}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:650;letter-spacing:-.8px}h2{font-size:16px;font-weight:650;letter-spacing:-.3px}h3{font-size:14px;font-weight:650}.muted{color:var(--muted)}.small-text{font-size:12px}.mono{font-variant-numeric:tabular-nums}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:29px 18px 20px;background:#eef1eb;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:25px}.brand{display:flex;align-items:center;gap:10px;padding:0 8px}.brand-logo{background:var(--green);border-radius:9px;color:#fff;padding:8px;display:flex}.brand-logo .icon{width:25px;height:25px}.brand-name{font-size:21px;font-weight:750;letter-spacing:2px}.brand-sub{font-size:10px;color:var(--muted);letter-spacing:1.4px;text-transform:uppercase}.nav{display:grid;gap:5px}.nav button{justify-content:flex-start;background:transparent;border:0;min-height:42px;color:#637366}.nav button.active{background:#dfe8dc;color:#2d5b41}.side-title{display:flex;align-items:center;justify-content:space-between;margin:0 8px 9px;font-size:10px;color:#71806f;font-weight:650;letter-spacing:1.4px;text-transform:uppercase}.projects{display:grid;gap:5px;overflow:auto;max-height:40vh}.project-button{padding:9px 10px;justify-content:flex-start;background:transparent;border-color:transparent;font-size:12px;text-align:left}.project-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-button.active{background:#fff;border-color:#dce5d8;box-shadow:0 2px 3px #304d2710}.project-dot{height:7px;width:7px;border-radius:50%;background:#83a17d;flex-shrink:0}.side-bottom{margin-top:auto;display:grid;gap:10px;padding:0 5px}.local-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#697769}.local-label .status-dot{width:6px;height:6px;background:#61855d;border-radius:50%}.side-bottom p{font-size:10px;color:#6d786c;line-height:1.6}.workspace{min-width:0}.topbar{height:69px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 36px;background:#ffffffb8;border-bottom:1px solid var(--line)}.breadcrumb{font-size:12px;color:#718072;display:flex;align-items:center;gap:12px}.breadcrumb .current{color:#384b3e}.top-actions{display:flex;align-items:center;gap:12px}.save-state{font-size:11px;display:flex;align-items:center;gap:6px;color:#5e755d}.save-state.error{color:var(--red)}.save-state .icon{width:14px;height:14px}.content{max-width:1600px;margin:0 auto;padding:31px 36px 25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.title-input{font-size:27px;font-weight:650;letter-spacing:-.7px;border:0;min-height:0;padding:0;background:transparent;width:min(650px,100%);border-radius:2px}.page-heading p{font-size:12px;color:var(--muted);margin-top:5px}.heading-tools{display:flex;gap:8px;flex-shrink:0}.badge{display:inline-flex;align-items:center;border-radius:5px;background:var(--tint);color:#51724d;font-size:10px;font-weight:600;padding:3px 7px;white-space:nowrap}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:23px}.tab{border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;color:var(--muted);font-size:13px;padding:10px 0 13px;gap:8px}.tab.active{border-bottom-color:var(--green);color:var(--green)}.tab:hover{background:transparent}.tab-count{font-size:10px;padding:1px 6px;background:#e8ece6;border-radius:4px}.settings-strip{display:flex;align-items:center;flex-wrap:wrap;gap:23px;padding:17px 21px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:22px}.setting-piece{display:flex;align-items:center;gap:10px;font-size:12px}.setting-piece label{color:var(--muted);white-space:nowrap}.unit-input{display:flex;align-items:center;position:relative}.unit-input input{width:78px;padding-right:28px;min-height:36px;font-weight:600}.unit-input .unit{position:absolute;right:9px;color:var(--muted);font-size:11px;pointer-events:none}.setting-arrow{color:#9aab9c}.strip-divider{width:1px;height:28px;background:var(--line)}.switch-label{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px}.switch-label input{appearance:none;width:32px;min-height:19px;height:19px;border:0;border-radius:20px;background:#c8d0c7;padding:0;position:relative;transition:background .15s}.switch-label input:before{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:white;transition:transform .15s}.switch-label input:checked{background:var(--green)}.switch-label input:checked:before{transform:translateX(13px)}.strip-note{font-size:11px;color:#71806c;margin-left:auto;display:flex;align-items:center;gap:6px}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:22px;align-items:start}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}.panel-head{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head p{font-size:11px;color:var(--muted);margin-top:3px}.quick-form{padding:0 21px 20px;display:grid;gap:12px}.quick-fields{display:grid;grid-template-columns:minmax(130px,1fr) 100px 100px 65px;gap:10px}.quick-options{display:flex;align-items:center;justify-content:space-between;gap:12px}.mini-part{display:inline-block;width:21px;height:17px;border:1px solid #adb7ad;position:relative;background:#f5f7f2}.mini-part i{position:absolute;background:var(--green)}.mini-part i.top{height:2px;top:2px;left:3px;right:3px}.mini-part i.bottom{height:2px;bottom:2px;left:3px;right:3px}.mini-part i.left{width:2px;left:2px;top:3px;bottom:3px}.mini-part i.right{width:2px;right:2px;top:3px;bottom:3px}.form-secondary{display:grid;grid-template-columns:minmax(120px,1fr) 78px 150px;gap:10px}.detail-list{margin-top:20px}.table-scroll{overflow-x:auto}.parts-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}.parts-table th{background:#fafbf8;color:#788174;font-weight:500;font-size:10px;padding:10px 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.parts-table th:first-child,.parts-table td:first-child{padding-left:20px}.parts-table td{padding:14px 10px;border-bottom:1px solid #edf0e9}.parts-table tr:last-child td{border-bottom:0}.parts-table tbody tr{cursor:pointer}.parts-table tbody tr:hover{background:#fafcf8}.parts-table tbody tr.selected{background:#f1f6ee}.parts-table .part-name{font-weight:550;max-width:180px;overflow:hidden;text-overflow:ellipsis}.part-material{font-weight:400;color:#7b8478;font-size:10px;display:block;margin-top:2px}.cut-value{color:var(--green);font-weight:650}.parts-table .row-num{font-size:10px;color:#7e8b7c}.row-action{display:flex;gap:1px}.row-action button{border:0;background:transparent;min-width:28px;min-height:30px;padding:5px}.row-action .icon{width:14px;height:14px}.table-foot{padding:11px 20px;display:flex;justify-content:space-between;align-items:center;background:#fafbf8;border-top:1px solid var(--line);font-size:11px;color:var(--muted);gap:8px}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:19px}.stat{padding:15px 17px;border:1px solid var(--line);border-radius:10px;background:#fff}.stat-label{font-size:10px;color:var(--muted);margin-bottom:6px}.stat-value{font-size:21px;letter-spacing:-.5px;font-weight:600}.stat-value small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}.preview-card .panel-head{padding-bottom:13px}.preview-tag{font-size:10px;color:#7a8777}.part-preview{padding:0 17px 13px}.diagram{width:100%;height:210px;display:block}.diagram text{font-family:LocalUI,'Segoe UI',Arial,sans-serif;fill:#52624e;font-size:11px}.diagram .edge-hit{fill:transparent;stroke:transparent;stroke-width:20;cursor:pointer}.diagram .band-line{stroke:var(--green);stroke-width:2.5;stroke-linecap:round}.diagram .no-band{stroke:#b8c3b4;stroke-width:1;stroke-dasharray:3 3}.diagram-label{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#697d62;margin-top:-3px}.diagram-label i{width:17px;height:2px;background:var(--green)}.preview-info{padding:16px 20px;border-top:1px solid var(--line);background:#fcfdfa}.preview-info .name{font-size:12px;font-weight:600}.calc-line{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-top:10px;color:var(--muted)}.calc-line strong{font-weight:550;color:#40553b;white-space:nowrap}.result-box{display:flex;justify-content:space-between;align-items:center;margin:14px 0 3px;padding:12px;border-radius:8px;background:#eaf2e5}.result-box span{font-size:10px;color:#58744d}.result-box strong{font-size:17px;color:var(--green);font-weight:650;letter-spacing:-.4px}.result-box small{font-size:10px;font-weight:400}.preview-tip{font-size:10px;color:#788771;line-height:1.65;margin-top:10px}.info-card{padding:17px 19px;margin-top:16px;border:1px solid #e1e7dc;border-radius:12px;background:#eff3ea}.info-card .icon{color:#65855a;width:16px;height:16px}.info-heading{display:flex;gap:7px;align-items:center;font-size:12px;font-weight:550;margin-bottom:7px}.info-card p{font-size:11px;line-height:1.7;color:#6b7963}.info-card button{margin-top:9px;padding-left:0;color:#456a3c;font-size:11px}.bottom-note{margin-top:22px;display:flex;align-items:center;gap:7px;font-size:10px;color:#899182}.bottom-note .icon{width:13px;height:13px}.empty{padding:40px 25px;text-align:center;color:var(--muted)}.empty .icon{height:32px;width:32px;margin-bottom:10px;color:#85a07b}.empty p{margin:8px 0 15px;font-size:12px}.alert{font-size:12px;line-height:1.6;background:#fff3ee;color:#9c4435;border:1px solid #efd9d0;padding:12px 15px;border-radius:9px;margin-bottom:16px}.alert p+p{margin-top:5px}.alert.good{background:#edf5e8;color:#486d3f;border-color:#dce9d3}.map-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 21px 20px}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;margin-top:20px}.sheet-choices{display:flex;gap:7px;flex-wrap:wrap;padding:0 20px 15px}.sheet-choice.active{color:var(--green);border-color:#9ab197;background:var(--tint)}.sheet-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:12px 20px;background:#f8faf5;border-top:1px solid var(--line)}.sheet-canvas{padding:18px 25px 10px;background:radial-gradient(#cbd4c5 0.6px,transparent 0.6px);background-size:12px 12px}.sheet-svg{display:block;width:100%;max-height:550px}.sheet-svg text{font-family:LocalUI,'Segoe UI',Arial,sans-serif}.map-legend{display:flex;flex-wrap:wrap;gap:15px;padding:10px 20px 18px;font-size:10px;color:var(--muted)}.legend-line{display:inline-block;width:17px;height:2px;background:var(--green);vertical-align:middle;margin-right:5px}.legend-hatch{display:inline-block;width:13px;height:10px;background:repeating-linear-gradient(135deg,#e8ebdf 0 3px,#cbd4c3 3px 4px);vertical-align:middle;margin-right:5px}.sheet-spec{border-top:1px solid var(--line);padding:15px 20px}.sheet-spec h3{margin-bottom:12px}.compact-table{border-collapse:collapse;width:100%;text-align:left;font-size:10px;white-space:nowrap}.compact-table th{font-weight:500;color:var(--muted);padding:7px 8px;border-bottom:1px solid var(--line);background:#f6f8f1}.compact-table td{padding:8px;border-bottom:1px solid #edf0e9}.cut-list{max-height:340px;overflow:auto;margin-top:12px;counter-reset:cut}.cut-step{font-size:11px;display:flex;align-items:start;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.step-number{border:1px solid #d5dfcd;border-radius:4px;background:#f2f6ed;min-width:21px;text-align:center;font-size:10px;padding:1px 3px}.cut-step small{display:block;color:var(--muted);font-size:10px}.map-side .panel{padding:19px}.map-side .stat{border:0;padding:12px 0;background:transparent;border-bottom:1px solid var(--line);border-radius:0}.map-side .stat-value{font-size:25px}.grain-label{font-size:10px;display:flex;align-items:center;gap:6px;color:#7a8674}.map-side p{font-size:11px;color:var(--muted);line-height:1.7}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.library-card{padding:22px}.library-card h3{font-size:16px;margin-bottom:7px;overflow-wrap:anywhere}.library-card p{font-size:12px;color:var(--muted)}.library-card-actions{display:flex;gap:7px;margin-top:18px}.library-number{font-size:30px;color:#829a79;font-weight:300;margin-bottom:12px}.library-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:23px}.help-content{max-width:800px}.help-content .panel{padding:25px;margin-bottom:18px}.help-content h2{margin-bottom:10px}.help-content p{font-size:13px;line-height:1.8;color:#657360;margin-bottom:10px}.help-content p:last-child{margin-bottom:0}.help-formula{padding:13px 16px;background:var(--tint);border-radius:7px;margin:13px 0;font-size:14px;color:var(--green);font-variant-numeric:tabular-nums}.footer-version{font-size:10px;color:#8b9684;margin-top:8px}.form-error{color:var(--red);font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#293e2d;color:#fff;padding:12px 20px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;z-index:10;max-width:calc(100vw - 30px);transition:opacity .2s,transform .2s;box-shadow:0 4px 20px #18331a20}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}dialog{width:min(640px,calc(100vw - 28px));max-height:90vh;border:1px solid var(--line);border-radius:16px;padding:0;box-shadow:0 20px 80px #142d2533;color:var(--ink)}dialog::backdrop{background:#1a2d2460;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 24px;border-bottom:1px solid var(--line)}.dialog-body{padding:22px 24px}.dialog-body p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:14px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--line);background:#fafcf7}.dialog-body textarea{resize:vertical;min-height:190px;font-family:Consolas,monospace;font-size:12px}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dialog-grid .wide{grid-column:1/-1}.side-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 15px}.dialog-subheading{font-size:12px;font-weight:600;margin:20px 0 8px}.modal-edge-tip{font-size:10px;color:var(--muted);margin-top:-7px;margin-bottom:15px}.print-page{padding:12px;font-family:Arial,sans-serif}.print-page h1{font-size:21px}.print-page h2{font-size:16px;margin:14px 0 7px}.print-page p{font-size:11px;margin:5px 0}.print-page .sheet-svg{max-height:150mm}.print-page .compact-table{font-size:9px}.print-page .compact-table td,.print-page .compact-table th{white-space:normal;padding:5px}.print-page .sheet-canvas{background:none;padding:5px}.print-page .legend-line{print-color-adjust:exact}.print-page .print-notes{font-size:9px;margin:8px 0;line-height:1.5}#print-root{display:none}
.button-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;text-decoration:none;font-weight:550}.button-link:hover{background:var(--tint)}.button-link.primary{background:var(--green);border-color:var(--green);color:#fff}.button-link.primary:hover{background:var(--green-dark)}input[aria-invalid=true]{border-color:var(--red);background:#fff6f2}.report-dialog{width:min(1120px,calc(100vw - 28px))}.report-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:92vh}.report-preview{overflow:auto;padding:18px;background:#e9ede5}.report-preview .print-page{background:#fff;margin-bottom:20px;padding:24px;border:1px solid var(--line)}.report-preview .print-page:last-child{margin-bottom:0}.report-preview .compact-table{white-space:normal}.report-dialog .dialog-actions{flex-wrap:wrap}.report-preview .sheet-svg{max-height:420px}
.side-picker{min-width:0;margin:1px 0 0;padding:0;border:0;position:relative}.side-picker legend{font-size:12px;font-weight:550;padding:0;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.side-picker-shortcuts{display:flex;gap:4px;flex-shrink:0}.side-picker-shortcuts button{font-size:11px}.side-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:44px 54px 44px;gap:5px;max-width:340px;margin:12px auto 6px;align-items:center}.side-choice{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fafbf8;cursor:pointer}.side-choice.active{border-color:#9ab596;background:var(--tint);color:var(--green)}.side-choice:hover{border-color:#86a582}.side-choice input{margin:0;flex-shrink:0} .side-choice.edge-top{grid-area:1/2} .side-choice.edge-right{grid-area:2/3} .side-choice.edge-bottom{grid-area:3/2} .side-choice.edge-left{grid-area:2/1}.side-picker-preview{grid-area:2/2;display:flex;align-items:center;justify-content:center}.side-picker-preview .mini-part{width:74px;height:50px;border-color:#a6b7a0;background:#f0f4e9}.side-picker-preview .mini-part i.top{top:4px;left:7px;right:7px}.side-picker-preview .mini-part i.right{right:4px;top:7px;bottom:7px}.side-picker-preview .mini-part i.bottom{bottom:4px;left:7px;right:7px}.side-picker-preview .mini-part i.left{left:4px;top:7px;bottom:7px}.side-picker-caption{font-size:10px;color:var(--muted);text-align:center}.side-selection{font-size:11px;color:var(--green);text-align:center;margin-top:4px}.quick-cut-result{display:grid;gap:2px;font-size:11px;color:var(--muted)}.quick-cut-result strong{font-size:14px;color:var(--green);font-variant-numeric:tabular-nums;font-weight:600}
@media(min-width:1650px){.work-grid{grid-template-columns:minmax(0,1fr) 335px}.content{padding-top:40px}.quick-fields{grid-template-columns:minmax(150px,1fr) 125px 125px 75px}.parts-table td{padding-top:17px;padding-bottom:17px}}
@media(max-width:1250px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.content{padding:26px 24px}.topbar{padding:0 24px}.work-grid{grid-template-columns:minmax(0,1fr) 266px;gap:16px}.quick-fields{grid-template-columns:minmax(110px,1fr) 80px 80px 58px}.quick-form{padding-left:16px;padding-right:16px}.panel-head{padding-left:16px;padding-right:16px}.strip-note{display:none}.settings-strip{gap:16px}.parts-table{font-size:11px}.parts-table th,.parts-table td{padding-left:7px;padding-right:7px}.map-layout{grid-template-columns:minmax(0,1fr) 245px;gap:16px}.top-actions .save-state{font-size:10px}}
@media(max-width:1040px){.work-grid{grid-template-columns:minmax(0,1fr)}.preview-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.info-card{margin-top:0;align-self:start}.preview-card .part-preview{max-width:300px;margin:auto}.preview-card .panel-head{padding-bottom:0}.preview-info{padding:12px 18px}.preview-card{display:grid;grid-template-columns:1fr 1fr}.preview-card .panel-head{grid-column:1/-1}.preview-card .part-preview{grid-column:1;min-width:150px}.preview-card .diagram{height:170px}.preview-info{border-top:0;border-left:1px solid var(--line);grid-column:2}.preview-column{grid-template-columns:1fr}.preview-column .info-card{display:none}.map-layout{grid-template-columns:1fr}.map-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.map-side .info-card{margin-top:0}.settings-strip{justify-content:space-between}.quick-fields{grid-template-columns:minmax(130px,1fr) 100px 100px 70px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:15px 18px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0}.brand-name{font-size:18px}.brand-sub{font-size:8px}.brand-logo{padding:6px}.brand-logo .icon{width:22px;height:22px}.nav{display:flex;gap:0}.nav button{padding:8px 10px;min-height:40px;font-size:11px}.nav button .icon{height:16px;width:16px}.sidebar .side-projects,.side-bottom{display:none}.topbar{height:48px;padding:0 18px}.breadcrumb{font-size:10px;gap:7px}.top-actions{gap:5px}.top-actions>button{font-size:10px;min-height:30px;padding:5px 9px}.top-actions .save-state span{display:none}.content{padding:23px 18px}.page-heading{align-items:flex-start;margin-bottom:18px}.title-input,h1{font-size:23px}.page-heading p{font-size:11px}.heading-tools .desktop-only{display:none}.heading-tools button{min-height:34px;padding:7px 10px;font-size:11px}.settings-strip{gap:12px;padding:14px;margin-bottom:17px}.setting-piece{gap:7px;font-size:11px}.unit-input input{width:68px}.strip-divider{display:none}.setting-arrow{display:none}.switch-label{font-size:11px}.tabs{gap:20px;margin-bottom:17px}.tab{font-size:12px}.quick-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 60px}.quick-fields>.field:first-child{grid-column:1/-1}.form-secondary{grid-template-columns:minmax(100px,1fr) 62px 125px}.quick-options{flex-wrap:wrap}.quick-options>button{margin-left:auto}.summary-row{gap:8px}.stat{padding:12px}.stat-value{font-size:19px}.stat-label{font-size:9px}.panel-head{padding:16px}.panel-head p{font-size:10px}.table-foot{font-size:10px;padding:10px 14px}.map-settings{grid-template-columns:1fr 1fr;padding:0 16px 17px}.map-side{grid-template-columns:1fr}.map-side .info-card{display:none}.sheet-title{padding:10px 15px;flex-wrap:wrap;gap:5px}.sheet-canvas{padding:10px 12px 5px}.sheet-spec{padding:12px}.preview-card{grid-template-columns:minmax(140px,1fr) minmax(0,1fr)}.result-box{display:block;padding:9px}.result-box span{display:block;margin-bottom:5px}.result-box strong{font-size:16px}.calc-line{font-size:10px;flex-wrap:wrap;gap:1px}.preview-info{padding:12px}.dialog-body{padding:18px}.dialog-head{padding:16px 18px}.dialog-actions{padding:14px 18px}.side-inputs{grid-template-columns:1fr 1fr}.dialog-grid{gap:12px}button{min-height:40px}.row-action button{min-height:36px}.bottom-note{align-items:flex-start}.library-grid{grid-template-columns:1fr}.library-toolbar button{font-size:12px}.library-toolbar{gap:7px}}
@media(max-width:390px){.nav button{font-size:0;padding:8px}.nav button .icon{width:19px;height:19px}.brand-sub{display:none}.preview-card{display:block}.preview-info{border-left:0;border-top:1px solid var(--line)}.calc-line{flex-wrap:nowrap}.result-box{display:flex}.result-box span{margin:0}.form-secondary{grid-template-columns:1fr 65px}.form-secondary>.field:last-child{grid-column:1/-1}.summary-row{grid-template-columns:1fr 1fr}.summary-row .stat:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.summary-row .stat:last-child .stat-label{margin:0}.setting-piece{gap:6px}.settings-strip{column-gap:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){input,select,textarea,label.field>input,label.field>select,label.field>textarea{font-size:16px}.dialog-actions{flex-wrap:wrap}.dialog-actions .button-link.primary{flex-grow:1}.button-link{min-height:44px}.row-action button{min-width:38px;min-height:44px}.heading-tools button{min-height:40px}.unit-input input{font-size:16px}}
.account-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 16px;background:#edf3e9;border:1px solid var(--line);border-radius:10px;margin-bottom:24px}.account-bar strong{font-size:12px}.account-bar p{font-size:11px;margin:4px 0 0;line-height:1.5}.account-actions{display:flex;gap:8px;flex-wrap:wrap}.account-actions .button-link{white-space:nowrap}.account-loading{opacity:.55}.cloud-alert{margin-bottom:16px}.cloud-alert button{margin:6px 6px 0 0}.calculation-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.side-bottom>a{display:flex;align-items:center;gap:8px;font-size:11px;margin:16px 0}.dialog-body>.field{margin-bottom:16px}.save-state{max-width:270px}.top-actions .save-state span{white-space:normal}.settings-strip{flex-wrap:wrap}
@media(max-width:760px){.account-bar{align-items:flex-start;flex-direction:column;gap:9px;padding:12px;margin-bottom:18px}.account-bar p{font-size:11px}.account-actions{width:100%}.account-actions button,.account-actions .button-link{min-height:40px;font-size:11px}.calculation-toolbar{align-items:flex-start;flex-wrap:wrap}.calculation-toolbar>.small{margin-left:auto}.top-actions .save-state{max-width:190px}.top-actions .save-state span{display:inline;font-size:9px}.topbar .breadcrumb{display:none}.topbar .top-actions{width:100%;justify-content:space-between}.page-heading{flex-wrap:wrap;gap:10px}.heading-tools{margin-left:auto}.cloud-alert button{font-size:11px}}
.new-calculation-short{display:none}
@media(max-width:760px){.content{padding-top:16px}.account-bar p,.page-heading p{display:none}.account-bar{gap:6px;padding:10px 12px;margin-bottom:16px}.account-actions button,.account-actions .button-link{min-height:36px}.page-heading{margin-bottom:12px}.new-calculation-label{display:none}.new-calculation-short{display:inline}.calculation-toolbar{flex-wrap:nowrap;gap:6px}.calculation-toolbar>.small{font-size:11px;padding:8px;min-height:40px;gap:4px}.calculation-toolbar>.small .icon{width:15px;height:15px}}
@media print{@page{size:A4 landscape;margin:10mm}body{background:#fff;color:#111}#app,dialog,#toast{display:none!important}#print-root{display:block}.print-page{break-after:page;page-break-after:always}.print-page:last-child{break-after:auto;page-break-after:auto}.print-page table{break-inside:auto}.print-page tr{break-inside:avoid}.print-page thead{display:table-header-group}.print-page svg{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.finished-size-note{font-size:12px;line-height:1.5;color:var(--muted);margin:0;flex:1}.map-legend .legend-kerf{display:inline-block;width:22px;height:5px;background:#a34c20;border-radius:1px}.calculation-toolbar{align-items:center;margin-bottom:14px}@media(max-width:760px){.finished-size-note{font-size:12px}.calculation-toolbar{gap:12px;margin-bottom:12px}}
