.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.toolbar .search{margin:0;max-width:300px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{background:white;border:1px solid var(--line);color:var(--muted);padding:9px 15px;border-radius:8px;font-size:.875rem}.chip.selected{background:var(--navy);border-color:var(--navy);color:white}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-card{background:var(--tint-soft);border:2px solid var(--blue);border-radius:16px;overflow:hidden;text-align:left;color:var(--ink);padding:0;transition:transform .2s,box-shadow .2s}.project-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #1335410c}.cover{height:170px;position:relative;background:#d8e3e6}.cover img{width:100%;height:100%;object-fit:contain;background:#c7dae2}.cover .badge{position:absolute;top:13px;left:13px;box-shadow:0 2px 10px #0001}.card-body{padding:20px}.card-body p{font-size:.875rem;color:var(--muted);margin-top:5px}.card-foot{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid var(--line);margin-top:18px;padding-top:14px;font-size:.8rem;color:var(--muted)}.inventory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.asset-card{background:var(--tint-soft);border:2px solid var(--blue);border-radius:14px;overflow:hidden}.asset-photo{height:155px;background:#e8eff5;position:relative;overflow:hidden}.asset-photo img{height:100%;width:100%;object-fit:cover}.asset-photo .badge{position:absolute;bottom:9px;left:9px}.asset-body{padding:17px}.asset-body h3{line-height:1.4}.asset-body p{font-size:.8rem;color:var(--muted);margin:6px 0}.asset-body .btn{width:100%;font-size:.875rem;margin-top:10px}.asset-code{font-family:monospace;font-size:.8rem;color:var(--muted)}.back{margin-bottom:20px}.project-hero{display:grid;grid-template-columns:1fr 270px;gap:24px;margin-bottom:25px}.project-hero img{width:100%;height:155px;border-radius:13px;object-fit:cover}.project-meta{display:flex;gap:25px;flex-wrap:wrap;margin-top:20px;font-size:.875rem}.project-meta small{display:block;color:var(--muted);font-size:.75rem;margin-bottom:4px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{background:none;padding:13px 2px;color:var(--muted);font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}.tabs button.active{border-color:var(--blue);color:var(--blue)}.room{border:2px solid var(--blue);border-radius:12px;background:var(--tint-soft);margin-bottom:15px}.room-head{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.room-head p{color:var(--muted);font-size:.8rem;margin-top:4px}.list-item{display:flex;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--line)}.list-item .grow{flex:1;min-width:0}.list-item p{font-size:.8rem;color:var(--muted);margin-top:4px}.thumb{width:51px;height:51px;border-radius:9px;object-fit:cover;background:#e4ecf3}.list-item .btn{font-size:.8rem;padding:8px 11px}.process{display:flex;gap:0;padding:20px 0}.step{flex:1;border-top:3px solid #dee7ef;padding:10px 5px;font-size:.8rem;color:var(--muted)}.step.done{border-color:var(--blue);color:var(--blue)}.step.current{font-weight:700;background:#e3f0f8}.invoice-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}th{text-align:left;background:#f8fafb;color:var(--muted);font-weight:500}td,th{padding:17px 21px;border-bottom:1px solid var(--line)}td .btn{font-size:.8rem;padding:7px 10px}.money{font-variant-numeric:tabular-nums;font-weight:600}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:.75rem;font-weight:700;letter-spacing:.5px;color:var(--muted);padding:0 0 8px}.calendar-grid{display:grid;grid-template-columns:repeat(5,1fr)}.calendar-grid.days-7{grid-template-columns:repeat(7,1fr)}.day{border-right:2px solid var(--blue);border-bottom:2px solid var(--blue);padding:10px 8px}.day:last-child{border-right:0}.day:nth-child(7n){border-right:0}.day:nth-last-child(-n+7){border-bottom:0}.day.other-month{opacity:.4}.day-date{font-size:.8rem;color:var(--muted);text-align:center;margin-bottom:8px}.day-date strong{display:block;font-size:1.05rem;color:var(--ink);margin-top:0}.day.today{background:var(--tint-soft)}.day.today .day-date strong{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff}.day-dots{display:flex;gap:4px;justify-content:center;margin-bottom:6px}.day-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);flex-shrink:0}.day-dot.amber{background:#c27d36}.day-dot.gcal{background:#5f7083}.day-date .wk{display:none}.event{display:block;width:100%;text-align:left;border-left:3px solid var(--blue);padding:12px 10px;background:#e1eef7;color:#0b4787;border-radius:5px;margin-bottom:12px;font-size:.8rem;line-height:1.5}.event strong{display:block}.event.amber{border-color:#c27d36;background:#fff1e0;color:#815d32}.event.gcal{border-color:#5f7083;background:#eef1f3;color:#3d4b57;text-decoration:none;cursor:pointer}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.settings-grid.cols-2{grid-template-columns:1fr 1fr}.settings-grid.cols-3{grid-template-columns:repeat(3,1fr)}.template-group{margin-bottom:28px}.template-group:last-child{margin-bottom:0}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.template-card{background:white;border:2px solid var(--blue);border-radius:13px;padding:17px;display:flex;flex-direction:column;gap:10px}.template-card p.sub{flex:1}.panel-head.compact{padding:14px 18px}.list-item.compact{padding:10px 16px}.list-item.compact h3{font-size:.9rem}.list-item.compact .grow p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.panel.compact .empty{padding:22px 18px;font-size:.875rem}.module-row{display:flex;gap:16px;align-items:center;padding:19px 23px;border-bottom:1px solid var(--line)}.module-row:last-child{border:0}.module-row .grow{flex:1}.module-row p{font-size:.875rem;color:var(--muted);margin-top:4px}.switch{appearance:none;width:43px;height:25px;border-radius:30px;background:#c3ced2;position:relative;cursor:pointer;flex-shrink:0;transition:.2s}.switch:checked{background:var(--blue)}.switch:before{content:'';position:absolute;background:white;width:19px;height:19px;border-radius:50%;top:3px;left:3px;transition:.2s;box-shadow:0 1px 3px #0002}.switch:checked:before{transform:translateX(18px)}.preset{background:white;border:1px solid var(--line);border-radius:10px;padding:16px;text-align:left;color:var(--ink);width:100%;margin-bottom:12px}.preset.selected{border:2px solid var(--blue);padding:15px;background:#f2f8fc}.preset p{font-size:.875rem;color:var(--muted);margin-top:5px}.integrations{display:grid;grid-template-columns:1fr 1fr;gap:15px}.integrations.row4{grid-template-columns:repeat(4,1fr)}.integration{padding:22px;border:2px solid var(--blue);border-top:4px solid var(--line);border-radius:13px;background:var(--tint-soft)}.integration p{font-size:.875rem;color:var(--muted);margin:10px 0 18px}.integration-logo{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;background:#e7f3e9;color:#1b753f;font-size:1.2rem;font-weight:800;margin-bottom:13px}.integration-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.badge.soon{background:#eef2f4;color:#5f7083}.integration.brand-qbo{border-top-color:#2ca01c}.integration.brand-qbo .integration-logo{background:#eafaea;color:#1a7d0f}.integration.brand-stripe{border-top-color:#635bff}.integration.brand-stripe .integration-logo{background:#edecff;color:#4b44d6}.integration.brand-docusign{border-top-color:#ffcc22}.integration.brand-docusign .integration-logo{background:#fff8dd;color:#8a6c07}.integration.brand-gcal{border-top-color:#4285f4}.integration.brand-gcal .integration-logo{background:#e8f0fe;color:#1a56c4}
.panel-highlight{border:2px solid var(--blue)}
.sub.dark{color:var(--ink)}
.stat-note.dark{color:var(--ink)}
.stat-top.dark{color:var(--ink)}
.stat .icon{width:18px;height:18px;color:var(--blue)}
.tier-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:18px}
.tier-card{border-radius:13px;overflow:hidden;background:white;border:1px solid var(--line);display:flex;flex-direction:column}
.tier-card.current{border-color:var(--blue);border-width:2px}
.tier-banner{padding:18px 16px;color:white;position:relative}
.tier-banner h3{color:white;font-size:1rem;font-family:Manrope,sans-serif}
.tier-price{font-family:Manrope,sans-serif;font-weight:800;font-size:1.5rem;margin-top:6px}
.tier-price small{font-size:.7rem;font-weight:600;opacity:.85}
.tier-current-badge{position:absolute;top:10px;right:10px;background:white;color:var(--ink);font-size:.65rem;font-weight:700;padding:3px 8px;border-radius:20px}
.tier-body{padding:16px;flex:1;display:flex;flex-direction:column;gap:9px}
.tier-body ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;flex:1}
.tier-body .btn{width:100%}
.tier-body li{font-size:.78rem;color:var(--ink);display:flex;gap:6px;align-items:flex-start}
.tier-free .tier-banner{background:linear-gradient(135deg,#8a99a3,#5f7083)}
.tier-starter .tier-banner{background:linear-gradient(135deg,#5b9df9,#2f5fd6)}
.tier-pro .tier-banner{background:linear-gradient(135deg,#2b9fdc,#0079bc)}
.tier-business .tier-banner{background:linear-gradient(135deg,#8b7ff5,#5b4fd1)}
.tier-scale .tier-banner{background:linear-gradient(135deg,#f0a94e,#ac5a22)}.field-wrap{max-width:760px;margin:auto}.field-header{background:var(--navy);color:white;padding:25px;border-radius:15px 15px 0 0}.field-header p{color:#bed1d7;font-size:.875rem;margin-top:8px}.field-toolbar{padding:20px;background:#e6f0f7;display:flex;align-items:center;justify-content:space-between;gap:10px}.progressbar{height:7px;background:#cddae6;border-radius:20px;overflow:hidden;margin:12px 0}.progressbar>span{height:100%;background:var(--blue);display:block;transition:width .3s}.scan-box{padding:22px;border:2px dashed #9dbbd3;border-radius:12px;text-align:center;background:#f6fafd;margin:20px 0}.scan-box>.icon{width:40px;height:40px;color:var(--blue);margin-bottom:10px}.scan-box p{font-size:.875rem;color:var(--muted);margin:5px 0 14px}.feed{font-size:.875rem;display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.feed small{color:var(--muted);font-size:.75rem;display:block;margin-top:4px}.portal{max-width:880px;margin:auto}.portal-cover{height:220px;width:100%;object-fit:cover;border-radius:16px}.portal-title{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:25px 0}.portal-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:25px}.portal-action{padding:22px;background:var(--tint-soft);border:2px solid var(--blue);border-radius:12px;text-align:left;color:var(--ink)}.portal-action>.icon{color:var(--blue);margin-bottom:12px}.portal-action p{font-size:.8rem;color:var(--muted);margin-top:6px}.action-link{background:none;color:var(--blue);padding:0;font-size:.875rem;font-weight:600}.mini-label{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px}.onboarding-steps{display:flex;gap:8px;margin-bottom:22px}.onboarding-steps span{height:5px;flex:1;background:#dfe8f0;border-radius:3px}.onboarding-steps span.active{background:var(--blue)}.company-name{overflow-wrap:anywhere}.quote-sheet{background:var(--tint-soft);padding:28px;border:2px solid var(--blue);border-radius:12px}.quote-total{display:flex;justify-content:space-between;font-size:1.2rem;font-weight:700;border-top:2px solid var(--ink);padding:18px 0}.photo-caption{font-size:.75rem;color:var(--muted);margin-top:8px}.toolbar select{padding:10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}.date-banner{font-size:.8rem;color:var(--muted);margin-top:25px}.notes-list{margin:12px 0;padding:12px 15px;background:#f5f8fb;border-radius:8px;font-size:.9rem;white-space:pre-wrap}.muted{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:16px}.demo-link{background:none;color:var(--blue);font-size:.875rem;font-weight:600;padding:7px}.top-actions{flex-wrap:wrap}.menu-summary{font-size:.85rem;color:var(--muted);margin-bottom:22px}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-grid.cols-3{grid-template-columns:repeat(2,1fr)}.tier-cards{grid-template-columns:repeat(2,1fr)}.integrations.row4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.cards{grid-template-columns:1fr}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.asset-photo{height:130px}.asset-body{padding:13px}.asset-body h3{font-size:.875rem}.asset-body .btn{font-size:.8rem;padding:9px}.project-hero{grid-template-columns:1fr}.project-hero img{height:170px}.project-meta{gap:17px}.calendar-weekdays{display:none}.calendar-grid{display:block}.day{border-right:0;border-bottom:2px solid var(--blue)}.day:nth-last-child(-n+7){border-bottom:2px solid var(--blue)}.day.other-month{display:none}.day-date{text-align:left;display:flex;align-items:center;gap:10px;margin-bottom:10px}.day-date .wk{display:inline;font-weight:700}.day-dots{justify-content:flex-start}.day-date strong{margin:0;font-size:1.1rem}.portal-actions{grid-template-columns:1fr}.portal-title{align-items:flex-start;flex-direction:column}.portal-cover{height:170px}.integrations{grid-template-columns:1fr}.integrations.row4{grid-template-columns:1fr}.tier-cards{grid-template-columns:1fr}.settings-grid.cols-3{grid-template-columns:1fr}.field-header{padding:20px}.field-toolbar{flex-wrap:wrap}.list-item{padding:15px 13px;gap:10px}.list-item .badge{font-size:.65rem;padding:4px 6px}.room-head{padding:16px}.top-actions .demo-link{display:none}.tabs{gap:18px}.toolbar .search{max-width:none}.quote-sheet{padding:18px}.step{font-size:.7rem}.process{overflow:auto}.page-heading{flex-wrap:wrap}.field-wrap .page-heading{gap:10px}.module-row{padding:18px}.portal-actions .portal-action{display:block}.cover{height:190px}}

/* Inventory unit cards: QR label, cost/purchase-date facts, overflow menu, inline history */
.unit-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;margin-bottom:20px}
.unit-card{display:flex;gap:16px;min-width:0;background:var(--tint-soft);border:2px solid var(--blue);border-radius:13px;padding:18px;position:relative}
.unit-card-qr{flex-shrink:0;width:110px;min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.unit-card-qr canvas{border-radius:6px}
.unit-card-code{font-family:monospace;font-size:.75rem;color:var(--muted)}
.unit-card-body{flex:1;min-width:0}
.unit-card-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:12px;margin:14px 0}
.unit-card-fact{min-width:0;display:flex;flex-direction:column;gap:3px}
.unit-card-fact .label{font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.unit-card-fact .value{font-weight:600;font-size:.9rem}
/* Opens inline (pushing the rest of the card down) rather than as a floating
   absolute-positioned popover -- a floating menu anchored to a small "..."
   button inside a narrow flex card measured its position wrong on mobile and
   could render past the card's edge, half-covered by the next card down.
   <details> already shows/hides menu-panel natively; no extra JS needed. */
.menu{margin-top:10px}
.menu>summary{list-style:none;cursor:pointer;display:inline-block}
.menu>summary::-webkit-details-marker{display:none}
.menu-panel{display:flex;flex-direction:column;gap:4px;margin-top:8px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:6px}
.menu-item{background:none;color:var(--ink);text-align:left;padding:14px 16px;border-radius:6px;font-weight:600;font-size:1rem}
.menu-item:hover{background:white}
.unit-history-panel{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
.history-row{padding:8px 0;border-bottom:1px solid var(--line)}
.history-row:last-child{border-bottom:0}
.history-row p{font-size:.8rem}
#print-labels{display:none}
.print-label{width:2.625in;height:1in;display:flex;align-items:center;gap:.15in;padding:.05in;box-sizing:border-box;page-break-inside:avoid}
.print-label-qr{width:80px;height:80px;flex-shrink:0}
.print-label-text{display:flex;flex-direction:column;justify-content:center;gap:.03in;min-width:0;overflow:hidden}
.print-label-text p{margin:0}
.print-label-name{font:700 8pt/1.15 sans-serif;max-height:.4in;overflow:hidden}
.print-label-code{font-family:monospace;font-size:9pt;overflow-wrap:anywhere}
@media print{
body *{visibility:hidden}
#print-labels,#print-labels *{visibility:visible}
#print-labels{display:flex;flex-wrap:wrap;position:absolute;top:0;left:0}
@page{margin:0.5in 0.1875in}
}

/* Errors reported through the page-level status line: pinned to the top of the viewport so a failed click is never silently off-screen. */
#live-content>p[role=status].is-error{position:sticky;top:10px;z-index:30;background:#fdeeee;color:#8f2c2c;border:1px solid #e3b4b4;border-radius:10px;padding:12px 16px;margin:0 0 16px;box-shadow:0 4px 14px #0002;cursor:pointer;font-weight:600}

/* Proposal editor: one card per line item, saved-text/package pickers, attachments */
.proposal-editor h3{margin:18px 0 4px}.proposal-editor h3:first-child{margin-top:0}
.proposal-editor textarea{width:100%;min-height:140px;box-sizing:border-box}
.proposal-editor select{max-width:100%}
.proposal-editor-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.proposal-editor-row input{flex:1;min-width:200px;margin:0}
.qline{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px;background:#fff;display:grid;gap:8px}
.qline input{width:100%;margin:0;box-sizing:border-box}
.qline-nums{display:grid;grid-template-columns:90px 1fr auto;gap:8px;align-items:center}
.qline-catalog{position:relative}
.attachments{margin:16px 0 4px}.attachments h3{margin:0 0 6px}
.attach-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.attach-row .grow{flex:1;min-width:0}.attach-row .grow h3{margin:0;overflow-wrap:anywhere}.attach-row p{margin:2px 0 0;font-size:.8rem;color:var(--muted)}
.attach-upload{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.quote-notes{white-space:pre-wrap;margin:16px 0 0;line-height:1.55}
.quote-attachments{margin-top:20px}.quote-attachments h2{font-size:1.05rem;margin:0 0 10px}
.quote-attachments .attach-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:12px}
.quote-attachments .attach-images img{width:100%;height:160px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:#e4ecf3}
.quote-attachments .attach-file{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}

/* Inventory as a photo-tile grid: picture on top, name beneath */
.tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px 14px;margin:18px 0 20px}
.tile-grid>.empty{grid-column:1/-1}
.tile{display:flex;flex-direction:column;gap:6px;align-items:stretch;background:none;border:0;border-radius:0;padding:0;margin:0;text-align:left;font-weight:inherit;color:var(--ink);cursor:pointer;min-width:0}
.tile-photo{aspect-ratio:1;background:#e8eff5;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:grid;place-items:center;transition:border-color .15s,box-shadow .15s,transform .15s}
.tile-photo img{width:100%;height:100%;object-fit:cover;display:block}
.tile-nophoto{font-size:.75rem;color:var(--muted)}
button.tile:hover .tile-photo,button.tile:focus-visible .tile-photo{border-color:var(--blue);box-shadow:0 8px 20px #13354114;transform:translateY(-2px)}
button.tile:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:12px}
.tile-static{cursor:default}
.tile-name{font-weight:600;font-size:.875rem;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.tile-sub{font-size:.75rem;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.tile-flag{color:#ac5a22;font-weight:600}
@media(max-width:700px){.tile-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px 10px}}

.tile-icon{color:var(--blue);display:grid;place-items:center}
.tile-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.tile-actions .btn{font-size:.75rem;padding:6px 10px}
.tile-grid-actions{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.tile-grid-panel{padding:18px 20px;margin:0}
.tile .reserve-error{margin:4px 0 0;font-size:.75rem;line-height:1.35}
.panel-body .tile-grid{margin-top:10px}

.product-link-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.menu-danger{color:#ad3d3d}
.tile-badge{align-self:flex-start}
#live-content>p[role=status].is-notice{position:sticky;top:10px;z-index:30;background:#e6f2f8;color:#0b4787;border:1px solid #b9d7ea;border-radius:10px;padding:12px 16px;margin:0 0 16px;box-shadow:0 4px 14px #0002;cursor:pointer;font-weight:600}

/* Scan to move */
.scan-controls{display:grid;gap:14px}
.scan-input-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.scan-input-row label{flex:1;min-width:220px}
.scan-log{display:grid;gap:8px;margin-top:8px}
.scan-row{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}
.scan-row .grow{flex:1;min-width:0}.scan-row h3{margin:0;font-size:.95rem}.scan-row p{margin:2px 0 0;font-size:.8rem;color:var(--muted)}
.scan-error{color:#ad3d3d!important}

.quote-document{margin-top:20px}
.quote-document iframe{width:100%;height:min(75vh,720px);min-height:420px;border:1px solid var(--line);border-radius:12px;background:#fff;display:block;margin-bottom:8px}

/* Working days */
.working-days{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.working-day{display:flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600;cursor:pointer}
.working-day input{width:auto;margin:0}
.day.closed{background:#f0f2f3}
.day-closed{font-size:.68rem;text-transform:uppercase;letter-spacing:.5px;color:#7d8b93;text-align:center;margin:-8px 0 10px}

/* Portfolio brand color: hex box, presets, live preview */
.color-tools{display:grid;gap:10px;margin:6px 0 16px}
.color-tools input[type=text]{width:160px;margin:0;padding:10px 12px;border:1px solid #ccd8dc;border-radius:8px;background:#fff;font-family:monospace}
.color-hex-note{margin:0;min-height:1em;color:#ad3d3d;font-size:.8rem}
.field input[type=color]{display:block;width:72px;height:44px;padding:3px;cursor:pointer}
.color-swatches{display:flex;gap:8px;flex-wrap:wrap}
.color-swatch{width:30px;height:30px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.color-swatch:hover{transform:scale(1.1)}
.portfolio-preview{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--pp-tint,#f4f6f8)}
.pp-name{font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--pp-brand);margin:0 0 10px;font-size:1.25rem}
.pp-badge{display:inline-block;background:var(--pp-brand);color:var(--pp-on,#fff);font-size:.72rem;font-weight:600;padding:5px 10px;border-radius:999px;margin-right:8px}
.pp-chip{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--pp-brand);border:1px solid var(--pp-brand);border-radius:999px;padding:3px 10px}

/* Scan tab: batch list */
.scan-batch-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 0;position:sticky;top:0;z-index:2;background:var(--paper);padding:8px 0}
.scan-batch-bar p{flex:1;min-width:200px;margin:0}
.scan-flash{outline:5px solid var(--blue);outline-offset:-5px}
.scan-last{margin-top:8px;font-weight:600;min-height:1.5em}
/* Scan feedback uses words and symbols as well as color. */
.badge.green{background:#e0f5e9;color:#176b42}
.badge.red{background:#ffe7e9;color:#a3283b}
.badge.blue{background:#e0f1ff;color:#12629b}
.scan-camera{position:relative;background:#102c4c;border-radius:18px;overflow:hidden;margin-bottom:16px}
.scan-camera video{max-height:42svh;object-fit:cover;min-height:180px}
.scan-camera-guide{position:absolute;inset:18%;border:2px solid #ffffffc9;border-radius:22px;box-shadow:0 0 0 100px #001b3220;pointer-events:none}
.scan-result{display:flex;align-items:center;gap:14px;padding:20px;margin:18px 0;background:#fff;border:1px solid #cbddec;border-radius:18px;box-shadow:0 8px 22px #123b6710}
.is-green{--status-ink:#176b42;--status-wash:#e0f5e9}
.is-red{--status-ink:#a3283b;--status-wash:#ffe7e9}
.is-blue{--status-ink:#12629b;--status-wash:#e0f1ff}
.scan-result{border-color:var(--status-wash)}
.scan-result-icon{flex-shrink:0;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--status-wash);color:var(--status-ink);font-size:24px;font-weight:800}
.scan-result>img{width:68px;height:78px;border-radius:10px;object-fit:cover}
.scan-result strong{display:block;color:var(--status-ink);font-size:1rem}
.scan-result p{font-size:.88rem;margin:4px 0;overflow-wrap:anywhere}
.scan-result small,.scan-result .scan-result-note{color:var(--muted);font-size:.76rem}
.scan-history-row{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--line);font-size:.82rem}
.scan-history-row>span:first-child{font-weight:800;color:var(--status-ink)}
.scan-history-row small{margin-left:auto;white-space:nowrap;color:var(--status-ink)}
.inventory-layout-switch{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}
.inventory-layout-switch [aria-pressed=true]{background:#dff1ff;border-color:#61b5e5;color:#0b4787}
.inventory-list{display:flex!important;flex-direction:column;gap:10px!important}
.inventory-list .tile{display:grid;grid-template-columns:74px minmax(100px,1fr) auto;column-gap:18px;row-gap:5px;align-items:center;border:1px solid #dce7f0;border-radius:14px;background:white;padding:14px}
.inventory-list .tile-photo{grid-column:1;grid-row:1/5;width:74px}
.inventory-list .tile-name,.inventory-list .tile-sub{grid-column:2}
.inventory-list .tile-badge{grid-column:3;grid-row:1/5;align-self:center;justify-self:end}
.unit-condition{border-left:3px solid var(--status-ink);padding:7px 10px;background:var(--status-wash);border-radius:5px}
.demo-inventory-list{grid-template-columns:1fr}
.demo-inventory-list .asset-card{display:grid;grid-template-columns:120px 1fr;border:1px solid #dce7f0;background:white;overflow:hidden}
.demo-inventory-list .asset-photo{height:112px;min-height:0}
.demo-inventory-list .asset-body{display:grid;grid-template-columns:1fr auto;gap:6px 20px;align-items:center}
.demo-inventory-list .asset-body .asset-code,.demo-inventory-list .asset-body h3,.demo-inventory-list .asset-body p{grid-column:1}
.demo-inventory-list .asset-body button{grid-column:2;grid-row:1/4}
@media(max-width:520px){.demo-inventory-list .asset-card{grid-template-columns:105px 1fr}.demo-inventory-list .asset-body{display:block;padding:14px}.demo-inventory-list .asset-body button{margin-top:10px}}
@media(max-width:520px){.inventory-list .tile{grid-template-columns:58px minmax(0,1fr);gap:5px 12px;padding:12px}.inventory-list .tile-photo{width:58px}.inventory-list .tile-badge{grid-column:2;grid-row:auto;justify-self:start}.scan-result{padding:15px;gap:10px}.scan-result>img{width:52px;height:64px}.scan-result-icon{width:32px;height:32px;font-size:20px}}

/* Category filter chips and the catalog browser */
.filter-chips{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 6px}
.filter-chip{background:#fff;border:1.5px solid #c3d2de;color:var(--ink);padding:7px 14px;border-radius:999px;font-size:.85rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px #0d29340a;transition:transform .1s,box-shadow .1s,border-color .1s}
.filter-chip:hover{border-color:var(--blue);transform:translateY(-1px);box-shadow:0 4px 10px -4px #0079bc40}
.filter-chip.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 4px 10px -4px #0079bc60}
dialog .catalog-browser .tile-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px 12px}
.picker-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.unit-pick-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:8px}
.unit-pick-row .grow{flex:1;min-width:0}.unit-pick-row h3{margin:0;font-size:.95rem}.unit-pick-row p{margin:2px 0 0;font-size:.8rem;color:var(--muted)}

/* Notifications with a Dismiss action (e.g. a listing-status change) */
.notice-dismissable,.task.notice-dismissable{justify-content:space-between;align-items:center;gap:12px}
.notice-dismissable .btn.ghost{flex-shrink:0;padding:4px 8px;font-size:.8rem}

/* Listing status line on a project page */
.listing-line{display:flex;align-items:center;gap:12px;margin:-8px 0 18px;flex-wrap:wrap}
.listing-history{flex-basis:100%;display:flex;flex-direction:column;gap:2px;margin-top:2px}

/* A project's own exterior photo, at the top of the project page */
.project-cover-panel{margin-bottom:20px}
.project-cover-img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:var(--radius);margin-bottom:10px;background:#d8e3e6}
.project-cover-file{max-width:260px}

/* Calls out the one-click fix for a client that predates real client records */
.make-client-ring{box-shadow:0 0 0 2px var(--blue);border-radius:8px}

/* QuickBooks' own brand green, matching the Settings integration tile -- ties
   this stat tile to what it's actually about, distinct from the plain blue ones */
.stat-qbo{border-color:#2ca01c}

/* Approved Homepage Echo sidebar */
.sidebar-homepage-echo{isolation:isolate;overflow:hidden;background:linear-gradient(160deg,#124779,#0b3056 65%,#071f3d);border-right:1px solid #95ceee30}
.sidebar-homepage-echo>*{position:relative;z-index:1}
.sidebar-homepage-echo .brand-card{background:none;border:0;border-radius:0;padding:0 4px;box-shadow:none;min-height:90px;justify-content:center}
.sidebar-homepage-echo .brand-card .concept-white-logo{display:block;width:184px;height:auto;max-height:108px;object-fit:contain}
.sidebar-homepage-echo .company{background:#ffffff09;border:1px solid #bbdef626;border-radius:12px}
.sidebar-homepage-echo .nav button{color:#d0e3f3;border:1px solid transparent}
.sidebar-homepage-echo .nav button.active{background:linear-gradient(100deg,#2798d33d,#2a91c91a);border-color:#7dcef04d;color:#fff;box-shadow:inset 3px 0 #7ed8fc}
.sidebar-homepage-echo .nav button:hover{background:#ffffff12}
.sidebar-homepage-echo .navlabel{color:#91b9d9;letter-spacing:1.7px;font-size:.68rem}
.sidebar-homepage-echo:before,.sidebar-homepage-echo:after{content:"";position:absolute;pointer-events:none;z-index:0}

.sidebar-homepage-echo{background:linear-gradient(#082b4cef,#082b4cea),url('/assets/after-dark-hero.webp') 72% center/auto 100% no-repeat}
.sidebar-homepage-echo:after{inset:65% -40px -50px 0;background:linear-gradient(#09294700,#09294755),url('/assets/after-dark-hero.webp') 95% bottom/auto 240% no-repeat;opacity:.38;mask-image:linear-gradient(transparent,#000)}
.sidebar-homepage-echo .brand-card{min-height:54px}
.sidebar-homepage-echo .brand-card .sidebar-white-logo{width:100%;height:auto;display:block}

html[data-sidebar-background="plain"] .sidebar-homepage-echo{background:#0b3056}
html[data-sidebar-background="plain"] .sidebar-homepage-echo:after{display:none}
/* Company brand colors: neutral content and semantic status colors remain stable. */
html[data-company-brand="custom"] .sidebar-homepage-echo{background:linear-gradient(155deg,var(--navy),var(--blue));}
html[data-company-brand="custom"] .sidebar-homepage-echo:after{background:linear-gradient(140deg,transparent,#ffffff0c);border:28px solid #ffffff08;border-radius:50%;transform:rotate(-25deg)}
html[data-company-brand="custom"][data-sidebar-background="plain"] .sidebar-homepage-echo{background:var(--navy)}
html[data-company-brand="custom"] .sidebar-homepage-echo .nav button{color:#ffffffdb}
html[data-company-brand="custom"] .sidebar-homepage-echo .nav button.active{background:#ffffff18;border-color:#ffffff50;box-shadow:inset 3px 0 var(--brand-light);color:#fff}
html[data-company-brand="custom"] .sidebar-homepage-echo .navlabel,html[data-company-brand="custom"] .sidebar-homepage-echo .company small{color:#ffffffbf}
.brand-presets{margin:22px 0}.brand-presets [aria-pressed="true"]{outline:2px solid var(--blue)}

.brand-logo-preview{display:block;max-width:180px;max-height:80px;object-fit:contain;background:white;padding:8px;margin-bottom:16px}

.brand-swatch{display:inline-block;width:15px;height:15px;border-radius:50%;border:1px solid #0002;flex-shrink:0}.brand-presets{gap:12px}.brand-presets button{min-height:44px}

.brand-logo-preview{background:repeating-conic-gradient(#173450 0% 25%,#52667a 0% 50%) 0 0/16px 16px;border:1px solid #8094a8}.brand-upload-message{margin:-8px 0 18px;overflow-wrap:anywhere}

/* Project photos follow the company palette, including their letterbox areas. */
.project-card .cover,.project-card .cover img,.project-cover-img{background:var(--tint-soft)}
.project-card .cover{isolation:isolate}
.project-card .cover img{position:relative;z-index:1}
.project-card .cover .badge{z-index:2}
.project-card .cover:not(:has(img))::before,.project-card .cover.photo-unavailable::before{content:"";position:absolute;inset:35px 0 30px;margin:auto;width:105px;background:var(--blue);opacity:.55;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 45 60 9l48 36M24 37v52h72V37M48 89V60h24v29M34 49h8v10h-8zM78 49h8v10h-8zM17 90h86'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}

/* Full-bleed project cover photos, preserving their aspect ratio. */
.project-card .cover{padding:0;overflow:hidden}
.project-card .cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Real-time attention alerts (server/api.mjs GET /v1/notifications, polled from the app
   shell): small dismissible toasts stacked above everything else, bottom-left so they
   never sit under the concierge launcher in the bottom-right corner. */
.live-alerts{position:fixed;left:16px;bottom:16px;z-index:80;display:flex;flex-direction:column-reverse;gap:8px;max-width:340px}
.live-alerts[hidden]{display:none}
.live-alert-toast{display:flex;align-items:flex-start;gap:10px;background:#173b54;color:#fff;border-radius:12px;padding:12px 12px 12px 16px;box-shadow:0 10px 30px #16395340;animation:live-alert-in .2s ease-out}
.live-alert-toast p{margin:0;font-size:13px;line-height:1.45;flex:1}
.live-alert-toast button{flex-shrink:0;border:0;background:transparent;color:#cfe3ef;font-size:18px;line-height:1;cursor:pointer;padding:0 2px}
.live-alert-toast button:hover{color:#fff}
@keyframes live-alert-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.live-alerts{left:12px;right:12px;bottom:78px;max-width:none}}

/* Public quote page: stager branding, and the accepted/declined terminal states (brief: "Design the moment, not just the message") */
.quote-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.quote-brand-mark{width:42px;height:42px;border-radius:50%;background:var(--tint);color:var(--blue);display:grid;place-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:.9rem;flex-shrink:0;overflow:hidden}
.quote-brand-mark img{width:100%;height:100%;object-fit:contain}
.quote-brand-name{font-family:Manrope,sans-serif;font-weight:800;font-size:1.05rem;color:var(--ink)}
.quote-check{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;margin-bottom:16px}
.quote-steps{margin:28px 0;padding:22px;background:var(--tint-soft);border:1px solid var(--line);border-radius:var(--radius)}
.quote-steps h2{font-size:1rem;margin-bottom:14px}
.quote-steps ol{list-style:none;margin:0;padding:0;counter-reset:qstep;display:flex;flex-direction:column;gap:14px}
.quote-steps li{counter-increment:qstep;display:flex;align-items:center;gap:12px;font-size:.9rem;font-weight:600}
.quote-steps li::before{content:counter(qstep);flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:.75rem;font-weight:800}
.quote-contact{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin:24px 0}
.quote-contact-avatar{width:44px;height:44px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-family:Manrope,sans-serif;font-weight:800;flex-shrink:0}
.quote-contact-kicker{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.6px;margin-bottom:2px}
.quote-contact strong{display:block}
.quote-contact .action-link{display:inline-block;margin-top:4px}
.quote-warm-finish{text-align:center;font-family:Manrope,sans-serif;font-weight:700;font-size:1.05rem;color:var(--ink);margin:28px 0 4px}
@media(max-width:560px){.quote-steps,.quote-contact{padding:16px}}
