:root{font-family:Inter,Segoe UI,Arial,sans-serif;font-synthesis:none;font-size:16px;line-height:1.5;color:var(--ink);background:var(--surface);--brand: #1e3e65;--brand-dark: #1c2d50;--brand-hover: #284f7a;--accent: #ea0973;--accent-strong: #c70861;--accent-soft: #fff0f6;--ink: #20334b;--muted: #647084;--line: #dbe1eb;--surface: #f5f7fb;--focus: #c70861}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);min-height:46px;padding:10px 15px;font-weight:600;cursor:pointer}button:hover{background:var(--surface);border-color:#8698b3}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover{background:var(--brand-hover)}button.quiet,button.text-button{background:transparent;border-color:transparent}button.text-button{color:var(--brand);padding-left:0}button.danger{color:#a22129;border-color:#d7989c}input,select,textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid #c4cfdd;border-radius:8px;color:var(--ink);background:#fff;max-width:100%}input:disabled{background:#f1f3f7;color:var(--muted)}textarea{resize:vertical}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--brand)}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;line-height:1.2;letter-spacing:-.045em;margin-bottom:10px}h2{font-size:1.15rem;letter-spacing:-.02em;margin-bottom:18px}h3{font-size:1rem;margin-bottom:4px}p{margin-bottom:14px}a{color:var(--brand)}small,.small{font-size:.82rem;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;font-size:.85rem}video{width:100%;border-radius:10px}.full{width:100%}.muted{color:var(--muted)}.eyebrow{font-size:.7rem;font-weight:750;letter-spacing:.14em;color:var(--muted);display:block;margin-bottom:8px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{justify-content:space-between}.grid{display:grid;gap:18px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:17px;font-size:.9rem;font-weight:600}.field small{font-weight:400}.field-note{font-size:.85rem;color:var(--muted)}.check{display:flex;align-items:center;gap:10px;margin:16px 0;min-height:44px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:20px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:8px 0 28px}.page-title p{color:var(--muted);margin-bottom:0}.notice{padding:14px 18px;background:#fff7df;border:1px solid #e4cd8b;color:#604c14;border-radius:10px;margin:0 0 18px}.notice.success{background:#eef3fa;border-color:#bacce2;color:var(--brand)}.dismiss{display:flex;align-items:center;justify-content:space-between}.dismiss button{background:none;border:0;font-size:24px}.warning{color:#a35218}.conflict-banner{width:100%;background:#fff2e2;margin-bottom:18px;border-color:#d6af7d}.tag{display:inline-block;border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:3px 8px;color:var(--brand);font-size:.75rem;font-weight:600}.count{font-size:.75rem;border-radius:5px;padding:1px 7px;background:var(--accent-soft);color:var(--accent-strong)}.brand{display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:316px;width:100%}.brand-mark{width:100%;padding:10px 12px;border-radius:12px;background:#fff;line-height:0}.brand img{display:block;width:100%;height:auto}.brand span{font-size:.67rem;font-weight:600;letter-spacing:.2em;color:#d7e2f3;padding-left:2px}.app-shell{display:flex;min-height:100vh}.sidebar{border-top:4px solid var(--accent);position:fixed;inset:0 auto 0 0;width:230px;background:var(--brand-dark);color:#fff;padding:28px 20px;display:flex;flex-direction:column}.sidebar .brand{margin:0 0 34px}.sidebar-label{font-size:.65rem;letter-spacing:.16em;color:#b4c4dd;margin:0 13px 12px}.sidebar nav{display:grid;gap:7px}.sidebar button{background:transparent;border-color:transparent;color:#d7e2f3;justify-content:flex-start;font-size:.88rem;font-weight:500}.sidebar nav button{padding:12px 14px;gap:13px}.sidebar button.active{background:#324769;color:#fff;box-shadow:inset 3px 0 var(--accent)}.sidebar nav .count{margin-left:auto}.sidebar-bottom{margin-top:auto}.sidebar-bottom>button{margin:20px 0;width:100%}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #425576;padding-top:23px}.avatar{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-strong);width:34px;height:34px;border-radius:50%;font-size:.7rem;font-weight:700;flex-shrink:0}.profile strong{display:block;font-size:.75rem;max-width:95px;overflow-wrap:anywhere}.profile small{display:block;font-size:.7rem;color:#bdcee6}.profile button{padding:5px;margin-left:auto}.workspace{margin-left:230px;min-width:0;width:calc(100% - 230px)}.topbar{min-height:96px;background:#fff;border-bottom:1px solid var(--line);padding:18px 38px;display:flex;align-items:center;gap:20px}.topbar select{font-size:.9rem;font-weight:700;min-height:44px;padding:0 24px 0 0;border:0;background:transparent;max-width:260px}.topbar .eyebrow{font-size:.63rem;margin-bottom:3px}.sync-state{margin-left:auto;text-align:right;max-width:450px}.sync-state>span{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:.8rem;font-weight:600}.sync-state>small{display:block;font-size:.7rem;margin-top:5px}.topbar>button{font-size:.78rem;min-height:44px}.main-content{max-width:1450px;padding:35px 40px 50px;margin:auto}.date-badge{padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:.8rem;color:var(--muted)}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:35px}.hero-action{justify-content:flex-start;text-align:left;padding:30px 25px;border-radius:14px;min-height:154px;gap:18px}.hero-action>svg:last-child{margin-left:auto;flex-shrink:0}.hero-action h2{font-size:1.4rem;margin-bottom:5px}.hero-action p{font-size:.85rem;font-weight:400;margin:0}.hero-action.scan{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:inset 0 3px var(--accent)}.hero-action.scan:hover{background:var(--brand-hover)}.hero-action.scan p{color:#d7e2f3}.hero-icon{display:grid;place-items:center;min-width:58px;height:58px;background:#fff;border-radius:13px;color:var(--accent)}.manual-action .hero-icon{background:var(--accent-soft);color:var(--accent-strong)}.manual-action p{color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 14px}.section-title h2{margin:0}.section-title>span{font-size:.76rem;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 30px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 23px}.metric span{display:block;color:var(--muted);font-size:.8rem}.metric strong{display:block;font-weight:650;font-size:2.25rem;letter-spacing:-.05em;margin-top:8px}.customer-list{display:grid;gap:10px}.customer-card{display:flex;width:100%;min-height:104px;justify-content:flex-start;text-align:left;padding:19px 22px;gap:16px;border-radius:11px}.customer-avatar{width:44px;height:44px;border:1px solid var(--line);background:var(--surface);border-radius:10px;display:grid;place-items:center;font-size:.83rem;font-weight:700;flex-shrink:0}.customer-main{flex:1;min-width:0}.customer-card h3{margin:0 0 4px;font-size:.94rem}.customer-card p{font-size:.79rem;font-weight:400;color:var(--muted);margin:0 0 4px}.customer-card small{font-size:.69rem;font-weight:400;display:block}.customer-meta{text-align:right;max-width:240px}.customer-meta p{margin-top:5px}.closing-note{display:flex;gap:14px;border-top:1px solid var(--line);padding-top:22px;margin-top:30px;color:var(--brand)}.closing-note strong{font-size:.8rem}.closing-note p{font-size:.77rem;color:var(--muted);margin:3px 0}.empty{padding:45px 25px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);background:#fff;border:1px dashed #c4cfdd;border-radius:12px;text-align:center}.empty h2{font-size:1rem;color:var(--brand);margin:10px 0}.empty p{margin:0}.form-layout{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.5fr);gap:22px}.photo-panel{align-self:start;position:sticky;top:20px}.photo-panel p{font-size:.82rem}.record-fields{border:0;padding:0;margin:0;min-width:0}.capture-hint{margin:8px 0 14px;color:var(--muted)}.auto-read{font-size:.82rem;line-height:1.4}.photo-panel>.full{margin-bottom:8px}.quick-capture{padding:15px;margin:16px 0;background:var(--accent-soft);border:1px solid #efb4ce;border-radius:10px}.quick-capture strong{font-size:.9rem}.quick-capture p{margin:7px 0 12px}.quick-capture button{font-size:.85rem}.crop-editor{background:var(--surface);padding:12px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.crop-preview{position:relative;overflow:hidden;border-radius:7px;line-height:0;margin-bottom:12px}.crop-preview img{display:block;width:100%;height:auto}.crop-frame{position:absolute;border:3px solid var(--accent);box-shadow:0 0 0 999px #0008;pointer-events:none}.crop-slider{display:flex;align-items:center;gap:12px;font-size:.82rem}.crop-slider input{min-height:44px;padding:0;border:0;accent-color:var(--accent-strong);flex:1;min-width:0}.optional{font-size:.7rem;color:var(--muted);font-weight:400}.photo-actions{display:flex;gap:8px;flex-wrap:wrap}.photo-actions button{font-size:.79rem;flex:1}.photo-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:35px 16px;margin:18px 0;border:1px dashed #c4cfdd;border-radius:10px;background:var(--surface);text-align:center;color:var(--muted)}.photo-empty strong{font-size:.85rem}.photo-empty span{font-size:.75rem}.card-photo{width:100%;max-height:300px;object-fit:contain;border-radius:8px;background:#f1f3f7}.photo-item{margin:18px 0}.photo-item>.row button{font-size:.72rem;padding:7px 10px}.step{display:inline-grid;place-items:center;width:26px;height:26px;background:var(--accent-soft);color:var(--accent-strong);border-radius:6px;font-size:.75rem;margin-right:8px}.chips{display:flex;gap:9px;flex-wrap:wrap}.chip{font-size:.8rem;font-weight:500;min-height:44px;padding:9px 14px;border-radius:7px}.chip.selected{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-strong)}.chip.selected:before{content:"✓";font-weight:700}.form-footer{position:sticky;bottom:0;padding:17px 20px;margin:0 -1px;background:#fffffff7;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:flex-end;gap:12px;z-index:2;box-shadow:0 -5px 25px #1c2d5008}.form-footer>span{margin-right:auto;color:var(--muted);font-size:.75rem}.form-footer button{font-size:.83rem;min-height:50px}.form-sections{min-width:0}.form-layout:has(>.form-sections:only-child){grid-template-columns:1fr}.ocr-review{border-left:3px solid var(--accent);background:#eef3fa;padding:17px;border-radius:9px;font-size:.87rem}.candidate{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:14px 0}.candidate>span{flex:1}.candidate small{display:block}.candidate button{font-size:.78rem}.search{display:flex;align-items:center;gap:12px}.search input{border:0;padding-left:0}.filters{padding:10px 20px;margin-bottom:14px}.filters details{padding-top:0;border-top:1px solid var(--line)}details{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}summary{min-height:44px;cursor:pointer;font-size:.85rem;font-weight:600;padding:10px 0;color:var(--brand)}details[open]>summary{margin-bottom:10px}.export-row{margin-bottom:15px}.export-row button{font-size:.8rem}.detail-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:22px}.visit{border-left:2px solid var(--accent);padding:0 0 22px 20px;margin-bottom:20px;border-bottom:1px solid var(--line);font-size:.9rem}.visit-note{white-space:pre-wrap}.visit .row{margin-bottom:10px}.edit-box{background:var(--surface);padding:18px;margin-top:10px;border-radius:9px}.danger-zone{margin-top:20px}.bar-row{display:flex;align-items:center;gap:15px;font-size:.82rem;margin-bottom:13px}.bar-row span{width:135px}.bar-row meter{flex:1}.bar-row b{min-width:25px}progress{width:100%;height:14px;accent-color:var(--brand)}.legal-text{white-space:pre-wrap;max-height:280px;overflow:auto;font-size:.83rem}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:radial-gradient(ellipse at 0 100%,#542657 0,transparent 55%),linear-gradient(145deg,var(--brand),var(--brand-dark));border-top:5px solid var(--accent);padding:55px 70px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-brand .eyebrow{color:#f9a8cc;font-size:.7rem}.login-brand h1{font-size:3.7rem;line-height:1.1;font-weight:600;margin:24px 0}.login-brand p{color:#d7e2f3;font-size:1.05rem;line-height:1.8}.login-brand small{color:#b4c4dd}.login-card{max-width:460px;width:100%;padding:45px 30px;align-self:center;justify-self:center}.login-card h2{font-size:1.75rem;margin:22px 0 8px}.login-card>p{color:var(--muted);font-size:.9rem}.login-card>svg{color:var(--brand)}.login-card button.primary{margin:10px 0 18px}.loading{padding:50px;text-align:center}.mobile-only{display:none}@media(min-width:1400px){.main-content{padding-top:45px}.hero-action{min-height:170px}}@media(max-width:1100px){.sidebar{width:195px;padding:24px 13px}.workspace{margin-left:195px;width:calc(100% - 195px)}.main-content{padding:28px 25px}.topbar{padding:17px 25px}.hero-action{padding:24px 18px;gap:12px}.hero-icon{min-width:45px;height:45px}.hero-action h2{font-size:1.2rem}.hero-action>svg:last-child{display:none}.form-layout{grid-template-columns:1fr}.photo-panel{position:static}.photo-empty{padding:25px}.metrics{gap:10px}.metric{padding:17px}.three{grid-template-columns:1fr 1fr}.login-brand{padding:40px}.login-brand h1{font-size:3rem}}@media(max-width:800px){.mobile-only{display:inline-flex}.sidebar{width:100%;height:auto;inset:0 0 auto;position:static;padding:14px 18px;display:block}.sidebar .brand{margin:0 0 12px}.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:3px}.sidebar nav button{flex:0 0 auto;white-space:nowrap;padding:10px 12px;font-size:.8rem;min-height:44px}.sidebar nav button svg{width:17px;flex-shrink:0}.app-shell{display:block}.workspace{margin:0;width:100%}.topbar{padding:15px 20px;gap:10px;flex-wrap:wrap}.sync-state{max-width:65%;font-size:.8rem}.topbar>button{padding:8px}.desktop-only{display:none}.main-content{padding:24px 20px 45px}.page-title{margin:0 0 22px}.page-title h1{font-size:1.75rem}.hero-action{min-height:125px}.metrics{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.section-title>span{max-width:180px;text-align:right}.form-footer{padding:12px}.form-footer>span{display:none}.login-brand{padding:30px}.login-brand h1{font-size:2.5rem}.login-card{padding:30px 25px}.form-layout{gap:0}}@media(max-width:560px){.main-content{padding:20px 14px 35px}.topbar{padding:13px 15px}.topbar select{max-width:190px;font-size:.8rem}.sync-state{order:3;max-width:none;width:100%;text-align:left}.sync-state>span{justify-content:flex-start}.topbar>button{margin-left:auto}.action-grid{grid-template-columns:1fr;gap:12px;margin-bottom:26px}.hero-action{min-height:110px;padding:20px}.hero-action>svg:last-child{display:block}.hero-action h2{font-size:1.3rem}.hero-action p{font-size:.8rem}.page-title{align-items:flex-start;flex-wrap:wrap}.page-title p{font-size:.83rem}.date-badge{display:none}.metrics{gap:10px}.metric{padding:18px}.metric strong{font-size:2rem}.customer-card{padding:16px 13px;gap:11px;flex-wrap:wrap}.customer-meta{width:100%;max-width:none;text-align:left;padding-left:55px}.customer-card>svg:last-child{display:none}.customer-main{min-width:180px}.panel{padding:19px 16px}.two,.three{grid-template-columns:1fr;gap:0}.grid>.panel{margin-bottom:16px}.section-title>span{font-size:.67rem;max-width:145px}.form-footer{margin:0 -7px;gap:7px}.form-footer button{padding:10px;font-size:.78rem}.form-footer button svg{display:none}.login{display:block}.login-brand{min-height:auto;padding:26px}.login-brand>div:not(.brand),.login-brand>small{display:none}.login-card{padding:28px 25px}.login-card h2{margin-top:12px}.sidebar .brand{max-width:210px;gap:7px}.sidebar .brand-mark{padding:6px 10px}.sidebar .brand span{font-size:.6rem}.export-row small{display:block}.bar-row span{width:115px}}
