:root{--bg: #f1f5f9;--surface: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e2e8f0;--primary: #f59e0b;--primary-text: #1c1917;--nav: #0f172a;--danger: #dc2626;--radius: 12px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #0b1120;--surface: #172033;--text: #e2e8f0;--muted: #94a3b8;--border: #2a3650;--nav: #050914;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.4;-webkit-tap-highlight-color:transparent}a{color:inherit}h1{font-size:1.3rem;margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}h2{font-size:1.05rem;margin:20px 0 8px}.card h2{margin-top:0}h3{font-size:.95rem;margin:0 0 6px}.shell{min-height:100vh}.content{max-width:760px;margin:0 auto;padding:12px 16px calc(90px + env(safe-area-inset-bottom))}.page-header{display:flex;align-items:center;gap:10px;padding:8px 0 12px;position:sticky;top:0;z-index:5;background:var(--bg)}.page-header h1{flex:1;min-width:0}.header-actions{display:flex;gap:8px;align-items:center}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;justify-content:space-around;background:var(--nav);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#94a3b8;text-decoration:none;font-size:.72rem;padding:4px 10px;border-radius:10px;min-width:60px}.bottom-nav a.active{color:var(--primary)}.nav-icon{font-size:1.3rem;line-height:1}.card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin-bottom:10px;text-decoration:none}.card.as-button{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}.job-card{display:flex;flex-direction:column;gap:4px}.row{display:flex;gap:8px;align-items:center}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:.85rem}.empty{color:var(--muted);text-align:center;padding:16px}.pre{white-space:pre-wrap;margin:0 0 12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;min-height:44px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-weight:600;font-size:.92rem;text-decoration:none;cursor:pointer;white-space:nowrap}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.btn.ghost{background:transparent}.btn.danger{color:var(--danger);border-color:var(--danger);background:transparent}.btn.block{display:flex;width:100%;margin:12px 0;font-size:1rem}.icon-btn{border:none;background:transparent;color:var(--text);font-size:1.2rem;width:40px;height:40px;border-radius:10px;cursor:pointer}.icon-btn.danger{color:var(--danger)}.badge{color:#fff;font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}input,select,textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:10px 12px;min-height:44px;width:100%}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);outline-offset:-1px}.search{margin-bottom:10px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid .wide,.grid h2{grid-column:1 / -1}@media (max-width: 520px){.grid{grid-template-columns:1fr}}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:.8rem;font-weight:600;color:var(--muted)}.field.checkbox{flex-direction:row;align-items:center;gap:10px}.field.checkbox input{width:22px;min-height:22px;height:22px}.card>.field{margin-top:12px}.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:6px}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 12px;font:inherit;font-size:.85rem;white-space:nowrap;cursor:pointer}.chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;text-decoration:none;display:flex;flex-direction:column;gap:2px}.stat.warn{border-color:var(--danger)}.stat.warn .stat-value{color:var(--danger)}.stat-value{font-size:1.15rem;font-weight:700}.stat-label{font-size:.75rem;color:var(--muted)}.pipeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:8px}.pipe{background:var(--surface);border:1px solid var(--border);border-top:4px solid;border-radius:var(--radius);padding:10px 8px;text-decoration:none;text-align:center;display:flex;flex-direction:column;font-size:.75rem}.pipe strong{font-size:1.3rem}@media (max-width: 420px){.stat-value{font-size:.95rem}}.quick-actions{margin-bottom:12px}.quick-actions .btn{flex:1 1 auto}.line-items{display:flex;flex-direction:column;gap:10px}.line-item{border-bottom:1px dashed var(--border);padding-bottom:10px;display:flex;flex-direction:column;gap:6px}.line-item select{width:100px;flex:none}.mini{display:flex;flex-direction:column;font-size:.72rem;color:var(--muted);flex:1;min-width:0}.line-total{font-weight:700;min-width:80px;text-align:right;align-self:flex-end;padding-bottom:10px}.line-item .icon-btn{align-self:flex-end}.totals{margin-left:auto;width:min(280px,100%)}.totals>div{display:flex;justify-content:space-between;padding:3px 0}.totals .grand{font-weight:800;font-size:1.1rem;border-top:2px solid var(--text);margin-top:4px;padding-top:6px}.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-bottom:10px}.thumb{position:relative;margin:0}.thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}.thumb .icon-btn{position:absolute;top:2px;right:2px;background:#ffffffd9;width:30px;height:30px;font-size:.9rem}.logo-preview{height:48px;border-radius:6px}.week-nav{margin-bottom:10px}.day{margin-bottom:14px}.day h3{color:var(--muted)}.day.today h3{color:var(--primary)}.slot{display:flex;gap:12px;background:var(--surface);border:1px solid var(--border);border-left:5px solid;border-radius:10px;padding:10px 12px;margin-bottom:6px;text-decoration:none}.slot-time{font-weight:700;min-width:64px}.slot-body{display:flex;flex-direction:column;min-width:0}.doc-page{background:#e5e7eb;min-height:100vh;padding:12px;color-scheme:light}.doc-toolbar{display:flex;gap:8px;max-width:800px;margin:0 auto 12px;flex-wrap:wrap}.doc-toolbar .btn{background:#fff;color:#0f172a;border-color:#cbd5e1}.doc-toolbar .btn.primary{background:var(--primary);border-color:var(--primary)}.doc{--text: #0f172a;--muted: #64748b;background:#fff;color:#0f172a;max-width:800px;margin:0 auto;padding:32px;border-radius:6px;box-shadow:0 2px 12px #00000014}.doc section{margin-bottom:18px}.doc-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:3px solid #0f172a;padding-bottom:16px;margin-bottom:18px}.doc-head h2{margin:6px 0 4px}.doc-logo{max-height:70px;max-width:200px}.doc-meta{text-align:right}.doc-meta h1{font-size:1.7rem;text-transform:uppercase;letter-spacing:1px;justify-content:flex-end;margin-bottom:6px}.doc-meta span{color:#64748b;display:inline-block;min-width:60px}.doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:16px}.doc h3{text-transform:uppercase;font-size:.75rem;letter-spacing:1px;color:#64748b}.doc-table{width:100%;border-collapse:collapse;margin-bottom:12px}.doc-table th{text-align:left;background:#f1f5f9;font-size:.8rem}.doc-table th,.doc-table td{padding:8px;border-bottom:1px solid #e2e8f0}.doc-table th:not(:first-child),.doc-table td:not(:first-child){text-align:right;white-space:nowrap}.doc-totals{margin-bottom:20px}.paid-stamp{color:#16a34a;font-weight:800;font-size:1.3rem;justify-content:flex-end!important;border:3px solid #16a34a;border-radius:6px;padding:4px 10px!important;margin-top:10px}.doc-pay{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.doc-foot{text-align:center;color:#64748b;border-top:1px solid #e2e8f0;padding-top:12px;margin-top:20px}@media (max-width: 560px){.doc{padding:18px;font-size:.9rem}.doc-meta{text-align:left}.doc-meta h1{justify-content:flex-start}.doc-parties{grid-template-columns:1fr}}@media print{.no-print,.bottom-nav{display:none!important}.doc-page{background:#fff;padding:0}.doc{box-shadow:none;padding:0;max-width:none}@page{margin:14mm}}.btn:disabled{opacity:.5;cursor:default}.btn.big{min-height:56px;font-size:1.1rem}.btn.small{font-size:.82rem;min-height:36px;padding:6px 10px}.danger-text{color:var(--danger);font-weight:600}.banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--border);border-left:5px solid var(--primary);border-radius:var(--radius);padding:12px 14px;margin:10px 0;text-decoration:none;font-size:.92rem}.banner.attention{border-left-color:var(--danger)}.pay-row{display:flex;flex-direction:column;gap:6px;margin:12px 0}.paid-note{color:#16a34a;font-weight:700;text-align:center;margin:12px 0}.tabs{display:flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px;margin-bottom:12px;position:sticky;top:56px;z-index:4}.tabs button{flex:1;border:none;background:transparent;color:var(--muted);font:inherit;font-size:.82rem;font-weight:600;padding:10px 4px;border-radius:9px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}.tabs button.on{background:var(--text);color:var(--bg)}.dot{background:var(--danger);color:#fff;border-radius:999px;font-size:.7rem;padding:1px 6px}.dot.muted-dot{background:var(--muted)}.picker{display:flex;flex-direction:column;gap:8px}.picker-results,.sheet-list{display:flex;flex-direction:column;gap:6px}.picker-hit{display:flex;flex-direction:column;gap:2px;text-align:left;width:100%;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;cursor:pointer}.picker-hit.new{border-style:dashed;color:var(--primary)}.picked{display:flex;flex-direction:column;gap:10px}.vehicle-extra{margin-top:12px}.checklist{display:flex;flex-direction:column;gap:10px}.check-item{display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--border);padding-bottom:10px}.check-label{font-weight:600}.seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.seg button{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;min-height:40px;font:inherit;font-size:.82rem;font-weight:600;cursor:pointer}.seg button.on{color:#fff}.sig{display:flex;flex-direction:column;gap:6px;margin-top:10px}.sig-canvas{width:100%;height:180px;background:#fff;border:2px dashed var(--border);border-radius:10px;touch-action:none}.sig-img{max-width:100%;height:120px;background:#fff;border-radius:8px;border:1px solid var(--border)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--surface);width:100%;max-width:640px;max-height:85vh;overflow-y:auto;border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}.sheet h2{margin:0}.reminder{display:flex;flex-direction:column;gap:8px}.reminder.overdue{border-left:5px solid var(--danger)}.check-table td:last-child{width:1%}.check-pill{color:#fff;font-size:.75rem;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}.doc-sign img{height:70px;display:block}.auth-wrap{max-width:420px;margin:0 auto;padding:32px 16px;display:flex;flex-direction:column;gap:12px;min-height:100vh}.auth-brand{text-align:center}.auth-brand img{border-radius:14px}.auth-brand h1{justify-content:center;font-size:1.6rem;margin-top:8px}.auth-brand p{margin:4px 0 0}.auth-card{display:flex;flex-direction:column;gap:12px}.auth-card h2{margin:0}.auth-links{display:flex;flex-direction:column;align-items:center;gap:6px}.link{background:none;border:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer;padding:6px;text-decoration:underline}.error{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent);padding:10px 12px;border-radius:10px;margin:0}.notice{background:color-mix(in srgb,var(--primary) 15%,transparent);padding:10px 12px;border-radius:10px;margin:0}.sync-badge{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:.8rem;border-radius:999px;padding:6px 10px;cursor:pointer;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.sync-ok span:first-child{color:#16a34a}.sync-busy span:first-child{color:var(--primary)}.sync-off{border-color:#d97706}.sync-err{border-color:var(--danger);color:var(--danger)}.thumb.loading{aspect-ratio:1;background:var(--border);border-radius:8px;animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.5}}.choice{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.choice button{display:flex;flex-direction:column;gap:2px;padding:10px 6px;text-align:center;border:2px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;cursor:pointer}.choice button.on{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}@media (max-width: 380px){.choice{grid-template-columns:1fr}}.seg.two{grid-template-columns:1fr 1fr;margin-bottom:12px}.seg button.solid{background:var(--text);color:var(--bg);border-color:var(--text)}.pill-ok{color:#16a34a;font-weight:600;font-size:.9rem;padding:8px 0}.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:10px;overflow-x:auto;padding-bottom:8px}@media (max-width: 900px){.board{grid-template-columns:repeat(4,78%);scroll-snap-type:x mandatory}.board-col{scroll-snap-align:start}}.board-col{background:color-mix(in srgb,var(--border) 45%,transparent);border-radius:var(--radius);padding:8px;min-height:200px}.board-col h3{border-top:4px solid;padding-top:6px;margin-bottom:8px;color:var(--text)}.board-card{display:flex;flex-direction:column;gap:3px;text-decoration:none;background:var(--surface);border:1px solid var(--border);border-left:5px solid;border-radius:10px;padding:10px;margin-bottom:8px}.rego{font-weight:800;letter-spacing:1px;font-size:1.05rem;border:2px solid var(--text);border-radius:5px;padding:0 6px}.key-tag{font-weight:700;font-size:.85rem}.content:has(.board){max-width:1400px}.workshop-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-decoration:none;margin-bottom:8px}.workshop-tiles span{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 6px;text-align:center;font-size:.75rem;color:var(--muted)}.workshop-tiles strong{font-size:1.4rem;color:var(--text)}.workshop-tiles .hold{border-color:#a16207}.workshop-tiles .ready{border-color:#16a34a;background:color-mix(in srgb,#16a34a 10%,var(--surface))}.workshop-tiles .ready strong{color:#16a34a}h3.sub{margin:12px 0 6px;color:var(--muted)}.right{text-align:right}.ok-text{color:#16a34a}.wa-video{width:100%;max-height:60vh;background:#000;border-radius:10px;display:block;margin-bottom:8px}.recorder{display:flex;flex-direction:column;gap:10px}.recorder-view{position:relative}.recorder-view video{width:100%;border-radius:10px;background:#000;max-height:60vh}.rec-dot{position:absolute;top:10px;left:10px;background:#0009;color:#f87171;font-weight:700;padding:4px 10px;border-radius:999px;font-size:.85rem}.wa-edit-item{display:flex;flex-direction:column;gap:6px;border:1px solid var(--border);border-left:5px solid;border-radius:10px;padding:10px;margin-bottom:10px}.seg.three{grid-template-columns:repeat(3,1fr)}.wa-edit-item .qty{width:64px;flex:none}.wa-edit-item .price{width:90px;flex:none}.link-box{word-break:break-all;background:var(--bg);border:1px dashed var(--border);padding:10px;border-radius:8px;font-family:ui-monospace,monospace;font-size:.85rem}.wa-row{border-top:1px solid var(--border);padding:10px 0;margin-top:10px;display:flex;flex-direction:column;gap:6px}.wa-row.responded strong{color:#16a34a}.wa-decisions{margin:4px 0 0;padding-left:18px;font-size:.85rem}.wa-decisions .approved{color:#16a34a}.wa-decisions .declined{color:var(--danger)}.record-sig{height:90px;display:block;margin:8px 0}.audit{font-size:.78rem;color:#334155;border-top:1px solid #e2e8f0;padding-top:10px;word-break:break-all}.cust{max-width:640px;margin:0 auto;padding:16px 16px 48px;background:#fff;color:#0f172a;min-height:100vh;color-scheme:light}.cust a{color:#0f172a}.cust-head{display:flex;align-items:center;gap:12px;border-bottom:3px solid #0f172a;padding-bottom:12px;margin-bottom:12px}.cust-head img{max-height:56px;max-width:140px}.cust-head strong{font-size:1.15rem}.cust-vehicle{margin:8px 0}.cust-msg{font-size:1.05rem}.cust-item{border:2px solid #e2e8f0;border-radius:12px;padding:12px;margin-bottom:10px;display:flex;flex-direction:column;gap:6px}.cust-item.approved{border-color:#16a34a;background:#f0fdf4}.cust-item.declined{border-color:#cbd5e1;background:#f8fafc}.cust-price{font-weight:800;white-space:nowrap}.prio{align-self:flex-start;color:#fff;font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:999px}.yn{display:grid;grid-template-columns:1fr 1fr;gap:8px}.yn button{min-height:50px;border-radius:10px;font:inherit;font-weight:700;border:2px solid #cbd5e1;background:#fff;color:#0f172a;cursor:pointer}.yn .yes.on{background:#16a34a;border-color:#16a34a;color:#fff}.yn .no.on{background:#475569;border-color:#475569;color:#fff}.decision{font-weight:700}.decision.approved{color:#16a34a}.decision.declined{color:#475569}.cust-total{display:flex;justify-content:space-between;font-size:1.15rem;border-top:3px solid #0f172a;padding-top:10px;margin:6px 0 16px}.cust-sign{display:flex;flex-direction:column;gap:10px;border-top:1px solid #e2e8f0;padding-top:8px}.cust-sign input,.cust .btn{background:#fff;color:#0f172a;border-color:#cbd5e1}.cust .btn.primary{background:#f59e0b;border-color:#f59e0b;color:#1c1917}.cust .muted,.cust .field>span{color:#64748b}.consent{font-size:.85rem;color:#334155;background:#f8fafc;border-radius:8px;padding:10px;margin:0}.cust-done{background:#f0fdf4;border:2px solid #16a34a;border-radius:12px;padding:12px;margin-bottom:12px}.cust-done h1{font-size:1.3rem}.cust-foot{text-align:center;color:#64748b;font-size:.8rem;margin-top:24px}@media print{.cust .btn,.cust .yn{display:none!important}}.break,.break a{word-break:break-all}.table-wrap{overflow-x:auto}@media (max-width: 560px){.table-wrap .doc-table{font-size:.8rem}.table-wrap .doc-table th,.table-wrap .doc-table td{padding:6px 4px}}.approval-list{margin-top:8px}.share-sent{margin-top:10px}.cust-lines{width:100%;border-collapse:collapse}.cust-lines td{padding:8px 0;border-bottom:1px solid #e2e8f0;vertical-align:top}.cust-lines td:last-child{text-align:right;white-space:nowrap;font-weight:600;padding-left:10px}.cust-sums>div{display:flex;justify-content:space-between;padding:4px 0;color:#475569}.due{background:#fff7ed;border:1px solid #fdba74;border-radius:8px;padding:10px}.terms{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px;font-size:.85rem;color:#334155}.terms summary{font-weight:700;cursor:pointer}.terms ol{padding-left:20px;margin:8px 0 0;display:flex;flex-direction:column;gap:6px}.agree{display:flex;gap:10px;align-items:flex-start;font-weight:600;padding:6px 0}.agree input{width:24px;height:24px;min-height:24px;flex:none;margin-top:1px}.btn.wrap-text{white-space:normal;text-align:center;flex-basis:140px}.yn.big button{min-height:60px;font-size:1.05rem}.cust-choice{margin:12px 0}.decline-reason{display:flex;flex-direction:column;gap:8px;margin-top:10px}.chips.wrap{flex-wrap:wrap;overflow:visible}.cust .chip{background:#fff;color:#0f172a;border-color:#cbd5e1}.cust .chip.active{background:#475569;color:#fff;border-color:#475569}.cust .decline-reason input{background:#fff;color:#0f172a;border-color:#cbd5e1}.declined-note{font-weight:700;color:#475569;background:#f1f5f9;border-radius:8px;padding:10px}.wa-row.declined strong{color:var(--danger)}.outcome{padding:8px 10px;border-radius:8px}.outcome.approved{background:#f0fdf4;color:#166534}.outcome.declined{background:#fef2f2;color:#991b1b}.repair-tag{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--muted)}.repair-tag span{white-space:nowrap}.repair-tag input{min-height:34px;padding:4px 8px;font-size:.82rem}.repair-lines{margin:0;padding-left:18px;font-size:.85rem;color:#475569}.all-btns{margin:4px 0 10px}.nav-icon svg{display:block;height:1.3rem;width:auto}.loading-screen{align-items:center;justify-content:center}.loading-screen img{border-radius:16px}.preview{margin:0;background:var(--bg);border:1px dashed var(--border);border-radius:8px;padding:8px 10px}.job-messages{display:flex;flex-direction:column;gap:4px}.msg-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.88rem;padding:6px 8px;border-radius:8px;background:var(--bg)}.msg-row.sent{color:#16a34a}.msg-row.failed{color:var(--danger)}.pay-pill{font-size:.8rem;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--bg);color:var(--muted);border:1px solid var(--border)}.pay-pill.on{color:#16a34a;border-color:#16a34a}.stripe-embed{padding:10px}.color-input{width:56px;height:44px;padding:4px}.brand-swatch{padding:10px 14px;border-radius:10px;font-weight:700;font-size:.9rem}.doc .doc-head{border-bottom-color:var(--brand, #0f172a)}.doc .doc-meta h1{color:var(--brand, #0f172a)}.doc .doc-table th{background:color-mix(in srgb,var(--brand, #0f172a) 12%,#fff)}.doc .totals .grand{border-top-color:var(--brand, #0f172a)}.cust .cust-head{border-bottom-color:var(--brand, #0f172a)}.cust .cust-total{border-top-color:var(--brand, #0f172a)}.cust .btn.primary{background:var(--brand, #f59e0b);border-color:var(--brand, #f59e0b);color:var(--on-brand, #1c1917)}.upgrade{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);padding:12px 14px;margin-bottom:10px;font-size:.9rem}.plan-now .plan-name{font-size:1.2rem}.plan-now.warn{border-color:var(--danger)}.interval{margin:6px 0 12px}.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.plan-card{position:relative;display:flex;flex-direction:column;gap:6px;margin:0}.plan-card h2{margin:0}.plan-card.popular{border:2px solid var(--primary)}.plan-card.current{border:2px solid #16a34a}.plan-card .tag{position:absolute;top:-10px;right:12px;background:var(--primary);color:#1c1917;font-size:.72rem;font-weight:800;padding:2px 8px;border-radius:999px}.plan-card .price strong{font-size:1.8rem}.plan-card .price span{color:var(--muted);font-size:.85rem;margin-left:4px}.plan-card ul{list-style:none;padding:0;margin:4px 0 8px;display:flex;flex-direction:column;gap:4px;font-size:.88rem;flex:1}.side-brand{display:none}.preview-bar{position:sticky;top:0;z-index:20;background:var(--primary);color:#1c1917;font-weight:700;text-align:center;padding:6px;font-size:.85rem}.preview-bar .link{color:#1c1917}.tech-card{display:flex;flex-direction:column;gap:8px}.tech-card-link{text-decoration:none;display:flex;flex-direction:column;gap:4px}.tech-head .rego.big{font-size:1.6rem;display:inline-block;margin-bottom:6px}.tasks{display:flex;flex-direction:column;gap:10px}.task-progress{display:flex;align-items:center;gap:10px}.task-progress .bar{flex:1;height:8px;background:var(--border);border-radius:999px;overflow:hidden}.task-progress .bar span{display:block;height:100%;background:#16a34a;transition:width .2s}.task{border:1px solid var(--border);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:6px}.task.done{border-color:#16a34a;background:color-mix(in srgb,#16a34a 6%,var(--surface))}.task-label{font-weight:600}.task .req{color:var(--danger)}.task-check{min-height:48px;border-radius:10px;border:2px dashed var(--border);background:var(--bg);color:var(--text);font:inherit;font-weight:700;cursor:pointer}.task-check.on{border-style:solid;border-color:#16a34a;background:#16a34a;color:#fff}.task-number{display:flex;align-items:center;gap:8px}.task-number input{max-width:160px;font-size:1.1rem;font-weight:700}.task-number .unit{font-weight:700;color:var(--muted)}.task-note{font-size:.85rem;min-height:36px;padding:6px 10px}.tpl-edit{display:flex;flex-direction:column;gap:10px;margin-top:10px}.tpl-item{border:1px solid var(--border);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px}.tpl-item select{width:130px;flex:none}.tpl-item .unit-in{width:110px;flex:none;min-height:36px;padding:6px 8px}.tpl-item .field.checkbox span{font-size:.85rem;color:var(--text)}.table-card{padding:0;overflow:hidden}.data-table{width:100%;border-collapse:collapse;font-size:.92rem}.data-table th{text-align:left;font-size:.78rem;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);background:var(--bg);padding:0;border-bottom:1px solid var(--border)}.data-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.data-table tbody tr{cursor:pointer}.data-table tbody tr:hover,.data-table tbody tr:focus{background:color-mix(in srgb,var(--primary) 8%,var(--surface));outline:none}.data-table .num{text-align:right}.data-table .nowrap{white-space:nowrap}.data-table .ellipsis{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.th-sort{background:none;border:none;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;padding:10px 12px;cursor:pointer;width:100%;text-align:inherit}.data-table th.num .th-sort{text-align:right}@media (min-width: 1024px){.bottom-nav{top:0;bottom:0;right:auto;width:220px;flex-direction:column;justify-content:flex-start;gap:4px;padding:18px 12px}.bottom-nav .side-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:1.25rem;padding:4px 12px 18px}.bottom-nav a{flex-direction:row;justify-content:flex-start;gap:12px;font-size:.95rem;padding:11px 12px;min-width:0}.bottom-nav a.active{background:#f59e0b24}.bottom-nav .nav-icon{font-size:1.1rem}.content{margin-left:220px;max-width:1200px;padding:20px 36px 40px}.content:has(.board){max-width:none}.preview-bar{margin-left:220px}.page-header h1{font-size:1.6rem}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.tab-body{columns:2;column-gap:16px}.tab-body>*{break-inside:avoid}.tab-body>.btn.block{column-span:all}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.week .day{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px;min-height:180px;margin:0}.week .day.today{border-color:var(--primary)}.week .slot{flex-direction:column;gap:2px;padding:8px}.quick-actions .btn{flex:0 0 auto}.plans{grid-template-columns:repeat(4,1fr)}}.readings{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}.reading{display:flex;flex-direction:column;gap:2px;font-size:.75rem;color:var(--muted);font-weight:600}.reading-in{display:flex;align-items:center;gap:4px}.reading-in input{min-height:40px;padding:6px 8px;font-weight:700;font-size:1rem}.reading-in em{font-style:normal;font-size:.75rem}
