#rp{--orange:#e9680c;--ink:#292723;--muted:#79756f;--line:#e5e1da;box-sizing:border-box;color:var(--ink);font:15px/1.5 Arial,sans-serif;background:#f3f2ef;border:1px solid #e9e5df;border-radius:16px;padding:18px;margin:15px 0 30px;min-width:0}#rp *{box-sizing:border-box}#rp [hidden]{display:none!important}#rp h1,#rp h2,#rp h3,#rp p{margin:0}#rp h1{font-size:clamp(25px,3vw,38px);line-height:1.2;margin:10px 0}#rp h2{font-size:19px;margin:0 0 15px}#rp h3{font-size:14px;margin:20px 0 10px}#rp button,#rp input,#rp select,#rp .rp-file{font:inherit}#rp button,#rp .rp-file{min-height:42px;padding:9px 12px;border:1px solid var(--line);background:#fff;border-radius:7px;cursor:pointer;color:var(--ink);line-height:1.3;text-align:center}#rp button:hover,#rp .rp-file:hover{border-color:var(--orange);background:#fff7ef}#rp button:focus-visible,#rp input:focus-visible,#rp select:focus-visible,#rp .rp-file:focus-within{outline:3px solid #f3a460;outline-offset:2px}#rp .rp-primary{color:#fff;background:var(--orange);border-color:var(--orange);width:100%;font-weight:bold}#rp .rp-selected{color:#ac4807;background:#ffead6;border-color:#f4bb8d}#rp .rp-hero{display:flex;justify-content:space-between;align-items:center;border-radius:10px;background:linear-gradient(110deg,#fffdf9,#f7e5d3);padding:24px 28px}#rp .rp-eyebrow{font-size:10px;font-weight:bold;letter-spacing:1.5px;color:#a65c2c}#rp .rp-hero p{color:#756a5e;font-size:16px}#rp .rp-hero-mark{font-size:82px;line-height:1;color:#c77a37;padding:0 25px}#rp .rp-top{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:18px 0;font-size:12px;color:var(--muted)}#rp .rp-steps{display:flex;gap:8px;flex-wrap:wrap}#rp .rp-steps span{padding:6px 11px;border-radius:5px}#rp .rp-active{background:#ffead6;color:#b95511;font-weight:bold}#rp .rp-layout{display:grid;grid-template-columns:205px minmax(0,1fr) 230px;gap:12px}#rp .rp-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:16px;min-width:0}#rp .rp-room-list{display:grid;gap:6px;margin-top:12px;max-height:260px;overflow:auto}#rp .rp-room-list button{text-align:left;word-break:break-word}#rp .rp-room-list small{display:block;color:var(--muted);font-size:11px}#rp .rp-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}#rp .rp-tool-grid button{font-size:12px}#rp .rp-muted{color:var(--muted);font-size:12px;margin-top:12px}#rp .rp-tool-bottom{display:grid;gap:7px;margin-top:30px}#rp .rp-tool-bottom button,#rp .rp-file{font-size:12px}#rp .rp-file{display:block}#rp .rp-file input{position:absolute;width:1px;height:1px;opacity:0}#rp .rp-main{padding:0;overflow:hidden}#rp .rp-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}#rp .rp-toolbar button{font-size:12px}#rp .rp-canvas{position:relative;background:#fbfaf7}#rp svg{display:block;width:100%;height:570px;touch-action:none;user-select:none;-webkit-user-select:none}#rp svg text{font-family:Arial,sans-serif;pointer-events:none}#rp .rp-canvas-label{position:absolute;left:16px;bottom:12px;font-size:9px;letter-spacing:1.4px;color:#99938b;pointer-events:none}#rp .rp-canvas-label span{margin-left:12px;letter-spacing:0}#rp .rp-hint{font-size:12px;color:#75695e;padding:12px 16px;border-top:1px solid var(--line);min-height:58px}#rp label:not(.rp-file){display:block;font-size:12px;color:#655f57;margin-bottom:12px}#rp input:not([type=file]),#rp select{display:block;background:#fff;border:1px solid #dad5ce;border-radius:6px;padding:9px;width:100%;color:var(--ink);margin-top:5px;min-height:40px}#rp .rp-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}#rp .rp-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--line);padding:14px 0;color:var(--muted);font-size:11px}#rp .rp-stats strong{display:block;font-size:18px;color:var(--ink)}#rp .rp-danger{color:#a34c2e;width:100%;font-size:12px}#rp .rp-summary{border-top:1px solid var(--line);margin-top:20px}#rp .rp-summary p{display:flex;justify-content:space-between;font-size:12px;padding:6px 0;border-bottom:1px solid #f1eeea}#rp .rp-note{padding:14px 3px 0;color:#85796c;font-size:12px}#rp .rp-wall{cursor:move}#rp .rp-handle{cursor:nwse-resize}#rp .rp-object{cursor:grab}@media(max-width:1100px){#rp .rp-layout{grid-template-columns:170px minmax(0,1fr)}#rp .rp-properties{grid-column:1/-1;display:block}#rp .rp-fields{grid-template-columns:repeat(3,1fr)}#rp .rp-hero{padding:22px}#rp svg{height:500px}}@media(max-width:650px){#rp{padding:8px;margin:8px 0;border-radius:10px}#rp .rp-hero{padding:20px 15px}#rp .rp-hero-mark{display:none}#rp .rp-hero p{font-size:14px}#rp .rp-top{display:block;padding:12px 0}#rp-save{display:block;padding:8px 10px 0}#rp .rp-steps{gap:0;font-size:10px}#rp .rp-layout{display:flex;flex-direction:column}#rp .rp-main{order:0}#rp .rp-tools{order:1}#rp .rp-properties{order:2}#rp svg{height:400px}#rp .rp-tool-grid{grid-template-columns:repeat(4,1fr)}#rp .rp-room-list{display:flex;overflow:auto;margin-bottom:10px}#rp .rp-room-list button{min-width:120px}#rp .rp-tool-bottom{grid-template-columns:1fr 1fr;margin-top:15px}#rp .rp-toolbar{gap:4px;padding:8px}#rp .rp-toolbar button{padding:8px;font-size:11px}#rp .rp-eyebrow{font-size:9px}}

#rp .rp-primary:hover{background:#cf5706;color:#fff}

/* R2: palette icons, lock, walls and object handles */
#rp .rp-tool-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:82px;padding:9px 5px;touch-action:none;cursor:grab;user-select:none}
#rp .rp-tool-grid button:active{cursor:grabbing}
#rp .rp-tool-grid button svg{display:block;width:33px;height:33px;fill:none;stroke:#b45b1b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#rp .rp-tool-grid button span{font-size:12px;pointer-events:none}
#rp .rp-lock{width:100%;margin-bottom:14px;font-size:13px;font-weight:600;border-color:#f0b77f;color:#995017;background:#fff8ef}
#rp .rp-lock.rp-is-locked{background:#ffead6;color:#9e4508;border-color:#e88b40}
#rp .rp-room-list button{position:relative;padding-right:30px}
#rp .rp-room-list .rp-lock-icon{position:absolute;right:10px;top:12px;font-size:15px}
#rp .rp-wall{cursor:move}
#rp .rp-room-locked{cursor:default}
#rp .rp-object{cursor:grab}
#rp .rp-object:active{cursor:grabbing}
#rp .rp-object-selected{filter:drop-shadow(0 0 2px #ffad63)}
#rp .rp-drag-ghost{position:fixed;z-index:999999;pointer-events:none;display:flex;gap:7px;align-items:center;background:#fff7eb;border:2px solid #e9680c;border-radius:10px;box-shadow:0 5px 20px #0002;color:#8d3b06;font-weight:700;padding:9px 12px;white-space:nowrap;transform:translate(14px,12px)}
#rp .rp-drop-ready{background:#fff1de!important}
#rp input:disabled{background:#f3f1ed;color:#999;cursor:not-allowed}
@media(max-width:650px){#rp .rp-tool-grid button{min-height:70px}#rp .rp-tool-grid button svg{width:28px;height:28px}#rp .rp-tool-grid button span{font-size:10px}}

/* R3: clear open/closed padlocks, architectural hatch and true floating palette icons. */
#rp .rp-lock{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px}
#rp .rp-lock-svg{display:inline-block;flex:none;width:30px;height:30px;overflow:visible;color:#5b756b}
#rp .rp-lock-svg path{fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
#rp .rp-lock-svg.rp-closed{color:#a94e17}
#rp .rp-room-list .rp-lock-icon{right:9px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}
#rp .rp-room-list .rp-lock-svg{width:32px;height:32px}
/* Ghost is appended to document.body, NOT inside #rp. Selector must be global. */
.rp-drag-ghost{position:fixed;z-index:2147483000;pointer-events:none;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;width:84px;min-height:82px;background:#fff8ec;border:2px solid #e9680c;border-radius:12px;box-shadow:0 9px 26px #3b2c1f45;color:#873e0a;font:600 12px/1.25 Arial,sans-serif;padding:8px;white-space:nowrap;transform:translate(15px,-50%);opacity:.97}
.rp-drag-ghost svg{width:40px;height:40px;fill:none;stroke:#aa551b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rp-drag-ghost.rp-ghost-ready{background:#e8fff3;border-color:#13996a;color:#096c4b}
.rp-drag-ghost.rp-ghost-ready svg{stroke:#13996a}
#rp .rp-tool-grid button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* R4: furniture palette and properties */
#rp .rp-furniture-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#rp .rp-furniture-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:59px;padding:5px 2px;font-size:26px;color:#ae5c22;touch-action:none;user-select:none;cursor:grab}
#rp .rp-furniture-grid button span{font-size:10px;color:#5e554e;line-height:1.15;pointer-events:none}
#rp .rp-furniture{cursor:grab}
#rp .rp-furniture:active{cursor:grabbing}
#rp .rp-properties input[type=checkbox]{display:inline-block;width:auto;min-height:0;margin:0 7px 0 0;vertical-align:middle}
#rp .rp-properties #rp-object-controls{margin-top:12px}
#rp .rp-furniture-grid button.rp-selected{background:#ffead6;border-color:#e9680c}
.rp-drag-ghost>span{font-size:12px}
@media(max-width:650px){#rp .rp-furniture-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

#rp .rp-furniture-grid button svg{width:28px;height:28px;display:block;fill:none;stroke:#b45b1b;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.rp-drag-ghost svg{width:39px;height:39px;display:block;fill:none;stroke:#b45b1b;stroke-width:1.7}

/* R5: 15 новых предметов оборудования, сантехники и мебели */
#rp .rp-equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#rp .rp-equipment-grid button{min-height:74px;gap:5px;padding:7px 3px}
#rp .rp-equipment-grid button svg{width:31px;height:31px}
#rp .rp-equipment-grid button span{font-size:10px;overflow-wrap:anywhere;hyphens:auto}
@media(max-width:650px){#rp .rp-equipment-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* R6: three connected chevron stages and whole-plan panning */
#rp .rp-top{display:flex;flex-direction:column;gap:6px;padding:17px 0 13px}
#rp .rp-steps{width:100%;max-width:990px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;overflow:hidden;border:2px solid var(--orange);border-radius:13px;background:#fff;isolation:isolate}
#rp .rp-steps .rp-step{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:62px;padding:13px 10px 13px 22px;border-radius:0;background:#fff;color:#302b27;font-size:18px;line-height:1.25;white-space:nowrap}
#rp .rp-steps .rp-step:nth-child(1){z-index:3}
#rp .rp-steps .rp-step:nth-child(2){z-index:2}
#rp .rp-steps .rp-step:nth-child(3){z-index:1}
#rp .rp-steps .rp-step-active{background:#fff0de;color:#a74608}
#rp .rp-steps .rp-step:not(:last-child):after{content:"";position:absolute;right:-14px;top:50%;width:27px;height:27px;transform:translateY(-50%) rotate(45deg);border-top:2px solid var(--orange);border-right:2px solid var(--orange);background:inherit;z-index:4;pointer-events:none}
#rp .rp-steps .rp-step svg{display:inline-block;flex:none;width:26px;height:26px;stroke:var(--orange);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#rp .rp-steps .rp-step strong{font-weight:700}
#rp #rp-save{align-self:flex-end;font-size:11px;color:#8c8378}
#rp .rp-toolbar #rp-pan{display:inline-flex;align-items:center;gap:5px;justify-content:center}
#rp .rp-toolbar .rp-pan-icon{width:17px;height:17px;display:inline-block;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#rp .rp-canvas.rp-pan-mode,#rp .rp-canvas.rp-pan-mode .rp-wall,#rp .rp-canvas.rp-pan-mode .rp-object,#rp .rp-canvas.rp-pan-mode .rp-handle{cursor:grab!important}
#rp .rp-canvas.rp-is-panning,#rp .rp-canvas.rp-is-panning .rp-wall,#rp .rp-canvas.rp-is-panning .rp-object,#rp .rp-canvas.rp-is-panning .rp-handle{cursor:grabbing!important}
@media(max-width:650px){#rp .rp-steps .rp-step{min-height:48px;padding:9px 3px 9px 12px;font-size:11px;gap:4px}#rp .rp-steps .rp-step svg{width:16px;height:16px}#rp .rp-steps .rp-step:not(:last-child):after{width:17px;height:17px;right:-9px}#rp .rp-toolbar #rp-pan{padding:8px 6px}}

/* R7 — full-width planner, fullscreen, working wiring stage and layers */
#rp{width:calc(100vw - 32px);max-width:none!important;margin-left:calc(50% - 50vw + 16px);margin-right:0;position:relative}
#rp .rp-layout{grid-template-columns:clamp(230px,17vw,290px) minmax(0,1fr) clamp(260px,19vw,320px);gap:14px}
#rp .rp-tools{max-height:calc(100vh - 120px);min-height:580px;overflow:auto;scrollbar-width:thin}
#rp .rp-properties{max-height:calc(100vh - 120px);overflow:auto;scrollbar-width:thin}
#rp .rp-steps{max-width:1040px}
#rp .rp-steps .rp-step{border:0!important;border-radius:0!important;font-family:inherit;cursor:pointer;min-height:62px;font-size:17px}
#rp .rp-steps .rp-step:hover{background:#fff5ea}
#rp .rp-steps .rp-step-active{background:#ffead5!important;color:#a74608}
#rp .rp-status-actions{display:flex;gap:10px;align-items:center;align-self:flex-end}
#rp .rp-fullscreen{display:flex;gap:7px;align-items:center;font-weight:600;font-size:12px;white-space:nowrap}
#rp .rp-fullscreen svg{width:19px;height:19px;fill:none;stroke:#e9680c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#rp .rp-main #rp-svg{height:clamp(570px,67vh,920px)}
#rp .rp-layer-tabs{display:grid;grid-template-columns:1fr;gap:6px;margin:14px 0}
#rp .rp-layer-tabs button{text-align:left;min-height:47px;font-size:13px;font-weight:600}
#rp .rp-layer-tabs button.rp-layer-active{background:#fff0e0;border-color:#e9680c;color:#a74a07}
#rp .rp-fixture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#rp .rp-fixture-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:center;min-height:86px;padding:8px 4px;cursor:grab;touch-action:none;user-select:none}
#rp .rp-fixture-grid button svg{width:34px;height:34px;fill:none;stroke:#b45312;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#rp .rp-fixture-grid button span{font-size:11px;line-height:1.2;pointer-events:none}
#rp .rp-fixture-grid button.rp-selected{background:#ffead6;border-color:#e9680c}
#rp .rp-wire-notice{background:#f9f5ef;border:1px solid #eee0d1;border-radius:9px;padding:11px;font-size:12px;color:#72695e;margin-top:16px}
#rp .rp-wire-fixture{cursor:grab}
#rp .rp-wire-fixture.rp-object-selected{filter:drop-shadow(0 0 3px #ffa45b)}
#rp .rp-estimate-row{display:flex;justify-content:space-between;gap:9px;border-bottom:1px solid #ece6de;padding:9px 0;font-size:12px}
#rp .rp-stage3-banner{background:#fff7ec;border:1px solid #efd8bd;border-radius:10px;padding:14px;color:#6b4c30;margin:10px}
#rp[data-stage="wiring"] #rp-stage1-props,#rp[data-stage="estimate"] #rp-stage1-props,#rp[data-stage="wiring"] #rp-object-controls,#rp[data-stage="estimate"] #rp-object-controls,#rp[data-stage="wiring"] #rp-opening-props,#rp[data-stage="estimate"] #rp-opening-props,#rp[data-stage="wiring"] #rp-furniture-props,#rp[data-stage="estimate"] #rp-furniture-props,#rp[data-stage="wiring"] #rp-delete,#rp[data-stage="estimate"] #rp-delete,#rp[data-stage="wiring"] .rp-properties>.rp-summary,#rp[data-stage="estimate"] .rp-properties>.rp-summary,#rp[data-stage="wiring"] .rp-properties>.rp-muted,#rp[data-stage="estimate"] .rp-properties>.rp-muted{display:none!important}
#rp:fullscreen,#rp.rp-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:2147482000!important;margin:0!important;width:100vw!important;height:100vh!important;overflow:auto!important;border-radius:0!important;padding:8px 14px!important;background:#f3f2ef!important}
#rp:fullscreen .rp-hero,#rp.rp-fullscreen-fallback .rp-hero{display:none!important}
#rp:fullscreen .rp-top,#rp.rp-fullscreen-fallback .rp-top{padding:6px 0!important}
#rp:fullscreen .rp-tools,#rp:fullscreen .rp-properties,#rp.rp-fullscreen-fallback .rp-tools,#rp.rp-fullscreen-fallback .rp-properties{max-height:calc(100vh - 130px)!important}
#rp:fullscreen #rp-svg,#rp.rp-fullscreen-fallback #rp-svg{height:calc(100vh - 220px)!important;min-height:360px!important}
#rp:fullscreen .rp-note,#rp.rp-fullscreen-fallback .rp-note{display:none}
@media(max-width:1199px){#rp .rp-layout{grid-template-columns:220px minmax(0,1fr) 260px}#rp .rp-main #rp-svg{height:600px}}
@media(max-width:950px){#rp .rp-layout{grid-template-columns:200px minmax(0,1fr)}#rp .rp-properties{grid-column:1/-1;max-height:none}#rp .rp-tools{max-height:none}#rp .rp-main #rp-svg{height:510px}}
@media(max-width:650px){#rp{width:calc(100vw - 12px);margin-left:calc(50% - 50vw + 6px)}#rp .rp-layout{display:flex;flex-direction:column}#rp .rp-tools{order:1;min-height:0;max-height:none}#rp .rp-main{order:0}#rp .rp-properties{order:2}#rp .rp-main #rp-svg{height:430px}#rp .rp-status-actions{align-self:stretch;justify-content:space-between}#rp .rp-fullscreen{font-size:11px}#rp .rp-steps .rp-step{font-size:11px;min-height:50px}#rp .rp-fixture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#rp:fullscreen #rp-svg,#rp.rp-fullscreen-fallback #rp-svg{height:50vh!important}}

/* R8: fixture families, cable route editor */
#rp .rp-wire-actions{display:flex;gap:5px;margin:7px 0 12px}
#rp .rp-wire-actions button{flex:1;min-width:0;font-size:11px;padding:9px 4px}
#rp .rp-cable-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;margin:8px 0}
#rp .rp-cable-label select{width:100%;min-height:39px}
#rp .rp-fixture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#rp .rp-fixture-grid button{min-height:83px}
#rp .rp-wire-fixture{cursor:move}
#rp #rp-route-props{padding:10px;border:1px solid #eed9c2;border-radius:9px;margin:12px 0}
#rp #rp-route-props h3{margin:0 0 10px}
#rp .rp-canvas svg:has(+ .rp-canvas-label){touch-action:none}

/* R9 — cable tiles, in-canvas finish action, route properties */
#rp .rp-cable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 12px}
#rp .rp-cable-grid .rp-cable-tile{min-width:0;min-height:82px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;white-space:normal}
#rp .rp-cable-tile svg{width:34px;height:28px;fill:none;stroke:#b35d20;stroke-width:2;stroke-linecap:round}
#rp .rp-cable-grid .rp-cable-active{background:#ffead6;border-color:#e9680c;color:#a34e0d;font-weight:700}
#rp .rp-wire-float{position:absolute;z-index:12;min-height:33px;padding:5px 10px;white-space:nowrap;background:#e9680c;color:#fff;border:1px solid #bf540a;border-radius:8px;box-shadow:0 3px 14px #7d4a2866;font-size:12px;font-weight:bold}
#rp .rp-wire-float:hover{background:#c75a09;color:#fff}
#rp #rp-route-props{border:1px solid #f3d4b9;border-radius:9px;padding:12px;background:#fff9f3;margin:12px 0}
#rp #rp-route-props button{width:100%;margin:4px 0}
#rp #rp-route-props h3{font-size:17px;margin:5px 0}
#rp .rp-canvas:has(.rp-wire-float:not([hidden])) svg{cursor:crosshair}

/* R10: fixed-position clickable finish button anchored to the last placed route point. */
#rp .rp-wire-float{pointer-events:auto;cursor:pointer;touch-action:manipulation;z-index:50}

/* R11: fixture drag preview is the plan symbol, not a green tile with caption. */
.rp-drag-ghost.rp-fixture-drag-ghost{width:38px;height:38px;min-height:0;padding:0;gap:0;border:0;background:transparent;box-shadow:none;border-radius:0;transform:translate(-50%,-50%);white-space:normal;pointer-events:none}
.rp-drag-ghost.rp-fixture-drag-ghost svg{width:38px;height:38px;stroke:none;fill:none;overflow:visible}
.rp-drag-ghost.rp-fixture-drag-ghost.rp-ghost-ready{border:0;background:transparent;box-shadow:none}

/* R12: compact specification for the current wiring layer */
#rp .rp-layer-spec{margin-top:17px;padding-top:10px;border-top:1px solid #e9e2d8}
#rp .rp-layer-spec h3{font-size:15px;margin:4px 0 10px;color:#3f3932}
#rp .rp-spec-heading{font-size:11px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;color:#946947;margin:13px 0 4px}
#rp .rp-spec-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #f1ebe3;font-size:12px;line-height:1.35}
#rp .rp-spec-row strong{white-space:nowrap;font-size:12px;color:#41382f;font-variant-numeric:tabular-nums}
#rp .rp-spec-name{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
#rp .rp-spec-name>span{min-width:0}
#rp .rp-spec-icon{flex:none;width:24px;height:24px;color:#c26828;overflow:visible}
#rp .rp-spec-empty{font-size:11px;color:#9c9288;margin:6px 0}
#rp .rp-fixture-placement{margin:6px 0 10px;font-size:12px;color:#97633c;font-weight:600}

/* R12.1 — larger readable icons and labels in the layer specification */
#rp .rp-layer-spec h3{font-size:17px}
#rp .rp-spec-heading{font-size:12px}
#rp .rp-spec-row{font-size:14px;line-height:1.4;padding:9px 0;gap:10px}
#rp .rp-spec-row strong{font-size:14px}
#rp .rp-spec-name{gap:10px}
#rp .rp-spec-icon{width:36px;height:36px}

/* R13: narrow status line at the bottom, give the canvas remaining height. */
#rp .rp-main{display:flex;flex-direction:column;min-height:0}
#rp .rp-main .rp-canvas{flex:1 1 auto;min-height:570px}
#rp .rp-main .rp-canvas>svg{height:100%;min-height:570px}
#rp .rp-main .rp-hint{flex:0 0 auto;min-height:0;margin-top:auto;padding:7px 12px;font-size:11px;line-height:1.3}
#rp .rp-spec-explain{font-size:11px;line-height:1.4;color:#8a7c6b;margin:8px 0 2px}
@media(max-width:1100px){#rp .rp-main .rp-canvas{min-height:500px}#rp .rp-main .rp-canvas>svg{min-height:500px}}
@media(max-width:650px){#rp .rp-main .rp-canvas{min-height:400px}#rp .rp-main .rp-canvas>svg{min-height:400px}}
/* R14 — interactive electrical board designer */
#rp[data-board="true"] #rp-stage2-props,#rp[data-board="true"] #rp-fixture-grid,#rp[data-board="true"] #rp-cable-grid,#rp[data-board="true"] .rp-cable-label,#rp[data-board="true"] #rp-wire-start,#rp[data-board="true"] .rp-wire-actions,#rp[data-board="true"] .rp-wire-notice,#rp[data-board="true"] #rp-wire-tools>h3,#rp[data-board="true"] #rp-wire-tools>p,#rp[data-board="true"] .rp-main>.rp-toolbar,#rp[data-board="true"] .rp-main>.rp-canvas,#rp[data-board="true"] #rp-hint{display:none!important}
#rp .rp-board-canvas{background:#f5f7f9;flex:1 1 auto;min-width:0}
#rp .rp-board-view-tabs{display:flex;gap:8px;padding:12px;border-bottom:1px solid #dce3e8;background:#fff}
#rp .rp-board-view-tabs button{font-size:13px;flex:1}
#rp .rp-board-scroll{width:100%;overflow:auto;min-height:550px;padding:12px}
#rp .rp-board-scroll>svg{width:100%;height:auto;min-height:520px;max-height:none!important;touch-action:none;user-select:none}
#rp .rp-board-warning{margin:10px 14px 18px;padding:10px 13px;border:1px solid #e9d9bc;background:#fff8e9;color:#76552b;border-radius:8px;font-size:12px;line-height:1.5}
#rp .rp-board-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:16px}
#rp .rp-board-palette .rp-board-tile{min-height:82px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:7px 4px;touch-action:none;user-select:none;cursor:grab;font-size:11px}
#rp .rp-board-tile-icon{display:flex;align-items:center;justify-content:center;min-width:36px;height:37px;padding:3px 6px;border:1.5px solid #b3bdc7;border-top:4px solid #d56d49;border-radius:4px;color:#384f63;background:linear-gradient(#fff,#e6edf1);font-weight:700;font-size:14px}
#rp .rp-board-cabinet .rp-board-tile-icon{border:2px solid #c88449;color:#b65c1a;font-size:27px}
#rp .rp-board-tile.rp-board-dragging{opacity:.55}
#rp .rp-board-usage{margin:14px 0;border:1px solid #eee4da;border-radius:8px;padding:12px;font-size:13px}
#rp .rp-board-usage p{font-size:12px;color:#6b625c;margin-top:7px}
#rp .rp-board-progress{height:8px;background:#f0e6dc;border-radius:5px;overflow:hidden;margin-top:9px}
#rp .rp-board-progress span{display:block;height:100%;background:#e9680c}
#rp .rp-board-caution{color:#a35c20!important}
#rp .rp-board-group-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eee9e4;padding:9px 0;font-size:12px}
#rp .rp-board-group-row strong{white-space:nowrap}
#rp .rp-board-module{touch-action:none}
#rp .rp-board-empty{cursor:crosshair}
#rp[data-board="true"] .rp-properties{overflow:auto}
@media(max-width:650px){#rp .rp-board-palette{grid-template-columns:repeat(3,minmax(0,1fr))}#rp .rp-board-scroll{min-height:350px;padding:5px}#rp .rp-board-scroll>svg{min-height:350px}#rp .rp-board-view-tabs{padding:7px}#rp .rp-board-view-tabs button{font-size:11px;padding:8px 3px}}

/* R14.2 — schematic drawing in an ESKD-inspired frame */
#rp .rp-board-view-tabs{flex-wrap:wrap}
#rp .rp-board-view-tabs #rp-board-download{flex:0 0 auto;border-color:#b9c8d3;background:#fff;color:#3c607b}
#rp .rp-board-schematic-mode .rp-board-scroll{background:#e9eef1}
#rp .rp-board-schematic-mode .rp-board-scroll>svg{background:#fff;box-shadow:0 4px 18px rgba(23,47,65,.12);min-width:650px;touch-action:auto}
#rp .rp-board-schematic-mode .rp-board-scroll{overflow:auto}
@media(max-width:700px){#rp .rp-board-schematic-mode .rp-board-scroll>svg{width:850px;min-width:850px}#rp .rp-board-view-tabs #rp-board-download{flex:1 1 100%}}

/* R14.3: new circuit detection and non-destructive update */
#rp .rp-board-pending{border:1px solid #edb87f;border-radius:9px;padding:12px;background:#fff7ed;margin:12px 0 18px}
#rp .rp-board-pending>strong{display:block;font-size:13px;color:#9d4c0c}
#rp .rp-board-pending p{font-size:12px;color:#6e5b4d;margin:7px 0 12px;line-height:1.5}
#rp .rp-board-pending button{font-size:12px;min-height:38px}
#rp .rp-board-new-tag{display:inline-block;padding:1px 5px;border-radius:4px;background:#fff0d9;color:#a74b05;font-size:10px;font-style:normal;font-weight:bold}
#rp .rp-board-synced{font-size:12px;color:#37734a;background:#f1faf3;border:1px solid #d7e9da;border-radius:7px;padding:9px;margin:10px 0 16px}

/* R14.13 — three board columns end on the same horizontal baseline.
   Applies only to the desktop board editor; the mobile stacked layout
   and other planner stages retain their previous sizing. */
@media (min-width: 951px) {
  #rp[data-board="true"] .rp-layout {
    height: clamp(720px, calc(100vh - 185px), 1000px);
    align-items: stretch;
  }
  #rp[data-board="true"] .rp-layout > .rp-tools,
  #rp[data-board="true"] .rp-layout > .rp-main,
  #rp[data-board="true"] .rp-layout > .rp-properties {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  #rp[data-board="true"] .rp-layout > .rp-tools,
  #rp[data-board="true"] .rp-layout > .rp-properties {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  #rp[data-board="true"] .rp-board-canvas {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #rp[data-board="true"] .rp-board-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  #rp[data-board="true"] .rp-board-view-tabs,
  #rp[data-board="true"] .rp-board-warning {
    flex: 0 0 auto;
  }
}


/* R14.14 — compact desktop board editor, no nested vertical side-panel scrollbars. */
@media (min-width: 951px) {
  #rp[data-board="true"] .rp-hero {padding:14px 20px}
  #rp[data-board="true"] .rp-hero h1 {font-size:clamp(25px,2.3vw,32px);margin:5px 0}
  #rp[data-board="true"] .rp-hero p {font-size:14px}
  #rp[data-board="true"] .rp-top {gap:4px;padding:8px 0 9px}
  #rp[data-board="true"] .rp-steps .rp-step {min-height:50px;padding-top:8px;padding-bottom:8px}
  #rp[data-board="true"] .rp-layout {height:auto;min-height:660px;align-items:stretch}
  #rp[data-board="true"] .rp-layout > .rp-tools,
  #rp[data-board="true"] .rp-layout > .rp-main,
  #rp[data-board="true"] .rp-layout > .rp-properties {
    height:auto;min-height:0;max-height:none;align-self:stretch;
  }
  #rp[data-board="true"] .rp-layout > .rp-tools,
  #rp[data-board="true"] .rp-layout > .rp-properties {
    overflow:visible;scrollbar-width:none;
  }
  #rp[data-board="true"] .rp-layout > .rp-tools::-webkit-scrollbar,
  #rp[data-board="true"] .rp-layout > .rp-properties::-webkit-scrollbar {display:none}
  #rp[data-board="true"] .rp-board-canvas {min-height:0}
  #rp[data-board="true"] .rp-board-scroll {overflow-x:auto;overflow-y:hidden;min-height:550px}
  #rp[data-board="true"] .rp-board-view-tabs {padding:7px 10px}
  #rp[data-board="true"] .rp-board-warning {margin:6px 10px 10px;padding:7px 10px}
  #rp[data-board="true"] .rp-tools h2 {margin-bottom:9px}
  #rp[data-board="true"] .rp-tools h3 {margin:13px 0 7px}
  #rp[data-board="true"] .rp-tools .rp-muted {margin-top:6px}
  #rp[data-board="true"] .rp-board-palette {gap:5px;margin-bottom:8px}
  #rp[data-board="true"] .rp-board-palette .rp-board-tile {min-height:70px}
  #rp[data-board="true"] .rp-properties label:not(.rp-file) {margin-bottom:8px}
  #rp[data-board="true"] .rp-board-usage {margin:8px 0;padding:9px}
}
/* R14.14 — bigger uniform orange vector icons for the four wiring sections. */
#rp .rp-layer-tabs {gap:8px}
#rp .rp-layer-tabs button {
  display:flex;align-items:center;gap:13px;text-align:left;
  min-height:59px;padding:9px 12px;font-size:14px;
}
#rp .rp-layer-icon {display:inline-flex;align-items:center;justify-content:center;flex:0 0 35px;width:35px;height:35px}
#rp .rp-layer-icon svg {display:block;width:33px;height:33px;fill:none;stroke:#e9680c;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#rp .rp-layer-text {min-width:0}
@media(max-width:650px){
  #rp .rp-layer-tabs button {min-height:51px;padding:7px 10px;font-size:13px}
  #rp .rp-layer-icon {width:30px;height:30px;flex-basis:30px}
  #rp .rp-layer-icon svg {width:28px;height:28px}
}

/* R14.21 · проекты */
#rp .rp-project-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 10px;padding:8px 12px;border:1px solid #e9d8c5;border-radius:12px;background:#fffaf4}#rp .rp-project-bar button{border:1px solid #edb987;background:#fff;color:#9a4c11;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:600}#rp .rp-project-bar button:hover{background:#fff0df}#rp .rp-project-bar .rp-project-pdf{background:#e96c0c;color:#fff;border-color:#e96c0c}#rp .rp-project-label{font-size:11px;letter-spacing:1.5px;font-weight:bold;color:#9b6b45}#rp .rp-project-note{font-size:12px;color:#887b6e}.rp-project-overlay{position:fixed;inset:0;z-index:999999;background:rgba(20,30,40,.65);display:flex;align-items:center;justify-content:center;padding:18px}.rp-project-dialog{background:#fff;max-width:750px;width:100%;max-height:85vh;overflow:auto;padding:24px;border-radius:14px;box-shadow:0 10px 60px #2225}.rp-project-dialog button{background:#e96c0c;color:white;border:0;padding:10px 16px;border-radius:8px;cursor:pointer}.rp-project-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eee}.rp-project-row span{overflow-wrap:anywhere}

/* R14.24: current project name and storage status */
#rp .rp-project-current{font-size:13px;font-weight:700;color:#543b25;padding:4px 8px;background:#fff;border-radius:6px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rp .rp-project-storage{font-size:11px;color:#927963;margin-right:auto}
@media(max-width:680px){#rp .rp-project-current{max-width:160px}#rp .rp-project-storage{display:none}}

/* R14.29 — safe top spacing. Do not pull the planner over the site's header. */
@media (min-width: 701px) {
  #rp:not(:fullscreen):not(.rp-fullscreen-fallback) {
    margin-top: 5px !important;
  }
}

/* Compact the three-stage navigation (Rooms / Wiring / Estimate). */
#rp .rp-top {padding-top: 8px; padding-bottom: 8px;}
#rp .rp-steps {max-width: 900px; border-radius: 9px;}
#rp .rp-steps .rp-step {
  min-height: 43px;
  padding: 7px 10px 7px 17px;
  font-size: 14px;
  gap: 7px;
}
#rp .rp-steps .rp-step svg {width: 19px; height: 19px;}
#rp .rp-steps .rp-step:not(:last-child):after {
  width: 19px; height: 19px; right: -10px;
}

/* Compact the drawing toolbar, without changing canvas scale. */
#rp .rp-toolbar {gap: 5px; padding: 6px 8px;}
#rp .rp-toolbar button {
  min-height: 31px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.2;
}
#rp .rp-toolbar .rp-pan-icon {width: 14px; height: 14px;}

/* Keep the controls comfortably tappable on phones. */
@media (max-width: 700px) {
  #rp {margin-top: 5px !important;}
  #rp .rp-steps .rp-step {min-height: 43px; font-size: 11px; padding: 7px 4px 7px 10px; gap: 4px;}
  #rp .rp-steps .rp-step svg {width: 15px; height: 15px;}
  #rp .rp-steps .rp-step:not(:last-child):after {width: 15px; height: 15px; right: -8px;}
  #rp .rp-toolbar button {min-height: 35px; padding: 6px 7px; font-size: 11px;}
}

/* АСРРЕТРО R14.36: полноразмерная комплектация и смета. */
#rp[data-stage="completion"]>.rp-layout,#rp[data-stage="estimate"]>.rp-layout{display:none!important}
#rp .rc-surface{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}
#rp .rc-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
#rp .rc-heading h2{font-size:24px;margin:4px 0 0}
#rp .rc-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:0;white-space:nowrap}
#rp .rc-check input{width:19px;min-height:19px;margin:0}
#rp .rc-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px;padding:14px;background:#fff7ef;border-radius:9px;font-size:13px}
#rp .rc-presets button{font-size:12px;min-height:38px}
#rp .rc-manual{color:#82766c;font-size:12px}
#rp .rc-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px}
#rp .rc-rooms{border-right:1px solid var(--line);padding-right:16px}
#rp .rc-rooms h3,#rp .rc-room-content>h3{font-size:17px;margin:0 0 14px}
#rp .rc-rooms button{display:block;text-align:left;width:100%;margin-bottom:8px;padding:12px}
#rp .rc-rooms small{display:block;font-size:11px;color:#786d61;margin-top:5px}
#rp .rc-rooms .rc-active{border-color:#e9680c;background:#ffead6}
#rp .rc-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;align-items:start}
#rp .rc-card{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0;background:#fff}
#rp .rc-card h3{font-size:15px;line-height:1.25;margin:10px 0 12px;min-height:38px}
#rp .rc-product-image{height:125px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#fff,#faf8f4);border-radius:8px;overflow:hidden}
#rp .rc-product-image img{max-width:100%;height:120px;object-fit:contain}
#rp .rc-placeholder{font-size:65px;color:#c59869;line-height:1}
#rp .rc-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#rp .rc-colors button{padding:5px 2px;min-width:0;font-size:9px;min-height:65px;word-break:break-word;line-height:1.15}
#rp .rc-colors i{display:block;width:28px;height:28px;border:1px solid #c5bdb1;border-radius:50%;margin:0 auto 5px}
#rp .rc-colors .rc-color-active{border:2px solid #e9680c;padding:4px 1px;background:#fff3e5}
#rp .rc-colors .rc-color-active i:after{content:'✓';display:block;text-align:center;background:#e9680c;color:white;border-radius:50%;width:15px;height:15px;margin:14px 0 0 17px;font-size:12px}
#rp .rc-demand{margin-top:12px;border-top:1px solid #eee5d9;padding-top:10px}
#rp .rc-demand b{font-size:12px;display:block;margin-bottom:8px}
#rp .rc-demand label{font-size:11px;margin-bottom:8px}
#rp .rc-demand select{font-size:12px;max-width:100%;height:40px;text-overflow:ellipsis}
#rp .rc-demand input{font-size:12px}
#rp .rc-demand small{display:block;font-size:11px;color:#6e6154;line-height:1.5}
#rp .rc-demand .rc-error,#rp .rc-error{color:#a73318}
#rp .rc-empty{font-size:12px;color:#8d8174;padding:16px 0}
#rp .rc-note{font-size:12px;color:#756959;line-height:1.6;margin-top:18px;background:#faf7f1;border-radius:8px;padding:12px}
#rp .rc-total{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid #ead9c5;border-radius:10px;background:#fffaf2;padding:18px;margin-top:20px;font-size:13px}
#rp .rc-total small{display:block;font-size:11px;color:#736453}
#rp .rc-total strong{display:block;font-size:27px;color:#d85b05;line-height:1.3}
#rp .rc-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px;flex-wrap:wrap}
#rp .rc-actions .rp-primary{width:auto;min-width:220px}
#rp .rc-message{padding:14px;background:#fff4e5;border:1px solid #ead6bc;border-radius:8px;margin:14px 0;line-height:1.5;font-size:13px}
#rp .rc-table-wrap{max-width:100%;overflow:auto}
#rp .rc-table{border-collapse:collapse;width:100%;font-size:13px;min-width:610px}
#rp .rc-table th{text-align:left;background:#faf5ec;color:#6e5941;padding:12px}
#rp .rc-table td{border-bottom:1px solid #eee4d6;padding:13px 12px;vertical-align:top}
#rp .rc-table small{display:block;color:#8a7c6a;font-size:11px;margin-top:4px}
#rp .rc-technical{margin:20px 0;color:#766957;font-size:12px}
#rp .rc-technical summary{cursor:pointer;font-weight:bold;margin-bottom:10px}
#rp .rc-technical p{padding:5px 0;border-bottom:1px solid #eee}
#rp .rc-busy{opacity:.75}
@media(min-width:1440px){#rp .rc-groups{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:800px){#rp .rc-layout{grid-template-columns:1fr}#rp .rc-rooms{border-right:0;padding:0;display:flex;overflow:auto;gap:7px}#rp .rc-rooms h3{display:none}#rp .rc-rooms button{min-width:145px;margin-bottom:6px}#rp .rc-heading{align-items:flex-start;flex-direction:column;gap:12px}#rp .rc-surface{padding:12px}#rp .rc-groups{grid-template-columns:repeat(2,minmax(0,1fr))}#rp .rc-heading h2{font-size:21px}#rp .rc-actions button{flex:1 1 auto}#rp .rc-check{white-space:normal}}
@media(max-width:390px){#rp .rc-groups{grid-template-columns:1fr}#rp .rc-total{align-items:flex-start;flex-direction:column}}

/* R14.37: смета всегда под комплектацией, общий нижний ряд действий. */
#rp .rc-estimate-section{margin-top:28px;padding-top:24px;border-top:2px solid #ead9c5}
#rp .rc-estimate-section>h2{font-size:24px;margin:0 0 18px}
#rp .rc-actions{justify-content:flex-end;align-items:stretch}
#rp .rc-actions [data-rc-back]{margin-right:auto}
@media(max-width:650px){#rp .rc-actions{display:grid;grid-template-columns:1fr 1fr}#rp .rc-actions [data-rc-back],#rp .rc-actions [data-rc-cart]{grid-column:1/-1;margin:0;width:100%}#rp .rc-actions .rp-primary{min-width:0}}

/* R14.37: фото товара в смете и полёт к штатной корзине сайта. */
#rp .rc-estimate-thumb{float:left;width:48px;height:48px;object-fit:contain;margin:0 10px 6px 0;background:white;border-radius:5px}
.asrp-cart-flight{position:fixed;width:72px;height:72px;border:2px solid #e9680c;border-radius:12px;background:#fff;box-shadow:0 6px 20px #0003;z-index:2147483646;pointer-events:none;display:flex;align-items:center;justify-content:center;font:34px Arial;color:#e9680c;will-change:transform,opacity}
.asrp-cart-flight img{max-width:64px;max-height:64px;object-fit:contain}
.asrp-cart-flight span{position:absolute;right:-7px;top:-9px;background:#e9680c;color:#fff;font:bold 12px Arial;border-radius:12px;min-width:22px;padding:4px 6px;text-align:center}

/* R14.39: новые цвета показаны во всех семи группах. */
#rp .rc-colors [data-rc-color="pine"] i{background-image:repeating-linear-gradient(12deg,transparent 0 4px,#a8793c55 5px,transparent 6px 10px)}
#rp .rc-colors [data-rc-color="marble"] i{background-image:repeating-linear-gradient(135deg,transparent 0 7px,#8e969a55 8px,transparent 10px 17px)}

/* R14.40: понятное количество заказа и дополнительный запас. */
#rp .rc-demand .rc-order{font-size:12px;line-height:1.6;margin:10px 0 12px;color:#574939}
#rp .rc-demand .rc-extra-label{font-size:12px;margin:0 0 5px}
#rp .rc-demand .rc-extra-label input{border-color:#d1c6b9;background:#fffdf9}
#rp .rc-demand .rc-added{color:#22823a;font-weight:bold;font-size:13px;background:#edf8ee;border-radius:6px;padding:6px 8px;margin-top:5px}

/* R14.41: восемь основных цветов и девятая плитка «Ещё». */
#rp .rc-colors .rc-more-tile{border-style:dashed;background:#faf7f2;color:#6b5842}
#rp .rc-colors .rc-more-symbol{display:flex;align-items:center;justify-content:center;border:0;background:#efe7db;color:#9d642d;font:bold 22px Arial;line-height:1}
#rp .rc-colors .rc-more-tile.rc-color-active{border-style:solid;background:#fff3e5}
#rp .rc-colors .rc-more-tile.rc-color-active i:after{content:none}
#rp .rc-more-panel{padding:8px;margin-top:7px;border:1px solid #e7d5bd;border-radius:7px;background:#fffcf6}
#rp .rc-more-panel .rc-empty{padding:5px 0;line-height:1.5;font-size:11px}

/* R14.43: выбор товара с миниатюрами в поле и раскрытом списке. */
#rp .rc-product-label{font-size:11px;color:#655f57;margin:0 0 5px}
#rp .rc-picker{position:relative;margin-bottom:9px;min-width:0}
#rp .rc-picker-trigger{display:flex;align-items:center;gap:7px;width:100%;min-height:58px;padding:7px;text-align:left;background:white;border-color:#dad5ce}
#rp .rc-picker-thumb-box{display:flex;flex:0 0 40px;width:40px;height:40px;align-items:center;justify-content:center;border:1px solid #eee8dd;border-radius:5px;background:white;overflow:hidden}
#rp .rc-picker-thumb{display:block;width:100%;height:100%;object-fit:contain}
#rp .rc-picker-no-photo{color:#b49b7d;font-size:25px;line-height:1}
#rp .rc-picker-selected{flex:1;min-width:0;font-size:11px;line-height:1.4}
#rp .rc-picker-selected>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rp .rc-picker-selected small{font-size:11px;color:#976029;display:block;margin-top:3px}
#rp .rc-picker-arrow{font-size:17px;color:#a36c3c;flex:0 0 12px}
#rp .rc-picker-trigger[aria-expanded="true"]{border-color:#e9680c;box-shadow:0 0 0 2px #f8dbc1}
#rp .rc-picker-menu{position:fixed;z-index:2147483000;width:min(440px,calc(100vw - 24px));max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #d7b28e;border-radius:9px;background:#fff;box-shadow:0 8px 26px #0003}
#rp .rc-picker-option{display:flex;align-items:center;gap:12px;width:100%;min-height:70px;margin:0 0 4px;padding:9px;text-align:left;border:1px solid #eee8df;border-radius:6px;background:#fff}
#rp .rc-picker-option:last-child{margin-bottom:0}
#rp .rc-picker-option .rc-picker-thumb-box{flex-basis:54px;width:54px;height:54px}
#rp .rc-picker-option-info{display:block;flex:1;min-width:0;font-size:12px;line-height:1.45}
#rp .rc-picker-option-info strong{display:block;font-size:12px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
#rp .rc-picker-option-info small{display:block;font-size:10px;color:#8e7d68;margin-top:4px}
#rp .rc-picker-option-info b{display:block;color:#bf5b13;margin-top:4px;font-size:13px}
#rp .rc-picker-option[aria-selected="true"]{border-color:#e9680c;background:#fff1e2}
#rp .rc-picker-clear{font-size:12px;min-height:48px;color:#887962}
#rp .rc-picker-clear .rc-picker-thumb-box{width:36px;height:36px;flex-basis:36px}
@media(max-width:650px){#rp .rc-picker-selected{font-size:12px}#rp .rc-picker-menu{border-radius:10px}#rp .rc-picker-option-info strong{font-size:13px}}

/* R14.44: область применения возле быстрых комплектов; комнаты над товарами. */
#rp .rc-presets label.rc-check{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;white-space:normal;font-size:12px;cursor:pointer}
#rp .rc-presets label.rc-check input{display:block;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;cursor:pointer;accent-color:#e9680c}
#rp .rc-layout{display:block}
#rp .rc-rooms{display:flex;flex-wrap:wrap;gap:8px;border-right:0;border-bottom:1px solid var(--line);padding:0 0 16px;margin:0 0 18px;overflow:visible}
#rp .rc-rooms h3{display:block;flex:0 0 100%;margin:0 0 3px;font-size:17px}
#rp .rc-rooms button{flex:0 1 180px;width:180px;min-width:145px;margin:0;text-align:left}
#rp .rc-room-content{width:100%;min-width:0}
@media(max-width:800px){#rp .rc-presets label.rc-check{margin-left:0;flex:1 0 100%;padding-top:5px}#rp .rc-rooms button{flex:1 1 145px;width:auto}}

/* R14.45: группы товаров горизонтальными строками, без растяжения блоков. */
#rp .rc-surface{padding:12px}
#rp .rc-heading{margin-bottom:8px}
#rp .rc-heading h2{margin-top:2px}
#rp .rc-presets{padding:8px 10px;margin-bottom:8px;gap:6px}
#rp .rc-rooms{padding-bottom:8px;margin-bottom:10px;gap:6px;align-items:flex-start}
#rp .rc-rooms button{padding:9px 12px}
#rp .rc-room-content>h3{margin-bottom:8px}
#rp .rc-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#rp .rc-groups>.rc-card{display:grid;grid-template-columns:150px 215px minmax(0,1fr);gap:14px;align-items:start;padding:10px;height:auto;min-height:0}
#rp .rc-category-info,#rp .rc-category-colors,#rp .rc-category-items{min-width:0}
#rp .rc-category-info h3{min-height:0;margin:5px 0 0;font-size:15px;line-height:1.3}
#rp .rc-category-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:10px;align-items:start}
#rp .rc-category-items>.rc-demand{border-top:0;border-left:1px solid #eee5d9;padding:0 0 0 10px;margin:0;min-width:0}
#rp .rc-category-items>.rc-demand>b{margin-bottom:5px}
#rp .rc-category-items .rc-order{margin:6px 0}
#rp .rc-category-items>.rc-empty{margin:0;padding:8px 0}
#rp .rc-note{margin-top:8px;padding:8px 10px}
#rp .rc-estimate-section{margin-top:14px;padding-top:12px}
#rp .rc-estimate-section>h2{margin-bottom:10px}
#rp .rc-total{padding:12px;margin-top:12px}
#rp .rc-actions{margin-top:12px}
@media(max-width:1000px){#rp .rc-groups>.rc-card{grid-template-columns:130px 190px minmax(0,1fr);gap:10px}#rp .rc-category-items{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){#rp .rc-groups>.rc-card{grid-template-columns:110px minmax(0,1fr);gap:8px}#rp .rc-category-items{grid-column:1/-1}#rp .rc-category-items>.rc-demand{border-left:0;border-top:1px solid #eee5d9;padding:8px 0 0}#rp .rc-category-info h3{font-size:13px}}

/* R14.47: статус рядом с ID, полноэкранный режим рядом с PDF. */
#rp .rp-project-storage{margin-right:0}
#rp .rp-project-bar #rp-save{align-self:center;margin-right:auto;padding:0;font-size:11px;color:#8c8378}

/* R14.48: компактный выбор и запас внутри окна. */
#rp .rp-top{padding-top:10px;padding-bottom:10px}
#rp .rc-demand{padding:4px 0;border:0}
#rp .rc-product-label{display:none}
#rp .rc-picker-details{padding:12px;border-top:1px solid #e9d8c5}
#rp .rc-picker-details button{margin-top:8px}
#rp .rc-picker-trigger{min-height:64px}

/* R14.49: состояние выбора с полупрозрачным свечением. */
#rp .rc-picker-trigger.rc-unpicked{border-color:rgba(210,48,48,.5);box-shadow:0 0 7px rgba(210,48,48,.5)}
#rp .rc-picker-trigger.rc-picked{border-color:rgba(41,157,72,.5);box-shadow:0 0 7px rgba(41,157,72,.5)}

/* R14.50: заполненность комнат и окно согласия. */
#rp .rc-rooms button.rc-room-incomplete{border-color:rgba(210,48,48,.5);box-shadow:0 0 7px rgba(210,48,48,.5)}
#rp .rc-rooms button.rc-room-complete{border-color:rgba(41,157,72,.5);box-shadow:0 0 7px rgba(41,157,72,.5)}
.rp-consent[hidden],.rp-consent [hidden]{display:none!important}
.rp-consent{position:fixed;z-index:2147483000;left:0;right:0;bottom:0;min-height:33.333vh;box-sizing:border-box;padding:24px;display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(247,243,236,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 -5px 30px #0003;color:#292621;font:16px/1.5 Arial,sans-serif}
.rp-consent>div{max-width:850px}.rp-consent h2{font-size:24px;margin:0 0 12px}.rp-consent p{margin:0 0 18px}
.rp-consent button,.rp-consent a{display:inline-block;margin:5px;padding:12px 22px;border:1px solid #df680c;border-radius:8px;background:#fff;color:#98450a;font:600 16px Arial,sans-serif;text-decoration:none;cursor:pointer}
.rp-consent button[data-consent-choice="accept"]{background:#e96c0c;color:#fff}
.rp-consent-declined{background:#191919;color:#fff;box-shadow:none;overflow:auto}
#rp[inert]{pointer-events:none;user-select:none}

/* R14.51: окно ссылки и QR-кода. */
.rp-share-overlay{z-index:2147482500}.rp-share-dialog{text-align:center}.rp-share-qr{display:inline-block;background:#fff;padding:16px;margin:8px}.rp-share-url{box-sizing:border-box;display:block;width:100%;padding:10px;border:1px solid #ddd;border-radius:6px}.rp-share-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}.rp-share-actions a{background:#e96c0c;color:white;padding:10px 16px;border-radius:8px;text-decoration:none}.rp-share-status{min-height:22px;font-size:14px;color:#486c35}

/* R14.55: компактный итог группы товаров. */
#rp .rc-category-total{display:inline-block;max-width:100%;box-sizing:border-box;padding:5px 9px;margin:6px 0 0;border:1px solid rgba(41,157,72,.5);border-radius:6px;background:rgba(147,218,161,.5);color:#205b30;font-size:13px;font-weight:700;line-height:1.3}

/* R14.57: дом, переходящий в архитектурный чертёж. */
#rp .rp-hero>div:first-child{min-width:0}
#rp .rp-hero-mark{flex:0 0 220px;width:220px;padding:0;margin-left:20px;font-size:0;line-height:0}
#rp .rp-hero-mark img{display:block;width:100%;height:auto;max-height:148px;object-fit:contain}
@media(max-width:850px){#rp .rp-hero-mark{flex-basis:160px;width:160px;margin-left:12px}}
