:root{--red:#8c253a;--red-dark:#691c2c;--ink:#292f36;--muted:#848993;--line:#ececef;--bg:#f6f7f9;--pink:#f8edf0;--green:#2d7a65}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:.15s}button:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(.95)}input,select,textarea{width:100%;border:1px solid #dedfe4;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px #8c253a0c}textarea{resize:vertical;line-height:1.7}label{display:block;line-height:1.6;font-size:13px;font-weight:500}label input,label textarea,label select{margin:7px 0 18px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;margin-bottom:12px}h2{font-size:26px}h3{font-size:16px;margin-bottom:18px}p{line-height:1.8}.muted{color:var(--muted)}.primary,.secondary{border-radius:7px;padding:12px 20px;font-weight:500;white-space:nowrap}.primary{background:var(--red);border:1px solid var(--red);color:white}.secondary{background:white;border:1px solid #dddfe4;color:#4b4f57}.wide{width:100%;margin-top:12px}.text{border:0;background:none;color:var(--red);padding:7px;font-size:13px}.danger{color:#a63c3c}.eyebrow{font-size:10px;color:var(--red);font-weight:700;letter-spacing:2px;margin-bottom:13px}.eyebrow.light{color:#e7b9c0}.brand{display:flex;gap:12px;align-items:center;color:#fff}.brand strong{font-family:Georgia,serif;font-size:29px;letter-spacing:3px}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:4px}.brand.dark{color:var(--red)}.seal{border:2px solid currentColor;border-radius:50%;width:49px;height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;outline:1px solid currentColor;outline-offset:-6px;flex-shrink:0}.seal span{font-size:21px;line-height:22px}.seal small{font-size:7px;letter-spacing:1px;margin:0}.login{min-height:100vh;display:grid;grid-template-columns:52% 48%}.login-story{padding:48px 64px;background:linear-gradient(130deg,#621b2b,#922a41);color:white;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;position:relative}.story-center{padding:65px 0 140px}.story-center h1{font-size:43px;line-height:1.6;font-weight:500;letter-spacing:2px}.story-center p{color:#e3bfc7;line-height:2.1}.orbit{position:absolute;width:410px;height:410px;border:1px solid #ffffff15;border-radius:50%;right:-60px;bottom:-65px;display:grid;place-items:center;box-shadow:0 0 0 38px #ffffff04,0 0 0 80px #ffffff03}.orbit-inner{width:320px;height:320px;border:1px solid #ffffff20;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font:60px Georgia;color:#ffffff30}.orbit-inner span{font:10px sans-serif;margin-top:20px;letter-spacing:3px}.login-story>small{color:#c99ba6;z-index:1}.login-form{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:100vh}.login-box{width:min(360px,80%)}.login-box h2{font-size:30px;margin:18px 0 14px}.login-box>p{margin-bottom:40px}.login-box .primary{display:flex;justify-content:space-between}.privacy{border-top:1px solid var(--line);margin-top:32px;padding-top:25px;color:#757c87;font-size:12px;line-height:2}.privacy span{color:#a0a3a9;padding-left:16px}.login-form footer{position:absolute;bottom:25px;color:#a4a6ad;font-size:11px}.error{font-size:12px;color:#b42338;margin:5px 0}.shell{display:flex;min-height:100vh;background:var(--bg)}aside{width:225px;background:white;position:fixed;top:0;bottom:0;padding:31px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line)}aside .brand{margin-bottom:50px}.side-caption{font-size:10px;color:#a0a4ac;letter-spacing:1px;padding-left:14px;margin-bottom:15px}.nav{width:100%;display:flex;align-items:center;gap:13px;border:0;background:none;padding:13px 15px;margin-bottom:8px;text-align:left;color:#717680;border-radius:7px;font-size:13px}.nav span{width:19px;font-size:20px;line-height:20px}.nav.selected{background:var(--pink);color:var(--red);font-weight:600}.nav b{margin-left:auto;background:var(--red);color:white;padding:2px 6px;border-radius:4px;font-size:10px}.bottom-caption{margin-top:40px}.side-note{margin-top:auto;background:#f7f8fa;border:1px solid var(--line);border-radius:8px;padding:13px;font-size:11px;line-height:2;color:#717782}.side-note small{padding-left:13px;font-size:10px;color:#a0a4ad}.dot{display:inline-block;width:6px;height:6px;background:#62977d;border-radius:50%;margin-right:5px}.side-footer{font-size:8px;letter-spacing:1px;color:#aaaeb5;padding-top:20px}.side-footer span{float:right}main{margin-left:225px;width:calc(100% - 225px)}header{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:white;font-size:12px;color:#727782}header>div>span{margin:0 16px;color:#c3c6cd}.user{display:flex;gap:10px;align-items:center;color:#434850}.user small{display:block;font-size:10px;color:#969ba4;margin-top:5px}.user .avatar{margin:0;background:#f6ecef;color:var(--red);border:1px solid #ead7dc;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-family:Georgia}.user button{border:0;background:none;margin-left:14px;color:#8d929b;font-size:20px}.content{padding:35px 40px 25px;max-width:1560px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:18px}.page-title p{font-size:12px;color:#8b909a;margin:0}.hero{background:linear-gradient(112deg,#702236,#92374a);border-radius:11px;padding:28px 34px;color:white;display:flex;justify-content:space-between;overflow:hidden;position:relative;min-height:236px}.pill{display:inline-block;font-size:9px;letter-spacing:2px;border:1px solid #ffffff30;border-radius:4px;padding:5px 9px;color:#efcdd5;margin-bottom:16px}.hero h2{font-size:25px;font-weight:500;line-height:1.6;letter-spacing:.5px;margin-bottom:9px}.hero p{color:#ddb7c0;font-size:11px;margin-bottom:10px}.hero-link{background:none;color:#f4dce1;border:0;padding:5px 0;font-size:11px}.hero-link span{padding-left:20px}.hero-art{width:290px;align-self:center;position:relative;text-align:center}.hero-art:before,.hero-art:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:210px;height:210px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 24px #ffffff03,0 0 0 49px #ffffff03}.hero-art:after{width:170px;height:170px;border-style:dashed}.cross{font-size:100px;color:#ffffff18;line-height:1.3}.hero-art>span{font-size:7px;letter-spacing:2px;color:#d6a5b0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:24px 0}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:20px 23px}.stat>div{font-size:12px;color:#7f8490;display:flex;justify-content:space-between}.stat>div>span{color:var(--red);font-size:17px}.stat strong{font-size:34px;display:block;margin-top:11px;font-weight:600;letter-spacing:-1px}.stat strong small{font-size:10px;color:#9297a1;font-weight:400;margin-left:9px}.stat p{font-size:10px;color:#a0a4ac;border-top:1px solid #f1f2f4;padding-top:10px;margin:12px 0 0}.card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.card-title{display:flex;justify-content:space-between;align-items:center;padding:22px 23px;border-bottom:1px solid #f0f1f3;gap:10px}.card-title h3,.card-title h2{margin:0}.card-title .muted{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:1.9fr 1fr;gap:22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:11px;text-align:left}th{font-weight:400;color:#9a9ea7;background:#fcfcfd;padding:14px 20px}td{padding:18px 20px;border-top:1px solid #f1f2f4;color:#717783}td strong{font-weight:500;color:#434954}td small{display:block;color:#a5a9b2;font-size:9px;margin-top:6px}.tag{display:inline-block;background:#f5f6f8;padding:5px 8px;border-radius:4px;color:#858b95;font-size:10px}.empty{text-align:center;padding:46px 20px;color:#949aa4}.empty>div{font-size:28px;color:#c2a5ae;margin-bottom:14px}.empty h4{font-size:13px;font-weight:500;margin-bottom:8px;color:#777e89}.empty p{font-size:11px;margin:0}.distribution{padding:13px 23px;font-size:11px;color:#7b808b}.distribution b{float:right;font-weight:400}progress{appearance:none;width:100%;height:5px;margin-top:11px;border:0;border-radius:4px}progress::-webkit-progress-bar{background:#f5edef;border-radius:4px}progress::-webkit-progress-value{background:#9e5969;border-radius:4px}.process{display:flex;align-items:center;justify-content:space-around;gap:10px;border:1px solid #e9eaee;background:#f0f2f5;border-radius:8px;padding:22px 18px;margin-top:22px;font-size:10px;color:#969ba4}.process b{font-weight:400;color:#747c88}.process i{font-style:normal;color:#bdc1c8}main>footer{padding:10px 40px 25px;color:#a7abb3;font-size:9px;display:flex;justify-content:space-between;letter-spacing:.5px}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:23px}.toolbar h3{margin:0}.count{font-size:11px;background:#f5edf0;color:var(--red);padding:3px 7px;border-radius:4px;margin-left:6px}.search{max-width:310px;font-size:12px}.intake-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:25px}.intake{padding:26px}.intake .card-title{padding:0 0 20px;margin-bottom:20px}.intake>.muted{font-size:12px}.dropzone{border:1.5px dashed #d6b9c2;background:#fcf8f9;border-radius:9px;text-align:center;padding:38px 15px;cursor:pointer;margin-bottom:15px}.dropzone>span{font-size:40px;display:block;color:var(--red);margin-bottom:10px}.dropzone h3{font-size:15px;margin:0}.dropzone p{font-size:11px;color:#97919a;margin-top:8px}.dropzone input{position:absolute;opacity:0;width:1px;height:1px}.dropzone b{display:inline-block;border:1px solid #d4b3bd;padding:8px 22px;color:var(--red);border-radius:6px;background:white;font-size:12px}.notice{background:#faf6f1;border:1px solid #f1e8de;color:#9a805d;padding:13px 15px;border-radius:6px;font-size:11px;line-height:1.8;margin:20px 0}.tabs{padding:10px 20px 0;display:flex;border-bottom:1px solid var(--line);gap:25px}.tabs button{border:0;background:none;padding:17px 3px;color:#888f99;font-size:12px}.tabs button.active{color:var(--red);border-bottom:2px solid var(--red)}.tabs span{font-size:10px;background:#f5f5f7;padding:2px 6px;border-radius:4px;margin-left:4px}.badge{display:inline-block;padding:5px 9px;font-size:10px;border-radius:5px}.badge.pending{background:#fff4e5;color:#ac813a}.badge.approved{background:#ebf5f0;color:#3f8873}.badge.rejected{background:#f5e9ed;color:#a05a6d}.review-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:start}.source{padding-bottom:25px}.source img{max-width:100%;display:block;margin:20px auto}.source>small,.source>h4{display:block;margin:20px 24px}.source pre{margin:20px 24px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font:12px/1.9 monospace;background:#f7f8fa;border-radius:7px;padding:17px;max-height:600px;overflow:auto}.form-card{padding:0 25px 24px}.form-card .card-title{padding-left:0;padding-right:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}em{font-style:normal;color:var(--red)}.checkbox{display:flex;align-items:center;gap:8px;font-size:11px;color:#6f7783;background:#f8f9fa;padding:13px;border-radius:6px;margin-bottom:20px}.checkbox input{width:auto;margin:0;accent-color:var(--red)}.form-actions{display:flex;justify-content:flex-end;gap:10px}.form-actions .danger{margin-right:auto}.password-page{min-height:100vh;display:grid;place-items:center;background:var(--bg)}.password-card{width:min(460px,90vw);padding:35px}.password-card .brand{margin-bottom:30px}.overlay{position:fixed;inset:0;background:#1b1f2c65;display:flex;align-items:center;justify-content:center;padding:25px;z-index:5;backdrop-filter:blur(3px)}.dialog{background:white;padding:8px 28px 22px;width:min(730px,100%);max-height:90vh;overflow:auto;border-radius:12px}.dialog .card-title{padding:20px 0;margin-bottom:20px}.detail{padding:12px 0;border-bottom:1px solid #f0f1f4}.detail small{color:#8d939d}.detail p{margin:7px 0;color:#3f4650;white-space:pre-wrap;overflow-wrap:anywhere}.dialog>.muted{font-size:11px;margin-top:22px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#34333b;color:white;padding:13px 24px;max-width:90vw;border-radius:8px;z-index:20;opacity:0;pointer-events:none;transition:.2s;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:1500px){.content{padding-top:45px}.hero{min-height:270px}}@media(max-width:1100px){aside{width:195px;padding:26px 14px}main{margin-left:195px;width:calc(100% - 195px)}.content{padding:26px 23px}.dashboard-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:17px}.hero-art{width:210px}.review-layout{grid-template-columns:1fr}.process{flex-wrap:wrap}.intake-grid{grid-template-columns:1fr 1fr}.form-actions{flex-wrap:wrap}}@media(max-width:760px){.login{grid-template-columns:1fr}.login-story{display:none}.login-form{min-height:100dvh}.shell{display:block}aside{position:relative;width:100%;padding:18px;border-right:0;border-bottom:1px solid var(--line);display:block}aside .brand{margin:0 0 20px}.side-caption,.side-note,.side-footer{display:none}nav{display:flex;overflow:auto}.nav{width:auto;white-space:nowrap;display:inline-flex;margin:0;padding:10px;font-size:12px}.nav span{font-size:16px}.nav b{margin-left:0}main{width:100%;margin:0}header{height:65px;padding:0 20px}.content{padding:24px 17px}.page-title{align-items:flex-start}.page-title h1{font-size:24px}.page-title .primary{font-size:11px;padding:10px}.hero{padding:24px}.hero h2{font-size:22px}.hero-art{display:none}.stats{grid-template-columns:1fr 1fr}.intake-grid{grid-template-columns:1fr}.toolbar{align-items:flex-start;gap:16px;flex-direction:column}.search{max-width:100%}.tabs{gap:10px;padding-left:10px}.fields{grid-template-columns:1fr}.full{grid-column:auto}.form-card{padding:0 16px 20px}.process{line-height:2}main>footer{padding:18px;font-size:8px}.user small{display:none}.user button{margin-left:0}}

.hospital-logo{width:58px;height:58px;object-fit:contain;flex-shrink:0;border-radius:50%}.login-story .hospital-logo{width:72px;height:72px}.hero-logo{width:135px;height:135px;object-fit:contain;display:block;margin:0 auto 12px;border-radius:50%}.hero-art>span{display:block}
.hospital-logo,.hero-logo{background:#fff}
.import-banner{padding:16px 20px;background:#f6edf0;border:1px solid #eddce2;border-radius:8px;color:#84394a;margin:0 0 22px;font-size:12px;line-height:1.8}.import-banner span{display:block;color:#9a7882;font-size:11px;margin-top:3px}.field-group{margin:16px 0 8px}.field-group>h3{padding:13px 0;border-bottom:1px solid var(--line);color:var(--red);font-size:14px}.column-ref{color:#a9aeb6;margin-left:4px;font-weight:400;font-size:10px}.field-item{min-width:0;margin-bottom:18px}.field-item input,.field-item textarea{margin-bottom:5px}.code-help{font-size:10px;line-height:1.9;color:#9296a0;margin:2px 0 0}.field-warning{font-size:11px;color:#a77837;line-height:1.6;margin:5px 0}.conflict-field{background:#fffbf4;border:1px solid #ebdbbd;padding:10px;border-radius:6px}.evidence{font-size:11px;margin-top:8px;border:1px solid #ececf0;border-radius:5px;padding:8px;background:#fafbfc;overflow-wrap:anywhere}.evidence summary{cursor:pointer;color:#8c5967}.evidence>div{padding:10px 2px;border-top:1px solid #e8e9ee;margin-top:8px}.evidence p{white-space:pre-wrap;margin:4px 0;color:#858b94}.source-document{margin:18px;border:1px solid #e9e9ee;border-radius:6px;padding:13px}.source-document summary{cursor:pointer;font-size:12px;color:#74505c;overflow-wrap:anywhere}.source-document pre{margin:12px 0;max-height:350px}.source-document img{margin:15px 0}.file-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee}.file-row>span{font-size:11px;flex:1;overflow-wrap:anywhere}.file-row select{width:130px;font-size:11px;padding:8px}.small{font-size:11px}.wrap-cell{white-space:normal;min-width:130px;max-width:240px;line-height:1.7}.patient-dialog{width:min(940px,100%)}.patient-dialog .card-title p{margin:10px 0 0}.full-table{max-height:65vh}.full-table th{position:sticky;top:0;z-index:1;background:#faf8f9;max-width:220px;white-space:normal;min-width:130px}.full-table td{max-width:280px;white-space:normal;overflow-wrap:anywhere}.table-note{font-size:11px;margin:16px 23px}.review-layout{grid-template-columns:1fr 1.25fr}.source{position:sticky;top:16px;max-height:90vh;overflow:auto}@media(max-width:1100px){.review-layout{grid-template-columns:1fr}.source{position:static;max-height:600px}}@media(max-width:760px){.toolbar{align-items:stretch}.file-row{align-items:flex-start}.source-document{margin:12px}.field-item{margin-bottom:12px}}
.analytics-heading{display:flex;align-items:center;justify-content:space-between;margin:32px 0 18px}.analytics-heading h2{font-size:19px;margin:0 0 8px}.analytics-heading p{font-size:11px;color:#9196a1;margin:0}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.analytics-card{display:flex;flex-direction:column}.chart-body{padding:12px 24px 5px}.chart-row{padding:10px 0}.chart-row>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#6d7480}.chart-row b{font-weight:500;color:#595e68}.chart-row b small{font-weight:400;font-size:10px;color:#a0a5ae}.chart-row progress{height:7px;margin-top:9px;display:block}.chart-muted progress::-webkit-progress-value{background:#babfc8}.chart-muted progress::-moz-progress-bar{background:#babfc8}.chart-note{margin:auto 23px 0;padding:17px 0 20px;font-size:10px;line-height:1.9;color:#9298a2}.length-chart{padding:16px 15px 0}.length-chart svg{width:100%;max-height:270px}.bar-count{fill:#733144;font-size:14px;font-weight:600}.bar-label{fill:#89919c;font-size:11px}.chart-metrics{display:flex;gap:20px;margin:0 24px 15px;padding:12px 15px;background:#f8f9fb;border-radius:6px;font-size:11px;color:#9097a2}.chart-metrics b{margin-left:12px;color:#636c79;font-weight:500}.recurrence-chart{display:flex;align-items:center;justify-content:center;gap:15px;padding:15px 23px}.recurrence-chart svg{width:52%;max-width:240px;flex-shrink:0}.donut-number{fill:#823b4d;font-size:25px;font-weight:600}.chart-legend{flex:1;font-size:11px;min-width:155px}.chart-legend>div{display:flex;align-items:center;gap:7px;margin:20px 0;color:#838b96}.chart-legend b{margin-left:auto;white-space:nowrap;color:#5e6774;font-weight:500}.legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.legend-0{background:#91394e}.legend-1{background:#609485}.legend-2{background:#e7e8ec}@media(max-width:900px){.analytics-grid{grid-template-columns:1fr}}@media(max-width:400px){.recurrence-chart{flex-direction:column}.recurrence-chart svg{width:180px}.chart-legend{width:100%}.chart-legend>div{margin:12px 0}}
.patient-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.sticky-actions{position:sticky;bottom:0;background:white;padding:15px 0;border-top:1px solid #eceef1;z-index:2}.verified-banner{background:#edf6f1;border:1px solid #d3e8dc;border-radius:8px;padding:16px 20px;color:#35765d;margin-bottom:20px;font-size:13px}.verified-banner span{display:block;font-size:11px;margin-top:7px;color:#719681}
button.chart-row{display:block;width:100%;border:0;background:transparent;text-align:left;border-radius:5px;padding:10px 7px}.chart-select{cursor:pointer}.chart-select:hover{filter:brightness(.9)}button.chart-row:hover{background:#f9f0f3}.chart-select:focus-visible,[data-filter-key]:focus-visible{outline:2px solid #8c253a;outline-offset:3px}.chart-legend>button{display:flex;align-items:center;width:100%;gap:7px;margin:13px 0;padding:8px 3px;border:0;background:none;text-align:left;font-size:11px;color:#838b96;border-radius:5px}.chart-legend>button:hover{background:#f8eff2}.chart-metrics button{border:0;background:none;font-size:11px;color:#7d8591;padding:4px}.cohort-overlay{z-index:4}.cohort-dialog{width:min(1250px,96vw);max-height:94vh}.cohort-dialog>.card-title{position:sticky;top:-8px;background:white;z-index:3;align-items:flex-start}.cohort-dialog>.card-title h2{font-size:22px}.cohort-dialog>.card-title p{margin:9px 0 0}.cohort-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cohort-breadcrumbs .secondary{padding:7px 11px;font-size:11px;border-color:#e7d6dc;background:#fcf7f8;color:#8c4758}.cohort-dialog .tabs{position:sticky;top:108px;background:white;z-index:2}.cohort-dialog>.table-wrap{margin-top:8px}.cohort-dialog .analytics-heading{margin-top:24px}.cohort-dialog .full-table{max-height:55vh}@media(max-width:760px){.cohort-dialog{padding:5px 15px 20px}.cohort-dialog>.card-title{position:static;flex-wrap:wrap}.cohort-dialog .tabs{top:-5px}.cohort-dialog>.card-title h2{font-size:19px}.cohort-dialog .analytics-grid{grid-template-columns:1fr}}
