:root{font-family:Segoe UI,Trebuchet MS,sans-serif;color:#162533;background:linear-gradient(150deg,#f2f7f5,#e3eef6 40%,#f8efe8)}*{box-sizing:border-box}body{margin:0;min-height:100vh}.layout{max-width:1100px;margin:0 auto;padding:1rem}.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;border-radius:12px;background:#fffc;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.brand-title{margin:0;line-height:0}.brand-link{display:inline-flex;align-items:center}.brand-link img{display:block;width:min(280px,56vw);height:auto}.topbar nav{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.topbar a{text-decoration:none;color:#0a5b8f;font-weight:600}.list,.detail-grid{display:grid;gap:1rem;margin-top:1rem}.card{padding:1rem;border-radius:12px;background:#fff;border:1px solid #dbe7f0;display:flex;justify-content:space-between;align-items:center}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}.photo-card{display:block}.photo-card img{width:100%;height:150px;object-fit:cover;border-radius:8px}.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.kanban-column{background:#fff;border:1px solid #dbe7f0;border-radius:12px;padding:.75rem;min-height:150px;transition:background .12s ease,border-color .12s ease}.task-card{margin-top:.5rem;padding:.6rem;background:#edf4fa;border-radius:8px;cursor:grab}.quote-form{display:grid;gap:.8rem;max-width:820px}.quote-form input,.quote-form select{width:100%;padding:.55rem;border-radius:8px;border:1px solid #c8d6e3}.line-row{display:grid;grid-template-columns:1.2fr 2fr 1fr 1fr;gap:.5rem}button{width:fit-content;border:none;border-radius:8px;padding:.6rem .9rem;background:#0a5b8f;color:#fff;font-weight:600;cursor:pointer}.success{color:#0f6b3c;font-weight:600}.error{color:#9a1f1f;font-weight:600}.empty{color:#586471}.card-stack{background:#fff;border:1px solid #dbe7f0;border-radius:12px;padding:1rem}.task-actions{margin-top:1rem;display:grid;gap:.5rem}.task-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;border:1px solid #dbe7f0;padding:.65rem;border-radius:10px}.task-row div{display:flex;gap:.4rem}.link-button{display:inline-block;width:fit-content;border:none;border-radius:8px;padding:.6rem .9rem;background:#0a5b8f;color:#fff;font-weight:600;text-decoration:none}.proposal-row{display:flex;gap:.75rem;align-items:center;border:1px solid #dbe7f0;border-radius:10px;padding:.5rem}.proposal-row img{width:110px;height:80px;object-fit:cover;border-radius:8px}.proposal-thumb{position:relative;width:110px;height:80px;flex:0 0 110px}.proposal-thumb img{width:100%;height:100%;object-fit:cover}.proposal-zone{position:absolute;border:1px solid rgba(255,255,255,.75);border-radius:4px}.auth-card{max-width:560px;margin:2rem auto;background:#fff;border:1px solid #dbe7f0;border-radius:14px;padding:1.3rem}.visual-preview{background:#fff;border:1px solid #dbe7f0;border-radius:12px;padding:1rem}.preview-image-wrap{position:relative;border-radius:10px;overflow:hidden}.preview-image-wrap img{width:100%;max-height:360px;object-fit:cover;display:block}.preview-image-wrap div{position:absolute;top:0;right:0;bottom:0;left:0}.preview-editor{cursor:crosshair;-webkit-user-select:none;user-select:none}.editable-zone,.draft-zone{position:absolute;border:2px solid rgba(255,255,255,.85);border-radius:6px}.editable-zone{display:flex;align-items:flex-end;justify-content:flex-start;text-align:left;padding:.35rem;color:#10202e}.editable-zone span{background:#ffffffdb;border-radius:6px;padding:.15rem .35rem;font-size:.75rem}.editable-zone-active{outline:3px solid #0a5b8f}.draft-zone{background:#0a5b8f33;border-style:dashed}.editor-actions{display:flex;gap:.5rem;flex-wrap:wrap}.zone-list{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}.zone-chip{background:#edf4fa;color:#0f2940}.zone-chip-active{background:#0a5b8f;color:#fff}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin:1rem 0}.section-heading input{min-width:240px;padding:.6rem;border-radius:8px;border:1px solid #c8d6e3}.materials-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:1rem}.measurements-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.measurement-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.measurement-summary{display:flex;gap:.5rem;flex-wrap:wrap}.measurement-summary span,.measurement-summary strong{border-radius:999px;padding:.35rem .6rem;background:#edf4fa}.measurements-list{display:grid;gap:.8rem}.measurement-card{display:grid;gap:1rem;border:1px solid #dbe7f0;border-radius:10px;padding:1rem;background:#fff}.materials-grid{display:grid;gap:.75rem;align-content:start}.material-card{width:100%;display:grid;grid-template-columns:auto 1fr;gap:.35rem .65rem;text-align:left;background:#fff;color:#162533;border:1px solid #dbe7f0;border-radius:10px}.material-card strong,.material-card small,.material-card em{grid-column:2}.material-card small{color:#586471}.material-card em{color:#0a5b8f;font-style:normal;font-weight:700}.material-card-active{border-color:#0a5b8f;box-shadow:0 0 0 2px #0a5b8f24}.material-swatch{width:1.15rem;height:1.15rem;border-radius:50%;border:1px solid #b7c6d3;grid-row:span 3;margin-top:.1rem}.material-detail{background:#fff;border:1px solid #dbe7f0;border-radius:12px;padding:1rem;display:grid;gap:1rem}.material-hero{height:180px;border-radius:10px;display:grid;place-items:center;overflow:hidden}.material-hero img{width:100%;height:100%;object-fit:cover}.material-hero span{font-size:3rem;font-weight:800;color:#1625338f}.eyebrow{margin:0;color:#0a5b8f;font-weight:700;text-transform:uppercase;font-size:.75rem}.spec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.65rem}.spec-grid div{border:1px solid #dbe7f0;border-radius:8px;padding:.7rem;background:#f8fbfd}.spec-grid span{display:block;color:#586471;font-size:.78rem}.material-tags{display:flex;flex-wrap:wrap;gap:.5rem}.material-tags span,.quote-summary span,.quote-summary strong{border-radius:999px;padding:.35rem .6rem;background:#edf4fa}.quote-summary{display:flex;gap:.5rem;flex-wrap:wrap}@media (max-width: 820px){.topbar,.card{flex-direction:column;align-items:flex-start}.kanban,.line-row,.materials-layout,.measurements-layout,.measurement-input-grid,.spec-grid{grid-template-columns:1fr}.section-heading{flex-direction:column;align-items:stretch}}
