:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4}*{box-sizing:border-box}body{background:#f3f4f6;margin:0}#root{min-height:100vh}.app{color:#1f2937;max-width:1120px;margin:0 auto;padding:24px;font-family:Inter,system-ui,sans-serif}.app-loading .tabs,.app-loading .content{pointer-events:none;opacity:.55}.project-switcher{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px 16px;margin-top:16px;padding:12px;display:grid}.project-switcher .actions,.project-switcher .hint,.project-switcher .warning-text{margin:0}.project-sync-error{grid-column:1/-1}.project-status-bar{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px;padding:10px 12px;display:flex}.construction-switcher{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 16px;margin:0 0 16px;padding:12px;display:flex}.construction-switcher .actions{flex-wrap:wrap;gap:8px;display:flex}.config-wizard{gap:14px;max-width:720px;display:grid}.config-wizard .actions{flex-wrap:wrap;gap:8px;display:flex}.project-status-current{flex-wrap:wrap;flex:1;align-items:baseline;gap:6px 10px;min-width:0;display:flex}.project-status-current strong{text-transform:uppercase;letter-spacing:.04em;color:#6b7280;font-size:12px}.project-library{background:0 0;border:none;border-radius:0;gap:12px;width:100%;min-width:0;margin-top:0;padding:0;display:grid}.project-library-tab{margin-top:4px}.project-library-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:12px 16px;display:flex}.project-library-current{gap:2px;min-width:220px;display:grid}.project-library-current strong{text-transform:uppercase;letter-spacing:.04em;color:#6b7280;font-size:12px}.project-library-panel{gap:10px;width:100%;min-width:0;display:grid}.project-library-search{max-width:420px}.project-library-table-wrap{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;min-width:0;max-width:100%;overflow-x:auto}.project-library-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:14px}.project-library-table .col-title{width:36%}.project-library-table .col-count{width:12%}.project-library-table .col-author,.project-library-table .col-updated{width:14%}.project-library-table .col-actions{width:24%}.project-library-expand{text-align:left;cursor:pointer;width:100%;color:inherit;font:inherit;background:0 0;border:0;align-items:flex-start;gap:10px;padding:0;display:flex}.project-library-caret{color:#6b7280;width:1em;margin-top:2px;display:inline-block}.project-library-table tr.is-expanded{background:#f3f4f6}.project-library-details-row>td{background:#f8fafc;width:100%;padding:12px 14px 16px}.project-library-constructions{background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;min-width:0;font-size:13px;display:grid;overflow:hidden}.project-library-constructions-head,.project-library-constructions-row{border-bottom:1px solid #e5e7eb;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,.8fr) 110px;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:grid}.project-library-constructions-head{background:#f3f4f6;font-weight:600}.project-library-constructions-row:last-child{border-bottom:none}.project-library-constructions-action{justify-content:flex-start;align-items:center;display:flex}.project-library-constructions .add-button,.project-library-constructions .project-library-opened{box-sizing:border-box;justify-content:center;align-items:center;min-width:88px;min-height:32px;padding:6px 10px;font-size:13px;line-height:1.2;display:inline-flex}.project-library-constructions .project-library-opened{color:#6b7280}.project-library-table th,.project-library-table td{text-align:left;vertical-align:top;word-break:break-word;border-bottom:1px solid #e5e7eb;padding:10px 12px}.project-library-table th{color:#374151;background:#f3f4f6;font-weight:600}.project-library-table tr.is-active{background:#eff6ff}.project-library-table tr:last-child td{border-bottom:none}.project-library-title{color:#111827;font-weight:600}.project-library-row-actions{flex-wrap:wrap;gap:8px;display:flex}.project-library-row-actions .add-button,.project-library-row-actions .danger-button{padding:6px 10px;font-size:13px}.project-library-empty{color:#6b7280;text-align:center!important}h1{margin-bottom:8px}h3{margin-bottom:10px}.subsection-title{color:#1f2937;margin:16px 0 10px;font-size:1rem;font-weight:600}.tabs{grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:8px;margin:18px 0;display:grid}.tabs button,.add-button{color:#111827;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:8px;padding:10px 14px}.danger-button{color:#b91c1c;cursor:pointer;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:8px 12px}.upload-button{color:#111827;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:8px;align-items:center;padding:10px 14px;display:inline-flex}.upload-button input{display:none}.tabs button.active{color:#fff;background:#111827}.content{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:16px}.grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:16px;display:grid}.config-params>.grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px}.config-params>.grid>label{grid-template-rows:minmax(2.75em,auto) auto;align-content:start;min-width:0;display:grid}.config-params>.grid>label.span-2{grid-column:span 2}.config-params>.grid>label>input,.config-params>.grid>label>select{box-sizing:border-box;width:100%;min-width:0}.config-params>.grid>label .hint{color:#6b7280;grid-column:1/-1;margin:0;font-size:.85rem;font-weight:400}label{flex-direction:column;gap:6px;font-size:14px;display:flex}input,select{border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:14px}input:disabled,select:disabled,textarea:disabled{color:#475569;-webkit-text-fill-color:#475569;cursor:not-allowed;opacity:1;background:#cbd5e1;border-color:#94a3b8}.segment-row{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:16px;display:grid}.scheme{background:#f8fafc;border:1px dashed #d1d5db;border-radius:8px;width:100%}.frame{fill:#fff;stroke:#111827;stroke-width:4px}.scheme .scheme-frame-outline{fill:none}.scheme .scheme-corner-plan-caption{fill:#475569;font-size:12px;font-weight:700}.scheme .scheme-corner-plan-wall{fill:#e2e8f0;stroke:#334155;stroke-width:1.5px}.scheme .scheme-corner-plan-seg{stroke:#64748b;stroke-width:1px}.scheme .scheme-corner-plan-axis{stroke:#0f172a;stroke-width:1.5px;stroke-dasharray:5 4}.scheme .scheme-corner-plan-arc{fill:none;stroke:#b45309;stroke-width:2.4px}.scheme .scheme-corner-plan-dim{fill:#334155;font-size:11px;font-weight:600}.scheme .scheme-facade-axis-line{stroke:#0f172a;stroke-width:1.4px;stroke-dasharray:6 4}.scheme .scheme-facade-axis-label{fill:#334155;font-size:10px;font-weight:700}.scheme .scheme-corner-angle-text{fill:#334155;font-size:12px;font-weight:700}.panel-fix{fill:#bae6fd;stroke:#7dd3fc;stroke-width:1px}.panel-sl{fill:#fef3c7;stroke:#fcd34d;stroke-width:1px}.scheme .scheme-panel{stroke-width:2px}.panorama-scheme-gap{fill:#e2e8f0;stroke:#94a3b8;stroke-width:1px}.scheme .panorama-pocket-niche{fill:#cbd5e1;fill-opacity:.55;stroke:#64748b;stroke-width:1px;stroke-dasharray:5 4}.scheme .panorama-pocket-label{fill:#475569;pointer-events:none;font-size:13px;font-weight:600}.joint-fix-fix{stroke:#2563eb;stroke-width:5px;stroke-linecap:round}.joint-fix-sl{stroke:#ea580c;stroke-width:5px;stroke-linecap:round}.joint-sl-sl{stroke:#7c3aed;stroke-width:5px;stroke-linecap:round}.segment-text{fill:#0f172a;font-size:20px;font-weight:700}.segment-index-text{fill:#334155;pointer-events:none;font-size:11px;font-weight:600}.leaf-size-text{fill:#334155;font-size:12px;font-weight:600}.opening-arrow-line{stroke:#0f766e;stroke-width:2px}.opening-arrow-head{fill:#0f766e}.dim-line{stroke:#475569;stroke-width:1.5px}.dim-helper{stroke:#94a3b8;stroke-width:1px;stroke-dasharray:3 3}.dim-arrow{fill:#475569}.dim-text{fill:#334155;font-size:11px;font-weight:600}.calc ul{margin:10px 0 0;padding-left:20px}.spec{margin-top:16px}.frame65-contour{border-top:1px solid #e5e7eb;margin-top:20px;padding-top:8px}.frame65-below-scheme h3+h3{margin-top:1.25rem}.frame65-spec-subheading{color:#334155;margin:1rem 0 .35rem;font-size:.95rem;font-weight:600}.frame65-spec-subhint{margin-top:0;margin-bottom:.35rem}.frame65-raspil-table{margin-bottom:.5rem}.frame65-composition-list{margin:8px 0 0;padding-left:1.25rem}.frame65-composition-article{font-weight:600}.frame65-spec-table{font-size:.9rem}.frame65-spec-export{margin-top:8px;margin-bottom:4px}.frame65-spec-origins{color:#475569;max-width:28rem;font-size:.82rem}.frame65-settings-jump{flex-direction:column;justify-content:flex-end;gap:6px;display:flex}.frame65-settings-jump-label{color:#374151;font-size:.875rem;font-weight:600}.panorama-fix-settings{border-top:1px solid #e5e7eb;margin-top:20px;padding-top:16px}.panorama-fix-settings h4{margin:0 0 8px;font-size:1rem}.panorama-fix-settings .hint,.frame65-settings-bindings .hint{margin:0 0 14px;line-height:1.45}.panorama-fix-settings .subsection-title{margin:20px 0 12px}.panorama-fix-settings .subsection-title+.subsection-title{margin-top:4px}.panorama-fix-settings .grid,.frame65-settings-bindings .grid{align-items:start;gap:18px 16px;margin-bottom:4px}.panorama-fix-settings .grid>label,.frame65-settings-bindings .grid>label{grid-template-rows:minmax(2.75em,auto) auto;align-items:start;line-height:1.35;display:grid}.settings-rules{flex-direction:column;gap:.35rem;max-width:44rem;display:flex}.settings-rules h4{margin:1.1rem 0 .35rem;font-size:1rem}.settings-rules-list{flex-direction:column;gap:.35rem;margin:0;padding-left:1.2rem;line-height:1.45;display:flex}.panorama-fix-gap-jump{margin-bottom:12px}.panorama-segment-spec-table{margin-top:12px;margin-bottom:8px}.frame65-track-readonly{flex-direction:column;justify-content:flex-end;gap:4px;display:flex}.frame65-track-readonly-value{color:#0f172a;font-size:1.05rem;font-weight:700}.frame65-track-select{flex-direction:column;gap:4px;display:flex}.frame65-track-select select{padding:6px 8px;font-size:1rem;font-weight:600}.frame65-track-select .hint{margin:0;font-size:.85rem;font-weight:400}.panorama-segment-spec-table .col-seg-idx{text-align:center;width:44px}.panorama-segment-thickness-select{width:100%;min-width:7.5rem}.segment-sl-label{fill:#0f766e;pointer-events:none;font-size:11px;font-weight:700}.scheme-sl-opening-line{stroke:#0f766e;stroke-width:2.5px;stroke-linecap:round}.scheme-sl-opening-head{fill:#0f766e}.scheme-sl-warning{fill:#dc2626;letter-spacing:.04em;pointer-events:none;font-size:13px;font-weight:800}.scheme .segment-dim-ext{stroke:#475569;stroke-width:1.5px;stroke-dasharray:4 3}.scheme .segment-dim-span{stroke:#1e293b;stroke-width:1.75px}.scheme .segment-dim-text{fill:#0f172a;letter-spacing:.02em;font-size:11px;font-weight:700}.scheme-horizontal-splice-line{stroke:#c2410c;stroke-width:2px;stroke-dasharray:7 5;stroke-linecap:round}.scheme-splice-dim-span{stroke:#c2410c}.scheme-splice-dim-text{fill:#9a3412;font-size:10px}.panorama-segment-width-input{min-width:4rem;max-width:6.5rem}.segment-fix-label{fill:#334155;pointer-events:none;font-size:10px;font-weight:600}.frame65-settings-bindings{border-top:1px solid #e5e7eb;margin-top:28px;padding-top:16px}.frame65-settings-bindings h4{margin:0 0 8px;font-size:1rem}.frame65-bindings-table{margin-top:12px}.frame65-binding-select{width:100%;min-width:200px;max-width:100%}.actions{flex-wrap:wrap;gap:8px;margin-bottom:10px;display:flex}table{border-collapse:collapse;width:100%;margin-top:16px;display:block;overflow-x:auto}.table-scroll{width:100%;overflow-x:auto}.scheme .scheme-error-fill{fill:#fff7ed;fill-opacity:.9;stroke:#dc2626;stroke-width:2px}.scheme .scheme-error-text{fill:#b91c1c;font-size:18px;font-weight:700}.scheme-legend{color:#334155;flex-wrap:wrap;gap:8px 18px;padding:0;font-size:.86rem;list-style:none;display:flex}.scheme-legend li{align-items:center;gap:6px;display:inline-flex}.legend-mark{border:2px solid #475569;flex-shrink:0;width:24px;height:12px}.legend-fix{background:#bae6fd;border-color:#7dd3fc}.legend-sl{background:#fef3c7;border-color:#fcd34d}.legend-sl-arrow{background:0 0;border:0;border-top:2px solid #b45309;border-radius:0;width:22px;height:0;position:relative}.legend-sl-arrow:after{content:"";border:5px solid #0000;border-left:7px solid #b45309;border-right:0;position:absolute;top:-5px;right:-1px}.legend-gap{background:#e2e8f0;border-color:#94a3b8}.legend-joint-fix-fix{background:#2563eb;border:0;border-radius:2px;width:3px;height:16px}.legend-joint-fix-sl{background:#ea580c;border:0;border-radius:2px;width:3px;height:16px}.legend-joint-sl-sl{background:#7c3aed;border:0;border-radius:2px;width:3px;height:16px}.legend-pocket{background:#cbd5e18c;border-style:dashed;border-color:#64748b}.legend-horizontal-splice{background:0 0;border:0;border-top:2px dashed #c2410c;border-radius:0;width:14px;height:0}.legend-facade-axis{background:0 0;border:0;border-top:2px dashed #0f172a;border-radius:0;width:18px;height:0}.corner-perspective-scheme{min-height:420px}.corner-perspective-wing{fill:#f8fafc;stroke:#334155;stroke-width:2px}.corner-perspective-panel{stroke:#475569;stroke-width:1.5px}.corner-perspective-panel.is-fix{fill:#dbeafe;fill-opacity:.5}.corner-perspective-panel.is-sl{fill:#dcfce7;fill-opacity:.78;stroke-dasharray:7 3}.corner-perspective-title{fill:#0f172a;font-size:34px;font-weight:700}.corner-perspective-segment-label{fill:#334155;font-size:14px;font-weight:600}.corner-perspective-turn{fill:none;stroke:#0f766e;stroke-width:2.5px;stroke-linecap:round}.corner-perspective-axis{stroke:#e11d48;stroke-width:2px;stroke-dasharray:9 6}.corner-perspective-dimension,.corner-perspective-mode{fill:#475569;font-size:15px;font-weight:600}th,td{text-align:left;border:1px solid #e5e7eb;padding:8px}td input{width:100%}@media (width<=720px){.app{padding:12px}.project-switcher{grid-template-columns:1fr}.tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.row-actions{flex-wrap:wrap}}.col-article{width:10%;min-width:90px}.col-name{width:30%;min-width:260px}.col-length,.col-section{width:10%;min-width:110px}.col-actions{width:16%;min-width:190px}.row-actions{flex-wrap:nowrap;gap:8px;display:flex}.section-actions-column{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.section-actions-inline{align-items:center;gap:6px;display:flex}.hidden-file-input{display:none}.section-thumb-row{margin-bottom:10px}.section-thumb{object-fit:contain;background:#fff;border:1px solid #d1d5db;border-radius:6px;width:120px;height:80px}.section-modal-backdrop{z-index:20;background:#0000008c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.section-modal{background:#fff;border-radius:10px;flex-direction:column;gap:10px;max-width:80vw;max-height:80vh;padding:12px;display:flex}.section-modal-image{object-fit:contain;max-width:100%;max-height:68vh}.custom-parts-list{flex-direction:column;gap:8px;margin-bottom:10px;display:flex}.custom-part-row{grid-template-columns:36px 1fr 58px 58px 34px;align-items:center;gap:8px;display:grid}.custom-part-row-assembly{grid-template-columns:36px 1fr 58px 58px 58px 34px;align-items:center;gap:8px;display:grid}.node-parts-editor{flex-direction:column;gap:12px;display:flex}.assembly-compose{flex-direction:column;gap:16px;margin:4px 0 8px;display:flex}.assembly-compose .actions{margin:0}.node-part-row{grid-template-columns:36px minmax(240px,1fr) 58px 58px 34px;align-items:center;gap:6px;display:grid}.assembly-part-row{grid-template-columns:36px minmax(220px,1fr) 52px 68px 72px 34px;align-items:center;gap:6px;display:grid}.assembly-form-title{margin:16px 0 8px;font-size:15px}.part-row-header{color:#5f6368;padding-bottom:2px;font-size:12px;font-weight:600}.part-row-header span:nth-child(3),.part-row-header span:nth-child(4),.part-row-header span:nth-child(5),.part-row-header span:nth-child(6){text-align:center}.profile-select-with-search{gap:4px;display:grid}.profile-select-with-search input,.profile-select-with-search select{width:100%}.assembly-item-combobox{grid-template-columns:minmax(260px,1fr);align-items:center;gap:6px;display:grid}.assembly-item-combobox input{width:100%}.assembly-col-article{width:10%;min-width:90px}.assembly-col-name{width:18%;min-width:140px}.assembly-name-cell{vertical-align:top}.assembly-col-parts{width:58%;min-width:520px}.assembly-col-actions{vertical-align:top;width:12%;min-width:120px}.assembly-col-actions .row-actions{flex-wrap:wrap}.icon-button{text-align:center;justify-content:center;align-items:center;min-width:28px;height:34px;padding:6px 7px;line-height:1;display:inline-flex}.compact-number-input{text-align:center;box-sizing:border-box;width:100%;max-width:56px;height:34px;padding:6px 4px}.compact-number-input::placeholder{text-align:center}.assembly-item-combobox input{box-sizing:border-box;height:34px}.custom-part-row>span:first-child,.custom-part-row-assembly>span:first-child,.node-part-row>span:first-child,.assembly-part-row>span:first-child{text-align:center}.totals{margin-top:12px}.frame-composition-positions{color:#374151;margin:0 0 14px;padding-left:1.25rem;font-size:14px;line-height:1.55}.frame-composition-positions li{margin-bottom:6px}.hint{color:#6b7280;margin-top:8px;font-size:13px}.input-note{color:#92400e;margin-top:4px;font-size:.78rem;display:block}.undo-banner{background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:10px 12px;display:flex}.warning-text{color:#b91c1c;margin:8px 0 10px;font-size:13px;font-weight:600}.warning-list{flex-direction:column;gap:10px;margin:12px 0 16px;padding:0;list-style:none;display:flex}.warning-list .warning-text{margin:0}
