:root{--red:#d9121f;--red-dark:#b00d18;--red-soft:#fdecee;--ink:#1f2327;--ink-2:#4a5158;--ink-3:#737b84;--gray:#3d4247;--gray-dark:#2b2f33;--bg:#f4f6f8;--surface:#ffffff;--border:#e1e6eb;--border-2:#eef1f4;--ok:#17663a;--ok-bg:#e6f4ec;--warn:#8a5a00;--warn-bg:#fdf3dc;--err:#b42318;--err-bg:#fdecea;--neutral-bg:#eceff2;--series:#4b5560;--series-hover:#d9121f;--logo-bg:#f7f7f7;--radius:10px}*{box-sizing:border-box}html,body{margin:0;height:100%}body{font:14px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--red-dark)}.hidden{display:none!important}.block{display:block}.contents{display:contents}.num{font-variant-numeric:tabular-nums}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.login{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.login-brand{background:linear-gradient(140deg,var(--gray-dark),var(--gray));color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}.login-brand .logo-box{align-self:flex-start}.login-brand h1{font-size:34px;line-height:1.15;font-weight:700;max-width:14em;text-wrap:balance}.login-brand h1 em{font-style:normal;border-bottom:3px solid var(--red)}.login-brand p{color:#c9cdd1;max-width:34em;margin-top:14px}.login-brand ul{list-style:none;padding:0;margin:0;display:grid;gap:8px;color:#e3e6e9;font-size:13px}.login-brand li:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:10px;vertical-align:middle}.login-form{display:flex;align-items:center;justify-content:center;padding:32px 24px}.login-form form{width:100%;max-width:360px;display:grid;gap:14px}.login-form h2{font-size:22px}.login-form .subtitle{color:var(--ink-3);margin-top:-8px}.logo-box{background:var(--logo-bg);border-radius:10px;padding:8px 14px;display:inline-flex}.logo-box img{display:block;height:44px;width:auto;flex:none}label.field{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--ink-2);align-content:start}input[type=text],input[type=email],input[type=password],input[type=date],input[type=search],input[type=number],select,textarea{height:36px;border:1px solid #cfd6dd;border-radius:8px;padding:0 10px;background:#fff;min-width:0;width:100%}textarea{height:auto;padding:8px 10px;resize:vertical;line-height:1.4}input[type=file]{width:100%;min-width:0;font-weight:400}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gray);outline-offset:2px}.modal:focus-visible{outline:none}.btn{height:36px;padding:0 14px;border-radius:8px;border:1px solid #cfd6dd;background:#fff;color:var(--ink);font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;text-decoration:none}.btn:hover{background:#f3f5f7}.btn.primary{background:var(--red);border-color:var(--red);color:#fff}.btn.primary:hover{background:var(--red-dark)}.btn.small{height:30px;padding:0 10px;font-size:12px}.btn.centered{justify-content:center}.btn:disabled{opacity:.55;cursor:not-allowed}.error-message{color:var(--err);font-size:13px;min-height:18px}.field-error{color:var(--err);font-size:12px;font-weight:400}.field .hint{font-weight:400}.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:18px 14px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh}.sidebar .logo-box{padding:6px 10px;align-self:flex-start}.sidebar .logo-box img{height:34px}.sidebar nav{display:grid;gap:2px}.sidebar nav a{all:unset;box-sizing:border-box;cursor:pointer;padding:9px 12px;border-radius:8px;color:var(--ink-2);font-weight:600;display:flex;align-items:center;gap:10px;width:100%}.sidebar nav a:hover{background:var(--bg)}.sidebar nav a:focus-visible{outline:2px solid var(--gray);outline-offset:2px}.sidebar nav a[aria-current=page]{background:var(--gray);color:#fff}.sidebar nav svg{width:16px;height:16px;flex:none}.sidebar .scope{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:0 12px}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border-2);padding-top:14px;display:grid;gap:8px}.sidebar .who{font-weight:700;overflow-wrap:anywhere}.sidebar .who small{display:block;font-weight:400;color:var(--ink-3)}.role-badge{display:inline-block;background:var(--neutral-bg);border-radius:10px;padding:2px 9px;font-size:11px;font-weight:700;color:var(--gray-dark)}main{padding:24px 28px 48px;min-width:0}.view{display:block}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:18px}.page-header h1{font-size:22px}.page-header p{color:var(--ink-3);margin-top:2px}.page-header .clinic-select{min-width:280px}.card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:0 2px 10px #1018280d;min-width:0}.card>h2{font-size:15px;margin-bottom:2px}.card>.hint{margin-bottom:12px}.card.stacked{margin-bottom:14px}.card.flush-top{padding-top:0}.hint{color:var(--ink-3);font-size:12px}.grid{display:grid;gap:14px;margin-bottom:14px}.kpis{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.two-cols{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.halves{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-title{font-size:12px;color:var(--ink-3);font-weight:600}.kpi-value{font-size:26px;font-weight:700;line-height:1.2;margin-top:4px}.kpi-detail{font-size:12px;color:var(--ink-3);margin-top:2px}.steps{margin:0;padding-left:18px;display:grid;gap:6px}.table-wrap{overflow-x:auto;margin:0 -16px -16px;border-top:1px solid var(--border-2)}.table-wrap.flush-top{border-top:0;margin-top:0}.table-wrap.boxed{margin:0;border:1px solid var(--border);border-radius:8px}.table-wrap.refreshing{opacity:.55}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);font-weight:700;padding:9px 12px;background:#fafbfc;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:9px 12px;border-bottom:1px solid var(--border-2);vertical-align:middle}th:first-child,td:first-child{padding-left:16px}th.right,td.right{text-align:right}.row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:215px}td.primary-cell{min-width:180px}tr.clickable{cursor:pointer}tr.clickable:hover td,tr.selected td{background:#fafbfc}tbody tr:last-child td{border-bottom:0}td.mono,td.num{white-space:nowrap}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.empty{padding:36px 16px;text-align:center;color:var(--ink-3)}.card.empty p{margin-bottom:12px}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:10px;padding:2px 9px;font-size:12px;font-weight:600;white-space:nowrap}.chip.ok{background:var(--ok-bg);color:var(--ok)}.chip.warn{background:var(--warn-bg);color:var(--warn)}.chip.err{background:var(--err-bg);color:var(--err)}.chip.neutral{background:var(--neutral-bg);color:var(--ink-2)}.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-items:end;margin-bottom:14px}.filters .wide{grid-column:span 2}.history-totals{margin-bottom:10px}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;color:var(--ink-3);font-size:12px;flex-wrap:wrap;border-top:1px solid var(--border-2)}.pager div{display:flex;gap:6px}.load-state{padding:36px 16px;text-align:center;color:var(--ink-3);display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}svg.chart{width:100%;height:auto;display:block}svg.chart .grid-line{stroke:var(--border-2);stroke-width:1}svg.chart .axis{stroke:#cfd6dd;stroke-width:1}svg.chart text{font-size:10px;fill:var(--ink-3);font-variant-numeric:tabular-nums}svg.chart .bar{fill:var(--series)}svg.chart g:hover .bar{fill:var(--series-hover)}svg.chart .hit{fill:transparent}.hbars{display:grid;gap:9px}.hbar-row{display:grid;grid-template-columns:minmax(90px,38%) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:13px}.hbar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hbar-track{height:10px;background:var(--border-2);border-radius:0 4px 4px 0}.hbar-track i{display:block;height:100%;background:var(--series);border-radius:0 4px 4px 0;min-width:2px}.hbar-row:hover .hbar-track i{background:var(--series-hover)}.hbar-value{font-weight:600;font-variant-numeric:tabular-nums}.tooltip{position:fixed;z-index:50;pointer-events:none;background:var(--gray-dark);color:#fff;font-size:12px;padding:6px 9px;border-radius:6px;max-width:260px;white-space:pre-line;box-shadow:0 4px 14px #0003}.drop-zone{border:2px dashed #c3ccd5;border-radius:var(--radius);padding:34px 16px;text-align:center;background:#fafbfc;cursor:pointer;display:grid;gap:6px;justify-items:center}.drop-zone.over{border-color:var(--red);background:var(--red-soft)}.drop-zone strong{font-size:15px}.search-field{max-width:420px;margin-bottom:12px}.list-caption{margin-bottom:8px}.trace-detail{margin-top:14px}.trace-detail h3{font-size:14px}.trace-detail .mono{margin-bottom:10px}.timeline{display:grid;gap:0;margin:6px 0 0;padding:0}.timeline li{list-style:none;position:relative;padding:0 0 14px 22px;border-left:2px solid var(--border);margin-left:6px}.timeline li:last-child{border-left-color:transparent;padding-bottom:0}.timeline li:before{content:"";position:absolute;left:-7px;top:3px;width:10px;height:10px;border-radius:50%;background:var(--gray);border:2px solid #fff}.timeline li.err:before{background:var(--err)}.dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;font-size:13px;margin:0}.dl.spaced{margin-bottom:14px}.dl dt{color:var(--ink-3)}.dl dd{margin:0;overflow-wrap:anywhere}.dl .notes{white-space:pre-line}.modal-backdrop{position:fixed;inset:0;background:#14181c80;display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;z-index:40;overflow:auto}.modal{background:#fff;border-radius:12px;width:100%;max-width:560px;padding:20px;box-shadow:0 20px 50px #0000004d}.modal.large{max-width:860px}.modal header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.modal h2{font-size:17px}.modal .close{all:unset;cursor:pointer;font-size:20px;line-height:1;padding:4px 8px;border-radius:6px;color:var(--ink-3)}.modal .close:hover{background:var(--bg)}.modal .close:focus-visible{outline:2px solid var(--gray);outline-offset:2px}.modal form{display:grid;gap:12px}.modal fieldset{border:1px solid var(--border);border-radius:8px;padding:12px;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.modal legend{font-size:12px;font-weight:700;color:var(--ink-2);padding:0 6px}.modal .full{grid-column:1/-1}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.modal-text{margin-bottom:12px}.modal-note{margin:10px 0 14px}.credentials{display:block;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:12px}.progress{height:8px;background:var(--border-2);border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:var(--gray);transition:width .2s ease}.toasts{position:fixed;right:18px;bottom:18px;display:grid;gap:8px;z-index:60}.toast{background:var(--gray-dark);color:#fff;padding:10px 14px;border-radius:8px;box-shadow:0 6px 20px #00000040;max-width:340px;font-size:13px}.release-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.release-card h2{font-size:18px;margin-top:8px}.release-card .dl{margin-top:12px}@media(max-width:860px){.login{grid-template-columns:1fr}.login-brand{padding:28px 20px}.login-brand h1{font-size:24px}.login-brand ul{display:none}.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;padding:10px 12px;gap:10px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .scope{display:none}.sidebar nav{display:flex;overflow-x:auto;order:3;width:100%}.sidebar nav a{width:auto;white-space:nowrap}.sidebar-footer{margin:0 0 0 auto;border:0;padding:0;display:flex;align-items:center}.sidebar .who small,.sidebar-footer .role-badge{display:none}main{padding:16px}.two-cols,.halves,.release-card,.modal fieldset{grid-template-columns:1fr}.page-header .clinic-select{min-width:0;width:100%}}.btn,.sidebar nav a,input,select,textarea,td,.drop-zone,.modal .close,.hbar-track i,svg.chart .bar,.table-wrap{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease,fill .16s ease,opacity .16s ease}.btn:active:not(:disabled){transform:scale(.97)}input:focus,select:focus,textarea:focus{border-color:var(--gray);box-shadow:0 0 0 3px #3d42471f}input[type=file]:focus{box-shadow:none}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes emerge{0%{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes grow-y{0%{transform:scaleY(0)}to{transform:none}}@keyframes grow-x{0%{transform:scaleX(0)}to{transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-out{to{opacity:0;transform:translateY(6px)}}.app-shell{animation:fade-in .3s ease both}.view>*{animation:rise .36s cubic-bezier(.2,.7,.2,1) both}.view>*:nth-child(2){animation-delay:.05s}.view>*:nth-child(3){animation-delay:.1s}.view>*:nth-child(4){animation-delay:.15s}.view>*:nth-child(n+5){animation-delay:.2s}.view .kpis>*{animation:rise .36s cubic-bezier(.2,.7,.2,1) both}.view .kpis>*:nth-child(2){animation-delay:.04s}.view .kpis>*:nth-child(3){animation-delay:.08s}.view .kpis>*:nth-child(4){animation-delay:.12s}.view .kpis>*:nth-child(5){animation-delay:.16s}.view .kpis>*:nth-child(6){animation-delay:.2s}.view svg.chart .bar{transform-box:fill-box;transform-origin:50% 100%;animation:grow-y .55s cubic-bezier(.2,.7,.2,1) both}.view .hbar-track i{transform-origin:0 50%;animation:grow-x .6s cubic-bezier(.2,.7,.2,1) .15s both}.timeline li{animation:rise .28s ease both}.timeline li:nth-child(2){animation-delay:.05s}.timeline li:nth-child(n+3){animation-delay:.1s}.login-brand>*{animation:rise .5s cubic-bezier(.2,.7,.2,1) both}.login-brand>*:nth-child(2){animation-delay:.08s}.login-brand>*:nth-child(3){animation-delay:.16s}.login-form form{animation:rise .5s cubic-bezier(.2,.7,.2,1) .1s both}.modal-backdrop{animation:fade-in .18s ease both}.modal{animation:emerge .24s cubic-bezier(.2,.8,.2,1) both}.modal-backdrop.leaving{animation:fade-out .15s ease both}.toast{animation:rise .25s ease both}.toast.leaving{animation:fade-out .2s ease both}.spinner{display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid #b9c1c9;border-top-color:var(--gray);animation:spin .7s linear infinite;flex:none}.spinner.light{border-color:#ffffff73;border-top-color:#fff}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
