/* MedArgon: one visual language for every role and workflow. */
:root{--navy:#061f49;--ink:#142740;--muted:#52647c;--line:#dce4ee;--bg:#f4f7fb;--teal:#164fbc;--accent:#164fbc;--surface:#fff;--surface-soft:#edf3fb;--side:264px;--red:#b52e40}
body{background:var(--bg);color:var(--ink);letter-spacing:0;font-size:14px;line-height:1.65}
h1,h2,h3{color:var(--navy);letter-spacing:-.3px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #377ce0;outline-offset:3px}
.sidebar{background:var(--navy);color:#fff;padding:24px 16px 16px;border:0;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;justify-content:center;background:white;border-radius:10px;width:auto;margin:0 8px 24px;padding:12px}
.brand img{width:188px;max-width:100%;height:38px;object-fit:contain}
.workspace{background:#ffffff09;border:1px solid #ffffff20;border-radius:10px;padding:12px;margin:0 4px 20px;gap:10px}
.workspace>div{min-width:0}.workspace strong,.profile strong{color:#fff;font-size:13px;overflow-wrap:anywhere}.workspace small,.profile small{color:#bacbe4;font-size:12px}
.workspace .initial{background:transparent;flex-shrink:0}.workspace .initial img{border-radius:6px;display:block}.workspace .initial{display:none}
.nav-list{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#42628c transparent}
.nav{color:#d1ddef;border-radius:8px;padding:12px;min-height:48px;margin:4px 0;font-size:13px;line-height:1.5;gap:12px}
.nav.active{background:#fff;color:var(--navy);box-shadow:none;font-weight:700}.nav:hover:not(.active){background:#ffffff12;color:white}
.nav-label{color:#9fb5d4;font-size:11px;letter-spacing:.3px;margin-top:22px}.nav-divider{background:#ffffff20;height:1px}.sidebar-bottom{border-color:#ffffff20;background:transparent;margin-top:auto;padding-top:14px}
.sidebar .btn.link{color:#d1ddef}.sidebar .avatar{background:#24446d;color:#fff}.sidebar .icon-btn{background:#ffffff0a;color:#d1ddef;border:1px solid #ffffff20}
.topbar{height:76px;background:#ffffffed;border-bottom:1px solid var(--line);padding:0 36px;gap:16px;backdrop-filter:blur(12px)}
.topbar .actions{min-width:0}.topbar .icon-btn{border:1px solid var(--line);border-radius:10px;background:white;color:var(--navy)}
.crumb{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crumb span{color:var(--navy);font-weight:600}.top-actions{gap:12px}.topbar .dot{background:#bf3145}.avatar{background:#e5edfb;color:#174d9e}.mobile-brand{display:none}
.content{padding:28px 36px 48px;max-width:1600px;margin:auto}.footer-note{color:var(--muted);font-size:12px;margin-top:36px}
.banner{border:1px solid #d7e3f3;background:#eaf1fb;color:#314b70;border-radius:10px;font-size:12px;padding:10px 14px;margin-bottom:24px;gap:12px}.banner label{display:flex;align-items:center;gap:8px}.banner select{background:#fff;color:var(--ink);border-color:#cad9ed;min-height:40px}.banner.warning{background:#fff7e5;color:#785414;border-color:#ead8b3}
.eyebrow{font-size:12px;color:#425b7e;letter-spacing:.3px;margin-bottom:7px}.page-head,.home-heading{margin:0 0 24px;gap:20px}.page-head h1,.home-heading h1,.daily-space h1{font-size:30px;color:var(--navy);font-weight:750;line-height:1.5}.page-head p,.home-heading p,.daily-space .home-heading p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:8px;max-width:800px}.page-head>div{min-width:0;overflow-wrap:anywhere}
.btn,.btn.teal,.focus-hero .btn.teal,.simple-row>.btn.teal{background:var(--accent);border:1px solid var(--accent);color:#fff;min-height:46px;padding:11px 17px;border-radius:9px;font-size:14px;line-height:1.5;box-shadow:none;white-space:normal;max-width:100%;font-weight:600}
.btn:hover,.btn.teal:hover,.simple-row>.btn.teal:hover{background:#103d91;border-color:#103d91;box-shadow:0 3px 10px #061f4912}
.btn.secondary,.btn.hero-secondary{background:#fff;color:#264666;border-color:#ccd8e7}.btn.secondary:hover,.btn.hero-secondary:hover{background:#edf3fb;border-color:#9eb5d2}
.btn.link{background:transparent;color:#174eac;border-color:transparent}.btn.link:hover{background:#eaf1fb}.btn.danger{background:#fff0f1;color:#a32336;border-color:#ebc4cc}.btn.danger:hover{background:#fce1e6;border-color:#d991a0}.btn.small{min-height:40px;font-size:13px;padding:8px 12px}.icon-btn{width:44px;height:44px;min-width:44px}
.panel,.card,.equipment-card,.stat,.pulse-strip{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 2px 7px #061f4903}.panel{margin-bottom:22px}.panel-head{padding:20px 24px;border-bottom:1px solid var(--line);background:#fff;gap:12px}.panel-head h2,.daily-space .panel-head h2{font-size:17px;font-weight:700;line-height:1.6}.panel-head .btn.link{font-size:13px}.panel-body{padding:24px;font-size:14px}.card p,.metric-note{font-size:13px;color:var(--muted)}
.section-count,.chip{background:#eaf0fa;color:#24446d;font-size:12px;padding:3px 8px;border-radius:6px}.queue-intro{font-size:13px;color:var(--muted);background:#f8fafd;padding:12px 24px;border-bottom:1px solid #e8eef5}
.daily-space{max-width:1160px;margin:auto}.daily-space .home-heading{margin:0 0 20px}.daily-tools,.daily-history{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}.daily-tools .btn,.daily-history .btn{font-size:14px;min-height:46px}
.focus-row,.simple-row{padding:22px 24px;gap:16px;border-bottom:1px solid #e6edf5}.focus-row:hover{background:#fbfcff}.queue-symbol{background:#edf3ff;color:#2259ab;border:0;border-radius:10px;width:44px;height:44px;flex-shrink:0}.queue-symbol.urgent{background:#fff3e4;color:#975f0d}.queue-copy{min-width:0}.queue-copy h3,.simple-row .queue-copy h3{font-size:16px;color:var(--navy);line-height:1.6}.queue-copy p,.simple-row .queue-copy p{font-size:14px;color:#455b76;line-height:1.7}.queue-copy small,.simple-row .queue-copy small{display:block;font-size:12px;color:#62728a;line-height:1.7;margin-top:6px}.focus-row>.btn{flex-shrink:0}.simple-row>.btn.teal{min-width:150px;font-size:14px}
.daily-overview,.remaining-work,.process-details{border:1px solid var(--line);border-radius:10px;padding:18px 20px;background:#fff;margin:20px 0;color:var(--muted)}.daily-overview summary,.remaining-work summary,.process-details summary{cursor:pointer;font-size:14px;font-weight:600;color:#294564}.daily-overview .detail-grid{margin-top:20px}.quiet-note{font-size:12px;color:var(--muted)}
.process-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 28px;padding:0;max-width:100%;overflow:visible}
.process-nav button{display:flex;align-items:center;gap:9px;padding:12px;min-width:0;min-height:64px;background:#fff;border:1px solid #d7e1ee;border-radius:10px;color:#405572;text-align:left;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.process-nav button:hover{background:#edf3fb;border-color:#9eb9db}.process-nav button.active{background:var(--navy);border-color:var(--navy);color:white}.process-nav button span,.stage-number{width:25px;min-width:25px;height:25px;display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:6px;font-size:12px}.process-nav button span{color:#40658f;background:#eff4fc;border-color:#dbe5f2}.process-nav button.active span{color:white;background:#ffffff14;border-color:#ffffff40}
.commission-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;font-size:14px}.commission-steps span{padding:14px;background:#f0f5fb;border-radius:9px;display:flex;align-items:center;gap:10px}.commission-steps~.actions,.checklist-shortcuts{margin:24px 0}
.toolbar{gap:10px}.toolbar .search{flex:1;max-width:none;min-width:200px}.search input{font-size:14px;min-height:46px}.search>.icon{top:15px;color:#637b97}.toolbar select{font-size:14px;min-height:46px}.toolbar>label{font-size:13px}
input,select,textarea{border:1px solid #c5d2e2;border-radius:8px;color:var(--ink);background:#fff;min-height:44px;padding:10px 12px}input:focus,select:focus,textarea:focus{border-color:#3975d2;box-shadow:0 0 0 3px #3975d21c;outline:0}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}.field>span{font-size:14px;color:#2e4563;font-weight:600}.field small{font-size:12px;color:var(--muted)}
th{background:#f6f9fd;color:#526780;font-size:12px;padding:13px 20px;font-weight:600}td{font-size:14px;padding:17px 20px;border-color:#e7edf5}td small{font-size:12px;color:var(--muted)}tbody tr:hover{background:#f7faff}.table-scroll{scrollbar-width:thin;scrollbar-color:#b9c9df #f5f8fc}
.badge{font-size:12px;font-weight:600;padding:4px 8px;border-radius:6px}.badge.blue{background:#e8f0ff;color:#244e9a}.badge.gray{background:#edf1f6;color:#4c5f75}.badge.green{background:#e7f5ee;color:#176b4d}.badge.amber{background:#fff3d9;color:#865d0a}.badge.red{background:#fdebee;color:#a52339}
.stats{gap:16px}.stat{padding:20px}.stat-label,.pulse-strip .stat-label{color:#526780;font-size:13px}.stat-value,.pulse-strip .stat-value{color:var(--navy);font-size:32px}.stat small,.pulse-strip .stat small{font-size:12px;color:var(--muted)}.progress>div{background:#225ab6}.donut{background:conic-gradient(#225ab6 calc(var(--value)*1%),#edf2f8 0)}.detail-grid label{font-size:12px}.detail-grid strong{font-size:14px}
.equipment-top .device-icon,.device-icon,.circle-icon{background:#edf3fc;color:#2d599c;border-radius:9px}.circle-icon.red{background:#fdebee;color:#a52339}.circle-icon.blue{background:#edf3fc;color:#2d599c}.equipment-card h2{font-size:18px}.equipment-state,.equipment-card>p,.equipment-card>small{font-size:13px}.task-row h3{font-size:15px}.task-row p{font-size:13px}.task-row{padding:18px 24px}.work-lane{background:#eaf0f8;border-top:3px solid #a5bbd9;border-radius:10px}.work-card{border-color:var(--line);border-radius:9px}.work-card h3{font-size:14px}.work-card p,.work-card small{font-size:12px;color:var(--muted)}
.modal{border-radius:14px;box-shadow:0 24px 80px #061f4933}.modal header{background:#fff;border-color:var(--line);padding:22px 24px}.modal header h2{font-size:19px}.modal footer{background:#f7faff;border-color:var(--line);gap:10px}.modal .summary-box{background:#eff4fb;color:#294567;font-size:14px}.modal .summary-box small,.modal-content .metric-note{font-size:13px;color:var(--muted)}.modal .detail-grid{gap:18px}.check-progress{background:#edf3ff;border:1px solid #ccdcf4;border-radius:10px;padding:14px 16px;margin:18px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.check-progress p{font-size:14px;font-weight:600;color:#214777}.check-item{scroll-margin-top:90px;border-color:var(--line)}.check-item legend{font-size:16px;line-height:1.7}.choice-group label span{min-height:48px;font-size:14px;display:flex;align-items:center;justify-content:center}.choice-group input:checked+span{background:var(--navy);border-color:var(--navy);color:white}.choice-group input:focus-visible+span{outline:3px solid #377ce0;outline-offset:2px}
.catalog-group{margin-bottom:12px}.catalog-group summary{padding:20px;cursor:pointer;font-weight:700}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;padding:0 20px 20px}.catalog-card{padding:20px;border:1px solid var(--line);border-radius:10px}.catalog-card .btn{margin:4px 0;width:100%}.catalog-card p{font-size:13px;line-height:1.8;color:var(--muted)}.routine-assets{max-height:320px;overflow:auto;display:grid;gap:8px}.routine-assets label{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px}.routine-assets input{width:20px;min-height:20px}.routine-assets small{display:block;color:var(--muted)}#modal-form section li{margin-bottom:12px;line-height:1.7}#modal-form a{overflow-wrap:anywhere}
.hub-link{border-color:var(--line);background:#fff;border-radius:10px;min-height:76px;color:#294b75;font-size:14px}.hub-link:hover{background:#eef4fd;border-color:#a9bfdf}.quick-links .btn{background:#f0f5fc;color:#294b75;font-size:14px}.quick-links .btn:after{color:#52749f}
.auth-brand,.ai-hero{background:var(--navy);color:#fff}.auth-brand h1,.ai-hero h2{color:white}.auth-brand p,.auth-foot{color:#ccdbef}.auth-brand .mark{border-radius:14px}.auth-form>img{width:245px;height:auto;max-width:100%;object-fit:contain}.auth-form{max-width:620px;width:100%;margin:auto}.auth-form h2{font-size:26px}.auth-form .btn{font-size:14px}.auth-form p{font-size:14px;color:var(--muted)}.ai-hero .badge,.ai-hero .icon{color:#d8e6ff}.focus-hero{background:#edf3fc;color:var(--ink);border:1px solid #d9e4f2;border-radius:14px;box-shadow:none}.focus-hero:after{display:none}.focus-hero h2{color:var(--navy)}.focus-hero p,.hero-kicker{color:#405b7f}.hero-orbit{display:none}
.menu-scrim{display:none}.bottom-nav button.active{background:#e8f0ff;color:#164fbc}.bottom-nav button{color:#526780;font-size:11px;min-height:54px}.bottom-nav{border-color:var(--line)}
@media(max-width:1200px) and (min-width:761px){:root{--side:230px}.sidebar{padding:20px 12px}.nav{font-size:12px}.brand{padding:10px;margin-inline:2px}.content{padding:24px}.topbar{padding:0 24px}.process-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.process-nav button{min-height:54px}.crumb{max-width:340px}}
@media(max-width:760px){
 body{font-size:14px}.sidebar{width:min(300px,86vw);z-index:42;padding:20px 16px;height:100dvh}.sidebar .nav{font-size:14px}.sidebar.open~.menu-scrim{display:block;position:fixed;inset:0;background:#061f4966;backdrop-filter:blur(2px);z-index:41;border:0;width:100%;height:100%;border-radius:0}.topbar{height:66px;padding:0 16px;gap:8px}.topbar .crumb,.topbar .date,.topbar .avatar{display:none}.topbar .actions{gap:10px}.mobile-brand{display:flex;align-items:center}.mobile-brand img{width:128px;height:32px;object-fit:contain}.top-actions{gap:8px}.topbar .icon-btn{width:42px;height:42px;min-width:42px}.content{padding:18px 16px calc(100px + env(safe-area-inset-bottom))}.banner{padding:10px 12px;margin-bottom:20px;flex-direction:row;flex-wrap:wrap;align-items:center;font-size:11px}.banner>span{flex:1;min-width:120px}.banner label{gap:5px;font-size:11px}.banner select{max-width:150px;min-height:40px;font-size:14px}.page-head,.home-heading{margin-bottom:20px}.page-head h1,.home-heading h1,.daily-space h1{font-size:24px;line-height:1.5}.page-head p,.home-heading p,.daily-space .home-heading p{font-size:14px}.page-head>.actions{width:100%;max-width:none;justify-content:flex-start}.page-head>.actions .btn{flex:1}.eyebrow{font-size:11px}.daily-space .home-heading{margin:0 0 16px}.daily-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 20px}.daily-tools .btn{padding:11px 8px;font-size:13px}.daily-history{display:grid;grid-template-columns:1fr;margin-top:20px}
 .process-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:24px}.process-nav button{min-width:0;min-height:48px;font-size:12px;padding:9px 10px;gap:8px}.process-nav button:last-child{grid-column:1/-1}.process-nav button span{width:23px;min-width:23px;height:23px}.daily-space~.process-nav{display:none}
 .panel-head,.panel-body{padding:18px}.panel-head h2,.daily-space .panel-head h2{font-size:16px}.queue-intro{padding:10px 18px;font-size:12px}.focus-row,.simple-row{padding:18px;gap:12px;flex-wrap:wrap}.focus-row .queue-copy,.simple-row .queue-copy{flex-basis:calc(100% - 60px)}.queue-copy h3,.simple-row .queue-copy h3{font-size:16px}.queue-copy p,.simple-row .queue-copy p{font-size:14px}.queue-copy small,.simple-row .queue-copy small{font-size:12px}.focus-row>.btn,.simple-row>.btn.teal{margin:8px 0 0;width:100%;min-height:48px;font-size:14px}.daily-overview,.remaining-work{padding:16px}.btn,.btn.small,.btn.link{min-height:44px}.toolbar .search{width:100%;min-width:0;flex-basis:100%}.toolbar select{width:100%;flex-basis:100%;min-width:0}.toolbar .btn{flex:1}.field input,.field select,.field textarea,input,select,textarea{font-size:16px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat-value{font-size:28px}.stat-label{font-size:12px}.commission-steps{grid-template-columns:1fr}.task-row{padding:18px}.task-row .btn{margin-left:0}.modal-overlay{padding:8px}.modal{max-height:calc(100dvh - 16px);border-radius:12px}.modal header,.modal-content,.modal footer{padding:16px}.modal header h2{font-size:18px}.modal footer{padding-bottom:max(16px,env(safe-area-inset-bottom));flex-wrap:wrap}.modal footer>.btn{flex:1;min-width:110px}.check-progress{display:block}.check-progress .btn{width:100%;margin-top:10px}.choice-group{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-item legend{font-size:15px}.choice-group label span{font-size:14px}.bottom-nav{padding:6px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -4px 24px #061f4908}.bottom-nav button{font-size:11px;min-height:54px;border-radius:9px}.bottom-nav button.active{background:#e8f0ff;color:#164fbc}.footer-note{font-size:11px}.auth-form{padding:32px 22px}.auth-form>img{width:220px;margin-bottom:26px}.auth-form h2{font-size:24px}.catalog-grid{padding:0 16px 16px}.catalog-group summary{padding:16px}.table-scroll td[data-label]:not([data-label=""])::before{font-size:12px;color:#526780}.table-scroll td{padding:7px 0}.table-scroll tr{padding:16px}.table-scroll .cell-content{font-size:14px}
}
@media(max-width:380px){.topbar{padding:0 12px}.topbar .actions{gap:7px}.mobile-brand img{width:110px}.top-actions{gap:5px}.content{padding-inline:12px}.page-head h1,.daily-space h1{font-size:22px}.banner>span{flex-basis:100%}.banner label{width:100%;justify-content:space-between}.banner select{max-width:190px}.stats{grid-template-columns:1fr 1fr}.process-nav button{font-size:11px}.choice-group{grid-template-columns:1fr}.modal .detail-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.mobile-brand,.menu-scrim,.process-nav,.bottom-nav{display:none!important}.main{margin:0}.content{padding:0}.panel,.card{box-shadow:none}body{background:white}}

.clinic-brand-preview{display:flex;align-items:center;gap:20px;margin-bottom:20px;overflow-wrap:anywhere}.clinic-brand-preview img{width:160px;height:80px;object-fit:contain}.clinic-brand-preview>div{min-width:0}.clinic-brand-preview small{color:var(--muted)}@media(max-width:760px){.clinic-brand-preview{flex-direction:column;align-items:flex-start}}

.modal{scroll-padding-top:110px;scroll-padding-bottom:110px}.modal input,.modal textarea,.modal select,.modal .choice-group label{scroll-margin-block:110px}.modal-content{padding-bottom:100px}
