@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-500-normal-7RbcRiD8.woff2)format("woff2"),url(/assets/roboto-latin-500-normal-DQZyH_nt.woff)format("woff")}:root{color:#151515;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}.mobile-carousel{overscroll-behavior:contain;scrollbar-width:none;-webkit-user-select:none;user-select:none;width:100%;min-width:0;max-width:100%;display:block;position:relative;overflow:auto}.mobile-carousel::-webkit-scrollbar{display:none}.mobile-carousel{touch-action:pan-y;overflow:auto hidden}.mobile-carousel[data-dragging=true]{cursor:none}.mobile-carousel-content{width:max-content;min-width:100%;transform:translateX(var(--mobile-carousel-overdrag));will-change:transform;display:flex}.mobile-carousel-scrollbar{z-index:4;opacity:0;pointer-events:none;transition:opacity .15s;position:absolute;inset:0}.mobile-carousel-scrollbar[data-visible=true]{opacity:1}.mobile-carousel-scrollbar-thumb{background:#00000059;border-radius:999px;height:3px;position:absolute;bottom:4px;right:4px}body{min-width:320px;overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer}.phone-stage{place-items:center;width:100%;height:100%;padding:24px;display:grid;position:relative}.device-menu-bar{z-index:100;border-radius:12px;padding:3px;position:absolute;top:18px;right:18px}.device-picker-trigger{color:#151515;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;height:34px;padding:0 10px 0 12px;font:600 14px/1 ui-sans-serif,system-ui,sans-serif;display:flex}.device-picker-trigger:hover,.device-picker-trigger[data-state=open]{background:#0000000e}.device-picker-trigger:focus-visible{outline-offset:2px;outline:2px solid #000000b8}.device-picker-menu{z-index:200;min-width:168px;transform-origin:var(--radix-dropdown-menu-content-transform-origin);background:#fffffffa;border-radius:12px;padding:3px;animation:.12s ease-out device-menu-in;box-shadow:0 0 1px #0000000f,0 0 0 1px #00000014,0 4px 4px #0000000d}.device-picker-item{color:#181818;-webkit-user-select:none;user-select:none;border-radius:8px;outline:none;justify-content:space-between;align-items:center;height:34px;padding:0 9px 0 10px;font:500 14px/1 ui-sans-serif,system-ui,sans-serif;display:flex}.device-picker-item[data-highlighted]{background:#f0f0f0}.device-picker-item[data-state=checked]{font-weight:600}.device-picker-check{color:#181818;place-items:center;display:grid}@keyframes device-menu-in{0%{opacity:0;transform:scale(.98)translateY(-2px)}to{opacity:1;transform:scale(1)translateY(0)}}.phone-scale-box{position:relative}.phone-device{transform-origin:0 0;-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0}.phone-bezel{object-fit:contain;z-index:2;-webkit-user-drag:none;pointer-events:none;width:100%;height:100%;display:block;position:absolute;inset:0}.device-screen{cursor:none;z-index:1;-webkit-user-select:none;user-select:none;background:#fff;border-radius:42px;position:absolute;overflow:hidden;box-shadow:inset 0 0 0 1px #00000014}.device-camera{z-index:75;pointer-events:none;background:#050505;border-radius:50%;display:block;position:absolute;box-shadow:inset 0 0 0 1px #ffffff14}.device-screen,.device-screen *{cursor:none!important}.device-screen img,.keyboard-asset{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.device-screen input,.device-screen textarea,.device-screen select,.device-screen option,.device-screen [contenteditable=true]{-webkit-user-select:auto;user-select:auto}.device-screen:active,.device-screen:active *,.device-screen input,.device-screen textarea,.device-screen button,.device-screen a,.device-screen [role=button]{cursor:none!important}.device-screen[data-cursor-debug=true],.device-screen[data-cursor-debug=true] *{cursor:default!important}.device-screen :focus:not(:focus-visible){outline:0}.device-screen :focus-visible{outline:3px solid #1b6f8a!important;outline-offset:2px!important}.flow-stack,.flow-scenes,.flow-screen,.mobile-app-viewport{position:absolute;inset:0}.mobile-app-viewport[data-platform=android][data-keyboard-visible=false]{bottom:var(--device-safe-area-bottom,48px)}.flow-stack{--flow-header-height:0px;--flow-header-content-height:0px;--flow-header-safe-area:0px;--flow-footer-height:0px;--keyboard-height:0px;touch-action:pan-y;background:0 0;overflow:hidden}.flow-fixed-header{z-index:12;height:var(--flow-header-height);padding-top:var(--flow-header-safe-area);box-sizing:border-box;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border-bottom:0;position:absolute;top:0;left:0;right:0}.flow-fixed-footer{z-index:12;right:0;bottom:var(--keyboard-height);height:var(--flow-footer-height);background:0 0;transition:bottom .26s cubic-bezier(.2,.8,.2,1);position:absolute;left:0}.flow-scenes{top:var(--flow-header-height);bottom:0;overflow:hidden}.flow-screen{will-change:transform;background:0 0;overflow:hidden}.mobile-page{--mobile-safe-area-height:var(--device-safe-area-bottom,34px);--keyboard-height:0px;position:absolute;inset:0}.mobile-page[data-keyboard-visible=true],.mobile-app-viewport[data-platform=android] .mobile-page{--mobile-safe-area-height:0px}.mobile-scroll{top:0;right:0;bottom:var(--keyboard-height);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:none;touch-action:none;-webkit-user-select:none;user-select:none;transition:bottom .26s cubic-bezier(.2,.8,.2,1);position:absolute;left:0;overflow:hidden auto}.mobile-scroll::-webkit-scrollbar{display:none}.mobile-scroll[data-dragging=true]{cursor:none}.mobile-cursor{z-index:80;opacity:0;pointer-events:none;will-change:transform;background:radial-gradient(circle at 50% 44%,#ffffffb3 0 34%,#ffffff8a 58%,#eeeeee7a 100%);border:.5px solid #0000001f;border-radius:999px;width:48px;height:48px;transition:opacity 90ms,background 80ms,box-shadow 80ms;position:absolute;top:0;left:0;box-shadow:inset 0 1px 2px #fff9,inset 0 -5px 10px #0000000d,inset 0 0 0 1px #00000006}.mobile-cursor:before{content:"";pointer-events:none;background:linear-gradient(#ffffff61,#fff0);border-radius:999px;width:32px;height:17px;position:absolute;top:3px;left:50%;transform:translate(-50%)}.mobile-cursor:after{border-radius:inherit;content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 1px 0 3px #ffffff47,inset -1px 0 3px #00000005}.mobile-cursor-hotspot{pointer-events:none;background:#ffffffd1;border:1px solid #007afff2;border-radius:999px;width:9px;height:9px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #ffffffbf,0 0 0 3px #007aff29}.mobile-cursor-hotspot:before,.mobile-cursor-hotspot:after{content:"";background:#007afff2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.mobile-cursor-hotspot:before{width:17px;height:1px}.mobile-cursor-hotspot:after{width:1px;height:17px}.mobile-cursor[data-visible=true]{opacity:1}.mobile-cursor[data-active=true]{background:radial-gradient(circle at 50% 55%,#e8e8e894 0 30%,#f8f8f880 62%,#ffffffad 100%);box-shadow:inset 0 3px 7px #00000014,inset 0 -4px 8px #ffffff57,inset 0 0 0 1px #00000008}.mobile-cursor[data-active=true]:before{background:linear-gradient(#0000000e,#0000)}.mobile-cursor[data-active=true]:after{box-shadow:inset 0 5px 9px #0000000b,inset 0 -3px 7px #ffffff47}.mobile-scroll-content{will-change:transform;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;padding:0;display:grid}.mobile-scrollbar{z-index:9;top:4px;right:5px;bottom:calc(var(--mobile-safe-area-height) + var(--keyboard-height) + 4px);opacity:0;pointer-events:none;width:4px;transition:bottom .26s cubic-bezier(.2,.8,.2,1),opacity .18s;position:absolute}.mobile-page[data-keyboard-dragging=true] .mobile-scroll,.mobile-page[data-keyboard-dragging=true] .mobile-scrollbar,.flow-stack[data-keyboard-dragging=true] .flow-fixed-footer{transition:none}.mobile-scrollbar[data-visible=true]{opacity:1}.mobile-scrollbar-thumb{background:#00000047;border-radius:999px;width:4px;min-height:36px;transition:background .12s;box-shadow:0 0 0 1px #ffffff2e}.status-bar{z-index:72;color:#050505;pointer-events:none;background:0 0;grid-template-columns:1fr auto;align-items:center;height:54px;padding:10px 34px 0 36px;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Helvetica Neue,Arial,sans-serif;display:grid;position:absolute;top:0;left:0;right:0}.device-screen[data-device=pixel-10] .status-bar{align-items:start;height:auto;padding:32px 32px 0;font-family:Roboto,Arial,sans-serif}.status-time{text-align:center;letter-spacing:0;justify-self:start;min-width:58px;font-size:15px;font-weight:600;line-height:1}.status-indicators{justify-self:end;align-items:center;display:flex}.status-indicator-svg{display:block}.status-indicator-svg[data-platform=ios]{width:79px;height:13px}.status-indicator-svg[data-platform=android]{width:50px;height:14px}.device-screen[data-device=pixel-10] .status-time{font-weight:500;transform:translateY(2px)}.home-indicator-svg{z-index:70;width:100%;height:var(--device-safe-area-bottom,34px);pointer-events:none;display:block;position:absolute;bottom:0;left:0;right:0}.android-navigation-bar{z-index:70;width:428px;height:var(--device-safe-area-bottom,48px);pointer-events:none;-webkit-user-drag:none;display:block;position:absolute;bottom:-1px;left:-1px}h1,h2,p{margin:0}h1{letter-spacing:0;font-size:26px;line-height:1.08}h2{font-size:15px}p{color:#555;font-size:14px;line-height:1.45}.field-label{color:#555;font-size:13px;font-weight:800}.mobile-field{gap:8px;display:grid}.mobile-field input{color:#151515;background:#fff;border:1px solid #0000001a;border-radius:8px;outline:0;width:100%;min-height:44px;padding:0 12px}.mobile-field input:focus{box-shadow:none;border-color:#00000029}.device-screen .mobile-field input:focus,.device-screen .mobile-field input:focus-visible{border-color:#0000001f;box-shadow:none!important;outline:0!important}.sheet-overlay{z-index:20;background:#00000057;position:absolute;inset:0}.bottom-sheet{z-index:21;touch-action:none;background:#fff;border-radius:22px 22px 0 0;flex-direction:column;min-height:260px;display:flex;position:absolute;left:0;right:0;overflow:hidden;box-shadow:0 -16px 48px #0003}.sheet-handle-zone{touch-action:none;place-items:center;height:30px;display:grid}.sheet-handle{background:#c9c9c4;border-radius:999px;width:42px;height:5px}.sheet-header{gap:4px;padding:0 18px 14px;display:grid}.sheet-title{margin:0;font-size:18px;font-weight:900}.sheet-description{color:#737373;margin:0;font-size:13px;line-height:1.35}.sheet-content{padding:0 18px 24px;overflow:auto}.keyboard-dock{z-index:30;height:339px;box-shadow:none;pointer-events:none;will-change:transform;background:#d8d9de;border-radius:32px 32px 0 0;padding:0;position:absolute;bottom:-1px;left:0;right:0;overflow:hidden}.keyboard-dock[data-platform=android]{background:#f3f2f6;border-radius:0;box-shadow:0 -1px 2px #00000014}.keyboard-dock[data-visible=true]{pointer-events:auto}.keyboard-asset{z-index:1;border-radius:inherit;object-fit:cover;object-position:center bottom;-webkit-user-drag:none;pointer-events:none;width:100%;height:100%;display:block;position:relative}.keyboard-dock[data-platform=android] .keyboard-asset{object-fit:fill;border-radius:0}:root{--ys-ivory:#fcfcfa;--ys-navy:#123456;--ys-sage:#526c5b;--ys-coral:#b94230;--ys-amber:#946000;--ys-line:#1234562b;--ys-muted:#5e7082;--ys-font-ui:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif}.prototype-root,.role-screen{color:var(--ys-navy);font-family:var(--ys-font-ui);font-synthesis:none;position:absolute;inset:0}.app-screen{background:var(--ys-ivory)}.screen-page{min-height:100%;padding-bottom:calc(124px + var(--mobile-safe-area-height,0px));background:var(--ys-ivory)}.screen-page *,.role-page *{box-sizing:border-box}.screen-page button,.role-page button,.bottom-nav button{color:inherit;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent;background:0 0;border:0;margin:0;padding:0}.brand-header{justify-content:space-between;align-items:center;min-height:42px;display:flex}.brand-lockup{align-items:center;gap:9px;display:flex}.brand-lockup strong{letter-spacing:.05em;white-space:nowrap;font-size:23px;font-weight:700;line-height:1}.brand-mark{object-fit:contain;width:43px;height:43px;display:block}.brand-header time{font:500 15px/1 "Roboto", var(--ys-font-ui);letter-spacing:.04em;white-space:nowrap}.text-action,.header-action{white-space:nowrap;align-items:center;gap:6px;display:inline-flex;color:var(--ys-coral)!important;font-weight:600!important}.text-action svg,.header-action svg{width:18px;height:18px}.text-action[data-complete=true],.header-action.sage,.sage{color:#789376!important}.amber{color:var(--ys-amber)!important}.coral{color:var(--ys-coral)!important}.navy{color:var(--ys-navy)!important}.role-page{min-height:100%;padding:60px 24px calc(40px + var(--mobile-safe-area-height));background:var(--ys-ivory);flex-direction:column;display:flex}.role-page .brand-header{margin-bottom:72px}.role-intro{border-bottom:1px solid var(--ys-line);padding-bottom:24px;position:relative}.role-intro:after{background:var(--ys-coral);content:"";width:58px;height:3px;position:absolute;bottom:-1px;left:0}.role-title{letter-spacing:0;margin:0;font-size:36px;font-weight:700;line-height:1.1}.role-options{border-bottom:1px solid var(--ys-line)}.role-option{grid-template-columns:54px minmax(0,1fr) 24px;align-items:center;gap:16px;width:100%;min-height:96px;transition:color .16s,background .16s;display:grid;position:relative;border-bottom:1px solid var(--ys-line)!important}.role-option:last-child{border-bottom:0!important}.role-option[data-selected=true]{background:#9bae9a29!important}.role-option[data-selected=true]:before{background:var(--ys-coral);content:"";width:4px;position:absolute;top:20px;bottom:20px;left:-24px}.role-symbol-wrap{border:1px solid var(--ys-line);border-radius:50%;place-items:center;width:52px;height:52px;display:grid}.role-option[data-selected=true] .role-symbol-wrap{color:#fff;border-color:var(--ys-navy);background:var(--ys-navy)}.role-symbol{width:28px;height:28px}.role-copy{flex-direction:column;align-items:flex-start;gap:7px;display:flex}.role-name{font-size:22px;font-weight:700}.role-state{color:var(--ys-muted);font-size:13px;font-weight:500}.role-selected-icon,.role-chevron{width:22px;height:22px}.role-selected-icon{color:var(--ys-coral)}.role-chevron{color:var(--ys-muted)}.role-note{min-height:20px;color:var(--ys-muted);align-items:center;gap:8px;margin:24px 0 26px;font-size:13px;display:flex}.role-note svg{color:var(--ys-sage)}.enter-action{letter-spacing:0;justify-content:space-between;align-items:center;width:100%;min-height:58px;display:flex;color:#fff!important;background:var(--ys-navy)!important;margin-top:auto!important;padding:0 20px!important;font-size:17px!important;font-weight:600!important}.enter-action svg{width:22px;height:22px}.patient-top,.page-header{background:var(--ys-ivory);padding:54px 24px 24px}.page-header{padding-bottom:20px}.page-header.compact{padding-bottom:14px}.page-header.compact h1{margin-top:26px}.page-header h1{margin:34px 0 0;font-size:38px;font-weight:700;line-height:1}.header-action{font-size:15px!important}.patient-top{padding-bottom:18px}.medication-hero{background:#9bae9a9e;grid-template-columns:minmax(0,1fr) 112px;min-height:282px;padding:26px 24px 22px;display:grid}.medication-hero h1{margin:0 0 14px;font-size:21px;font-weight:700}.hero-time{letter-spacing:-.07em;font:300 80px/.98 Roboto,sans-serif}.medication-hero p{white-space:nowrap;margin:14px 0 20px;font-size:18px;font-weight:600}.medication-hero .text-action{font-size:21px}.medicine-illustration{color:var(--ys-navy);place-items:center;display:grid}.medicine-illustration img{object-fit:contain;width:108px;height:136px;display:block}.content-section{padding:27px 24px 0}.content-section h2,.section-heading h2{margin:0 0 18px;font-size:22px;font-weight:700;line-height:1.2}.metric-heading{justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:4px;display:flex}.metric-heading>span{font-size:20px;font-weight:700}.metric-heading>strong{letter-spacing:-.04em;font:400 48px/1 Roboto,sans-serif}.metric-heading small{letter-spacing:0;font-size:17px;font-weight:500}.trend-chart{margin-top:10px}.trend-chart svg{width:100%;height:auto;display:block;overflow:visible}.trend-chart .grid-lines line{stroke:#12345624;stroke-dasharray:3 3}.trend-chart polyline{fill:none;stroke:var(--ys-navy);stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}.trend-chart circle{fill:var(--ys-navy)}.trend-chart circle.highlight{fill:var(--ys-amber)}.trend-chart circle.missing-point{fill:var(--ys-ivory);stroke:var(--ys-muted);stroke-dasharray:2 2;stroke-width:1.6px}.trend-chart circle.missing-point.selected{stroke:var(--ys-coral);stroke-width:2.2px}.chart-labels{justify-content:space-between;margin-top:-2px;font:500 10px/1 Roboto,sans-serif;display:flex}.chart-labels span{text-align:center;min-width:0}.trend-chart.compact{margin-top:0}.trend-chart.compact svg{max-height:124px}.recent-section{padding-top:20px}.open-row,.action-row,.timeline-row,.clinical-row,.followup-row,.patient-row,.filter-row{align-items:center;width:100%;display:flex;border-bottom:1px solid var(--ys-line)!important}.open-row{gap:10px;min-height:67px;font-size:14px!important}.open-row>span:nth-last-of-type(2){margin-left:auto}.open-row svg:last-child{flex:none;width:18px;height:18px}.round-icon{color:#fff;border-radius:50%;flex:none;place-items:center;width:38px;height:38px;display:grid}.sage-bg{background:var(--ys-sage)}.bottom-nav{z-index:25;min-height:calc(96px + var(--mobile-safe-area-height,0px));padding:11px 10px calc(23px + var(--mobile-safe-area-height,0px));border-top:1px solid var(--ys-line);background:#fcfcfafa;grid-template-columns:repeat(5,1fr);display:grid;position:absolute;bottom:0;left:0;right:0}.nav-item{flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;display:flex;position:relative;text-align:center!important;font-size:12px!important;font-weight:600!important}.nav-item:before{background:var(--ys-coral);content:"";border-radius:2px;width:34px;height:3px;transition:transform .16s;position:absolute;top:-11px;left:50%;transform:translate(-50%)scaleX(0)}.nav-item[data-active=true]:before{transform:translate(-50%)scaleX(1)}.nav-icon{width:26px;height:26px}.nav-item[data-active=true] .nav-icon{color:#fff;background:var(--ys-navy);border-radius:8px;padding:4px}.toast{z-index:45;bottom:calc(104px + var(--mobile-safe-area-height,0px));color:#fff;background:var(--ys-navy);border-radius:20px;width:max-content;max-width:84%;padding:10px 16px;font-size:14px;animation:.18s ease-out toast-in;position:absolute;left:50%;transform:translate(-50%)}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.segment-line{border-bottom:1px solid var(--ys-line);grid-template-columns:repeat(3,1fr);margin:0 24px;display:grid}.segment-line button{height:52px;color:var(--ys-navy);position:relative;text-align:center!important;font-size:16px!important;font-weight:500!important}.segment-line button:after{background:var(--ys-coral);content:"";opacity:0;border-radius:3px;height:3px;position:absolute;bottom:-1px;left:27%;right:27%}.segment-line button.active{color:var(--ys-coral)}.segment-line button.active:after{opacity:1}.record-timeline{padding-top:28px}.timeline-row{gap:13px;min-height:92px;position:relative}.timeline-row time{font:500 13px/1 "Roboto", var(--ys-font-ui);flex:0 0 56px}.timeline-row div{flex-direction:column;gap:7px;min-width:0;display:flex}.timeline-row strong{font-size:17px}.timeline-row div span{color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.timeline-row>svg{margin-left:auto}.timeline-dot{border-radius:50%;width:10px;height:10px}.timeline-dot.coral{background:var(--ys-coral)}.timeline-dot.sage{background:var(--ys-sage)}.timeline-dot.amber{background:var(--ys-amber)}.summary-rail{grid-template-columns:repeat(3,1fr);padding-top:30px;display:grid}.summary-rail div{border-right:1px solid var(--ys-line);flex-direction:column;align-items:center;gap:8px;display:flex}.summary-rail div:last-child{border-right:0}.summary-rail span{color:var(--ys-muted);font-size:13px}.summary-rail strong{font:500 34px/1 Roboto,sans-serif}.meds-current{background:#9bae9a9e;width:100%;margin-top:5px;display:block;text-align:left!important;padding:26px 24px 24px!important}.meds-history{padding-top:14px}.section-label{font-size:14px;font-weight:700}.meds-current h2{margin:17px 0 3px;font-size:24px}.dose-number{font:400 59px/1.1 Roboto,sans-serif}.dose-number small{font-size:19px}.dose-grid{grid-template-columns:1fr 1fr;gap:18px;margin-top:22px;display:grid}.dose-grid div{grid-template-columns:22px 1fr;gap:4px 8px;display:grid}.dose-grid svg{grid-row:1/3;width:20px;height:20px}.dose-grid span{font-size:15px;font-weight:600}.dose-grid small{color:#123456b3;font-size:12px}.week-doses{border-bottom:1px solid var(--ys-line);grid-template-columns:repeat(7,1fr);padding:16px 0 22px;display:grid}.week-doses>button{color:var(--ys-muted);flex-direction:column;align-items:center;gap:12px;display:flex;text-align:center!important;font-size:12px!important}.week-doses>button[data-today=true]{color:var(--ys-coral);font-weight:700}.week-doses svg,.empty-dose{width:21px;height:21px}.week-doses svg{color:var(--ys-sage)}.empty-dose{border:1px solid var(--ys-line);border-radius:50%}.action-row{gap:14px;min-height:66px}.action-row>svg:first-child{flex:none;width:22px;height:22px}.action-row div{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.action-row strong{font-size:16px;font-weight:600}.action-row div span{color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.action-row>span{margin-left:auto;font-size:14px}.action-row>svg:last-child{width:18px;height:18px}.report-title-row{border-bottom:1px solid var(--ys-line);grid-template-columns:1fr auto auto 18px;align-items:center;gap:12px;width:100%;min-height:48px;display:grid;text-align:left!important}.report-fold-row{justify-content:space-between;align-items:center;width:100%;min-height:62px;display:flex;border-bottom:1px solid var(--ys-line)!important;text-align:left!important}.report-fold-row>span{flex-direction:column;gap:4px;min-width:0;display:flex}.report-fold-row strong{font-size:18px;font-weight:700}.report-fold-row small{color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.report-fold-row>svg{flex:none;width:20px;height:20px;transition:transform .16s}.report-fold-row>svg[data-open=true]{transform:rotate(180deg)}.report-title-row strong{font-size:17px}.report-title-row span{font-size:12px}.report-title-row span:nth-of-type(2){max-width:96px;color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.report-count{color:var(--ys-muted);font-size:13px}.report-date-list{border-bottom:1px solid var(--ys-line);grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;padding:5px 0 8px;display:grid}.report-date-row{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;min-height:48px;display:grid;text-align:left!important;border-bottom:1px solid #12345614!important;padding:0 4px!important}.report-date-row time{color:var(--ys-navy);font:600 14px/1 "Roboto", var(--ys-font-ui)}.report-date-row span{color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.report-date-row[data-selected=true] time{color:var(--ys-coral)}.report-date-row[data-selected=true]{background:#ee755b12!important}.lab-grid{border-bottom:1px solid var(--ys-line);grid-template-columns:repeat(4,1fr);padding:18px 0;display:grid}.metric{border-right:1px solid var(--ys-line);flex-direction:column;align-items:center;gap:10px;min-width:0;padding:0 7px;display:flex}.metric-button{min-height:62px;position:relative;text-align:center!important}.metric-button:after{background:var(--ys-coral);content:"";opacity:0;border-radius:3px;height:3px;position:absolute;bottom:-19px;left:18%;right:18%}.metric-button[data-selected=true]:after{opacity:1}.metric-button[data-selected=true] span{color:var(--ys-coral);font-weight:700}.metric:last-child{border-right:0}.metric span{white-space:nowrap;font-size:11px}.metric strong{font:400 27px/1 Roboto,sans-serif}.metric-button[data-missing=true] strong{color:var(--ys-muted);font:600 16px/1 var(--ys-font-ui)}.report-trend{padding-top:22px}.metric-heading>strong.missing-value{color:var(--ys-muted);font:600 26px/1 var(--ys-font-ui);letter-spacing:0}.trend-missing-note{color:var(--ys-muted);align-items:center;gap:7px;margin:9px 0 0;font-size:12px;display:flex}.trend-missing-note i{border:1.5px dashed var(--ys-muted);border-radius:50%;width:9px;height:9px}.report-more{padding-top:12px}.fold-content{border-bottom:1px solid var(--ys-line)}.profile-hero,.doctor-hero{color:#fff;background:var(--ys-navy);padding:54px 24px 24px}.profile-hero .brand-lockup strong,.doctor-hero .brand-lockup strong{color:#fff}.profile-hero h1,.doctor-hero h1{margin:32px 0 0;font-size:38px;font-weight:700;line-height:1}.profile-identity{grid-template-columns:86px 1fr;align-items:center;gap:22px;margin-top:25px;display:grid}.profile-avatar{border:1.8px solid #fff;border-radius:50%;place-items:center;width:86px;height:86px;display:grid}.profile-avatar svg{width:48px;height:48px}.profile-identity>div{flex-direction:column;align-items:flex-start;gap:7px;display:flex}.profile-identity strong{font-size:25px}.profile-identity span{font:500 14px/1.2 "Roboto", var(--ys-font-ui)}.profile-identity button{color:var(--ys-coral);font-size:14px}.profile-list{padding-top:28px}.profile-list h2:not(:first-child){margin-top:30px}.doctor-hero{padding-bottom:26px}.dashboard-hero h1{margin-top:30px}.doctor-hero>p{color:#ffffffc2;margin:12px 0 0;font-size:16px}.doctor-metrics{grid-template-columns:repeat(3,1fr);margin-top:28px;display:grid}.doctor-metrics .metric{color:#fff}.doctor-metrics .metric span{font-size:13px}.doctor-metrics .metric strong{font-size:35px}.section-heading{justify-content:space-between;align-items:center;display:flex}.section-heading .text-action{font-size:15px}.clinical-row{grid-template-columns:58px 68px minmax(0,1fr) 20px;gap:8px;min-height:66px;display:grid;font-size:14px!important}.clinical-row time{font:500 14px/1 Roboto,sans-serif}.clinical-row strong{font-size:15px}.clinical-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.clinical-row svg{width:19px;height:19px}.focus-list{padding-top:27px}.clinical-row.warning{grid-template-columns:72px 1fr auto 20px}.clinical-row.warning b,.clinical-row.warning em,.clinical-row.warning svg{color:var(--ys-amber)}.clinical-row.warning em{font-style:normal}.search-row{align-items:center;gap:13px;width:calc(100% - 48px);height:52px;display:flex;border-bottom:1px solid var(--ys-line)!important;color:#8b8b8b!important;margin:0 24px!important;font-size:16px!important}.search-row svg{width:24px;height:24px;color:var(--ys-navy)}.active-search{justify-content:space-between;align-items:center;width:calc(100% - 48px);min-height:42px;display:flex;color:var(--ys-coral)!important;border-bottom:1px solid var(--ys-line)!important;margin:6px 24px 0!important;font-size:13px!important}.active-search span{color:var(--ys-muted)}.patient-filters{margin-top:7px}.patient-list{padding-top:8px}.patient-row{grid-template-columns:48px minmax(0,1fr) 63px 18px;gap:12px;min-height:88px;display:grid}.initial-avatar{border:1px solid var(--ys-navy);border-radius:50%;place-items:center;width:45px;height:45px;font-size:18px;font-weight:600;display:grid}.patient-row>div{flex-direction:column;gap:7px;min-width:0;display:flex}.patient-row>div:nth-of-type(2){align-items:flex-end}.patient-row strong{font-size:18px}.patient-row div span{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.patient-row time{font:500 13px/1 "Roboto", var(--ys-font-ui)}.followup-hero{padding-bottom:20px}.followup-date-action{align-items:center;gap:7px;min-height:36px;display:inline-flex;color:#fff!important;font-size:14px!important;font-weight:600!important}.followup-date-action svg{width:17px;height:17px}.week-strip{grid-template-columns:repeat(7,1fr);margin:27px -3px 0;display:grid}.week-strip button{flex-direction:column;align-items:center;gap:8px;min-height:53px;font-size:13px;display:flex;position:relative;color:#ffffffc7!important;text-align:center!important}.week-strip b{font:500 18px/1 Roboto,sans-serif}.week-strip button[data-selected=true]{color:var(--ys-coral)}.week-strip button[data-selected=true]:after{background:var(--ys-coral);content:"";border-radius:50%;width:5px;height:5px}.followup-metrics{margin-top:24px}.followup-list{padding-top:25px}.followup-empty{border-bottom:1px solid var(--ys-line);min-height:126px;color:var(--ys-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;font-size:14px;display:flex}.followup-empty svg{width:27px;height:27px}.followup-row{grid-template-columns:58px minmax(0,1fr) auto 18px;gap:10px;min-height:75px;display:grid}.followup-row>div{flex-direction:column;gap:6px;min-width:0;display:flex}.followup-row strong{font-size:16px}.followup-row div span{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.followup-row>span{white-space:nowrap;font-size:13px}.overdue-list{padding-top:24px}.page-note{color:var(--ys-muted);margin:-10px 24px 16px;font-size:14px}.research-filters{padding-top:12px}.research-filters h2{margin-bottom:14px}.filter-row{grid-template-columns:72px minmax(0,1fr) 18px;gap:10px;min-height:58px;display:grid}.research-filters .filter-row{min-height:50px}.filter-row span{font-size:14px}.filter-row strong{text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.research-result{padding-top:18px}.research-result h3{margin:14px 0 10px;font-size:15px}.bar-row{grid-template-columns:52px 1fr 28px;align-items:center;gap:10px;min-height:31px;font:500 13px/1 Roboto,sans-serif;display:grid}.bar-row>div{background:#9bae9a3d;height:12px}.bar-row i{background:var(--ys-navy);height:100%;display:block}.research-meta{border-top:1px solid var(--ys-line);border-bottom:1px solid var(--ys-line);grid-template-columns:1fr 1fr;margin-top:10px;padding:10px 0;font-size:14px;display:grid}.research-meta span:last-child{color:#789376;text-align:right}.generate-action{float:right;margin-top:20px!important;font-size:18px!important}.export-note{clear:both;color:var(--ys-muted);padding-top:24px;font-size:12px}.doctor-profile-hero{padding-bottom:20px}.doctor-identity{margin-top:21px}.doctor-identity strong{align-items:center;gap:8px;display:flex}.doctor-identity strong small{color:#a9c48f;font-size:12px;font-weight:500}.profile-metrics{margin-top:23px}.detail-brand{grid-template-columns:30px 1fr;align-items:center;gap:8px;display:grid}.detail-brand .brand-header{min-width:0}.icon-button{place-items:center;width:30px;height:30px;color:#fff!important;display:grid!important}.icon-button svg{width:24px;height:24px}.authorized{color:#a9c48f;white-space:nowrap;font-size:13px}.patient-detail-title{align-items:baseline;gap:20px;margin-top:27px;display:flex}.patient-detail-title h1{margin:0}.patient-detail-title span{font-size:16px}.detail-meta{justify-content:space-between;align-items:center;margin-top:18px;display:flex}.detail-meta>span{color:#ffffffb8;letter-spacing:.05em;font:500 14px/1 Roboto,sans-serif}.detail-metrics{padding-top:25px}.detail-rows{padding-top:18px}.detail-rows h2,.detail-section-heading{margin-top:20px}.detail-section-heading h2{margin:0}.action-panel{padding-bottom:calc(var(--mobile-safe-area-height,0px) + 10px);color:var(--ys-navy);font-family:var(--ys-font-ui);gap:0;display:grid}.panel-field{border-bottom:1px solid var(--ys-line);gap:8px;padding:13px 0;display:grid}.panel-field>span{font-size:13px;font-weight:600}.panel-field input,.panel-field textarea{resize:none;width:100%;color:var(--ys-navy);font:500 17px/1.45 var(--ys-font-ui);background:0 0;border:0;outline:0;padding:0}.panel-field input::placeholder,.panel-field textarea::placeholder{color:#9aa6b1}.panel-field-row{grid-template-columns:82px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;min-height:62px;display:grid;border-bottom:1px solid var(--ys-line)!important}.panel-field-row>span{font-size:13px;font-weight:600}.panel-field-row>strong{text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500;overflow:hidden}.panel-field-row>svg{width:18px;height:18px;color:var(--ys-muted)}.structured-field-page{padding-bottom:calc(var(--mobile-safe-area-height,0px) + 10px);display:grid}.picker-back{align-items:center;gap:7px;width:fit-content;min-height:32px;display:inline-flex;color:var(--ys-coral)!important;font-size:14px!important;font-weight:600!important}.picker-back svg{width:18px;height:18px}.structured-field-page h3{margin:12px 0 18px;font-size:24px;font-weight:700}.picker-manual-input{border-bottom:1px solid var(--ys-line);gap:8px;padding-bottom:12px;display:grid}.picker-manual-input span{color:var(--ys-muted);font-size:12px;font-weight:600}.picker-manual-input input{width:100%;min-height:42px;color:var(--ys-navy);font:500 18px/1.35 var(--ys-font-ui);background:0 0;border:0;outline:0;padding:0}.picker-manual-input input::placeholder{color:#9aa6b1}.picker-suggestions{max-height:268px;display:grid;overflow:auto}.picker-suggestions button{grid-template-columns:minmax(0,1fr) 18px;align-items:center;min-height:55px;display:grid;border-bottom:1px solid var(--ys-line)!important;font-size:15px!important}.picker-suggestions button[data-selected=true]{color:var(--ys-coral)}.picker-suggestions svg{width:17px;height:17px}.picker-apply{min-height:49px;color:#fff!important;text-align:center!important;background:var(--ys-navy)!important;margin:14px 0 4px!important;font-size:15px!important;font-weight:600!important}.picker-apply:disabled{cursor:default;opacity:.38}.calendar-picker{padding:14px 0 0}.calendar-month-row{grid-template-columns:42px 1fr 42px;align-items:center;min-height:45px;display:grid}.calendar-month-row strong{text-align:center;font-size:16px;font-weight:600}.calendar-month-row button{place-items:center;width:42px;height:42px;display:grid}.calendar-month-row svg{width:19px;height:19px}.calendar-weekdays,.calendar-days{grid-template-columns:repeat(7,1fr);display:grid}.calendar-weekdays span{color:var(--ys-muted);text-align:center;padding:9px 0 5px;font-size:11px}.calendar-days>button,.calendar-days>span{width:39px;min-height:39px;font:500 14px/1 "Roboto", var(--ys-font-ui);justify-self:center;place-items:center;display:grid;text-align:center!important}.calendar-days>button[data-selected=true]{border-radius:50%;color:#fff!important;background:var(--ys-coral)!important}.prototype-root[data-elderly=true] .screen-page{padding-bottom:calc(132px + var(--mobile-safe-area-height,0px))}.prototype-root[data-elderly=true] .content-section h2,.prototype-root[data-elderly=true] .section-heading h2{font-size:25px}.prototype-root[data-elderly=true] .action-row,.prototype-root[data-elderly=true] .open-row,.prototype-root[data-elderly=true] .timeline-row,.prototype-root[data-elderly=true] .clinical-row,.prototype-root[data-elderly=true] .followup-row,.prototype-root[data-elderly=true] .patient-row,.prototype-root[data-elderly=true] .filter-row{min-height:76px;font-size:17px!important}.prototype-root[data-elderly=true] .action-row strong,.prototype-root[data-elderly=true] .patient-row strong,.prototype-root[data-elderly=true] .followup-row strong,.prototype-root[data-elderly=true] .clinical-row strong{font-size:18px}.prototype-root[data-elderly=true] .action-row div span,.prototype-root[data-elderly=true] .patient-row span,.prototype-root[data-elderly=true] .followup-row span{font-size:14px}.prototype-root[data-elderly=true] .nav-item{gap:6px;font-size:14px!important}.prototype-root[data-elderly=true] .nav-icon{width:30px;height:30px}.panel-options,.panel-rows{display:grid}.panel-option,.panel-row{border-bottom:1px solid var(--ys-line);grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:10px;min-height:58px;display:grid}.panel-option{width:100%;color:var(--ys-navy);font:500 15px/1.25 var(--ys-font-ui);text-align:left;background:0 0;border-top:0;border-left:0;border-right:0;padding:0}.panel-option strong,.panel-row strong{text-align:right;font-size:13px;font-weight:600}.panel-option svg{color:#0000;width:19px;height:19px}.panel-option[data-selected=true],.panel-option[data-selected=true] svg{color:var(--ys-coral)}.panel-row{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);font-size:14px}.panel-row-button{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 18px;width:100%;color:var(--ys-navy)!important;text-align:left!important}.panel-row-button>svg{width:17px;height:17px;color:var(--ys-muted)}.panel-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.panel-actions{grid-template-columns:.72fr 1.28fr;gap:12px;padding-top:22px;display:grid}.panel-actions.with-danger{grid-template-columns:.7fr .9fr 1.15fr}.panel-danger{color:#a4382a;background:#fff;border-color:var(--ys-coral)!important}.panel-primary.danger{background:#a4382a;border-color:#a4382a}.panel-actions.single{grid-template-columns:1fr}.panel-actions button{border:1px solid var(--ys-navy);min-height:48px;font:600 15px/1 var(--ys-font-ui);text-align:center;border-radius:0}.panel-secondary{color:var(--ys-navy);background:#fff}.panel-primary{color:#fff;background:var(--ys-navy)}.bottom-sheet{z-index:41;color:var(--ys-navy);background:var(--ys-ivory);border-radius:18px 18px 0 0}.sheet-overlay{z-index:40}.bottom-sheet .sheet-title{color:var(--ys-navy);font:700 23px/1.2 var(--ys-font-ui)}.bottom-sheet .sheet-description{color:var(--ys-muted)}.bottom-sheet .sheet-content{padding-left:24px;padding-right:24px}@media (prefers-reduced-motion:reduce){.toast,.nav-item:before,.report-fold-row>svg{transition:none;animation:none}}
.metric-switch{grid-template-columns:repeat(4,1fr);margin-top:12px}.metric-switch button{font-size:13px!important}.patient-row-manage{display:flex!important;gap:8px}.patient-row-main{display:grid;grid-template-columns:48px minmax(0,1fr) 63px 18px;align-items:center;gap:12px;min-width:0;flex:1;text-align:left}.patient-row-main>div{display:flex;flex-direction:column;gap:7px;min-width:0}.patient-row-main>div:nth-of-type(2){align-items:flex-end}.patient-row-main strong{font-size:18px}.patient-row-main div span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-row-main time{font:500 13px/1 "Roboto",var(--ys-font-ui)}.row-manage-button{min-width:52px;min-height:44px;color:var(--ys-coral);font-weight:650;text-align:center;border-left:1px solid var(--ys-line)!important}.hero-manage-button{margin-left:auto;color:#fff;border:1px solid #ffffff8a!important;padding:8px 12px;min-height:36px;font-size:13px;font-weight:650}.patient-detail-title{display:flex;align-items:center;gap:12px}.patient-detail-title>span{white-space:nowrap}@media(max-width:380px){.metric-switch button{font-size:11px!important}.panel-actions.with-danger{grid-template-columns:1fr}.patient-row-main{grid-template-columns:42px minmax(0,1fr) 56px 14px;gap:8px}}
.full-screen-sheet{height:100%!important;max-height:100%!important;top:0!important;border-radius:0!important}.full-screen-sheet .sheet-header{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid var(--ys-line);padding:18px 18px 12px;grid-template-columns:minmax(0,1fr) auto;align-items:start}.full-screen-sheet .sheet-content{flex:1;min-height:0;overflow:auto}.sheet-header-action{justify-self:end;color:var(--ys-coral);font-weight:750;font-size:14px}.full-screen-panel{padding-top:0}.inline-back{display:inline-flex;min-height:42px;align-items:center;color:var(--ys-ink);font-weight:750;margin-bottom:12px}.notice-button{position:relative;color:#fff;font-weight:700;display:inline-flex;align-items:center;gap:6px}.notice-button.light{color:var(--ys-ink)}.notice-dot,.missing-dot{width:8px;height:8px;border-radius:50%;background:var(--ys-coral);display:inline-block;box-shadow:0 0 0 3px #ee755b24}.recognition-button{width:100%;min-height:54px;border-radius:14px!important;background:#eaf3f7!important;color:#124d63;font-weight:800;text-align:center;margin-bottom:14px}.recognition-button small{font-weight:600;color:var(--ys-amber)}.collection-section{border:1px solid var(--ys-line);border-radius:14px;margin:10px 0;overflow:hidden}.collection-heading{width:100%;min-height:52px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;background:#f7fafc!important;font-weight:750}.collection-heading span{display:flex;align-items:center;gap:8px}.collection-heading small{color:var(--ys-muted)}.collection-fields{padding:4px 14px 12px}.add-field-button{width:100%;min-height:46px;margin-top:10px;border:1px dashed #1b6f8a!important;border-radius:12px!important;color:#1b6f8a;font-weight:700}.custom-fields{padding-top:8px}.panel-chart{border:1px solid var(--ys-line);border-radius:16px;padding:14px;margin-bottom:12px}.panel-chart p{font-size:12px;color:var(--ys-muted);margin:8px 0 0}.chart-ranges{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}.chart-ranges button{min-height:34px;border-radius:9px!important;background:#f2f5f7!important;font-size:12px}.chart-ranges button[data-selected=true]{background:#123b54!important;color:#fff}.record-manage-link{margin-left:auto;border:1px solid #ffffff8c!important;border-radius:10px!important;padding:8px 11px;color:#fff;font-weight:700}.clinical-summary{display:grid;grid-template-columns:1.6fr .8fr;gap:8px;margin-top:16px}.clinical-summary>div{background:#ffffff16;border:1px solid #ffffff26;padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:5px}.clinical-summary span{font-size:11px;color:#ffffffb8}.clinical-summary strong{font-size:13px}.metric-selector .metric-button{min-height:82px;border:1px solid transparent!important}.metric-selector .metric-button[data-selected=true]{border-color:#1b6f8a!important;background:#edf6f8!important}.trend-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;font-weight:750;margin-bottom:10px}.trend-toggle small{color:var(--ys-muted)}.chart-open-button{width:100%;text-align:initial}.report-date-list.inline{display:flex;gap:8px;overflow-x:auto;padding:9px 0 14px}.report-date-list.inline button{flex:none;border:1px solid var(--ys-line)!important;border-radius:999px!important;padding:8px 12px;font-size:12px}.report-date-list.inline button[data-selected=true]{background:#123b54!important;color:#fff}.followup-row-split{display:flex!important;gap:6px}.followup-patient{display:grid;grid-template-columns:52px 1fr;align-items:center;text-align:left;flex:1}.patient-row-main>time{font-size:12px;color:var(--ys-muted)}.panel-actions.single{grid-template-columns:1fr}.panel-actions.single .panel-primary{grid-column:1}.missing-value,.muted{color:var(--ys-muted)!important}@media(max-width:380px){.clinical-summary{grid-template-columns:1fr}.collection-heading{padding:0 10px}}

/* v3.2 — fold new surfaces back into the original restrained medical system */
.full-screen-sheet{top:54px!important;height:calc(100% - 54px)!important;max-height:calc(100% - 54px)!important;color:var(--ys-navy);background:var(--ys-ivory)!important}.full-screen-sheet .sheet-content{padding:0 24px calc(var(--mobile-safe-area-height,0px) + 18px)}.full-screen-panel{font-family:var(--ys-font-ui)}.full-screen-inline-header{position:sticky;top:0;z-index:6;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;min-height:62px;margin:0 -24px 0;padding:0 24px;background:var(--ys-ivory);border-bottom:1px solid var(--ys-line);display:grid}.full-screen-inline-header h2{margin:0;color:var(--ys-navy);font:700 20px/1.2 var(--ys-font-ui);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inline-back,.full-screen-inline-action{min-height:44px!important;margin:0!important;padding:0!important;color:var(--ys-coral)!important;background:transparent!important;border:0!important;border-radius:0!important;font:600 14px/1 var(--ys-font-ui)!important}.inline-back{text-align:left!important}.full-screen-inline-action{text-align:right!important}.full-screen-description{margin:14px 0 20px;color:var(--ys-muted);font:400 13px/1.65 var(--ys-font-ui)}
.full-screen-panel>.panel-field-row,.collection-fields .panel-field-row{min-height:58px;color:var(--ys-navy)!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--ys-line)!important;border-radius:0!important;font:400 14px/1.4 var(--ys-font-ui)!important}.panel-field-row>span{font-size:13px;font-weight:600;color:var(--ys-navy)}.panel-field-row>strong{font-size:14px;font-weight:500;color:var(--ys-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.full-screen-panel .panel-field{padding:12px 0;color:var(--ys-navy)}.full-screen-panel .panel-field>span{font-size:13px;font-weight:600}.full-screen-panel .panel-field input,.full-screen-panel .panel-field textarea{color:var(--ys-navy);font:500 15px/1.45 var(--ys-font-ui)}
.recognition-button{min-height:50px;margin:18px 0 20px;color:var(--ys-navy)!important;background:transparent!important;border:1px solid var(--ys-navy)!important;border-radius:0!important;font:600 14px/1 var(--ys-font-ui)!important}.recognition-button small{font-size:12px;font-weight:500;color:var(--ys-amber)}.collection-section{margin:0;border:0;border-bottom:1px solid var(--ys-line);border-radius:0;overflow:visible}.collection-section:first-of-type{border-top:1px solid var(--ys-line)}.collection-heading{min-height:56px;padding:0;color:var(--ys-navy)!important;background:transparent!important;border:0!important;border-radius:0!important;font:700 15px/1.35 var(--ys-font-ui)!important}.collection-heading small{font-size:12px;font-weight:500;color:var(--ys-muted)}.collection-fields{padding:0 0 12px}.missing-dot{width:6px;height:6px;box-shadow:none}.add-field-button{min-height:48px;margin:20px 0 4px;color:var(--ys-navy)!important;background:transparent!important;border:1px solid var(--ys-navy)!important;border-radius:0!important;font:600 14px/1 var(--ys-font-ui)!important}.full-screen-panel>.panel-actions{position:sticky;bottom:0;z-index:5;margin:18px -24px -18px;padding:14px 24px calc(var(--mobile-safe-area-height,0px) + 14px);background:var(--ys-ivory);border-top:1px solid var(--ys-line)}
.record-manage-link{margin-left:auto;padding:5px 0!important;min-height:32px!important;color:#fff!important;background:transparent!important;border:0!important;border-bottom:1px solid #ffffff8c!important;border-radius:0!important;font:600 12px/1 var(--ys-font-ui)!important}.clinical-summary{gap:0;margin-top:18px;border-top:1px solid #ffffff45;border-bottom:1px solid #ffffff45}.clinical-summary>div{min-width:0;padding:11px 10px 11px 0;background:transparent;border:0;border-radius:0}.clinical-summary>div+div{padding-left:12px;border-left:1px solid #ffffff45}.clinical-summary strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-metrics .metric strong{font:400 25px/1 Roboto,var(--ys-font-ui);white-space:nowrap}.detail-metrics .metric span{font-size:11px}.metric-selector .metric-button{min-height:76px;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important}.metric-selector .metric-button[data-selected=true]{border-color:var(--ys-coral)!important;background:transparent!important}.panel-chart{border:0;border-top:1px solid var(--ys-line);border-bottom:1px solid var(--ys-line);border-radius:0;padding:18px 0}.chart-ranges button{border-radius:0!important;background:transparent!important;border:1px solid var(--ys-line)!important}.chart-ranges button[data-selected=true]{background:var(--ys-navy)!important}
@media(max-width:380px){.full-screen-inline-header{grid-template-columns:50px minmax(0,1fr) 50px}.full-screen-inline-header h2{font-size:18px}.detail-metrics .metric strong{font-size:22px}.patient-row-main{grid-template-columns:40px minmax(0,1fr) 52px 14px}.row-manage-button{min-width:46px}}

/* v3.3 — mobile navigation, content hierarchy and compact clinical records */
.full-screen-sheet .sheet-content{overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}.full-screen-sheet .sheet-content::-webkit-scrollbar,.picker-suggestions::-webkit-scrollbar{display:none}.full-screen-panel{min-width:0;overflow-x:hidden}.full-screen-inline-header{grid-template-columns:60px minmax(0,1fr) 60px}.full-screen-inline-header h2{font-family:"PingFang SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",var(--ys-font-ui);font-size:19px;font-weight:650;letter-spacing:.01em}.full-screen-inline-action,.inline-back{font-weight:600!important}
.patient-row-manage{gap:12px}.patient-row-main{padding-right:2px}.row-manage-button{position:relative;z-index:2;flex:0 0 68px;min-width:68px;min-height:46px;margin-left:4px;padding-left:14px!important;color:var(--ys-coral)!important;font-size:14px!important;font-weight:600!important;text-align:center!important;border-left:1px solid var(--ys-line)!important;pointer-events:auto}.followup-row-split{gap:12px!important}.followup-patient{min-width:0;padding-right:4px!important}.followup-row-split .row-manage-button{flex-basis:68px}
.notification-panel .panel-row,.notification-detail .panel-row{min-height:66px}.notification-panel .panel-row-button{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 18px}.notification-panel .panel-row strong{font-weight:500}.notification-detail .panel-row strong{white-space:normal;line-height:1.45}.notification-panel .panel-row-button>svg{color:var(--ys-coral)}
.case-detail-panel .panel-rows,.clinical-record-panel .panel-rows,.clinical-record-section .panel-rows,.all-metrics-panel .panel-rows,.report-detail-panel .panel-rows{margin-top:4px}.case-detail-panel .panel-row,.clinical-record-panel .panel-row,.clinical-record-section .panel-row,.all-metrics-panel .panel-row,.report-detail-panel .panel-row{min-height:62px}.clinical-record-panel .panel-row-button{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 18px}.clinical-record-section .panel-row strong,.case-detail-panel .panel-row strong{white-space:normal;line-height:1.42}.all-metrics-panel .panel-row strong,.metric-trend-panel .panel-row strong{font:500 14px/1.2 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}.all-metrics-panel .panel-row-button{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 18px}.all-metrics-panel .panel-row-button>svg{color:var(--ys-coral)}
.collection-panel .panel-rows{margin-top:14px}.collection-panel .panel-row{min-height:56px}.collection-panel.patient .panel-row strong{color:var(--ys-muted);font-weight:500}.collection-section,.collection-fields,.panel-field{min-width:0}.collection-fields input,.collection-fields textarea{max-width:100%}.collection-heading{font-family:"PingFang SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",var(--ys-font-ui)!important}.recognition-button{letter-spacing:.02em}.missing-dot{flex:none}
.panel-chart{margin-top:8px}.panel-chart .chart-ranges{margin-top:14px}.panel-actions.with-danger.single{grid-template-columns:.82fr 1.18fr}.panel-actions.with-danger.single .panel-danger,.panel-actions.with-danger.single .panel-primary{grid-column:auto}.panel-row>span{font-weight:500}.panel-row>strong{font-weight:550}.sheet-content button,.sheet-content input,.sheet-content textarea{touch-action:manipulation}
@media(max-width:380px){.row-manage-button,.followup-row-split .row-manage-button{flex-basis:62px;min-width:62px;padding-left:11px!important}.full-screen-inline-header{grid-template-columns:54px minmax(0,1fr) 54px}.notification-panel .panel-row-button,.clinical-record-panel .panel-row-button{grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 16px}}

/* v3.4 — one mobile scroll surface and native-looking sheet controls */
:where(.bottom-sheet) button{appearance:none;-webkit-appearance:none;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;box-shadow:none}
.bottom-sheet,.bottom-sheet .sheet-content,.action-panel{scrollbar-width:none;-ms-overflow-style:none}.bottom-sheet::-webkit-scrollbar,.bottom-sheet .sheet-content::-webkit-scrollbar,.action-panel::-webkit-scrollbar{display:none;width:0;height:0}
.full-screen-panel{min-width:0;max-width:100%;overflow:visible!important}.full-screen-panel>*{max-width:100%}
.full-screen-panel>.panel-field-row,.collection-fields .panel-field-row{grid-template-columns:112px minmax(0,1fr) 18px;column-gap:10px;padding-left:2px;padding-right:2px}.full-screen-panel>.panel-field-row>span,.collection-fields .panel-field-row>span{text-align:left}.full-screen-panel>.panel-field-row>strong,.collection-fields .panel-field-row>strong{min-width:0;text-align:right}
.panel-row-button,.panel-option,.picker-suggestions button{text-align:left!important}.panel-actions button,.chart-ranges button,.recognition-button,.add-field-button,.picker-apply{text-align:center!important}
.bottom-sheet:has(.structured-field-page) .sheet-header{display:none!important}.bottom-sheet:has(.structured-field-page) .sheet-content{padding-top:0!important}
.structured-field-page{display:grid!important;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:0;padding:0 24px calc(var(--mobile-safe-area-height,0px) + 18px)!important;color:var(--ys-navy);font-family:var(--ys-font-ui)}
.structured-field-page>.picker-back{grid-column:1;grid-row:1;min-height:62px;color:var(--ys-coral)!important;background:transparent!important;border:0!important;border-radius:0!important;font-size:14px;font-weight:600;text-align:left!important}
.structured-field-page>h3{grid-column:2;grid-row:1;margin:0!important;color:var(--ys-navy);font-family:"PingFang SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",var(--ys-font-ui);font-size:19px;font-weight:650;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.structured-field-page>.picker-manual-input,.structured-field-page>.picker-suggestions,.structured-field-page>.calendar-picker,.structured-field-page>.picker-apply{grid-column:1/-1}
.structured-field-page>.picker-manual-input,.structured-field-page>.calendar-picker{margin-top:18px}.structured-field-page .picker-suggestions{margin-top:14px;border-top:1px solid var(--ys-line)}
.structured-field-page .picker-suggestions button{min-height:54px;padding:0 2px!important;border:0!important;border-bottom:1px solid var(--ys-line)!important;border-radius:0!important;background:transparent!important;color:var(--ys-navy)!important;font-size:14px;font-weight:500}
.structured-field-page .picker-suggestions button:last-child{border-bottom:0!important}.structured-field-page .picker-apply{min-height:48px;margin-top:18px;border:0!important;border-radius:0!important;background:var(--ys-navy)!important;color:#fff!important;font-size:14px;font-weight:650}
.structured-field-page .calendar-month-row button{min-width:44px;min-height:44px;border:0!important;background:transparent!important;color:var(--ys-coral)!important;text-align:center!important}.structured-field-page .calendar-days>button{border:0!important;background:transparent!important}.structured-field-page .calendar-days>button[data-selected=true]{background:var(--ys-navy)!important;color:#fff!important;border-radius:50%!important}
@media(max-width:380px){.full-screen-panel>.panel-field-row,.collection-fields .panel-field-row{grid-template-columns:100px minmax(0,1fr) 16px}.structured-field-page{grid-template-columns:58px minmax(0,1fr) 58px;padding-left:20px!important;padding-right:20px!important}}

/* v3.5 — invisible scrollbars with real touch and drag interaction */
.device-screen *{scrollbar-width:none!important;-ms-overflow-style:none}.device-screen *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.mobile-scrollbar{display:none!important}
.bottom-sheet{touch-action:pan-y!important}.bottom-sheet .sheet-content{min-height:0;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:96px}.bottom-sheet .sheet-content[data-dragging=true]{cursor:grabbing}.bottom-sheet .sheet-content[data-dragging=false]{cursor:grab}
.report-date-list.inline{overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:8px}.report-date-list.inline button{scroll-snap-align:start}.report-date-list.inline[data-dragging=true]{cursor:grabbing}.report-date-list.inline[data-dragging=false]{cursor:grab}
.collection-panel{padding-bottom:10px}.collection-panel .recognition-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;margin:16px 0 14px;color:var(--ys-navy)!important;background:#e9f1f3!important;border:1px solid #cbdde2!important;border-radius:13px!important;font:650 14px/1 var(--ys-font-ui)!important}.collection-panel .recognition-button svg{width:17px;height:17px;color:#1b6f8a}.collection-panel .recognition-button[data-recognized=true]{background:#edf4ee!important;border-color:#c9ddcc!important;color:#2f5b39!important}.collection-panel .recognition-button[data-recognized=true] svg{color:#4f7f5a}
.collection-panel .collection-section{margin:10px 0;border:1px solid var(--ys-line)!important;border-radius:14px!important;overflow:hidden;background:#fcfcfa}.collection-panel .collection-section:first-of-type{border-top:1px solid var(--ys-line)!important}.collection-panel .collection-heading{min-height:54px;padding:0 14px!important;background:#f7f8f4!important;border:0!important;border-radius:0!important}.collection-panel .collection-heading>span{min-width:0}.collection-panel .collection-heading small{display:flex;align-items:center;gap:5px;flex:none}.collection-panel .collection-heading small svg{width:14px;height:14px;transition:transform .18s ease}.collection-panel .collection-heading[data-open=true] small svg{transform:rotate(90deg)}.collection-panel .collection-fields{padding:0 14px 10px}
.collection-panel .collection-fields .panel-field-row{grid-template-columns:108px minmax(0,1fr) 18px;min-height:58px;padding:0!important}.collection-panel .collection-fields .panel-field{display:grid!important;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;padding:0!important;border-bottom:1px solid var(--ys-line)}.collection-panel .collection-fields .panel-field>span{margin:0;font-size:13px;font-weight:600;text-align:left}.collection-panel .collection-fields .panel-field input{width:100%;min-width:0;height:44px;padding:0!important;border:0!important;background:transparent!important;color:var(--ys-navy);font:500 14px/1.4 var(--ys-font-ui);text-align:right;box-shadow:none!important}.collection-panel .collection-fields .panel-field input::placeholder,.collection-panel .collection-fields .panel-field textarea::placeholder{color:#b36a59;opacity:.78}.collection-panel .collection-fields .panel-field:has(textarea){grid-template-columns:1fr;align-items:start;gap:4px;padding:12px 0!important}.collection-panel .collection-fields .panel-field textarea{width:100%;min-width:0;padding:9px 10px!important;border:1px solid var(--ys-line)!important;border-radius:9px!important;background:#fff!important;color:var(--ys-navy);font:500 14px/1.5 var(--ys-font-ui);text-align:left;resize:none;box-shadow:none!important}
.full-screen-panel>.panel-actions{box-sizing:border-box;margin-left:-24px!important;margin-right:-24px!important;padding-left:24px!important;padding-right:24px!important}.full-screen-panel>.panel-actions.single:not(.with-danger){display:block!important}.full-screen-panel>.panel-actions.single:not(.with-danger) .panel-primary{display:block;width:100%}.full-screen-panel>.panel-actions .panel-primary{min-height:48px;border:0!important;border-radius:11px!important;color:#fff!important}.full-screen-panel>.panel-actions .panel-primary:not(.danger){background:var(--ys-navy)!important}.full-screen-panel>.panel-actions .panel-primary.danger{background:var(--ys-coral)!important}.full-screen-panel>.panel-actions .panel-primary:focus-visible{outline:3px solid #ee755b55!important;outline-offset:2px}
@media(max-width:380px){.collection-panel .collection-fields .panel-field-row{grid-template-columns:98px minmax(0,1fr) 16px}.collection-panel .collection-fields .panel-field{grid-template-columns:98px minmax(0,1fr)}.collection-panel .collection-heading{padding:0 12px!important}}

/* v3.6 — true centering, cache-safe layout, and consistent mobile form rhythm */
.full-screen-inline-header{position:sticky!important;grid-template-columns:60px minmax(0,1fr) 60px!important;isolation:isolate}
.full-screen-inline-header h2{position:absolute;left:50%;width:calc(100% - 132px);transform:translateX(-50%);text-align:center!important;pointer-events:none}
.full-screen-inline-header .inline-back{grid-column:1;justify-self:start;position:relative;z-index:1}
.full-screen-inline-header .full-screen-inline-action,.full-screen-inline-header>span:last-child{grid-column:3;justify-self:end;position:relative;z-index:1}
.full-screen-panel>.panel-actions{width:calc(100% + 48px)!important;max-width:none!important;margin-left:-24px!important;margin-right:-24px!important}
.full-screen-panel>.panel-actions.single:not(.with-danger) .panel-primary{width:100%!important;max-width:none!important}
.full-screen-panel:not(.collection-panel)>.panel-field:not(:has(textarea)){display:grid!important;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;padding:0 2px!important;border-bottom:1px solid var(--ys-line)}
.full-screen-panel:not(.collection-panel)>.panel-field:not(:has(textarea))>span{margin:0;font-size:13px;font-weight:600;text-align:left}
.full-screen-panel:not(.collection-panel)>.panel-field:not(:has(textarea)) input{width:100%;min-width:0;height:44px;padding:0!important;border:0!important;background:transparent!important;color:var(--ys-navy);font:500 14px/1.4 var(--ys-font-ui);text-align:right;box-shadow:none!important}
.full-screen-panel:not(.collection-panel)>.panel-field:has(textarea){display:block!important;padding:12px 2px!important;border-bottom:1px solid var(--ys-line)}
.full-screen-panel:not(.collection-panel)>.panel-field:has(textarea)>span{display:block;margin-bottom:7px}
.full-screen-panel:not(.collection-panel)>.panel-field:has(textarea) textarea{width:100%;padding:9px 10px!important;border:1px solid var(--ys-line)!important;border-radius:9px!important;background:#fff!important;resize:none}
.metric-selector .metric-button{border-color:transparent!important;border-bottom:0!important}
.metric-selector .metric-button[data-selected=true]{border-color:transparent!important;border-bottom:0!important}
.metric-selector .metric-button:after{bottom:-16px!important;height:2px!important;left:20%!important;right:20%!important}
.report-date-list.inline{scrollbar-width:none!important;-ms-overflow-style:none!important}
.report-date-list.inline::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(max-width:380px){.full-screen-inline-header{grid-template-columns:54px minmax(0,1fr) 54px!important}.full-screen-inline-header h2{width:calc(100% - 120px)}.full-screen-panel:not(.collection-panel)>.panel-field:not(:has(textarea)){grid-template-columns:100px minmax(0,1fr)}}

/* v3.7 — working report filters, animated trends, clearer medication language */
.report-segments{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.report-segments button{position:relative;min-height:48px!important;padding:0!important;text-align:center!important;touch-action:manipulation}.report-segments button:after{content:"";position:absolute;left:27%;right:27%;bottom:-1px;height:2px;background:var(--ys-coral);transform:scaleX(0);transition:transform .18s ease}.report-segments button[data-selected=true]:after{transform:scaleX(1)}
.report-date-list.inline button{min-height:44px;touch-action:manipulation}.report-metrics{margin-top:8px}.report-extra-list{padding-top:22px}.report-extra-list h2{margin-bottom:8px}.report-empty{min-height:72px;display:flex;align-items:center;color:var(--ys-muted);font-size:14px;border-top:1px solid var(--ys-line);border-bottom:1px solid var(--ys-line)}
.trend-chart svg polyline{stroke-dasharray:1;stroke-dashoffset:1;animation:yi-trend-draw .72s cubic-bezier(.22,.74,.22,1) forwards}.trend-chart svg circle{opacity:0;transform:scale(.2);transform-box:fill-box;transform-origin:center;animation:yi-trend-point .28s ease-out forwards}.trend-chart .chart-labels span{animation:yi-trend-label .35s ease-out .35s both}@keyframes yi-trend-draw{to{stroke-dashoffset:0}}@keyframes yi-trend-point{to{opacity:1;transform:scale(1)}}@keyframes yi-trend-label{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.chart-ranges{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important}.chart-ranges button{min-height:44px!important;text-align:center!important;touch-action:manipulation}.chart-ranges button[data-selected=true]{color:#fff!important;background:var(--ys-navy)!important;border-color:var(--ys-navy)!important}.metric-trend-panel .panel-chart{margin-top:4px}
.medication-plan-panel .panel-row{grid-template-columns:minmax(0,.78fr) minmax(0,1.55fr)}.medication-plan-panel .panel-row strong{white-space:normal;line-height:1.45}.medication-plan-panel .panel-row strong.plain-language{color:var(--ys-navy);font-size:15px;font-weight:650}.medication-plain{color:var(--ys-navy)!important;font-weight:650!important}
.prototype-root[data-elderly=true] .brand-lockup strong{font-size:25px!important}.prototype-root[data-elderly=true] .header-action,.prototype-root[data-elderly=true] .notice-button,.prototype-root[data-elderly=true] .text-action,.prototype-root[data-elderly=true] .record-manage-link,.prototype-root[data-elderly=true] .profile-identity button{min-height:44px!important;font-size:17px!important;line-height:1.25!important}.prototype-root[data-elderly=true] .profile-identity span{font-size:17px!important}.prototype-root[data-elderly=true] .page-header h1{font-size:40px!important}.prototype-root[data-elderly=true] .nav-item{font-size:16px!important}.prototype-root[data-elderly=true] .nav-icon{width:31px!important;height:31px!important}.prototype-root[data-elderly=true] .metric span,.prototype-root[data-elderly=true] .action-row div span,.prototype-root[data-elderly=true] .patient-row span,.prototype-root[data-elderly=true] .followup-row span{font-size:16px!important}.prototype-root[data-elderly=true] .metric strong{font-size:28px!important}.prototype-root[data-elderly=true] .report-date-list button,.prototype-root[data-elderly=true] .segment-line button{font-size:17px!important;min-height:48px!important}.prototype-root[data-elderly=true] .sheet-title,.prototype-root[data-elderly=true] .full-screen-inline-header h2{font-size:23px!important}.prototype-root[data-elderly=true] .panel-row,.prototype-root[data-elderly=true] .panel-row strong,.prototype-root[data-elderly=true] .panel-option,.prototype-root[data-elderly=true] .panel-field-row,.prototype-root[data-elderly=true] .panel-field-row strong{font-size:17px!important}.prototype-root[data-elderly=true] .panel-field>span,.prototype-root[data-elderly=true] .panel-field-row>span{font-size:16px!important}.prototype-root[data-elderly=true] .panel-field input,.prototype-root[data-elderly=true] .panel-field textarea{font-size:18px!important}.prototype-root[data-elderly=true] .panel-actions button,.prototype-root[data-elderly=true] .inline-back,.prototype-root[data-elderly=true] .full-screen-inline-action{min-height:48px!important;font-size:17px!important}
@media(prefers-reduced-motion:reduce){.trend-chart svg polyline,.trend-chart svg circle,.trend-chart .chart-labels span{animation:none!important;stroke-dashoffset:0!important;opacity:1!important;transform:none!important}}

/* v3.8 — visible case workflow states, missing-test states, live research filters */
.case-status-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;max-width:112px;min-height:26px;padding:3px 8px;border:1px solid currentColor;border-radius:999px;font-size:11px!important;font-weight:650;line-height:1.15;text-align:center;white-space:normal}.case-status-badge.coral{color:#a84c3c;background:#fff4f0}.case-status-badge.amber{color:#8a5d00;background:#fff8e7}.case-status-badge.sage{color:#3f6a48;background:#eff6f0}.case-status-badge.navy{color:var(--ys-navy);background:#edf2f5}
.timeline-row.case-status-row{gap:10px}.timeline-row.case-status-row .case-status-badge{margin-left:auto}.timeline-row.case-status-row>svg{margin-left:0}.open-row.case-status-row{display:grid;grid-template-columns:54px minmax(0,1fr) 92px 16px;gap:8px;text-align:left!important}.open-row.case-status-row>span:nth-last-of-type(2){margin-left:0}.case-row-copy{display:flex;min-width:0;flex-direction:column;gap:5px}.case-row-copy>span,.case-row-copy>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-row-copy>small{color:var(--ys-muted);font-size:12px}
.patient-upload-indicator{display:block;width:max-content;max-width:100%;margin-top:1px;padding:2px 6px;color:#8a5d00;background:#fff8e7;border:1px solid #dcc78f;border-radius:999px;font-size:11px!important;font-weight:650;line-height:1.25;white-space:nowrap}.patient-row-main>div:has(.patient-upload-indicator){gap:4px}
.case-detail-panel .panel-row strong.coral{color:#a84c3c}.case-detail-panel .panel-row strong.amber{color:#8a5d00}.case-detail-panel .panel-row strong.sage{color:#3f6a48}.case-detail-panel .panel-row strong.navy{color:var(--ys-navy)}
.report-metrics .metric-button[data-missing=true]{background:#faf8f2!important}.report-metrics .metric-button[data-missing=true] strong{color:var(--ys-muted)!important}.metric-missing-label{display:block;margin-top:4px;color:#9a5b4f;font-size:10px;font-style:normal;font-weight:650;line-height:1.1}.report-metrics .metric-button[data-missing=true]:after{background:#9a5b4f!important}
.research-result .metric-heading strong{font-variant-numeric:tabular-nums}.research-result .distribution-row{transition:opacity .16s ease}.research-filters .filter-row strong{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:380px){.open-row.case-status-row{grid-template-columns:50px minmax(0,1fr) 82px 14px}.case-status-badge{max-width:96px;padding-left:6px;padding-right:6px;font-size:10px!important}.timeline-row.case-status-row{gap:8px}.timeline-row.case-status-row time{flex-basis:48px}.patient-upload-indicator{font-size:10px!important}}

/* v3.9 — fixed preview overflow, clinical consistency, validation states */
.device-screen{overflow:clip!important;overscroll-behavior:none!important;scroll-behavior:auto!important}
.keyboard-dock[data-visible=false]{bottom:-340px!important;transform:none!important;visibility:hidden!important;pointer-events:none!important}
.keyboard-dock[data-visible=true]{bottom:-1px!important;visibility:visible!important}
.patient-empty{min-height:132px;display:grid;place-items:center;border-bottom:1px solid var(--ys-line);color:var(--ys-muted);font-size:14px}
.row-manage-button.completed{color:var(--ys-sage)!important}
.research-filters .filter-row{grid-template-columns:88px minmax(0,1fr) 18px}
.chart-labels span:empty{visibility:hidden}
.chart-labels span{font-variant-numeric:tabular-nums}
.prototype-root[data-elderly=true] .chart-labels{font-size:11px;line-height:1.15}
.prototype-root[data-elderly=true] .research-filters .filter-row{grid-template-columns:102px minmax(0,1fr) 18px}
@supports not (overflow:clip){.device-screen{overflow:hidden!important}}
/* v4.0 — reference-faithful records, case homepage, and patient file */
:root{
  --ys-ivory:#fcfcfa;
  --ys-paper:#faf8f2;
  --ys-navy:#123456;
  --ys-coral:#c74331;
  --ys-sage:#789376;
  --ys-muted:#7d8998;
  --ys-line:#d8d9de;
}

.screen-page,.app-screen,.case-homepage,.patient-file-page{background:var(--ys-ivory)}

/* Patient records home */
.records-header{padding:54px 24px 0;background:var(--ys-ivory)}
.records-header .brand-header{min-height:44px}
.add-case-action{display:inline-flex!important;align-items:center;gap:9px;color:var(--ys-coral)!important;font-size:15px!important;font-weight:650!important}
.add-case-action span{display:grid;place-items:center;width:31px;height:31px;border:1.5px solid currentColor;border-radius:50%;font-size:25px;font-weight:400;line-height:1}
.records-title-row{display:flex;justify-content:space-between;align-items:center;margin-top:38px;padding-bottom:18px}
.records-title-row h1{font-size:40px;line-height:1;font-weight:700;letter-spacing:.01em}
.records-title-row>div{display:flex;align-items:center;gap:26px}
.records-search-toggle{display:grid!important;place-items:center;width:44px;height:44px}
.records-search-toggle svg{width:30px;height:30px}
.records-manage-toggle{min-height:44px;font-size:18px!important;font-weight:600!important}
.records-search{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:50px;border-top:1px solid var(--ys-line);padding:0 2px}
.records-search svg{width:21px;height:21px;color:var(--ys-muted)}
.records-search input{min-width:0;height:46px;border:0;outline:0;background:transparent;color:var(--ys-navy);font:500 15px/1.2 var(--ys-font-ui)}
.records-search input::placeholder{color:#98a2ab}
.records-search button{min-height:44px;color:var(--ys-coral)!important;font-size:13px!important}
.records-filters{margin-top:0}
.records-filters button{height:58px;font-size:18px!important}
.case-record-list{padding:0 20px 24px;background:var(--ys-ivory)}
.swipe-case-row{position:relative;overflow:hidden;border-bottom:1px solid var(--ys-line)}
.case-record-main{position:relative;z-index:2;display:grid!important;grid-template-columns:64px minmax(0,1fr) 100px 18px;align-items:center;gap:12px;width:100%;min-height:112px;padding:14px 2px!important;background:var(--ys-ivory)!important;border-bottom:1px solid var(--ys-line)!important;transition:transform .2s cubic-bezier(.22,.74,.22,1);text-align:left!important;touch-action:pan-y}
.swipe-case-row .case-record-main{border-bottom:0!important}
.swipe-case-row[data-open=true] .case-record-main{transform:translateX(-82px)}
.case-swipe-delete{position:absolute;z-index:1;top:0;right:0;bottom:0;display:grid!important;place-items:center;width:82px;color:#fff!important;background:#c83b2d!important;font-size:16px!important;font-weight:650!important;text-align:center!important}
.case-anchor{display:grid;place-items:center;align-content:center;gap:9px;width:62px;min-height:70px;border:1.4px solid var(--ys-navy);border-radius:4px;background:#fcfcfa}
.case-anchor strong{font-size:17px;font-weight:600}
.case-anchor time{font:500 16px/1 Roboto,var(--ys-font-ui);white-space:nowrap}
.case-record-copy{display:flex;min-width:0;flex-direction:column;gap:10px}
.case-record-copy strong{font-size:18px;font-weight:700}
.case-record-copy small{display:block;color:var(--ys-muted);font-size:14px;line-height:1.35;white-space:normal}
.case-record-main>.case-status-badge{justify-self:end;max-width:100px;min-height:34px;padding:5px 10px;font-size:13px!important;white-space:nowrap}
.case-record-main>svg{width:18px;height:18px;color:var(--ys-navy)}
.case-record-main.manage-mode{grid-template-columns:64px minmax(0,1fr) 100px 18px}
.case-check{display:grid;place-items:center;justify-self:center;width:28px;height:28px;border:1.5px solid var(--ys-navy);border-radius:50%;color:#fff;background:transparent;font-size:16px;font-weight:700}
.case-check.selected{border-color:var(--ys-coral);background:var(--ys-coral)}
.case-bulk-bar{position:sticky;z-index:7;bottom:108px;display:flex;justify-content:space-between;align-items:center;min-height:62px;margin:16px 0 0;padding:0 16px;color:#fff;background:var(--ys-navy);box-shadow:0 -7px 22px #12345618}
.case-bulk-bar span{font-size:14px}
.case-bulk-bar button{min-height:44px;padding:0 12px!important;color:#fff!important;border:1px solid #ffffff80!important;font-size:14px!important;font-weight:650!important}
.case-bulk-bar button:disabled{opacity:.4}
.case-record-empty{display:grid;place-items:center;min-height:180px;color:var(--ys-muted);font-size:14px;border-bottom:1px solid var(--ys-line)}

/* Full case homepage shared by doctor and patient */
.bottom-sheet:has(.case-homepage-shell) .sheet-header{display:none!important}
.bottom-sheet:has(.case-homepage-shell) .sheet-content{padding:0!important;background:var(--ys-ivory)!important}
.case-homepage-shell{padding:0!important;display:block!important}
.case-homepage{min-height:100%;padding-bottom:calc(24px + var(--mobile-safe-area-height,0px));color:var(--ys-navy)}
.case-homepage-header{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:12px;padding:54px 22px 22px;border-bottom:1px solid var(--ys-line)}
.case-home-back{display:grid!important;place-items:center;width:34px;height:40px}
.case-home-back svg{width:26px;height:26px}
.case-patient-identity{display:flex;min-width:0;flex-direction:column;gap:10px}
.case-patient-identity>div{display:flex;align-items:baseline;gap:14px}
.case-patient-identity h1{font-size:29px;line-height:1;font-weight:700}
.case-patient-identity span{font-size:15px;white-space:nowrap}
.manage-case-link{width:max-content;min-height:30px;color:var(--ys-coral)!important;font-size:14px!important;font-weight:650!important}
.case-owner{display:flex;min-width:104px;flex-direction:column;align-items:flex-end;gap:7px;text-align:right}
.case-owner strong{font-size:14px;font-weight:600;white-space:nowrap}
.case-owner span{max-width:132px;font-size:12px;line-height:1.25}
.case-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);margin:0 22px;border-bottom:1px solid var(--ys-line)}
.case-summary>div{display:flex;min-height:104px;flex-direction:column;justify-content:center;gap:11px;padding:0 16px}
.case-summary>div:first-child{padding-left:2px;border-right:1px solid var(--ys-line)}
.case-summary span{color:var(--ys-muted);font-size:13px}
.case-summary strong{font-size:16px;line-height:1.35;font-weight:650}
.case-home-actions,.patient-file-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 22px 24px;border-bottom:1px solid var(--ys-line)}
.case-home-actions button,.patient-file-actions button{min-height:48px;border:1.4px solid var(--ys-navy)!important;color:var(--ys-navy)!important;text-align:center!important;font-size:16px!important;font-weight:600!important}
.case-home-actions button.coral,.patient-file-actions button.coral{border-color:var(--ys-coral)!important;color:var(--ys-coral)!important}
.case-detection-group{padding:24px 22px 26px;border-bottom:1px solid var(--ys-line)}
.case-group-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.case-group-heading h2,.case-current-med h2{margin:0;font-size:22px;font-weight:700}
.case-group-heading small{display:block;margin-top:7px;color:var(--ys-muted);font-size:12px}
.case-group-heading .text-action{min-height:40px;font-size:14px!important}
.case-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px;border-bottom:1px solid var(--ys-line)}
.case-metric-grid button{position:relative;display:flex!important;min-width:0;min-height:76px;flex-direction:column;align-items:center;gap:10px;padding:8px 5px 14px!important;text-align:center!important}
.case-metric-grid button+button{border-left:1px solid var(--ys-line)!important}
.case-metric-grid button:after{content:"";position:absolute;right:12%;bottom:-1px;left:12%;height:3px;background:transparent}
.case-metric-grid button[data-selected=true]:after{background:var(--ys-coral)}
.case-metric-grid span{font-size:13px;white-space:nowrap}
.case-metric-grid strong{font:500 14px/1.18 Roboto,var(--ys-font-ui);white-space:normal}
.case-metric-grid button[data-selected=true] strong{color:var(--ys-coral)}
.case-metric-grid button[data-missing=true] strong{color:var(--ys-muted);font-family:var(--ys-font-ui);font-size:12px}
.case-trend-toggle{display:flex!important;justify-content:space-between;align-items:center;width:100%;min-height:54px;margin-top:8px!important;font-size:15px!important;font-weight:600!important}
.case-trend-toggle small{font-size:13px;font-weight:500}
.case-chart-button{display:block!important;width:100%;padding:0!important}
.case-chart-button .trend-chart{margin-top:0}
.case-current-med{padding:24px 22px 8px}
.case-current-med>button{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto auto 18px;align-items:center;gap:10px;width:100%;min-height:72px;border-bottom:1px solid var(--ys-line)!important;text-align:left!important}
.case-current-med .med-icon{color:var(--ys-sage)}
.case-current-med .med-icon svg{width:22px;height:22px}
.case-current-med strong{font-size:14px}
.case-current-med b{font:500 14px/1 Roboto,var(--ys-font-ui)}
.case-current-med>button>span:nth-last-of-type(1){font-size:12px;white-space:nowrap}
.case-current-med>button>svg{width:18px;height:18px}

/* Doctor patient file */
.patient-file-page{min-height:100%;padding-bottom:calc(28px + var(--mobile-safe-area-height,0px));color:var(--ys-navy)}
.patient-file-header{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:12px;padding:54px 22px 20px;border-bottom:1px solid var(--ys-line)}
.patient-file-back{display:grid!important;place-items:center;width:34px;height:40px}
.patient-file-back svg{width:26px;height:26px}
.patient-file-identity{min-width:0}
.patient-file-identity>div{display:flex;align-items:baseline;gap:13px}
.patient-file-identity h1{font-size:29px;line-height:1;font-weight:700}
.patient-file-identity span{font-size:15px;white-space:nowrap}
.patient-file-identity p{margin-top:12px;color:var(--ys-muted);font:500 14px/1.2 Roboto,var(--ys-font-ui)}
.patient-file-flags{display:flex;flex-direction:column;align-items:flex-end;gap:10px;white-space:nowrap}
.patient-file-flags .authorized{color:var(--ys-sage);font-size:13px}
.patient-file-flags .unauthorized{color:var(--ys-coral);font-size:13px}
.priority-pill{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:3px 11px;border:1.2px solid var(--ys-coral);border-radius:999px;color:var(--ys-coral);font-size:13px}
.patient-file-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 22px;border-bottom:1px solid var(--ys-line)}
.patient-file-summary>div{display:flex;min-height:112px;flex-direction:column;justify-content:center;gap:12px;padding:0 12px}
.patient-file-summary>div+div{border-left:1px solid var(--ys-line)}
.patient-file-summary span{color:var(--ys-muted);font-size:12px}
.patient-file-summary strong{font-size:14px;line-height:1.35;font-weight:600}
.patient-file-cases,.patient-file-notes{padding:26px 20px 0}
.patient-file-section-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;min-height:48px}
.patient-file-section-head h2,.patient-file-notes h2{margin:0;font-size:23px;font-weight:700}
.add-file-case{display:inline-flex!important;align-items:center;gap:7px;color:var(--ys-coral)!important;font-size:14px!important;font-weight:650!important}
.add-file-case span{display:grid;place-items:center;width:28px;height:28px;border:1.2px solid currentColor;border-radius:50%;font-size:21px;line-height:1}
.patient-file-section-head .text-action{font-size:13px!important}
.patient-file-case{grid-template-columns:64px minmax(0,1fr) 100px 18px}
.patient-file-notes{padding-bottom:10px}
.patient-file-notes>small{display:block;margin-top:8px;color:var(--ys-muted);font-size:12px}
.patient-file-locked{margin:28px 22px;padding:24px 20px;border-left:3px solid var(--ys-coral);background:#fff4f0}
.patient-file-locked strong{font-size:20px}
.patient-file-locked p{margin:12px 0 20px;color:var(--ys-muted);font-size:14px;line-height:1.6}
.patient-file-locked button{min-height:46px;padding:0 20px!important;color:#fff!important;background:var(--ys-navy)!important;font-size:14px!important;font-weight:650!important}

/* Free-form patient notes */
.profile-note-section{padding-top:24px}
.profile-note-section .section-heading{align-items:center}
.profile-note-section .section-heading h2{margin-bottom:0}
.profile-note-section .text-action{font-size:13px!important}
.note-keyword-hints{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 12px}
.note-keyword-hints span{display:inline-flex;align-items:center;min-height:29px;padding:3px 10px;border:1px solid #cdd7cd;border-radius:999px;color:#526c5b;background:#edf4ee;font-size:12px}
.patient-note-preview{padding:15px 16px;border:1px solid #cfd3c6;background:#faf8f2;box-shadow:none}
.patient-note-preview p{margin:0;padding:8px 0;color:var(--ys-navy);font-size:14px;line-height:1.45;border-bottom:1px solid #d8d9de}
.patient-note-preview p:last-child{border-bottom:0}
.patient-note-preview p.muted{color:var(--ys-muted)}
.patient-note-preview.doctor-readonly{margin-top:15px;padding:16px 18px}

.case-status-badge.coral{color:#b94230;background:#fff4f0}
.case-status-badge.amber{color:#a76500;background:#fff8e7}
.case-status-badge.sage{color:#52785d;background:#eff6f0}

@media(max-width:380px){
  .case-record-main,.patient-file-case{grid-template-columns:58px minmax(0,1fr) 88px 15px;gap:9px}
  .case-anchor{width:56px;min-height:66px}.case-anchor strong{font-size:16px}.case-anchor time{font-size:14px}
  .case-record-copy strong{font-size:16px}.case-record-copy small{font-size:12px}
  .case-record-main>.case-status-badge{max-width:88px;padding:4px 7px;font-size:11px!important}
  .case-homepage-header,.patient-file-header{grid-template-columns:30px minmax(0,1fr) auto;padding-left:18px;padding-right:18px}
  .case-owner{min-width:88px}.case-owner span{max-width:104px}
  .case-metric-grid span{font-size:11px}.case-metric-grid strong{font-size:12px}
  .patient-file-summary{margin-left:18px;margin-right:18px}.patient-file-summary>div{padding-left:8px;padding-right:8px}
  .patient-file-summary strong{font-size:12px}.patient-file-section-head{gap:9px}
}

.prototype-root[data-elderly=true] .records-title-row h1{font-size:42px}
.prototype-root[data-elderly=true] .records-manage-toggle,.prototype-root[data-elderly=true] .add-case-action{font-size:17px!important}
.prototype-root[data-elderly=true] .case-record-copy strong,.prototype-root[data-elderly=true] .case-patient-identity span,.prototype-root[data-elderly=true] .patient-file-identity span{font-size:18px!important}
.prototype-root[data-elderly=true] .case-record-copy small,.prototype-root[data-elderly=true] .patient-note-preview p{font-size:16px!important}
.prototype-root[data-elderly=true] .case-home-actions button,.prototype-root[data-elderly=true] .patient-file-actions button{min-height:52px;font-size:18px!important}
.prototype-root[data-elderly=true] .case-metric-grid span{font-size:15px}.prototype-root[data-elderly=true] .case-metric-grid strong{font-size:16px}

@media(prefers-reduced-motion:reduce){.case-record-main{transition:none}}
/* v4.1 — unified patient home, medication, report, and profile */
:root{
  --ys-sage-panel:#ccd7ca;
  --ys-sage-panel-soft:#edf2eb;
  --ys-apple-ease:cubic-bezier(.22,.72,.22,1);
}

.patient-home-v41,.patient-meds-v41,.patient-report-v41,.patient-profile-v41{
  color:var(--ys-navy);
  background:var(--ys-ivory);
}

/* Shared carousel language */
.carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:11px;
}
.carousel-dots button{
  width:9px;
  height:9px;
  border:1.5px solid currentColor!important;
  border-radius:50%!important;
  transition:transform .28s var(--ys-apple-ease),background .28s var(--ys-apple-ease)!important;
}
.carousel-dots button[data-active=true]{
  background:currentColor!important;
  transform:scale(1.08);
}
.carousel-dots.light{color:#fff}
.carousel-dots.navy{color:var(--ys-navy)}

/* Patient home */
.home-top-v41{padding-bottom:14px}
.home-med-carousel{
  position:relative;
  min-height:238px;
  grid-template-columns:minmax(0,1fr) 118px;
  padding:22px 24px 42px;
  background:var(--ys-sage-panel);
  overflow:hidden;
  touch-action:pan-y;
}
.home-med-copy{animation:ys-slide-in .38s var(--ys-apple-ease)}
.home-med-carousel h1{margin-bottom:8px;color:#52785d;font-size:19px}
.hero-dose-count{
  letter-spacing:-.055em;
  font:400 70px/.92 Roboto,var(--ys-font-ui);
}
.hero-dose-count small{font-size:35px;font-weight:400}
.home-med-carousel p{margin:10px 0 2px;color:var(--ys-navy);font-size:17px}
.home-med-detail{display:block;color:#5b6d78;font-size:12px;line-height:1.3}
.record-med-action{
  min-height:38px;
  margin-top:12px!important;
  padding:0 14px!important;
  border:1px solid #ffffffd4!important;
  border-radius:8px!important;
  color:var(--ys-coral)!important;
  font-size:14px!important;
  font-weight:650!important;
  background:#ffffff18!important;
}
.record-med-action[data-complete=true]{color:#52785d!important}
.home-med-carousel .medicine-illustration img{width:112px;height:132px}
.home-med-carousel>.carousel-dots{
  position:absolute;
  right:0;
  bottom:18px;
  left:0;
}
.home-metric-v41{padding:21px 24px 10px;border-bottom:1px solid var(--ys-line);touch-action:pan-y}
.home-metric-v41 .section-heading{align-items:center;margin-bottom:8px}
.home-metric-v41 .section-heading h2{margin:0;font-size:22px}
.home-metric-v41 .text-action{min-height:36px;font-size:13px!important}
.metric-slide-v41{animation:ys-slide-in .38s var(--ys-apple-ease)}
.metric-source-v41{display:block;margin-bottom:5px;font-size:14px;font-weight:650}
.metric-value-v41{display:inline-block;letter-spacing:-.035em;font:400 43px/1 Roboto,var(--ys-font-ui)}
.metric-delta-v41{margin-left:12px;font-size:13px;font-weight:600}
.metric-delta-v41.sage{color:#52785d!important}
.metric-delta-v41.coral{color:var(--ys-coral)!important}
.home-chart-button{display:block!important;width:100%;height:86px;padding:0!important}
.home-chart-button .trend-chart{margin:0}
.home-chart-button .trend-chart svg{max-height:82px}
.home-metric-v41>.carousel-dots{margin-top:3px}
.home-recent-v41{padding:15px 24px 0}
.home-recent-v41 h2{margin:0 0 5px;font-size:21px}
.home-recent-v41 .open-row{min-height:63px;grid-template-columns:38px minmax(0,1fr) 18px;display:grid!important;border-bottom:0!important}
.home-hospital-icon{display:grid;place-items:center;width:36px;height:36px;color:#52785d}
.home-hospital-icon svg{width:27px;height:27px}
.home-recent-copy{display:flex;min-width:0;flex-direction:column;gap:5px}
.home-recent-copy strong{font-size:15px}
.home-recent-copy small{color:var(--ys-muted);font-size:12px}

@keyframes ys-slide-in{
  0%{opacity:0;transform:translateX(12px)}
  to{opacity:1;transform:translateX(0)}
}

/* Medication plan */
.patient-meds-v41 .page-header{padding-bottom:16px}
.med-plan-card-v41{
  position:relative;
  min-height:318px;
  background:var(--ys-sage-panel);
  overflow:hidden;
  touch-action:pan-y;
}
.med-plan-main-v41{
  position:relative;
  display:grid!important;
  grid-template-columns:102px minmax(0,1fr) auto 18px;
  grid-template-rows:auto auto auto;
  align-items:center;
  gap:7px 14px;
  width:100%;
  min-height:201px;
  padding:20px 24px 14px!important;
  text-align:left!important;
  animation:ys-slide-in .38s var(--ys-apple-ease);
}
.med-plan-main-v41 .section-label{grid-column:1/-1;color:#52785d;font-size:14px;font-weight:650}
.med-plan-illustration{grid-row:2/4;display:grid;place-items:center;width:96px;height:112px}
.med-plan-illustration img{max-width:92px;max-height:108px;object-fit:contain}
.med-plan-main-v41 h2{grid-column:2/4;margin:0;font-size:18px;line-height:1.25}
.med-plan-main-v41 .dose-number{grid-column:2/4;letter-spacing:-.04em;font:500 50px/1 Roboto,var(--ys-font-ui)}
.med-plan-main-v41 .dose-number small{font-size:16px}
.med-plan-main-v41>svg{grid-column:4;grid-row:2/4;width:18px;height:18px}
.med-plan-facts-v41{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  min-height:77px;
  margin:0 22px;
  border-top:1px solid #12345624;
}
.med-plan-facts-v41>div{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center}
.med-plan-facts-v41>div+div{border-left:1px solid #12345624}
.med-plan-facts-v41 svg{width:20px;height:20px;color:#176443}
.med-plan-facts-v41 span{font-size:12px;line-height:1.25}
.med-plan-card-v41>.carousel-dots{margin-top:12px}
.week-record-v41{padding:22px 24px 18px;border-bottom:1px solid var(--ys-line)}
.week-record-v41 h2{margin:0 0 15px;font-size:21px}
.week-doses-v41{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.week-doses-v41 button{min-width:0;gap:10px}
.week-doses-v41 button>span{font-size:13px}
.dose-status-icon{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border:1.4px solid #87a08d;
  border-radius:50%;
  color:#fff;
}
.dose-status-icon svg{width:20px;height:20px}
.week-doses-v41 button[data-status=done] .dose-status-icon{background:#90ac99;border-color:#90ac99}
.week-doses-v41 button[data-status=missed] .dose-status-icon{color:var(--ys-coral);border-color:var(--ys-coral);background:#fcfcfa}
.week-doses-v41 button[data-status=pending] .dose-status-icon{background:transparent}
.week-doses-v41 button[data-today=true]>span{color:var(--ys-coral)}
.week-doses-v41 button[data-today=true]:before{width:24px}
.med-history-v41{padding:0 24px}
.med-history-v41 .report-fold-row{min-height:58px}

/* AI report */
.patient-report-v41 .page-header{padding-bottom:14px}
.report-case-picker-v41{display:flex;flex-direction:column;padding:0 24px 10px}
.report-search-v41{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:0 12px;
  border:1px solid var(--ys-line);
  border-radius:12px;
  background:#fffefb;
}
.report-search-v41 svg{width:20px;height:20px;color:var(--ys-muted)}
.report-search-v41 input{min-width:0;height:44px;border:0;outline:0;color:var(--ys-navy);background:transparent;font:500 14px/1.2 var(--ys-font-ui)}
.report-search-v41 input::placeholder{color:#98a2ab}
.report-search-v41 button{min-height:40px;color:var(--ys-coral)!important;font-size:12px!important}
.report-case-picker-v41 .report-date-list.inline{margin-top:8px;padding:0!important;border-bottom:1px solid var(--ys-line)}
.report-case-picker-v41 .report-date-list.inline button{position:relative;min-width:82px;min-height:46px;text-align:center!important;font-size:14px!important}
.report-case-picker-v41 .report-date-list.inline button:after{position:absolute;right:20%;bottom:-1px;left:20%;height:2px;content:"";background:transparent}
.report-case-picker-v41 .report-date-list.inline button[data-selected=true]{color:var(--ys-coral)!important}
.report-case-picker-v41 .report-date-list.inline button[data-selected=true]:after{background:var(--ys-coral)}
.report-case-source-v41{display:grid;order:-3;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:12px;min-height:66px;margin:0 0 14px;padding:4px 14px;border-radius:12px;background:var(--ys-sage-panel-soft)}
.report-search-v41{order:-2}
.report-case-picker-v41 .report-date-list{order:-1}
.report-case-source-v41>svg{width:28px;height:28px;color:#52785d}
.report-case-source-v41 span{display:flex;min-width:0;flex-direction:column;gap:5px}
.report-case-source-v41 strong{font-size:15px}
.report-case-source-v41 small{color:var(--ys-muted);font-size:12px}
.report-empty-v41{display:grid;place-items:center;min-height:70px;color:var(--ys-muted);font-size:13px}
.ai-summary-v41{padding:18px 24px 24px;border-top:1px solid var(--ys-line)}
.ai-summary-v41>header{margin-bottom:8px}
.ai-summary-v41>header h1{font-size:27px;line-height:1.15}
.ai-summary-v41>header small{display:block;margin-top:6px;color:var(--ys-muted);font-size:13px}
.ai-insight-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;padding:18px 0;border-bottom:1px solid var(--ys-line)}
.ai-insight-row.advice{margin:10px 0;padding:17px 14px;border:0;border-radius:12px;background:var(--ys-sage-panel-soft)}
.ai-insight-icon{display:grid;place-items:center;width:46px;height:46px;border:1.2px solid var(--ys-navy);border-radius:50%;color:var(--ys-navy)}
.ai-insight-row.advice .ai-insight-icon{border-color:#52785d;color:#52785d}
.ai-insight-icon svg{width:25px;height:25px}
.ai-insight-row h2{margin:0 0 8px;font-size:19px}
.ai-insight-row.advice h2{color:#37694d}
.ai-insight-row p{color:#253342;font-size:13px;line-height:1.65}
.ai-disclaimer-v41{margin-top:14px;text-align:center;color:#7d8188;font-size:11px;line-height:1.55}

/* Patient profile */
.patient-profile-v41 .page-header{padding-bottom:14px}
.profile-identity-v41{
  display:grid;
  grid-template-columns:68px minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  min-height:128px;
  margin:0 24px;
  border-bottom:1px solid var(--ys-line);
}
.profile-avatar-v41{display:grid;place-items:center;width:66px;height:66px;border:1px solid #cbd2d6;border-radius:50%;background:#edf1f2;color:#667584}
.profile-avatar-v41 svg{width:34px;height:34px}
.profile-name-v41{min-width:0}
.profile-name-v41>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.profile-name-v41 h1{font-size:27px;line-height:1}
.profile-name-v41>small{display:block;margin-top:10px;color:var(--ys-muted);font-size:14px}
.verify-badge-v41{display:inline-flex!important;align-items:center;gap:5px;min-height:34px;color:#1764c0!important;font-size:12px!important;white-space:nowrap}
.verify-badge-v41 svg{width:16px;height:16px}
.verify-badge-v41.unverified{color:var(--ys-coral)!important}
.verify-arrows-v41{display:inline-flex;align-items:center;margin-left:1px}
.verify-arrows-v41 svg{width:10px;height:10px;margin-left:-4px;stroke-width:2.2}
.verify-arrows-v41 svg:first-child{margin-left:0;opacity:.42}
.verify-arrows-v41 svg:nth-child(2){opacity:.68}
.edit-profile-v41{min-height:42px;padding:0 12px!important;border:1.2px solid var(--ys-navy)!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;text-align:center!important}
.profile-note-v41{padding:21px 24px 15px;border-bottom:1px solid var(--ys-line)}
.profile-note-heading-v41{display:flex;justify-content:space-between;align-items:center;gap:14px}
.profile-note-heading-v41 h2{margin:0;font-size:21px}
.profile-note-heading-v41 small{display:block;margin-top:5px;color:var(--ys-muted);font-size:12px}
.profile-note-heading-v41>button{min-height:38px;color:#37694d!important;font-size:13px!important;font-weight:650!important}
.profile-note-paper-v41{
  position:relative;
  min-height:112px;
  margin-top:13px;
  padding:11px 15px 11px 24px;
  border:1px solid #cdd6ca;
  border-radius:10px;
  background:var(--ys-sage-panel-soft);
}
.profile-note-paper-v41:before{position:absolute;top:13px;bottom:13px;left:12px;width:2px;content:"";background:#7fa087}
.profile-note-paper-v41 p{margin:0;padding:8px 0;color:#233b33;font-size:13px;line-height:1.35;border-bottom:1px solid #cfd7d0}
.profile-note-paper-v41 p:last-child{border-bottom:0}
.profile-note-paper-v41 p.muted{color:var(--ys-muted)}
.profile-note-hint-v41{margin-top:9px;color:#52785d;font-size:11px}
.profile-settings-v41{padding:0 24px}
.profile-settings-v41 .action-row{min-height:54px}
.profile-settings-v41 .action-row>svg:first-child{width:21px;height:21px}
.profile-settings-v41 .action-row strong{font-size:14px}
.profile-settings-v41 .action-row>span{font-size:12px}

@media(max-width:380px){
  .home-med-carousel{grid-template-columns:minmax(0,1fr) 102px;padding-left:20px;padding-right:20px}
  .hero-dose-count{font-size:64px}.home-med-carousel .medicine-illustration img{width:100px}
  .home-metric-v41,.home-recent-v41{padding-left:20px;padding-right:20px}
  .med-plan-main-v41{grid-template-columns:88px minmax(0,1fr) auto 16px;padding-left:20px!important;padding-right:20px!important}
  .profile-identity-v41{grid-template-columns:60px minmax(0,1fr);gap:12px;margin-left:20px;margin-right:20px}
  .profile-avatar-v41{width:58px;height:58px}.edit-profile-v41{grid-column:2;justify-self:start;margin-top:-8px}
  .profile-note-v41,.profile-settings-v41,.report-case-picker-v41,.ai-summary-v41{padding-left:20px;padding-right:20px}
}

@media(prefers-reduced-motion:reduce){
  .home-med-copy,.metric-slide-v41,.med-plan-main-v41{animation:none}
  .carousel-dots button{transition:none!important}
}

/* v4.2 repair layer: empty states + elderly coverage for v4.1 patient surfaces */
.home-empty-v42{
  min-height:72px;
  display:grid;
  place-items:center;
  color:var(--ys-muted);
  font-size:13px;
  border-top:1px solid var(--ys-line);
}
.prototype-root[data-elderly=true] .patient-home-v41 h1,
.prototype-root[data-elderly=true] .patient-report-v41 h1,
.prototype-root[data-elderly=true] .patient-profile-v41 h1{font-size:36px!important}
.prototype-root[data-elderly=true] .patient-home-v41 h2,
.prototype-root[data-elderly=true] .patient-report-v41 h2,
.prototype-root[data-elderly=true] .patient-profile-v41 h2{font-size:25px!important}
.prototype-root[data-elderly=true] .home-med-detail,
.prototype-root[data-elderly=true] .metric-source-v41,
.prototype-root[data-elderly=true] .metric-delta-v41,
.prototype-root[data-elderly=true] .home-recent-copy small,
.prototype-root[data-elderly=true] .report-case-source-v41 small,
.prototype-root[data-elderly=true] .ai-summary-v41>header small,
.prototype-root[data-elderly=true] .profile-name-v41>small,
.prototype-root[data-elderly=true] .profile-note-heading-v41 small,
.prototype-root[data-elderly=true] .profile-note-hint-v41,
.prototype-root[data-elderly=true] .profile-settings-v41 .action-row>span{font-size:16px!important;line-height:1.45!important}
.prototype-root[data-elderly=true] .ai-insight-row p,
.prototype-root[data-elderly=true] .profile-note-paper-v41 p,
.prototype-root[data-elderly=true] .ai-disclaimer-v41,
.prototype-root[data-elderly=true] .home-empty-v42,
.prototype-root[data-elderly=true] .report-empty-v41{font-size:17px!important;line-height:1.65!important}
.prototype-root[data-elderly=true] .verify-badge-v41,
.prototype-root[data-elderly=true] .edit-profile-v41,
.prototype-root[data-elderly=true] .profile-note-heading-v41>button{min-height:48px!important;font-size:17px!important}
.prototype-root[data-elderly=true] .profile-settings-v41 .action-row{min-height:70px!important}
.prototype-root[data-elderly=true] .profile-settings-v41 .action-row strong{font-size:18px!important}
.prototype-root[data-elderly=true] .ai-insight-icon{width:54px;height:54px}
.prototype-root[data-elderly=true] .ai-insight-icon svg{width:29px;height:29px}
.prototype-root[data-elderly=true] .report-search-v41 input{font-size:18px!important;min-height:48px!important}
.prototype-root[data-elderly=true] .report-case-picker-v41 button{min-height:48px;font-size:16px!important}

/* v4.3 Apple-motion interaction layer + selected records timeline */
.yi-swipe-carousel{position:relative;width:100%;min-width:0;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.yi-swipe-track{display:flex;width:100%;will-change:transform;transition:transform .46s cubic-bezier(.22,1,.36,1)}
.yi-swipe-carousel[data-dragging=true] .yi-swipe-track{transition:none}
.yi-swipe-slide{flex:0 0 100%;min-width:0}
.yi-swipe-carousel .carousel-dots{position:relative;z-index:4}
.carousel-dots button{width:calc(8px + var(--dot-focus,0)*10px)!important;height:8px!important;opacity:calc(.38 + var(--dot-focus,0)*.62);border:0!important;border-radius:999px!important;background:currentColor!important;transform:scale(calc(.88 + var(--dot-focus,0)*.12))!important;transition:width .16s linear,opacity .16s linear,transform .16s linear!important}

.home-med-carousel{display:block!important;min-height:238px;padding:0!important}
.home-med-slide{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 118px;min-height:238px;padding:22px 24px 42px}
.home-med-slide .home-med-copy,.home-metric-swipe .metric-slide-v41,.med-plan-slide-v43 .med-plan-main-v41{animation:none}
.home-med-swipe>.carousel-dots{position:absolute;right:0;bottom:18px;left:0}
.home-med-swipe .medicine-illustration{display:grid;place-items:center}
.home-metric-swipe .metric-slide-v41{min-height:174px}
.home-metric-swipe>.carousel-dots{margin-top:3px}
.med-plan-swipe>.carousel-dots{margin:12px 0 14px}
.med-plan-slide-v43{min-height:278px}

.records-header{padding:54px 24px 0;background:#f7f7f3}
.records-title-row{margin-top:34px;padding-bottom:14px}
.records-title-row h1{font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-size:42px;font-weight:650;letter-spacing:-.04em}
.records-title-row>div{gap:18px}
.records-manage-toggle{color:var(--ys-navy)!important;font-size:16px!important}
.records-filters{padding:0 24px;border-top:1px solid #12345614;border-bottom:1px solid #12345614;background:#f7f7f3}
.records-filters button{height:50px;color:var(--ys-muted);font-size:15px!important}
.records-filters button.active{color:var(--ys-coral)}
.records-filters button.active:after{right:26%;left:26%;height:2px;background:var(--ys-coral)}
.case-record-list{padding:0 24px 32px;background:#f7f7f3}
.swipe-case-row{max-height:134px;margin:0;opacity:1;border-bottom:1px solid #1234561f;transform:scale(1);transform-origin:center top;transition:max-height .34s cubic-bezier(.22,1,.36,1),opacity .24s ease,transform .34s cubic-bezier(.22,1,.36,1),margin .34s cubic-bezier(.22,1,.36,1)}
.swipe-case-row[data-deleting=true]{max-height:0;margin-bottom:-1px;opacity:0;transform:scale(.96)}
.swipe-case-row .case-record-main{grid-template-columns:74px minmax(0,1fr) auto 18px;gap:15px;min-height:132px;padding:16px 0!important;border-bottom:0!important;background:#f7f7f3!important;transform:translate3d(var(--swipe-x,0),0,0);transition:transform .38s cubic-bezier(.22,1,.36,1)}
.swipe-case-row[data-dragging=true] .case-record-main{transition:none}
.case-swipe-delete{width:86px;background:#c94737!important;font-size:15px!important;transition:filter .18s ease}
.case-swipe-delete:active{filter:brightness(.9)}
.case-anchor{position:relative;align-self:stretch;display:flex;align-items:flex-start;justify-content:flex-start;width:74px;min-height:96px;padding-top:2px;border:0;border-radius:0;background:transparent}
.case-anchor strong{font:600 25px/1.05 Roboto,var(--ys-font-ui);letter-spacing:-.045em}
.case-anchor time{position:absolute;top:33px;left:1px;color:var(--ys-muted);font:500 11px/1 Roboto,var(--ys-font-ui);letter-spacing:.05em}
.case-anchor:after{position:absolute;top:55px;bottom:-17px;left:5px;width:1px;content:"";background:#12345628}
.swipe-case-row:last-child .case-anchor:after{bottom:22px}
.case-anchor i{position:absolute;top:53px;left:2px;z-index:1;width:7px;height:7px;border:1.5px solid var(--ys-sage);border-radius:50%;background:#f7f7f3}
.case-record-copy{gap:6px}
.case-record-copy .case-kind{order:-1;color:var(--ys-coral);font-size:11px;font-weight:700;letter-spacing:.09em}
.case-record-copy strong{font-size:19px;font-weight:700;letter-spacing:-.02em}
.case-record-copy>span{display:-webkit-box;color:var(--ys-navy);font-size:14px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.case-record-copy .case-hospital{color:var(--ys-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-record-main>.case-status-badge{align-self:start;min-height:0;margin-top:18px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ys-sage)!important;font-size:11px!important;font-weight:700!important}
.case-record-main>.case-status-badge.coral{color:var(--ys-coral)!important}
.case-record-main>svg{align-self:center;color:#12345678}
.case-record-main.manage-mode{grid-template-columns:34px 66px minmax(0,1fr) auto 18px;gap:10px;min-height:120px;padding:12px 0!important}
.case-record-main.manage-mode .case-anchor{width:66px}
.case-record-main.manage-mode .case-anchor:after{display:none}

.followup-month-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:28px}
.followup-month-heading h1{margin:0!important}
.followup-month-nav{display:grid;grid-template-columns:32px auto 32px;align-items:center;gap:5px}
.followup-month-nav button{display:grid!important;place-items:center;width:32px;height:36px;color:#fff!important}
.followup-month-nav svg{width:17px;height:17px}
.followup-month-nav strong{white-space:nowrap;font-size:13px;font-weight:600}
.followup-hero .week-strip{display:flex;gap:4px;margin:22px -24px 0;padding:0 24px 7px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.followup-hero .week-strip::-webkit-scrollbar{display:none}
.followup-hero .week-strip button{flex:0 0 42px;scroll-snap-align:center}

@media(max-width:380px){
  .home-med-slide{grid-template-columns:minmax(0,1fr) 102px;padding-left:20px;padding-right:20px}
  .case-record-list{padding-right:20px;padding-left:20px}
  .swipe-case-row .case-record-main{grid-template-columns:66px minmax(0,1fr) auto 16px;gap:10px}
  .case-anchor{width:66px}
  .case-record-copy strong{font-size:17px}
}

@media(prefers-reduced-motion:reduce){
  .yi-swipe-track,.swipe-case-row,.swipe-case-row .case-record-main{transition-duration:.01ms!important}
}

/* v4.4 interaction repairs: cyclic carousels, report selection and unobstructed forms */
.yi-swipe-track[data-instant=true]{transition:none!important}

.report-case-picker-v41 .report-date-list.inline button[data-selected=true]{
  color:#fff!important;
  background:var(--ys-sage)!important;
  border-color:var(--ys-sage)!important;
  box-shadow:0 4px 12px #526c5b2e;
}
.report-case-picker-v41 .report-date-list.inline button[data-selected=true]:after{display:none!important}

.full-screen-panel>.panel-actions{
  position:relative!important;
  bottom:auto!important;
  z-index:1!important;
  margin-top:22px!important;
  margin-bottom:0!important;
  padding-top:14px!important;
  padding-bottom:calc(var(--mobile-safe-area-height,0px) + 18px)!important;
}
.full-screen-sheet .sheet-content{
  padding-bottom:calc(var(--mobile-safe-area-height,0px) + 24px)!important;
  scroll-padding-bottom:24px!important;
}
.collection-panel{padding-bottom:0!important}


/* v4.5 — patient MVP scope refinement on v4.4 */
.patient-followups-v43{
  min-height:100%;
  color:var(--ys-navy);
  background:var(--ys-ivory);
}
.patient-followups-v43 .page-header{padding-bottom:16px}
.followup-next-v43{
  margin:0 24px 20px;
  padding:20px;
  border:1px solid #1234561f;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px #1234560b;
}
.followup-next-v43 header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.followup-next-v43 header>span{color:#52785d;font-size:13px;font-weight:700}
.followup-next-v43 header i{padding:5px 9px;border-radius:999px;color:var(--ys-amber);background:#f2e6c9;font-size:11px;font-style:normal;font-weight:700}
.followup-next-v43 header i[data-state="已确认"]{color:#37694d;background:var(--ys-sage-panel-soft)}
.followup-next-v43 header i[data-state="改期待确认"]{color:var(--ys-coral);background:#f6ded7}
.followup-date-v43{display:flex;align-items:flex-end;gap:12px;padding:16px 0 18px;border-bottom:1px solid var(--ys-line)}
.followup-date-v43 strong{letter-spacing:-.045em;font:500 42px/.95 Roboto,var(--ys-font-ui)}
.followup-date-v43 span{padding-bottom:4px;color:var(--ys-muted);font-size:13px}
.followup-meta-v43{display:grid;gap:12px;padding:16px 0}
.followup-meta-v43>span{display:grid;grid-template-columns:24px minmax(0,auto) minmax(0,1fr);align-items:center;gap:9px}
.followup-meta-v43 svg{width:21px;height:21px;color:#52785d}
.followup-meta-v43 b{font-size:14px}
.followup-meta-v43 small{min-width:0;color:var(--ys-muted);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}
.followup-actions-v43{display:grid;grid-template-columns:.86fr 1.14fr;gap:10px;padding-top:2px}
.followup-actions-v43 button{min-height:46px!important;border:1px solid var(--ys-navy)!important;border-radius:11px!important;text-align:center!important;font-size:14px!important;font-weight:700!important;transition:transform .18s var(--ys-apple-ease),opacity .18s!important}
.followup-actions-v43 button:active{transform:scale(.975)}
.followup-actions-v43 .secondary{color:var(--ys-navy)!important;background:#fff!important}
.followup-actions-v43 .primary{color:#fff!important;background:var(--ys-navy)!important}
.followup-tabs-v43{display:grid;grid-template-columns:repeat(2,1fr);margin:0 24px;border-bottom:1px solid var(--ys-line)}
.followup-tabs-v43 button{position:relative;min-height:48px;text-align:center!important;font-size:15px!important;font-weight:600!important}
.followup-tabs-v43 button:after{position:absolute;right:31%;bottom:-1px;left:31%;height:3px;border-radius:3px;content:"";background:transparent}
.followup-tabs-v43 button.active{color:var(--ys-coral)!important}
.followup-tabs-v43 button.active:after{background:var(--ys-coral)}
.followup-history-v43{padding:6px 24px 0}
.followup-item-v43{display:grid!important;grid-template-columns:62px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:78px;border-bottom:1px solid var(--ys-line)!important}
.followup-item-v43 time,.followup-item-v43>span{display:flex;min-width:0;flex-direction:column;gap:6px}
.followup-item-v43 time strong{font:600 15px/1 Roboto,var(--ys-font-ui)}
.followup-item-v43 time small,.followup-item-v43>span small{color:var(--ys-muted);font-size:11px}
.followup-item-v43>span strong{font-size:14px}
.followup-item-v43>span small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.followup-item-v43>svg{width:18px;height:18px;color:var(--ys-muted)}
.records-report-entry-v43{
  min-height:36px;
  margin-right:4px!important;
  padding:0 9px!important;
  border:1px solid #1234562b!important;
  border-radius:9px!important;
  color:#37694d!important;
  background:#edf2eb!important;
  font-size:12px!important;
  font-weight:700!important;
}
.profile-settings-v41 .action-row>span.sage{font-weight:700}
@media(max-width:380px){
  .followup-history-v43{padding-left:20px;padding-right:20px}
  .followup-next-v43,.followup-tabs-v43{margin-left:20px;margin-right:20px}
  .followup-next-v43{padding:18px}
  .followup-meta-v43>span{grid-template-columns:22px minmax(0,1fr)}
  .followup-meta-v43 small{grid-column:2;text-align:left}
  .records-report-entry-v43{padding:0 7px!important;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
  .followup-actions-v43 button{transition:none!important}
}


/* Patient v4.6: review-first records and explicit feedback */
.records-title-row h1,.prototype-root[data-elderly=true] .records-title-row h1{font-family:var(--ys-font-ui);font-size:38px;font-weight:700;letter-spacing:0}
.recorded-feedback-v46{display:inline-flex;align-items:center;margin-top:8px;color:var(--ys-sage);font-size:12px;font-weight:700}
.metric-slide-open-v46{display:grid!important;width:100%;text-align:left!important}
.metric-slide-open-v46 .home-chart-button{width:100%}
.metric-open-hint-v46{display:inline-flex;align-items:center;justify-self:end;gap:3px;margin-top:2px;color:var(--ys-coral);font-size:12px;font-weight:700}
.metric-open-hint-v46 svg{width:14px;height:14px}
.case-ai-v46{padding:24px 22px 44px}
.case-ai-heading-v46{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.case-ai-heading-v46 h2{font-size:22px}
.case-ai-heading-v46 span{color:var(--ys-sage);font-size:12px;font-weight:700}
.case-ai-v46>button{display:grid!important;gap:8px;width:100%;padding:18px!important;border:1px solid var(--ys-line)!important;background:#fff9!important;text-align:left!important}
.case-ai-v46>button strong{font-size:16px}
.case-ai-v46>button p{display:-webkit-box;overflow:hidden;color:var(--ys-muted);font-size:13px;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.case-ai-v46>button>span{display:inline-flex;align-items:center;justify-self:end;gap:4px;color:var(--ys-coral);font-size:12px;font-weight:700}
.case-ai-v46>button svg{width:14px;height:14px}
.v46-review-collection{padding-bottom:92px!important;background:var(--ys-ivory)}
.v46-review-intro{margin:0 18px 18px;padding:16px;border-left:4px solid var(--ys-sage);background:#9bae9a24}
.v46-review-intro strong{font-size:15px}
.v46-review-intro p{margin-top:5px;color:var(--ys-muted);font-size:12px}
.v46-form-section{margin:0 18px 18px;padding:18px;background:#fff;border:1px solid var(--ys-line)}
.v46-form-section h3{margin:0;font-size:18px}
.v46-readonly-grid{display:grid;gap:0;margin-top:12px;border-top:1px solid var(--ys-line)}
.v46-readonly-grid>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:3px 10px;padding:12px 0;border-bottom:1px solid var(--ys-line)}
.v46-readonly-grid span,.v46-field-row>span{font-size:13px;font-weight:700}
.v46-readonly-grid strong{text-align:right;font-size:14px}
.v46-readonly-grid small{grid-column:2;text-align:right;color:var(--ys-muted);font-size:10px}
.v46-field-row{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;min-height:54px;border-bottom:1px solid var(--ys-line)}
.v46-field-row input,.v46-field-row select,.v46-major-row input,.v46-subitem-row input{width:100%;min-width:0;height:42px;padding:0 8px;color:var(--ys-navy);background:transparent;border:0;text-align:right;font:500 13px/1.2 var(--ys-font-ui)}
.v46-field-row select{appearance:auto}
.v46-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v46-section-head>div:first-child{display:grid;gap:4px}
.v46-section-head small{color:var(--ys-muted);font-size:11px}
.v46-upload-button{display:inline-flex;flex:none;align-items:center;justify-content:center;min-height:38px;padding:0 12px;color:#fff;background:var(--ys-navy);font-size:12px;font-weight:700}
.v46-upload-button input{display:none}
.v46-file-list{display:grid;gap:8px;margin-top:14px}
.v46-file-list span{display:flex;align-items:center;gap:8px;padding:9px;background:var(--ys-ivory);font-size:12px}
.v46-file-list svg{width:16px;height:16px}
.v46-empty-upload{margin-top:14px;color:var(--ys-muted);font-size:12px}
.v46-recognize-button{display:flex!important;align-items:center;gap:10px;width:100%;margin-top:14px!important;padding:13px!important;border:1px solid var(--ys-coral)!important;color:var(--ys-coral)!important}
.v46-recognize-button[data-done=true]{border-color:var(--ys-sage)!important;color:var(--ys-sage)!important}
.v46-recognize-button>svg{flex:none;width:20px;height:20px}
.v46-recognize-button span{display:grid;gap:3px;font-size:14px;font-weight:700}
.v46-recognize-button small{color:var(--ys-muted);font-size:10px;font-weight:500}
.v46-preset-tabs{display:flex!important;gap:4px;padding:3px;background:var(--ys-ivory)}
.v46-preset-tabs button{min-height:32px;padding:0 9px!important;font-size:11px!important}
.v46-preset-tabs button[data-active=true]{color:#fff!important;background:var(--ys-navy)!important}
.v46-metric-group{margin-top:16px;border-top:2px solid var(--ys-navy)}
.v46-major-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:9px 0;border-bottom:1px solid var(--ys-line)}
.v46-major-row label{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center}
.v46-major-row label span,.v46-subitem-row label span{font-size:11px;font-weight:700}
.v46-major-row button{padding:8px!important;color:var(--ys-coral)!important;font-size:11px!important}
.v46-subitem-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr) 24px;gap:3px;align-items:end;padding:8px 0;border-bottom:1px solid var(--ys-line)}
.v46-subitem-row label{display:grid;gap:2px;min-width:0}
.v46-subitem-row input{height:34px;padding:0;text-align:left;font-size:11px}
.v46-subitem-row>button{align-self:center;color:var(--ys-coral)!important;text-align:center!important;font-size:20px!important}
.v46-add-subitem,.v46-add-major{margin-top:10px!important;color:var(--ys-coral)!important;font-size:12px!important;font-weight:700!important}
.v46-add-major{width:100%;min-height:42px;border:1px dashed var(--ys-line)!important;text-align:center!important}
.v46-form-section textarea{width:100%;margin-top:12px;padding:12px;color:var(--ys-navy);border:1px solid var(--ys-line);border-radius:0;background:var(--ys-ivory);font:500 13px/1.5 var(--ys-font-ui);resize:none}
.v46-submit-dock{position:sticky;z-index:3;bottom:0;padding:12px 18px calc(12px + var(--mobile-safe-area-height,0px));background:#fcfcfaf2;border-top:1px solid var(--ys-line)}
.v46-submit-dock button{display:block!important;width:100%;min-height:52px;padding:0 16px!important;color:#fff!important;background:var(--ys-navy)!important;text-align:center!important;font-size:16px!important;font-weight:700!important}
@media(max-width:380px){.v46-form-section{margin-right:12px;margin-left:12px;padding:14px}.v46-subitem-row{grid-template-columns:minmax(0,1.3fr) minmax(0,.75fr) minmax(0,.75fr) 20px}.v46-preset-tabs button{padding:0 6px!important}}


/* Patient v4.7 */
.recorded-feedback-v46,.metric-open-hint-v46,.v46-review-intro{display:none!important}
.case-ai-heading-v46>span,.case-ai-v46>button>strong{display:none!important}
.case-ai-v46>button{gap:10px;padding:16px 18px!important}
.case-ai-v46>button p{-webkit-line-clamp:3}
.v47-notebook{background:var(--ys-ivory)}
.v47-note-paper{min-height:calc(100% - 78px);margin:0 20px 24px;padding:24px 20px;background:#fff;border-left:1px solid #d8d8d3;box-shadow:0 1px 0 #00000008}
.v47-note-paper p{margin:0 0 18px;color:var(--ys-navy);font-size:15px;line-height:1.8}
.v47-note-paper p:last-child{margin-bottom:0}
.v47-review-collection{padding-bottom:88px!important;background:var(--ys-ivory)}
.v47-form-section{margin:0 18px 16px;padding:18px;background:#fff;border:1px solid var(--ys-line)}
.v47-form-section h3{margin:0;font-size:18px}
.v47-readonly-grid{display:grid;margin-top:12px;border-top:1px solid var(--ys-line)}
.v47-readonly-grid>div,.v47-field-row{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;min-height:54px;border-bottom:1px solid var(--ys-line)}
.v47-readonly-grid span,.v47-field-row>span{font-size:13px;font-weight:700}
.v47-readonly-grid strong{text-align:right;font-size:14px}
.v47-field-row input,.v47-field-row select{width:100%;min-width:0;height:42px;padding:0 8px;color:var(--ys-navy);background:transparent;border:0;text-align:right;font:500 13px/1.2 var(--ys-font-ui)}
.v47-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v47-outline-action{min-height:36px;padding:0 10px!important;border:1px solid var(--ys-line)!important;color:var(--ys-coral)!important;font-size:12px!important;font-weight:700!important}
.v47-recognize-action{display:block!important;width:100%;min-height:44px;margin-top:14px!important;background:var(--ys-navy)!important;color:#fff!important;text-align:center!important;font-size:14px!important;font-weight:700!important}
.v47-recognize-action[data-done=true]{background:var(--ys-sage)!important}
.v47-round-add{display:grid!important;place-items:center;width:34px;height:34px;border:1px solid var(--ys-coral)!important;border-radius:50%;color:var(--ys-coral)!important;font-size:22px!important;font-weight:400!important;line-height:1!important}
.v47-round-add.small{width:30px;height:30px;font-size:19px!important}
.v47-metrics-empty{padding:34px 0 20px;color:var(--ys-muted);text-align:center;font-size:13px}
.v47-metric-group{margin-top:16px;border-top:2px solid var(--ys-navy)}
.v47-metric-group>header{display:flex;align-items:center;justify-content:space-between;min-height:52px;border-bottom:1px solid var(--ys-line)}
.v47-metric-group>header>strong{font-size:15px}
.v47-metric-group>header>div{display:flex;align-items:center;gap:10px}
.v47-remove-major{color:var(--ys-muted)!important;font-size:11px!important}
.v47-subitem-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.9fr) 24px;align-items:center;gap:10px;min-height:66px;border-bottom:1px solid var(--ys-line)}
.v47-subitem-name{display:grid;gap:3px;min-width:0}
.v47-subitem-name strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.v47-subitem-name small{color:var(--ys-muted);font-size:10px}
.v47-result-entry{display:flex;align-items:center;min-width:0;height:40px;padding:0 10px;background:#f1f1f0;border:1px solid transparent;border-radius:10px;transition:border-color .16s,background .16s,box-shadow .16s}
.v47-result-entry:focus-within{background:#fff;border-color:#2f6fdb;box-shadow:0 0 0 3px #2f6fdb1f}
.v47-result-entry input{min-width:0;width:100%;height:38px;padding:0;background:transparent;border:0;outline:0;color:var(--ys-navy);font:600 15px/1 var(--ys-font-ui)}
.v47-result-entry input::placeholder{color:#8b8f94;font-weight:500}
.v47-result-entry span{flex:none;margin-left:6px;color:var(--ys-muted);font-size:10px}
.v47-remove-sub{color:var(--ys-muted)!important;text-align:center!important;font-size:18px!important}
.v47-add-first-sub{display:block!important;width:100%;min-height:48px;color:var(--ys-coral)!important;text-align:center!important;font-size:12px!important;font-weight:700!important}
.v47-form-section textarea{width:100%;margin-top:12px;padding:12px;color:var(--ys-navy);background:var(--ys-ivory);border:1px solid var(--ys-line);border-radius:0;font:500 13px/1.5 var(--ys-font-ui);resize:none}
.v47-submit-dock{position:sticky;z-index:4;bottom:0;padding:12px 18px calc(12px + var(--mobile-safe-area-height,0px));background:#fcfcfaf2;border-top:1px solid var(--ys-line)}
.v47-submit-dock>button{display:block!important;width:100%;min-height:52px;background:var(--ys-navy)!important;color:#fff!important;text-align:center!important;font-size:16px!important;font-weight:700!important}
.v47-sheet-overlay{z-index:20;position:absolute;inset:0;display:flex;align-items:flex-end;background:#00000045}
.v47-option-sheet{width:100%;max-height:72%;padding:18px 18px calc(16px + var(--mobile-safe-area-height,0px));overflow:auto;background:#fff;border-radius:20px 20px 0 0}
.v47-option-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.v47-option-sheet h3{margin:0;font-size:18px}
.v47-option-sheet header button{font-size:24px!important}
.v47-option-list{display:grid;border-top:1px solid var(--ys-line)}
.v47-option-list button{display:flex!important;align-items:center;justify-content:space-between;min-height:50px;border-bottom:1px solid var(--ys-line)!important;font-size:14px!important}
.v47-option-list button[aria-pressed=true]{color:var(--ys-coral)!important;font-weight:700!important}
.v47-option-list svg{width:18px;height:18px}
.v47-custom-name{width:100%;height:44px;margin-top:12px;padding:0 12px;border:1px solid var(--ys-line);outline:0}
.v47-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.v47-sheet-actions button{min-height:44px;border:1px solid var(--ys-line)!important;text-align:center!important;font-size:14px!important;font-weight:700!important}
.v47-sheet-actions .primary{background:var(--ys-navy)!important;color:#fff!important}
.v47-sheet-actions .primary:disabled{opacity:.35}
.v47-doctor-list{background:var(--ys-ivory)}
.v47-doctor-rows{padding:0 20px 24px}
.v47-doctor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--ys-line)}
.v47-doctor-open{display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:12px;min-height:88px;text-align:left!important}
.v47-doctor-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--ys-sage);color:#fff;font-weight:700}
.v47-doctor-open>span:nth-child(2){display:grid;gap:4px}
.v47-doctor-open strong{font-size:15px}
.v47-doctor-open small{color:var(--ys-muted);font-size:11px}
.v47-doctor-open svg{width:18px;height:18px}
.v47-doctor-delete{padding:8px!important;color:var(--ys-coral)!important;font-size:12px!important}
.v47-list-empty{padding:48px 0;text-align:center;color:var(--ys-muted)}
.v47-other-medication{padding-bottom:88px!important;background:var(--ys-ivory)}
.v47-medication-form{margin:0 18px;padding:0 18px;background:#fff;border:1px solid var(--ys-line)}
.v47-medication-form label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;min-height:58px;border-bottom:1px solid var(--ys-line)}
.v47-medication-form label:last-child{border-bottom:0}
.v47-medication-form span{font-size:13px;font-weight:700}
.v47-medication-form input,.v47-medication-form select{width:100%;min-width:0;height:44px;padding:0 8px;color:var(--ys-navy);background:transparent;border:0;text-align:right;font:500 14px/1.2 var(--ys-font-ui)}
.v47-other-medication .v47-submit-dock button:disabled{opacity:.38}
@media(max-width:380px){.v47-form-section{margin-right:12px;margin-left:12px;padding:14px}.v47-subitem-row{grid-template-columns:minmax(0,1fr) minmax(104px,.8fr) 20px;gap:7px}.v47-result-entry{padding:0 8px}.v47-result-entry input{font-size:13px}}


/* Patient and doctor v4.8 */
.v48-review-collection{position:relative;padding-bottom:90px!important;background:var(--ys-ivory)}
.v48-form-section{margin:0 18px 16px;padding:18px;background:#fff;border:1px solid var(--ys-line)}
.v48-form-section h3{margin:0;font-size:18px}
.v48-readonly-grid{display:grid;margin-top:12px;border-top:1px solid var(--ys-line)}
.v48-readonly-grid>div{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;min-height:54px;border-bottom:1px solid var(--ys-line)}
.v48-readonly-grid span,.v48-open-field>span{font-size:13px;font-weight:700}
.v48-readonly-grid strong{text-align:right;font-size:14px}
.v48-open-field{display:grid!important;grid-template-columns:96px minmax(0,1fr) 18px;align-items:center;width:100%;min-height:56px;border-bottom:1px solid var(--ys-line)!important;text-align:left!important}
.v48-open-field strong{overflow:hidden;text-align:right;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.v48-open-field svg{width:16px;height:16px;margin-left:4px}
.v48-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v48-outline-action{min-height:36px;padding:0 11px!important;border:1px solid var(--ys-line)!important;color:var(--ys-coral)!important;font-size:12px!important;font-weight:700!important}
.v48-recognize-action{display:block!important;width:100%;min-height:46px;margin-top:14px!important;background:var(--ys-navy)!important;color:#fff!important;text-align:center!important;font-size:14px!important;font-weight:700!important}
.v48-recognize-action[data-done=true]{background:var(--ys-sage)!important}
.v48-round-add{display:grid!important;place-items:center;width:34px;height:34px;border:1px solid var(--ys-coral)!important;border-radius:50%;color:var(--ys-coral)!important;font-size:22px!important}
.v48-metric-group{margin-top:16px;border-top:2px solid var(--ys-navy)}
.v48-metric-group>header{display:flex;align-items:center;justify-content:space-between;min-height:54px;border-bottom:1px solid var(--ys-line)}
.v48-metric-group>header>strong{font-size:15px}
.v48-metric-group>header>div{display:flex;align-items:center;gap:14px}
.v48-add-subitems{color:var(--ys-coral)!important;font-size:12px!important;font-weight:700!important}
.v48-remove-major{color:var(--ys-muted)!important;font-size:11px!important}
.v48-subitem-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(104px,.8fr) 24px;align-items:center;gap:10px;min-height:64px;border-bottom:1px solid var(--ys-line)}
.v48-subitem-name{display:grid;gap:3px;min-width:0}
.v48-subitem-name strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.v48-subitem-name small{color:var(--ys-muted);font-size:10px}
.v48-value-button{min-height:40px!important;padding:0 10px!important;background:#f1f1f0!important;border:1px solid transparent!important;border-radius:10px!important;color:var(--ys-navy)!important;text-align:right!important;font-size:14px!important;font-weight:700!important}
.v48-remove-sub{color:var(--ys-muted)!important;text-align:center!important;font-size:18px!important}
.v48-note-button{display:block!important;width:100%;min-height:64px;margin-top:12px!important;padding:12px!important;background:var(--ys-ivory)!important;border:1px solid var(--ys-line)!important;color:var(--ys-muted)!important;text-align:left!important;font-size:13px!important;line-height:1.5!important}
.v48-note-button.filled{color:var(--ys-navy)!important}
.v48-submit-dock{position:sticky;z-index:4;bottom:0;padding:12px 18px calc(12px + var(--mobile-safe-area-height,0px));background:#fcfcfaf2;border-top:1px solid var(--ys-line)}
.v48-submit-dock>button{display:block!important;width:100%;min-height:52px;background:var(--ys-navy)!important;color:#fff!important;text-align:center!important;font-size:16px!important;font-weight:700!important}
.v48-editor-page{position:absolute;z-index:60;inset:0;display:flex;min-height:100%;flex-direction:column;background:var(--ys-ivory)}
.v48-editor-header{position:sticky;z-index:2;top:0;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;min-height:68px;padding:0 18px;background:#fff;border-bottom:1px solid var(--ys-line)}
.v48-editor-header h2{margin:0;text-align:center;font-size:17px}
.v48-editor-header button{font-size:14px!important;text-align:left!important}
.v48-editor-header .done{color:var(--ys-coral)!important;text-align:right!important;font-weight:700!important}
.v48-editor-header .done:disabled{opacity:.35}
.v48-picker-body{flex:1;padding:14px 18px calc(24px + var(--mobile-safe-area-height,0px));overflow:auto}
.v48-picker-list{display:grid;background:#fff;border:1px solid var(--ys-line)}
.v48-picker-list button{display:grid!important;grid-template-columns:minmax(0,1fr) 24px;align-items:center;min-height:56px;padding:0 16px!important;border-bottom:1px solid var(--ys-line)!important;text-align:left!important;font-size:15px!important}
.v48-picker-list button:last-child{border-bottom:0!important}
.v48-picker-list i{display:grid;place-items:center;width:22px;height:22px;border:1px solid #b8bdc2;border-radius:50%;color:#fff}
.v48-picker-list i.selected{background:var(--ys-coral);border-color:var(--ys-coral)}
.v48-picker-list svg{width:14px;height:14px}
.v48-custom-choice{display:block!important;width:100%;min-height:48px;margin-top:12px!important;background:#fff!important;border:1px solid var(--ys-line)!important;color:var(--ys-coral)!important;text-align:center!important;font-size:13px!important;font-weight:700!important}
.v48-text-editor{flex:1;padding:28px 22px}
.v48-text-editor label{display:flex;align-items:center;min-height:64px;padding:0 18px;background:#fff;border:1px solid #2f6fdb;border-radius:12px;box-shadow:0 0 0 3px #2f6fdb1f}
.v48-text-editor input{min-width:0;width:100%;height:60px;padding:0;background:transparent;border:0;outline:0;color:var(--ys-navy);font:600 24px/1 var(--ys-font-ui)}
.v48-text-editor label span{flex:none;margin-left:10px;color:var(--ys-muted);font-size:14px}
.v48-text-editor.multiline textarea{width:100%;min-height:260px;padding:18px;background:#fff;border:1px solid #2f6fdb;border-radius:12px;outline:0;box-shadow:0 0 0 3px #2f6fdb1f;color:var(--ys-navy);font:500 16px/1.7 var(--ys-font-ui);resize:none}
.v48-family-panel,.v48-invite-panel,.v48-notification-panel{background:var(--ys-ivory)}
.v48-owner-card{display:grid;gap:6px;margin:0 18px 14px;padding:18px;background:var(--ys-navy);color:#fff}
.v48-owner-card span,.v48-owner-card small{font-size:11px;opacity:.72}.v48-owner-card strong{font-size:17px}.v48-owner-card small{line-height:1.5}
.v48-family-list{margin:0 18px 24px;background:#fff;border:1px solid var(--ys-line)}
.v48-family-member{border-bottom:1px solid var(--ys-line)}.v48-family-member:last-child{border-bottom:0}
.v48-family-summary{display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:88px;padding:12px 14px!important;text-align:left!important}
.v48-family-avatar,.v48-doctor-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--ys-sage);color:#fff;font-weight:700}
.v48-family-summary>span:nth-child(2){display:grid;gap:3px}.v48-family-summary small{color:var(--ys-muted);font-size:11px}.v48-family-summary svg{width:16px}
.v48-family-permissions{padding:0 14px 14px;background:#fafaf8;border-top:1px solid var(--ys-line)}
.v48-family-permissions>button:not(.v48-remove-member){display:grid!important;grid-template-columns:minmax(0,1fr) 32px;align-items:center;width:100%;min-height:54px;border-bottom:1px solid var(--ys-line)!important;text-align:left!important}
.v48-family-permissions>button>span{display:grid;gap:3px}.v48-family-permissions small{color:var(--ys-muted);font-size:10px}.v48-family-permissions i,.v48-setting-toggle i{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--ys-line);border-radius:14px}.v48-family-permissions i.on,.v48-setting-toggle i.on{background:var(--ys-sage);border-color:var(--ys-sage);color:#fff}
.v48-remove-member{display:block!important;width:100%;min-height:42px;margin-top:12px!important;color:var(--ys-coral)!important;text-align:center!important;font-size:12px!important}
.v48-code-entry,.v48-invite-doctor,.v48-connected{display:grid;gap:18px;margin:24px 18px;padding:22px;background:#fff;border:1px solid var(--ys-line);text-align:center}
.v48-code-entry input{height:64px;padding:0 14px;border:1px solid #2f6fdb;border-radius:12px;outline:0;box-shadow:0 0 0 3px #2f6fdb1f;color:var(--ys-navy);text-align:center;font:700 26px/1 var(--ys-font-ui);letter-spacing:.14em;text-transform:uppercase}
.v48-code-entry button,.v48-invite-doctor button,.v48-connected button{min-height:48px;background:var(--ys-navy)!important;color:#fff!important;text-align:center!important;font-size:14px!important;font-weight:700!important}.v48-code-entry button:disabled{opacity:.35}
.v48-invite-doctor{justify-items:center}.v48-invite-doctor small{color:var(--ys-muted);font-size:12px}.v48-invite-doctor p{margin:0;font-size:13px;line-height:1.6}
.v48-connected{justify-items:center}.v48-connected>svg{width:40px;height:40px;color:var(--ys-sage)}
.v48-doctor-code{display:grid;gap:10px;margin:0 18px 16px;padding:26px;background:var(--ys-navy);color:#fff;text-align:center}.v48-doctor-code span,.v48-doctor-code small{font-size:11px;opacity:.72}.v48-doctor-code strong{font-size:32px;letter-spacing:.12em}
.v48-connection-log,.v48-settings-section{margin:0 18px 16px;padding:0 16px;background:#fff;border:1px solid var(--ys-line)}
.v48-connection-log>div{display:flex;align-items:center;justify-content:space-between;min-height:54px;border-bottom:1px solid var(--ys-line)}.v48-connection-log>div:last-child{border-bottom:0}.v48-connection-log span{font-size:13px}.v48-connection-log strong{font-size:14px}
.v48-settings-section{padding-top:16px}.v48-settings-section h3{margin:0 0 12px;font-size:16px}
.v48-time-options{display:grid;border-top:1px solid var(--ys-line)}.v48-time-options button,.v48-setting-toggle{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:54px;border-bottom:1px solid var(--ys-line)!important;font-size:14px!important}.v48-time-options button[aria-pressed=true]{color:var(--ys-coral)!important;font-weight:700!important}.v48-time-options svg{width:16px}
@media(max-width:380px){.v48-form-section{margin-right:12px;margin-left:12px;padding:14px}.v48-subitem-row{grid-template-columns:minmax(0,1fr) 96px 20px;gap:7px}.v48-metric-group>header>div{gap:8px}.v48-add-subitems{font-size:11px!important}}


/* v4.9 unified Apple-style field, choice, and date system */
:root{--v49-accent:#ef6a4d;--v49-line:#e7e8e4;--v49-fill:#fcfcfa}
.brand-mark-light{filter:brightness(0) invert(1)}
.v49-editor-page{position:absolute;inset:0;z-index:80;min-height:100%;background:#fcfcfa;overflow-y:auto;overscroll-behavior:contain;color:#1f2925}
.v49-editor-header{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:72px 1fr 72px;align-items:center;height:58px;padding:0 10px;background:rgba(250,250,248,.94);border-bottom:1px solid var(--v49-line);backdrop-filter:blur(18px)}
.v49-editor-header h2{margin:0;text-align:center;font-size:17px;font-weight:650;letter-spacing:0}.v49-editor-header button{border:0;background:none;color:#51605a;font-size:16px;padding:10px 6px}.v49-editor-header .done{color:var(--v49-accent);font-weight:650}.v49-editor-header button:disabled{opacity:.35}
.v49-picker-body,.v49-text-editor,.v49-pair-editor,.v49-date-body{padding:18px 16px 110px}.v49-picker-list,.v49-pair-editor>div,.v49-date-input,.v49-text-editor>label,.v49-text-editor>textarea{display:block;background:#fff;border:1px solid var(--v49-line);border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(20,35,29,.03)}
.v49-picker-list button{width:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border:0;border-bottom:1px solid var(--v49-line);background:#fff;color:#202a26;font-size:16px;text-align:left}.v49-picker-list button:last-child{border-bottom:0}.v49-picker-list i,.panel-option svg,.picker-suggestions button svg,.v49-family-permissions i{display:grid;place-items:center;width:22px;height:22px;min-width:22px;border:1.5px solid #c8ceca;border-radius:50%;color:transparent;font-style:normal;font-size:14px;font-weight:800}.v49-picker-list i.selected,.panel-option[data-selected=true] svg,.v49-family-permissions i.selected{border-color:var(--v49-accent);background:var(--v49-accent);color:#fff}.v49-custom-choice{width:100%;height:52px;margin-top:14px;border:1px solid #efd2ca;border-radius:14px;background:#fff;color:var(--v49-accent);font-size:16px;font-weight:620}
.v49-text-editor input,.v49-text-editor textarea,.v49-pair-editor input,.v49-date-input input{width:100%;min-height:56px;padding:0 15px;border:0;outline:0;background:#fff;color:#1f2925;font:inherit;font-size:17px}.v49-text-editor textarea{min-height:240px;padding-top:15px;resize:none}.v49-text-editor label{display:flex;align-items:center}.v49-text-editor label>span{padding-right:15px;color:#6d756f}.v49-text-editor label:focus-within,.v49-pair-editor label:focus-within,.v49-date-input:focus-within{box-shadow:0 0 0 2px rgba(239,106,77,.24)}
.v49-pair-editor>div{display:grid;grid-template-columns:minmax(0,1fr) 120px}.v49-pair-editor label{min-width:0;display:block}.v49-pair-editor label+label{border-left:1px solid var(--v49-line)}.v49-pair-editor label span,.v49-date-input span{display:block;padding:12px 15px 0;color:#747c77;font-size:13px}.v49-date-body .calendar-picker{margin-top:16px;background:#fff;border-radius:18px;border:1px solid var(--v49-line);padding:12px}
.v49-form-list{margin:16px;background:#fff;border:1px solid var(--v49-line);border-radius:17px;overflow:hidden}.v49-form-list>button{width:100%;min-height:62px;display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:8px;padding:0 16px;border:0;border-bottom:1px solid var(--v49-line);background:#fff;text-align:left}.v49-form-list>button:last-child{border-bottom:0}.v49-form-list strong{text-align:right;font-size:15px;font-weight:500;color:#606b65}.v49-submit-dock{position:sticky;bottom:0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#fcfcfa 24%)}.v49-submit-dock button,.v49-family-add>button{width:100%;height:50px;border:0;border-radius:14px;background:var(--v49-accent);color:#fff;font-size:16px;font-weight:650}.v49-submit-dock button:disabled,.v49-family-add>button:disabled{opacity:.35}
.v49-family-page{background:#fcfcfa}.v49-owner-row,.v49-family-list,.v49-family-add{margin:16px;background:#fff;border:1px solid var(--v49-line);border-radius:17px;overflow:hidden}.v49-owner-row{display:flex;align-items:center;justify-content:space-between;padding:20px 16px}.v49-owner-row strong{font-size:17px}.v49-owner-row span{font-size:15px;color:#6d756f}.v49-family-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 16px 8px}.v49-family-heading h3{margin:0;font-size:18px}.v49-family-heading button{border:0;background:none;color:var(--v49-accent);font-size:16px;font-weight:650}.v49-family-list article+article{border-top:1px solid var(--v49-line)}.v49-family-summary{width:100%;min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border:0;background:#fff;text-align:left}.v49-family-summary span{display:flex;align-items:baseline;gap:10px}.v49-family-summary strong{font-size:17px}.v49-family-summary em{font-style:normal;color:#6d756f;font-size:15px}.v49-family-permissions{padding:0 16px 14px;background:#fff}.v49-family-permissions button{width:100%;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0;border:0;border-top:1px solid var(--v49-line);background:#fff;font-size:15px;text-align:left}.v49-family-permissions .remove{justify-content:center;color:#c34f45}.v49-family-add{padding:16px}.v49-family-add label{display:block;border:1px solid var(--v49-line);border-radius:14px;background:#fff}.v49-family-add label span{display:block;padding:11px 14px 0;color:#6d756f;font-size:13px}.v49-family-add input{width:100%;height:48px;padding:0 14px;border:0;background:transparent;font-size:17px;outline:0}.v49-family-add .v49-editor-page{position:fixed}.v49-family-add>button{margin-top:16px}.v49-family-add .v49-relation-row{height:58px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--v49-line);border-radius:14px;background:#fff;color:#1f2925;text-align:left;font-size:16px}.v49-family-add .v49-relation-row strong{font-weight:500;color:#69716d}
.panel-option{min-height:56px}.panel-option svg{stroke:currentColor}.panel-option:not([data-selected=true]) svg{opacity:1}.picker-suggestions button[data-selected=true] svg{border-color:var(--v49-accent);color:var(--v49-accent)}
@media(max-width:520px){.v49-pair-editor>div{grid-template-columns:minmax(0,1fr) 112px}.v49-editor-page{min-height:100dvh}}


/* 医时录 v5.0：图表坐标、表单边界与按钮对齐 */
.v50-trend{width:100%;min-width:0;margin-top:4px}
.v50-trend svg{width:100%;max-width:100%;overflow:hidden}
.v50-trend .v50-grid line{stroke:#12345624;stroke-dasharray:3 3;stroke-width:1}
.v50-trend .v50-grid text,.v50-trend .v50-x-labels text{fill:#6c7b87;font:500 9px/1 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v50-trend .v50-axis{stroke:#7d8a94;stroke-width:1}
.v50-trend polyline{stroke-dasharray:1;stroke-dashoffset:1;animation:yi-trend-draw .72s cubic-bezier(.22,.74,.22,1) forwards}
.v50-trend .v50-x-labels text{opacity:0;animation:yi-v50-label .25s ease-out .38s forwards}
@keyframes yi-v50-label{to{opacity:1}}

.patient-phone-line{color:#526577!important;font-variant-numeric:tabular-nums}
.patient-row-main>div{gap:5px!important}

.v49-submit-dock button,.v49-family-add>button,.panel-primary,.panel-secondary,.panel-danger{text-align:center!important;justify-content:center!important;align-items:center!important}
.v49-submit-dock button,.v49-family-add>button{display:flex!important}

.action-panel.full-screen-panel{max-width:100%!important;overflow-x:hidden!important}
.v49-editor-page{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;background:#fcfcfa;z-index:20}
.v49-date-body{width:100%;max-width:100%;min-height:calc(100% - 62px);padding-bottom:calc(126px + var(--mobile-safe-area-height,0px))!important;overflow-x:hidden}
.v49-date-body .calendar-picker{width:100%;max-width:100%;min-width:0;margin-left:0!important;margin-right:0!important}
.v49-family-page{position:relative;max-width:100%;overflow-x:hidden!important}
.v49-family-add{position:relative;max-width:calc(100% - 32px);overflow:visible!important}
.v49-family-add .v49-editor-page{position:absolute!important;inset:-16px!important;width:calc(100% + 32px)!important;height:calc(100vh - 54px)!important;max-width:none!important}
.v49-picker-body,.v49-picker-list{width:100%;max-width:100%;min-width:0}
.v49-picker-list button{width:100%;max-width:100%;min-width:0}

@media(max-width:380px){
  .patient-row-main{grid-template-columns:40px minmax(0,1fr) 48px 14px!important;gap:7px!important}
  .patient-row-main>div{min-width:0}
  .patient-phone-line{font-size:11px!important}
  .v49-picker-body,.v49-date-body{padding-left:12px!important;padding-right:12px!important}
}
@media(prefers-reduced-motion:reduce){.v50-trend polyline,.v50-trend circle,.v50-trend .v50-x-labels text{animation:none!important;stroke-dashoffset:0!important;opacity:1!important}}


/* 医时录 v5.1：结果优先的通用科研筛选 */
.research-v51-result,.research-v51-search,.research-v51-filters{margin:0 20px 16px;padding:0 0 16px;border-bottom:1px solid #d7ddda}
.research-v51-result{padding-bottom:18px}
.research-v51-count{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-bottom:18px}
.research-v51-count>div{display:flex;align-items:end;gap:7px}
.research-v51-count span{color:#344b59;font-size:13px;font-weight:700}
.research-v51-count strong{font-family:Roboto,var(--ys-font-ui);font-size:44px;line-height:.95;color:#173c52;font-variant-numeric:tabular-nums;letter-spacing:-1.5px}
.research-v51-count small{padding-bottom:3px;color:#455864;font-size:14px;font-weight:700}
.research-v51-result h2,.research-v51-search h2,.research-v51-filters h2{margin:0 0 12px;color:#21333f;font-size:15px;line-height:1.3}
.research-v51-chart{display:grid;grid-template-columns:30px minmax(0,1fr);height:154px}
.research-v51-y-axis{display:flex;flex-direction:column;justify-content:space-between;height:122px;padding-right:6px;color:#79858d;font-family:Roboto,var(--ys-font-ui);font-size:9px;text-align:right;font-variant-numeric:tabular-nums}
.research-v51-plot{position:relative;height:122px;border-left:1px solid #819099;border-bottom:1px solid #819099}
.research-v51-gridlines{position:absolute;inset:0;pointer-events:none}
.research-v51-gridlines span{position:absolute;left:0;right:0;border-top:1px solid #dce2e5}
.research-v51-bars{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;height:100%;padding:0 8px;gap:8px}
.research-v51-bar-slot{position:relative;display:flex;align-items:flex-end;justify-content:center;height:100%}
.research-v51-bar-slot strong{position:absolute;color:#df6647;font-family:Roboto,var(--ys-font-ui);font-size:9px;font-weight:700;font-variant-numeric:tabular-nums}
.research-v51-bar{width:55%;min-height:0;border-radius:3px 3px 0 0;background:#e57756;transform-origin:bottom;animation:yi-v51-bar .55s cubic-bezier(.2,.75,.25,1) both}
.research-v51-bar-slot span{position:absolute;top:128px;left:50%;transform:translateX(-50%);color:#6a7780;font-family:Roboto,var(--ys-font-ui);font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums}
@keyframes yi-v51-bar{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.research-v51-search{padding-top:0;padding-bottom:16px}
.research-v51-input{display:flex;align-items:center;min-height:46px;padding:0 8px 0 14px;border:1.5px solid #bcc7cb;border-radius:12px;background:#fbfcfa;transition:border-color .18s,box-shadow .18s}
.research-v51-input:focus-within{border-color:#e57756;box-shadow:0 0 0 3px #e577561f}
.research-v51-input input{min-width:0;flex:1;height:42px;border:0!important;outline:0;background:transparent!important;color:#1f333f;font-size:15px!important;padding:0!important;box-shadow:none!important}
.research-v51-input input::placeholder{color:#909aa0}
.research-v51-input button{height:32px;padding:0 8px;border:0;background:transparent;color:#d76040;font-size:12px;font-weight:700}
.research-v51-match-counts{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.research-v51-match-counts span{padding:6px 9px;border-radius:999px;background:#f3f5f2;color:#52646f;font-size:12px;font-weight:650}
.research-v51-match-counts b{color:#d85f3f;font-family:Roboto,var(--ys-font-ui);font-size:12px;font-variant-numeric:tabular-nums}
.research-v51-match-counts .empty{color:#8a5f53;background:#fbefeb}
.research-v51-hits{display:flex;gap:6px;margin-top:8px;overflow:hidden}
.research-v51-hits>span{display:flex;align-items:center;gap:5px;min-width:0;padding:6px 8px;border:1px solid #e4e7e2;border-radius:9px;color:#435762;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.research-v51-hits>span b{flex:0 0 auto;color:#7b898f;font-size:10px}
.research-v51-hits>span.more{flex:0 0 auto;color:#d75f40;font-family:Roboto,var(--ys-font-ui);font-weight:700}
.research-v51-filter-list{overflow:hidden;border-top:1px solid #dce1de;border-bottom:1px solid #dce1de}
.research-v51-filter-list>div{display:flex;align-items:center;justify-content:space-between;min-height:43px;padding:0 13px;border-bottom:1px solid #e8ebe6}
.research-v51-filter-list>div:last-child{border-bottom:0}
.research-v51-filter-list span{color:#51616b;font-size:13px}
.research-v51-filter-list strong{color:#263d4a;font-size:13px;font-weight:700}
.research-v51-edit{display:flex;align-items:center;justify-content:center;width:100%;height:43px;margin-top:14px;border:1.5px solid #173c52;border-radius:4px;background:transparent;color:#173c52;font-size:14px;font-weight:750}
.research-v51-edit:active{transform:scale(.99)}
@media(max-width:380px){.research-v51-result,.research-v51-search,.research-v51-filters{margin-left:18px;margin-right:18px}.research-v51-count strong{font-size:40px}.research-v51-hits>span:nth-child(3){display:none}}
@media(prefers-reduced-motion:reduce){.research-v51-bar{animation:none}}


/* 医时录 v5.6：全站近白象牙底、账户协议与后台接入前交互统一 */
.v52-login-page,.v52-cert-page{min-height:100%;padding:34px 28px 24px;color:var(--ys-navy);background:var(--ys-ivory);overflow:auto}
.v52-login-brand,.v52-cert-brand>div{display:flex;align-items:center;gap:12px}
.v52-login-brand{justify-content:center;margin-top:14px}
.v52-login-brand img,.v52-cert-brand img{width:48px;height:48px;object-fit:contain}
.v52-login-brand strong,.v52-cert-brand strong{font-size:27px;letter-spacing:.04em}
.v52-login-page h1{margin:34px 0 34px;text-align:center;font-size:40px;line-height:1.1}
.v52-role-switch{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #cdd5d5;border-radius:14px;background:#fff}
.v52-role-switch button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;color:var(--ys-navy);font-size:18px;font-weight:750}
.v52-role-switch button+button{border-left:1px solid #dde2df}
.v52-role-switch button[data-selected=true]{color:#fff;background:var(--ys-coral)}
.v52-role-switch img{width:30px;height:34px;object-fit:contain;transform-origin:center}
.v52-role-switch button[data-role=doctor] img{width:38px;height:38px;transform:scale(1.25)}
.v52-role-switch button[data-role=patient][data-selected=true] img{filter:brightness(0) invert(1)}
.v52-role-switch button[data-role=doctor]:not([data-selected=true]) img{filter:brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(1801%) hue-rotate(167deg) brightness(91%) contrast(98%)}
.v52-login-page h2{margin:30px 4px 12px;font-size:18px}
.v52-login-page button,.v52-cert-page button,.v52-time-page button,.v52-followup-calendar button{border:0;margin:0;padding:0;background:transparent;color:inherit;font:inherit}
.v52-login-methods{border-top:1px solid var(--ys-line)}
.v52-login-methods button{display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:64px;border:0;border-bottom:1px solid var(--ys-line);background:transparent;text-align:left}
.v52-login-methods img{width:28px;height:28px;object-fit:contain}
.v52-login-methods strong{font-size:16px}
.v52-login-methods button>svg:last-child{width:18px;height:18px;color:var(--ys-muted)}
.v52-login-page footer{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:58px}
.v52-login-page footer button{color:var(--ys-navy);font-size:13px}
.v52-login-page footer i{width:1px;height:14px;background:var(--ys-line)}
.v52-cert-page{padding-top:52px}
.v52-cert-brand{display:flex;align-items:center;justify-content:space-between}
.v52-cert-brand button{color:var(--ys-coral);font-size:14px;font-weight:700}
.v52-cert-page h1{margin:30px 0 10px;font-size:36px;line-height:1.1}
.v52-cert-status{display:inline-flex;padding:6px 10px;border-radius:10px;color:var(--ys-coral);background:#f9e8e2;font-size:13px;font-weight:750}
.v52-cert-summary{margin-top:24px;border-top:1px solid var(--ys-line)}
.v52-cert-summary>div{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;min-height:62px;border-bottom:1px solid var(--ys-line)}
.v52-cert-summary span{font-size:14px}
.v52-cert-summary strong{text-align:right;font-size:14px;line-height:1.35}
.v53-cert-field-row{display:grid;grid-template-columns:78px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;min-height:62px;border-bottom:1px solid var(--ys-line)!important;text-align:left}
.v53-cert-field-row span{font-size:14px}
.v53-cert-field-row strong{min-width:0;text-align:right;font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v53-cert-field-row svg{width:17px;height:17px;color:var(--ys-muted)}
.v53-cert-field-page{position:relative;z-index:36;min-height:100%;padding-top:54px;color:var(--ys-navy);background:var(--ys-ivory);overflow:auto}
.v53-cert-field-page .v49-editor-header{background:#fcfcfaf2}
.v53-cert-field-content{padding:26px 22px}
.v53-cert-field-content label{display:block;margin:0 0 10px;font-size:15px;font-weight:750}
.v53-cert-field-content input{width:100%;height:54px;padding:0 15px;border:1px solid #cbd3d4;border-radius:13px;outline:0;background:#fff;color:var(--ys-navy);font-size:17px;box-shadow:0 1px 1px #1738530a}
.v53-cert-field-content input:focus{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3519}
.v53-cert-field-content small{display:block;margin-top:10px;color:var(--ys-muted);font-size:12px;line-height:1.45}
.v52-cert-credentials h2{margin:28px 0 12px;font-size:18px}
.v52-cert-credentials button{display:grid;grid-template-columns:28px minmax(0,1fr) auto 18px;align-items:center;gap:10px;width:100%;min-height:62px;margin-bottom:10px;padding:0 14px;border:1px solid #cbd3d4;border-radius:12px;text-align:left;background:#fff}
.v52-cert-credentials button>svg:first-child{width:23px;height:23px}
.v52-cert-credentials button>svg:last-child{width:17px;height:17px;color:var(--ys-muted)}
.v52-cert-credentials button span{color:var(--ys-coral);font-size:14px;font-weight:750}
.v52-cert-credentials button[data-uploaded=true] span{color:var(--ys-sage)}
.v52-cert-submit{width:100%;min-height:52px;margin-top:18px;border-radius:12px;background:var(--ys-coral);color:#fff;font-size:17px;font-weight:800;text-align:center}
.v52-cert-submit:disabled{opacity:.38}
.v52-cert-page>p{margin:12px 0 0;color:var(--ys-muted);font-size:12px;text-align:center}

.v52-review-page{min-height:100%;padding:64px 28px 34px;color:var(--ys-navy);background:var(--ys-ivory);overflow:auto}
.v52-review-brand{display:flex;align-items:center;justify-content:center;gap:12px}
.v52-review-brand img{width:48px;height:48px;object-fit:contain}
.v52-review-brand strong{font-size:27px;letter-spacing:.04em}
.v52-review-icon{display:grid;place-items:center;width:78px;height:78px;margin:92px auto 26px;border-radius:24px;color:var(--ys-coral);background:#f7e6df}
.v52-review-icon[data-approved=true]{color:#fff;background:var(--ys-sage)}
.v52-review-icon svg{width:36px;height:36px}
.v52-review-page h1{margin:0;text-align:center;font-size:36px;line-height:1.1}
.v52-review-page>p{margin:12px 0 38px;color:var(--ys-muted);text-align:center;font-size:15px}
.v52-review-status{display:flex;align-items:center;justify-content:space-between;min-height:64px;border-top:1px solid var(--ys-line);border-bottom:1px solid var(--ys-line)}
.v52-review-status span{color:var(--ys-coral);font-size:16px;font-weight:800}
.v52-review-status span[data-approved=true]{color:var(--ys-sage)}
.v52-review-status small{color:var(--ys-muted);font-size:12px}
.v52-review-steps{margin-top:20px}
.v52-review-steps>div{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:52px}
.v52-review-steps i{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd3d4;border-radius:50%;color:var(--ys-muted);font-size:12px;font-style:normal}
.v52-review-steps>div[data-current=true] i{border-color:var(--ys-coral);color:var(--ys-coral)}
.v52-review-steps>div[data-done=true] i{border-color:var(--ys-sage);background:var(--ys-sage);color:#fff}
.v52-review-steps span{font-size:14px;font-weight:700}
.v52-review-steps small{color:var(--ys-muted);font-size:12px}

.v52-dashboard-row{grid-template-columns:48px minmax(0,1fr) minmax(74px,.8fr) 18px!important;min-height:68px!important}
.v52-dashboard-person{display:flex;min-width:0;flex-direction:column;gap:4px}
.v52-dashboard-person strong{font-size:15px}
.v52-dashboard-person small{color:var(--ys-muted);font:500 11px/1.2 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.v52-dashboard-row>span{text-align:right;font-size:12px!important}

.v52-time-page{position:absolute;inset:0;z-index:30;display:flex;min-height:100%;flex-direction:column;background:#f6f7f3;overflow:hidden}
.v52-time-display{display:flex;align-items:center;justify-content:center;gap:10px;padding:26px 0 18px;color:var(--ys-navy);font-family:Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v52-time-display strong{font-size:38px}
.v52-time-display span{font-size:32px}
.v52-time-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0;flex:1;padding:0 16px 22px}
.v52-time-columns section{display:flex;min-height:0;flex-direction:column}
.v52-time-columns h3{margin:0 0 8px;color:var(--ys-muted);font-size:13px;text-align:center}
.v52-time-columns section>div{min-height:0;flex:1;border:1px solid var(--ys-line);border-radius:14px;background:#fff;overflow:auto;scrollbar-width:none}
.v52-time-columns section>div::-webkit-scrollbar{display:none}
.v52-time-columns button{display:grid;grid-template-columns:1fr 22px;align-items:center;width:100%;min-height:48px;padding:0 14px;border-bottom:1px solid var(--ys-line);color:var(--ys-navy);font:600 16px/1 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v52-time-columns button[data-selected=true]{color:var(--ys-coral);font-weight:800}
.v52-time-columns button i{display:grid;place-items:center;width:20px;height:20px;border:1px solid #cfd5d4;border-radius:50%;font-size:12px;font-style:normal}
.v52-time-columns button[data-selected=true] i{border-color:var(--ys-coral);background:var(--ys-coral);color:#fff}

.v52-followup-hero{padding-bottom:18px!important}
.v52-followup-calendar{margin-top:18px}
.v52-followup-month{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.v52-followup-month strong{color:#fff;font-size:15px}
.v52-followup-month button{min-height:34px;padding:0 10px;border:1px solid #ffffff70;border-radius:9px;color:#fff;font-size:12px;font-weight:700}
.v52-week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.v52-week-row button,.v52-month-grid button{display:flex;min-width:0;min-height:49px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:10px;color:#fff}
.v52-week-row small,.v52-month-grid small{font-size:10px;opacity:.72}
.v52-week-row strong,.v52-month-grid strong{font:700 14px/1 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v52-week-row button[data-selected=true],.v52-month-grid button[data-selected=true]{background:var(--ys-coral)}
.v52-weekdays,.v52-month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.v52-weekdays{margin-bottom:5px;color:#ffffffa8;font-size:10px;text-align:center}
.v52-month-grid{overflow:visible}
.v52-month-grid button,.v52-month-grid>span{min-height:40px}

.research-v51-result+.research-v51-search{margin-top:2px}

/* 医时录 v5.2：医生端工作台 / 患者，方案一（Apple Health editorial） */
.screen-page:has(.dashboard-hero),.screen-page:has(.patient-list){background:var(--ys-ivory)}
.dashboard-hero{padding:58px 24px 20px!important;color:var(--ys-navy)!important;background:var(--ys-ivory)!important}
.dashboard-hero .brand-lockup strong{color:var(--ys-navy)!important}
.dashboard-hero .brand-mark-light{filter:none!important}
.dashboard-hero .notice-button{color:var(--ys-navy)!important;font-size:14px!important;font-weight:650!important}
.dashboard-hero .notice-dot{width:7px;height:7px;box-shadow:none}
.dashboard-hero h1{margin-top:30px!important;font-size:40px!important;font-weight:750!important;letter-spacing:-.035em!important}
.dashboard-hero>p{margin-top:10px!important;color:#526273!important;font-size:16px!important}
.dashboard-hero .doctor-metrics{margin-top:20px!important;padding:19px 7px 17px;border:1px solid #dfe3e1;border-radius:13px;background:#ffffff8a}
.dashboard-hero .doctor-metrics .metric{color:var(--ys-navy)!important;gap:8px!important}
.dashboard-hero .doctor-metrics .metric span{color:#30465a!important;font-size:13px!important;font-weight:550!important}
.dashboard-hero .doctor-metrics .metric strong{font:650 31px/1 Roboto,var(--ys-font-ui)!important;letter-spacing:-.02em}
.dashboard-hero .doctor-metrics .metric strong.amber{color:#e44d35!important}
.screen-page:has(.dashboard-hero) .content-section{padding:19px 24px 0!important;background:var(--ys-ivory)!important}
.screen-page:has(.dashboard-hero) .content-section+.content-section{padding-top:17px!important}
.screen-page:has(.dashboard-hero) .section-heading{min-height:38px}
.screen-page:has(.dashboard-hero) .section-heading h2{font-size:22px!important;font-weight:750!important;letter-spacing:-.025em}
.screen-page:has(.dashboard-hero) .section-heading .text-action{color:#e44d35!important;font-size:13px!important;font-weight:650!important}
.screen-page:has(.dashboard-hero) .v52-dashboard-row{grid-template-columns:52px minmax(0,1fr) minmax(76px,.75fr) 14px!important;gap:9px!important;min-height:72px!important;border-bottom:1px solid #e0e3e1!important}
.screen-page:has(.dashboard-hero) .v52-dashboard-row time{color:#153855;font:600 13px/1 Roboto,var(--ys-font-ui)!important;font-variant-numeric:tabular-nums}
.screen-page:has(.dashboard-hero) .v52-dashboard-person{gap:4px!important}
.screen-page:has(.dashboard-hero) .v52-dashboard-person strong{font-size:15px!important;font-weight:700!important}
.screen-page:has(.dashboard-hero) .v52-dashboard-person small{color:#637181!important;font-size:11px!important;letter-spacing:.01em}
.screen-page:has(.dashboard-hero) .v52-dashboard-row>span{color:#445567!important;font-size:12px!important}
.screen-page:has(.dashboard-hero) .v52-dashboard-row>svg{width:16px!important;height:16px!important;color:#596978!important}

.screen-page:has(.patient-list) .page-header{padding:58px 24px 16px!important;background:var(--ys-ivory)!important}
.screen-page:has(.patient-list) .page-header h1{margin-top:29px!important;font-size:40px!important;font-weight:750!important;letter-spacing:-.035em!important}
.screen-page:has(.patient-list) .page-header .header-action{color:#e44d35!important;font-size:13px!important;font-weight:650!important}
.screen-page:has(.patient-list) .search-row{width:calc(100% - 48px)!important;height:52px!important;margin:0 24px 15px!important;padding:0 14px!important;border:1px solid #d8ddda!important;border-radius:13px!important;background:#ffffff8a!important;color:#7b838c!important;font-size:14px!important}
.screen-page:has(.patient-list) .search-row svg{width:20px!important;height:20px!important;color:#31495e!important}
.screen-page:has(.patient-list) .focus-list{padding:13px 24px 0!important;background:var(--ys-ivory)!important}
.screen-page:has(.patient-list) .focus-list h2{margin-bottom:10px!important;font-size:20px!important;font-weight:750!important;letter-spacing:-.02em}
.screen-page:has(.patient-list) .clinical-row.warning{grid-template-columns:72px minmax(0,1fr) auto 16px!important;gap:8px!important;min-height:56px!important;border-top:1px solid #e0e3e1!important;border-bottom:1px solid #e0e3e1!important}
.screen-page:has(.patient-list) .clinical-row.warning strong{font-size:14px!important}
.screen-page:has(.patient-list) .clinical-row.warning span{color:#536273!important;font-size:12px!important}
.screen-page:has(.patient-list) .clinical-row.warning em{color:#e44d35!important;font-size:12px!important;font-weight:650!important}
.screen-page:has(.patient-list) .clinical-row.warning svg{width:15px!important;height:15px!important;color:#596978!important}
.screen-page:has(.patient-list) .patient-filters{height:55px;margin:0 24px!important;border-bottom:1px solid #dfe3e1!important;background:var(--ys-ivory)!important}
.screen-page:has(.patient-list) .patient-filters button{min-height:55px!important;color:#445567!important;font-size:13px!important}
.screen-page:has(.patient-list) .patient-filters button.active{color:#e44d35!important;font-weight:700!important}
.screen-page:has(.patient-list) .patient-filters button.active:after{height:2px!important;background:#e44d35!important}
.screen-page:has(.patient-list) .patient-list{padding:0 24px!important;background:var(--ys-ivory)!important}
.screen-page:has(.patient-list) .patient-row-manage{align-items:stretch;gap:0!important;min-height:84px!important;border-bottom:1px solid #e0e3e1!important}
.screen-page:has(.patient-list) .patient-row-main{grid-template-columns:48px minmax(0,1fr) 54px 15px!important;gap:10px!important;padding-right:10px!important}
.screen-page:has(.patient-list) .initial-avatar{width:42px!important;height:42px!important;border-color:#9ba8b1!important;color:#153855!important;background:#ffffff78!important;font-size:17px!important;font-weight:650!important}
.screen-page:has(.patient-list) .patient-row-main>div{gap:4px!important}
.screen-page:has(.patient-list) .patient-row-main strong{font-size:16px!important;font-weight:720!important}
.screen-page:has(.patient-list) .patient-phone-line{color:#637181!important;font:500 11px/1.25 Roboto,var(--ys-font-ui)!important;font-variant-numeric:tabular-nums}
.screen-page:has(.patient-list) .patient-row-main time{color:#637181!important;font-size:11px!important;text-align:right}
.screen-page:has(.patient-list) .patient-row-main>svg{width:15px!important;height:15px!important;color:#596978!important}
.screen-page:has(.patient-list) .row-manage-button{flex-basis:60px!important;min-width:60px!important;margin-left:0!important;padding-left:12px!important;color:#153855!important;font-size:12px!important;font-weight:650!important;border-left:1px solid #dfe3e1!important}
.screen-page:has(.patient-list) .patient-upload-indicator{padding:1px 5px!important;color:#8a5d00!important;background:#fff8e7!important;border-color:#e2d09e!important;border-radius:5px!important;font-size:9px!important}
@media(max-width:380px){.dashboard-hero{padding-left:20px!important;padding-right:20px!important}.screen-page:has(.dashboard-hero) .content-section,.screen-page:has(.patient-list) .page-header,.screen-page:has(.patient-list) .focus-list,.screen-page:has(.patient-list) .patient-list{padding-left:20px!important;padding-right:20px!important}.screen-page:has(.patient-list) .search-row,.screen-page:has(.patient-list) .patient-filters{width:calc(100% - 40px)!important;margin-left:20px!important;margin-right:20px!important}.screen-page:has(.patient-list) .patient-row-main{grid-template-columns:42px minmax(0,1fr) 48px 14px!important;gap:7px!important}.screen-page:has(.patient-list) .row-manage-button{flex-basis:52px!important;min-width:52px!important;padding-left:8px!important}.screen-page:has(.dashboard-hero) .v52-dashboard-row{grid-template-columns:47px minmax(0,1fr) minmax(68px,.72fr) 14px!important}}
@media(max-width:380px){.v52-login-page,.v52-cert-page{padding-left:22px;padding-right:22px}.v52-login-page h1{font-size:36px}.v52-cert-page h1{font-size:33px}.v52-month-grid button{min-height:45px}}
@media(prefers-reduced-motion:reduce){.v52-cert-submit,.v52-role-switch button{transition:none!important}}

/* 医生端底色统一：象牙白承载信息，深蓝、珊瑚与鼠尾草绿仅作文字和状态强调。 */
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]){--doctor-ivory:var(--ys-ivory);background:var(--doctor-ivory)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .screen-page,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .page-header,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .content-section,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .focus-list,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .patient-list,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .patient-filters,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .full-screen-panel,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .action-panel,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .bottom-sheet,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .structured-field-page{background:var(--doctor-ivory)!important}
.device-screen:has(.bottom-nav[aria-label="医生端导航"]) .bottom-sheet,
.device-screen:has(.bottom-nav[aria-label="医生端导航"]) .full-screen-panel,
.device-screen:has(.bottom-nav[aria-label="医生端导航"]) .structured-field-page{background:var(--ys-ivory)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-hero,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-hero{color:var(--ys-navy)!important;background:var(--doctor-ivory)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-hero .brand-lockup strong,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-hero .brand-lockup strong{color:var(--ys-navy)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-hero .brand-mark-light,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-hero .brand-mark-light{filter:none!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-hero .notice-button,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-hero .header-action,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-hero p,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-identity span{color:#526273!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-metrics{border:1px solid #dfe3e1;border-radius:13px;background:#ffffff8a!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-metrics .metric{color:var(--ys-navy)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .doctor-metrics .metric span{color:#526273!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .profile-avatar{border-color:#183b56!important;color:#183b56!important;background:#ffffff78!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-followup-month strong,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-week-row button,
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-month-grid button{color:var(--ys-navy)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-followup-month button{border-color:#cfc7b8!important;color:var(--ys-navy)!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-weekdays{color:#66727c!important}
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-week-row button[data-selected=true],
.prototype-root:has(.bottom-nav[aria-label="医生端导航"]) .v52-month-grid button[data-selected=true]{color:#fff!important}

/* 补充病例资料：提交区属于表单末尾，不随可视区悬浮遮挡内容。 */
.v48-review-collection{display:flex!important;min-height:100%;padding-bottom:0!important;flex-direction:column}
.v48-submit-dock{position:static!important;bottom:auto!important;margin-top:auto;padding-bottom:calc(14px + var(--mobile-safe-area-height,0px));background:var(--ys-ivory)}

/* 所有全屏面板共用完整手机可视区，避免子页面从中部定位或露出底层标题。 */
.device-screen:has(.full-screen-sheet) .sheet-overlay{background:var(--ys-ivory)!important}
.full-screen-sheet{display:flex!important;flex-direction:column}
.full-screen-sheet>.sheet-content{position:relative!important;min-height:0!important;height:auto!important;flex:1!important;overflow-x:hidden!important}
.full-screen-sheet .action-panel.full-screen-panel{position:relative!important;width:100%!important;min-width:0!important;min-height:100%!important}
.full-screen-sheet .action-panel.full-screen-panel>.v49-editor-page{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important}
.device-screen:has(.bottom-sheet .v49-editor-page) .sheet-overlay{background:var(--ys-ivory)!important}
.bottom-sheet:has(.v49-editor-page){top:54px!important;bottom:0!important;height:auto!important;min-height:0!important;max-height:none!important;border-radius:0!important;display:flex!important;flex-direction:column!important}
.bottom-sheet:has(.v49-editor-page)>.sheet-content{position:relative!important;flex:1!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden!important}
.bottom-sheet:has(.v49-editor-page) .v49-editor-page{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:100%!important}
.v49-family-add{position:static!important}
.v49-family-add .v49-editor-page{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important}
.v48-invite-panel{min-height:100%!important}
.v48-code-entry{min-width:0!important}
.v48-code-entry input{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important}

/* 医生认证入驻码 */
.v56-entry-code{margin-top:24px}
.v56-entry-code label{display:block;margin:0 0 9px;font-size:16px;font-weight:750}
.v56-entry-code input{box-sizing:border-box;width:100%;height:54px;padding:0 15px;border:1px solid #cbd3d4;border-radius:13px;outline:0;background:#fff;color:var(--ys-navy);font:650 18px/1 Roboto,var(--ys-font-ui);letter-spacing:.1em}
.v56-entry-code input:focus{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3519}
.v56-entry-code input[aria-invalid=true]{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3519}
.v56-entry-code small{display:block;margin-top:8px;color:var(--ys-coral);font-size:12px;font-weight:650}

/* 登录协议与隐私政策 */
.v56-legal-page,.v56-legal-page *{box-sizing:border-box}
.mobile-scroll-content:has(>.v56-legal-page){height:100%;min-height:100%}
.v56-legal-page{position:absolute;inset:0;display:flex;min-height:0;height:auto;max-height:none;padding-top:54px;flex-direction:column;color:var(--ys-navy);background:var(--ys-ivory);overflow:hidden}
.v56-legal-header{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;min-height:58px;padding:0 22px;border-bottom:1px solid var(--ys-line);background:#fcfcfaf2}
.v56-legal-header button{min-height:44px;border:0;background:transparent;color:var(--ys-coral);font-size:14px;font-weight:650;text-align:left}
.v56-legal-header h1{margin:0;font-size:19px;text-align:center}
.v56-legal-content{min-height:0;flex:1;padding:18px 22px calc(28px + var(--mobile-safe-area-height,0px));overflow:auto;overscroll-behavior:contain}
.v56-legal-updated{color:var(--ys-muted);font-size:12px}
.v56-legal-intro{margin-top:13px;color:var(--ys-navy);font-size:14px;line-height:1.7}
.v56-legal-content section{padding:19px 0;border-bottom:1px solid var(--ys-line)}
.v56-legal-content section h2{margin:0 0 8px;font-size:16px}
.v56-legal-content section p{color:#435466;font-size:13px;line-height:1.75}
.v56-legal-note{margin-top:18px;color:var(--ys-muted);font-size:12px;line-height:1.6}

/* 亲友以手机号完成身份核验，关系和权限分开保存。 */
.v56-family-add{display:grid;gap:12px}
.v56-family-add>label{margin:0}
.v56-family-add>.v49-relation-row{margin:0}
.v56-family-help{margin:0 2px;color:var(--ys-muted);font-size:12px;line-height:1.55}
.v49-family-summary>span:first-child{display:grid;gap:6px;min-width:0}
.v49-family-summary strong{display:flex;align-items:center;gap:8px}
.v49-family-summary em{color:var(--ys-muted);font-size:12px;font-style:normal;font-weight:550}
.v49-family-summary small{color:var(--ys-muted);font:500 12px/1.25 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v56-family-pending{margin:0;padding:14px 0;color:var(--ys-amber);font-size:12px}

@media(max-width:380px){
  .full-screen-sheet>.sheet-content{padding-left:18px!important;padding-right:18px!important}
  .full-screen-inline-header{margin-left:-18px!important;margin-right:-18px!important;padding-left:18px!important;padding-right:18px!important}
  .v56-legal-content{padding-left:20px;padding-right:20px}
}


/* v5.6 登录、空状态与原生输入补充样式。 */
.yi-live-login{position:relative}
.yi-live-login h1{margin:18px 0 24px;font-size:28px;line-height:1.25}
.yi-live-login>label{display:block;margin:18px 0 0;color:var(--ys-navy);font-size:14px;font-weight:750}
.yi-live-login>label>span{display:block;margin-bottom:8px}
.yi-live-login input{width:100%;height:52px;padding:0 14px;border:1px solid #cbd3d4;border-radius:12px;background:#fff;color:var(--ys-navy);font:inherit;outline:0;box-sizing:border-box}
.yi-live-login input:focus{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3519}
.yi-live-back{position:static;display:inline-flex;align-items:center;min-height:44px;margin-top:14px!important;padding:0 4px!important;color:var(--ys-coral)!important;font-weight:750!important}
.yi-live-code{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:9px}
.yi-live-code button{border-radius:12px!important;background:#eef1ef!important;color:var(--ys-navy)!important;font-size:13px!important;font-weight:750!important}
.yi-live-submit{width:100%;min-height:52px;margin-top:22px!important;border-radius:12px!important;background:var(--ys-coral)!important;color:#fff!important;font-size:17px!important;font-weight:800!important}
.yi-live-submit:disabled,.yi-live-code button:disabled{opacity:.5}
.yi-live-ok,.yi-live-error{margin:12px 0 0;font-size:13px;line-height:1.5}.yi-live-ok{color:var(--ys-sage)}.yi-live-error{color:#b42318}
.yi-live-provision-copy{margin:0 0 8px;color:var(--ys-muted);font-size:14px;line-height:1.6;text-align:center}
.yi-live-account-mode{display:grid;grid-template-columns:1fr 1fr;margin:0 0 4px;padding:4px;border:1px solid var(--ys-line);border-radius:12px;background:#fff}
.yi-live-account-mode button{min-height:42px;border-radius:9px!important;font-weight:750!important}
.yi-live-account-mode button[data-active=true]{color:#fff!important;background:var(--ys-coral)!important}
.yi-live-unavailable{display:flex;margin-top:34px;padding:42px 20px;flex-direction:column;align-items:center;gap:10px;border:1px solid var(--ys-line);border-radius:18px;background:#fff}
.yi-live-unavailable img{width:46px;height:46px;object-fit:contain}.yi-live-unavailable strong{font-size:22px}.yi-live-unavailable span{color:var(--ys-muted);font-size:14px}
.v52-login-page:not(.yi-live-login) footer{margin-top:30px}
.yi-live-empty{display:flex;min-height:132px;margin:16px 18px;padding:22px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--ys-line);border-radius:16px;background:#fff;text-align:center}
.yi-live-empty strong{color:var(--ys-navy);font-size:17px}.yi-live-empty span{max-width:280px;color:var(--ys-muted);font-size:12px;line-height:1.6}.yi-live-empty button{margin-top:6px;padding:9px 14px;border:0;border-radius:10px;background:var(--ys-coral);color:#fff;font-weight:750}
.yi-live-remember{display:flex!important;min-height:44px;margin-top:10px!important;align-items:center;gap:10px;font-size:14px!important}.yi-live-remember input{width:20px!important;height:20px!important;margin:0;accent-color:var(--ys-coral)}.yi-live-remember span{margin:0!important}
.yi-live-feedback{position:fixed;inset:0;z-index:99999;display:grid;padding:24px;place-items:center;background:#102b2d42;backdrop-filter:blur(5px)}.yi-live-feedback-card{display:flex;width:min(280px,calc(100vw - 48px));padding:24px;box-sizing:border-box;flex-direction:column;align-items:center;gap:10px;border:1px solid #ffffffb8;border-radius:20px;background:#fff;box-shadow:0 18px 60px #102b2d2e;text-align:center}.yi-live-feedback-card img{width:42px;height:42px;animation:yi-pulse 1.1s ease-in-out infinite}.yi-live-feedback-card strong{font-size:18px;color:var(--ys-navy)}.yi-live-feedback-card span{font-size:13px;line-height:1.55;color:var(--ys-muted)}.yi-live-feedback-card button{min-height:42px;margin-top:4px;padding:0 24px;border:0;border-radius:11px;background:var(--ys-coral);color:#fff;font-weight:800}@keyframes yi-pulse{50%{transform:scale(.92);opacity:.64}}
.yi-live-sheet{position:absolute;inset:54px 0 calc(82px + var(--mobile-safe-area-height,0px));z-index:80;overflow:auto;padding:62px 20px 34px;box-sizing:border-box;background:#f5f6f3;animation:yi-sheet-in .22s ease-out}.yi-live-sheet>header{position:absolute;inset:8px 16px auto;display:grid;min-height:44px;grid-template-columns:64px 1fr 64px;align-items:center}.yi-live-sheet>header button{min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--ys-coral);font-weight:800;text-align:left}.yi-live-sheet>header h2{margin:0;font-size:18px;text-align:center}.yi-live-sheet>label{display:block;margin:15px 0}.yi-live-sheet>label>span{display:block;margin-bottom:7px;color:var(--ys-navy);font-size:13px;font-weight:800}.yi-live-sheet input,.yi-live-sheet select{width:100%;height:50px;padding:0 14px;box-sizing:border-box;border:1px solid #d2d8d5;border-radius:12px;background:#fff;color:var(--ys-navy);font:inherit}.yi-case-intro{margin:12px 0 20px;color:var(--ys-muted);font-size:13px;line-height:1.6}.yi-case-major-row{display:grid;width:100%;min-height:54px;margin-top:18px;padding:0 14px;grid-template-columns:1fr auto 18px;gap:8px;align-items:center;border:1px solid var(--ys-line);border-radius:13px;background:#fff;text-align:left}.yi-case-major-row strong{color:var(--ys-coral)}.yi-case-primary{width:100%;min-height:52px;margin-top:22px;padding:0 18px;border:0;border-radius:13px;background:var(--ys-coral);color:#fff;font-size:16px;font-weight:800;text-align:center!important}.yi-case-primary:disabled{opacity:.5}.yi-case-choice-list{display:flex;margin-top:16px;flex-direction:column;border:1px solid var(--ys-line);border-radius:15px;background:#fff;overflow:hidden}.yi-case-choice-list button{display:flex;min-height:54px;padding:0 16px;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid var(--ys-line);background:#fff;text-align:left;font-weight:750}.yi-case-choice-list button:last-child{border-bottom:0}.yi-case-choice-list i{display:grid;width:24px;height:24px;place-items:center;border:1px solid #bdc8c4;border-radius:50%;color:#fff;background:var(--ys-sage)}.yi-case-custom{width:100%;min-height:52px;margin-top:16px;padding:0 20px;border:1px solid var(--ys-coral);border-radius:13px;background:#fff;color:var(--ys-coral);font-weight:800;text-align:center!important}
.yi-cert-steps{display:grid;margin:16px 0 24px;grid-template-columns:repeat(3,1fr);gap:5px}.yi-cert-steps div{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--ys-muted);font-size:11px}.yi-cert-steps i{display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--ys-line);border-radius:50%;background:#fff;font-style:normal}.yi-cert-steps .active i,.yi-cert-steps .done i{border-color:var(--ys-sage);background:var(--ys-sage);color:#fff}.yi-cert-steps .active,.yi-cert-steps .done{color:var(--ys-navy);font-weight:800}.yi-cert-status{display:flex;margin-top:28px;padding:30px 22px;flex-direction:column;align-items:center;gap:10px;border:1px solid var(--ys-line);border-radius:18px;background:#fff;text-align:center}.yi-cert-status strong{font-size:20px}.yi-cert-status span{color:var(--ys-muted);font-size:13px;line-height:1.6}
.yi-code-card{display:flex;margin-top:16px;padding:30px 20px;flex-direction:column;align-items:center;gap:14px;border:1px solid var(--ys-line);border-radius:22px;background:#fff;box-shadow:0 12px 34px #16343712}.yi-code-card>span,.yi-code-card small{color:var(--ys-muted);font-size:13px}.yi-code-card>strong{font-size:36px;letter-spacing:6px;color:var(--ys-navy)}.yi-code-card>div{display:flex;width:100%;gap:10px}.yi-code-card button{min-height:46px;padding:0 12px;flex:1;border:1px solid var(--ys-coral);border-radius:12px;background:#fff;color:var(--ys-coral);font-weight:800;text-align:center!important}.yi-code-card button:first-child{background:var(--ys-coral);color:#fff}.yi-code-note{margin:18px;text-align:center;color:var(--ys-muted);font-size:12px;line-height:1.6}
button{transition:transform .12s ease,opacity .12s ease,background-color .18s ease}button:active:not(:disabled){transform:scale(.98)}@keyframes yi-sheet-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* v5.6 本轮统一视觉：搜索、选择器、全屏编辑与轻量动效共用一套语言。 */
.records-title-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:0 18px 16px!important}
.records-title-row h1{margin:0!important}
.records-search,.search-row{display:flex!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:48px!important;height:48px!important;margin:0 18px!important;padding:0 14px!important;box-sizing:border-box!important;align-items:center!important;gap:10px!important;border:1px solid #d8ddda!important;border-radius:14px!important;background:#fff!important;box-shadow:0 1px 2px #16343708!important;color:var(--ys-muted)!important}
.records-title-row .records-search{width:100%!important;margin:0!important}
.records-search input,.search-row input{display:block!important;min-width:0!important;width:100%!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--ys-navy)!important;font:600 13.5px/1.2 var(--ys-font-ui)!important;appearance:none!important}
.records-search input::placeholder,.search-row input::placeholder{color:#909a9e!important;opacity:1!important}
.records-search:focus-within,.search-row:focus-within{border-color:var(--ys-coral)!important;box-shadow:0 0 0 3px #e44d3514!important}
.search-row svg{width:19px!important;height:19px!important;flex:0 0 auto!important}

.yi-live-sheet{inset:54px 0 calc(82px + var(--mobile-safe-area-height,0px))!important;padding:0 20px 48px!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#f7f8f5!important}
.v56-family-page.yi-live-sheet{position:fixed!important;top:60px!important;bottom:0!important}
.yi-live-sheet>header{position:sticky!important;inset:auto!important;top:0!important;z-index:5;min-height:62px!important;margin:0 -20px 18px!important;padding:0 14px!important;box-sizing:border-box;background:#f7f8f5eF!important;border-bottom:1px solid #dde2df!important;backdrop-filter:blur(18px)}
.yi-live-sheet>header button,.full-screen-inline-header .inline-back,.v48-editor-header>button:first-child,.v49-editor-header>button:first-child,.v47-sheet-actions>button:first-child{color:var(--ys-coral)!important;font-weight:800!important}
.yi-live-sheet input,.yi-live-sheet textarea{width:100%;box-sizing:border-box;border:1px solid #d2d8d5;border-radius:13px;background:#fff;color:var(--ys-navy);font:600 15px/1.45 var(--ys-font-ui);outline:0}
.yi-live-sheet textarea{min-height:180px;padding:14px;resize:vertical}
.yi-live-sheet input:focus,.yi-live-sheet textarea:focus{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3514}
.yi-picker-row{display:grid;width:100%;min-height:54px;margin:15px 0;padding:0 14px;grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;align-items:center;border:1px solid #d2d8d5;border-radius:13px;background:#fff;color:var(--ys-navy);text-align:left!important}
.yi-picker-row>span{font-size:13px;font-weight:800}.yi-picker-row>strong{max-width:170px;overflow:hidden;color:var(--ys-coral);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.yi-picker-row svg{width:16px;height:16px;color:var(--ys-muted)}
.yi-unified-picker{position:fixed!important;inset:0!important;z-index:110!important;background:#f7f8f5!important}
.yi-unified-picker-list,.v48-picker-list,.v49-picker-list{display:flex!important;width:100%!important;overflow:hidden!important;flex-direction:column!important;border:1px solid #d8ddda!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 30px #1634370b!important}
.yi-unified-picker-list button,.v48-picker-list button,.v49-picker-list button{display:grid!important;width:100%!important;min-height:56px!important;padding:0 16px!important;grid-template-columns:minmax(0,1fr) 24px!important;align-items:center!important;border:0!important;border-bottom:1px solid #e3e7e5!important;background:#fff!important;color:var(--ys-navy)!important;font-size:15px!important;font-weight:700!important;text-align:left!important}
.yi-unified-picker-list button:last-child,.v48-picker-list button:last-child,.v49-picker-list button:last-child{border-bottom:0!important}
.yi-unified-picker-list i,.v48-picker-list i,.v49-picker-list i{display:grid;width:23px;height:23px;place-items:center;border:1.5px solid #c6ceca;border-radius:50%;background:#fff;color:transparent;font-style:normal;font-size:13px}
.yi-unified-picker-list button[data-selected=true] i,.v48-picker-list i.selected,.v49-picker-list i.selected{border-color:var(--ys-coral)!important;background:var(--ys-coral)!important;color:#fff!important}
.v48-editor-header,.v49-editor-header{min-height:62px!important;height:62px!important;background:#f7f8f5ef!important;border-bottom:1px solid #dde2df!important;backdrop-filter:blur(18px)}
.v48-picker-body,.v49-picker-body{padding:18px 18px 54px!important;background:#f7f8f5!important}

.v49-family-add{padding:10px 18px 48px!important}.v49-family-add>label{display:block;margin:16px 0}.v49-family-add>label>span{display:block;margin-bottom:7px;color:var(--ys-navy);font-size:13px;font-weight:800}.v49-family-add input{width:100%;height:52px;padding:0 14px;box-sizing:border-box;border:1px solid #d2d8d5;border-radius:13px;background:#fff;font:600 15px var(--ys-font-ui)}
.v49-family-add>.yi-case-primary{color:#fff!important;background:var(--ys-coral)!important}
.yi-patient-note-editor{bottom:0!important}.yi-patient-note-editor label{display:block;margin-top:8px}.yi-patient-note-editor label>span{display:block;margin-bottom:8px;font-size:13px;font-weight:800}.yi-patient-note-editor .yi-case-primary{position:sticky;bottom:12px}
.yi-live-sheet .yi-case-primary{min-height:52px!important;border:0!important;border-radius:13px!important;background:var(--ys-coral)!important;color:#fff!important}
.profile-note-heading-v41{align-items:center!important}.profile-note-heading-v41 button{min-height:44px!important;padding:0 6px!important;color:var(--ys-coral)!important;font-weight:800!important}

.yi-case-sheet>.yi-picker-row{margin:15px 0}.yi-case-custom{padding:0 20px!important;line-height:1.25!important}
.yi-case-metric-groups{display:flex;margin-top:18px;flex-direction:column;gap:14px}.yi-case-metric-groups article{padding:14px;border:1px solid #d8ddda;border-radius:16px;background:#fff;box-shadow:0 5px 18px #16343708}.yi-case-metric-groups h3{margin:0 0 12px;color:var(--ys-navy);font-size:16px}.yi-case-metric-groups article>button{width:100%;min-height:44px;margin-top:10px;border:1px solid #efd0c9;border-radius:11px;background:#fff;color:var(--ys-coral);font-weight:800}.yi-case-subitem{display:grid;margin-top:10px;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr) minmax(0,.7fr);gap:7px}.yi-case-subitem input{height:44px!important;padding:0 9px!important;font-size:12px!important}.yi-doctor-profile-sheet .panel-rows{overflow:hidden;border:1px solid #d8ddda;border-radius:16px;background:#fff}.yi-doctor-profile-sheet .panel-row{min-height:58px!important}

/* 资料、建联、授权医生与用药共享一致的卡片、留白和底部操作区。 */
.yi-sheet-action{text-align:right!important}.yi-profile-form,.yi-medication-form{display:flex;flex-direction:column;gap:15px}.yi-profile-field{display:block!important;margin:0!important}.yi-profile-field>span{display:block;margin-bottom:7px;color:var(--ys-navy);font-size:13px;font-weight:800}.yi-profile-field input{height:52px!important;padding:0 14px!important}.yi-profile-field small{display:block;margin:7px 2px 0;color:var(--ys-muted);font-size:11px;line-height:1.45}.yi-sticky-submit{position:sticky;bottom:4px;z-index:4;width:100%;min-height:52px;margin-top:22px;border:0;border-radius:14px;background:var(--ys-coral);box-shadow:0 10px 28px #7a291f38;color:#fff;font-size:16px;font-weight:850}.yi-sticky-submit:disabled{opacity:.55}.yi-certified-note,.yi-panel-lead{margin:4px 0 16px;padding:13px 14px;border:1px solid #e5ded6;border-radius:13px;background:#fffaf5;color:#6d655e;font-size:12px;line-height:1.65}.yi-profile-readonly .panel-row{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:12px!important;padding:0 15px!important}.yi-profile-readonly .panel-row strong{text-align:right;overflow-wrap:anywhere}
.yi-connect-card{display:flex;margin-top:8px;padding:22px 18px;flex-direction:column;gap:10px;border:1px solid #d8ddda;border-radius:20px;background:#fff;box-shadow:0 10px 32px #1634370c}.yi-connect-card>strong{font-size:20px;color:var(--ys-navy)}.yi-connect-card>p{margin:0 0 8px;color:var(--ys-muted);font-size:13px;line-height:1.65}.yi-connect-card input{height:58px!important;text-align:center;font-size:22px!important;font-weight:850!important;letter-spacing:3px;text-transform:uppercase}
.yi-authorized-doctors .yi-panel-lead{margin-top:4px}.yi-doctor-card-list{display:flex;flex-direction:column;gap:12px}.yi-doctor-card{display:grid;padding:17px;grid-template-columns:48px minmax(0,1fr);gap:13px;align-items:start;border:1px solid #d8ddda;border-radius:18px;background:#fff;box-shadow:0 8px 26px #1634370b}.yi-doctor-avatar{display:grid;width:48px;height:48px;place-items:center;border-radius:16px;background:linear-gradient(145deg,#174d50,#2e7774);color:#fff;font-size:19px;font-weight:850}.yi-doctor-card header{display:flex!important;position:static!important;min-height:0!important;margin:1px 0 5px!important;padding:0!important;align-items:center;justify-content:space-between;border:0!important;background:transparent!important}.yi-doctor-card header strong{font-size:16px;color:var(--ys-navy)}.yi-doctor-card header em{padding:4px 8px;border-radius:999px;background:#e7f1eb;color:#477a64;font-size:10px;font-style:normal;font-weight:850}.yi-doctor-card p{margin:0;color:#42575a;font-size:12px;line-height:1.5}.yi-doctor-card small{display:block;margin-top:5px;color:var(--ys-muted);font-size:11px}
.yi-authorized-list{overflow:hidden;margin-top:2px;border:1px solid #d8ddda;border-radius:16px;background:#fff}.yi-authorized-row{display:grid!important;min-height:78px!important;padding:0 16px!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;border-bottom:1px solid #e3e7e5}.yi-authorized-row:last-child{border-bottom:0}.yi-authorized-row .initial-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:var(--ys-sage);color:#fff;font-size:16px;font-weight:850}.yi-authorized-row>div{display:flex!important;min-width:0;align-items:flex-start!important;justify-self:stretch!important;flex-direction:column!important;gap:4px!important}.yi-authorized-row>div strong{width:auto!important;color:var(--ys-navy);font-size:15px;text-align:left!important}.yi-authorized-row>div span{overflow:hidden;color:#526468;font-size:13px;text-align:left!important;text-overflow:ellipsis;white-space:nowrap}.yi-authorized-row>em{justify-self:end!important;color:var(--ys-sage);font-size:13px;font-style:normal;font-weight:800}
.yi-medication-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.yi-medication-presets button{display:flex;min-height:58px;padding:10px 12px;flex-direction:column;align-items:flex-start;justify-content:center;border:1px solid #d8ddda;border-radius:13px;background:#fff;text-align:left}.yi-medication-presets button[data-selected=true]{border-color:var(--ys-coral);box-shadow:0 0 0 3px #e44d3513}.yi-medication-presets strong{max-width:100%;overflow:hidden;color:var(--ys-navy);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.yi-medication-presets small{margin-top:3px;color:var(--ys-coral);font-weight:800}.yi-date-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.yi-self-medications{margin:18px;padding:18px;border:1px solid #d8ddda;border-radius:18px;background:#fff}.yi-self-medications h2{margin:0 0 12px;font-size:17px}.yi-self-medications article{display:flex;padding:12px 0;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5e9e7}.yi-self-medications article>div{display:flex;min-width:0;flex-direction:column}.yi-self-medications article strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yi-self-medications article span,.yi-self-medications article small{color:var(--ys-muted);font-size:11px}.yi-signout{display:block;width:calc(100% - 36px);min-height:48px;margin:18px auto 104px;border:1px solid var(--ys-coral);border-radius:14px;background:#fff;color:var(--ys-coral);font-weight:850}.yi-signout-doctor{margin-bottom:110px}.yi-case-sheet{padding-bottom:112px!important}.yi-case-sheet>.yi-case-primary:last-of-type{position:sticky;bottom:4px;z-index:4;box-shadow:0 10px 28px #7a291f38}

.yi-smooth-calendar{overflow:hidden}.yi-calendar-week{display:grid;grid-template-columns:repeat(7,1fr);max-height:70px;opacity:1;transform:translateY(0);transition:max-height .34s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .34s cubic-bezier(.22,1,.36,1)}.yi-calendar-week button{display:flex;min-height:58px;flex-direction:column;align-items:center;justify-content:center;border:0;background:transparent}.yi-calendar-month{display:grid;max-height:0;overflow:hidden;opacity:0;transform:translateY(-8px);transition:max-height .42s cubic-bezier(.22,1,.36,1),opacity .24s ease,transform .38s cubic-bezier(.22,1,.36,1)}.yi-calendar-month>*{min-height:0}.yi-smooth-calendar[data-expanded=true] .yi-calendar-week{max-height:0;opacity:0;transform:translateY(-8px);pointer-events:none}.yi-smooth-calendar[data-expanded=true] .yi-calendar-month{max-height:380px;opacity:1;transform:none}.yi-smooth-calendar .v52-month-grid{animation:none!important}

.screen-page>main,.screen-page>.screen-content,.content-section,.profile-note-v41,.profile-settings-v41{animation:yi-content-in .28s cubic-bezier(.22,1,.36,1) both}.panel-row,.clinical-row,.patient-row-main,.profile-list>button{transition:transform .16s ease,background-color .2s ease,box-shadow .2s ease!important}.yi-live-sheet,.full-screen-panel,.v48-editor-page,.v49-editor-page{animation:yi-panel-enter .3s cubic-bezier(.22,1,.36,1) both!important}@keyframes yi-content-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes yi-panel-enter{from{opacity:0;transform:translateY(12px) scale(.995)}to{opacity:1;transform:none}}

/* 视觉复核：全屏页避开系统状态栏，并拉开标题、说明和文本框的层级。 */
.yi-live-sheet{position:fixed!important;inset:82px 0 calc(82px + var(--mobile-safe-area-height,0px))!important;padding-bottom:58px!important;background:#f7f8f5!important}
.yi-live-sheet>header{margin-bottom:24px!important}
.yi-live-sheet>label{margin:21px 0!important}.yi-live-sheet>label>span{margin-bottom:11px!important;font-size:14px!important;line-height:1.35!important}.yi-live-sheet input,.yi-live-sheet select{height:54px!important;padding-left:15px!important;padding-right:15px!important}
.yi-profile-form,.yi-medication-form{gap:22px!important}.yi-profile-field>span{margin-bottom:11px!important;font-size:14px!important;line-height:1.35!important}.yi-profile-field input{height:54px!important;padding:0 15px!important}.yi-profile-field small{margin:9px 2px 0!important;font-size:12px!important;line-height:1.55!important}.yi-picker-row{min-height:56px!important;margin:18px 0!important;padding:0 16px!important}.yi-sticky-submit{position:static!important;min-height:54px!important;margin-top:28px!important;background:var(--ys-coral)!important;color:#fff!important;text-align:center!important}.yi-certified-note,.yi-panel-lead{margin:4px 0 20px!important;padding:15px 16px!important;line-height:1.72!important}.yi-profile-readonly .panel-row{min-height:62px!important;padding:0 16px!important}.yi-connect-card{gap:13px!important;padding:24px 19px!important}.yi-date-time-grid{gap:13px!important}
.yi-medication-entry{z-index:500!important;display:flex!important;min-height:620px!important;overflow:hidden!important;padding:0 20px 12px!important;flex-direction:column!important;background:#f7f8f5!important}.yi-medication-entry>header{position:static!important;inset:auto!important;flex:0 0 62px!important;margin:0 -20px 18px!important;padding:0 14px!important}.yi-medication-entry>.yi-medication-form{position:static!important;min-height:0;flex:1 1 auto;overflow-y:auto;padding-bottom:20px;overscroll-behavior:contain}.yi-medication-entry>.yi-sticky-submit{position:static!important;width:100%!important;flex:0 0 54px;margin:10px 0 0!important}
.yi-medication-page.yi-form-open>:not(.yi-medication-entry){visibility:hidden!important}

@media(max-width:360px){.records-search,.search-row{margin-left:14px!important;margin-right:14px!important}.records-title-row{padding-left:14px!important;padding-right:14px!important}.yi-case-subitem{grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}.yi-case-subitem input:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.yi-calendar-week,.yi-calendar-month{transition-duration:.01ms!important}}


/* 本轮统一交互：保留珊瑚色内边框反馈，移除输入状态的深蓝外描边。 */
.device-screen input:focus-visible,.device-screen textarea:focus-visible,.device-screen select:focus-visible,.device-screen [contenteditable=true]:focus-visible{outline:0!important;outline-offset:0!important}
.device-screen input:focus,.device-screen textarea:focus,.device-screen select:focus{outline:0!important;box-shadow:none!important;border-color:var(--ys-coral)!important}
.records-search:focus-within,.search-row:focus-within{box-shadow:none!important;border-color:var(--ys-coral)!important}

/* 全屏编辑页完整遮住底层内容，并给触控滚动留下连续区域。 */
.yi-live-sheet{inset:52px 0 0!important;z-index:500!important;overflow-y:auto!important;padding-bottom:32px!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important}
.yi-live-sheet>header{top:0!important;z-index:8!important}
.yi-case-sheet{overflow-y:auto!important;padding-bottom:112px!important;touch-action:pan-y!important}
.yi-case-sheet>.yi-case-primary:last-of-type{position:sticky!important;bottom:12px!important;width:100%!important;margin:28px 0 0!important;box-sizing:border-box!important}
.yi-medication-entry{inset:52px 0 0!important;min-height:0!important;height:auto!important;overflow:hidden!important;padding-bottom:12px!important;touch-action:none!important}
.yi-medication-entry>.yi-medication-form{min-height:0!important;overflow-y:auto!important;padding:2px 1px 28px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
.yi-medication-entry>.yi-sticky-submit{flex:0 0 54px!important;margin:10px 0 0!important}

/* 药品预设折叠与动态用药时间。 */
.yi-preset-disclosure{overflow:hidden;border:1px solid #d8ddda;border-radius:15px;background:#fff}
.yi-preset-disclosure>button{display:grid;width:100%;min-height:56px;padding:0 15px;grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;align-items:center;border:0;background:#fff;color:var(--ys-navy);text-align:left}
.yi-preset-disclosure>button>span{font-size:14px;font-weight:800}.yi-preset-disclosure>button>strong{max-width:150px;overflow:hidden;color:var(--ys-coral);text-overflow:ellipsis;white-space:nowrap}
.yi-preset-disclosure .yi-medication-presets{max-height:250px;overflow-y:auto;padding:0 10px 10px;-webkit-overflow-scrolling:touch}
.yi-medication-times{display:grid;gap:18px}.yi-medication-times .yi-profile-field{margin:0!important}

/* 医生工作台与患者目录复原 v5.6 的层级。 */
.yi-focus-strip{margin:16px 18px 4px}.yi-focus-strip h2{margin:0 0 8px;color:var(--ys-navy);font-size:17px}.yi-focus-strip>button{display:grid;width:100%;min-height:52px;padding:0 10px;grid-template-columns:auto minmax(0,1fr) auto 16px;gap:8px;align-items:center;border:0;border-top:1px solid var(--ys-line);border-bottom:1px solid var(--ys-line);background:transparent;color:var(--ys-navy);text-align:left}.yi-focus-strip span{overflow:hidden;color:var(--ys-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.yi-focus-strip em{color:var(--ys-coral);font-size:11px;font-style:normal;font-weight:850}
.patient-row-manage{display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important}.patient-row-manage>.patient-row-main{min-width:0!important}.patient-row-manage>.row-manage-button{border:0!important;border-left:1px solid var(--ys-line)!important;background:transparent!important;color:var(--ys-navy)!important;font-size:12px!important;font-weight:850!important}
.patient-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.patient-filters button{font-size:12px!important}
.yi-review-list{margin-top:12px!important}.yi-review-list .clinical-row em{color:var(--ys-coral);font-size:11px;font-style:normal;font-weight:850}

/* 医生患者档案按原版结构恢复。 */
.patient-detail-v56{min-height:100%;padding-bottom:34px;background:var(--ys-ivory);color:var(--ys-navy)}
.patient-detail-header-v56{display:grid!important;min-height:118px;padding:54px 22px 20px;box-sizing:border-box;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:start;border-bottom:1px solid var(--ys-line);background:var(--ys-ivory)!important;color:var(--ys-navy)!important}
.patient-detail-header-v56>button{display:grid;width:34px;height:40px;padding:0;place-items:center;border:0;background:transparent;color:var(--ys-navy)}.patient-detail-header-v56>button svg{width:26px;height:26px}
.patient-detail-header-v56>div{min-width:0}.patient-detail-header-v56>div>span{display:flex;align-items:baseline;gap:13px}.patient-detail-header-v56 h1{margin:0;font-size:29px;line-height:1;font-weight:700}.patient-detail-header-v56 small{color:var(--ys-navy);font-size:15px;white-space:nowrap}.patient-detail-header-v56 p{margin:12px 0 0;color:var(--ys-muted);font:500 14px/1.2 Roboto,var(--ys-font-ui)}.patient-detail-header-v56>em{margin-top:2px;color:var(--ys-sage);font-size:13px;font-style:normal;font-weight:700;white-space:nowrap}
.patient-summary-grid-v56{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 22px;border-bottom:1px solid var(--ys-line);background:transparent}.patient-summary-grid-v56>div{display:flex;min-height:112px;padding:0 12px;box-sizing:border-box;flex-direction:column;justify-content:center;gap:12px}.patient-summary-grid-v56>div+div{border-left:1px solid var(--ys-line)}.patient-summary-grid-v56 span{color:var(--ys-muted);font-size:12px}.patient-summary-grid-v56 strong{font-size:14px;line-height:1.35;font-weight:600}
.patient-detail-actions-v56{display:grid;padding:20px 22px 24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--ys-line)}.patient-detail-actions-v56 button{min-height:48px;border:1.4px solid var(--ys-navy);background:transparent;color:var(--ys-navy);font-size:16px;font-weight:650;text-align:center}.patient-detail-actions-v56 button:first-child{border-color:var(--ys-coral);color:var(--ys-coral)}.patient-detail-actions-v56 button:last-child{grid-column:1/-1;border-color:#cfd5d2;border-radius:0;background:transparent;color:var(--ys-navy)}
.patient-cases-v56,.patient-note-v56{padding:26px 20px 0;background:transparent}.patient-cases-v56>header{display:flex!important;position:static!important;min-height:48px!important;margin:0!important;padding:0!important;align-items:center;justify-content:space-between;border:0!important;background:transparent!important}.patient-cases-v56 h2,.patient-note-v56 h2{margin:0;font-size:23px;font-weight:700}.patient-cases-v56 header button{border:0;background:transparent;color:var(--ys-coral);font-size:13px;font-weight:700}.patient-cases-v56>button{display:grid;width:100%;min-height:96px;padding:14px 2px;grid-template-columns:64px minmax(0,1fr) auto 18px;gap:12px;align-items:center;border:0;border-bottom:1px solid var(--ys-line);background:transparent;color:var(--ys-navy);text-align:left}.patient-cases-v56 time,.patient-cases-v56>button>span{display:flex;min-width:0;flex-direction:column}.patient-cases-v56 time strong{font-size:20px}.patient-cases-v56 small{margin-top:5px;overflow:hidden;color:var(--ys-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.patient-cases-v56 em{color:var(--ys-sage);font-size:11px;font-style:normal;font-weight:750}.patient-note-v56 p{white-space:pre-line;color:#42575a;font-size:14px;line-height:1.55}

/* 苹果式退出确认与更舒展的退出按钮。 */
.yi-signout{width:calc(100% - 48px)!important;margin:28px 24px 116px!important;border-color:#e7b2a7!important;border-radius:15px!important;background:#fff8f6!important;box-shadow:0 5px 18px #7a291f0d!important}
.yi-confirm-overlay{position:absolute;inset:0;z-index:2000;display:grid;padding:22px;place-items:center;background:#102a3070;backdrop-filter:blur(12px);animation:yi-content-in .18s ease both}.yi-confirm-card{width:100%;max-width:290px;overflow:hidden;border:1px solid #ffffff88;border-radius:20px;background:#fffffff2;box-shadow:0 24px 70px #102a3050;text-align:center}.yi-confirm-card>strong{display:block;padding:28px 20px 22px;font-size:18px}.yi-confirm-card>div{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #d9dddb}.yi-confirm-card button{min-height:52px;border:0;background:transparent;color:var(--ys-navy);font-weight:750}.yi-confirm-card button+button{border-left:1px solid #d9dddb;color:var(--ys-coral);font-weight:850}

.notification-panel .panel-row-button{min-height:68px!important;padding:0 16px!important}.notification-panel .panel-row-button span{font-weight:800!important}.notification-panel .panel-row-button strong{max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swipe-case-row .case-record-main{position:relative!important;z-index:2!important}
.yi-authorized-doctors>.yi-authorized-list{display:block!important;min-height:0!important;max-height:calc(100% - 8px)!important;overflow-y:auto!important;flex:0 1 auto!important}
.yi-authorized-row{height:78px!important;min-height:78px!important;max-height:78px!important}
.yi-live-sheet,.yi-medication-entry,.v56-family-page.yi-live-sheet{inset:0!important;padding-top:58px!important}
.yi-live-sheet>header{top:0!important}
.device-screen:has(.yi-live-sheet) .bottom-nav{visibility:hidden!important;pointer-events:none!important}


/* 病例/随访/用药：统一为固定标题、可滚动正文、固定底部主操作。 */
.yi-header-confirm{color:var(--ys-coral)!important;font-weight:850!important;text-align:right!important}
.device-screen button:focus-visible{outline:2px solid var(--ys-coral)!important;outline-offset:1px!important}.yi-live-sheet>header button:focus-visible,.action-panel .picker-back:focus-visible{outline:0!important}
.mobile-scroll-content:has(.yi-live-sheet),.screen-page:has(.yi-live-sheet){height:100%!important;min-height:100%!important}
.yi-live-sheet{position:absolute!important;height:auto!important;padding-top:112px!important}.yi-live-sheet>header{top:54px!important}
.yi-case-editor-v56,.yi-case-custom-page,.yi-followup-editor,.yi-medication-entry-v56{display:flex!important;height:auto!important;min-height:0!important;padding:112px 0 0!important;box-sizing:border-box!important;overflow:hidden!important;flex-direction:column!important;background:#f7f8f5!important}
.yi-case-editor-v56>header,.yi-case-custom-page>header,.yi-followup-editor>header,.yi-medication-entry-v56>header{position:absolute!important;top:54px!important;right:0!important;left:0!important;height:58px!important;margin:0!important;padding:0 16px!important;box-sizing:border-box!important}
.yi-case-form-body,.yi-followup-form-body,.yi-medication-entry-v56>.yi-medication-form{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;padding:20px 20px 30px!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior:contain!important}
.yi-case-form-body>label,.yi-followup-form-body>.yi-profile-field,.yi-medication-entry-v56 .yi-profile-field{display:grid!important;gap:8px!important;margin:0 0 20px!important}.yi-case-form-body>label>span,.yi-profile-field>span{margin:0 2px!important;line-height:1.35!important}
.yi-case-actionbar,.yi-picker-actionbar{position:static!important;z-index:10;flex:0 0 auto;padding:12px 20px calc(14px + var(--mobile-safe-area-height,34px));border-top:1px solid #d8ddda;background:#ffffffed;backdrop-filter:blur(18px)}
.yi-case-actionbar>button,.yi-picker-actionbar>button{width:100%;min-height:52px;border:0;border-radius:14px;background:var(--ys-coral);color:#fff;font-size:15px;font-weight:850;text-align:center!important;box-shadow:0 7px 20px #d56a5530}.yi-case-actionbar>button:disabled{opacity:.5}
.yi-case-editor-v56>.yi-case-primary,.yi-case-sheet>.yi-case-primary:last-of-type{position:static!important}
.yi-case-choice-page{display:flex!important;height:auto!important;min-height:0!important;padding:112px 0 0!important;overflow:hidden!important;flex-direction:column!important}.yi-case-choice-page>header{position:absolute!important;top:54px!important;right:0!important;left:0!important;height:58px!important;margin:0!important}.yi-case-choice-page>.yi-picker-search{margin:16px 20px 8px}.yi-case-choice-page>.yi-case-choice-list{min-height:0;flex:1 1 auto;overflow-y:auto;padding:0 20px 20px!important}.yi-case-choice-page>.yi-case-custom{margin:8px 20px 12px!important}
.yi-picker-search,.yi-patient-search{display:flex;min-height:48px;padding:0 14px;align-items:center;border:1px solid #d8ddda;border-radius:14px;background:#fff}.yi-picker-search input,.yi-patient-search input{width:100%;min-width:0;border:0!important;background:transparent!important}.yi-patient-search{gap:9px;margin:16px 20px 10px}.yi-patient-search svg{width:18px;color:var(--ys-muted)}
.yi-confirm-picker,.yi-patient-picker{display:flex!important;height:auto!important;min-height:0!important;padding:112px 0 0!important;box-sizing:border-box!important;overflow:hidden!important;flex-direction:column!important;background:#f7f8f5!important}.yi-confirm-picker>header,.yi-patient-picker>header{position:absolute!important;top:54px!important;right:0!important;left:0!important;height:58px!important;margin:0!important}.yi-confirm-picker>.yi-unified-picker-list,.yi-patient-picker-list{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;padding:12px 20px 24px!important;-webkit-overflow-scrolling:touch!important}.yi-confirm-picker>.yi-picker-search{margin:16px 20px 0}
.yi-patient-picker-list{display:grid;align-content:start;gap:10px}.yi-patient-picker-list>button{display:grid;min-height:70px;padding:10px 14px;grid-template-columns:40px minmax(0,1fr) 22px;gap:10px;align-items:center;border:1px solid #d8ddda;border-radius:15px;background:#fff;color:var(--ys-navy);text-align:left}.yi-patient-picker-list>button[data-selected=true]{border-color:var(--ys-coral);box-shadow:0 0 0 2px #d56a5518}.yi-patient-picker-list>button>span:nth-child(2){display:flex;min-width:0;flex-direction:column}.yi-patient-picker-list small{margin-top:4px;overflow:hidden;color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap}.yi-patient-picker-list i{color:var(--ys-coral);font-style:normal;font-weight:900}
.yi-followup-form-body>.yi-picker-row,.yi-case-form-body>.yi-picker-row{margin:0 0 20px!important}
.yi-medication-page.yi-form-open{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;padding:0!important;overflow:hidden!important}.yi-medication-entry-v56{position:absolute!important;inset:0!important;height:auto!important;min-height:0!important;touch-action:pan-y!important}.yi-medication-entry-v56>.yi-medication-form{position:static!important;padding-bottom:calc(118px + var(--mobile-safe-area-height,34px))!important;touch-action:pan-y!important}.yi-medication-entry-v56>.yi-medication-form>*{flex:0 0 auto!important}.yi-medication-entry-v56>.yi-case-actionbar{position:absolute!important;right:0!important;bottom:0!important;left:0!important}.yi-medication-entry-v56 .yi-preset-disclosure{margin:-8px 0 20px}.yi-medication-entry-v56 .yi-medication-presets{max-height:260px!important}.yi-medication-entry-v56>.yi-sticky-submit{display:none!important}
.yi-medication-entry-v56>.yi-medication-form{cursor:grab!important}.yi-medication-entry-v56>.yi-medication-form:active{cursor:grabbing!important}
.yi-confirm-picker>header>span:last-child{display:block;width:48px;height:44px}
.yi-followup-state-copy{margin:14px 0 0;padding:12px 14px;border-radius:13px;background:#eef3f0;color:#4d6666;font-size:13px;line-height:1.45;text-align:center}
.yi-authorized-doctors{display:flex!important;height:auto!important;min-height:0!important;overflow:hidden!important;flex-direction:column!important}.yi-authorized-doctors>.yi-panel-lead{flex:0 0 auto!important}.yi-authorized-doctors>.yi-authorized-list{min-height:0!important;overflow-y:auto!important;flex:1 1 auto!important}
.yi-authorized-row{width:100%!important;box-sizing:border-box!important;grid-template-columns:44px minmax(0,1fr) 62px!important}.yi-authorized-row>div{overflow:hidden!important}.yi-authorized-row>div span{display:block!important;width:100%!important;max-width:100%!important}.yi-authorized-row>em{width:62px!important;text-align:right!important;white-space:nowrap!important}


/* v5.6 数据态交互：病历滑动/批量管理、通知红点、授权医生与用药页。 */
.records-tools{display:flex;align-items:center;gap:12px}.records-tools button{display:grid;min-width:40px;height:40px;padding:0;place-items:center;border:0;background:transparent;color:var(--ys-navy);font-weight:800}.records-tools svg{width:21px;height:21px}.records-manage{color:var(--ys-coral)!important;font-size:14px}.records-search-v56{margin:12px 20px 0!important;width:auto!important;min-height:46px!important}.records-search-v56 input{padding:0 14px!important}
.case-record-list{overflow:hidden!important}.swipe-case-row{position:relative!important;overflow:hidden!important;background:var(--ys-coral)!important}.swipe-case-row .case-record-main{position:relative!important;z-index:2!important;width:100%!important;transform:translateX(var(--swipe-x,0))!important;transition:transform .28s cubic-bezier(.22,1,.36,1)!important;background:var(--ys-ivory)!important;touch-action:pan-y!important}.swipe-case-row .case-swipe-delete{position:absolute!important;z-index:1!important;top:0!important;right:0!important;bottom:0!important;width:84px!important;border:0!important;background:var(--ys-coral)!important;color:#fff!important;font-weight:850!important}.swipe-case-row:not([data-open=true]) .case-swipe-delete{pointer-events:none!important}.case-record-copy{min-width:0!important}.case-record-copy>*{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yi-case-select-row{display:grid;width:100%;min-height:92px;padding:12px 20px;grid-template-columns:56px minmax(0,1fr) 25px;gap:12px;align-items:center;border:0;border-bottom:1px solid var(--ys-line);background:var(--ys-ivory);color:var(--ys-navy);text-align:left}.yi-case-select-row>span{display:flex;min-width:0;flex-direction:column;gap:5px}.yi-case-select-row small{overflow:hidden;color:var(--ys-muted);text-overflow:ellipsis;white-space:nowrap}.yi-case-select-row>i{display:grid;width:23px;height:23px;place-items:center;border:1.5px solid #bdc7c3;border-radius:50%;color:transparent;font-style:normal}.yi-case-select-row[data-selected=true]>i{border-color:var(--ys-coral);background:var(--ys-coral);color:#fff}.yi-case-batchbar{position:fixed;z-index:40;right:0;bottom:calc(76px + var(--mobile-safe-area-height,0px));left:0;display:grid;min-height:62px;padding:8px 18px;grid-template-columns:70px 1fr 70px;align-items:center;border-top:1px solid #d8ddda;background:#fffffff2;backdrop-filter:blur(18px);box-shadow:0 -8px 26px #16343712}.yi-case-batchbar button{height:42px;border:0;background:transparent;color:var(--ys-coral);font-weight:850}.yi-case-batchbar button:last-child{border-radius:12px;background:var(--ys-coral);color:#fff}.yi-case-batchbar button:disabled{opacity:.4}.yi-case-batchbar span{text-align:center;color:var(--ys-muted);font-size:13px}
.yi-notice-label{position:relative;display:inline-flex;align-items:center}.yi-notice-label>i{position:absolute;top:-4px;right:-9px;width:8px;height:8px;border:2px solid currentColor;border-radius:50%;background:#ef4b3e;box-sizing:content-box}.notification-panel .panel-row-button:has(strong.amber)>span::after{display:inline-block;width:7px;height:7px;margin-left:7px;border-radius:50%;background:#ef4b3e;content:"";vertical-align:middle}.notification-panel .panel-row-button strong{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yi-tab-dot,.yi-row-dot{display:inline-block!important;width:8px!important;height:8px!important;margin-left:7px!important;border-radius:50%!important;background:#ef4b3e!important}.followup-tabs-v43 button{display:flex!important;align-items:center!important;justify-content:center!important}
.yi-authorized-doctors{padding-right:18px!important;padding-left:18px!important}.yi-authorized-list{margin-top:18px!important}.yi-authorized-row{height:auto!important;min-height:86px!important;max-height:none!important;padding:12px 14px!important;grid-template-columns:42px minmax(0,1fr) auto!important}.yi-authorized-row>div strong{display:block!important;max-width:100%!important;overflow:visible!important;line-height:1.35!important;white-space:normal!important}.yi-authorized-row>div span{max-width:100%!important}.yi-unlink-doctor{min-width:68px;min-height:36px;padding:0 9px;border:1px solid #e4a69a;border-radius:11px;background:#fff;color:var(--ys-coral);font-size:12px;font-weight:850}
.patient-meds-v41{padding-bottom:118px!important}.yi-med-plan-empty .med-plan-main-v41{min-height:220px!important}.yi-med-plan-empty h2{max-width:210px!important;font-size:22px!important}.yi-other-med-history{margin-top:8px!important}.yi-other-med-history .fold-content{overflow:hidden;border-top:1px solid #ffffff3b;background:#fff}.yi-other-med-history .profile-row{color:var(--ys-navy)!important}.week-doses-v41 button[data-status=empty] .dose-status-icon{border:1.4px solid #c7cecb!important;background:transparent!important}.med-plan-main-v41{touch-action:pan-y!important}
.yi-case-form-body{cursor:grab!important}.yi-case-form-body:active{cursor:grabbing!important}
.records-header .records-title-row{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:16px!important;padding:0 0 14px!important}.records-header .records-title-row h1{min-width:0;flex:1}.records-header .records-tools{flex:0 0 auto}.records-header .records-search-v56{width:auto!important;margin:10px 0 0!important}
.yi-notification-center{position:absolute;inset:0;z-index:2;overflow:auto;padding:54px 18px 112px;background:var(--ys-ivory);color:var(--ys-navy);overscroll-behavior:contain}.yi-notification-center>header{display:grid;min-height:48px;grid-template-columns:48px 1fr 48px;align-items:center}.yi-notification-center>header button{height:44px;padding:0;border:0;background:transparent;color:var(--ys-coral);font-weight:850}.yi-notification-center>header button:first-child{display:grid;place-items:center;color:var(--ys-navy)}.yi-notification-center>header h1{margin:0;text-align:center;font:800 22px/1 var(--ys-font-ui)}.yi-notification-tools{margin:14px 0}.yi-notification-tools>button,.yi-notification-tools>div{display:flex;width:100%;min-height:50px;padding:0 14px;align-items:center;justify-content:space-between;border:1px solid var(--ys-line);border-radius:14px;background:#fff;color:var(--ys-navy)}.yi-notification-tools>button{font-weight:800}.yi-notification-tools>button strong{color:var(--ys-coral);font-size:12px}.yi-notification-tools>div button{height:40px;border:0;background:transparent;color:var(--ys-coral);font-weight:850}.yi-notification-tools>div button:disabled{opacity:.35}.yi-notification-tools>div span{font-size:13px;color:var(--ys-muted)}.yi-notification-list{overflow:hidden;border:1px solid var(--ys-line);border-radius:16px;background:#fff}.yi-notification-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--ys-line)}.yi-notification-list>article:last-child{border-bottom:0}.yi-notification-list>article>button:first-child{display:grid;width:100%;min-height:76px;padding:12px 13px;grid-template-columns:10px minmax(0,1fr) 18px;gap:10px;align-items:center;border:0;background:transparent;color:var(--ys-navy);text-align:left}.yi-notification-list>article>button:first-child>i{display:grid;width:9px;height:9px;place-items:center;border:1px solid #bac3c0;border-radius:50%;font-size:8px;font-style:normal}.yi-notification-list>article>button:first-child>i.unread{border:0;background:#ef4b3e}.yi-notification-list>article[data-selected=true]>button:first-child>i{border-color:var(--ys-coral);background:var(--ys-coral);color:#fff}.yi-notification-list span{display:flex;min-width:0;flex-direction:column;gap:5px}.yi-notification-list span strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yi-notification-list span small{display:-webkit-box;overflow:hidden;color:var(--ys-muted);font-size:12px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.yi-notice-single-delete{align-self:center;height:36px;margin-right:10px;padding:0 10px;border:1px solid #e7aaa0;border-radius:10px;background:#fff;color:var(--ys-coral);font-size:12px;font-weight:850}

/* 本轮外观回归：已读通知保持完整信息列，病例背景与管理按钮对齐，病例提交共用 v5.6 表单语言。 */
.yi-notification-list>article>button:first-child:not(:has(>i)){grid-template-columns:minmax(0,1fr) 18px!important}
.case-record-list{background:#f7f7f3!important}.swipe-case-row .case-record-main,.yi-case-select-row{background:#f7f7f3!important}.yi-case-batchbar button{text-align:center!important}
.yi-shared-case-form{min-height:100%;padding-bottom:96px!important;background:var(--ys-ivory);overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.yi-shared-case-form .v48-form-section{padding:22px 0!important}.yi-shared-case-form .v48-form-section>h3{margin:0 0 16px!important}
.yi-case-doctor-section .yi-picker-row{margin:0!important;border-bottom:1px solid var(--ys-line)!important;border-radius:0!important;background:transparent!important}
.yi-case-readonly-row,.yi-case-date-row,.yi-case-diagnosis-row{display:grid;min-height:58px;padding:0;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid var(--ys-line);color:var(--ys-navy)}
.yi-case-readonly-row>span,.yi-case-date-row>span,.yi-case-diagnosis-row>span{font-size:13px;font-weight:700}.yi-case-readonly-row>strong{overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.yi-case-date-row input,.yi-case-diagnosis-row input{width:100%;min-height:46px;padding:0 2px;border:0!important;background:transparent!important;color:var(--ys-navy);text-align:right;font-size:15px;font-weight:600}
.yi-shared-case-form .v48-metric-group{margin-top:14px!important}.yi-shared-case-form .v48-metric-group header{min-height:48px!important}.yi-shared-case-form .v48-remove-major{min-width:52px!important;text-align:center!important}
.yi-shared-subitem{display:grid;padding:10px 0;grid-template-columns:minmax(0,1.25fr) minmax(0,.72fr) minmax(0,.62fr);gap:8px;border-bottom:1px solid #12345616}.yi-shared-subitem input{min-width:0;height:44px;padding:0 10px;border:1px solid var(--ys-line);border-radius:11px;background:#fff;color:var(--ys-navy)}
.yi-add-subitem{width:100%!important;min-height:46px!important;margin-top:10px!important;border:1px solid var(--ys-line)!important;border-radius:12px!important;color:var(--ys-coral)!important;text-align:center!important;font-weight:800!important}
.yi-case-notes{width:100%;min-height:104px;padding:13px 14px;border:1px solid var(--ys-line);border-radius:13px;background:#fff;color:var(--ys-navy);font:500 14px/1.55 var(--ys-font-ui);resize:none}
.yi-shared-case-picker>.yi-case-primary{position:sticky!important;bottom:10px!important;width:100%!important;margin-top:22px!important}.yi-shared-case-form .v48-submit-dock button{border-radius:13px!important;background:var(--ys-coral)!important}
@media(max-width:360px){.yi-shared-subitem{grid-template-columns:minmax(0,1fr) minmax(0,.72fr)}.yi-shared-subitem input:last-child{grid-column:1/-1}}

/* Shared v5.6 control language and targeted layout fixes. */
:where(.device-screen) :where(input,textarea,select){box-sizing:border-box;min-width:0;border:1px solid #d9dfdc;border-radius:13px;background:#fff;color:var(--ys-navy);font:600 15px/1.35 var(--ys-font-ui);outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
:where(.device-screen) :where(input,textarea,select):focus{border-color:#e7b4aa!important;box-shadow:0 0 0 3px #d84a3a16!important;outline:none!important}
:where(.device-screen) :where(input,textarea,select)::placeholder{color:#9aa6a1;font-weight:500}
:where(.device-screen) select{height:48px;padding:0 38px 0 14px;appearance:auto}
:where(.device-screen) :where(.search-row,.records-search-v56,.yi-picker-search,.yi-patient-search){min-height:46px;border:1px solid #d9dfdc!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 16px #16343708!important}
:where(.device-screen) :where(.search-row,.records-search-v56,.yi-picker-search,.yi-patient-search) input{height:44px!important;padding:0 14px!important;border:0!important;background:transparent!important;box-shadow:none!important}
.yi-profile-editor-v56 .yi-profile-form,.yi-security-form,.yi-doctor-certification-v56 .yi-profile-form{padding:10px 20px 92px!important}
.yi-profile-editor-v56 .yi-profile-form>label:first-child input{width:100%!important;max-width:100%!important;padding:0 14px!important}
.yi-live-sheet{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
:where(.device-screen) :where(.mobile-scroll,.action-panel.full-screen-panel,.yi-notification-center){overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
.yi-live-sheet>header,.yi-live-sheet>.full-screen-inline-header,.yi-shared-case-form>.full-screen-inline-header{position:sticky!important;z-index:40!important;top:0!important;transform:none!important;margin:0!important;padding:calc(32px + var(--mobile-safe-area-height,0px)) 18px 10px!important;border-bottom:1px solid #dde2df;background:#fffffff3!important;backdrop-filter:blur(18px);box-shadow:0 4px 18px #1634370a}
.yi-live-sheet>header h2,.yi-live-sheet>.full-screen-inline-header h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yi-security-card{display:grid;margin:20px;padding:16px 14px;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border:1px solid var(--ys-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px #1634370b}.yi-security-card>span{font-weight:800}.yi-security-card>strong{color:var(--ys-muted);font-size:13px}.yi-security-card>button{display:grid;min-width:84px;height:40px;padding:0 16px;place-items:center;border:0;border-radius:11px;background:var(--ys-coral);color:#fff;text-align:center;font-weight:850}.yi-security-panel>.yi-live-error{margin:14px 20px}
.yi-profile-editor-v56,.yi-doctor-profile-sheet{display:flex!important;height:100%!important;min-height:0!important;flex-direction:column!important;overflow:hidden!important}.yi-profile-editor-v56>.yi-profile-form,.yi-doctor-profile-sheet>.yi-profile-form{min-height:0;flex:1;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-profile-editor-v56>.yi-sticky-submit,.yi-doctor-profile-sheet>.yi-sticky-submit,.yi-security-form>.yi-sticky-submit{right:18px!important;bottom:calc(12px + var(--mobile-safe-area-height,0px))!important;left:18px!important;width:auto!important}
.yi-shared-case-form-v56{display:flex!important;height:100%!important;min-height:0!important;flex-direction:column!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important;background:var(--ys-ivory)!important}
.yi-shared-case-form-v56>.yi-case-scroll-body{position:relative;z-index:1;min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:4px 20px 112px;overscroll-behavior:contain;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
.yi-shared-case-form-v56 .v48-form-section{margin:0!important;padding:22px 0!important}.yi-shared-case-form-v56 .v48-form-section+section{border-top:1px solid #dce1de}.yi-shared-case-form-v56 .v48-form-section>h3{margin:0 0 16px!important;font-size:17px!important}
.yi-shared-case-form-v56 .yi-picker-row{width:100%!important;min-height:58px!important;margin:0!important;padding:0 4px!important;border:0!important;border-bottom:1px solid var(--ys-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.yi-shared-case-form-v56 .yi-profile-field{padding:6px 0!important}.yi-shared-case-form-v56 .yi-profile-field input,.yi-shared-case-form-v56 .yi-profile-field select{width:100%!important;height:48px!important;padding:0 14px!important;text-align:left!important}
.yi-shared-case-form-v56 .yi-case-readonly-row{padding:0 4px!important}
.v48-readonly-grid{gap:10px!important}.v48-readonly-grid>div{min-width:0!important;padding:12px 16px!important;border-radius:13px!important}.v48-readonly-grid strong{display:block;max-width:62%;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.yi-ocr-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.yi-ocr-upload{position:relative;display:grid;min-height:54px;padding:0 15px;place-items:center;border:1px dashed #d8897d;border-radius:14px;background:#fff8f6;color:var(--ys-coral);font-weight:850;cursor:pointer}.yi-ocr-upload input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer}
.yi-original-files{display:flex;margin-top:12px;flex-direction:column;gap:8px}.yi-original-files article{display:grid;min-height:52px;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--ys-line);border-radius:13px;background:#fff;overflow:hidden}.yi-original-files button{height:52px;border:0;background:transparent;font-weight:750}.yi-original-open{padding:0 14px;overflow:hidden;color:var(--ys-navy);text-align:left;text-overflow:ellipsis;white-space:nowrap}.yi-original-delete{padding:0 14px;color:var(--ys-coral)}
.yi-shared-case-form-v56 .v48-metric-group{margin-top:14px!important;padding:14px!important;border:1px solid var(--ys-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 20px #16343708!important}.yi-shared-case-form-v56 .v48-metric-group header{min-height:42px!important}.yi-shared-case-form-v56 .v48-remove-major{min-width:72px!important}
.yi-shared-subitem{grid-template-columns:minmax(0,1.55fr) minmax(0,.75fr) minmax(0,.65fr) 58px!important;align-items:center!important}.yi-shared-subitem input{width:100%!important;height:44px!important;padding:0 10px!important;text-overflow:ellipsis!important}.yi-subitem-delete{display:grid;height:38px;padding:0 8px;place-items:center;border:0;border-radius:10px;background:#fff2ef;color:var(--ys-coral);text-align:center;font-size:12px;font-weight:850}
.yi-case-notes{width:100%!important;padding:13px 14px!important}
.v48-submit-dock,.yi-review-actionbar{position:absolute!important;z-index:45!important;right:14px!important;bottom:calc(10px + var(--mobile-safe-area-height,0px))!important;left:14px!important;display:grid!important;padding:8px!important;border:1px solid #dce1de!important;border-radius:18px!important;background:#fffffff2!important;backdrop-filter:blur(18px)!important;box-shadow:0 10px 34px #1634371c!important}.v48-submit-dock button,.yi-review-actionbar button{display:grid!important;height:50px!important;padding:0 14px!important;place-items:center!important;border:0!important;border-radius:13px!important;background:var(--ys-coral)!important;color:#fff!important;text-align:center!important;font-weight:900!important}.yi-review-actionbar{grid-template-columns:1fr 1.45fr!important;gap:10px!important}.yi-review-actionbar button:first-child{border:1px solid #e1a399!important;background:#fff!important;color:var(--ys-coral)!important}
.yi-shared-case-picker{padding-bottom:100px!important}.yi-shared-case-picker .yi-profile-field{margin:14px 20px!important}.yi-shared-case-picker .yi-case-custom{width:calc(100% - 40px)!important;margin:12px 20px!important}.yi-shared-case-picker .yi-picker-actionbar{position:sticky!important;bottom:0!important;padding:10px 20px calc(10px + var(--mobile-safe-area-height,0px))!important;background:#fffffff2!important;backdrop-filter:blur(18px)}
.yi-doctor-med-plan{display:flex;flex-direction:column;gap:12px}.yi-med-plan-item{position:relative;padding:44px 14px 14px;border:1px solid var(--ys-line);border-radius:16px;background:#fff}.yi-med-plan-item .yi-item-delete{position:absolute;top:8px;right:8px;height:32px;padding:0 10px;border:0;border-radius:9px;background:#fff2ef;color:var(--ys-coral);font-size:12px;font-weight:850}.yi-med-plan-item .yi-profile-field{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}.yi-med-plan-item .yi-profile-field>span{font-size:13px;font-weight:750}
.yi-notification-detail{padding-bottom:110px!important}.yi-notification-detail>article{margin:20px;padding:18px;border:1px solid var(--ys-line);border-radius:17px;background:#fff;box-shadow:0 8px 26px #1634370c}.yi-notification-detail h2{margin:0 0 14px;font-size:18px}.yi-notification-detail p{margin:0;line-height:1.65}.yi-notification-detail time{display:block;margin-top:18px;color:var(--ys-muted);font-size:13px}.yi-detail-delete{display:block;width:calc(100% - 40px);height:48px;margin:18px 20px;border:1px solid #e3aaa0;border-radius:13px;background:#fff;color:var(--ys-coral);font-weight:850}
.yi-doctor-certification-v56{display:flex!important;height:100%!important;min-height:0!important;flex-direction:column!important;overflow:hidden!important}.yi-doctor-certification-v56>.yi-profile-form{min-height:0;flex:1;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-doctor-certification-v56>.yi-sticky-submit{position:absolute!important;z-index:45!important;right:18px!important;bottom:calc(12px + var(--mobile-safe-area-height,0px))!important;left:18px!important;width:auto!important}
.yi-avatar-picker{position:relative;display:grid;flex:0 0 auto;place-items:center;overflow:visible;cursor:pointer}.yi-avatar-picker>img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.yi-avatar-picker>input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer}.yi-avatar-picker.is-loading{opacity:.55;pointer-events:none}.yi-avatar-error{position:absolute;z-index:3;top:calc(100% + 8px);left:50%;width:180px;padding:8px 10px;transform:translateX(-50%);border-radius:10px;background:#fff;color:var(--ys-coral);box-shadow:0 8px 24px #1634371f;text-align:center;font-size:12px}.profile-avatar-v41.yi-avatar-picker,.profile-avatar.yi-avatar-picker{border-radius:50%}
.followup-hero .calendar-grid,.followup-hero .v52-calendar-grid{transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1),opacity .25s ease,transform .36s cubic-bezier(.22,1,.36,1)!important}.followup-hero:has([aria-expanded=false]) .calendar-grid{opacity:.7;transform:translateY(-4px)}
.screen-page .research-v51-export-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:18px;border:0;border-radius:14px;background:#173c52!important;color:#fff!important;font-size:15px;font-weight:850;text-align:center!important;box-shadow:0 10px 24px #173c5230;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}.research-v51-export-primary:active{transform:scale(.985);box-shadow:0 5px 14px #173c5228}.research-v51-export-primary:disabled{opacity:.62}.research-v51-error{margin:0 20px 110px}.research-v51-filters{padding-bottom:110px}
@media(max-width:390px){.yi-shared-subitem{grid-template-columns:minmax(0,1fr) minmax(0,.72fr) 50px!important}.yi-shared-subitem input:nth-child(3){grid-column:1/3}.yi-shared-subitem .yi-subitem-delete{grid-column:3}.v48-readonly-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.yi-profile-editor-v56 .yi-profile-form,.yi-security-form,.yi-doctor-certification-v56 .yi-profile-form{padding-right:18px!important;padding-left:18px!important}}

/* Round 17: database-backed avatar, case review and follow-up refinements. */
.yi-doctor-profile-sheet>.yi-profile-readonly{min-height:0!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;padding-bottom:calc(72px + var(--mobile-safe-area-height,0px))!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
.full-screen-sheet .sheet-content:has(.yi-doctor-review-wide){padding-right:0!important;padding-left:0!important}.yi-doctor-review-wide{padding-right:0!important;padding-left:0!important}.yi-doctor-review-wide>.yi-case-scroll-body{padding-right:6px!important;padding-left:6px!important}.yi-doctor-review-wide .v48-form-section{padding-right:14px!important;padding-left:14px!important}.yi-doctor-review-wide .yi-picker-row,.yi-doctor-review-wide .yi-case-readonly-row{padding-right:8px!important;padding-left:8px!important}.yi-doctor-review-wide .v48-readonly-grid>div{padding-right:18px!important;padding-left:18px!important}.yi-doctor-review-wide .v48-metric-group{padding:16px!important}
.yi-doctor-review-wide>header,.yi-doctor-review-wide>.full-screen-inline-header{min-height:54px!important;padding:calc(16px + var(--mobile-safe-area-height,0px)) 18px 8px!important}
.yi-shared-subitem{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(96px,.62fr)!important;gap:11px!important;padding:14px 0!important;align-items:end!important;border-bottom:1px solid #e5e9e7}.yi-shared-subitem:last-child{border-bottom:0}.yi-shared-subitem>.yi-profile-field:first-child{grid-column:1/-1!important}.yi-shared-subitem>.yi-profile-field{min-width:0!important;padding:0!important}.yi-shared-subitem>.yi-profile-field input{width:100%!important;min-width:0!important;height:46px!important;padding:0 12px!important;text-overflow:clip!important}.yi-shared-subitem>.yi-subitem-delete{grid-column:1/-1!important;min-width:70px!important;justify-self:end!important}.case-metric-grid button{min-width:0!important}.case-metric-grid button span,.case-metric-grid button strong{max-width:100%!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
.yi-med-plan-item .yi-profile-field select{width:100%!important;height:48px!important}.yi-med-plan-item .yi-profile-field select+input{margin-top:8px!important}.yi-number-with-unit{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;margin:2px 0 8px 96px!important}.yi-number-with-unit input{width:100%!important;height:48px!important;padding:0 14px!important}.yi-number-with-unit>span{min-width:22px;color:var(--ys-navy);font-weight:800}
.yi-status-calendar :where(.yi-calendar-week,.v52-month-grid)>button>strong{display:grid!important;width:28px!important;height:28px!important;margin:auto!important;place-items:center!important;border:2px solid transparent!important;border-radius:50%!important;box-sizing:border-box!important;transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s cubic-bezier(.22,1,.36,1)!important}.yi-status-calendar button:active>strong{transform:scale(.9)!important}.yi-status-calendar button.is-today>strong{border-color:var(--ys-coral)!important;background:var(--ys-coral)!important;color:#fff!important}.yi-status-calendar button.is-future-followup>strong{border-color:var(--ys-coral)!important;background:transparent!important;color:inherit!important}.yi-status-calendar button.is-completed-followup>strong{border-color:#87908c!important;background:#87908c!important;color:#fff!important}.yi-status-calendar button.is-missed-followup>strong{border-color:#87908c!important;background:transparent!important;color:#6f7974!important}
@media(max-width:390px){.yi-shared-subitem{grid-template-columns:minmax(0,1fr) minmax(88px,.6fr)!important}.yi-shared-subitem>.yi-profile-field:first-child{grid-column:1/-1!important}.yi-shared-subitem>.yi-subitem-delete{grid-column:1/-1!important}.yi-number-with-unit{margin-left:0!important}}

/* Round 18: v5.6 home and medication carousels, backed by the current plan. */
.yi-home-medication{min-height:224px!important;background:#cbd8c7!important;box-shadow:inset 0 -1px #173c5212}.yi-home-medication .home-med-slide{min-height:224px!important;padding:19px 27px 38px 34px!important;grid-template-columns:minmax(0,1fr) 116px!important;gap:7px;align-items:center}.yi-home-medication .home-med-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;transform:translateX(5px)}.yi-home-medication .home-med-copy h1{margin-bottom:7px!important;color:#52785d;font-size:17px!important}.yi-home-medication .hero-dose-count{font-size:54px!important;line-height:.98!important;letter-spacing:-.055em}.yi-home-medication .hero-dose-count small{font-size:29px!important}.yi-home-medication .home-med-copy p{max-width:100%;margin:9px 0 2px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px!important}.yi-home-medication .home-med-detail{min-height:17px;color:#526b61;font-size:12px}.yi-home-medication .record-med-action{display:grid;min-width:92px;height:40px;margin-top:10px;padding:0 14px;place-items:center;border:1px solid #fff9!important;border-radius:12px!important;background:#ffffff5c!important;color:var(--ys-coral);font-size:13px;font-weight:850;box-shadow:0 5px 16px #173c520c;transition:transform .2s cubic-bezier(.22,1,.36,1),background-color .2s ease,opacity .2s ease}.yi-home-medication .record-med-action:active{transform:scale(.96)}.yi-home-medication .record-med-action:disabled{opacity:.58}.yi-home-medication .medicine-illustration{display:grid;place-items:center;transform:translateX(-5px)}.yi-home-medication .medicine-illustration img{width:112px!important;height:134px!important;object-fit:contain}.yi-home-medication .carousel-dots{bottom:13px!important}
.yi-home-metrics{padding:19px 20px 8px!important}.yi-home-metrics .section-heading{margin-bottom:3px!important}.yi-home-metrics .section-heading h2{font-size:21px!important}.yi-metric-carousel{touch-action:pan-y!important}.yi-metric-slide{display:grid!important;min-height:214px!important;padding:7px 0 2px!important;grid-template-columns:minmax(76px,.38fr) minmax(0,1.95fr);grid-template-rows:auto 1fr;column-gap:8px;text-align:left!important}.yi-metric-slide>.metric-source-v41{grid-column:1/-1;margin:0 0 2px!important}.yi-metric-value-line{display:flex;min-width:0;align-self:center;align-items:baseline;flex-wrap:wrap}.yi-metric-value-line .metric-value-v41{max-width:100%;font-size:32px!important;line-height:1!important}.yi-metric-unit{margin-left:3px;color:var(--ys-navy);font-size:13px;font-weight:650}.yi-metric-value-line .metric-delta-v41{width:100%;margin:9px 0 0!important;font-size:11px!important}.yi-metric-chart{height:164px!important;align-self:center;pointer-events:none}.yi-metric-chart .trend-chart svg{width:100%!important;max-height:160px!important}.yi-home-metrics .home-metric-swipe>.carousel-dots{margin-top:0!important}
.yi-metric-chart{pointer-events:auto!important}.v50-trend .v50-hit-point{fill:transparent!important;opacity:1!important;pointer-events:all;cursor:pointer;animation:none!important}.v50-trend .v50-hit-point:focus-visible{stroke:var(--ys-coral);stroke-width:2;outline:0}.v50-trend .v50-point-inspector{pointer-events:none}.v50-trend .v50-crosshair{stroke:var(--ys-coral);stroke-width:1;stroke-dasharray:3 3;opacity:.72}.v50-trend .v50-point-inspector rect{fill:#fffffff2;stroke:#12345624;stroke-width:1;filter:drop-shadow(0 3px 7px #12345620)}.v50-trend .v50-tooltip-date{fill:var(--ys-muted);font:600 8.5px/1 var(--ys-font-ui)}.v50-trend .v50-tooltip-value{fill:var(--ys-navy);font:800 10px/1 Roboto,var(--ys-font-ui);font-variant-numeric:tabular-nums}
.v50-trend{user-select:none;-webkit-user-select:none}.v50-trend .v50-point-inspector{will-change:transform;transition:transform .18s cubic-bezier(.22,1,.36,1)}.v50-trend[data-dragging=true] .v50-point-inspector{transition-duration:.09s}.v50-trend .v50-drag-surface{fill:transparent;pointer-events:all;touch-action:pan-y;cursor:ew-resize}.v50-trend[data-dragging=true] .v50-drag-surface{cursor:grabbing}.v50-trend circle:not(.v50-hit-point){transition:r .16s cubic-bezier(.22,1,.36,1),fill .16s ease}.v50-trend .v50-x-labels{pointer-events:none}@media(prefers-reduced-motion:reduce){.v50-trend .v50-point-inspector,.v50-trend circle:not(.v50-hit-point){transition:none!important}}
.yi-med-plan-carousel{overflow:hidden!important}.yi-med-plan-carousel .yi-swipe-track{transition-duration:.48s!important}.yi-med-plan-carousel .med-plan-slide-v43{min-height:278px}.yi-med-plan-carousel .med-plan-main-v41:active{transform:scale(.988)}
.case-attachments-round18{padding:19px 24px;border-bottom:1px solid var(--ys-line);background:#fff}.case-attachments-round18 h2{margin:0 0 12px;font-size:20px}.case-attachments-round18>div{display:flex;flex-direction:column;gap:8px}.case-attachments-round18>div>button{display:grid;width:100%;min-height:56px;padding:9px 12px;grid-template-columns:minmax(0,1fr) 18px;gap:10px;align-items:center;border:1px solid #dce2df;border-radius:14px;background:#fff;color:var(--ys-navy);text-align:left;box-shadow:0 5px 18px #173c5208;transition:transform .2s cubic-bezier(.22,1,.36,1),background-color .2s ease}.case-attachments-round18>div>button:active{transform:scale(.985);background:#f6f8f6}.case-attachments-round18>div>button>span{display:flex;min-width:0;flex-direction:column;gap:4px}.case-attachments-round18 strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.case-attachments-round18 small{color:var(--ys-muted);font-size:12px}.case-attachments-round18 svg{width:17px;height:17px}
@media(max-width:390px){.yi-home-medication .home-med-slide{padding-right:19px!important;padding-left:24px!important;grid-template-columns:minmax(0,1fr) 104px!important}.yi-home-medication .home-med-copy{transform:translateX(2px)}.yi-home-medication .medicine-illustration{transform:translateX(-3px)}.yi-home-medication .medicine-illustration img{width:101px!important;height:122px!important}.yi-metric-slide{grid-template-columns:minmax(70px,.35fr) minmax(0,2fr);column-gap:6px}.yi-metric-value-line .metric-value-v41{font-size:30px!important}.yi-metric-unit{font-size:12px}}

/* Family and guardianship: one compact, touch-first Apple-style flow. */
.v56-family-page.yi-family-shell{position:absolute!important;inset:0!important;top:0!important;bottom:0!important;display:flex!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;flex-direction:column!important;overflow:hidden!important;background:#f5f7f5!important;color:var(--ys-navy)}
.yi-family-shell>.yi-family-header{position:relative!important;z-index:30!important;display:grid!important;min-height:58px!important;margin:0!important;padding:calc(16px + var(--mobile-safe-area-height,0px)) 18px 9px!important;grid-template-columns:64px minmax(0,1fr) 64px!important;align-items:end!important;border-bottom:1px solid #dfe5e1!important;background:#fffffff2!important;backdrop-filter:blur(20px)!important;box-shadow:0 5px 20px #173c5208!important}
.yi-family-header h2{margin:0!important;overflow:hidden;text-align:center!important;text-overflow:ellipsis;white-space:nowrap;font-size:18px!important;line-height:34px!important}.yi-family-header .inline-back{display:grid!important;min-width:52px!important;height:34px!important;padding:0 6px!important;place-items:center start!important;border:0!important;background:transparent!important;color:var(--ys-coral)!important;font-size:14px!important;font-weight:850!important}
.yi-family-scroll,.yi-family-form,.yi-family-member-detail,.yi-family-delegated,.yi-family-case-detail{min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:18px 18px calc(42px + var(--mobile-safe-area-height,0px));overscroll-behavior:contain;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
.yi-family-owner-card,.yi-family-profile-card{display:flex;min-height:76px;padding:14px 16px;align-items:center;gap:13px;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 10px 30px #173c520c}.yi-family-avatar{display:grid;width:44px;height:44px;flex:0 0 44px;overflow:hidden;place-items:center;border:1px solid #dbe5df;border-radius:50%;background:#edf3ef;color:#426853;box-shadow:inset 0 1px 0 #ffffff}.yi-family-avatar svg{width:21px;height:21px}.yi-family-avatar img{width:100%;height:100%;display:block;object-fit:cover}.yi-family-owner-card>span:not(.yi-family-avatar),.yi-family-profile-card>span:not(.yi-family-avatar){display:flex;min-width:0;flex-direction:column;gap:4px}.yi-family-owner-card strong,.yi-family-profile-card strong{font-size:17px}.yi-family-owner-card b,.yi-family-profile-card b{color:#75807a;font-size:13px;font-weight:700}
.yi-family-section-heading{display:flex;margin:24px 2px 10px;align-items:center;justify-content:space-between}.yi-family-section-heading h3,.yi-family-member-detail>h3,.yi-family-form>h3,.yi-family-delegated>h3,.yi-family-case-detail>h3{margin:0;font-size:17px}.yi-family-section-heading button{min-height:38px;padding:0 4px;border:0;background:transparent;color:var(--ys-coral);font-size:14px;font-weight:850}.yi-family-delegation-heading{margin-top:28px}
.yi-family-list{display:flex;flex-direction:column;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 10px 30px #173c520a;overflow:hidden}.yi-family-list>button{display:grid;width:100%;min-height:72px;padding:12px 15px;grid-template-columns:44px minmax(0,1fr) 20px;gap:12px;align-items:center;border:0;border-bottom:1px solid #e6ebe8;background:#fff;color:var(--ys-navy);text-align:left;transition:transform .18s cubic-bezier(.22,1,.36,1),background-color .18s ease}.yi-family-list>button:last-child{border-bottom:0}.yi-family-list>button:active{transform:scale(.985);background:#f5f8f5}.yi-family-list>button>span{display:flex;min-width:0;flex-direction:column;gap:4px}.yi-family-list>button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.yi-family-list>button small{overflow:hidden;color:#75807a;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.yi-family-list>button svg{width:17px;height:17px;color:#9ba49f}
.yi-family-form{display:flex;flex-direction:column;gap:12px}.yi-family-form>label{display:block;border:1px solid #dfe5e1;border-radius:15px;background:#fff;overflow:hidden}.yi-family-form>label>span{display:block;padding:11px 15px 0;color:#75807a;font-size:12px;font-weight:750}.yi-family-form input{width:100%!important;height:48px!important;padding:0 15px!important;border:0!important;outline:0!important;background:transparent!important;color:var(--ys-navy)!important;font-size:16px!important}.yi-family-picker{display:grid;min-height:58px;padding:0 15px;grid-template-columns:minmax(0,1fr) auto 18px;gap:10px;align-items:center;border:1px solid #dfe5e1;border-radius:15px;background:#fff;color:var(--ys-navy);text-align:left}.yi-family-picker strong{font-size:14px}.yi-family-picker svg{width:17px;height:17px}.yi-family-form>h3{margin:10px 2px 0}
.yi-family-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.yi-family-scope-grid>button{display:flex;min-height:52px;padding:0 14px;align-items:center;justify-content:space-between;border:1px solid #dfe5e1;border-radius:15px;background:#fff;color:var(--ys-navy);font-weight:800;transition:transform .18s cubic-bezier(.22,1,.36,1),border-color .18s ease,background-color .18s ease}.yi-family-scope-grid>button:active{transform:scale(.97)}.yi-family-scope-grid>button[aria-pressed=true]{border-color:#9fbca7;background:#f0f6f0}.yi-family-scope-grid i{display:grid;width:22px;height:22px;place-items:center;border:1px solid #c9d2cd;border-radius:50%;font-style:normal}.yi-family-scope-grid i.on{border-color:#5f8769;background:#5f8769;color:#fff}
.yi-family-primary{display:grid;width:100%;min-height:50px;margin-top:6px;padding:0 16px;place-items:center;border:0;border-radius:15px;background:var(--ys-coral);color:#fff;font-size:15px;font-weight:900;box-shadow:0 10px 22px #d16f6040;transition:transform .18s cubic-bezier(.22,1,.36,1),opacity .18s ease}.yi-family-primary:active{transform:scale(.98)}.yi-family-primary:disabled{opacity:.5}.yi-family-remove{display:grid;width:100%;min-height:48px;margin-top:10px;place-items:center;border:1px solid #e6aaa1;border-radius:15px;background:#fff;color:var(--ys-coral);font-weight:850}
.yi-family-verify-card{display:flex;margin:22px 18px;padding:22px 18px;flex-direction:column;gap:14px;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 12px 34px #173c5210}.yi-family-verify-card>strong{text-align:center;font-size:20px}.yi-family-verify-card input{width:100%!important;height:54px!important;padding:0 14px!important;border:1px solid #dfe5e1!important;border-radius:14px!important;background:#f8faf8!important;text-align:center!important;font-size:24px!important;font-weight:850!important;letter-spacing:.24em!important}
.yi-family-member-detail{display:flex;flex-direction:column;gap:14px}.yi-family-person{display:flex;min-height:80px;padding:14px 16px;align-items:center;gap:13px;border:1px solid #dfe5e1;border-radius:20px;background:#fff}.yi-family-person>span{display:flex;min-width:0;flex:1;flex-direction:column;gap:5px}.yi-family-person>span strong{font-size:17px}.yi-family-person>span b{width:max-content;padding:3px 8px;border-radius:999px;background:#eef5ee;color:#567661;font-size:11px}.yi-family-person>em{color:#75807a;font-style:normal;font-size:13px}.yi-family-member-detail>h3{margin-top:6px}
.yi-family-delegated{display:flex;flex-direction:column;gap:15px}.yi-family-delegated>h3{margin-top:8px}.yi-family-case-list{display:flex;flex-direction:column;border:1px solid #dfe5e1;border-radius:18px;background:#fff;overflow:hidden}.yi-family-case-list>button{display:flex;min-height:68px;padding:12px 15px;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #e6ebe8;background:#fff;color:var(--ys-navy);text-align:left}.yi-family-case-list>button:last-child{border-bottom:0}.yi-family-case-list>button>span{display:flex;min-width:0;flex-direction:column;gap:4px}.yi-family-case-list strong,.yi-family-case-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yi-family-case-list small,.yi-family-case-list time{color:#75807a;font-size:12px}.yi-family-case-list time{flex:0 0 auto}
.yi-family-case-detail{display:flex;flex-direction:column;gap:14px}.yi-family-case-detail>h3{margin-top:2px}.yi-family-case-detail dl{display:grid;margin:0;padding:5px 15px;grid-template-columns:86px minmax(0,1fr);border:1px solid #dfe5e1;border-radius:18px;background:#fff}.yi-family-case-detail dt,.yi-family-case-detail dd{min-height:48px;margin:0;padding:13px 0;border-bottom:1px solid #e6ebe8}.yi-family-case-detail dt:nth-last-of-type(1),.yi-family-case-detail dd:nth-last-of-type(1){border-bottom:0}.yi-family-case-detail dt{color:#75807a}.yi-family-case-detail dd{text-align:right;font-weight:750}.yi-family-observations{display:flex;flex-direction:column;border:1px solid #dfe5e1;border-radius:18px;background:#fff;overflow:hidden}.yi-family-observations>div{display:flex;min-height:50px;padding:10px 15px;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e6ebe8}.yi-family-observations>div:last-child{border-bottom:0}.yi-family-observations span{min-width:0;overflow-wrap:anywhere}.yi-family-observations strong{flex:0 0 auto}
.yi-family-shell .yi-live-error{margin:2px 0;color:var(--ys-coral);text-align:center;font-size:13px;font-weight:750}
@media(max-width:390px){.yi-family-scroll,.yi-family-form,.yi-family-member-detail,.yi-family-delegated,.yi-family-case-detail{padding-right:15px;padding-left:15px}.yi-family-scope-grid{gap:8px}.yi-family-scope-grid>button{padding:0 12px}}

/* Round 19: case contact, revisit, medication calendar and patient management. */
.yi-live-sheet{position:absolute;inset:0;z-index:60;display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;background:var(--ys-ivory);color:var(--ys-navy)}
.yi-live-sheet>.yi-sheet-header{flex:0 0 auto}
.yi-contact-workspace article{display:flex;min-height:0;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:28px 22px 100px;text-align:center}.yi-contact-workspace article strong{font-size:22px}.yi-contact-workspace article a{display:grid;min-width:min(100%,280px);min-height:60px;padding:0 20px;place-items:center;border:1px solid #dce4df;border-radius:18px;background:#fff;color:var(--ys-navy);font-size:24px;font-weight:850;letter-spacing:.02em;text-decoration:none;box-shadow:0 12px 34px #173c5210;transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s ease}.yi-contact-workspace article a:active{transform:scale(.98);box-shadow:0 6px 18px #173c5210}.yi-contact-workspace article a[aria-disabled=true]{color:#8b9590;pointer-events:none}
.yi-medication-detail article{min-height:0;flex:1;overflow-y:auto;padding:26px 18px calc(36px + var(--mobile-safe-area-height,0px));overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-medication-detail article h2{margin:0 2px 16px;font-size:24px}.yi-medication-detail dl{display:grid;margin:0;padding:4px 16px;grid-template-columns:96px minmax(0,1fr);border:1px solid #dfe5e1;border-radius:18px;background:#fff;box-shadow:0 10px 28px #173c520b}.yi-medication-detail dt,.yi-medication-detail dd{min-height:54px;margin:0;padding:16px 0;border-bottom:1px solid #e6ebe8}.yi-medication-detail dt:last-of-type,.yi-medication-detail dd:last-of-type{border-bottom:0}.yi-medication-detail dt{color:#75807a}.yi-medication-detail dd{text-align:right;font-weight:800;overflow-wrap:anywhere}
.yi-revisit-request,.yi-revisit-decision{background:#f5f7f5}.yi-revisit-form{display:flex;min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:18px 18px 112px;flex-direction:column;gap:15px;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-revisit-form :where(input,select,textarea),.yi-manage-patient-form :where(input,select,textarea){width:100%;min-height:48px;padding:0 15px;border:1px solid #dfe5e1;border-radius:14px;background:#fff;color:var(--ys-navy);font:600 15px/1.4 var(--ys-font-ui);outline:0}.yi-revisit-form textarea,.yi-manage-patient-form textarea{min-height:112px;padding-top:13px;padding-bottom:13px;resize:none}.yi-revisit-form :where(input,select,textarea):focus-visible,.yi-manage-patient-form :where(input,select,textarea):focus-visible{border-color:#9fb7aa;box-shadow:0 0 0 3px #9fb7aa24}
.yi-time-wheel,.yi-mode-presets,.yi-care-status{padding:15px;border:1px solid #dfe5e1;border-radius:18px;background:#fff;box-shadow:0 8px 24px #173c5208}.yi-time-wheel h3,.yi-mode-presets h3,.yi-care-status h3{margin:0 0 12px;font-size:15px}.yi-time-wheel>div{display:grid;max-height:210px;padding:2px;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scroll-snap-type:y proximity;-webkit-overflow-scrolling:touch}.yi-time-wheel button,.yi-mode-presets button,.yi-care-status button{min-height:44px;padding:0 9px;border:1px solid #dfe5e1;border-radius:12px;background:#f9faf9;color:var(--ys-navy);font-weight:800;scroll-snap-align:start;transition:transform .18s cubic-bezier(.22,1,.36,1),border-color .18s ease,background-color .18s ease,color .18s ease}.yi-time-wheel button:active,.yi-mode-presets button:active,.yi-care-status button:active{transform:scale(.96)}.yi-time-wheel button[aria-selected=true],.yi-mode-presets button[aria-pressed=true],.yi-care-status button[aria-pressed=true]{border-color:#729780;background:#eaf3eb;color:#375f45}.yi-mode-presets>div,.yi-care-status>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.yi-care-status>div{grid-template-columns:repeat(3,minmax(0,1fr))}
.yi-revisit-request>.yi-case-actionbar,.yi-revisit-decision>.yi-review-actionbar{position:absolute!important;right:0;bottom:0;left:0;z-index:4;display:flex!important;min-height:82px!important;padding:12px 18px calc(12px + var(--mobile-safe-area-height,0px))!important;align-items:flex-start!important;gap:10px;border-top:1px solid #dfe5e1;background:#fffffff2!important;backdrop-filter:blur(20px)}.yi-revisit-request>.yi-case-actionbar button,.yi-revisit-decision>.yi-review-actionbar button{min-height:50px!important;flex:1;border-radius:15px!important;font-weight:900!important}.yi-revisit-request>.yi-case-actionbar button,.yi-revisit-decision>.yi-review-actionbar button:last-child{border:0;background:var(--ys-coral);color:#fff}.yi-revisit-decision>.yi-review-actionbar button:first-child{border:1px solid #e3a49b;background:#fff;color:var(--ys-coral)}.yi-revisit-success{display:flex;min-height:0;flex:1;padding:32px 24px 100px;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}.yi-revisit-success svg{width:48px;height:48px;color:#5f8769}.yi-revisit-success strong{font-size:24px}.yi-revisit-success button{min-width:150px;min-height:48px;border:0;border-radius:14px;background:var(--ys-coral);color:#fff;font-weight:850}
.week-doses-v41 button .dose-status-icon{display:grid!important;width:28px!important;height:28px!important;place-items:center!important;border:2px solid #aeb8b3!important;border-radius:50%!important;background:transparent!important;color:#fff!important;transition:transform .2s cubic-bezier(.22,1,.36,1),background-color .2s ease,border-color .2s ease!important}.week-doses-v41 button:active .dose-status-icon{transform:scale(.88)}.week-doses-v41 button[data-status=missed] .dose-status-icon{border-color:#df6b61!important}.week-doses-v41 button[data-status=done] .dose-status-icon{border-color:#5e8b69!important;background:#5e8b69!important}.week-doses-v41 button[data-status=pending] .dose-status-icon{border-color:#5e8b69!important}.week-doses-v41 button[data-status=empty] .dose-status-icon{border-color:#aeb8b3!important}.week-doses-v41 button[data-status=today] .dose-status-icon{border-color:#5e8b69!important;background:#5e8b69!important}.week-doses-v41 .dose-status-icon svg{width:17px;height:17px;stroke-width:3}
.yi-medication-calendar{padding-bottom:calc(22px + var(--mobile-safe-area-height,0px));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-med-calendar-month{display:grid;min-height:62px;margin:12px 18px 4px;grid-template-columns:48px 1fr 48px;align-items:center}.yi-med-calendar-month strong{text-align:center;font-size:18px}.yi-med-calendar-month button{display:grid;width:42px;height:42px;padding:0;place-items:center;border:1px solid #dfe5e1;border-radius:50%;background:#fff;color:var(--ys-navy);font-size:28px}.yi-med-calendar-weekdays,.yi-med-calendar-grid{display:grid;margin:0 18px;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.yi-med-calendar-weekdays span{padding:8px 0;color:#75807a;text-align:center;font-size:12px;font-weight:800}.yi-med-calendar-grid>span,.yi-med-calendar-grid>button{aspect-ratio:1;min-width:0;border:0;background:transparent}.yi-med-calendar-grid>button{display:grid;position:relative;place-items:center;color:var(--ys-navy)}.yi-med-calendar-grid>button strong{display:grid;width:36px;height:36px;place-items:center;border:2px solid #aeb8b3;border-radius:50%;font-size:14px}.yi-med-calendar-grid>button[data-status=missed] strong{border-color:#df6b61}.yi-med-calendar-grid>button[data-status=done] strong{border-color:#5e8b69;background:#5e8b69;color:#fff}.yi-med-calendar-grid>button[data-status=pending] strong{border-color:#5e8b69}.yi-med-calendar-grid>button[data-status=empty] strong{border-color:#aeb8b3}.yi-med-calendar-grid>button[data-status=today] strong{border-color:#5e8b69;background:#5e8b69;color:#fff}.yi-med-calendar-grid i{position:absolute;right:1px;bottom:1px;display:grid;width:15px;height:15px;place-items:center;border-radius:50%;background:#fff;color:#5e8b69}.yi-med-calendar-grid i:empty{display:none}.yi-med-calendar-grid i svg{width:12px;height:12px;stroke-width:3}
.yi-medication-day{background:#f5f7f5}.yi-medication-day-list{display:flex;min-height:0;flex:1;overflow-y:auto;padding:18px 18px calc(34px + var(--mobile-safe-area-height,0px));flex-direction:column;gap:10px;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-medication-day-list article{display:flex;min-height:72px;padding:13px 15px;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dfe5e1;border-radius:16px;background:#fff;box-shadow:0 7px 22px #173c5209}.yi-medication-day-list article>span{display:flex;min-width:0;flex-direction:column;gap:5px}.yi-medication-day-list article strong{overflow-wrap:anywhere}.yi-medication-day-list article small{color:#75807a}.yi-medication-day-list article em{flex:0 0 auto;color:#75807a;font-style:normal;font-size:12px;font-weight:850}.yi-medication-day-list article em[data-status=completed]{color:#4f7d5b}.yi-medication-day-list article em[data-status=missed]{color:#d15e54}
.yi-manage-patient{background:#f5f7f5}.yi-manage-patient-form{display:flex;min-height:0;flex:1;overflow-y:auto;padding:18px 18px 116px;flex-direction:column;gap:14px;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-setting-toggle,.yi-contacted-toggle{display:flex;min-height:56px;padding:0 16px;align-items:center;justify-content:space-between;border:1px solid #dfe5e1;border-radius:16px;background:#fff;color:var(--ys-navy);font-weight:850}.yi-setting-toggle i{position:relative;width:46px;height:28px;border-radius:999px;background:#c8d0cc;transition:background-color .2s ease}.yi-setting-toggle i:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #173c5238;transition:transform .22s cubic-bezier(.22,1,.36,1)}.yi-setting-toggle[aria-pressed=true] i{background:#5e8b69}.yi-setting-toggle[aria-pressed=true] i:after{transform:translateX(18px)}.yi-contacted-toggle[aria-pressed=true]{border-color:#8fb29a;background:#edf5ee;color:#426c4c}.yi-manage-patient-actions{position:absolute;right:0;bottom:0;left:0;z-index:4;display:grid;min-height:86px;padding:12px 18px calc(12px + var(--mobile-safe-area-height,0px));grid-template-columns:1fr 1.25fr;gap:10px;border-top:1px solid #dfe5e1;background:#fffffff2;backdrop-filter:blur(20px)}.yi-manage-patient-actions button{min-height:50px;border-radius:15px;font-weight:900}.yi-manage-patient-actions button:first-child{border:1px solid #e3a49b;background:#fff;color:var(--ys-coral)}.yi-manage-patient-actions button:last-child{border:0;background:var(--ys-coral);color:#fff}
.yi-case-current-med-list>div{display:flex;flex-direction:column;gap:9px}.yi-case-current-med-list>div>button{width:100%;min-width:0}.yi-case-current-med-list>div>button strong,.yi-case-current-med-list>div>button span{min-width:0;overflow-wrap:anywhere}
.yi-shared-case-form-v56>.full-screen-inline-header,.yi-shared-case-form>.full-screen-inline-header{min-height:54px!important;padding:calc(12px + var(--mobile-safe-area-height,0px)) 18px 8px!important}.yi-shared-case-form-v56>.full-screen-inline-header h2,.yi-shared-case-form>.full-screen-inline-header h2{line-height:34px!important}.yi-shared-case-form-v56>.yi-case-scroll-body,.yi-shared-case-form>.yi-case-scroll-body{padding:8px 18px 112px!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}.yi-shared-case-form-v56 .v48-form-section,.yi-shared-case-form .v48-form-section{padding-right:4px!important;padding-left:4px!important}.yi-shared-case-form-v56 :where(input,select,textarea),.yi-shared-case-form :where(input,select,textarea){padding-right:15px!important;padding-left:15px!important}.yi-shared-case-form-v56 .yi-picker-row,.yi-shared-case-form .yi-picker-row{padding-right:15px!important;padding-left:15px!important}
@media(max-width:360px){.yi-time-wheel>div{grid-template-columns:repeat(2,minmax(0,1fr))}.yi-mode-presets>div{grid-template-columns:repeat(2,minmax(0,1fr))}.yi-med-calendar-weekdays,.yi-med-calendar-grid{margin-right:12px;margin-left:12px;gap:4px}.yi-med-calendar-grid>button strong{width:33px;height:33px}}

/* Larger, touch-friendly time wheel used by follow-up requests and rescheduling. */
.v52-time-display{min-height:92px;margin:14px 18px 18px;padding:14px 20px!important;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 10px 28px #173c520b}
.v52-time-display strong{min-width:72px;font-size:54px!important;line-height:1;text-align:center}
.v52-time-display span{font-size:44px!important;line-height:1}
.v52-time-columns{gap:16px!important;padding:0 18px 24px!important}
.v52-time-columns h3{margin-bottom:10px!important;font-size:15px!important}
.v52-time-columns section>div{touch-action:pan-y;scroll-snap-type:y proximity;-webkit-overflow-scrolling:touch}
.v52-time-columns button{min-height:58px!important;padding:0 18px!important;font-size:20px!important;scroll-snap-align:center;transition:background-color .18s ease,color .18s ease,transform .16s cubic-bezier(.22,1,.36,1)}
.v52-time-columns button:active{transform:scale(.97)}
.v52-time-columns button[data-selected=true]{background:#f7ebe8;color:var(--ys-coral)!important}

/* Round 20: invitation and QR handoff. */
.yi-home-actions{display:flex;align-items:center;gap:8px}.yi-home-actions>button{min-height:34px;padding:0 9px;border:0;border-radius:11px;background:#ffffffc7;color:var(--ys-navy);font-size:13px;font-weight:850;backdrop-filter:blur(14px);transition:transform .18s cubic-bezier(.22,1,.36,1),background-color .18s ease}.yi-home-actions>button:active{transform:scale(.96);background:#fff}.yi-home-actions .notice-button{position:relative;top:auto;right:auto}
.yi-doctor-invite-workspace,.yi-patient-add-doctor,.yi-invite-result,.yi-invite-success{background:#f5f7f5}.yi-invite-methods,.yi-patient-add-methods{display:flex;min-height:0;flex:0 1 auto;margin:18px;padding:4px 16px;flex-direction:column;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 12px 34px #173c520c;overflow:hidden}.yi-invite-methods>button,.yi-patient-add-methods>button,.yi-patient-add-methods>label{display:grid;width:100%;min-height:62px;padding:0 2px;grid-template-columns:minmax(0,1fr) 20px;align-items:center;border:0;border-bottom:1px solid #e6ebe8;background:#fff;color:var(--ys-navy);text-align:left;transition:transform .18s cubic-bezier(.22,1,.36,1),background-color .18s ease}.yi-invite-methods>button:last-child,.yi-patient-add-methods>*:last-child{border-bottom:0}.yi-invite-methods>button:active,.yi-patient-add-methods>button:active,.yi-patient-add-methods>label:active{transform:scale(.985);background:#f7f9f7}.yi-invite-methods strong,.yi-patient-add-methods strong{font-size:16px}.yi-invite-methods svg,.yi-patient-add-methods svg{width:18px;height:18px;color:#99a39e}.yi-patient-add-methods>label{position:relative;cursor:pointer}.yi-patient-add-methods>label input[type=file]{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.yi-patient-add-methods .yi-profile-field{margin:12px 0 4px}.yi-inline-primary{min-height:50px!important;margin:8px 0 12px!important;place-items:center!important;border:0!important;border-radius:15px!important;background:var(--ys-coral)!important;color:#fff!important;text-align:center!important;font-size:15px!important;font-weight:900!important;box-shadow:0 10px 22px #d16f6038}.yi-inline-primary:disabled{opacity:.5}
.yi-active-invitations{min-height:0;margin:0 18px 22px;padding:4px 16px 6px;overflow-y:auto;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 10px 30px #173c5209;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-active-invitations h2{margin:14px 2px 8px;font-size:16px}.yi-active-invitations>button{display:grid;width:100%;min-height:58px;padding:0 2px;grid-template-columns:minmax(0,1fr) auto 18px;gap:10px;align-items:center;border:0;border-bottom:1px solid #e6ebe8;background:#fff;color:var(--ys-navy);text-align:left}.yi-active-invitations>button:last-child{border-bottom:0}.yi-active-invitations>button span{font:800 13px/1.2 Roboto,var(--ys-font-ui);letter-spacing:.07em}.yi-active-invitations svg{width:17px;height:17px;color:#9ba49f}
.yi-invite-result-card{display:flex;min-height:0;flex:1;margin:18px;padding:24px 20px 30px;flex-direction:column;align-items:center;gap:18px;overflow-y:auto;border:1px solid #dfe5e1;border-radius:24px;background:#fff;box-shadow:0 14px 38px #173c5210;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-invite-result-card>strong{font-size:20px}.yi-invite-code{min-width:210px;min-height:54px;padding:0 18px;border:1px solid #dce4df;border-radius:15px;background:#f8faf8;color:var(--ys-navy);font:900 21px/1 Roboto,var(--ys-font-ui);letter-spacing:.13em;transition:transform .18s cubic-bezier(.22,1,.36,1),border-color .18s ease}.yi-invite-code:active{transform:scale(.97)}.yi-invite-code.is-primary{border-color:#83a58e;box-shadow:0 0 0 3px #83a58e20}.yi-invite-qr{display:block;width:min(100%,268px);height:auto;aspect-ratio:1;padding:12px;border:1px solid #dce4df;border-radius:20px;background:#fff;object-fit:contain}.yi-invite-qr.is-primary{border-color:#83a58e;box-shadow:0 0 0 3px #83a58e20}.yi-invite-result-card time{color:#75807a;font-size:13px;font-weight:700}
.yi-invite-success>div{display:flex;min-height:0;flex:1;padding:30px 22px 100px;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center}.yi-invite-success>div svg{width:52px;height:52px;color:#5f8769}.yi-invite-success>div strong{font-size:24px}.yi-invite-success>div span{color:#67736c;font-size:15px}.yi-invite-success>.yi-sticky-submit{right:18px!important;bottom:calc(14px + var(--mobile-safe-area-height,0px))!important;left:18px!important;width:auto!important}
.yi-doctor-invite-case{height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
.yi-doctor-invite-case>header:first-child{position:relative!important;top:auto!important;min-height:54px!important;margin:0!important;padding:calc(16px + var(--mobile-safe-area-height,0px)) 18px 8px!important;flex:0 0 auto!important;align-items:end!important}
.yi-doctor-invite-case>.yi-case-scroll-body{position:relative!important;z-index:1!important;min-height:0!important;padding:8px 18px 18px!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}.yi-doctor-invite-case .v48-form-section{padding-right:4px!important;padding-left:4px!important}.yi-doctor-invite-case :where(input,select,textarea){padding-right:15px!important;padding-left:15px!important}.yi-doctor-invite-case .yi-picker-row{padding-right:15px!important;padding-left:15px!important}
.yi-doctor-invite-case>.yi-case-scroll-body{padding-bottom:112px!important}
.yi-doctor-invite-case>.v48-submit-dock{position:absolute!important;z-index:45!important;top:auto!important;right:14px!important;bottom:calc(10px + var(--mobile-safe-area-height,0px))!important;left:14px!important;margin:0!important;padding:8px!important}

/* 病历管理栏必须以设备屏幕为定位基准，不能跟随短列表停在内容中部。 */
.mobile-scroll-content:has(.yi-case-batchbar),.screen-page:has(.yi-case-batchbar){min-height:100dvh!important}
.yi-doctor-invite-workspace>.yi-live-error,.yi-patient-add-doctor>.yi-live-error{margin:0 20px 14px;text-align:center}.yi-doctor-invite-workspace>.yi-sheet-header,.yi-patient-add-doctor>.yi-sheet-header,.yi-invite-result>.yi-sheet-header,.yi-invite-success>.yi-sheet-header{flex:0 0 auto}

.yi-doctor-review-wide .v48-readonly-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;border-top:0!important}
.yi-doctor-review-wide .v48-readonly-grid>div{display:flex!important;min-width:0!important;min-height:64px!important;padding:10px 12px!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;overflow:visible!important;border:1px solid var(--ys-line)!important;border-radius:13px!important}
.yi-doctor-review-wide .v48-readonly-grid strong{display:block!important;width:100%!important;max-width:100%!important;overflow:visible!important;color:var(--ys-navy)!important;text-align:left!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:370px){.yi-home-actions{gap:5px}.yi-home-actions>button{padding:0 7px;font-size:12px}.yi-invite-result-card{margin-right:14px;margin-left:14px}.yi-invite-qr{width:min(100%,238px)}}
.phone-stage{
  width:100vw!important;
  height:100dvh!important;
  min-height:100svh!important;
  padding:0!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  background:var(--ys-ivory,#f5f6f2)!important;
  overflow:hidden!important;
}
.device-menu-bar,.phone-bezel,.device-camera,.mobile-cursor{display:none!important}
.phone-scale-box{
  position:relative!important;
  width:min(100vw,430px)!important;
  height:100dvh!important;
  min-height:100svh!important;
  flex:0 1 430px!important;
}
.phone-device{
  position:relative!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  transform:none!important;
  transform-origin:center!important;
  -webkit-user-select:auto!important;
  user-select:auto!important;
}
.device-screen{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
  box-shadow:none!important;
  cursor:auto!important;
  -webkit-user-select:auto!important;
  user-select:auto!important;
}
.device-screen,.device-screen *{cursor:auto!important}
@media (min-width:431px){
  .phone-scale-box{box-shadow:0 0 0 1px rgba(18,52,86,.08),0 18px 54px rgba(18,52,86,.10)}
}

/* Round 23: registration gender, native-feeling QR choices and real medication history. */
.yi-live-provision .yi-provision-gender{width:100%;min-height:54px;margin:12px 0 0;padding:0 15px;border:1px solid var(--ys-line);border-radius:14px;background:#fff;color:var(--ys-navy)}
.yi-live-provision .yi-provision-gender span{font-weight:700}.yi-live-provision .yi-provision-gender strong{margin-left:auto;font-weight:650}.yi-live-provision .yi-provision-gender svg{width:18px;height:18px;margin-left:8px;color:var(--ys-muted)}
.yi-qr-scanner{background:#050707}.yi-qr-scanner>.yi-sheet-header{background:#fffffff2}.yi-qr-camera{display:flex;min-height:0;flex:1;align-items:center;justify-content:center;overflow:hidden;background:#050707}.yi-qr-camera video{width:100%;height:100%;object-fit:cover}.yi-qr-scanner>.yi-live-error{position:absolute;right:18px;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:18px;margin:0;padding:13px 15px;border-radius:14px;background:#fffffff0;text-align:center}
.week-doses-v41 button[data-status=done] .dose-status-icon,.week-doses-v41 button[data-status=done] .dose-status-icon svg{color:#fff!important;stroke:#fff!important;opacity:1!important}
.yi-recent-medications{margin-top:8px;padding:0 16px 8px;border:1px solid #dfe5e1;border-radius:20px;background:#fff;box-shadow:0 10px 30px #173c5209}.yi-recent-medications-heading{display:flex;min-height:58px;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebe8}.yi-recent-medications-heading h2{margin:0;font-size:17px}.yi-recent-medications-heading button{min-height:40px;padding:0;border:0;background:transparent;color:var(--ys-coral);font-weight:850}
.yi-medication-history-list{display:flex;flex-direction:column}.yi-medication-history-list article{display:flex;min-height:88px;padding:13px 2px;flex-direction:column;justify-content:center;gap:6px;border-bottom:1px solid #e6ebe8}.yi-medication-history-list article:last-child{border-bottom:0}.yi-medication-history-list article>div{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px}.yi-medication-history-list strong{min-width:0;font-size:15px;overflow-wrap:anywhere}.yi-medication-history-list em{flex:0 0 auto;color:#75807a;font-size:12px;font-style:normal;font-weight:850}.yi-medication-history-list em[data-status=active]{color:#4f7d5b}.yi-medication-history-list em[data-status=stopped]{color:#9a625c}.yi-medication-history-list span,.yi-medication-history-list time{color:#65716b;font-size:13px;line-height:1.45}.yi-medication-history-list time{font-size:12px}
.yi-medication-history-workspace{background:#f5f7f5}.yi-medication-history-search{flex:0 0 auto;margin:14px 18px 10px!important}.yi-medication-history-scroll{min-height:0;flex:1;overflow-y:auto;margin:0 18px;padding:2px 16px calc(28px + env(safe-area-inset-bottom,0px));border:1px solid #dfe5e1;border-radius:20px;background:#fff;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.yi-medication-history-scroll .yi-live-empty{min-height:180px}

/* Real mobile web: the operating system supplies its own status area. */
.status-bar{display:none!important}
.patient-top,
.page-header,
.records-header,
.profile-hero,
.doctor-hero,
.case-homepage-header,
.patient-file-header,
.patient-detail-header-v56,
.role-page,
.v52-review-page,
.v53-cert-field-page,
.v56-legal-page,
.yi-notification-center{
  padding-top:calc(env(safe-area-inset-top,0px) + 14px)!important;
}
.yi-live-sheet>header,
.yi-live-sheet>.full-screen-inline-header,
.yi-shared-case-form>.full-screen-inline-header,
.yi-shared-case-form-v56>.full-screen-inline-header,
.yi-doctor-review-wide>header,
.yi-doctor-review-wide>.full-screen-inline-header{
  padding-top:calc(env(safe-area-inset-top,0px) + 12px)!important;
}

/* Round 24: follow-up mode switch, date lookup and complete status presentation. */
.yi-patient-followups-v24{min-height:100%;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px));background:var(--ys-ivory,#f5f6f2)}
.yi-patient-followup-header{padding-bottom:12px!important}
.yi-followup-title-row{display:flex;min-height:48px;margin-top:8px;align-items:center;justify-content:space-between;gap:16px}
.yi-followup-title-row h1{margin:0;font-size:30px;line-height:1}
.yi-followup-segment{display:grid;min-width:170px;padding:3px;grid-template-columns:1fr 1fr;border:1px solid #dfe5e1;border-radius:13px;background:#e9eeeb;box-shadow:inset 0 1px 2px #173c520d}
.yi-followup-segment button{min-height:38px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#66716b;font-size:13px;font-weight:850;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .16s cubic-bezier(.22,1,.36,1)}
.yi-followup-segment button:active{transform:scale(.96)}
.yi-followup-segment button[aria-selected=true]{background:#fff;color:var(--ys-navy);box-shadow:0 2px 8px #173c5220}
.yi-followup-date-search{display:flex;margin:14px 18px 12px!important;align-items:center;overflow:hidden}
.yi-followup-date-search input{min-width:0;flex:1;color:var(--ys-navy);font-weight:750}
.yi-followup-date-search button{min-height:42px;padding:0 14px;border:0;border-left:1px solid #e3e8e5;background:#fff;color:var(--ys-coral);font-weight:850}
.yi-patient-followups-v24>.yi-live-error{margin:0 18px 10px}
.yi-followup-card-list,.yi-followup-history-list{display:flex;padding:2px 18px 20px;flex-direction:column;gap:12px}
.yi-followup-card{padding:17px 16px 15px;border:1px solid #dfe5e1;border-radius:22px;background:#fff;box-shadow:0 10px 30px #173c520b;animation:yi-followup-card-in .32s cubic-bezier(.22,1,.36,1) both}
@keyframes yi-followup-card-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.yi-followup-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.yi-followup-card>header time{display:flex;align-items:baseline;gap:9px}.yi-followup-card>header time strong{font-size:18px}.yi-followup-card>header time span{color:#66716b;font-size:15px;font-weight:800}
.yi-followup-card>header i{padding:6px 9px;border-radius:999px;background:#f7ebe8;color:var(--ys-coral);font-style:normal;font-size:12px;font-weight:900}
.yi-followup-card[data-status=confirmed]>header i{background:#edf5ee;color:#4f7d5b}
.yi-followup-card h2{margin:14px 0 12px;font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.yi-followup-card dl{display:grid;margin:0;padding:12px 0;grid-template-columns:44px minmax(0,1fr);gap:8px 10px;border-top:1px solid #edf0ee;border-bottom:1px solid #edf0ee}
.yi-followup-card dt{color:#7b8580;font-size:13px;font-weight:750}.yi-followup-card dd{min-width:0;margin:0;color:var(--ys-navy);font-size:13px;font-weight:800;overflow-wrap:anywhere}
.yi-followup-card .followup-actions-v43{display:grid;margin-top:14px;grid-template-columns:1fr 1fr;gap:10px}.yi-followup-card .followup-actions-v43 button:only-child{grid-column:1/-1}
.yi-followup-conflict{width:100%;min-height:46px;margin-top:12px;padding:0 12px;border:1px solid #e5aaa0;border-radius:13px;background:#fff7f5;color:#b95146;text-align:center;font-weight:850;transition:transform .16s cubic-bezier(.22,1,.36,1)}.yi-followup-conflict:active{transform:scale(.98)}
.yi-followup-card .yi-followup-state-copy{margin:13px 0 0;padding:12px;border-radius:13px;background:#f2f5f3;color:#66716b;text-align:center;font-weight:800}
.yi-followup-history-row{display:grid;width:100%;min-height:80px;padding:12px 14px;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #dfe5e1;border-radius:18px;background:#fff;color:var(--ys-navy);text-align:left;box-shadow:0 7px 22px #173c5208;transition:transform .16s cubic-bezier(.22,1,.36,1)}.yi-followup-history-row:active{transform:scale(.985)}
.yi-followup-history-row time,.yi-followup-history-row>span{display:flex;min-width:0;flex-direction:column;gap:4px}.yi-followup-history-row small{color:#76817b;font-size:12px}.yi-followup-history-row>span strong{overflow-wrap:anywhere}.yi-followup-history-row em{padding:5px 8px;border-radius:999px;background:#f0f3f1;color:#68736d;font-style:normal;font-size:11px;font-weight:900}
.yi-doctor-followup-state{display:flex;flex:0 0 auto;align-items:center;gap:8px}.yi-doctor-followup-state>span{padding:5px 8px;border-radius:999px;background:#f0f3f1;color:#65716b;font-size:11px;font-weight:900;white-space:nowrap}.yi-doctor-followup-state>span[data-status=confirmed]{background:#edf5ee;color:#4f7d5b}.yi-doctor-followup-state>span[data-status=pending]{background:#fff3e4;color:#a56831}.yi-doctor-followup-state>span[data-status=missed],.yi-doctor-followup-state>span[data-status=expired-pending]{background:#f2efee;color:#786964}
.yi-doctor-followup-state .row-manage-button:disabled{opacity:.52;pointer-events:none}
@media(max-width:370px){.yi-followup-title-row{gap:10px}.yi-followup-title-row h1{font-size:28px}.yi-followup-segment{min-width:154px}.yi-followup-segment button{padding:0 8px}.yi-followup-card-list,.yi-followup-history-list{padding-right:14px;padding-left:14px}.yi-followup-history-row{grid-template-columns:66px minmax(0,1fr) auto}}

/* Round 25: presentation-only mobile geometry and safe-area normalization. */
:root{
  --yi-control-height:50px;
  --yi-control-radius:14px;
  --yi-control-padding-inline:16px;
  --yi-page-gutter:16px;
  --yi-motion-spring:cubic-bezier(.22,1,.36,1);
}

/* Full-screen sheets used to inherit prototype phone padding. On the real web
   viewport that created a second safe area and narrowed every child control. */
.yi-live-sheet{
  padding:0!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  box-sizing:border-box!important;
}
.bottom-sheet.full-screen-sheet{
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  border-radius:0!important;
}
.bottom-sheet.full-screen-sheet>.sheet-content{
  height:100%!important;
  min-height:0!important;
}
.home-indicator{display:none!important}
.yi-live-sheet>header,
.yi-live-sheet>.full-screen-inline-header,
.yi-shared-case-form>.full-screen-inline-header,
.yi-shared-case-form-v56>.full-screen-inline-header,
.yi-doctor-review-wide>header,
.yi-doctor-review-wide>.full-screen-inline-header{
  width:100%!important;
  min-height:calc(58px + env(safe-area-inset-top,0px))!important;
  padding:calc(env(safe-area-inset-top,0px) + 8px) 18px 8px!important;
  box-sizing:border-box!important;
  align-items:center!important;
}
.yi-live-sheet>header :where(h1,h2),
.yi-live-sheet>.full-screen-inline-header :where(h1,h2),
.yi-shared-case-form>.full-screen-inline-header :where(h1,h2),
.yi-shared-case-form-v56>.full-screen-inline-header :where(h1,h2){
  min-width:0!important;
  margin:0!important;
  line-height:1.25!important;
}

/* One field geometry across text, search and native date/time controls. */
:where(.device-screen) :where(
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),
  select
){
  inline-size:100%!important;
  width:100%!important;
  min-inline-size:0!important;
  min-width:0!important;
  max-inline-size:100%!important;
  max-width:100%!important;
  height:var(--yi-control-height)!important;
  padding-inline:var(--yi-control-padding-inline)!important;
  border-radius:var(--yi-control-radius)!important;
  box-sizing:border-box!important;
}
:where(.device-screen) textarea{
  inline-size:100%!important;
  width:100%!important;
  min-inline-size:0!important;
  min-width:0!important;
  max-inline-size:100%!important;
  max-width:100%!important;
  min-height:112px!important;
  padding:14px var(--yi-control-padding-inline)!important;
  border-radius:var(--yi-control-radius)!important;
  box-sizing:border-box!important;
}
:where(.device-screen) :where(input[type=date],input[type=time],input[type=datetime-local],input[type=month]){
  display:block!important;
  inline-size:100%!important;
  min-inline-size:0!important;
  max-inline-size:100%!important;
  -webkit-min-logical-width:0!important;
}
:where(.device-screen) :where(input[type=date],input[type=time],input[type=datetime-local],input[type=month])::-webkit-date-and-time-value{
  min-width:0!important;
  padding:0!important;
  text-align:left!important;
}
:where(.device-screen) :where(input[type=date],input[type=time],input[type=datetime-local],input[type=month])::-webkit-datetime-edit{
  min-width:0!important;
  padding:0!important;
}
:where(.device-screen) :where(.search-row,.records-search-v56,.yi-picker-search,.yi-patient-search){
  width:auto!important;
  max-width:100%!important;
  min-height:var(--yi-control-height)!important;
  border-radius:var(--yi-control-radius)!important;
  box-sizing:border-box!important;
}
:where(.device-screen) :where(.search-row,.records-search-v56,.yi-picker-search,.yi-patient-search) input{
  height:calc(var(--yi-control-height) - 2px)!important;
  padding-inline:var(--yi-control-padding-inline)!important;
}
:where(.device-screen) :where(label,.yi-profile-field,.yi-case-date-row,.yi-case-diagnosis-row,.yi-picker-row,.search-row)>*{
  min-width:0;
}

/* Case create/edit/review share the same almost-edge-to-edge form geometry. */
.yi-shared-case-form-v56>.yi-case-scroll-body,
.yi-shared-case-form>.yi-case-scroll-body,
.yi-doctor-invite-case>.yi-case-scroll-body,
.yi-doctor-review-wide>.yi-case-scroll-body{
  padding-right:12px!important;
  padding-left:12px!important;
}
.yi-shared-case-form-v56 .v48-form-section,
.yi-shared-case-form .v48-form-section,
.yi-doctor-invite-case .v48-form-section,
.yi-doctor-review-wide .v48-form-section{
  margin-right:0!important;
  margin-left:0!important;
  padding-right:8px!important;
  padding-left:8px!important;
  border-right:0!important;
  border-left:0!important;
  box-sizing:border-box!important;
}
.yi-shared-case-form-v56 :where(.yi-picker-row,.yi-case-readonly-row,.yi-profile-field),
.yi-shared-case-form :where(.yi-picker-row,.yi-case-readonly-row,.yi-profile-field),
.yi-doctor-invite-case :where(.yi-picker-row,.yi-case-readonly-row,.yi-profile-field),
.yi-doctor-review-wide :where(.yi-picker-row,.yi-case-readonly-row,.yi-profile-field){
  padding-right:16px!important;
  padding-left:16px!important;
  box-sizing:border-box!important;
}
.yi-shared-case-form-v56 :where(.yi-case-date-row,.yi-case-diagnosis-row),
.yi-shared-case-form :where(.yi-case-date-row,.yi-case-diagnosis-row),
.yi-doctor-invite-case :where(.yi-case-date-row,.yi-case-diagnosis-row),
.yi-doctor-review-wide :where(.yi-case-date-row,.yi-case-diagnosis-row){
  padding-right:0!important;
  padding-left:0!important;
}
.yi-shared-case-form-v56 :where(.yi-case-date-row,.yi-case-diagnosis-row) :where(input,select),
.yi-shared-case-form :where(.yi-case-date-row,.yi-case-diagnosis-row) :where(input,select),
.yi-doctor-invite-case :where(.yi-case-date-row,.yi-case-diagnosis-row) :where(input,select),
.yi-doctor-review-wide :where(.yi-case-date-row,.yi-case-diagnosis-row) :where(input,select){
  padding-right:16px!important;
  padding-left:16px!important;
}
.yi-shared-case-picker .yi-case-choice-list{
  width:auto!important;
  margin:16px var(--yi-page-gutter) 0!important;
}
.yi-profile-editor-v56>.yi-sticky-submit,
.yi-doctor-profile-sheet>.yi-sticky-submit,
.yi-security-form>.yi-sticky-submit,
.yi-doctor-certification-v56>.yi-sticky-submit{
  position:absolute!important;
  right:18px!important;
  bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  left:18px!important;
  width:auto!important;
  margin:0!important;
}
.yi-doctor-profile-sheet>.yi-profile-form{
  padding:10px 18px 92px!important;
  box-sizing:border-box!important;
}
.yi-doctor-invite-case>header:first-child,
.yi-family-shell>.yi-family-header{
  min-height:calc(58px + env(safe-area-inset-top,0px))!important;
  padding:calc(env(safe-area-inset-top,0px) + 8px) 18px 8px!important;
  align-items:center!important;
}
.yi-doctor-invite-case .yi-profile-field,
.yi-doctor-review-wide .yi-profile-field{
  padding-right:0!important;
  padding-left:0!important;
}
.yi-followup-date-search{
  margin-right:24px!important;
  margin-left:24px!important;
}
.v48-submit-dock,
.yi-review-actionbar{
  bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
}
.yi-shared-case-picker .yi-picker-actionbar,
.yi-revisit-request>.yi-case-actionbar,
.yi-revisit-decision>.yi-review-actionbar,
.yi-manage-patient-actions{
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
}
.yi-invite-success>.yi-sticky-submit,
.yi-doctor-invite-case>.v48-submit-dock{
  bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
}

/* Destructive and secondary action labels stay centered inside their targets. */
:where(.device-screen) :where(
  .case-swipe-delete,.yi-subitem-delete,.yi-original-delete,.yi-item-delete,
  .yi-notice-single-delete,.yi-unlink-doctor,.v48-remove-major,.yi-detail-delete,
  .yi-review-actionbar button,.yi-manage-patient-actions button,
  button.secondary,.yi-picker-actionbar button
){
  display:inline-flex!important;
  min-width:0;
  align-items:center!important;
  justify-content:center!important;
  padding-inline:14px!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:normal!important;
  box-sizing:border-box!important;
}

@media (hover:none) and (pointer:coarse){
  :where(.device-screen) button:not(:disabled){
    transition:transform .18s var(--yi-motion-spring),background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  }
  :where(.device-screen) button:not(:disabled):active{transform:scale(.975)}
}
@media (prefers-reduced-motion:reduce){
  :where(.device-screen) *,
  :where(.device-screen) *::before,
  :where(.device-screen) *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}
.case-original-entry {
  margin: 14px 18px 28px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 57, 82, .06);
}
.case-original-entry h2 { margin: 0 0 12px; font-size: 17px; color: #173b56; }
.case-original-entry > div { display: grid; gap: 9px; }
.case-original-entry button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; padding: 0 14px; background: #f4f7f6; color: #204a62; display: grid; grid-template-columns: 22px minmax(0,1fr) 18px; align-items: center; gap: 10px; text-align: left; }
.case-original-entry button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-original-empty { min-height: 50px; border-radius: 13px; background: #f4f7f6; color: #78909d; display: grid; place-items: center; font-weight: 650; }
.yi-self-med-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.yi-self-med-actions button { min-width: 74px; height: 34px; border: 1px solid #e7b9b3; border-radius: 10px; background: #fff; color: #c44739; font-weight: 650; }
.week-doses-v41 button[data-status="done"] .dose-status-icon {
  border-color: #5e8b69 !important;
  background: transparent !important;
  color: #5e8b69 !important;
}
.week-doses-v41 button[data-status="done"] .dose-status-icon svg {
  color: #5e8b69 !important;
  stroke: #5e8b69 !important;
  opacity: 1 !important;
}

/* The public mobile site uses the real device chrome, so no simulated system bar is rendered. */
.home-indicator-svg,
.android-navigation-bar {
  display: none !important;
}

/* iOS zooms focused form controls below 16px. Keep native pinch zoom while preventing focus zoom. */
@media (max-width: 767px) {
  :where(.device-screen) :where(
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select,
    [contenteditable="true"]
  ) {
    font-size: 16px !important;
  }
}
