*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:#f5f9fc}body{font-family:Poppins,system-ui,-apple-system,sans-serif;background:#f5f9fc;color:#0b1929;line-height:1.5;min-height:100vh;padding-bottom:env(safe-area-inset-bottom)}#root{background:#f5f9fc;min-height:100vh}h1,h2,h3,h4,h5,h6{line-height:1.2}input,textarea,select{font-family:inherit;font-size:16px!important}input[type=number]{font-size:16px!important}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}::selection{background:#d1fae5;color:#065f46}:focus-visible{outline:2px solid #047857;outline-offset:2px}button,[role=button],[type=button],[type=submit],label{min-height:44px}*{-webkit-overflow-scrolling:touch}@media(hover:none)and (pointer:coarse){button:active,[role=button]:active,a:active{opacity:.85;transform:scale(.98)}}.sheet-content{overscroll-behavior:contain}@media print{body{background:#fff}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slideUp{0%{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.animate-slide-up{animation:slideUp .25s ease both}.animate-fade-in{animation:fadeIn .2s ease both}@keyframes scanLine{0%,to{transform:translate(-100%);opacity:0}40%,60%{transform:translate(0);opacity:1}}@keyframes livePulse{0%,to{box-shadow:0 0 #10b98199}50%{box-shadow:0 0 0 8px #10b98100}}@keyframes livePulseRing{0%{transform:scale(1);opacity:.5}to{transform:scale(2.5);opacity:0}}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:100;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #e2e8f0;display:none;flex-direction:row;align-items:stretch}[data-theme=dark] .bottom-nav{background:#0f172af5;border-top-color:#334155}[data-theme=dark] html{background:#0b1929!important}[data-theme=dark] body{background:#0b1929!important;color:#f8fafc!important}[data-theme=dark] #root{background:#0b1929!important;color:#f8fafc!important;min-height:100vh}[data-theme=dark] ::selection{background:#064e3b;color:#a7f3d0}[data-theme=dark] ::-webkit-scrollbar-thumb{background:#475569}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#64748b}[data-theme=dark] select,[data-theme=dark] input,[data-theme=dark] textarea{background:#1e293b!important;color:#f8fafc!important;border-color:#334155!important}[data-theme=dark] option{background:#1e293b;color:#f8fafc}[data-theme=dark] .page-container,[data-theme=dark] .dash-container{background:#0f172a!important;color:#f8fafc!important}[data-theme=dark] .patient-card{border-bottom-color:#334155!important;background:transparent!important}[data-theme=dark] .patient-card:active{background:#1e293b!important}[data-theme=dark] .action-btn{background:#1e293b!important;border-color:#334155!important;color:#e2e8f0!important}[data-theme=dark] .action-btn:active{background:#334155!important}[data-theme=dark] .stat-pill{background:#1e293b!important;border-color:#334155!important;color:#e2e8f0!important}[data-theme=dark] .scan-pending-badge{background:#422006!important;color:#fbbf24!important;border-color:#92400e!important}[data-theme=dark] .pw-gate{background:#1e293b!important;border-color:#334155!important}[data-theme=dark] div[style*="background: white"],[data-theme=dark] div[style*="background: #fff"],[data-theme=dark] div[style*="background:#fff"],[data-theme=dark] div[style*="background: rgb(255"],[data-theme=dark] div[style*="backgroundColor: white"],[data-theme=dark] div[style*="background-color: white"]{background:#1e293b!important;border-color:#334155!important;color:#e2e8f0!important}[data-theme=dark] div[style*="background: #f8fafc"],[data-theme=dark] div[style*="background:#f8fafc"],[data-theme=dark] div[style*="background: #f1f5f9"],[data-theme=dark] div[style*="background:#f1f5f9"],[data-theme=dark] div[style*="backgroundColor: #f8fafc"],[data-theme=dark] div[style*="backgroundColor: #f1f5f9"]{background:#0f172a!important;color:#f8fafc!important}[data-theme=dark] tr[style*="background: white"],[data-theme=dark] tr[style*="background:#fff"],[data-theme=dark] tr[style*="background: #fafafa"]{background:#0f172a!important;color:#e2e8f0!important}[data-theme=dark] tr[style*="background: #f8fafc"],[data-theme=dark] tr[style*="background:#f8fafc"]{background:#1e293b!important}[data-theme=dark] button[style*="background: white"],[data-theme=dark] button[style*="background:#fff"],[data-theme=dark] button[style*="background: #f1f5f9"],[data-theme=dark] button[style*="background:#f1f5f9"],[data-theme=dark] button[style*="background: #f8fafc"],[data-theme=dark] label[style*="background: white"],[data-theme=dark] label[style*="background:#fff"],[data-theme=dark] label[style*="background:'white'"]{background:#1e293b!important;border-color:#334155!important;color:#e2e8f0!important}[data-theme=dark] span[style*="background: #f1f5f9"],[data-theme=dark] span[style*="background:#f1f5f9"]{background:#334155!important;color:#e2e8f0!important}[data-theme=dark] div[style*="background: #fef2f2"],[data-theme=dark] div[style*="background:#fef2f2"],[data-theme=dark] div[style*="backgroundColor: #fef2f2"]{background:#450a0a!important;border-color:#7f1d1d!important;color:#fca5a5!important}[data-theme=dark] div[style*="background: #fffbeb"],[data-theme=dark] div[style*="background:#fffbeb"],[data-theme=dark] div[style*="background: #fef3c7"],[data-theme=dark] div[style*="background:#fef3c7"],[data-theme=dark] div[style*="backgroundColor: #fef3c7"],[data-theme=dark] div[style*="background: #fff3cd"],[data-theme=dark] div[style*="backgroundColor: #fff3cd"],[data-theme=dark] div[style*="background: #fef9c3"],[data-theme=dark] div[style*="background: #fff7ed"],[data-theme=dark] div[style*="background:#fff7ed"]{background:#422006!important;border-color:#92400e!important;color:#fbbf24!important}[data-theme=dark] div[style*="background: #f0fdf4"],[data-theme=dark] div[style*="background:#f0fdf4"],[data-theme=dark] div[style*="background: #ecfdf5"],[data-theme=dark] div[style*="background:#ecfdf5"],[data-theme=dark] div[style*="background: #dcfce7"],[data-theme=dark] div[style*="backgroundColor: #f0fdf4"]{background:#052e16!important;border-color:#166534!important;color:#86efac!important}[data-theme=dark] div[style*="background: #eff6ff"],[data-theme=dark] div[style*="background:#eff6ff"],[data-theme=dark] div[style*="background: #dbeafe"],[data-theme=dark] div[style*="background:#dbeafe"],[data-theme=dark] div[style*="background: #f0f9ff"]{background:#172554!important;border-color:#1e40af!important;color:#93c5fd!important}[data-theme=dark] div[style*="background: #f5f3ff"],[data-theme=dark] div[style*="background:#f5f3ff"],[data-theme=dark] div[style*="background: #faf5ff"],[data-theme=dark] div[style*="background: #ede9fe"]{background:#2e1065!important;border-color:#5b21b6!important;color:#c4b5fd!important}[data-theme=dark] div[style*="background: #ecfeff"]{background:#083344!important;border-color:#155e75!important;color:#67e8f9!important}[data-theme=dark] span[style*="background: #fef2f2"],[data-theme=dark] span[style*="background:#fef2f2"]{background:#450a0a!important;color:#fca5a5!important;border-color:#7f1d1d!important}[data-theme=dark] span[style*="background: #f0fdf4"],[data-theme=dark] span[style*="background:#f0fdf4"],[data-theme=dark] span[style*="background: #dcfce7"]{background:#052e16!important;color:#86efac!important;border-color:#166534!important}[data-theme=dark] span[style*="background: #fff7ed"],[data-theme=dark] span[style*="background:#fff7ed"]{background:#431407!important;color:#fdba74!important}[data-theme=dark] span[style*="background: #faf5ff"]{background:#2e1065!important;color:#c4b5fd!important}[data-theme=dark] span[style*="background: #eff6ff"]{background:#172554!important;color:#93c5fd!important}[data-theme=dark] button[style*="background: #fef2f2"],[data-theme=dark] button[style*="background:#fef2f2"]{background:#450a0a!important;color:#fca5a5!important;border-color:#7f1d1d!important}[data-theme=dark] button[style*="background: #f0fdf4"],[data-theme=dark] button[style*="background:#f0fdf4"],[data-theme=dark] button[style*="background: #ecfeff"],[data-theme=dark] button[style*="background:#ecfeff"]{background:#052e16!important;color:#86efac!important;border-color:#166534!important}[data-theme=dark] button[style*="background: #eff6ff"],[data-theme=dark] button[style*="background:#eff6ff"],[data-theme=dark] button[style*="background: #dbeafe"]{background:#172554!important;color:#93c5fd!important;border-color:#1e40af!important}[data-theme=dark] button[style*="background: #ede9fe"]{background:#2e1065!important;color:#c4b5fd!important}[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4,[data-theme=dark] h5,[data-theme=dark] h6{color:#f8fafc!important}[data-theme=dark] p,[data-theme=dark] label{color:#e2e8f0}[data-theme=dark] td{color:#e2e8f0;border-color:#334155!important}[data-theme=dark] th{color:#cbd5e1;border-color:#334155!important;background:#1e293b!important}[data-theme=dark] table,[data-theme=dark] hr,[data-theme=dark] .enroll-card{border-color:#334155!important}[data-theme=dark] .metric-card-inner{background:#1e293b!important;border-color:#334155!important}[data-theme=dark] .charts-grid>div{background:#1e293b!important;border-color:#334155!important}[data-theme=dark] .recharts-text,[data-theme=dark] .recharts-cartesian-axis-tick-value{fill:#94a3b8!important}[data-theme=dark] .recharts-cartesian-grid line{stroke:#334155!important}[data-theme=dark] .recharts-tooltip-wrapper div{background:#1e293b!important;border-color:#334155!important}[data-theme=dark] div[style*="background-color: white"],[data-theme=dark] div[style*="background-color: rgb(255"]{background-color:#1e293b!important;border-color:#334155!important;color:#e2e8f0!important}[data-theme=dark] div[style*="background-color: #fef3c7"],[data-theme=dark] div[style*="background-color: #fff3cd"],[data-theme=dark] div[style*="background-color: #fef9c3"]{background-color:#422006!important;border-color:#92400e!important;color:#fbbf24!important}[data-theme=dark] div[style*="background-color: #fef2f2"]{background-color:#450a0a!important;border-color:#7f1d1d!important;color:#fca5a5!important}[data-theme=dark] div[style*="background-color: #f0fdf4"]{background-color:#052e16!important;border-color:#166534!important;color:#86efac!important}[data-theme=dark] .wizard-progress>div{color:#e2e8f0!important}[data-theme=dark] div[style*="border: 1px solid #e2e8f0"],[data-theme=dark] div[style*="border: 1px solid rgb(226, 232, 240)"],[data-theme=dark] div[style*="border-color: #e2e8f0"]{border-color:#334155!important}[data-theme=dark] div[style*="border: 1px solid #f1f5f9"],[data-theme=dark] div[style*="border-bottom: 1px solid #f1f5f9"]{border-color:#1e293b!important}[data-theme=dark] .bottom-nav-item .nav-label{color:#64748b}.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:transparent;cursor:pointer;padding:6px 4px;transition:all .15s;min-height:44px;-webkit-tap-highlight-color:transparent}.bottom-nav-item .nav-icon{font-size:20px;line-height:1}.bottom-nav-item .nav-label{font-size:10px;font-weight:500;color:#94a3b8}.bottom-nav-item.active .nav-label{color:#047857;font-weight:600}.bottom-nav-item.active .nav-icon{filter:none}.enroll-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}.enroll-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;border-radius:16px;border:none;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent;transition:transform .15s,box-shadow .15s;min-height:140px}.enroll-card:active{transform:scale(.97)}.enroll-card-icon{font-size:36px;line-height:1}.enroll-card-title{font-size:15px;font-weight:700}.enroll-card-sub{font-size:12px;opacity:.75;line-height:1.4}.fab{position:fixed;bottom:calc(72px + env(safe-area-inset-bottom));right:18px;z-index:99;width:56px;height:56px;border-radius:50%;border:none;cursor:pointer;display:none;align-items:center;justify-content:center;font-size:22px;background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;box-shadow:0 4px 24px #0f172a66;-webkit-tap-highlight-color:transparent;transition:transform .15s}.fab:active{transform:scale(.92)}.page-container{max-width:1200px;margin:0 auto;padding:20px 20px 24px}.patient-card{display:flex;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid #f1f5f9;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .1s}.patient-card:active{background:#f8fafc}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.action-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 10px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;text-align:center;font-size:13px;font-weight:600;min-height:80px;transition:all .15s;-webkit-tap-highlight-color:transparent}.action-btn:active{transform:scale(.96)}.action-btn .action-icon{font-size:22px}.stats-scroll{display:none;gap:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none;margin-bottom:20px}.stats-scroll::-webkit-scrollbar{display:none}.stats-scroll .stat-pill{flex:0 0 auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;min-width:110px;text-align:center}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#00000073;display:flex;align-items:flex-end;animation:fadeIn .2s ease;-webkit-tap-highlight-color:transparent}.sheet-content{width:100%;background:#fff;border-radius:24px 24px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));max-height:92vh;overflow-y:auto;animation:slideUp .25s ease;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}[data-theme=dark] .sheet-content{background:#1e293b}.sheet-handle{width:40px;height:4px;background:#cbd5e1;border-radius:99px;margin:0 auto 16px;opacity:.7}[data-theme=dark] .sheet-handle{background:#475569}.wizard-progress{display:flex;gap:8px;margin-bottom:24px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}.wizard-progress::-webkit-scrollbar{display:none}.scan-pending-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:4px 10px;border-radius:99px;background:#fef3c7;color:#92400e;border:1px solid #fde68a}@media(max-width:768px){.bottom-nav,.fab{display:flex}.mobile-back-btn{display:flex!important}.hide-mobile{display:none!important}.show-mobile{display:block!important}.show-mobile-flex{display:flex!important}.mobile-page-title{display:block!important}.page-container,.dash-container{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important;padding-left:16px!important;padding-right:16px!important}.header-inner{padding:0 12px!important;height:52px!important;position:relative!important}.header-breadcrumbs{display:none!important}.scan-hero{padding:18px 20px!important;gap:14px!important;border-radius:14px!important}.scan-hero>div:first-child{width:48px!important;height:48px!important;border-radius:12px!important;font-size:24px!important}.enroll-cards{grid-template-columns:1fr 1fr;gap:10px}.stats-grid{display:none!important}.stats-scroll{display:flex}.metrics-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}.patient-table-header{display:none!important}.patient-row{display:flex!important;flex-direction:column!important;gap:4px!important;padding:14px 16px!important;grid-template-columns:none!important}.patient-row>div:not(:first-child){display:none!important}.search-row{flex-direction:column!important;gap:8px!important}.search-row>div:first-child{max-width:100%!important}.search-btns{width:100%!important}.search-btns>button{flex:1!important;text-align:center!important}.patient-header{flex-direction:column!important;gap:12px!important}.patient-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}.patient-actions>button{justify-content:center!important;min-height:48px!important;border-radius:10px!important;font-size:12px!important;padding:0 10px!important}.patient-actions>button:last-child{grid-column:1 / -1!important;background:linear-gradient(135deg,#166193,#26a9e0)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;min-height:52px!important;box-shadow:0 4px 16px #26a9e04d!important}.timeline-stats{flex-direction:column!important;gap:6px!important}.timeline-stats>div{flex-wrap:nowrap!important}.timeline-tags{flex-direction:column!important;align-items:flex-start!important;gap:6px!important}.wizard-progress>div{min-width:44px!important;flex:0 0 auto!important}.wizard-progress>div>span{font-size:9px!important}.pw-gate{width:calc(100vw - 32px)!important;max-width:380px!important;padding:28px 20px!important}.charts-grid{grid-template-columns:1fr!important}h1{font-size:19px!important}h2{font-size:17px!important}div[style*="width: 420"]{width:100%!important;padding:20px!important}select{height:44px!important}.action-grid{grid-template-columns:1fr 1fr}.metric-card-inner{padding:14px!important}.sheet-content{border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));max-height:94vh}.patient-info-line{flex-wrap:wrap!important;gap:4px!important}.measure-grid{grid-template-columns:1fr!important}.measure-grid>div:first-child{position:static!important;max-height:none!important}.measure-steps{gap:10px!important;padding:10px 12px!important;-webkit-overflow-scrolling:touch}.measure-steps>div{flex-shrink:0}.measure-toolbar{flex-direction:column!important;align-items:stretch!important;padding:10px 12px!important}.measure-capture-btns{width:100%!important}.measure-capture-btns>button,.measure-capture-btns>label>span{flex:1!important;justify-content:center!important;min-height:44px!important;font-size:14px!important;padding:10px 14px!important;border-radius:10px!important}.measure-capture-btns>button{background:#047857!important;font-size:15px!important;font-weight:600!important}.measure-tool-btns{overflow-x:auto!important;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;padding-bottom:4px}.measure-tool-btns>button{flex-shrink:0!important;min-height:38px!important}}@media(min-width:768px)and (pointer:coarse){.measure-canvas-area{min-height:55vh!important;padding:8px!important}.measure-canvas-area canvas{max-height:65vh!important}.measure-toolbar{position:relative!important;z-index:10!important;background:#ffffffeb!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;border-radius:0 0 12px 12px!important;margin-bottom:-8px!important}[data-theme=dark] .measure-toolbar{background:#0f172aeb!important}.measure-tool-btns>button{min-height:44px!important;padding:8px 16px!important;font-size:13px!important}.measure-capture-btns>label>span{min-height:48px!important;font-size:15px!important;padding:10px 18px!important;border-radius:10px!important}}@media(min-width:768px)and (max-width:1200px)and (pointer:coarse){:root{--tablet-font-xs: 12px;--tablet-font-sm: 13px;--tablet-font-base: 15px;--tablet-font-lg: 17px;--tablet-font-xl: 20px;--tablet-gap-sm: 8px;--tablet-gap-md: 12px;--tablet-gap-lg: 16px;--tablet-pad: 14px;--tablet-radius: 10px}.bottom-nav{height:calc(68px + env(safe-area-inset-bottom))!important}.bottom-nav-item .nav-icon{font-size:24px!important}.bottom-nav-item .nav-label{font-size:13px!important;margin-top:2px!important}.page-container,.dash-container{padding-left:24px!important;padding-right:24px!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}.header-inner{height:58px!important;padding:0 20px!important}span,p,label,small,caption,figcaption,.stat-pill,.badge{min-font-size:12px}input[type=range]{height:36px!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;cursor:pointer}input[type=range]::-webkit-slider-track{height:8px!important;border-radius:4px!important}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none!important;width:28px!important;height:28px!important;border-radius:50%!important;margin-top:-10px!important}input[type=range]::-moz-range-track{height:8px!important;border-radius:4px!important}input[type=range]::-moz-range-thumb{width:28px!important;height:28px!important;border-radius:50%!important;border:none!important}button,[role=button],[type=button],[type=submit]{min-height:48px!important}button[style*="width: 2"]{min-height:unset!important}.stats-grid,.metrics-grid,.enroll-cards{grid-template-columns:repeat(3,1fr)!important;gap:12px!important}.patient-card{padding:16px 20px!important}.scan-hero{padding:22px 24px!important;gap:16px!important}.workflow-side-panel{min-width:280px!important}.measure-steps{gap:10px!important;padding:12px!important}.measure-steps h3{font-size:16px!important}.measure-steps p,.measure-steps span,.measure-steps label{font-size:13px!important}.wizard-progress>div>div{width:40px!important;height:40px!important;font-size:15px!important}.wizard-progress>div>span{font-size:12px!important}.timeline-stats>div{font-size:14px!important}.patient-actions{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}.measure-capture-btns>label>span{min-height:52px!important;font-size:16px!important;padding:12px 20px!important;border-radius:12px!important}.measure-tool-btns>button{min-height:48px!important;padding:10px 18px!important;font-size:14px!important}}@media(pointer:coarse){.measure-canvas-area,.measure-canvas-area canvas{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:none!important}}@media(max-width:480px){.enroll-cards{grid-template-columns:1fr 1fr}.metrics-grid{grid-template-columns:1fr!important}h1{font-size:17px!important}h2{font-size:15px!important}.wizard-progress>div>div{width:30px!important;height:30px!important;font-size:12px!important}.wizard-progress>div>span{display:none!important}.patient-actions{grid-template-columns:1fr!important}.patient-actions>button:last-child{grid-column:1!important}.timeline-stats>div{font-size:12px!important}.measure-steps{gap:6px!important;padding:8px!important}.measure-capture-btns,.workflow-split{flex-direction:column!important}.workflow-side-panel{width:100%!important;position:static!important}}@media(max-width:768px){.workflow-split{flex-direction:column!important}.workflow-side-panel{width:100%!important;position:static!important}}
