:root{color-scheme:light;--bg:#f5f5f7;--surface:#fff;--surface2:#f8f8fa;--text:#24232b;--muted:#85838e;--line:#e9e8ed;--accent:#a72729;--tint:#faeeee;--green:#247e65;--shadow:0 10px 35px #24232b05;font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}body[data-theme=dark]{color-scheme:dark;--bg:#141419;--surface:#1e1e25;--surface2:#24242d;--text:#f2f0f3;--muted:#a19ca9;--line:#32313b;--accent:#df6769;--tint:#38262c;--green:#72c8a9;--shadow:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:10px 15px;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:.15s}button:hover{border-color:var(--accent);color:var(--accent)}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{filter:brightness(.92)}button.danger{color:#bd3338}button.ghost{background:transparent;border-color:transparent}.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-inline-end:1px solid var(--line);padding:28px 18px 18px;background:var(--surface);display:flex;flex-direction:column;gap:18px;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 20px}.brand-mark{height:42px;width:42px;border-radius:13px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:23px;font-weight:900}.brand strong{display:block;font-size:23px;letter-spacing:-1px}.brand small{color:var(--muted);font-size:11px}.nav-group{color:var(--muted);font-size:11px;padding:8px 14px;font-weight:600}.nav-list{display:grid;gap:4px}.nav{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:var(--muted);font-weight:600;font-size:13px}.nav:hover{background:var(--surface2);color:var(--text)}.nav.active{background:var(--tint);color:var(--accent)}.nav.active:after{content:'';height:6px;width:6px;border-radius:50%;background:var(--accent);margin-inline-start:auto}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:18px 10px 0;display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;height:36px;width:36px;display:grid;place-items:center;background:var(--tint);color:var(--accent);font-weight:700}.sidebar-foot small{display:block;color:var(--muted);margin-top:3px}.main{min-width:0}.topbar{height:82px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px}.topbar-title{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.topbar-title b{color:var(--text)}.top-actions{display:flex;align-items:center;gap:8px}.top-actions button{padding:8px}.top-actions select{max-width:200px;border:0;background:var(--surface2);padding:10px;border-radius:8px;color:var(--text)}.content{max-width:1600px;margin:auto;padding:30px 36px 50px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{color:var(--accent);font-size:11px;letter-spacing:1px;font-weight:700;margin-bottom:7px}h1{font-size:27px;line-height:1.4;margin:0;letter-spacing:-.7px}h2{font-size:17px;margin:0 0 6px}h3{font-size:15px;margin:0}p{line-height:1.7}.muted,.page-head p{color:var(--muted);font-size:13px;margin:7px 0 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.hero{border-radius:17px;padding:28px 30px;background:#29262e;display:flex;justify-content:space-between;align-items:center;color:#fff;position:relative;overflow:hidden;margin-bottom:25px;min-height:165px}.hero:after{content:'';position:absolute;width:230px;height:230px;border:45px solid #a7272955;border-radius:50%;inset-inline-end:70px;top:-86px;pointer-events:none}.hero h2{font-size:23px;margin:4px 0 9px}.hero p{color:#cbc6ce;font-size:13px;max-width:600px;margin:0}.hero .hero-label{color:#f4a3a4;font-size:12px}.hero-logo{background:#fff;border-radius:10px;width:92px;height:110px;object-fit:contain;z-index:1}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:21px;box-shadow:var(--shadow)}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.kpi-icon{height:35px;width:35px;border-radius:10px;background:var(--surface2);display:grid;place-items:center;color:var(--accent)}.kpi-value{font-size:29px;font-weight:700;letter-spacing:-1px;margin:10px 0 8px;direction:ltr;text-align:start;font-variant-numeric:tabular-nums}.kpi small{color:var(--muted);font-size:11px}.grid-two{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,1fr);gap:20px;margin-bottom:24px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{padding:22px 24px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.panel-body{padding:0 24px 24px}.chart{height:205px;display:flex;align-items:flex-end;gap:12px;border-bottom:1px solid var(--line);padding:15px 5px 0;background:repeating-linear-gradient(to top,transparent,transparent 49px,var(--line) 50px)}.bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.bar{width:75%;max-width:45px;background:var(--accent);border-radius:6px 6px 0 0;min-height:3px;opacity:.8}.bar-wrap small{font-size:9px;color:var(--muted);white-space:nowrap;background:var(--surface)}.empty{padding:42px 22px;text-align:center;color:var(--muted)}.empty .icon{height:34px;width:34px;opacity:.5;margin-bottom:10px}.empty b{display:block;color:var(--text);font-size:14px;margin:4px}.empty p{font-size:12px;max-width:360px;margin:8px auto}.quick{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.quick:last-child{border-bottom:0}.quick-icon{background:var(--tint);color:var(--accent);height:40px;width:40px;border-radius:11px;display:grid;place-items:center}.quick b{display:block;font-size:13px}.quick small{color:var(--muted);font-size:11px}.quick .arrow{margin-inline-start:auto;color:var(--muted)}.toolbar{padding:18px 22px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}input,textarea,select{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:11px 12px;max-width:100%;min-width:0}input:focus,textarea:focus,select:focus{border-color:var(--accent)}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}input[type=search]{min-width:240px}.search-wrap{display:flex;align-items:center;gap:10px;flex:1}.search-wrap input{width:100%;max-width:430px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{font-weight:500;color:var(--muted);background:var(--surface2);padding:14px 20px;text-align:start}td{padding:16px 20px;border-bottom:1px solid var(--line);text-align:start}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface2)}td strong{font-weight:600}.cell-sub{font-size:10px;color:var(--muted);margin-top:4px}.row-actions{display:flex;gap:5px}.row-actions button,.row-actions a{font-size:11px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.badge{padding:5px 9px;border-radius:7px;font-size:10px;background:var(--surface2);color:var(--muted);display:inline-block}.badge.good{background:#247e6518;color:var(--green)}.badge.bad{background:var(--tint);color:var(--accent)}.pagination{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.pagination .actions button{font-size:12px;padding:7px 12px}.notice{padding:14px 18px;background:var(--tint);border:1px solid #a7272920;border-radius:10px;font-size:12px;line-height:1.8;margin-bottom:18px;color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.field input,.field select,.field textarea{width:100%}.field textarea{min-height:85px;resize:vertical}.field.check{flex-direction:row;align-items:center}.field.check input{width:18px}.field.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:24px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:10px}.modal-head h2{font-size:22px}dialog{border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--text);padding:28px;width:min(780px,94vw);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#10101d70;backdrop-filter:blur(4px)}.line-items{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.line-item{display:grid;grid-template-columns:minmax(120px,2fr) 1fr 1fr 35px;gap:8px;margin:10px 0}.line-item button{padding:6px}.line-labels{display:grid;grid-template-columns:2fr 1fr 1fr 35px;gap:8px;font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 25px;border-radius:10px;background:var(--text);color:var(--surface);box-shadow:0 8px 30px #0003;z-index:100;display:none;max-width:90vw}.error{background:#b62e2e15;color:#bd3338;border-radius:8px;padding:12px;line-height:1.6;margin-bottom:18px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#28242d;padding:60px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;position:relative;overflow:hidden}.login-art:after{content:'';height:420px;width:420px;border:95px solid #a72729;border-radius:50%;position:absolute;bottom:-180px;inset-inline-end:-150px;opacity:.7}.login-art h1{font-size:46px;max-width:440px}.login-art p{color:#bcb4c0;max-width:420px}.login-form{display:flex;align-items:center;justify-content:center;padding:30px}.login-card{width:360px}.login-card h2{font-size:27px;margin:25px 0 12px}.login-card .field{margin-top:17px}.login-card button.primary{width:100%;margin-top:25px}.login-logo{width:95px;height:125px;object-fit:contain;background:#fff;border-radius:10px}.boot{display:grid;place-content:center;gap:15px;text-align:center;min-height:100vh;font-size:30px;font-weight:700;color:var(--accent)}.boot span{font-size:13px;color:var(--muted)}.timeline-item{padding:16px;border-inline-start:2px solid var(--line);margin-inline-start:8px;position:relative}.timeline-item:before{content:'';position:absolute;inset-inline-start:-5px;top:22px;width:8px;height:8px;border-radius:50%;background:var(--accent)}.timeline-item small{color:var(--muted)}.timeline-item p{margin:7px 0;font-size:13px;white-space:pre-wrap}.mobile-menu{display:none}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.identity-preview{text-align:center;padding:30px}.identity-preview img{width:160px;background:#fff;border-radius:12px}.dl{display:grid;grid-template-columns:140px 1fr;gap:16px;font-size:13px}.dl dt{color:var(--muted)}.dl dd{margin:0}.currency{font-size:11px;color:var(--muted);margin-inline-start:4px}.message{max-width:85%;padding:14px 17px;margin:14px;border-radius:14px;background:var(--surface2);white-space:pre-wrap;line-height:1.7}.message.out{margin-inline-start:auto;background:var(--tint)}.message small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.form-total{margin-top:15px;background:var(--surface2);border-radius:9px;padding:15px;font-size:18px;font-weight:700;text-align:end}@media(max-width:1100px){.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:25px}.topbar{padding:0 25px}.kpis{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.sidebar{padding-inline:12px}.brand strong{font-size:21px}}@media(max-width:760px){.shell{display:block}.sidebar{display:none;position:fixed;inset-block:0;inset-inline-start:0;width:260px;z-index:30;box-shadow:0 0 0 100vw #0005}.shell.menu-open .sidebar{display:flex}.mobile-menu{display:inline-flex}.topbar{height:68px;padding:0 16px;gap:10px}.topbar-title{display:none}.top-actions{gap:5px}.top-actions select{max-width:145px;font-size:11px}.content{padding:22px 16px}.page-head{align-items:flex-start;gap:14px;margin-bottom:20px}h1{font-size:23px}.page-head p{font-size:11px}.page-head .actions button{padding:9px;font-size:11px}.hero{padding:23px;min-height:150px}.hero h2{font-size:20px}.hero-logo{width:64px;height:86px;margin-inline-start:10px}.hero p{font-size:11px}.kpis{gap:10px}.kpi{padding:15px}.kpi-value{font-size:23px}.kpi-top{font-size:11px}.kpi-icon{width:29px;height:29px}.grid-two{gap:15px}.panel-head{padding:18px}.panel-body{padding:0 18px 18px}.toolbar{padding:14px;gap:8px}.toolbar input[type=search]{min-width:140px}.toolbar input[type=date]{width:135px}.toolbar select{max-width:150px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}dialog{padding:22px 18px}.line-item{grid-template-columns:minmax(95px,2fr) 1fr 1fr 30px;gap:5px}.line-item input,.line-item select{padding:8px 5px;font-size:11px}.settings-grid{grid-template-columns:1fr}.login{display:block}.login-art{display:none}.login-form{min-height:100vh}.dl{grid-template-columns:100px 1fr}td,th{padding:13px}.top-actions button{font-size:11px}.hero:after{inset-inline-end:0}}@media print{.sidebar,.topbar,.toolbar,.actions,.pagination,button{display:none!important}.shell{display:block}.content{padding:0}.panel{border:0}.page-head{margin-bottom:15px}body{background:white;color:black}.table-wrap{overflow:visible}table{white-space:normal}.hero{background:white;color:black}.hero p{color:black}.kpis{grid-template-columns:repeat(4,1fr)}}
.inbox-layout{display:grid;grid-template-columns:300px 1fr;gap:20px;min-height:430px}.conversation-list{padding:10px}.conversation-item{width:100%;border:0;justify-content:flex-start;text-align:start;padding:15px 9px;border-radius:8px}.conversation-item b{display:block;font-size:12px}.conversation-item small{display:block;color:var(--muted);font-size:11px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation-messages{max-height:580px;overflow:auto;padding:10px}.unread{background:var(--accent);color:white;padding:3px 7px;border-radius:50%;font-size:10px;margin-inline-start:auto}@media(max-width:850px){.inbox-layout{grid-template-columns:1fr}.conversation-list{max-height:220px;overflow:auto}}

.care-picker{border:1px solid var(--border,#ddd);border-radius:14px;padding:16px;margin:0 0 20px}.care-picker legend{font-weight:700;padding:0 8px}.care-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.care-choice{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border,#ddd);border-radius:10px;cursor:pointer}.care-choice input{width:19px;height:19px;accent-color:#a72729}.care-choice:has(input:checked){border-color:#a72729;background:rgba(167,39,41,.08)}.field[hidden]{display:none}.care-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}@media(max-width:550px){.care-options{grid-template-columns:1fr}}
