:root{--bg: #f4f5f7;--surface: #ffffff;--surface-2: #f8fafc;--border: #e2e8f0;--border-strong: #cbd5e1;--text: #0f172a;--muted: #5b6b80;--primary: #1d4ed8;--primary-ink: #ffffff;--primary-soft: #dbeafe;--ok: #15803d;--ok-soft: #dcfce7;--warn: #b45309;--warn-soft: #fef3c7;--bad: #b91c1c;--bad-soft: #fee2e2;--steel: #334155;--radius: 8px;--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);--shadow-lg: 0 10px 30px rgba(15, 23, 42, .18);--sidebar: 212px;--topbar: 56px;--lane-w: 170px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.45;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}html{scrollbar-gutter:stable;overflow-y:scroll}body{background:var(--bg)}a{color:var(--primary)}h1{font-size:1.45rem;margin:0;letter-spacing:-.01em}h2{font-size:1.05rem;margin:0}h3{font-size:.95rem;margin:0 0 .4rem}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.muted{color:var(--muted)}.small{font-size:.85rem}.num,td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.stack{display:flex;flex-direction:column;gap:.75rem}.row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.row-2{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.row-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;align-items:start}.span-2{grid-column:span 2}.spacer{flex:1}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.skip-link{position:absolute;left:-999px;top:0;background:var(--surface);padding:.5rem 1rem;z-index:100}.skip-link:focus{left:.5rem;top:.5rem}.link{background:none;border:0;color:var(--primary);cursor:pointer;padding:0;font:inherit;text-decoration:underline}.shell{display:grid;grid-template-columns:var(--sidebar) 1fr;grid-template-rows:var(--topbar) 1fr;min-height:calc(100vh - var(--footer-h) - env(safe-area-inset-bottom))}.topbar{grid-column:1 / -1;display:flex;align-items:center;gap:1rem;padding:0 1rem;background:var(--steel);color:#f1f5f9;position:sticky;top:0;z-index:30}.topbar .btn-ghost{color:#e2e8f0}.topbar .btn-ghost:hover,.topbar .btn-ghost.active{background:#ffffff1f}.topbar-company{color:#cbd5e1;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-right{margin-left:auto;display:flex;gap:.4rem;align-items:center}.user-chip{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hamburger{display:none;background:none;border:0;color:inherit;font-size:1.4rem;cursor:pointer;padding:.25rem .5rem}.wordmark{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;letter-spacing:-.01em;font-size:1.15rem}.wordmark-sm{font-size:1rem}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:.75rem .5rem;display:flex;flex-direction:column;gap:2px;position:sticky;top:var(--topbar);height:calc(100vh - var(--topbar));overflow-y:auto}.nav-item{display:flex;gap:.65rem;align-items:center;padding:.55rem .75rem;border-radius:6px;color:var(--text);text-decoration:none;font-weight:500}.nav-item:hover{background:var(--surface-2)}.nav-item.active{background:var(--primary-soft);color:var(--primary)}.content{padding:1.25rem 1.5rem 3rem;min-width:0;outline:none}.drawer-scrim{display:none}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.page-header .actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.back-link{display:inline-block;font-size:.85rem;margin-bottom:.25rem;text-decoration:none}.new-menu{position:relative}.menu{position:absolute;right:0;top:calc(100% + 6px);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);min-width:190px;padding:.3rem;z-index:40}.menu-item{display:block;width:100%;text-align:left;padding:.5rem .75rem;border:0;background:none;border-radius:5px;cursor:pointer;font:inherit;color:inherit}.menu-item:hover,.menu-item:focus{background:var(--surface-2)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem;margin-bottom:1rem;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.card-head .actions{display:flex;gap:.5rem;align-items:flex-end;flex-wrap:wrap}.card-head .field{margin:0}.kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.6rem 1.25rem;margin:0}.kv dt{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.kv dd{margin:.1rem 0 0;white-space:pre-line;word-break:break-word}.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}@media(max-width:767px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem;text-decoration:none;color:inherit;box-shadow:var(--shadow);display:block}a.kpi:hover{border-color:var(--primary)}.kpi-label{font-size:.8rem;color:var(--muted)}.kpi-value{font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums;margin-top:.15rem}.kpi-sub{font-size:.8rem;color:var(--muted)}.kpi.warn .kpi-value{color:var(--warn)}.kpi.bad .kpi-value{color:var(--bad)}.kpi.ok .kpi-value{color:var(--ok)}.field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.field label{font-size:.82rem;font-weight:600;color:#334155}.field input,.field select,.field textarea{font:inherit;padding:.5rem .6rem;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);min-height:38px;width:100%}.field input[type=color]{padding:2px;width:64px}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);outline:2px solid var(--primary-soft)}.hint{font-size:.78rem;color:var(--muted)}.field-error{font-size:.8rem;color:var(--bad)}.check{display:flex;align-items:center;gap:.5rem}.check input{width:18px;height:18px;margin:0}.form-actions{display:flex;gap:.75rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.filters{display:flex;gap:.75rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:.75rem}.filters .field{min-width:150px}.filters .field.grow{flex:1;min-width:220px}.error-box{background:var(--bad-soft);color:var(--bad);border:1px solid #fecaca;padding:.55rem .75rem;border-radius:6px;font-size:.9rem}.ok-box{background:var(--ok-soft);color:var(--ok);border:1px solid #bbf7d0;padding:.55rem .75rem;border-radius:6px;font-size:.9rem}.warn-box{background:var(--warn-soft);color:var(--warn);border:1px solid #fde68a;padding:.55rem .75rem;border-radius:6px;font-size:.9rem}.secret{font-size:1.05rem;background:var(--surface-2);padding:.3rem .5rem;border-radius:4px;border:1px solid var(--border);word-break:break-all;display:inline-block}.btn{font:inherit;font-weight:600;border-radius:6px;padding:.5rem .9rem;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:38px;text-decoration:none;white-space:nowrap}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}.btn-primary:hover{background:#1e40af}.btn-danger{background:var(--bad);border-color:var(--bad);color:#fff}.btn-danger:hover{background:#991b1b}.btn-ok{background:var(--ok);border-color:var(--ok);color:#fff}.btn-ok:hover,.btn-ok:focus-visible{background:#166534;border-color:#166534;color:#fff}.btn-ok:active{background:#14532d;border-color:#14532d;color:#fff}.btn-primary:focus-visible,.btn-primary:active{background:#1e40af;color:var(--primary-ink)}.btn-danger:focus-visible,.btn-danger:active{background:#991b1b;color:#fff}.btn-ok:focus-visible,.btn-primary:focus-visible,.btn-danger:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}.btn-ghost{border-color:transparent;background:transparent}.btn-sm{padding:.3rem .6rem;min-height:30px;font-size:.85rem}.btn-lg{padding:.8rem 1.2rem;min-height:50px;font-size:1.05rem}.btn-block{width:100%}.export-btns{display:inline-flex;gap:.35rem}.badge{display:inline-block;padding:.12rem .5rem;border-radius:999px;font-size:.76rem;font-weight:600;background:#e2e8f0;color:#334155;white-space:nowrap}.tone-ok,.status-completed,.status-accepted,.status-done{background:var(--ok-soft);color:var(--ok)}.tone-warn,.status-on_hold,.status-expired{background:var(--warn-soft);color:var(--warn)}.tone-bad,.status-declined,.status-cancelled{background:var(--bad-soft);color:var(--bad)}.tone-info,.status-scheduled,.status-sent{background:var(--primary-soft);color:var(--primary)}.status-in_progress{background:#ede9fe;color:#6d28d9}.status-invoiced,.status-converted{background:#cffafe;color:#0e7490}.status-closed{background:#e2e8f0;color:#475569}.status-lead,.status-draft{background:#f1f5f9;color:#475569;border:1px dashed #cbd5e1}.status-quoted{background:#fae8ff;color:#a21caf}.tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border);margin-bottom:1rem;overflow-x:auto;scrollbar-width:thin}.tab{background:none;border:0;border-bottom:2px solid transparent;padding:.55rem .85rem;font:inherit;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}.tab.active{color:var(--primary);border-bottom-color:var(--primary)}.tab-count{margin-left:.35rem;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:0 .4rem;font-size:.75rem}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:6px}.table{width:100%;border-collapse:collapse;font-size:.9rem}.table th,.table td{padding:.5rem .65rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.table th{background:var(--surface-2);font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);white-space:nowrap}.th-btn{background:none;border:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;padding:0}.table tbody tr:last-child td{border-bottom:0}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td,.table tr.clickable:focus td{background:#f1f5ff}.table tfoot td{font-weight:700;background:var(--surface-2);border-top:2px solid var(--border)}.table input,.table select{font:inherit;padding:.3rem .4rem;border:1px solid var(--border-strong);border-radius:4px;width:100%;min-width:60px}.empty{padding:1.5rem;text-align:center;color:var(--muted);background:var(--surface-2);border:1px dashed var(--border);border-radius:6px}.spinner{display:flex;align-items:center;gap:.6rem;padding:2rem;color:var(--muted);justify-content:center}.spin{width:18px;height:18px;border:2px solid var(--border-strong);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:flex-start;justify-content:center;padding:5vh 1rem;z-index:60;overflow-y:auto}.modal{background:var(--surface);border-radius:10px;width:100%;max-width:560px;box-shadow:var(--shadow-lg)}.modal-wide{max-width:900px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:.85rem 1rem;border-bottom:1px solid var(--border)}.modal-x{background:none;border:0;font-size:1.5rem;line-height:1;cursor:pointer;color:var(--muted)}.modal-body{padding:1rem}.modal-foot{padding:.75rem 1rem;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:.5rem}.toasts{position:fixed;bottom:1rem;right:1rem;display:flex;flex-direction:column;gap:.5rem;z-index:80}.toast{background:var(--steel);color:#fff;padding:.65rem 1rem;border-radius:6px;box-shadow:var(--shadow-lg);max-width:380px}.toast-error{background:var(--bad)}.auth-page{min-height:calc(100vh - var(--footer-h) - env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;padding:1rem;background:linear-gradient(160deg,#e2e8f0,#f8fafc)}.auth-card{background:var(--surface);padding:2rem;border-radius:12px;width:100%;max-width:420px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:1rem}.auth-card .wordmark{color:var(--steel)}.forgot-link{display:inline-flex;align-items:center;min-height:44px;align-self:flex-start;font-weight:600}.totp-setup{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.audit-change{display:block}.lines td{vertical-align:middle}.lines .desc-cell{min-width:220px}.totals{margin-left:auto;width:100%;max-width:340px;display:grid;grid-template-columns:1fr auto;gap:.3rem 1rem;font-variant-numeric:tabular-nums;margin-top:.75rem}.totals .grand{font-weight:700;font-size:1.1rem;border-top:1px solid var(--border);padding-top:.3rem}.option-row td{background:#fffbeb}.sched-toolbar{display:flex;gap:.5rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:.75rem}.sched-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:1rem;align-items:start}.sched-layout>*,.grid-2>*,.grid-3>*,.shell>*{min-width:0}.sched-toolbar .tabs{margin-bottom:0}.board{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.board-grid{position:relative;min-width:900px}.board-head{display:grid;position:sticky;top:0;background:var(--surface-2);border-bottom:1px solid var(--border);z-index:2}.board-head div{font-size:.75rem;color:var(--muted);padding:.35rem .25rem;border-left:1px solid var(--border)}.lane{display:grid;grid-template-columns:var(--lane-w) 1fr;border-bottom:1px solid var(--border);min-height:64px}.lane-label{padding:.5rem;border-right:1px solid var(--border);background:var(--surface-2);font-weight:600;font-size:.88rem;display:flex;flex-direction:column;gap:.2rem}.lane-label .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:.35rem}.lane-track{position:relative;min-height:64px;background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--hour-w) - 1px),var(--border) calc(var(--hour-w) - 1px),var(--border) var(--hour-w))}.lane-track.drop-target{background-color:#eff6ff}.lane-leave{position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(45deg,#fef3c7,#fef3c7 8px,#fffbeb 8px,#fffbeb 16px);opacity:.85;display:flex;align-items:center;justify-content:center;font-size:.8rem;color:var(--warn);font-weight:600;pointer-events:none}.visit-block{position:absolute;top:6px;bottom:6px;border-radius:6px;padding:.25rem .4rem;font-size:.78rem;color:#fff;overflow:hidden;cursor:grab;box-shadow:var(--shadow);border:1px solid rgba(0,0,0,.15);line-height:1.25}.visit-block.conflict{outline:2px solid var(--bad);outline-offset:1px}.visit-block .vb-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.visit-block .vb-sub{opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.buffer-block{position:absolute;top:18px;bottom:18px;background:repeating-linear-gradient(90deg,#cbd5e1 0 4px,transparent 4px 8px);opacity:.6;border-radius:3px;pointer-events:none}.unsched{max-height:75vh;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}.unsched-card{border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:6px;padding:.5rem .6rem;background:var(--surface);cursor:grab;font-size:.85rem}.unsched-card:focus{outline:2px solid var(--primary)}.week-grid{display:grid;grid-template-columns:128px repeat(7,minmax(0,1fr));min-width:0}@media(max-width:1023px){.week-grid{grid-template-columns:112px repeat(7,minmax(92px,1fr));min-width:760px}}.week-grid .wk-cell{min-width:0}.week-grid>div{border-bottom:1px solid var(--border);border-left:1px solid var(--border);padding:.3rem;min-height:70px}.week-grid .wk-head{background:var(--surface-2);font-size:.8rem;font-weight:600;min-height:0;position:sticky;top:0}.week-grid .wk-head.today{color:var(--primary)}.week-grid .wk-cell.drop-target{background:#eff6ff}.week-grid .wk-cell.on-leave{background:repeating-linear-gradient(45deg,#fef3c7,#fef3c7 8px,#fffbeb 8px,#fffbeb 16px)}.wk-visit{border-radius:4px;padding:.15rem .35rem;color:#fff;font-size:.75rem;margin-bottom:.2rem;cursor:grab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-day{display:grid;grid-template-columns:60px 1fr}.cal-hours div{height:48px;font-size:.75rem;color:var(--muted);border-top:1px solid var(--border);padding:2px 4px}.warn-list{margin:0;padding-left:1.1rem}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.5rem}.photo-grid figure{margin:0;position:relative}.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:1px solid var(--border);display:block;background:var(--surface-2)}.photo-grid figcaption{font-size:.75rem;color:var(--muted)}.sig-pad{border:2px dashed var(--border-strong);border-radius:8px;background:#fff;touch-action:none;width:100%;height:200px;display:block}.sig-img{max-width:320px;border:1px solid var(--border);border-radius:6px;background:#fff}.bar{height:8px;background:var(--surface-2);border-radius:4px;overflow:hidden;min-width:80px}.bar>span{display:block;height:100%;background:var(--primary)}.neg{color:var(--bad)}.pos{color:var(--ok)}.tech{min-height:calc(100vh - var(--footer-h) - env(safe-area-inset-bottom));background:var(--bg);padding-bottom:5rem}.tech-top{position:sticky;top:0;z-index:20;background:var(--steel);color:#fff;padding:.6rem .9rem;display:flex;align-items:center;gap:.6rem;padding-top:max(.6rem,env(safe-area-inset-top))}.tech-top h1{font-size:1.05rem;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-top a,.tech-top button{color:#fff}.sync-pill{font-size:.75rem;padding:.2rem .55rem;border-radius:999px;background:#ffffff26;white-space:nowrap;border:0;font-weight:600}.sync-pill.offline{background:#f59e0b;color:#1f2937}.sync-pill.pending{background:#fde68a;color:#1f2937}.sync-pill.error{background:#ef4444;color:#fff}.sync-pill.ok{background:#22c55e;color:#052e16}.tech-body{padding:.75rem;display:flex;flex-direction:column;gap:.75rem;max-width:720px;margin:0 auto}.tech-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.85rem;box-shadow:var(--shadow)}.tech-card h2{font-size:1rem;margin-bottom:.5rem}.tech-job{display:block;text-decoration:none;color:inherit}.tech-job .tj-time{font-weight:700;font-size:1.05rem}.tech-job .tj-title{font-weight:600;margin:.15rem 0}.tech-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:.6rem}.tech-actions .btn{min-height:46px;font-size:.9rem}.big-btn{width:100%;min-height:56px;font-size:1.1rem;border-radius:10px}.check-item{display:flex;gap:.6rem;align-items:center;padding:.55rem 0;border-bottom:1px solid var(--border)}.check-item:last-child{border-bottom:0}.check-item input[type=checkbox]{width:24px;height:24px}.check-item label{flex:1}.tech-tabs{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:20}.tech-tabs button,.tech-tabs a{background:none;border:0;padding:.55rem .2rem;font:inherit;font-size:.72rem;font-weight:600;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;cursor:pointer}.tech-tabs .active{color:var(--primary)}.queue-item{font-size:.85rem;padding:.4rem 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:.5rem}@media print{.sidebar,.topbar,.tabs,.actions,.btn{display:none!important}.shell{display:block}.content{padding:0}.app-footer{display:none!important}}@media(max-width:1100px){.grid-3{grid-template-columns:1fr 1fr}.sched-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:860px){.shell{grid-template-columns:1fr}.hamburger{display:block}.topbar-company,.topbar .user-chip{display:none}.sidebar{position:fixed;left:0;top:var(--topbar);bottom:0;width:250px;height:auto;transform:translate(-100%);transition:transform .2s;z-index:50;box-shadow:var(--shadow-lg)}.drawer-open .sidebar{transform:none}.drawer-open .drawer-scrim{display:block;position:fixed;inset:var(--topbar) 0 0 0;background:#0f172a59;z-index:45}.content{padding:1rem .75rem 3rem}.grid-2,.grid-3,.row-3{grid-template-columns:1fr}.span-2{grid-column:auto}.topbar{gap:.5rem;padding:0 .5rem}.topbar-right .btn-ghost[title="Technician view"]{display:none}}@media(max-width:560px){.row-2{grid-template-columns:1fr}.table.responsive thead{display:none}.table.responsive tr{display:block;border-bottom:1px solid var(--border);padding:.4rem 0}.table.responsive td{display:flex;justify-content:space-between;gap:1rem;border:0;padding:.25rem .6rem}.table.responsive td:before{content:attr(data-label);color:var(--muted);font-size:.8rem}.auth-card{padding:1.25rem}.tech-actions .btn{font-size:.82rem}}.view-switch{display:inline-flex;border-radius:999px;padding:2px;background:#ffffff24}.view-switch button{border:0;background:transparent;color:#e2e8f0;font:inherit;font-size:.82rem;font-weight:600;padding:.3rem .75rem;border-radius:999px;cursor:pointer;min-height:30px}.view-switch button.on{background:#fff;color:var(--steel)}.user-badge{display:inline-flex;flex-direction:column;line-height:1.15;color:#f1f5f9;font-size:.82rem;text-align:right;max-width:190px}.user-badge b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{color:#cbd5e1;font-size:.72rem;white-space:nowrap}.tech-top .user-badge{max-width:130px}.sched-unsched-count{font-weight:700}.support-note{font-size:.85rem;background:var(--surface-2);border:1px dashed var(--border);border-radius:6px;padding:.6rem .75rem}@media(max-width:860px){.topbar .user-badge{display:none}.sched-layout aside{order:-1}.sched-layout aside .unsched{max-height:40vh}}.tech-who{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#475569;padding:.4rem .9rem}.tech-who .user-badge{text-align:left;max-width:60%}@media(max-width:560px){.topbar .new-btn{padding:.4rem .6rem}.topbar-right{gap:.25rem}.topbar .view-switch button{padding:.3rem .55rem}}.fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:1.9rem;line-height:1;box-shadow:var(--shadow-lg);z-index:55;cursor:pointer}.sheet-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;z-index:69}.sheet{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--surface);border-radius:14px 14px 0 0;padding:.5rem .75rem calc(.75rem + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);display:flex;flex-direction:column;max-height:80vh;overflow-y:auto}.sheet-title{font-weight:700;padding:.6rem .25rem;color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.04em}.sheet-item{text-align:left;border:0;background:none;font:inherit;font-size:1.05rem;padding:.85rem .5rem;border-top:1px solid var(--border);cursor:pointer;color:var(--text)}.avatar-wrap{position:relative}.avatar{position:relative;width:38px;height:38px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:#475569;color:#fff;font-weight:700;font-size:.85rem;cursor:pointer}.avatar-view{position:absolute;right:-4px;bottom:-4px;background:#fff;color:var(--steel);border-radius:999px;font-size:.62rem;padding:0 4px;font-weight:800}.avatar-menu{right:0;min-width:240px;display:flex;flex-direction:column;gap:.35rem;padding:.6rem}.avatar-who .user-badge{color:var(--text);text-align:left;max-width:none}.avatar-who .user-role{color:var(--muted)}.view-switch:not(.dark){background:var(--surface-2);border:1px solid var(--border);align-self:flex-start}.view-switch:not(.dark) button{color:var(--muted)}.view-switch:not(.dark) button.on{background:var(--primary);color:#fff}.menu-item{text-decoration:none}.lane-label{position:sticky;left:0;z-index:3}.board-head>div:first-child{position:sticky;left:0;z-index:4;background:var(--surface-2)}.agenda-tech{margin-bottom:.75rem}.agenda-tech h3{display:flex;align-items:center;gap:.4rem;margin:0 0 .35rem}.agenda-item{display:flex;flex-direction:column;gap:.2rem;min-width:0;width:100%;text-align:left;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:8px;background:var(--surface);padding:.6rem;margin-bottom:.4rem;font:inherit;color:inherit;cursor:pointer}.agenda-item .agenda-time{font-weight:700;white-space:normal;overflow-wrap:anywhere}.agenda-item .agenda-body{min-width:0;overflow-wrap:anywhere}@media(max-width:767px){.content{padding-bottom:6rem}.sched-toolbar{gap:.4rem}.sched-toolbar .tabs,.page-header .actions{width:100%}}@media(max-width:767px){:root{--lane-w: 112px}.lane-label{font-size:.8rem;padding:.4rem}}.off-hours{display:flex;flex-direction:column;gap:2px;margin-top:4px;width:100%}.off-hours-card{font:inherit;font-size:.72rem;text-align:left;padding:2px 6px;border-radius:6px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;white-space:normal}.off-hours-card.conflict{border-color:var(--bad)}.off-hours-card:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:1px}.lane-label{flex-wrap:wrap}.team-list{display:flex;flex-direction:column;gap:.75rem}.team-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;min-width:0}.team-card.invited{border-style:dashed}.team-head{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.team-name{min-width:0;flex:1 1 180px}.team-email{overflow-wrap:anywhere}.team-meta{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.role-switches{display:flex;flex-wrap:wrap;gap:.4rem}.role-pick{border:0;padding:0;margin:0}.role-pick legend{font-weight:600;font-size:.85rem;margin-bottom:.35rem}.switch{display:inline-flex;align-items:center;gap:.4rem;font:inherit;font-size:.82rem;padding:.3rem .55rem;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;min-height:36px}.switch:disabled{cursor:not-allowed;opacity:.55}.switch:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:2px}.switch-track{width:30px;height:18px;border-radius:999px;background:#cbd5e1;position:relative;flex:none;transition:background .15s}.switch-thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s}.switch.on .switch-track{background:var(--primary, #2563eb)}.switch.on .switch-thumb{left:14px}.switch.on{border-color:var(--primary, #2563eb)}.lock-reason{width:100%}@media(max-width:420px){.team-meta{text-align:left;align-items:flex-start}}.req{color:var(--bad, #b91c1c);font-weight:700}.lines tr.line-invalid td{background:#fef2f2}.lines tr.line-invalid td:first-child{box-shadow:inset 3px 0 0 var(--bad, #b91c1c)}.lines .kind-select{min-width:112px}.lines .actions-cell{position:sticky;right:0;background:var(--surface);white-space:nowrap;z-index:1;box-shadow:-6px 0 6px -6px #00000040}.lines tr.line-invalid .actions-cell{background:#fef2f2}.visit-block.compact{padding:.15rem .3rem;display:flex;flex-direction:column;justify-content:center}.visit-block.compact .vb-title{font-size:.74rem}.visit-block.compact .vb-sub{font-size:.7rem}.vb-pop{position:fixed;z-index:60;width:240px;max-width:calc(100vw - 16px);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-lg, 0 8px 24px rgba(0,0,0,.18));padding:.5rem .6rem;font-size:.82rem;overflow-wrap:anywhere}.lane-leave>span{display:block;max-width:calc(100% - 12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}td.nowrap,td.num{white-space:nowrap}.table th.num{min-width:5.5rem}.pw-wrap{position:relative;display:flex}.pw-wrap input{flex:1;padding-right:4rem}.pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);font:inherit;font-size:.8rem;border:0;background:transparent;color:var(--primary, #2563eb);padding:.3rem .5rem;cursor:pointer;border-radius:6px}.pw-toggle:focus-visible{outline:2px solid var(--primary, #2563eb)}.spin-inline{display:inline-block;width:.9em;height:.9em;margin-right:.4em;vertical-align:-.1em}.tabs-wrap{position:relative;margin-bottom:1rem}.tabs-wrap .tabs{margin-bottom:0;scroll-behavior:smooth}.tabs-wrap.fade-l .tabs{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 36px);mask-image:linear-gradient(90deg,transparent 0,#000 36px)}.tabs-wrap.fade-r .tabs{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 36px);mask-image:linear-gradient(270deg,transparent 0,#000 36px)}.tabs-wrap.fade-l.fade-r .tabs{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)}.tabs-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:28px;height:28px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:1.1rem;line-height:1;cursor:pointer;box-shadow:var(--shadow)}.tabs-arrow.left{left:0}.tabs-arrow.right{right:0}.sched-toolbar .tabs-wrap{margin-bottom:0}@media(max-width:767px){.sched-toolbar .tabs-wrap{width:100%}}.sync-pill{display:inline-flex;align-items:center;gap:.35rem;flex:none}.sync-dot{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.8}.label-row{display:flex;align-items:baseline;gap:.2rem}.label-row .req{font-size:.82rem}.date-wrap{position:relative;display:flex}.date-wrap input[data-sgdate]{flex:1;padding-right:2.6rem;font-variant-numeric:tabular-nums}.date-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:1rem;padding:.25rem .4rem;border-radius:6px}.date-native{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.visit-block.leave-conflict{outline:2px dashed var(--bad, #b91c1c);outline-offset:1px}.vb-leave{font-weight:800}.wk-visit.leave-conflict{outline:2px dashed var(--bad, #b91c1c);outline-offset:-2px}.wk-tech{min-width:0}.wk-tech-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.wk-visit{white-space:nowrap;overflow:hidden;text-overflow:clip;display:flex;flex-wrap:wrap;gap:0 .3rem;align-items:baseline}.wk-visit .wk-no{font-weight:700;white-space:nowrap}.wk-visit .wk-time{opacity:.9;font-size:.7rem;white-space:nowrap}.lane-leave>span{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;line-height:1.2}td.nowrap>div,td.nowrap .small{white-space:normal;overflow-wrap:anywhere;min-width:7rem}.report-table .table th,.report-table .table td{padding:.4rem .45rem}.report-table .table th{white-space:normal;vertical-align:bottom}.report-table .table th.num{min-width:0}.report-table .table td.num{white-space:nowrap}.th-hint{margin-left:.25rem;cursor:help;color:var(--muted);font-weight:400}.th-hint:focus-visible{outline:2px solid var(--primary, #2563eb);border-radius:50%}.dash-table .table th,.dash-table .table td{padding:.4rem .45rem}.dash-table .badge{white-space:nowrap}.field.reserve-error{position:relative;padding-bottom:1.35rem}.field.reserve-error .field-error{position:absolute;left:0;right:0;bottom:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:root{--footer-h: 2rem}.app-footer{box-sizing:border-box;min-height:calc(var(--footer-h) + env(safe-area-inset-bottom));padding:0 1rem env(safe-area-inset-bottom);display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1.2;color:var(--muted);background:var(--bg);border-top:1px solid var(--border);text-align:center;overflow-wrap:anywhere}.update-bar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:8px;padding:.5rem .75rem;margin-bottom:.75rem;font-size:.88rem}.lane-leave{justify-content:flex-start;align-items:center}.lane-leave>span{position:sticky;left:calc(var(--lane-w) + 8px);max-width:min(100%,520px,calc(100vw - var(--lane-w) - 48px));text-align:left;padding:2px 6px;background:#fffbebeb;border-radius:4px;z-index:1}.board{scroll-snap-type:x mandatory;scroll-padding-left:var(--lane-w)}.board-head>div:not(:first-child){scroll-snap-align:start;padding-left:6px}.board-head>div:first-child,.lane-label{z-index:4}.skeleton-line{min-height:1.4rem}@media(max-width:767px){.lane-leave>span{-webkit-line-clamp:3;font-size:.72rem;line-height:1.15}}.lane-leave-reason{width:100%;font-size:.72rem;line-height:1.25;color:var(--warn, #b45309);font-weight:600;background:#fffbeb;border:1px solid #fde68a;border-radius:4px;padding:2px 5px;margin-top:3px;overflow-wrap:anywhere;white-space:normal}.badge-link{border:1px dashed currentColor;cursor:pointer;font:inherit;font-size:.72rem}.badge-link:hover,.badge-link:focus-visible{filter:brightness(.95);outline:2px solid var(--primary, #2563eb);outline-offset:1px}.kbd-help{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.6rem .8rem;margin:.5rem 0;font-size:.85rem}.kbd-help kbd{display:inline-block;min-width:1.4em;text-align:center;border:1px solid var(--border-strong, #94a3b8);border-bottom-width:2px;border-radius:4px;padding:0 .3em;font:600 .78rem ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2)}.table .sel-col{width:2.4rem;text-align:center}.table .sel-col input{width:18px;height:18px;cursor:pointer}.table tr.selected td{background:#eff6ff}.bulk-bar{position:sticky;top:calc(var(--topbar) + 4px);z-index:15;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;background:var(--steel, #1e293b);color:#fff;border-radius:10px;padding:.5rem .75rem;margin-bottom:.75rem;box-shadow:var(--shadow)}.bulk-bar .btn{background:#ffffff1f;color:#fff;border-color:#ffffff40}.bulk-bar .btn:hover{background:#fff3}.bulk-bar .bulk-count{font-weight:700;margin-right:auto}.hour-label.under-sticky{visibility:hidden}.board-head>div:first-child,.lane-label{background-clip:padding-box}.board-end-pad{border-left:0!important}.lane-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}@media(max-width:767px){.sched-layout aside.unsched-sheet{display:none}.sched-layout aside.unsched-sheet.open{display:block;position:fixed;left:0;right:0;bottom:0;z-index:70;max-height:70vh;overflow-y:auto;background:var(--surface);border-top:1px solid var(--border);border-radius:14px 14px 0 0;box-shadow:0 -8px 24px #0000002e;padding:.75rem 1rem calc(1rem + env(safe-area-inset-bottom))}.sched-layout aside.unsched-sheet .unsched{max-height:none}}.header-new{display:flex;align-items:center}.hdr-new{width:40px;height:40px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;margin-right:.4rem}.hdr-new:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(max-width:600px){.table-wrap.responsive-wrap{overflow:visible;border:0}.table.responsive,.table.responsive tbody,.table.responsive tfoot{display:block;width:100%}.table.responsive thead{display:none}.table.responsive tr{display:block;position:relative;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.45rem .6rem;margin-bottom:.5rem}.table.responsive tr.selected{border-color:var(--primary, #2563eb)}.table.responsive td{display:grid;grid-template-columns:minmax(6.5rem,38%) minmax(0,1fr);gap:.5rem;align-items:baseline;border:0;padding:.2rem 0;text-align:left;white-space:normal;overflow-wrap:anywhere}.table.responsive td.num{text-align:left}.table.responsive td:before{content:attr(data-label);color:var(--muted);font-size:.78rem;font-weight:600}.table.responsive td:empty,.table.responsive td.sel-col:before{display:none}.table.responsive tbody td:nth-child(1):not(.sel-col),.table.responsive tbody td.sel-col+td{font-weight:700;font-size:1rem}.table.responsive td.sel-col{position:absolute;top:.45rem;right:.5rem;display:block;width:auto;padding:0}.table.responsive tr:has(td.sel-col) td:not(.sel-col){padding-right:2rem}.table.responsive tfoot tr{background:var(--surface-2)}.table.responsive tfoot td{display:flex;justify-content:space-between}.table.responsive tfoot td:before{content:none}}.empty-state{text-align:center;padding:1.5rem 1rem;border:1px dashed var(--border);border-radius:8px;background:var(--surface);display:flex;flex-direction:column;align-items:center;gap:.5rem}.empty-state .empty-title{margin:0;font-weight:600}.empty-state p.small{margin:0}.tech-desk-nav{display:none;gap:.25rem}.tech-desk-nav a{color:#fff;text-decoration:none;padding:.3rem .6rem;border-radius:6px;font-size:.9rem}.tech-desk-nav a:hover,.tech-desk-nav a:focus-visible{background:#ffffff24}@media(min-width:900px){.tech{background:var(--bg)}.tech-top{padding-left:max(1rem,calc((100vw - 1040px)/2));padding-right:max(1rem,calc((100vw - 1040px)/2))}.tech-top h1{font-size:1.15rem}.tech-desk-nav{display:flex}.tech-body{max-width:1040px;padding:1.25rem 1rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));align-items:start}.tech-body>.error-box,.tech-body>.warn-box,.tech-body>.row,.tech-body>[data-testid=next-visit],.tech-body.tech-account{grid-column:1 / -1}.tech-body.tech-account{display:block;max-width:820px}.tech-who{padding-left:max(1rem,calc((100vw - 1040px)/2));padding-right:max(1rem,calc((100vw - 1040px)/2))}}@media(max-width:600px){.tabs-wrap .tabs{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none!important;mask-image:none!important;row-gap:.15rem}.tabs-wrap .tabs-arrow{display:none}.tab{padding:.45rem .6rem}}@media(max-width:1023px){.week-scroll{overflow-x:auto}.week-grid .lane-label,.week-grid .wk-head:first-child{position:sticky;left:0;z-index:3;background:var(--surface-2)}.week-grid .wk-head{white-space:nowrap}}@media(max-width:600px){.table.responsive thead:has(th.sel-col){display:block}.table.responsive thead:has(th.sel-col) tr{display:flex;align-items:center;background:transparent;border:0;padding:0 0 .35rem;margin:0}.table.responsive thead:has(th.sel-col) th:not(.sel-col){display:none}.table.responsive thead th.sel-col{display:flex;align-items:center;gap:.4rem;width:auto;background:transparent;padding:.2rem .1rem;text-transform:none;letter-spacing:0;font-size:.85rem;color:var(--text)}.table.responsive thead th.sel-col:after{content:"Select all";font-weight:600}}@media(max-width:600px){.table.responsive td.nowrap{white-space:nowrap}.table.responsive td.nowrap>div,.table.responsive td.nowrap .small{white-space:normal}}.tech:has(.tech-job-screen){padding-bottom:0}.tech-job-screen{display:flex;flex-direction:column;height:calc(100vh - var(--footer-h) - env(safe-area-inset-bottom));height:calc(100dvh - var(--footer-h) - env(safe-area-inset-bottom))}.tech-job-screen>.tech-top{position:relative;flex:none}.tech-job-screen>.tech-job-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;width:100%;padding-bottom:1.25rem}.tech-job-screen>.tech-tabs{position:static;flex:none;padding-bottom:0}.tech-tabs button,.tech-tabs a{min-height:44px;justify-content:center}.tap-44{min-height:44px;min-width:44px}.hdr-new{width:44px;height:44px}.no-phone{align-self:center;padding:0 .25rem}.visit-block:not(.compact) .vb-title{white-space:normal;overflow:hidden;display:block;text-overflow:clip;line-height:1.2;overflow-wrap:anywhere}.visit-block:not(.compact) .vb-sub{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.2}.load-error{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.wk-short{display:none}@media(max-width:600px){.week-board{scroll-snap-type:x mandatory;scroll-padding-left:136px}.week-grid{grid-template-columns:136px repeat(7,minmax(0,1fr))!important;width:calc(136px + (100% - 136px) * 7 / 3)!important;min-width:0!important}.week-grid .wk-tech-name{font-size:.72rem;letter-spacing:-.01em}.week-grid .lane-label{padding-left:6px;padding-right:4px}.week-grid .wk-day{scroll-snap-align:start}.week-grid .wk-head{overflow:hidden;text-overflow:clip}.wk-long{display:none}.wk-short{display:inline}}.tech-attention{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:.55rem .75rem;font-size:.9rem}.tech-attention a{color:inherit;font-weight:600}@media(min-width:900px){.tech-body>.tech-attention{grid-column:1 / -1}}.sig-wrap{border-radius:10px}.sig-wrap.sig-missing{outline:3px solid var(--bad, #b91c1c);outline-offset:4px}.hamburger{min-width:44px;min-height:44px;display:none;align-items:center;justify-content:center}@media(max-width:860px){.hamburger{display:inline-flex}}.export-btns .btn{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.contact-edit{min-height:32px;padding:.15rem .5rem}.week-grid .lane-label{overflow:hidden;z-index:5;min-width:0;background:var(--surface-2)}.week-grid .wk-tech-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%;line-height:1.3}.week-grid .wk-cell{position:relative;z-index:1;overflow:hidden}.secret-box{font-family:ui-monospace,Consolas,monospace;font-size:1.25rem;letter-spacing:.06em;padding:.75rem 1rem;border:2px dashed var(--border);border-radius:8px;background:var(--surface);-webkit-user-select:all;user-select:all;overflow-wrap:anywhere}.secret-key{overflow-wrap:anywhere}.handover{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:var(--surface);overflow-y:auto;display:flex;align-items:flex-start;justify-content:center;padding:1.5rem 1rem}.handover-inner{max-width:560px;width:100%;display:flex;flex-direction:column;gap:1rem}.recovery-codes{font-family:ui-monospace,Consolas,monospace;font-size:1.1rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.4rem 1.25rem;padding-left:1.5rem}@media print{.handover{display:none!important}}.company-logo-preview{max-width:240px;max-height:80px;object-fit:contain;align-self:flex-start;background:#fff;border:1px solid var(--border);border-radius:6px;padding:6px}.public-logo{display:block;max-width:220px;max-height:72px;object-fit:contain;margin-bottom:.5rem}.wordmark-logo{height:24px;display:block}
