:root{--navy:#062f52;--navy-2:#0a426d;--blue:#0879b9;--water:#dff4fb;--water-line:#9ed8ec;--yellow:#f3b51b;--ink:#102536;--muted:#607180;--line:#d8e3ea;--panel:#fff;--soft:#f4f8fa;--danger:#b52d35;--shadow:0 8px 28px rgba(8,47,82,.09)}
.brand-logo{width:58px;height:58px;object-fit:contain;border-radius:8px;background:#fff}
.success-dialog{text-align:center;max-width:430px}.success-dialog p{color:var(--muted);line-height:1.55}.success-dialog .primary{max-width:180px}.success-check{width:58px;height:58px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#e6f6ed;color:#16794a;font-size:32px;font-weight:900}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#edf3f6}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}.topbar{height:76px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,44px);border-bottom:4px solid var(--yellow)}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand-mark{width:42px;height:42px;border:2px solid var(--yellow);border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:14px;color:var(--yellow);letter-spacing:-1px}.brand strong{display:block;font-size:18px}.brand small{display:block;color:#bbd5e5;font-size:13px;margin-top:2px}.contact{text-align:right;display:flex;flex-direction:column;gap:2px}.contact a{color:#fff;font-weight:800;text-decoration:none}.contact span{font-size:12px;color:#bbd5e5}.app-shell{display:grid;grid-template-columns:280px minmax(520px,1fr) 370px;gap:14px;padding:14px;max-width:1720px;margin:auto;min-height:calc(100vh - 128px)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.catalog,.estimate{padding:20px;overflow:auto}.workspace{display:flex;flex-direction:column;min-width:0;overflow:hidden}.panel-heading,.workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workspace-head{padding:18px 20px 12px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.11em;color:var(--blue)}h1,h2,h3{margin:3px 0 0;color:var(--navy);line-height:1.15}h1,h2{font-size:21px}h3{font-size:17px;margin-top:22px}.help-button{width:34px;height:34px;border-radius:50%;background:var(--soft);border:1px solid var(--line);color:var(--navy);font-weight:900}.hint,.canvas-tip,.estimate-note{font-size:13px;color:var(--muted);line-height:1.45}.field-label{display:block;font-size:13px;font-weight:800;color:var(--navy);margin:15px 0 6px}.select,input,textarea{width:100%;border:1px solid #bcccd6;border-radius:8px;background:#fff;padding:10px 11px;color:var(--ink)}input:focus,select:focus,textarea:focus,.dock-canvas:focus{outline:3px solid rgba(8,121,185,.18);border-color:var(--blue)}.catalog-list{display:grid;gap:9px;margin-top:14px}.product-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px;cursor:grab;transition:.15s}.product-card:hover{border-color:var(--blue);box-shadow:0 5px 15px rgba(8,121,185,.1)}.product-swatch{height:42px;border-radius:6px;background:linear-gradient(135deg,#d9e3e9,#fff 48%,#aebdc5);border:1px solid #9cabb3;position:relative}.product-swatch:after{content:"";position:absolute;inset:8px 4px;background:repeating-linear-gradient(90deg,rgba(6,47,82,.25) 0 1px,transparent 1px 6px)}.product-card[data-kind="accessory"] .product-swatch{background:var(--navy);border-color:var(--navy)}.product-card[data-kind="accessory"] .product-swatch:after{display:none}.product-name{font-size:13px;font-weight:800;line-height:1.25}.product-price{font-size:12px;color:var(--muted);margin-top:2px}.add-button{border:0;background:var(--navy);color:#fff;border-radius:7px;padding:7px 8px;font-weight:800;font-size:12px;cursor:pointer}.site-details{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.site-details summary{font-weight:800;color:var(--navy);cursor:pointer}.check-row{display:flex;gap:9px;align-items:flex-start;font-size:13px;margin-top:14px}.check-row input{width:auto;margin-top:3px}.toolbar{display:flex;gap:7px}.toolbar button,.selection-bar button,.secondary-actions button{background:#fff;border:1px solid #b8c8d2;border-radius:7px;padding:7px 10px;font-weight:700;font-size:13px;color:var(--navy);cursor:pointer}.toolbar button:disabled{opacity:.4;cursor:not-allowed}.canvas-wrap{padding:0 14px;flex:1;min-height:480px}.dock-canvas{height:100%;min-height:480px;position:relative;overflow:hidden;border:1px solid #9bcddd;border-radius:12px;background-color:var(--water);background-image:linear-gradient(rgba(58,156,190,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(58,156,190,.14) 1px,transparent 1px),radial-gradient(ellipse at 20% 12%,rgba(255,255,255,.85),transparent 45%);background-size:20px 20px,20px 20px,100% 100%}.shoreline{position:absolute;left:0;top:0;bottom:0;width:80px;background:#d9c395;border-right:3px dashed rgba(82,58,26,.45);display:flex;align-items:center;justify-content:center}.shoreline span{font-size:11px;font-weight:900;letter-spacing:.14em;color:#6a542e;transform:rotate(-90deg)}.water-label{position:absolute;right:18px;bottom:14px;color:rgba(6,47,82,.35);font-weight:900;letter-spacing:.18em}.empty-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;color:#557786;gap:4px}.empty-state span{font-size:13px}.dock-piece{position:absolute;border:2px solid #455f6e;border-radius:4px;background:repeating-linear-gradient(90deg,#e2e8eb 0 7px,#bcc8ce 7px 8px);box-shadow:0 4px 8px rgba(6,47,82,.18);cursor:move;display:flex;align-items:center;justify-content:center;user-select:none;touch-action:none;transform-origin:center}.dock-piece.floating{background:repeating-linear-gradient(90deg,#c5aa78 0 16px,#ad9061 16px 17px);border-color:#755c36}.dock-piece.accessory{border-radius:50%;background:var(--navy);border:2px solid #fff;box-shadow:0 0 0 2px var(--navy);min-width:32px;min-height:32px}.dock-piece.selected{outline:3px solid var(--yellow);outline-offset:2px;z-index:4}.piece-label{font-size:10px;font-weight:900;color:var(--navy);background:rgba(255,255,255,.78);padding:2px 4px;border-radius:3px;white-space:nowrap}.dock-piece.accessory .piece-label{color:#fff;background:transparent}.selection-bar{display:flex;align-items:center;gap:8px;padding:10px 20px 0;flex-wrap:wrap}.selection-bar span{font-size:13px;font-weight:800;margin-right:auto}.selection-bar .danger{color:var(--danger);border-color:#e0b3b6}.canvas-tip{margin:10px 20px 14px}.count-pill{font-size:12px;font-weight:800;background:#e8f4f9;color:var(--navy);padding:6px 9px;border-radius:99px}.estimate-empty{margin:22px 0;background:var(--soft);border:1px dashed #b7cbd7;border-radius:9px;padding:18px;color:var(--muted);font-size:14px;text-align:center}.estimate-lines{margin-top:18px;max-height:245px;overflow:auto;border-top:1px solid var(--line)}.estimate-line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.estimate-line strong{display:block;color:var(--navy)}.estimate-line small{color:var(--muted)}.estimate-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.estimate-total span{font-size:13px;font-weight:800}.estimate-total strong{font-size:23px;color:var(--navy)}#estimateForm label{display:block;font-size:12px;font-weight:800;color:var(--navy);margin-top:10px}#estimateForm input,#estimateForm textarea{margin-top:5px;font-size:14px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.primary{width:100%;border:0;border-radius:9px;background:var(--yellow);color:#13293a;padding:12px 14px;font-weight:900;margin-top:14px;cursor:pointer;box-shadow:0 3px 0 #d69a05}.primary:hover{background:#ffc83c}.secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.form-status{min-height:18px;font-size:12px;color:var(--muted);line-height:1.4}dialog{border:0;border-radius:14px;max-width:520px;padding:26px 28px;box-shadow:0 25px 70px rgba(4,31,53,.3);color:var(--ink)}dialog::backdrop{background:rgba(3,27,45,.65)}dialog li,dialog p{line-height:1.5;margin:9px 0}.dialog-close{float:right;border:0;background:transparent;font-size:28px;color:var(--muted);cursor:pointer}footer{min-height:52px;padding:13px clamp(18px,3vw,44px);background:var(--navy);color:#bdd5e4;display:flex;justify-content:space-between;gap:20px;font-size:12px}footer a{color:#fff}@media(max-width:1150px){.app-shell{grid-template-columns:250px 1fr}.estimate{grid-column:1/-1}.estimate #estimateForm{display:grid;grid-template-columns:repeat(2,1fr);gap:0 14px}.estimate #estimateForm h3,.estimate #estimateForm .primary,.estimate #estimateForm .secondary-actions,.estimate #estimateForm .form-status{grid-column:1/-1}}@media(max-width:760px){.topbar{height:auto;padding:12px 16px}.contact span{display:none}.app-shell{display:flex;flex-direction:column;padding:8px}.catalog,.estimate{padding:16px}.catalog-list{grid-template-columns:1fr 1fr}.product-card{grid-template-columns:42px 1fr}.product-card .add-button{grid-column:1/-1}.canvas-wrap{padding:0 8px}.dock-canvas{min-height:430px}.shoreline{width:58px}.estimate #estimateForm{display:block}.two-fields{grid-template-columns:1fr}footer{flex-direction:column}.canvas-tip{margin-left:12px;margin-right:12px}}@media(max-width:470px){.catalog-list{grid-template-columns:1fr}.brand strong{font-size:15px}.brand-mark{width:36px;height:36px}.contact a{font-size:14px}.workspace-head{padding:14px 12px}.toolbar button{padding:6px 8px}.secondary-actions{grid-template-columns:1fr}}
.product-card{touch-action:pan-y}.product-card:active{cursor:grabbing}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);max-width:220px;padding:9px 12px;border:2px solid var(--yellow);border-radius:8px;background:var(--navy);color:#fff;font-size:13px;font-weight:800;box-shadow:0 12px 28px rgba(6,47,82,.28)}.dock-canvas.drop-active{outline:4px solid rgba(243,181,27,.65);outline-offset:-5px}
.product-photo{display:block;width:52px;height:48px;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff}.layout-snapshot-wrap{margin:14px 0 4px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.layout-snapshot-wrap img{display:block;width:100%;height:auto;border-radius:5px}.layout-snapshot-wrap figcaption{text-align:center;margin-top:5px;font-size:12px;font-weight:800;color:var(--navy)}.secondary-actions{grid-template-columns:repeat(3,1fr)}
@media(max-width:470px){.product-photo{width:42px;height:44px}.secondary-actions{grid-template-columns:1fr}}
@media print{.topbar{height:60px}.catalog,.workspace,.help-button,.toolbar,.secondary-actions,.primary,.form-status,footer{display:none!important}.app-shell{display:block;padding:0}.estimate{box-shadow:none;border:0;overflow:visible}.estimate-lines{max-height:none}.layout-snapshot-wrap{display:block!important;break-inside:avoid}body{background:#fff}#estimateForm{display:grid!important;grid-template-columns:1fr 1fr;gap:0 16px}#estimateForm h3,#estimateForm label:last-of-type{grid-column:1/-1}}
