:root{--navy:#1e3a5f;--navy-2:#2a4a75;--accent:#2563eb;--accent-2:#1d4ed8;--bg:#f4f6fa;--card:#ffffff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--danger:#dc2626;--radius:14px}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:linear-gradient(160deg,var(--navy) 0,var(--navy-2) 100%);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:48px}.login-brand h1{font-size:56px;letter-spacing:.18em;margin:0;font-weight:800}.login-brand p{color:#cbd5e1;font-size:18px;max-width:380px;line-height:1.5}.login-brand small{color:#94a3b8}.login-form-side{display:flex;align-items:center;justify-content:center;padding:32px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:32px;width:100%;max-width:400px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.card h2{margin:0 0 4px;font-size:24px}.card .sub{margin:0 0 24px;color:var(--muted)}label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}input{width:100%;padding:14px;font-size:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;background:#fff}input:focus{outline:2px solid var(--accent);border-color:var(--accent)}.btn{width:100%;padding:14px;font-size:16px;font-weight:600;color:#fff;background:var(--accent);border:0;border-radius:10px;cursor:pointer;min-height:48px}.btn:hover{background:var(--accent-2)}.btn:disabled{opacity:.6;cursor:default}.error{color:var(--danger);font-size:14px;margin:-8px 0 12px}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#fff;padding:24px 16px;display:flex;flex-direction:column}.sidebar .logo{font-size:24px;font-weight:800;letter-spacing:.18em;padding:0 12px 24px}.sidebar nav a{display:block;padding:12px;border-radius:10px;color:#cbd5e1;font-weight:500;margin-bottom:4px;min-height:44px}.sidebar nav a:hover{background:var(--navy-2);color:#fff}.sidebar .me{margin-top:auto;padding:12px;border-top:1px solid #3b5a85;font-size:14px}.sidebar .me strong{display:block;color:#fff}.sidebar .me span{color:#94a3b8}.sidebar .signout{margin-top:12px;width:100%;background:transparent;color:#cbd5e1;border:1px solid #3b5a85;border-radius:10px;padding:10px;cursor:pointer;min-height:44px}.sidebar .signout:hover{background:var(--navy-2);color:#fff}.main{padding:32px}.main h1{margin:0 0 4px;font-size:28px}.main .sub{color:var(--muted);margin:0 0 24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-gap:16px;gap:16px}.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.stat .label{color:var(--muted);font-size:14px;font-weight:600}.stat .value{font-size:36px;font-weight:800;margin-top:4px}.stat .note{color:var(--muted);font-size:13px;margin-top:6px}@media (max-width:900px){.login-wrap{grid-template-columns:1fr}.login-brand{padding:32px 24px;min-height:200px}.login-brand h1{font-size:40px}.login-brand p{display:none}.shell{grid-template-columns:1fr}.sidebar{flex-direction:row;align-items:center;padding:12px 16px;overflow-x:auto;gap:8px}.sidebar .logo{padding:0 12px 0 0;font-size:18px}.sidebar nav{display:flex;gap:4px}.sidebar nav a{white-space:nowrap;margin:0}.sidebar .me{display:none}.sidebar .signout{margin:0 0 0 auto;width:auto;padding:8px 12px}.main{padding:20px 16px}}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;flex-wrap:wrap}.page-head h1{margin:0}.page-head .sub{margin:4px 0 0}.btn-inline{width:auto;padding:12px 18px;text-align:center}.back,.btn-inline{display:inline-block}.back{color:var(--muted);margin-bottom:12px;font-size:14px}.back:hover{color:var(--accent)}.main h2{font-size:18px;margin:28px 0 10px}.main h3{font-size:15px;margin:20px 0 8px;text-transform:uppercase;letter-spacing:.05em}.main h3,.muted{color:var(--muted)}.lines>div{margin-bottom:6px;font-size:15px}.lines a{color:var(--accent)}.search{display:flex;gap:10px;margin-bottom:16px}.search input{margin:0;flex:1 1}.search .btn{width:auto}.table-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:auto}table{width:100%;border-collapse:collapse;font-size:15px}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:#fafbfd}td,th{padding:14px 16px;border-bottom:1px solid var(--line)}td{vertical-align:top}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fafc}td a{color:var(--accent)}.row-link{font-weight:600;color:var(--text)!important}.row-link:hover{color:var(--accent)!important}.empty{text-align:center;color:var(--muted);padding:32px 16px!important}.pill{padding:3px 10px;font-size:12px;font-weight:600;background:#e2e8f0;color:#334155;text-transform:capitalize}.pill.residential{background:#dbeafe;color:#1e40af}.pill.commercial{background:#fef3c7;color:#92400e}.pill.ok{background:#dcfce7;color:#166534}.pill.off{background:#fee2e2;color:#991b1b}.form-wide{max-width:720px}.two{grid-template-columns:1fr 1fr;grid-gap:16px}.three,.two{display:grid;gap:16px}.three{grid-template-columns:2fr 1fr 1fr;grid-gap:16px}select,textarea{width:100%;padding:14px;font-size:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;background:#fff;font-family:inherit}select:focus,textarea:focus{outline:2px solid var(--accent);border-color:var(--accent)}.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:20px}.seg button{padding:12px 20px;border:0;background:#fff;cursor:pointer;font-weight:600;color:var(--muted);min-height:44px}.seg button.on{background:var(--accent);color:#fff}@media (max-width:900px){.three,.two{grid-template-columns:1fr;gap:0}.search{flex-direction:column}.search .btn{width:100%}}.found{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:12px 14px;margin:-6px 0 16px;font-size:15px}.found.new{background:#fefce8;border-color:#fde68a}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.chips button{padding:10px 14px;border:1px solid var(--line);background:#fff;border-radius:999px;cursor:pointer;font-weight:500;min-height:44px}.chips button.on{background:var(--accent);border-color:var(--accent);color:#fff}.quick{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.quick button{padding:10px 16px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;font-weight:600;min-height:44px}.quick button.on{background:var(--navy);border-color:var(--navy);color:#fff}.quick input{width:auto;margin:0}.check{display:flex;align-items:center;gap:8px;font-weight:500;margin-bottom:16px}.check input{width:20px;height:20px;margin:0}.cal-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;flex-wrap:wrap}.seg.small a{padding:10px 18px;font-weight:600;color:var(--muted);display:inline-block;min-height:44px;line-height:24px}.seg.small a.on{background:var(--accent);color:#fff}.cal-nav{display:flex;gap:6px}.cal-nav a{padding:10px 16px;border:1px solid var(--line);background:#fff;border-radius:10px;font-weight:600;min-height:44px;line-height:24px}.cal-nav a:hover{border-color:var(--accent);color:var(--accent)}.cal{display:grid;grid-gap:12px;gap:12px}.cal.week{grid-template-columns:repeat(7,minmax(0,1fr))}.cal.day{grid-template-columns:1fr}.cal-day{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px;min-height:160px}.cal-day.today{border-color:var(--accent);box-shadow:0 0 0 2px #dbeafe}.cal-day-head{display:flex;justify-content:space-between;font-weight:700;font-size:13px;padding:4px 4px 10px}.cal-day-head a:hover{color:var(--accent)}.cal-empty{color:#cbd5e1;text-align:center;padding:20px 0}.job-card{display:block;background:#f8fafc;border:1px solid var(--line);border-left:4px solid;border-radius:10px;padding:10px;margin-bottom:8px;font-size:13px}.job-card:hover{background:#eff6ff;border-color:#bfdbfe}.job-card.closed,.job-card.done{opacity:.6}.job-when{font-weight:700;display:flex;justify-content:space-between}.job-who{font-weight:600;margin-top:2px}.job-tech,.job-what,.job-who{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-tech,.job-what{color:var(--muted)}.flag{background:var(--danger);color:#fff;border-radius:999px;padding:0 7px;font-size:11px}.cal.day .job-card{font-size:15px;padding:14px}.job-actions{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.btn.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent)}.btn.secondary:hover{background:#eff6ff}.stat.soon{opacity:.6;border-style:dashed}.status-row{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;gap:10px}.status-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 8px;border:2px solid var(--line);border-radius:12px;background:#fff;cursor:default;font-weight:600;min-height:84px}.status-btn .n{width:26px;height:26px;border-radius:999px;background:#e2e8f0;color:var(--muted);display:grid;place-items:center;font-size:13px}.status-btn small{color:var(--muted);font-weight:500}.status-btn.done{border-color:#86efac;background:#f0fdf4}.status-btn.done .n{background:#16a34a;color:#fff}.status-btn.next{border-color:var(--accent);background:var(--accent);color:#fff;cursor:pointer}.status-btn.next .n{background:#fff;color:var(--accent)}.status-btn:disabled:not(.done){opacity:.5}@media (max-width:900px){.cal.week{grid-template-columns:1fr}.cal-day{min-height:0}.cal-empty{display:none}.status-row{grid-template-columns:repeat(2,1fr)}.job-actions .btn{flex:1 1}}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:6px;gap:6px;margin-bottom:6px;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding:0 4px}.cal.month{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.cal-cell{display:block;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px;min-height:96px;font-size:12px}.cal-cell:hover{border-color:var(--accent)}.cal-cell.outside{background:#f8fafc;color:#cbd5e1}.cal-cell.today{border-color:var(--accent);box-shadow:0 0 0 2px #dbeafe}.cal-cell-num{font-weight:700;margin-bottom:6px}.cal-cell.today .cal-cell-num{color:var(--accent)}.cal-dot{color:#fff;border-radius:6px;padding:2px 6px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.cal-dot.closed,.cal-dot.done{opacity:.5}.cal-more{color:var(--muted);font-size:11px}@media (max-width:900px){.cal-cell{min-height:64px;padding:5px}.cal-dot{font-size:0;height:6px;padding:0;border-radius:3px}.cal-more{display:none}}.sidebar nav a.active{background:rgba(255,255,255,.12);color:#fff;font-weight:600;box-shadow:inset 3px 0 0 var(--accent)}.link-btn{background:none;border:0;padding:0;color:var(--accent);font-weight:600;cursor:pointer;font-size:inherit}.link-btn:hover{text-decoration:underline}.link-btn.muted{color:var(--muted);font-weight:500;font-size:13px}.two .btn{margin-top:4px}.cat-row td{background:#f1f5f9;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--navy);padding:8px 16px}.price-box{display:flex;align-items:center;gap:4px}.price-box span{color:var(--muted);font-weight:600}.price-box input{width:110px;margin:0;padding:8px 10px;font-weight:700;text-align:right}.needs-price .price-box input{border-color:#fbbf24;background:#fffbeb}.cat-row{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cat-row:hover td{background:#e2e8f0}.caret{display:inline-block;transition:transform .15s;margin-right:4px}.caret.closed{transform:rotate(-90deg)}.size-pick{display:inline-block;width:auto;margin:0 0 0 10px;padding:6px 28px 6px 10px;font-size:14px;font-weight:600;vertical-align:middle}.tier-tabs{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;gap:10px;margin-bottom:16px}.tier-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;border:2px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;text-align:left;min-height:72px}.tier-tab.on{border-color:var(--accent);background:#eff6ff}.tier-tab.off{opacity:.45}.tier-name{font-weight:700;font-size:15px}.tier-total{font-size:22px;font-weight:800}.tier-hint{font-size:12px;color:var(--muted)}.qb-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.qb-option,.qb-parts{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.qb-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.chips button.kit{background:var(--navy);border-color:var(--navy);color:#fff}.part-list{max-height:520px;overflow:auto;margin-top:12px}.part-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;grid-gap:10px;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line)}.part-row:last-child{border-bottom:0}.part-name{font-weight:600;font-size:15px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.part-name .size-pick{margin:0}.part-price{font-weight:700;white-space:nowrap}.add-btn{width:44px;height:44px;border-radius:10px;border:0;background:var(--accent);color:#fff;font-size:22px;font-weight:700;cursor:pointer}.add-btn:hover{background:var(--accent-2)}.line{display:grid;grid-template-columns:1fr 104px 64px 120px 28px;align-items:center;grid-gap:8px;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.line.labor{background:#f8fafc;margin:8px -16px 0;padding:10px 16px;border-bottom:0}.line-name{font-weight:600;font-size:15px}.line-qty{margin:0;padding:8px;text-align:center}.line-price{display:flex;align-items:center;gap:4px}.line-price input{margin:0;padding:8px;text-align:right;font-weight:700}.totals{margin-top:12px}.totals>div{display:flex;justify-content:space-between;padding:4px 0;font-size:15px}.totals .grand{font-size:22px;font-weight:800;border-top:2px solid var(--line);margin-top:6px;padding-top:10px}.totals .small{font-size:13px;justify-content:flex-start}.copy-row{display:flex;gap:16px;margin-top:12px}.present-btn{margin-top:16px;font-size:18px;padding:18px}.present{min-height:100vh;background:var(--bg);padding-bottom:40px}.present-head{display:flex;align-items:center;gap:16px;padding:20px 24px;background:#fff;border-bottom:1px solid var(--line);margin-bottom:20px}.present-head .logo{font-weight:800;letter-spacing:.18em;font-size:20px;color:var(--navy)}.present-back{margin-left:auto;color:var(--muted);font-size:14px}.present-grid{display:grid;grid-gap:16px;gap:16px;padding:0 24px}.present-grid.n3{grid-template-columns:repeat(3,1fr)}.present-grid.n2{grid-template-columns:repeat(2,1fr);max-width:900px;margin:0 auto}.present-grid.n1{grid-template-columns:1fr;max-width:480px;margin:0 auto}.present-card{display:flex;flex-direction:column;text-align:left;background:#fff;border:3px solid var(--line);border-radius:18px;padding:24px;cursor:pointer;min-height:360px}.present-card.on{border-color:var(--accent);box-shadow:0 12px 30px rgba(37,99,235,.15)}.present-card.best{border-top:8px solid #f59e0b}.present-card.better{border-top:8px solid #3b82f6}.present-card.good{border-top:8px solid #94a3b8}.present-tier{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.present-total{font-size:40px;font-weight:800;margin:6px 0}.present-warranty{font-weight:600;color:#166534;background:#dcfce7;display:inline-block;padding:4px 10px;border-radius:999px;font-size:13px;margin-bottom:14px}.present-parts{list-style:none;padding:0;margin:0 0 12px;font-size:15px;line-height:1.7;flex:1 1}.present-parts li:before{content:"✓ ";color:var(--accent);font-weight:700}.present-fine{font-size:12px;margin-bottom:12px}.present-pick{text-align:center;font-weight:700;padding:12px;border-radius:10px;background:#f1f5f9;color:var(--muted)}.present-card.on .present-pick{background:var(--accent);color:#fff}.present-actions{display:flex;gap:12px;padding:24px;max-width:700px;margin:0 auto;align-items:center}.present-actions .btn{font-size:18px;padding:18px}.present-actions.wrap{flex-wrap:wrap}.present-actions.wrap .btn{width:auto;flex:1 1 40%}.present-sign{max-width:900px;margin:0 auto;padding:0 24px}.present-sign h2{margin:8px 0 4px}.sig{width:100%;height:260px;background:#fff;border:2px dashed var(--line);border-radius:12px;touch-action:none;display:block}@media (max-width:900px){.present-grid.n2,.present-grid.n3,.qb-grid{grid-template-columns:1fr}.tier-tabs{grid-template-columns:repeat(3,1fr);gap:6px}.tier-tab{padding:10px}.tier-total{font-size:18px}.part-list{max-height:none}.present-card{min-height:0}.present-actions{flex-direction:column}}.stat.action{display:block;border-color:var(--accent);background:#eff6ff}.stat.action:hover{background:#dbeafe}.note-btn{background:none;border:0;cursor:pointer;color:#cbd5e1;font-size:14px;margin-left:6px;padding:2px 4px;border-radius:6px;vertical-align:middle}.note-btn:hover{background:#eff6ff}.note-btn.has,.note-btn:hover{color:var(--accent)}.note-text{font-size:12px;color:var(--muted);margin-top:3px;cursor:text;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.note-text:hover{color:var(--text)}.note-input{display:block;margin:6px 0 0;padding:6px 10px;font-size:13px;max-width:360px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.qb-search{margin:0 0 12px}.acc{display:flex;flex-direction:column;gap:6px}.acc-group{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.acc-head{width:100%;display:flex;align-items:center;gap:8px;padding:12px 14px;border:0;background:#f8fafc;font-weight:700;font-size:15px;cursor:pointer;text-align:left;min-height:46px}.acc-head:hover{background:#f1f5f9}.acc-head .caret{transform:rotate(-90deg)}.acc-group.open .acc-head{background:#eff6ff;color:var(--accent)}.acc-group.open .acc-head .caret{transform:rotate(0)}.acc-head .muted{margin-left:auto;font-weight:500;font-size:13px}.acc-body{padding:4px 10px}.part-name .small{font-size:12px;font-weight:400;width:100%}.qb-grid{align-items:start}.qb-option{position:-webkit-sticky;position:sticky;top:16px}@media (max-width:900px){.qb-option{position:static}}.live{background:var(--navy);color:#fff;border-radius:var(--radius);padding:16px 18px;margin-bottom:20px}.live-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:14px}.live-head .muted{color:#94a3b8}.live-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:livepulse 2s infinite;vertical-align:middle;margin-right:2px}@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.6)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}to{box-shadow:0 0 0 0 rgba(34,197,94,0)}}.live-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-gap:12px;gap:12px}.live-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-top:4px solid;border-radius:12px;padding:12px;transition:background .3s}.live-tech{display:flex;align-items:center;gap:10px;margin-bottom:10px}.live-avatar{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff}.live-name{font-weight:700;font-size:15px}.live .small{font-size:12px}.live .muted{color:#94a3b8}.live-job{display:block;background:rgba(0,0,0,.25);border-radius:10px;padding:10px;color:#fff}.live-job:hover{background:rgba(0,0,0,.4)}.live-job.idle{opacity:.5}.live-status{font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px;margin-bottom:4px}.live-pulse{width:8px;height:8px;border-radius:999px;background:currentColor}.s-way .live-status{color:#fbbf24}.s-arr .live-status{color:#60a5fa}.s-work .live-status{color:#22c55e}.s-work .live-pulse{animation:livepulse 1.5s infinite;box-shadow:0 0 0 0 rgba(34,197,94,.6)}.s-done .live-status{color:#94a3b8}.s-sched .live-status{color:#cbd5e1}.live-cust{font-weight:600;font-size:15px}@media (max-width:900px){.live-row{grid-template-columns:1fr}}tr.editing-row td{background:#eef4ff}tr.edit-row td{background:#f5f8ff;padding:16px 20px 20px;border-bottom:2px solid var(--accent)}.part-form-inline{max-width:900px}.part-form-inline h3{margin:0 0 12px;font-size:15px}@keyframes savedGlow{0%{background:#dcfce7}to{background:transparent}}tr.just-saved td{animation:savedGlow 1.8s ease-out}.custom-open{width:100%;text-align:left;margin:8px 0 12px;padding:10px 12px;border:1px dashed #b6c2d6;border-radius:10px;background:#fff;color:var(--accent);font-weight:600;font-size:14px;cursor:pointer}.custom-open .muted{font-weight:500;margin-left:6px}.custom-box,.custom-open:hover{background:#f5f8ff}.custom-box{margin:8px 0 12px;padding:12px;border:1px solid var(--accent);border-radius:10px;display:grid;grid-gap:8px;gap:8px}.custom-box input,.custom-box select{margin:0}.custom-row{display:flex;gap:8px;align-items:center}.custom-row .price-box,.custom-row select{flex:1 1}input.in-kit{background:#eef4ff;border-color:var(--accent);font-weight:600}.totals .discount-row{display:flex;justify-content:space-between;align-items:center;color:#15803d}.totals .discount-row input{width:90px;margin:0;padding:6px 8px;text-align:right}.present-savings{color:#15803d;font-weight:700;font-size:14px;margin:6px 0 2px}.closeout{max-width:760px;grid-gap:14px}.closeout,.co-step{display:grid;gap:14px}.co-step{grid-template-columns:40px 1fr;grid-gap:14px;padding:18px 20px}.co-num{width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:2px}.co-body h3{margin:4px 0 6px}.co-body textarea{width:100%}.co-total{display:grid;grid-gap:4px;gap:4px;margin:6px 0 4px}.co-total>div{display:flex;justify-content:space-between;font-size:15px}.co-total .grand{font-size:20px;font-weight:800;border-top:2px solid var(--line);margin-top:4px;padding-top:8px}.photo-add{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border:2px dashed #b6c2d6;border-radius:12px;cursor:pointer;font-weight:600;color:var(--accent);background:#fff;min-height:48px}.photo-add input{display:none}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));grid-gap:10px;gap:10px;margin-top:12px}.photo-thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;border:1px solid var(--line)}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-thumb button{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(15,23,42,.75);color:#fff;cursor:pointer}.warranty-list{list-style:none;padding:0;margin:6px 0 0}.warranty-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:15px}.warranty-list li:last-child{border-bottom:0}.btn.big{font-size:18px;padding:16px 20px;width:100%}.pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700}.pill.paid{background:#dcfce7;color:#15803d}.pill.due{background:#fef3c7;color:#b45309}@media (max-width:900px){.co-step{grid-template-columns:1fr}.co-num{display:none}}.qr-screen{position:fixed;inset:0;background:var(--navy);display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.qr-card{background:#fff;border-radius:20px;padding:28px 24px;width:min(440px,100%);text-align:center;display:grid;grid-gap:10px;gap:10px;justify-items:center}.qr-title{font-size:20px;font-weight:800}.qr-amount{font-size:40px;font-weight:800;letter-spacing:-.5px}.qr-card img{width:min(320px,80vw);height:auto;image-rendering:pixelated}.myday{margin-bottom:28px}.myday-head{display:flex;align-items:baseline;gap:12px;margin-bottom:10px}.myday-head h2{margin:0}.day-card{display:grid;grid-template-columns:110px 1fr auto;grid-gap:14px;gap:14px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:10px;text-decoration:none;color:inherit;min-height:72px}.day-card:hover{border-color:#bfdbfe;background:#f8fbff}.day-card.closed,.day-card.done{opacity:.55}.day-when{display:grid;grid-gap:4px;gap:4px;font-size:17px}.day-who{font-weight:700;font-size:17px}.day-what,.day-where{color:var(--muted);font-size:14px}.day-status{font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;background:#f1f5f9;color:var(--muted);white-space:nowrap}.day-status.s-arrived,.day-status.s-on_my_way,.day-status.s-working{background:#dbeafe;color:#1d4ed8}.day-status.s-closed,.day-status.s-done{background:#dcfce7;color:#15803d}@media (max-width:900px){.day-card{grid-template-columns:1fr auto}.day-when{grid-column:1/-1;grid-auto-flow:column;justify-content:start;align-items:center}}.line-warranty{margin:0;padding:8px 6px;font-size:13px}@media (max-width:900px){.line{grid-template-columns:1fr 64px 110px 28px}.line-warranty{grid-column:1/-1;width:100%}}.brand-card{background:#fff;border-radius:12px;padding:10px 12px;margin:0 12px 14px}.brand-card img{width:100%;height:auto;display:block}.present-logo{height:56px;width:auto}.login-logo{background:#fff;border-radius:16px;padding:18px 22px;display:inline-block;margin-bottom:20px;max-width:360px}.login-logo img{width:100%;height:auto;display:block}@media (max-width:900px){.brand-card{display:none}.login-logo{max-width:220px;padding:10px 14px;margin-bottom:10px}.present-logo{height:40px}}.present-parts li{display:flex;justify-content:space-between;gap:12px}.present-line-price{white-space:nowrap;font-weight:600;color:var(--muted)}.inv-wrap{max-width:860px;margin:0 auto;padding:20px 24px 60px;background:#eef2f7;min-height:100vh}.inv-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}.inv-actions-left,.inv-actions-right{display:flex;align-items:center;gap:14px}.inv-pay{width:100%;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.inv{background:#fff;border-radius:12px;padding:40px 44px;box-shadow:0 1px 3px rgba(15,23,42,.08);color:#0f172a;font-size:14px;line-height:1.5}.inv-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:20px;border-bottom:2px solid var(--navy);margin-bottom:24px}.inv-brand img{width:220px;height:auto;display:block;margin-bottom:10px}.inv-company strong{font-size:16px;display:block}.inv-company div{color:#475569}.inv-meta{text-align:right;min-width:220px}.inv-title{font-size:28px;font-weight:800;letter-spacing:.12em;color:var(--navy);margin-bottom:8px}.inv-meta>div:not(.inv-title){display:flex;justify-content:space-between;gap:16px;padding:2px 0}.inv-meta span{color:#64748b}.inv-meta .ok{color:#15803d}.inv-meta .due{color:#b45309}.inv-parties{display:grid;grid-template-columns:1fr 1fr;grid-gap:24px;gap:24px;margin-bottom:24px}.inv-label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#64748b;margin-bottom:4px}.inv-work{white-space:pre-line;color:#475569;margin-top:6px}.inv-table{width:100%;border-collapse:collapse;margin-bottom:16px}.inv-table th{text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#64748b;padding:8px 6px;border-bottom:1px solid #cbd5e1}.inv-table td{padding:10px 6px;border-bottom:1px solid #e2e8f0;vertical-align:top}.inv-table td:nth-child(n+2),.inv-table th:nth-child(n+2){text-align:right;white-space:nowrap}.inv-table td:nth-child(4),.inv-table th:nth-child(4){text-align:left}.inv-totals{margin-left:auto;width:320px;max-width:100%}.inv-totals>div{display:flex;justify-content:space-between;padding:4px 0}.inv-totals .grand{font-size:18px;font-weight:800;border-top:2px solid #0f172a;margin-top:6px;padding-top:8px}.inv-totals .grand.ok{color:#15803d}.inv-totals .grand.due{color:#b45309}.inv-totals .paid-line{color:#475569;font-size:13px}.inv-warranty{margin-top:28px;padding-top:16px;border-top:1px solid #e2e8f0}.inv-warranty ul{margin:6px 0;padding-left:18px}.inv-foot{margin-top:32px;text-align:center;color:#64748b;font-size:13px}.inv-back{margin-top:16px;text-align:center}@media (max-width:700px){.inv{padding:24px 18px}.inv-head,.inv-parties{grid-template-columns:1fr;flex-direction:column}.inv-meta{text-align:left}.inv-brand img{width:170px}.inv-table td:nth-child(4),.inv-table th:nth-child(4){display:none}}@media print{.no-print{display:none!important}.inv-wrap,body,html{background:#fff}.inv-wrap,body{padding:0;margin:0;min-height:0;max-width:none}.inv{box-shadow:none;border-radius:0;padding:0;font-size:12px;line-height:1.35}.inv-head{padding-bottom:10px;margin-bottom:12px}.inv-brand img{width:150px;margin-bottom:4px}.inv-company strong{font-size:13px}.inv-title{font-size:22px;margin-bottom:4px}.inv-meta{min-width:180px}.inv-parties{margin-bottom:12px;gap:16px}.inv-work{display:none}.inv-table th{font-size:10px}.inv-table td,.inv-table th{padding:5px 4px}.inv-totals>div{padding:2px 0}.inv-totals .grand{font-size:15px;margin-top:4px;padding-top:5px}.inv-warranty{margin-top:14px;padding-top:8px}.inv-warranty .small{font-size:10px;margin:4px 0 0}.inv-foot{margin-top:14px;font-size:11px}@page{size:letter;margin:.5in}}.bar{height:8px;background:#e2e8f0;margin:10px 0 8px;overflow:hidden}.bar,.bar-fill{border-radius:999px}.bar-fill{height:100%;background:var(--accent);transition:width .4s ease}.stat.small .value{font-size:24px}a.stat{text-decoration:none;color:inherit;display:block}a.stat:hover{border-color:#bfdbfe}.co-email{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.co-email input[type=email]{max-width:360px}.note-btn.pin{font-size:12px;filter:grayscale(1);opacity:.45}.note-btn.pin.has{filter:none;opacity:1}.parts-used-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:15px}.parts-used-table th{text-align:left;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:6px 0;border-bottom:1px solid var(--line)}.parts-used-table td{padding:9px 0;border-bottom:1px solid var(--line)}.parts-used-table td:nth-child(n+2),.parts-used-table th:nth-child(n+2){text-align:right;width:96px}.parts-used-table tr:last-child td{border-bottom:0}.pill.hist-closed{background:#dcfce7;color:#15803d}.pill.hist-quoted{background:#fef3c7;color:#b45309}.pill.hist-declined{background:#fee2e2;color:#b91c1c}.pill.hist-open{background:#dbeafe;color:#1d4ed8}.pill.hist-cancelled{background:#f1f5f9;color:var(--muted)}.head-contact{margin-top:4px;font-size:15px}.head-contact a{color:var(--text);text-decoration:none;font-weight:600}.head-contact a:hover{color:var(--accent)}.email-inline{margin:0;padding:10px 12px;font-size:15px;width:100%}.seg a{padding:12px 18px;font-weight:600;color:var(--muted);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;gap:6px}.seg a.on{background:var(--accent);color:#fff}.seg-count{font-size:12px;font-weight:700;background:rgba(15,23,42,.08);border-radius:999px;padding:1px 7px}.seg a.on .seg-count{background:rgba(255,255,255,.25)}.col-filter{position:relative;display:inline-block}.col-filter select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}.col-filter-face,.col-sort{display:inline-flex;align-items:center;gap:4px;font:inherit;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:none;border:0;padding:4px 6px;margin:-4px -6px;border-radius:6px;cursor:pointer;white-space:nowrap}.col-filter.on .col-filter-face,.col-sort.on{color:var(--accent);background:#eff6ff}.caret-down{font-size:10px}.col-filter:hover .col-filter-face,.col-sort:hover{color:var(--text)}.resched{text-align:right}.resched-form{text-align:left;min-width:320px;max-width:460px}.resched-form h3{margin:0 0 10px}.resched-log{margin-top:6px}@media (max-width:900px){.resched{text-align:left;width:100%}.resched-form{max-width:none;min-width:0}}.parts-box{grid-column:span 1}.parts-list{list-style:none;margin:8px 0 0;padding:0;font-size:14px}.parts-list li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}.parts-list li:last-child{border-bottom:0}.parts-list strong{font-size:15px}.parts-list li.parts-fam{display:block}.parts-row{display:flex;justify-content:space-between;gap:10px}.parts-row.size{font-size:13px;color:var(--muted);padding-left:14px}.notes-add{display:flex;gap:8px;margin-top:8px}.notes-add input{margin:0;flex:1 1;padding:10px 12px;font-size:15px}.notes-list{list-style:none;margin:8px 0 0;padding:0}.notes-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:15px}.notes-list li:last-child{border-bottom:0}.notes-item{display:flex;align-items:flex-start;gap:10px;flex:1 1;cursor:pointer}.notes-item input{width:20px;height:20px;margin:2px 0 0;flex:none}.notes-body{line-height:1.4}.notes-list.done .notes-body{text-decoration:line-through;color:var(--muted)}.notes-list .small{white-space:nowrap}.notes-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.notes-head .link-btn{font-size:13px}.best-list{list-style:none;margin:10px 0 0;padding:0}.best-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.best-row:last-child{border-bottom:0}.best-label{font-weight:600;font-size:15px}.best-now{font-size:28px;font-weight:800;display:flex;align-items:center;gap:8px}.best-now.hit{color:#16a34a}.best-tag{font-size:12px;font-weight:700;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 8px}.nextup{background:var(--card);border:2px solid var(--accent);border-radius:var(--radius);padding:20px;margin-bottom:24px}.nextup.allgood{border-color:#86efac;background:#f0fdf4;font-size:17px}.nextup-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.nextup-head .label{color:var(--accent);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.nextup-who{font-size:26px;font-weight:800;margin-top:8px}.nextup-what{font-size:16px;margin-top:2px}.nextup-where{color:var(--muted);font-size:15px;margin-top:2px}.nextup-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.nextup-actions .btn{flex:1 1;min-width:110px;text-decoration:none}.day-card.unfinished{border-color:#fcd34d;background:#fffbeb}.day-status.s-open{background:#fef3c7;color:#b45309}.timerange{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.timerange input[type=time]{margin:0;width:auto}.chips.tight{margin:0;gap:6px}.chips.tight button{padding:8px 12px;font-size:14px;min-height:36px}.head-tools{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end}.edit-job{width:min(640px,100%)}.edit-job h3{margin:0 0 6px}.edit-sec{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:18px 0 6px}.edit-job .check{display:flex;align-items:center;gap:10px;margin:8px 0 4px;font-weight:600}.edit-job .check input{width:20px;height:20px;margin:0}.link-btn.danger{color:#b91c1c}@media (max-width:900px){.head-tools{justify-content:flex-start}}.quote-actions{margin-top:10px}.quote-actions-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.quote-actions .btn-inline{padding:10px 14px;font-size:14px}.rev-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.rev-total{font-size:24px;font-weight:800;margin-top:2px}.rev-total .muted{font-size:14px;font-weight:500}.rev-best{text-align:right}.rev-best-v{font-size:18px;font-weight:800;color:#334155;margin-top:2px}.rev-svg{width:100%;height:auto;margin-top:8px;display:block}.rev-legend{display:flex;align-items:center;gap:6px;margin-top:4px}.rev-legend .sw{display:inline-block;width:12px;height:12px;border-radius:999px;margin-left:10px}.rev-legend .sw.best,.rev-legend .sw.closed{background:#cbd5e1;margin-left:0}.rev-legend .sw.now{background:#2563eb}@media (max-width:900px){.rev-best{text-align:left}}.rev-legend .sw.est{background:#64748b}.unfinished-box{border-color:#fcd34d;background:#fffbeb}.unfinished-list{list-style:none;margin:8px 0 0;padding:0}.unfinished-list li{border-bottom:1px solid #fde68a}.unfinished-list li:last-child{border-bottom:0}.unfinished-row{display:flex;align-items:center;gap:10px;padding:10px 0;text-decoration:none;color:inherit}.unfinished-row .small{white-space:nowrap;min-width:86px}.unfinished-who{flex:1 1;font-weight:600;font-size:15px}.day-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));grid-gap:12px;gap:12px;margin-bottom:28px}.day-tile{position:relative;display:flex;flex-direction:column;gap:4px;background:var(--card);border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:var(--radius);padding:16px 18px 18px;text-decoration:none;color:inherit;min-height:150px}.day-tile:hover{border-color:#bfdbfe;border-left-color:var(--accent);background:#f8fbff}.day-tile.closed,.day-tile.done{opacity:.55;border-left-color:#16a34a}.day-tile.arrived,.day-tile.on_my_way,.day-tile.working{border-left-color:#1d4ed8;background:#f8fbff}.tile-top{display:flex;align-items:center;gap:8px;margin-bottom:4px}.tile-n{width:24px;height:24px;border-radius:999px;background:#e2e8f0;color:var(--muted);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}.tile-when{font-weight:700;font-size:16px}.tile-who{font-weight:800;font-size:20px;line-height:1.2}.tile-what{font-size:15px}.tile-where{color:var(--muted);font-size:14px}.tile-status{align-self:flex-start;margin-top:auto;padding-top:10px;background:transparent!important;padding-left:0}button.back{background:none;border:0;padding:0;cursor:pointer;font:inherit}.tech-box .tech-stats{display:flex;gap:28px}.tech-box .value{font-size:28px}.parts-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.seg.tiny{margin:0;border-radius:8px}.seg.tiny a{padding:5px 10px;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;min-height:0;background:#fff}.seg.tiny a.on{background:var(--accent);color:#fff}.rev-pt{cursor:pointer}.rev-sel .label .link-btn{font-size:12px;margin-left:6px}.report-links{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.report-year{display:flex;gap:10px;align-items:center}.report-year,.report-year .link-btn{font-size:14px}@media (max-width:900px){.report-links{align-items:flex-start}}