/* Planning tools (3.13): checklist, photo gallery, typical cost range, designer print/export. */
/* ---- checklist ---- */
.checklist-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.checklist-head h2{margin:0}.checklist-head .eyebrow{margin-bottom:8px}
.checklist-meter,.stage-meter{height:10px;border-radius:10px;background:var(--line);overflow:hidden;min-width:200px;flex:1;max-width:420px}
.checklist-meter span,.stage-meter span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--violet),var(--accent));border-radius:10px;transition:width .4s ease}
.stage-meter{max-width:none;height:6px;margin:8px 0 12px}
.checklist-stages{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;align-items:start}
.checklist-stage{margin:0}.checklist-stage header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.checklist-stage h3{font-size:20px;margin:0}
.checklist-stage ul{list-style:none;margin:0;padding:0}
.check-item{position:relative;padding:10px 26px 10px 0;border-top:1px solid var(--line)}
.check-item label{display:flex;gap:12px;align-items:flex-start;font-weight:500;font-size:16px;margin:0;cursor:pointer;line-height:1.45}
.check-item input[type=checkbox]{flex-shrink:0;margin-top:3px}
.check-item.done label span{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 60%,transparent)}
.check-item details{margin:4px 0 0 30px;font-size:14px}.check-item summary{font-size:14px;font-weight:500;color:var(--violet);padding:2px 0}
.check-item textarea{font-size:15px;margin:6px 0;padding:8px 10px}
.check-del{position:absolute;right:0;top:8px;border:0;background:none;color:var(--muted);font-size:20px;line-height:1;padding:2px 4px}
.check-del:hover{color:#b33d36}
.check-add{display:flex;gap:8px;margin-top:12px}.check-add input{font-size:15px;padding:8px 10px}.check-add .button{flex-shrink:0}
/* ---- photos ---- */
.photo-filter{display:inline-flex;gap:4px;background:var(--line);padding:4px;border-radius:10px;margin:6px 0 16px}
.photo-filter button{border:0;background:none;padding:7px 14px;border-radius:7px;font-size:15px;color:var(--muted)}
.photo-filter button.active{background:var(--white);color:var(--ink);box-shadow:0 2px 8px #14204014}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.photo-card{position:relative;margin:0;background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.photo-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #1420401a}
.photo-open{display:block;width:100%;border:0;padding:0;background:var(--paper);cursor:zoom-in}
.photo-open img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.photo-stage{position:absolute;left:10px;top:10px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:20px;background:#ffffffe6;color:#172037}
.photo-stage.after{background:#e3f4e8;color:#2f6b45}.photo-stage.during{background:#fff0d9;color:#8a5b1b}
.photo-card figcaption{padding:10px 12px 4px;display:grid;gap:2px}.photo-card figcaption strong{font-size:15px;overflow-wrap:anywhere}
.photo-card figcaption small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.photo-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px 12px}
.photo-actions select{width:auto;font-size:14px;padding:5px 8px}.photo-actions .text-link{border:0;background:none;color:#b33d36;font-size:14px;padding:4px}
.compare-view{position:relative;border-radius:12px;overflow:hidden;background:var(--paper);aspect-ratio:4/3;margin-top:6px;user-select:none}
.compare-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.compare-before-wrap{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}
.compare-handle{position:absolute;top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 0 1px #0003;pointer-events:none}
.compare-handle:after{content:'⇆';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:16px;color:#172037;box-shadow:0 4px 14px #0003}
.compare-view input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.compare-tag{position:absolute;bottom:10px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:20px;background:#000a;color:#fff;pointer-events:none}
.compare-tag.before{left:10px}.compare-tag.after{right:10px}
.photo-lightbox{max-width:min(1100px,calc(100vw - 24px));width:100%;padding:16px;background:#111827;color:#fff;border:0}
.photo-lightbox img{display:block;max-width:100%;max-height:72vh;margin:0 auto;border-radius:8px}
.lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.lightbox-bar div{text-align:center;display:grid;gap:2px}.lightbox-bar small{color:#c8d0e0;font-size:13px}
.lightbox-bar .button.ghost{color:#fff;border-color:#ffffff40}.lightbox-bar .button.ghost:hover{background:#ffffff14}
.lightbox-close{position:absolute;right:10px;top:4px;border:0;background:none;color:#fff;font-size:30px;line-height:1;z-index:2}
/* ---- typical cost range (planner budget) ---- */
.cost-range-card{margin-top:22px}
.cost-range-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap}
.cost-range-head h2{font-size:30px;letter-spacing:-.04em;margin:0 0 4px}.cost-range-head .eyebrow{margin-bottom:8px}
.cost-range-size{min-width:170px;max-width:220px}.cost-range-size .field{margin:0;font-size:14px}
.cost-range-bar{display:flex;height:10px;border-radius:10px;overflow:hidden;margin:16px 0}
.cost-range-bar .low{flex:1;background:#d7e0ee}.cost-range-bar .mid{flex:1.4;background:var(--violet)}.cost-range-bar .high{flex:1;background:#e8b899}
.cost-range-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.band-chip{display:grid;gap:2px;text-align:left;border:1px solid var(--line);background:var(--white);border-radius:12px;padding:12px 14px;color:var(--ink);transition:border-color .2s,box-shadow .2s,transform .2s}
.band-chip:hover{transform:translateY(-1px)}.band-chip.active{border:2px solid var(--violet);padding:11px 13px;box-shadow:0 8px 20px #6665d822}
.band-chip span{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.band-chip strong{font-size:20px;letter-spacing:-.03em}.band-chip small{font-size:13px;color:var(--muted)}
.cost-range-split{display:flex;gap:24px;flex-wrap:wrap;margin:14px 0}.cost-range-split div{display:grid}.cost-range-split span{font-size:14px;color:var(--muted)}.cost-range-split strong{font-size:19px}
.cost-range-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cost-range-actions .fine-print{margin:0}
.cost-range-basis{margin-top:12px;font-size:15px}.cost-range-basis p,.cost-range-basis li{font-size:15px;color:var(--muted)}
/* ---- designer export ---- */
.design-export{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.print-only{display:none}
@media (max-width:600px){
 .checklist-stages{grid-template-columns:minmax(0,1fr)}.checklist-meter{min-width:0;width:100%;max-width:none}
 .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-card figcaption{padding:8px 10px 2px}.photo-actions{padding:4px 10px 10px;flex-wrap:wrap}
 .cost-range-bands{grid-template-columns:minmax(0,1fr)}.cost-range-size{max-width:none;width:100%}.cost-range-head h2{font-size:25px}
 .lightbox-bar{flex-wrap:wrap;justify-content:center}
 .design-lines .section-tools{flex-direction:column;align-items:stretch}
 .design-export{width:100%}.design-export .button{flex:1;min-width:0}
}
@media print{
 .verify-banner,.keep-visible,.scroll-progress,.design-page .no-print,.design-page .design-intro,
 .design-page .kind-picker,.design-page .design-controls,.design-page .design-save,.design-page .cheap-link,
 .design-page .unit-toggle,.design-page .currency-pick,.design-page .lines-table th:last-child,.design-page .lines-table td:last-child{display:none!important}
 .design-page .print-only{display:block}
 .design-page .design-print-head{margin:0 0 12px;font-size:14px;border-bottom:1px solid #ccc;padding-bottom:8px}.design-page .design-print-head strong{font-size:18px}.design-page .design-print-head span{float:right}.design-page .design-print-head p{margin:4px 0 0;font-size:12px;color:#444}
 .design-page .design-layout{display:block}.design-page .design-stage{position:static}
 .design-page .preview-card,.design-page .total-card,.design-page .panel{box-shadow:none;break-inside:avoid}
 .design-page .preview-canvas{max-width:560px;margin:auto}
 .design-page .total-card{background:#fff!important;color:#000;border:1px solid #ccc}.design-page .total-card *{color:#000!important}
 .design-page .lines-table{min-width:0;font-size:12px}.design-page .lines-table td,.design-page .lines-table th{padding:6px 4px}
 .design-page .price-edit input{border:0;padding:0;width:5.5em;font-size:12px;background:none;color:#000}
 .design-page .typical{border:1px solid #ccc;background:none}
 .design-page .table-scroll{overflow:visible;padding:0}
}
