/* Small-job templates: quick start, selections board, appliances, photo timeline + slider, checklist, deliveries, layout planner. Uses theme.css tokens. */
.quick-start { margin: .2rem 0 1.2rem; }
.qs-title { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 .5rem; }
.qs-row { display: flex; gap: .6rem; overflow-x: auto; padding: .15rem .1rem .5rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.qs-row::-webkit-scrollbar { display: none; }
.qs-tile { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .5rem 1rem .5rem .6rem; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.qs-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.qs-tile:active { transform: scale(.97); }
.qs-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.type-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: .2rem .65rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-top: .2rem; }
.hero .type-chip { background: rgba(255,255,255,.16); color: #f6d9bf; margin-left: .3rem; vertical-align: middle; }
.tab.tab-add { border-style: dashed; background: transparent; color: var(--muted); }

/* status chips for selections / appliances */
.badge.st-considering { background: var(--surface-3); color: var(--ink-2); }
.badge.st-selected { background: var(--info-bg); color: var(--info); }
.badge.st-ordered, .badge.st-shipped { background: var(--warn-bg); color: var(--warn); }
.badge.st-delivered { background: #e3ecd5; color: #476b1f; }
.badge.st-installed { background: var(--ok-bg); color: var(--ok); }
.badge.st-pending { background: var(--warn-bg); color: var(--warn); }
.badge.st-changes { background: var(--bad-bg); color: var(--bad); }
.badge .icon svg { width: 14px; height: 14px; }

.small-kpis { margin-bottom: 1rem; }
.chips { margin: .2rem 0 1rem; }
.sel-group { margin-bottom: 1.4rem; }
.sel-group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: 1.05rem; }
.sel-group h3 small { color: var(--muted); font-weight: 600; }
.sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: .8rem; }
.sel-card, .app-card { display: flex; gap: .9rem; padding: .85rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.sel-card:hover, .app-card:hover { box-shadow: var(--shadow-2); }
.sel-photo { flex: none; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; border: 0; padding: 0; }
.sel-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-photo.empty { background: var(--accent-soft); color: var(--accent); }
.sel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sel-top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.sel-top strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.sel-line { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; font-size: .93rem; }
.sel-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .92rem; }
.sel-meta b small { color: var(--muted); font-weight: 500; }
.sel-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.status-select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); padding: 0 .6rem; font-weight: 600; color: var(--ink); }
.btn.small.on { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .2rem .9rem; margin: .1rem 0; }
.spec { display: flex; flex-direction: column; font-size: .88rem; min-width: 0; }
.spec dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.cs-card .sel-body { padding: .1rem 0; }
.link-btn { background: none; border: 0; color: var(--muted); padding: .4rem; min-width: 32px; min-height: 32px; vertical-align: middle; }

/* photo timeline + compare slider */
.timeline .tl-day { margin-bottom: 1.2rem; }
.timeline .tl-day h3 { font-size: .95rem; color: var(--muted); margin: 0 0 .4rem; }
.tl-photo { position: relative; }
.stage-tag { position: absolute; top: .4rem; left: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 99px; background: rgba(23,35,58,.82); color: #fff; }
.stage-tag.st-before { background: rgba(179,55,42,.9); } .stage-tag.st-during { background: rgba(154,100,8,.9); } .stage-tag.st-after { background: rgba(35,114,74,.92); }
.compare { --pos: 50%; position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare .cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.cmp-tag { position: absolute; top: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; background: rgba(23,35,58,.8); color: #fff; pointer-events: none; }
.cmp-tag.l { left: .6rem; } .cmp-tag.r { right: .6rem; }
.cmp-range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .7rem; }
.cmp-pick label { display: flex; flex-direction: column; gap: .2rem; font-weight: 650; font-size: .85rem; flex: 1 1 220px; min-width: 0; }
.cmp-pick select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); padding: 0 .6rem; max-width: 100%; }
.compare-card { margin-bottom: 1rem; }

/* checklist */
.phase-list, .punch-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.phase, .punch { display: flex; align-items: center; gap: .8rem; padding: .55rem .6rem; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; transition: background var(--dur), border-color var(--dur); }
.phase.current { background: var(--accent-soft); border-color: var(--accent-line); }
.phase.done strong, .punch.done strong { text-decoration: line-through; color: var(--muted); }
.phase-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; align-items: flex-start; }
.phase-main small { color: var(--muted); } .phase-main small.ok { color: var(--ok); }
.phase-tools { display: flex; }
.check-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); color: transparent; display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.check-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.02); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); } .icon-btn:disabled { opacity: .3; }
.rot-up svg { transform: rotate(-90deg); } .rot-down svg { transform: rotate(90deg); }
.punch-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; } .punch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.progress.over > div { background: var(--bad); }

/* deliveries */
.deliv-list { display: flex; flex-direction: column; gap: .5rem; }
.deliv { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .75rem .9rem; min-height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.deliv:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.deliv-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.deliv.late .deliv-ic, .deliv.order-now .deliv-ic { background: var(--bad-bg); color: var(--bad); } .deliv.done .deliv-ic { background: var(--ok-bg); color: var(--ok); } .deliv.ordered .deliv-ic { background: var(--info-bg); color: var(--info); }
.deliv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .deliv-main small, .deliv-dates small { color: var(--muted); }
.deliv-dates { display: flex; flex-direction: column; text-align: right; flex: none; }

/* overview */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 72px; padding: .5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: .85rem; text-decoration: none; box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur); text-align: center; }
.qa:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); } .qa .icon { color: var(--accent); }
.next-phase { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.next-phase strong { font-size: 1.15rem; display: block; } .next-phase small { color: var(--muted); }
.mini-budget .kpis { margin-bottom: .8rem; }
@media (max-width: 520px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }

/* layout planner */
.plan-nav { margin-bottom: 1rem; }
.plan-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1rem; align-items: start; }
.plan-side h3 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-palette { display: grid; grid-template-columns: 1fr; gap: .4rem; max-height: 70vh; overflow-y: auto; padding-right: .2rem; }
.pal-tile { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: .5rem; text-align: left; min-height: 46px; padding: .35rem .65rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pal-tile:hover { border-color: var(--accent); } .pal-tile strong { font-size: .88rem; font-weight: 650; } .pal-tile small { color: var(--muted); font-size: .72rem; }
.pal-sw { width: 14px; height: 14px; border-radius: 4px; background: #e7e2d8; border: 1px solid #7b6a54; }
.pal-sw.base { background: #e9d5b8; } .pal-sw.wall { background: #f6efe3; border-style: dashed; } .pal-sw.tall { background: #d9c0a0; } .pal-sw.appliance { background: #d5dde5; } .pal-sw.fixture { background: #dbe7ee; } .pal-sw.island { background: #ecd9bd; } .pal-sw.opening { background: #fff; }
.drag-ghost { position: fixed; z-index: 1000; transform: translate(-50%, -120%); padding: .35rem .8rem; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; pointer-events: none; box-shadow: var(--shadow-3); }
.plan-toolbar { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: end; margin-bottom: .7rem; }
.pf { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; font-weight: 650; color: var(--muted); min-width: 0; }
.pf input { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 .6rem; color: var(--ink); font-size: 1rem; width: 100%; }
.pf.inline input { width: 110px; }
.check-field.snap { display: flex; align-items: center; gap: .4rem; min-height: 44px; }
.plan-canvas { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.plan-svg { display: block; width: 100%; height: auto; max-height: 72vh; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.plan-svg:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-soft); }
.plan-item { cursor: grab; touch-action: none; } .plan-item:active { cursor: grabbing; }
.plan-item.sel rect:first-child { filter: drop-shadow(0 0 3px rgba(198,93,59,.5)); }
.plan-warn { color: var(--bad); background: var(--bad-bg); padding: .5rem .8rem; border-radius: 12px; font-weight: 600; margin: .6rem 0 0; }
.plan-panel { margin-top: .8rem; } .plan-panel.empty { opacity: .8; } .plan-panel h3 { margin-top: 0; font-size: 1rem; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.elev-svg { width: 100%; height: auto; max-height: 60vh; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.elev-view .segmented { margin-bottom: .8rem; }
.sched-table .grp th { background: var(--surface-3); text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sched-table td small { display: block; color: var(--muted); } .sched-table td.num { text-align: right; font-weight: 700; }
@media (max-width: 880px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-palette { display: flex; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: .4rem; scrollbar-width: none; }
  .pal-tile { flex: none; grid-template-columns: 14px auto; } .pal-tile small { display: none; }
  .plan-side { order: 2; } .plan-main { order: 1; }
}
@media print {
  .plan-side, .plan-toolbar, .plan-panel, .plan-nav, .plan-warn { display: none !important; }
  .plan-layout { display: block; } .plan-svg { max-height: none; }
}
.plan-side, .plan-main { min-width: 0; }
.plan-svg, .plan-canvas { max-width: 100%; }

/* Owner's View: selections, phases, appliances */
.ov-item.sel { display: flex; gap: 1rem; align-items: flex-start; }
.ov-sel-photo { flex: none; width: 104px; height: 104px; border-radius: 18px; overflow: hidden; border: 0; padding: 0; background: var(--surface-3); }
.ov-sel-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-sel-body { flex: 1; min-width: 0; } .ov-sel-body h3 { margin: 0 0 .15rem; } .ov-sel-body p { margin: .15rem 0; overflow-wrap: anywhere; }
.ov-cat h3 { margin: 1rem 0 .5rem; font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }
.ov-phases { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .35rem; }
.ov-phases li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 14px; background: var(--surface-2); font-size: 1.05rem; }
.ov-phases li.done { color: var(--muted); } .ov-phases li small { margin-left: auto; color: var(--muted); }
.ov-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.ov-phases li.done .ov-tick { background: var(--ok); border-color: var(--ok); }
.ov-appl { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ov-appl li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .6rem .8rem; border-radius: 14px; background: var(--surface-2); }
.ov-appl li b { min-width: 7.5rem; }
@media (max-width: 520px) { .ov-item.sel { flex-direction: column; } .ov-sel-photo { width: 100%; height: 160px; } }
