@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#182b29;--muted:#72817d;--green:#1c8a68;--mint:#e9f5ec;--bg:#f7f8f5;--line:#e4eae4;--amber:#d28b2b;--red:#c55e51}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #87cdb6;outline-offset:3px}.app{max-width:1440px;margin:auto;min-height:100vh}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 6.5%;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink);font-family:Manrope,sans-serif;font-size:29px;font-weight:800;letter-spacing:-2px}.brandmark{display:inline-flex;align-items:center;justify-content:center;background:#25876b;color:white;border-radius:11px;width:32px;height:32px;font-size:23px;margin-right:7px}.branddot{color:#35a77d}.topright{display:flex;align-items:center;gap:22px}.demo-pill{font-size:10px;font-weight:800;color:#558170;letter-spacing:1.2px;border:1px solid #cde5d7;background:#edf8ef;padding:9px 13px;border-radius:20px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ddebe3;color:#40735d;font-size:11px;font-weight:800}.view{display:none;padding:0 6.5%}.view.active{display:block}.hero{min-height:572px;display:grid;grid-template-columns:52% 48%;align-items:center;position:relative}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.2px;color:#3d9172;margin-bottom:21px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:clamp(48px,5.2vw,77px);line-height:1.1;letter-spacing:-4px;font-weight:800;margin-bottom:22px}h1 em{font-style:normal;color:#328e71}.sub{font-size:17px;line-height:1.65;color:var(--muted);max-width:490px;margin-bottom:32px}.primary,.secondary{border:0;border-radius:14px;padding:17px 23px;font-weight:700;display:inline-flex;justify-content:space-between;align-items:center;gap:25px}.primary{background:#208a68;color:white;box-shadow:0 10px 25px #24866326}.primary:hover{background:#176d54}.secondary{color:#286e59;background:white;border:1px solid var(--line)}.secondary:hover{border-color:#94cbb3}.hero-button{min-width:252px}.hero-note{color:#93a09a;font-size:12px;margin:15px 0 0 14px}.hero-art{height:510px;position:relative;overflow:hidden;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #d9e9df;border-radius:50%;width:410px;height:410px}.orbit2{width:560px;height:560px}.hero-art:before{content:'';position:absolute;width:260px;height:260px;background:#daf2e2;filter:blur(60px);border-radius:50%}.floating-card{position:absolute;background:#fff;border:1px solid #e8eee9;box-shadow:0 24px 60px #1e604528;border-radius:20px}.main-card{width:350px;padding:29px;transform:rotate(-5deg)}.card-top{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.2px;color:#67977d;font-weight:800;margin-bottom:40px}.pulse{width:8px;height:8px;background:#53b98e;border-radius:50%}.main-card strong{font:800 24px Manrope}.art-track{display:flex;justify-content:space-between;position:relative;margin:34px 7px 14px}.art-track:before{content:'';position:absolute;top:6px;left:0;right:0;height:2px;background:#d7e8dc}.art-track i{z-index:1;width:14px;height:14px;border-radius:50%;background:#35a777;border:3px solid #fff;box-shadow:0 0 0 1px #35a777}.art-track i.dim{background:#e9eee8;box-shadow:0 0 0 1px #e9eee8}.main-card small{font-size:10px;color:#889a8f}.mini{display:flex;align-items:center;gap:11px;padding:15px 19px;right:23px;top:92px;z-index:2;transform:rotate(5deg)}.mini-icon{background:#dff4e7;color:#22855b;border-radius:50%;height:29px;width:29px;display:grid;place-items:center;font-weight:800}.mini strong,.mini small{display:block}.mini strong{font-size:12px}.mini small{font-size:10px;color:#9ba8a0;margin-top:4px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:0 0 23px}.section-head .eyebrow{margin-bottom:6px}h2{font-size:30px;letter-spacing:-1.2px;margin-bottom:0}.text-button,.sample,.back{border:0;background:none;color:#268362;font-weight:700}.preview-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:60px}.preview-card,.ref-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;text-align:left}.preview-card{cursor:pointer}.preview-card:hover,.ref-card:hover{border-color:#b5d9c4}.preview-top,.ref-top{display:flex;justify-content:space-between;gap:14px}.preview-card strong,.ref-card strong{font:800 19px Manrope}.track-id{font-size:12px;color:#789086}.status-text{display:flex;align-items:center;gap:7px;color:#3e8061;font-size:13px;font-weight:700;margin-top:22px}.status-text.wait{color:#ad7b36}.status-text.need{color:var(--red)}.dots{display:flex;gap:5px;margin-top:22px}.dots span{height:5px;border-radius:6px;flex:1;background:#e7ebe7}.dots .good{background:#41aa75}.dots .waiting{background:#e5a64b}.dots .need{background:#d86b5c}.flow{min-height:calc(100vh - 150px)}.flow-top{display:flex;justify-content:space-between;align-items:center;padding-top:30px;font-size:11px;letter-spacing:1px;color:#8b9b91;font-weight:800}.flow-top b{color:#328d70;margin-left:12px}.flow-grid{display:grid;grid-template-columns:48% 52%;gap:8%;align-items:center;min-height:610px}.flow-grid h1,.narrow h1{font-size:clamp(47px,4.8vw,68px)}.steps{display:flex;gap:9px;flex-wrap:wrap}.steps span{font-size:11px;color:#9eaba1;background:#edf0eb;border-radius:30px;padding:9px 12px;font-weight:700}.steps .on{background:#e0f2e7;color:#2a8b60}.capture-card{background:white;border:1px solid var(--line);border-radius:26px;min-height:425px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center;box-shadow:0 18px 42px #b4d1be19}.camera-icon{font-size:44px;color:#4ea57b;margin-bottom:12px}.capture-card h3{font-size:22px;margin-bottom:8px}.capture-card p{font-size:14px;line-height:1.5;color:var(--muted);max-width:290px}.upload{position:relative;overflow:hidden;font-size:14px}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.sample{padding:17px;margin-top:8px;font-size:13px}.file-list{font-size:12px;color:#2b865e;max-width:100%;word-break:break-word}.safe-note{font-size:11px;color:#9ca9a0;margin-top:15px}.narrow,.done-wrap{max-width:620px;margin:68px auto 90px}.identity-card{background:white;border:1px solid var(--line);border-radius:20px;padding:23px;display:flex;align-items:center;gap:19px;margin:30px 0 17px}.person-icon{height:53px;width:53px;border-radius:15px;background:#e4f2e7;display:grid;place-items:center;color:#3d8b68;font-weight:800}.id-label,.done-card span{font-size:10px;color:#9aa9a0;font-weight:800;letter-spacing:1.2px}.identity-card strong{display:block;font:800 22px Manrope;margin:4px 0}.identity-card p{font-size:13px;color:var(--muted);margin:0}.check-circle{margin-left:auto;color:#38a574;border:2px solid #93d7af;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.found{display:flex;gap:8px;flex-wrap:wrap}.found span{font-size:11px;background:#edf7ee;color:#3e8b63;border-radius:20px;padding:9px 12px;font-weight:700}.sim-note{font-size:12px;color:#9aaa9e;margin:25px 0}.full{width:100%;margin-top:10px}.slots{display:grid;gap:12px;margin-top:26px}.slot{width:100%;display:flex;justify-content:space-between;align-items:center;background:white;border:1px solid var(--line);padding:19px 21px;border-radius:16px;color:var(--ink);text-align:left}.slot:hover{border-color:#40a97a;box-shadow:0 5px 15px #79ad8c24}.slot strong{font-size:16px}.slot small{display:block;color:#93a197;font-size:12px;margin-top:4px}.slot b{color:#2b8d68}.done-wrap{text-align:center;max-width:500px}.done-icon{background:#ddf4e6;color:#249c6f;font-size:36px;border-radius:50%;height:70px;width:70px;display:grid;place-items:center;margin:0 auto 30px}.done-wrap .sub{margin-left:auto;margin-right:auto}.done-card{background:white;border:1px solid var(--line);border-radius:19px;text-align:left;padding:5px 23px}.done-card>div{display:flex;justify-content:space-between;gap:15px;padding:19px 0;border-bottom:1px solid var(--line)}.done-card>div:last-child{border:0}.done-card strong{font-size:14px}.info-line{font-size:12px;color:#8d9c94;margin:24px 0}.dashboard-head{display:flex;align-items:end;justify-content:space-between;margin:62px 0 34px}.dashboard-head h1{margin-bottom:5px}.dashboard-head .sub{margin:0}.searchrow{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.searchrow input{width:min(470px,100%);background:white;border:1px solid var(--line);border-radius:13px;padding:15px 18px;outline:0}.searchrow input:focus{border-color:#69b38f}.searchrow span{font-size:12px;color:#92a199}.referrals{display:grid;gap:14px;margin-bottom:55px}.ref-card{width:100%;cursor:pointer}.ref-meta{font-size:12px;color:#88998e;margin-top:5px}.timeline{display:flex;justify-content:space-between;position:relative;margin:29px 0 10px}.timeline:before{content:'';position:absolute;left:5%;right:5%;top:9px;height:2px;background:#e3eae4}.mile{position:relative;z-index:1;width:14%;text-align:center;color:#9eaaa2;font-size:11px}.mile i{display:block;width:18px;height:18px;border:3px solid white;border-radius:50%;background:#e4eae4;box-shadow:0 0 0 1px #d9e3d9;margin:auto auto 9px}.mile.good{color:#358561}.mile.good i{background:#40a875;box-shadow:0 0 0 1px #40a875}.mile.waiting{color:#ac7a31}.mile.waiting i{background:#e8ae54;box-shadow:0 0 0 1px #e8ae54}.mile.need{color:#c15c51}.mile.need i{background:#d46d5a;box-shadow:0 0 0 1px #d46d5a}.next-needed{margin:10px 0 0;color:#586e63;font-size:13px;line-height:1.5}.preview-card .next-needed{font-size:12px}.detail-panel .next-needed{margin-top:18px}.ref-bottom{margin-top:18px;padding-top:18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.ref-bottom .status-text{margin:0}.arrow{color:#428968;font-size:20px}.detail-wrap{max-width:960px;margin:55px auto}.detail-header{display:flex;justify-content:space-between;gap:20px;align-items:start}.detail-header h1{font-size:54px;margin-bottom:9px}.detail-header .sub{margin:0}.detail-panel{background:white;border:1px solid var(--line);border-radius:20px;padding:27px;margin:23px 0}.detail-panel h3{font-size:18px;margin-bottom:16px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-grid span{font-size:11px;color:#9baaa0;display:block;margin-bottom:6px}.detail-grid strong{font-size:15px}.docrow{display:flex;justify-content:space-between;padding:14px 0;border-top:1px solid var(--line);font-size:13px}.docrow:first-of-type{border:0}.protected{color:#899c8f}footer{border-top:1px solid var(--line);padding:25px 6.5%;display:flex;justify-content:space-between;color:#98a79c;font-size:12px}@media(max-width:800px){.topbar{height:70px;padding:0 5%}.view{padding:0 5%}.hero{grid-template-columns:1fr;min-height:auto;padding:65px 0 10px}.hero-art{height:320px;order:-1}.orbit{width:300px;height:300px}.orbit2{width:410px;height:410px}.main-card{width:280px;padding:22px}.mini{top:30px;right:5px}.hero h1{font-size:50px}.preview-list{grid-template-columns:1fr}.flow-grid{grid-template-columns:1fr;gap:24px;padding:45px 0}.narrow{margin:50px auto}.dashboard-head{align-items:start;gap:20px}.dashboard-head h1{font-size:48px}.timeline .mile{font-size:9px}.detail-header h1{font-size:44px}}@media(max-width:520px){.demo-pill{font-size:8px;padding:7px}.avatar{display:none}.hero-art{height:270px}.hero h1,.flow h1{font-size:46px;letter-spacing:-2.5px}.sub{font-size:15px}.dashboard-head{display:block}.dashboard-head .primary{margin-top:20px}.searchrow span{display:none}.timeline .mile{font-size:8px}.detail-grid{grid-template-columns:1fr}.done-card>div{display:block}.done-card strong{display:block;margin-top:6px}.flow-top{font-size:9px}footer span{display:none}}

/* Live local camera capture and review */
.camera-media{display:block;width:100%;max-width:440px;max-height:340px;object-fit:contain;background:#15201c;border-radius:14px;margin:4px auto 18px}
.camera-media[hidden],.capture-actions [hidden]{display:none}
.capture-native-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.capture-card .file-list{font-size:14px;font-weight:700;line-height:1.45;margin:8px 0;color:#245d45}
.capture-card .file-list[data-state="error"]{color:#9c2f26;background:#fff1ed;border:1px solid #e7b5aa;border-radius:9px;padding:10px}
.capture-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;width:100%;margin:8px 0 12px;text-align:left}
.capture-page{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fbfcfa;padding:7px;display:grid;gap:6px}
.capture-page-preview{height:98px;background:#eef3ef;border-radius:7px;display:grid;place-items:center;overflow:hidden;font-size:15px;font-weight:800;color:#506b5b}
.capture-page-preview img{width:100%;height:100%;object-fit:cover}
.capture-page>span{font-size:11px;overflow-wrap:anywhere;line-height:1.3}
.capture-remove{justify-self:start;border:0;background:none;color:#a33e32;font-size:12px;font-weight:700;padding:5px 2px}
.capture-section{margin:24px 0 12px}
.saved-photos{display:grid;gap:14px;margin-bottom:24px}
.saved-photo-group{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px}
.saved-photo-group>div:first-child{display:flex;gap:10px;align-items:baseline;margin-bottom:10px}
.saved-photo-group strong{font-size:14px}.saved-photo-group small{font-size:11px;color:var(--muted)}
.saved-photo-grid{display:flex;flex-wrap:wrap;gap:9px;padding:10px 13px}
.saved-photo-group .saved-photo-grid{padding:0}
.saved-photo{display:grid;gap:4px;width:95px;color:var(--ink);font-size:11px;font-weight:700;text-decoration:none}
.saved-photo-image{height:82px;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#eef3ef;display:grid;place-items:center}
.saved-photo-image img{width:100%;height:100%;object-fit:cover}
.saved-photo-file{font-size:14px;color:#456a55}
.saved-photo:focus-visible{outline:3px solid #87cdb6;outline-offset:2px}
.capture-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin:12px 0}
.capture-actions .primary,.capture-actions .secondary{font-size:14px;padding:14px 18px}
.capture-card .file-list{margin-top:9px;line-height:1.5}
[hidden]{display:none!important}
.auth-wrap{max-width:560px;margin:9vh auto 12vh;text-align:center}.auth-wrap h1{font-size:clamp(44px,5vw,66px)}.auth-wrap .sub{margin:0 auto 26px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;text-align:left;box-shadow:0 18px 42px #b4d1be19}.auth-card label{display:block;font-weight:700;font-size:13px;margin-bottom:18px}.auth-card input{display:block;width:100%;margin-top:8px;padding:15px;border:1px solid #d9e5dc;border-radius:12px;background:#fbfdfa;color:var(--ink)}.auth-error{min-height:20px;color:var(--red);font-size:13px;margin:0 0 8px}.auth-wrap>.sample{margin-top:12px}

/* Operational layout: compact pages, direct hierarchy, clear next action. */
.app{max-width:1240px}
.topbar{height:66px;padding:0 4.5%}
.brand{font-size:25px}
.brandmark{width:29px;height:29px;font-size:19px}
.topright{gap:14px}
.view{padding:0 4.5%}
.eyebrow{margin-bottom:9px;font-size:10px;letter-spacing:1.5px}
h1{font-size:clamp(32px,3vw,42px);letter-spacing:-1.6px;line-height:1.15;margin-bottom:9px}
h2{font-size:22px;letter-spacing:-.5px}
.sub{font-size:14px;line-height:1.5;margin-bottom:16px;max-width:600px}
.primary,.secondary{padding:12px 16px;border-radius:10px;gap:13px;box-shadow:none}
.dashboard-head{margin:32px 0 22px;align-items:center}
.dashboard-head h1{font-size:clamp(32px,3vw,42px)}
.home-head{margin-bottom:24px}
.section-head{margin-bottom:13px}
.preview-list{gap:12px;margin-bottom:28px}
.preview-card,.ref-card{border-radius:12px;padding:17px}
.preview-card strong,.ref-card strong{font-size:17px}
.preview-card .status-text{margin-top:12px}
.dots{margin-top:13px}
.referrals{gap:10px;margin-bottom:24px}
.searchrow{margin-bottom:14px}
.searchrow input{padding:10px 13px;border-radius:9px}
.flow{min-height:calc(100vh - 115px)}
.flow-top{padding-top:18px}
.flow-grid{grid-template-columns:minmax(250px,36%) minmax(0,1fr);gap:3%;align-items:start;min-height:0;padding:40px 0 32px}
.flow-grid h1,.narrow h1{font-size:clamp(34px,3vw,44px)}
.steps{gap:6px}
.steps span{padding:7px 10px;border-radius:8px}
.capture-card{min-height:0;align-items:stretch;padding:22px;border-radius:14px;box-shadow:none}
.capture-card h3{font-size:19px;margin-bottom:3px}
.capture-card p{max-width:none;margin:0 auto 8px}
.capture-actions{gap:8px;margin:10px 0}
.capture-actions .primary,.capture-actions .secondary{font-size:13px;padding:10px 13px}
.camera-media{max-height:280px;margin-bottom:10px}
.sample{padding:10px;margin-top:0}
.safe-note{margin-top:8px;line-height:1.4}
.narrow,.done-wrap{margin:38px auto 50px}
.identity-card{margin:20px 0 12px;border-radius:12px;padding:17px}
.sim-note{margin:15px 0;line-height:1.45}
.slots{margin-top:16px;gap:8px}
.slot{padding:14px 16px;border-radius:10px}
.done-icon{height:48px;width:48px;font-size:26px;margin-bottom:15px}
.done-card{border-radius:12px}
.done-card>div{padding:12px 0}
.info-line{margin:16px 0}
.detail-wrap{margin:32px auto}
.detail-header h1{font-size:38px}
.detail-panel{border-radius:12px;padding:20px;margin:13px 0}
.timeline{margin:20px 0 8px}
.ref-bottom{margin-top:12px;padding-top:12px}
.auth-wrap{margin:7vh auto 9vh;max-width:460px}
.auth-wrap h1{font-size:38px}
.auth-card{padding:22px;border-radius:14px;box-shadow:none}
.auth-card label{margin-bottom:12px}
.auth-card input{padding:12px;border-radius:9px}
footer{padding:14px 4.5%}
@media(max-width:800px){
 .topbar{height:60px;padding:0 4%}.view{padding:0 4%}
 .flow-grid{grid-template-columns:1fr;gap:18px;padding:25px 0}
 .dashboard-head{margin:25px 0 18px}.preview-list{grid-template-columns:1fr}
 .narrow{margin:26px auto 40px}.detail-header h1{font-size:32px}
}
@media(max-width:520px){
 .brand{font-size:22px}.topright{gap:8px}.demo-pill{font-size:7px;padding:6px}
 .dashboard-head{display:flex;align-items:start;gap:12px}.dashboard-head .primary{margin-top:0}
 .dashboard-head h1,.flow h1{font-size:32px;letter-spacing:-1.2px}
 .dashboard-head .sub{font-size:12px}.capture-card{padding:16px}
 .capture-actions{display:grid;grid-template-columns:1fr 1fr}.capture-actions label,.capture-actions button{justify-content:center}
 .flow-top{font-size:9px}.timeline .mile{font-size:8px}
}
.referral-info{display:grid;grid-template-columns:1fr 1fr;gap:3px 14px;text-align:left;margin:10px 0;color:#526d61;font-size:12px;line-height:1.4}
.referral-info span:last-child{grid-column:1/-1;color:var(--ink);font-weight:700}
.detail-panel .referral-info{font-size:14px;gap:9px 18px;margin:0}
.referral-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:0 0 14px;text-align:left}
.referral-fields>div:last-child{grid-column:1/-1}
.referral-fields span{display:block;font-size:10px;color:#74867b;text-transform:uppercase;letter-spacing:.7px;font-weight:700;margin-bottom:4px}
.referral-fields strong{font-size:14px;color:var(--ink)}
.done-fields{margin-top:12px}
@media(max-width:520px){.referral-info{grid-template-columns:1fr;gap:2px}.referral-info span:last-child{grid-column:auto}.referral-fields{grid-template-columns:1fr;gap:10px}.referral-fields>div:last-child{grid-column:auto}}

/* One-screen referral workspace. The full timeline stays in referral detail. */
.compact-head{margin:20px 0 13px}.compact-head h1{font-size:30px;margin-bottom:2px}.compact-head .sub{font-size:12px;margin:0}
.dashboard-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.dashboard-tools input{width:min(360px,100%);height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:5px 10px;font-size:12px;color:var(--ink)}
.dashboard-tools input:focus{outline:2px solid #87cdb6;outline-offset:1px}.dashboard-tools span{font-size:11px;color:var(--muted)}
.referral-table{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.referral-columns,.ref-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.15fr) minmax(0,.7fr) minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1.3fr) 12px;gap:8px;align-items:center}
.referral-columns{min-height:29px;padding:0 12px;background:#edf3ed;color:#657b6b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.ref-row{width:100%;min-height:35px;padding:3px 12px;border:0;border-top:1px solid #edf0ec;background:#fff;color:var(--ink);text-align:left;font-size:11px;line-height:1.15}
.ref-row:hover,.ref-row:focus-visible{background:#eef8f0}.ref-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-patient strong{display:block;font:800 11px Manrope,sans-serif}.row-patient small{display:block;color:#789086;font-size:9px;margin-top:1px}
.row-time{color:#546c5c}.row-status{font-weight:700}.row-status i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;background:#aaa}
.ref-row .row-status{white-space:normal;overflow:visible;line-height:1.2}
.row-status.action{color:#ad6646}.row-status.action i{background:#d47b58}.row-status.pending{color:#986b2e}.row-status.pending i{background:#d5a14c}.row-status.ready,.row-status.complete{color:#28764f}.row-status.ready i,.row-status.complete i{background:#42a674}
.row-open{font-size:17px;color:#4b916c;text-align:right}.dashboard-disclaimer{font-size:10px;color:#83958a;margin:8px 0 18px}
@media(max-width:720px){.referral-table{overflow-x:auto}.referral-columns,.ref-row{min-width:760px}}
@media(max-width:520px){.compact-head{align-items:center}.compact-head h1{font-size:28px}.compact-head .sub{display:none}.dashboard-tools input{width:100%}.dashboard-tools span{white-space:nowrap}}

/* Dense row layout for one referral; paperwork opens a sample metadata preview. */
.compact-detail{max-width:1060px;margin:12px auto 28px}
.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 11px}.detail-heading .eyebrow{margin-bottom:3px}.detail-heading h1{font-size:27px;margin:0}.detail-heading .status-text{margin:0;font-size:12px}
.detail-sheet{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.detail-section-label{background:#edf3ed;color:#476d57;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;padding:7px 13px;display:flex;justify-content:space-between}
.detail-section-label small{font-size:10px;font-weight:600;text-transform:none;letter-spacing:0}
.detail-data-row{display:grid;grid-template-columns:95px minmax(0,1fr) 95px minmax(0,1fr);gap:8px;align-items:center;min-height:36px;padding:6px 13px;border-top:1px solid #eef1ed;font-size:12px}
.detail-data-row span{color:#75867b}.detail-data-row strong{min-width:0;font-weight:700}
.detail-action-row{padding:7px 13px;border-top:1px solid #eef1ed;background:#fbfdfb}.detail-action-row .next-needed{margin:0;font-size:12px}
.detail-timeline{padding:0 13px;border-top:1px solid #eef1ed}.detail-timeline .timeline{margin:11px 0 7px}.detail-timeline .mile{font-size:9px}.detail-timeline .mile i{height:13px;width:13px;margin-bottom:4px}.detail-timeline .timeline:before{top:6px}
.paperwork-list{display:grid}.paperwork-row{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(70px,.7fr) minmax(130px,1fr) 45px;gap:10px;align-items:center;width:100%;min-height:35px;padding:6px 13px;border:0;border-top:1px solid #eef1ed;text-align:left;background:#fff;color:var(--ink);font-size:11px}.paperwork-row:hover,.paperwork-row:focus-visible{background:#eef8f0}.paperwork-name{font-weight:800}.paperwork-type{color:#708175;text-transform:capitalize}.paperwork-state{color:#42815e}.paperwork-row>span:last-child{color:#2b805b;font-weight:700;text-align:right}
.detail-footnote{padding:8px 13px;color:#718377;font-size:10px;line-height:1.4;border-top:1px solid #eef1ed}.detail-approval{padding:10px 13px;border-top:1px solid #eef1ed}.detail-approval .approval-checks{margin:0 0 8px}
.detail-communication{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 13px;font-size:11px}.detail-communication details{flex:1}.detail-communication summary{cursor:pointer;color:#2a7758;font-weight:700}.detail-communication .sms-preview{margin:8px 0}.detail-communication .text-button{white-space:nowrap;font-size:11px}
.document-dialog{width:min(520px,calc(100vw - 28px));max-height:85vh;border:1px solid #bad7c4;border-radius:14px;padding:20px;background:#fff;color:var(--ink);box-shadow:0 20px 60px #1b3b2d35}.document-dialog::backdrop{background:#1b33299c}.document-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.document-dialog-head h2{font-size:21px}.document-dialog-head .eyebrow{margin-bottom:4px}.document-dialog-head .secondary{padding:7px 10px;font-size:11px}.document-preview-note{background:#edf6ef;padding:10px;border-radius:8px;color:#3e7055;font-size:11px;line-height:1.4;margin:8px 0 14px}.document-preview-grid{display:grid;grid-template-columns:125px 1fr;gap:0;font-size:12px}.document-preview-grid span,.document-preview-grid strong{border-top:1px solid #edf0ed;padding:8px 0}.document-preview-grid span{color:#708175}.document-preview-grid strong{font-weight:700}
@media(max-width:700px){.detail-heading{display:block}.detail-heading .status-text{margin-top:5px}.detail-data-row{grid-template-columns:78px 1fr;gap:5px 8px}.detail-data-row span:nth-of-type(2){margin-top:5px}.detail-communication{display:block}.detail-communication .text-button{margin-top:9px}.paperwork-row{grid-template-columns:minmax(0,1fr) 95px 42px}.paperwork-type{display:none}}

.signup-summary{display:flex;gap:10px;margin:0 0 14px}.signup-summary>div{display:flex;align-items:baseline;gap:8px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 13px;min-width:105px}.signup-summary strong{font-size:18px}.signup-summary span{color:var(--muted);font-size:11px}
.signup-table{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.signup-columns,.signup-row{display:grid;grid-template-columns:1.2fr 1.45fr 1fr 1fr 115px;gap:12px;align-items:center;padding:8px 13px}.signup-columns{background:#edf3ed;color:#657b6b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}.signup-row{border-top:1px solid #eef1ed;font-size:12px}.signup-row strong{font-weight:800}.signup-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.signup-row select{width:100%;border:1px solid #d7e6da;border-radius:7px;background:#fff;color:var(--ink);font-size:11px;padding:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.signup-table{overflow-x:auto}.signup-columns,.signup-row{min-width:790px}.signup-summary{flex-wrap:wrap}.topright{gap:7px}}

.fax-composer{border-top:1px solid #dce9dd;background:#fbfdfb;padding:12px 13px}.fax-composer>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.fax-composer strong{font-size:12px}.fax-composer small{color:#718377;font-size:10px}.fax-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin:10px 0}.fax-options label{font-size:11px;line-height:1.3}.fax-options input{vertical-align:middle}.fax-letter{white-space:pre-wrap;background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px;font:11px/1.35 'DM Sans',Arial,sans-serif;max-height:150px;overflow:auto;margin:8px 0}.fax-composer .secondary{font-size:11px;padding:8px 12px}.fax-composer [role=status]{margin-left:10px;color:#317454;font-size:11px}.fax-history{color:#718377;font-size:10px;margin:7px 0 0}
@media(max-width:700px){.fax-options{grid-template-columns:1fr}.fax-composer>div:first-child{display:block}}

.locked-setup{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;max-width:340px}.locked-setup-title{font-size:11px;font-weight:800;color:var(--ink);display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.locked-setup-title span{font-size:10px;color:#4b8667}.locked-setup>div:not(:first-child){display:grid;grid-template-columns:65px 1fr;gap:6px;border-top:1px solid #edf0ec;padding:6px 0;font-size:11px}.locked-setup>div:not(:first-child) span{color:#768b7b}.locked-setup strong{font-weight:700}.locked-setup p{font-size:10px;color:#829589;line-height:1.4;margin:6px 0 0}

.order-sheet{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;margin:16px 0 11px;text-align:left}.order-sheet-title{display:flex;align-items:center;justify-content:space-between;background:#edf3ed;color:#385f47;padding:10px 14px;font-size:12px;font-weight:800}.order-sheet-title span{font-size:10px;font-weight:700}.order-field{display:grid;grid-template-columns:210px 1fr;gap:12px;align-items:center;min-height:39px;padding:8px 14px;border-top:1px solid #edf0ed}.order-field>span{font-size:10px;font-weight:800;letter-spacing:.3px;color:#718679}.order-field strong{font-size:13px;line-height:1.3;color:var(--ink)}.preview-order{margin:0}.preview-order .order-field{grid-template-columns:170px 1fr}
@media(max-width:520px){.order-field,.preview-order .order-field{grid-template-columns:1fr;gap:3px;padding:8px 12px}.order-field strong{font-size:12px}}

.referral-edit{display:grid;gap:10px}.referral-edit .order-field{display:grid;grid-template-columns:minmax(120px,180px) 1fr;align-items:center;gap:16px}.referral-edit .order-field input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:#fff;color:var(--ink);font-size:16px}@media(max-width:640px){.referral-edit .order-field{grid-template-columns:1fr;gap:5px}}
