:root{font-family:"Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:#183049;background:#f3f7fa;font-size:16px;}*{box-sizing:border-box;}body{margin:0;}button,input,select,textarea{font:inherit;}button{cursor:pointer;}button:disabled{opacity:.5;cursor:not-allowed;}.hidden{display:none!important;}.shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr);}.sidebar{background:#123552;color:#e7f2f8;min-height:100vh;padding:26px 16px;display:flex;flex-direction:column;}.identity{display:flex;padding:0 8px 32px;border-bottom:1px solid #35536b;}.identity strong,.identity span{display:block;}.identity strong{font-size:17px;}.identity span{color:#b8d2df;margin-top:4px;}.brand-symbol{width:37px;height:37px;border-radius:10px;background:#117e91;color:white;display:grid;place-items:center;font-size:22px;font-weight:bold;}.sidebar nav{padding-top:22px;display:grid;}.sidebar button{width:100%;background:none;border:0;color:inherit;text-align:left;border-radius:9px;padding:12px 14px;}.sidebar nav button:hover,.sidebar nav button.active{background:#235576;color:white;}.sidebar nav span{font-size:20px;margin-right:11px;}.sidebar-bottom{margin-top:auto;padding:12px 8px;color:#b8d2df;font-size:13px;}.sidebar-bottom button{padding:9px 0;}.topbar{height:70px;border-bottom:1px solid #dfebf0;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 34px;}.breadcrumb{color:#6c8192;font-size:14px;}.breadcrumb b{margin:0 8px;color:#b8cad2;}.breadcrumb strong{color:#183049;}.local-badge{color:#176c6b;background:#e9f6f2;padding:7px 10px;border-radius:20px;font-size:13px;}.topbar #menu-toggle{display:none;}.content{max-width:1440px;margin:auto;padding:31px 34px 70px;}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px;}.page-title h1{margin:0 0 6px;letter-spacing:.2px;}.muted{color:#688196;margin:0;font-size:14px;}.actions{display:flex;gap:9px;flex-wrap:wrap;}.primary,.secondary,.danger{border-radius:8px;padding:10px 16px;font-weight:600;border:1px solid transparent;font-size:14px;}.primary{background:#087c91;color:white;}.primary:hover{background:#066b7f;}.secondary{background:white;border-color:#bdced7;color:#17425e;}.secondary:hover{background:#edf7f9;}.danger{background:#fff;border-color:#e2b5b5;color:#a84342;}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:21px;}.stat,.panel,.form-section,.export-card{background:white;border:1px solid #dfe9ee;border-radius:12px;box-shadow:0 3px 16px #173f5910;}.stat{padding:18px 20px;border-top:3px solid #0e879a;}.stat:nth-child(2){border-color:#4273a4;}.stat:nth-child(3){border-color:#d3913e;}.stat:nth-child(4){border-color:#549a82;}.stat span{color:#667f91;}.stat strong{display:block;font-size:27px;margin-top:7px;}.panel{padding:21px;}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;}.toolbar h2{margin:0;font-size:18px;}.search{max-width:370px;width:100%;border:1px solid #cddbe2;border-radius:8px;padding:10px 12px;}.table-wrap{overflow:auto;}table{border-collapse:collapse;width:100%;min-width:900px;}th{text-align:left;background:#eef4f7;color:#536a7c;font-size:13px;font-weight:600;padding:12px 13px;white-space:nowrap;}td{padding:15px 13px;border-bottom:1px solid #e5edf1;font-size:14px;vertical-align:top;}tbody tr:hover{background:#f8fbfc;}.id{font-weight:700;color:#175474;}.subid{padding-left:24px;color:#748798;}.name{font-weight:700;}.status{display:inline-flex;padding:3px 8px;background:#eaf5f0;color:#23705d;}.status.draft{background:#fff3df;color:#966316;}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;}.link-btn{background:none;border:0;color:#0c7488;padding:2px;font-size:13px;}.link-btn:hover{text-decoration:underline;}.empty{text-align:center;padding:55px 10px;color:#70879a;}.empty strong{display:block;color:#28485f;margin-bottom:6px;}.section-tabs{display:flex;gap:6px;overflow:auto;white-space:nowrap;margin-bottom:18px;padding-bottom:3px;}.section-tabs button{border:1px solid #d8e5eb;background:white;color:#496578;padding:9px 12px;border-radius:7px;font-size:14px;}.section-tabs button.active{background:#175b78;border-color:#175b78;color:white;}.form-section{padding:24px;margin-bottom:16px;scroll-margin-top:90px;}.form-section h2{margin:0 0 19px;font-size:18px;padding-bottom:12px;border-bottom:1px solid #e2ebef;}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;}.field{display:flex;flex-direction:column;gap:7px;min-width:0;}.field.wide{grid-column:span 3;}.field label{font-size:14px;font-weight:600;color:#375269;}.field input,.field select,.field textarea{border:1px solid #cbdbe3;border-radius:7px;background:#fff;padding:10px 11px;color:#17344b;outline:0;min-width:0;}.field textarea{min-height:75px;resize:vertical;}.field input:focus,.field select:focus,.field textarea:focus,.search:focus{border-color:#0b869b;box-shadow:0 0 0 3px #dceff2;}.form-footer{position:sticky;bottom:0;background:#f3f7faf2;border-top:1px solid #dbe7ec;padding:13px 0;display:flex;justify-content:flex-end;gap:10px;backdrop-filter:blur(8px);}.export-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px;}.export-card{padding:25px;}.export-card h2{margin:0 0 9px;font-size:18px;}.export-card p{color:#60798c;line-height:1.65;font-size:14px;min-height:66px;}.export-card .primary,.export-card .secondary{margin-top:9px;}.note{color:#657f90;background:#e9f2f6;padding:15px;border-radius:9px;margin-top:20px;font-size:14px;line-height:1.6;}.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#e6f2f5,#f8fbfd 55%,#dcecf1);}.login-card{background:white;border:1px solid #dce9ed;box-shadow:0 18px 55px #1748621c;border-radius:16px;padding:37px;width:min(420px,calc(100vw - 30px));}.login-card .brand-symbol{margin-bottom:25px;}.login-card h1{margin:3px 0;font-size:28px;}.login-card p{color:#617b8c;}.login-card .eyebrow{font-size:13px;letter-spacing:1px;color:#118094;font-weight:700;}.login-card label{display:grid;gap:8px;margin:28px 0 15px;font-size:14px;font-weight:600;}.login-card input{padding:12px;border:1px solid #cbdce3;border-radius:8px;}.login-card .primary{width:100%;}.login-card small{display:block;color:#8398a6;margin-top:20px;}.error{color:#b64b45!important;min-height:20px;font-size:13px;}#toast{position:fixed;bottom:20px;right:20px;background:#143d53;color:white;border-radius:8px;padding:12px 16px;display:none;box-shadow:0 8px 25px #173b5330;font-size:14px;}#toast.visible{display:block;}@media(max-width:1100px){.fields{grid-template-columns:repeat(2,1fr);}.field.wide{grid-column:span 2;}.stats{grid-template-columns:repeat(2,1fr);}}@media(max-width:760px){.shell{display:block;}.sidebar{width:250px;transform:translateX(-100%);transition:.2s;}.sidebar.open{transform:none;}.topbar{padding:0 18px;}.topbar #menu-toggle{display:block;background:none;border:0;font-size:23px;color:#19445c;}.content{padding:23px 16px 60px;}.page-title{flex-direction:column;}.stats,.export-grid{grid-template-columns:1fr 1fr;}.fields{grid-template-columns:1fr;}.field.wide{grid-column:span 1;}}@media(max-width:480px){.stats,.export-grid{grid-template-columns:1fr;}.toolbar{flex-direction:column;align-items:stretch;}.local-badge{display:none;}}
.visit-pill{display:inline-block;margin-top:5px;padding:3px 9px;border-radius:12px;background:#e8f3f7;color:#205c76;font-weight:700;}.visit-branch{color:#81a1b2;margin-right:6px;}.patient-start td{border-top:2px solid #d9e6ed;}.status.pending{background:#eaf1ff;color:#4d67a0;}.field[hidden]{display:none!important;}.grade-options{display:flex;flex-wrap:wrap;gap:8px;}.grade-options label{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #cbdbe3;border-radius:8px;background:#f9fcfd;font-weight:500;cursor:pointer;}.grade-options label:has(input:checked){border-color:#0e8192;background:#e8f5f6;color:#07576a;}.grade-options input{accent-color:#087c91;}
.inline-actions{gap:6px;}.inline-actions .link-btn{border:1px solid transparent;border-radius:6px;padding:5px 8px;font-weight:600;white-space:nowrap;text-decoration:none;}.inline-actions .link-btn:hover{filter:brightness(.96);text-decoration:none;}.action-edit{background:#edf3f8;color:#28516a!important;border-color:#d4e2eb!important;}.action-baseline{background:#e7f2fb;color:#1b679b!important;border-color:#c7e1f3!important;}.action-follow{background:#e8f5f0;color:#176f55!important;border-color:#c7e9db!important;}.action-export{background:#f0edfb;color:#64509b!important;border-color:#ded5f3!important;}.action-delete{background:#fff0ef;color:#a84842!important;border-color:#f1d1cd!important;}.table-wrap table{min-width:1240px;}
/* Compact dashboard and clear operational states */
:root{color:#1b3448;background:#f5f8fa;}.content{max-width:1560px;padding-top:24px;}.page-title{align-items:center;margin-bottom:16px;}.page-title h1{font-size:25px;}.stats{gap:9px;margin-bottom:14px;}.stat{padding:10px 15px;border-radius:9px;border-top-width:2px;box-shadow:none;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:56px;}.stat span{font-size:13px;}.stat strong{font-size:22px;margin:0;color:#173b56;}.panel{box-shadow:none;}.toolbar{margin-bottom:12px;}.toolbar h2 small{font-size:12px;font-weight:500;color:#607d8c;margin-left:8px;}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;background:#f7fafb;border:1px solid #e2ebef;border-radius:8px;margin-bottom:12px;}.filters label{display:grid;gap:4px;color:#4d677a;font-size:12px;font-weight:600;min-width:150px;flex:1;}.filters select{padding:8px 10px;border:1px solid #c8d9e1;background:white;border-radius:6px;color:#1b3448;min-width:0;}.filters button{padding:8px 12px;}.status{font-size:12px;font-weight:700;border-radius:6px;padding:5px 9px;}.status.done{background:#dff4e9;color:#116345;border:1px solid #98d9ba;}.status.pending{background:#fff0d5;color:#8b5208;border:1px solid #eac279;}.status.draft{background:#f0f2f5;color:#536273;border:1px solid #d0d8df;}.inline-actions .action-edit{background:#e8f1f8;color:#18577a!important;}.inline-actions .action-baseline{background:#e9edfa;color:#384e99!important;}.inline-actions .action-follow{background:#e5f4ea;color:#186c46!important;}.inline-actions .action-export{background:#f2eef8;color:#6a4c88!important;}.inline-actions .action-delete{background:#fff0ec;color:#a8483f!important;}.inline-actions .link-btn{font-weight:700;}.field input[readonly]{background:#eef5f7;color:#1f6071;font-weight:700;}.sidebar nav button.active{background:#206082;border-left:3px solid #7dd3dc;}.login-card{box-shadow:0 14px 40px #173f5915;}.form-footer .primary{background:#14795e;}.form-footer .secondary{background:#eef3f8;color:#28516a;}@media(max-width:760px){.stat{min-height:56px;}.filters label{min-width:135px;}}
/* Collapsible narrow navigation, one-field filter and legible clinical labels */
.shell{grid-template-columns:188px minmax(0,1fr);transition:grid-template-columns .2s;}.shell.sidebar-hidden{grid-template-columns:0 minmax(0,1fr);}.sidebar{min-width:0;overflow:hidden;padding:19px 9px;transition:padding .2s;}.shell.sidebar-hidden .sidebar{padding-left:0;padding-right:0;visibility:hidden;}.identity{padding:0 5px 18px;gap:8px;}.identity strong{font-size:14px;}.identity span{font-size:12px;}.brand-symbol{width:30px;height:30px;font-size:18px;}.sidebar nav{padding-top:14px;}.sidebar button{font-size:14px;padding:10px 9px;}.sidebar nav span{font-size:16px;margin-right:6px;}.topbar #menu-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbdde6;background:white;color:#1b5878;border-radius:7px;width:35px;height:35px;font-size:19px;margin-right:15px;flex:none;}.topbar{justify-content:flex-start;}.local-badge{margin-left:auto;}.search-wrap{display:flex;position:relative;min-width:300px;max-width:450px;flex:1;}.search-wrap .search{max-width:none;padding-right:35px;}.clear-search{position:absolute;right:7px;top:5px;width:29px;height:29px;border:0;background:#edf2f5;border-radius:5px;color:#506a78;font-size:19px;}.search-result{background:#ebf5f8;border-left:3px solid #16839a;border-radius:4px;padding:8px 12px;margin:0 0 12px;color:#155971;font-size:14px;font-weight:700;}.visit-pill{padding:1px 5px;margin-top:2px;border-radius:4px;font-size:12px;min-width:22px;text-align:center;}.form-section h2{font-size:19px;}.toolbar h2{font-size:19px;}.name{font-size:15px;}.page-title h1{font-size:27px;}.section-tabs button{font-size:15px;}.inline-actions .link-btn{font-size:13px;}@media(max-width:760px){.shell,.shell.sidebar-hidden{display:block;}.sidebar{z-index:10;width:188px;transform:none;visibility:visible;}.shell.sidebar-hidden .sidebar{transform:translateX(-100%);padding:19px 9px;}.search-wrap{min-width:0;width:100%;}.toolbar{align-items:stretch;}.topbar #menu-toggle{display:inline-flex;}}
.save-error{border:1px solid #d69186;background:#fff0ed;color:#9d3028;padding:12px 14px;margin:16px 0;border-radius:8px;font-size:15px;font-weight:700;}.field input::placeholder{color:#9caeb9;}
/* Entry completion feedback and guarded section navigation. */
.completion-help{padding:12px 16px;border:1px solid #cbdff8;border-radius:9px;background:#edf5ff;line-height:1.65;font-size:14px;}.completion-summary{margin:16px 0;padding:16px;border:1px solid #e6a5a5;border-radius:10px;background:#fff4f4;}.completion-summary ul{display:flex;flex-wrap:wrap;gap:6px 24px;margin:10px 0 0;padding-left:20px;}.completion-summary .link-btn{text-align:left;text-decoration:underline;}.field.is-missing>input,.field.is-missing>select,.field.is-missing>textarea,.field.is-missing .grade-options,.field.is-missing .surgery-name-controls{border-color:#cc4242;box-shadow:0 0 0 2px #cc424218;}.field-error{font-size:13px;font-weight:600;}.step-label{margin-right:auto;align-self:center;font-size:14px;font-weight:600;}.form-footer{flex-wrap:wrap;}@media(max-width:760px){.step-label{width:100%;}.form-footer button{padding:9px 11px;}}
/* Optional clinical modules keep their heading and choice visible. */
.module-details[hidden]{display:none!important;}.module-choice{margin-bottom:18px;}.module-details>.notes-attachment-actions,.module-details>#open-scales{margin-bottom:16px;}.module-details .field:has(.not-measured){position:relative;}
/* Readable clinical entry and explicit not-measured state */
.field:has(.not-measured){position:relative;}.field:has(.not-measured) input{padding-right:90px;}.not-measured{position:absolute;right:7px;bottom:7px;border:1px solid #c7d5df;border-radius:5px;background:#f2f6f8;color:#38586a;padding:5px 8px;font-size:13px;font-weight:700;line-height:1.3;}.not-measured.selected{background:#e0e9f9;border-color:#7899d1;color:#264f9a;}.measurement-hint{font-size:14px;margin:-7px 0 15px;}.sidebar button{font-size:15px;}.breadcrumb{font-size:15px;}.stat span{font-size:14px;}.toolbar h2{font-size:20px;}.table-wrap th{font-size:14px;}.table-wrap td{font-size:15px;}.inline-actions .link-btn{font-size:14px;}.status{font-size:14px;}.muted{font-size:15px;}.field label{font-size:15px;}.field input,.field select,.field textarea{font-size:16px;}.note,.export-card p{font-size:15px;}.form-footer button{font-size:15px;}
.save-success{background:#e4f5eb;color:#176442;border:1px solid #9bd4b2;border-radius:8px;padding:11px 14px;margin-bottom:15px;font-size:16px;font-weight:700;}
.field:has(.not-measured) textarea{padding-right:94px;min-height:78px;}
.sync-notice{border:1px solid #b5d6e5;border-left:4px solid #3182a5;background:#eef7fb;border-radius:8px;padding:11px 14px;margin:0 0 15px;color:#24536a;font-size:15px;font-weight:600;}.patient-summary{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;background:#fff;border:1px solid #dfe9ee;border-radius:9px;padding:11px 15px;margin-bottom:10px;font-size:15px;}.patient-summary span{display:flex;gap:7px;}.patient-summary b{color:#637d8d;}.patient-summary .summary-diagnosis{flex:1;min-width:240px;}
/* Cardiac registry navigation and compact record controls */
.shell{grid-template-columns:206px minmax(0,1fr);}.sidebar{padding:20px 10px;}.identity{gap:9px;padding:2px 3px 20px;}.identity strong{line-height:1.2;white-space:nowrap;}.identity span{color:#bcd8e5;white-space:nowrap;}.brand-symbol{width:34px;height:34px;border-radius:9px;background:#c94b62;color:#fff;font-size:25px;line-height:1;}.sidebar nav button{font-size:16px;font-weight:600;padding:11px 10px;}.sidebar-stats{margin:22px 5px 0;border-top:1px solid #35536b;padding-top:12px;display:grid;gap:4px;}.sidebar-stats>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 2px;color:#cfe1ea;font-size:13px;}.sidebar-stats strong{color:white;}.list-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-end;}.list-filters .search-wrap{min-width:270px;max-width:380px;}.list-filters label{display:flex;gap:5px;align-items:center;font-size:13px;color:#4a6576;white-space:nowrap;}.list-filters input[type=date]{border:1px solid #cbdbe3;border-radius:7px;padding:9px 7px;color:#1b3448;background:white;min-width:135px;}.table-wrap table{min-width:1370px;}.patient-flag{border:0;background:none;color:#b4c4cc;font-size:21px;line-height:1;padding:2px;vertical-align:middle;}.patient-flag.active{color:#dc3545;text-shadow:0 1px 2px #bb344340;}.star-rating{display:flex;white-space:nowrap;}.star{border:0;background:transparent;color:#aeb9c2;font-size:21px;padding:0 1px;line-height:1;}.star.on{color:#e4a729;}.action-menu{min-width:105px;position:relative;}.action-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;background:#e9f1f6;border:1px solid #c7dce8;border-radius:6px;color:#195473;font-weight:700;padding:6px 10px;}.action-menu summary::-webkit-details-marker{display:none;}.menu-items{display:grid;gap:2px;border:1px solid #dbe7ed;border-radius:7px;box-shadow:0 6px 16px #193d5219;padding:5px;margin-top:5px;min-width:168px;}.menu-items button{border:0;background:white;color:#234d63;text-align:left;padding:7px 8px;border-radius:5px;font-size:14px;}.menu-items button:hover{background:#eef5f8;}.menu-items .menu-delete,.menu-items .menu-delete-visit{color:#a84940;}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2ebef;margin-bottom:18px;padding-bottom:11px;}.form-section .section-heading h2{border:0;padding:0;margin:0;}.section-heading .field{display:flex;flex-direction:row;align-items:center;gap:8px;max-width:270px;}.section-heading .field label{white-space:nowrap;font-size:14px;}.section-heading .field input{width:185px;font-size:14px;padding:7px;}.form-section .fields .field.wide{grid-column:span 3;}@media(max-width:760px){.sidebar{width:206px;}.list-filters{justify-content:stretch;}.list-filters .search-wrap{max-width:none;width:100%;}.section-heading{align-items:flex-start;flex-direction:column;}.form-section .fields .field.wide{grid-column:span 1;}}
.binary-choice{display:flex;gap:12px;align-items:center;}.binary-choice label{display:inline-flex;align-items:center;gap:6px;padding:9px 15px;border:1px solid #cbdbe3;border-radius:8px;cursor:pointer;}.binary-choice label:has(input:checked){background:#e8f5f6;border-color:#0e8192;color:#07576a;}.binary-choice input{accent-color:#087c91;}.field[data-key=other_lab_details] textarea{min-height:115px;}
.identity strong{font-size:20px;letter-spacing:.2px;}.identity span{font-size:14px;font-weight:650;}.sidebar nav button{font-size:17px;}.sidebar-stats>div{font-size:15px;}.sidebar-stats strong{font-size:18px;}.brand-symbol{border-radius:11px;background:#c3425a;}

/* 账户权限版：缩窄侧栏，并让登记列表在常见桌面宽度内完整呈现。 */
.shell{grid-template-columns:168px minmax(0,1fr);}
.sidebar{padding:17px 8px;}.identity{gap:7px;padding:0 2px 15px;}.identity strong{font-size:16px;}.identity span{font-size:11px;}.sidebar nav button{font-size:14px;padding:9px 7px;}.sidebar nav span{font-size:15px;margin-right:4px;}.sidebar-stats{margin:14px 3px 0;padding-top:8px;}.sidebar-stats>div{font-size:12px;padding:4px 1px;}.sidebar-stats strong{font-size:15px;}.sidebar-bottom{font-size:12px;padding:8px 3px;}.account-label{color:#fff;font-weight:700;margin:0 0 6px;}.topbar{height:60px;padding:0 22px;}.content{padding:20px 22px 55px;}.user-badge{margin-left:auto;margin-right:10px;padding:5px 9px;border-radius:14px;background:#edf2fb;color:#3e5e8a;font-size:12px;font-weight:700;}
.panel{padding:15px;}.toolbar{margin-bottom:9px;}.list-filters{gap:6px;}.list-filters .search-wrap{min-width:210px;max-width:310px;}.list-filters input[type=date]{min-width:120px;padding:7px 5px;}.records-table{table-layout:fixed;min-width:0;}.records-table th,.records-table td{padding:8px 5px;font-size:12px;line-height:1.3;overflow-wrap:anywhere;vertical-align:middle;}.records-table td{border-bottom:0;}.records-table tbody tr:nth-child(even){background:#f6f9fb;}.records-table tbody tr:hover{background:#eef6f9;}.records-table .patient-start td{border-top:0;}.records-table th:nth-child(1){width:12%;}.records-table th:nth-child(7){width:5%;}.records-table th:nth-child(8){width:5%;}.records-table th:nth-child(9){width:8%;}.records-table th:nth-child(10){width:7%;}.records-table th:nth-child(11){width:9%;}.diagnosis-cell{white-space:normal;}.diagnosis-text{display:block;line-height:1.3;overflow-wrap:anywhere;}.owner-meta{display:block;color:#718796;font-size:10px;margin-top:3px;}.visit-pill{font-size:10px;padding:1px 4px;}.patient-flag{font-size:17px;}.star{font-size:17px;}.star:disabled,.patient-flag:disabled{cursor:default;opacity:.72;}.action-menu{min-width:0;}.action-menu summary{font-size:12px;padding:4px 6px;}.menu-items{position:absolute;z-index:8;right:0;min-width:174px;}.status{font-size:11px;padding:3px 5px;white-space:nowrap;}.readonly-banner{border:1px solid #c9d7e6;border-left:4px solid #6884a4;background:#f1f5fa;color:#425e7b;border-radius:7px;padding:10px 13px;margin-bottom:14px;font-weight:700;}.account-create{margin-bottom:16px;}.account-create h2,.panel>h2{margin-top:0;}.account-form{display:grid;grid-template-columns:1fr 1fr 180px auto;align-items:end;gap:12px;}.account-form label{display:grid;gap:5px;font-size:13px;font-weight:700;}.account-form input,.account-form select,.users-table input,.users-table select{border:1px solid #cbdbe3;border-radius:7px;padding:8px;background:white;}.users-table{min-width:650px;}.login-card label{margin:14px 0 10px;}.login-card label:first-of-type{margin-top:24px;}
@media(max-width:1100px){.records-table{min-width:1050px;}.table-wrap{overflow:auto;}.account-form{grid-template-columns:1fr 1fr;}}
@media(max-width:760px){.sidebar{width:168px;}.user-badge{display:none;}}
.table-wrap .records-table,.table-wrap .users-table{min-width:0;width:100%;table-layout:fixed;}.users-table th,.users-table td{padding:10px;}.users-table input,.users-table select{width:100%;}.users-table th:last-child{width:110px;}
.records-title{margin-bottom:8px;}
.list-filters label,.list-filters .search,.list-filters input[type=date]{font-size:13px;}.list-filters .search,.list-filters input[type=date]{height:38px;line-height:1.2;padding:8px 10px;border-radius:7px;}.list-filters .search{padding-right:35px;}.list-filters .clear-search{top:5px;width:28px;height:28px;font-size:18px;}
.adaptive-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.3;}.name .adaptive-text{display:inline;}
.patient-id-layout{display:grid;grid-template-columns:52px 24px;align-items:center;gap:4px;justify-content:start;height:28px;}.patient-id-text{display:block;min-width:0;max-height:22px;overflow:hidden;color:#175474;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.2;}.patient-id-text.patient-id-sm{font-size:10px;line-height:1.1;}.patient-id-text.patient-id-xs{font-size:9px;line-height:1.08;}.patient-id-text.patient-id-xxs{font-size:8px;line-height:1.05;}.patient-id-layout .visit-pill{margin-top:0;justify-self:start;}
.records-table th:nth-child(1){width:11%;}.records-table th:nth-child(2){width:10%;}.records-table th:nth-child(3){width:10%;}.records-table th:nth-child(4){width:13%;}.records-table th:nth-child(5){width:10%;}.records-table th:nth-child(6){width:11%;}.records-table th:nth-child(n/**/+7){width:7%;}.records-table th:nth-child(n/**/+7),.records-table td:nth-child(n/**/+7){text-align:center;}.records-table .action-menu{width:max-content;max-width:100%;margin:0 auto;}
.records-table th,.records-table td{text-align:center;}.records-table .patient-id-layout{width:max-content;max-width:100%;margin:0 auto;}
@media(max-width:1100px){.table-wrap .records-table{min-width:1050px;}}

/* 统一放大界面文字，保持信息密度与可读性平衡。 */
:root{font-size:17px;}.identity strong{font-size:18px;}.identity span{font-size:13px;}.sidebar nav span{font-size:17px;}.sidebar-stats>div{font-size:14px;}.sidebar-stats strong{font-size:17px;}.sidebar-bottom{font-size:14px;}.breadcrumb{font-size:16px;}.user-badge,.local-badge{font-size:14px;}.page-title h1{font-size:30px;}.toolbar h2{font-size:22px;}.muted{font-size:16px;}.primary,.secondary,.danger{font-size:15px;}.list-filters label,.list-filters .search,.list-filters input[type=date]{font-size:14px;}.list-filters .search,.list-filters input[type=date]{height:40px;}.records-table th{font-size:14px;padding:10px 6px;}.records-table td{font-size:14px;padding:9px 6px;}.name{font-size:16px;}.status{font-size:13px;padding:4px 7px;}.action-menu summary{font-size:14px;padding:5px 8px;}.visit-pill{font-size:11px;}.star{font-size:20px;}.patient-flag{font-size:19px;}.patient-id-layout{grid-template-columns:88px 24px;height:30px;}.patient-id-text{font-size:14px;max-height:26px;}.patient-id-text.patient-id-sm{font-size:11px;}.patient-id-text.patient-id-xs{font-size:10px;}.patient-id-text.patient-id-xxs{font-size:9px;}.diagnosis-text,.adaptive-text{font-size:14px;}.section-tabs button{font-size:16px;}.form-section h2,.section-heading h2{font-size:20px;}.field label{font-size:16px;}.field input,.field select,.field textarea{font-size:17px;}.note,.export-card p{font-size:16px;}.patient-summary,.sync-notice{font-size:16px;}.users-table th,.users-table td{font-size:15px;}

/* 侧栏加宽，登记列表内部尺寸保持不变。 */
.shell{grid-template-columns:184px minmax(0,1fr);}
@media(max-width:760px){.sidebar{width:184px;}}
.record-cell-link{border:0;background:transparent;color:#086f88;font:inherit;font-weight:700;padding:5px 7px;border-radius:6px;white-space:nowrap;}.record-cell-link:hover,.record-cell-link:focus-visible{background:#dff1f5;color:#075b70;outline:none;text-decoration:underline;}
.patient-record-link{border:0;background:transparent;color:inherit;font-weight:inherit;padding:0;margin:0;max-width:100%;text-align:center;text-decoration:none;}.patient-record-link:hover{color:#087c91;text-decoration:underline;text-underline-offset:3px;}.patient-record-link:focus-visible{outline:2px solid #0b869b;outline-offset:2px;border-radius:3px;}
.follow-history-panel{padding:16px 18px;}.follow-history-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin-bottom:14px;}.follow-history-toolbar .secondary{margin-left:auto;padding:6px 11px;}.current-follow-indicator{display:inline-flex;align-items:baseline;gap:2px;padding:5px 8px;border:1px solid #c9e1e7;border-radius:6px;background:#f0f8fa;color:#356779;font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;}.current-follow-indicator b{color:#075f75;font-size:15px;font-variant-numeric:tabular-nums;}.follow-history-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}.follow-history-card{min-width:0;display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid #dbe7f5;border-radius:10px;background:linear-gradient(180deg,#f8fbff,#fff);box-shadow:0 2px 8px #2469c408;}.follow-history-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}.follow-history-card-head>strong{font-size:14px;font-weight:700;white-space:nowrap;}.follow-history-card .status{flex:none;padding:3px 6px;}.follow-history-date{display:grid;gap:2px;}.follow-history-date>span{font-size:12px;font-weight:500;}.follow-history-date time{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;}.follow-history-actions{display:flex;gap:12px;align-items:center;margin-top:auto;padding-top:6px;border-top:1px solid #e9eff7;}.follow-history-actions .link-btn{font-size:13px;font-weight:600;}.follow-history-card:hover{border-color:#b8d3f3;box-shadow:0 4px 13px #2469c40d;}
@media(max-width:1050px){.follow-history-list{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.follow-history-panel{padding:13px;}.follow-history-toolbar{flex-wrap:wrap;}.follow-history-list{grid-template-columns:minmax(0,1fr);gap:9px;}.follow-history-card{padding:11px 12px;}}
.trash-table{min-width:760px;}.trash-table th:last-child,.trash-table td:last-child{width:100px;text-align:center;}.trash-table td{vertical-align:middle;}.trash-table .secondary{padding:6px 12px;}

/* 固定侧栏，登记列表在自己的区域内滚动。 */
.shell{height:100vh;min-height:0;overflow:hidden;}
.sidebar{height:100vh;min-height:0;overflow-x:hidden;overflow-y:auto;position:sticky;top:0;}
.shell>main{height:100vh;min-width:0;overflow-y:auto;overscroll-behavior:contain;}
.topbar{position:sticky;top:0;z-index:20;}
#rows{max-height:calc(100vh - 250px);min-height:260px;overflow:auto;scrollbar-gutter:stable;}
#rows .records-table thead th{position:sticky;top:0;z-index:4;box-shadow:0 1px #dbe7ed;}
.table-sort{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;padding:0;}
.table-sort:hover{color:#087c91;}
.table-sort:focus-visible{outline:2px solid #0b869b;outline-offset:2px;border-radius:3px;}
.table-sort span{color:#087c91;font-size:15px;line-height:1;}
@media(max-width:760px){.shell{height:auto;min-height:100vh;overflow:visible;}.shell>main{height:auto;min-height:100vh;overflow:visible;}.sidebar{position:fixed;height:100vh;}#rows{max-height:none;min-height:0;}}
.field textarea.treatment-detail{min-height:88px;resize:vertical;line-height:1.45;}
.hematology-groups{display:grid;gap:0;}.hematology-group{padding:20px 0;border-top:1px solid #dbe7ed;}.hematology-group:first-child{padding-top:0;border-top:0;}.hematology-group:last-child{padding-bottom:0;}.hematology-group h3{margin:0 0 15px;color:#294b62;font-size:18px;}.hematology-group .fields{margin:0;}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}.hematology-heading{align-items:center;}.hematology-upload-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.upload-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:8px 13px;}.hematology-attachment-panel{margin:-3px 0 18px;padding:13px 15px;border:1px solid #cfe0e8;border-radius:9px;background:#f6fafc;}.hematology-upload-help{margin:0 0 8px;color:#607a8b;font-size:14px;line-height:1.5;}.hematology-attachments{display:grid;gap:6px;margin-top:9px;}.hematology-attachments>p{margin:0;}.hematology-attachment{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:7px 9px;border-radius:6px;background:#fff;border:1px solid #dce8ed;}.hematology-attachment a{color:#086f88;font-weight:700;text-decoration:none;overflow-wrap:anywhere;}.hematology-attachment a:hover{text-decoration:underline;}.hematology-attachment span{color:#6b8190;font-size:13px;}.hematology-attachment .attachment-delete{margin-left:auto;color:#a84940;}.hematology-recognition{margin-top:12px;padding:13px;border-left:4px solid #14839a;border-radius:7px;background:#edf7fa;}.recognition-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px;}.recognition-title span{color:#657e8e;}.recognition-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:10px 0;}.recognition-results>div{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;background:white;border-radius:5px;}.recognition-results span{color:#4c6879;}.recognition-results b{color:#0a536a;}.recognition-warning{color:#9a5a16;background:#fff5df;border-radius:5px;padding:8px 10px;}.ocr-text{margin-top:10px;}.ocr-text summary{cursor:pointer;color:#245f78;font-weight:700;}.ocr-text pre{max-height:230px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:white;border:1px solid #d7e5ea;border-radius:6px;font-family:inherit;font-size:13px;}@media(max-width:760px){.hematology-heading{align-items:flex-start;}.hematology-upload-actions{width:100%;}.recognition-results{grid-template-columns:1fr;}}
.notes-attachment-panel{grid-column:span 3;padding:14px;border:1px solid #d5e3e9;border-radius:9px;background:#f7fafc;}.notes-attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;}.notes-attachment-heading>strong{color:#294b62;font-size:16px;}.notes-attachment-actions{display:flex;gap:8px;flex-wrap:wrap;}.notes-attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:12px;margin-top:10px;}.notes-attachments>p{margin:0;}.notes-attachment-card{overflow:hidden;border:1px solid #d7e4e9;border-radius:9px;background:#fff;box-shadow:0 2px 8px #173f590d;}.notes-attachment-card>a{display:block;height:132px;background:#eaf2f5;text-decoration:none;}.notes-attachment-card img{display:block;width:100%;height:132px;object-fit:cover;}.notes-preview-placeholder{display:grid;place-items:center;width:100%;height:132px;color:#527083;font-size:24px;font-weight:800;}.notes-attachment-card>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;padding:9px;}.notes-attachment-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#25495e;font-size:13px;}.notes-attachment-card span{color:#718592;font-size:12px;}.notes-attachment-card .attachment-delete{grid-column:2;grid-row:1/span 2;color:#a84940;}@media(max-width:760px){.notes-attachment-panel{grid-column:span 1;}.notes-attachment-heading{align-items:flex-start;flex-direction:column;}.notes-attachments{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:480px){.notes-attachments{grid-template-columns:1fr;}}

.identity .brand-subtitle{font-size:11px;line-height:1.35;white-space:normal;}

/* Bright blue clinical study palette. */
:root{--clinical-ink:#203552;--clinical-muted:#657b96;--clinical-accent:#1473e6;--clinical-line:#dce7f5;color:var(--clinical-ink);background:#f4f8ff;}
body,.shell>main{background:#f4f8ff;color:var(--clinical-ink);}
.sidebar{background:#1473e6;color:#fff;}.identity{border-color:#ffffff30;}.identity span,.sidebar-bottom,.sidebar-stats>div{color:#e0eeff;}.identity strong{color:#fff;}.brand-symbol{background:#1473e6;}.sidebar-stats{border-color:#ffffff30;}.sidebar-stats strong{color:#fff;}.sidebar nav button:hover,.sidebar nav button.active{background:#0b5fca;color:#fff;}.sidebar nav button.active{border-left-color:#a8dcff;}.sidebar-bottom button:hover{color:#fff;background:#0b5fca;}
.topbar{background:#fff;border-color:var(--clinical-line);}.breadcrumb,.muted,.export-card p{color:var(--clinical-muted);}.breadcrumb strong,.page-title h1,.toolbar h2,.form-section h2,.name,.export-card h2,.users-table strong{color:var(--clinical-ink);}.user-badge,.local-badge{background:#eaf3ff;color:#1b65be;}
.panel,.export-card{background:#fff;border-color:var(--clinical-line);border-radius:12px;}.primary,.form-footer .primary{background:var(--clinical-accent);border-color:var(--clinical-accent);color:#fff;}.primary:hover,.form-footer .primary:hover{background:#1c6257;}.secondary,.form-footer .secondary{background:#fff;color:#1b65be;border-color:#bfd5f2;}.secondary:hover{background:#edf5ff;}.danger{background:#fff1ee;color:#984c40;border-color:#e4bfb5;}
.records-table th,#rows .records-table thead th,.users-table th,.trash-table th{background:#edf4fe;color:#557293;box-shadow:0 1px var(--clinical-line);}.records-table td,.users-table td,.trash-table td{color:var(--clinical-ink);border-color:#e5edf8;}.records-table tbody tr.patient-start{background:#f1f7ff;}.records-table tbody tr:hover{background:#e4f0ff;}.patient-record-link,.record-cell-link,.link-btn,.table-sort span{color:#1473e6;}.record-center{display:block;font-size:11px;font-weight:500;color:#748ba6;margin-bottom:3px;}.visit-pill{background:#e4efff;color:#1b65be;}.action-menu summary{background:#edf5ff;color:#1b65be;border-color:#bfd5f2;}.menu-items{border-color:var(--clinical-line);background:#fff;}.menu-items button{color:#255985;}.menu-items button:hover{background:#edf5ff;}.menu-items .menu-delete,.menu-items .menu-delete-visit{color:#984c40;}
.status.done{background:#e5f1e7;border-color:#acd0b5;color:#316344;}.status.pending{background:#fff2dd;border-color:#e6c998;color:#8d6227;}.status.draft{background:#edf0ed;border-color:#cbd4cb;color:#606c60;}.star.on{color:#b98635;}
.search,.list-filters input[type=date],.list-filters select,.field input,.field select,.field textarea,.account-form input,.account-form select,.users-table input,.users-table select,.center-context select{color:var(--clinical-ink);background:#fff;border:1px solid #c6d8ef;border-radius:7px;padding:9px 11px;}.field label,.list-filters label,.account-form label{color:#557293;}.field input:focus,.field select:focus,.field textarea:focus,.search:focus{border-color:#69a8f4;box-shadow:0 0 0 3px #e4f0ff;outline:none;}.field input[readonly]{background:#f1f7ff;color:#1b65be;}.section-tabs button{color:#53759b;border-color:#d6e5f8;}.section-tabs button.active{background:#0b5fca;color:#fff;border-color:#0b5fca;}.form-footer{background:#f4f8fff5;border-color:var(--clinical-line);}.note,.patient-summary,.sync-notice,.search-result{background:#edf5ff;color:#406b99;border-color:#c7dcf5;}
.center-context{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px;margin-bottom:18px;border:1px solid var(--clinical-line);border-radius:10px;background:#f7faff;}.center-context label{display:flex;align-items:center;gap:10px;font-weight:600;}.center-context .muted{font-size:13px;}.account-form{grid-template-columns:repeat(4,minmax(120px,1fr)) auto;}.account-label{line-height:1.65;overflow-wrap:anywhere;}
.login-shell{background:linear-gradient(145deg,#deedff,#fbfdff 55%,#eaf3ff);}.login-card{border-color:#d1e1f7;box-shadow:0 16px 45px #286cd516;}.login-card h1{color:var(--clinical-ink);}.login-card .eyebrow{color:#3473c1;}.login-card input{border-color:#c6d8ef;}.login-card p{color:#657b96;}#toast{background:#1767cc;}
.hematology-attachment-panel,.notes-attachment-panel{background:#f5f9ff;border-color:var(--clinical-line);}.hematology-recognition{background:#edf5ff;border-color:#69a8f4;}.hematology-group h3,.notes-attachment-heading>strong{color:#406b99;}.hematology-attachment a,.recognition-results b,.ocr-text summary{color:#1b65be;}
@media(max-width:1100px){.account-form{grid-template-columns:repeat(2,minmax(0,1fr));}.account-form button{align-self:end;}}@media(max-width:760px){.account-form{grid-template-columns:1fr;}.center-context label{width:100%;}.center-context select{min-width:0;flex:1;}}

.action-menu summary{white-space:nowrap;}.table-wrap .records-table{min-width:1260px;}

/* ECG branding and polished navigation. */
.shell{grid-template-columns:236px minmax(0,1fr);}
.sidebar{padding:22px 14px;background:linear-gradient(160deg,#1473e6 0%,#176bdc 58%,#125dc9 100%);box-shadow:3px 0 18px #176bdc12;}
.identity{gap:12px;padding:2px 0 22px;align-items:center;}.identity>div:last-child{min-width:0;}.identity strong{font-size:19px;font-weight:750;letter-spacing:.3px;line-height:1.35;}.identity .brand-subtitle{font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;letter-spacing:.1px;margin-top:4px;color:#e0eeff;}
.brand-symbol{width:42px;height:42px;border-radius:13px;border:1px solid #ffffff40;background:linear-gradient(145deg,#ffffff28,#ffffff10);box-shadow:0 4px 12px #084cad22;flex:none;}
.ecg-logo{display:block;width:36px;height:34px;}.ecg-grid{fill:none;stroke:#fff;stroke-width:.7;stroke-opacity:.16;}.ecg-wave{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}
.sidebar nav{gap:7px;padding-top:18px;}.sidebar nav button{font-size:15px;border-radius:10px;padding:12px 13px;line-height:1.4;font-weight:650;}.sidebar nav button.active{background:#0b5fca;border-left:3px solid #c5e8ff;box-shadow:0 3px 10px #084ca520;}.sidebar nav button:hover{background:#0d62cf;}.sidebar nav span{color:#e0eeff;}.sidebar-stats{margin:22px 4px 0;padding-top:14px;}.sidebar-stats>div{padding:7px 2px;}.sidebar-bottom{padding:14px 4px;}.sidebar-bottom button{padding:10px 12px;border:1px solid #ffffff35;border-radius:8px;margin-top:8px;text-align:center;}.sidebar-bottom button:hover{background:#0d62cf;}
.panel,.export-card{box-shadow:0 3px 14px #3074d508;}.primary,.secondary,.danger{border-radius:9px;}.primary{box-shadow:0 3px 9px #1473e624;}.primary:hover,.form-footer .primary:hover{background:#0b5fca;}.primary:focus-visible,.secondary:focus-visible,.danger:focus-visible{outline:3px solid #94c9ff;outline-offset:2px;}.user-badge,.local-badge{border:1px solid #d5e7ff;}.topbar #menu-toggle{border-color:#c9dff8;color:#1473e6;border-radius:9px;}.page-title h1{font-weight:750;letter-spacing:.4px;}.records-table th{font-weight:700;}.record-cell-link:hover,.record-cell-link:focus-visible{background:#e0edff;color:#0b5fca;}.patient-record-link:hover{color:#1473e6;}.table-sort:hover{color:#1473e6;}.table-sort:focus-visible{outline-color:#1473e6;}.notes-attachment-card{border-color:#d6e5f8;box-shadow:0 3px 10px #3074d50a;}.notes-attachment-card>a{background:#edf5ff;}
.table-wrap .users-table:has(input[data-user-name]){min-width:1100px;}.users-table .inline-actions{flex-wrap:nowrap;}.users-table .inline-actions button{white-space:nowrap;}.users-table th:last-child,.users-table td:last-child{width:210px;}.users-table input[data-user-name]{min-width:145px;width:100%;}.users-table input[type=checkbox]{width:auto;accent-color:#1473e6;}
.login-card{border-radius:20px;box-shadow:0 16px 50px #286cd518;}.login-card .brand-symbol{width:62px;height:62px;border-radius:18px;background:linear-gradient(145deg,#3189f2,#1473e6);border:1px solid #1473e6;box-shadow:0 7px 18px #1473e626;margin-bottom:22px;}.login-card .ecg-logo{width:48px;height:46px;}.login-card h1{font-size:29px;letter-spacing:.6px;}.login-card .eyebrow{font-size:12px;letter-spacing:.25px;line-height:1.6;}.login-card .primary{margin-top:8px;}
.patient-id-text{color:#1b65be;}.binary-choice label:has(input:checked),.grade-options label:has(input:checked){background:#edf5ff;color:#1b65be;border-color:#1473e6;}.binary-choice input,.grade-options input{accent-color:#1473e6;}
@media(max-width:760px){.sidebar{width:236px;top:60px;height:calc(100vh - 60px);}.shell.sidebar-hidden .sidebar{padding:22px 14px;}.topbar{padding:0 16px;}.identity strong{font-size:19px;}.breadcrumb{font-size:14px;}.login-card{padding:30px;}}

/* Black text throughout the interface; keep the blue sidebar branding. */
:root{--clinical-ink:#000;--clinical-muted:#000;}
body{color:#000;}
:is(main,.login-shell,#toast),:is(main,.login-shell,#toast) *{color:#000!important;}
:is(main,.login-shell) input::placeholder,:is(main,.login-shell) textarea::placeholder{color:#000;opacity:1;}
:is(main,.login-shell) :is(input,select,textarea){-webkit-text-fill-color:#000;caret-color:#000;}
.primary,.form-footer .primary{background:#a8d2ff;border-color:#1473e6;box-shadow:0 3px 9px #1473e61a;}
.primary:hover,.form-footer .primary:hover{background:#8fc4ff;}
.section-tabs button.active{background:#cce4ff;border-color:#1473e6;}
:is(main,.login-shell) button:disabled{opacity:1;background:#edf0f4;border-color:#c7cdd6;border-style:dashed;}
#toast{background:#e1efff;border:1px solid #8ebcf3;}
.echo-attachment-panel{margin-top:16px;padding:14px;border:1px solid #d6e5f8;border-radius:9px;background:#f7faff;}.echo-attachment-panel .notes-attachments>p{margin:0;}.echo-section .section-heading{align-items:center;}.notes-attachment-actions,.hematology-upload-actions{position:relative;}
.treatment-record textarea{width:100%;min-height:160px;line-height:1.65;resize:vertical;}

/* Similar column widths, calm row colors, and consistent archive typography. */
.records-title{align-items:center;margin-bottom:20px;}.records-title h1{font-size:28px;line-height:1.3;margin:0;letter-spacing:.3px;}
.records-title .actions{gap:10px;}.records-title .actions button{padding:11px 18px;font-size:14px;}
.records-title+.panel{padding:18px;border-radius:16px;border-color:#d8e6f8;box-shadow:0 6px 24px #2469c408;}
.table-wrap .records-table{min-width:1100px;table-layout:fixed;}
.records-table col.col-patient-id,.records-table col.col-diagnosis,.records-table col.col-status{width:10%;}
.records-table col.col-name,.records-table col.col-date{width:11%;}.records-table col.col-surgery{width:12%;}
.records-table col.col-baseline,.records-table col.col-followup,.records-table col.col-actions,.records-table col.col-notes{width:9%;}
.records-table thead th{width:auto!important;padding:16px 8px;font-size:14px;line-height:1.4;vertical-align:middle;background:#eaf3ff;}
.records-table tbody td{padding:10px 8px;font-size:14px;line-height:1.45;vertical-align:middle;border-bottom:1px solid #e8eff8;}
.records-table tbody tr{background:#fff;}.records-table tbody tr:nth-child(even){background:#f8fbff;}
.records-table tbody tr.patient-start{background:#f4f8ff;}.records-table tbody tr.patient-start td{border-top:1px solid #dce8f7;}
.records-table tbody tr:hover{background:#eaf3ff;}.records-table tbody td:nth-child(3){white-space:nowrap;font-variant-numeric:tabular-nums;}
.records-table .patient-record-link{font-size:15px;font-weight:650;line-height:1.5;max-width:calc(100% - 26px);vertical-align:middle;}
.records-table .patient-flag{font-size:18px;vertical-align:middle;padding:4px 2px;border-radius:5px;text-shadow:none;}
#page .records-table .patient-flag{color:#aebdcc!important;}
#page .records-table .patient-flag.active{color:#dc3545!important;}
.records-table .patient-flag:hover{background:#fff0f1;}.records-table .patient-flag:focus-visible{outline:2px solid #1473e6;outline-offset:2px;}
.records-table .patient-id-layout{height:auto;min-height:30px;width:100%;grid-template-columns:minmax(0,1fr) 22px;gap:4px;}
.records-table .patient-id-text:not(.patient-id-sm):not(.patient-id-xs):not(.patient-id-xxs){font-size:13px;}
.records-table .visit-pill{padding:2px 5px;line-height:1.35;border-radius:5px;font-size:11px;font-weight:500;}
.records-table .surgery-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-weight:400;}
.records-table .record-cell-link{padding:5px 6px;font-size:14px;white-space:nowrap;border-radius:6px;font-weight:600;}
.records-table .status{font-size:12px;font-weight:500;padding:5px 7px;line-height:1.4;border-radius:6px;}
.records-table .action-menu summary{font-size:14px;font-weight:600;gap:7px;padding:7px 10px;line-height:1.4;border-radius:7px;background:#fff;}
.records-table .action-menu summary:hover{background:#e4efff;border-color:#8bb8ef;}
.records-table .star-rating{gap:3px;justify-content:center;}.records-table .star{font-size:18px;padding:3px 0;line-height:1.3;}
#page .records-table .star.on{color:#e4a729!important;}
.records-title+.panel .toolbar{align-items:flex-start;gap:16px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e5edf8;}
.records-title+.panel .toolbar h2{font-size:20px;line-height:42px;white-space:nowrap;flex:none;}
.records-title+.panel .list-filters{gap:12px;flex:1;min-width:0;align-items:center;}
.records-title+.panel .list-filters label{font-size:13px;gap:7px;}
.records-title+.panel .list-filters .search-wrap{flex:1 1 180px;width:auto;min-width:180px;max-width:270px;}
.records-title+.panel .list-filters input,.records-title+.panel .list-filters select{height:42px;font-size:14px;border-radius:8px;background:#fff;border-color:#cbdff6;}
.records-title+.panel #center-filter{min-width:150px;max-width:230px;}
.current-center-marker{height:42px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #cbdff6;border-radius:8px;background:#edf5ff;white-space:nowrap;}
.current-center-marker>span{font-size:13px;font-weight:500;}.current-center-marker>strong{font-size:14px;font-weight:650;}
.records-title+.panel #rows{border:1px solid #e0ebf8;border-radius:10px;scrollbar-color:#b9cce4 #f5f8fd;scrollbar-width:thin;}
.field-help{font-size:13px;line-height:1.6;font-weight:400;}
.surgery-name-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,38%);gap:12px;}
.surgery-name-controls input,.surgery-name-controls select{width:100%;}
@media(max-width:1400px){.records-title+.panel .toolbar{flex-wrap:wrap;}.records-title+.panel .toolbar h2{line-height:1.4;}.records-title+.panel .list-filters{flex-basis:100%;justify-content:flex-start;}}
@media(max-width:760px){.records-title{align-items:flex-start;flex-direction:column;}.records-title+.panel{padding:12px;}.records-title+.panel .list-filters label{flex-wrap:wrap;}.records-title+.panel .list-filters .search-wrap{max-width:none;flex-basis:100%;}}
@media(max-width:760px){.surgery-name-controls{grid-template-columns:minmax(0,1fr);}}

/* Green follow-up cards; the currently opened visit is highlighted in pale red. */
.follow-history-card{--follow-accent:#24a36a;--follow-border:#a8dabf;--follow-tint:#e2f5e9;--follow-end:#f2fbf5;border-color:var(--follow-border);border-left:4px solid var(--follow-accent);background:linear-gradient(135deg,var(--follow-tint),var(--follow-end));box-shadow:0 3px 10px #2469c40c;}
.follow-history-card.is-current{--follow-accent:#df6873;--follow-border:#e9aab0;--follow-tint:#ffe4e7;--follow-end:#fff1f2;box-shadow:0 3px 12px #cf566817;}
.follow-history-card:hover{border-color:var(--follow-accent);box-shadow:0 5px 15px #2469c416;}
.follow-history-card .follow-history-actions{border-top-color:var(--follow-border);}
.follow-history-actions .link-btn{padding:4px 12px;border-radius:6px;border:1px solid #afcef7;background:#dcecff;}
.follow-history-actions .link-btn:hover{background:#c9e1ff;}
.follow-history-actions [data-visit="delete"]{border-color:#eac0b8;background:#ffe6e0;}
.follow-history-actions [data-visit="delete"]:hover{background:#ffd5cb;}
.follow-history-toolbar .current-follow-indicator{background:#e1eeff;border-color:#a9caf5;}
.records-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid #d9e7fa;margin-top:12px;font-size:14px;color:#000}
.records-pagination>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.records-pagination label{display:flex;align-items:center;gap:6px;font-weight:400}
.records-pagination select{width:auto;min-width:84px;padding:8px 10px}
.records-pagination button{padding:8px 16px;min-height:38px}
.export-progress{position:fixed;bottom:22px;right:24px;z-index:2000;background:#edf6ff;color:#000;border:1px solid #69aaff;border-radius:12px;padding:14px 20px;box-shadow:0 5px 20px #155cb322;max-width:calc(100vw - 48px);font-size:15px}
@media(max-width:760px){.records-pagination{align-items:flex-start;flex-direction:column}.records-pagination>div{width:100%;justify-content:space-between}}

.audit-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.audit-filters label{display:grid;gap:6px}.table-wrap .audit-table{min-width:940px}.audit-table td{overflow-wrap:anywhere}.table-wrap .audit-changes{table-layout:fixed;width:100%;min-width:640px}.audit-changes th:first-child{width:26%}.audit-changes thead th:not(:first-child){width:37%}.audit-changes td{width:37%;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.audit-changes pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto}.audit-changes summary{cursor:pointer}

/* Preserve the cardiac-rehabilitation identity and the original eleven-column registry. */
.brand-symbol{background:#c3425a;color:#fff;font-size:25px;line-height:1}
.sidebar{background:#123552;color:#e7f2f8}
.sidebar nav button:hover,.sidebar nav button.active{background:#235576;color:#fff}
.primary{background:#087c91;border-color:#087c91;color:#fff}
.primary:hover{background:#066b7f;border-color:#066b7f}
.table-wrap .records-table{min-width:1300px}
.records-table col.col-patient-id{width:10%}
.records-table col.col-name{width:11%}
.records-table col.col-date{width:11%}
.records-table col.col-diagnosis{width:14%}
.records-table col.col-assessment{width:9%}
.records-table col.col-treatment{width:11%}
.records-table col.col-baseline{width:8%}
.records-table col.col-followup{width:8%}
.records-table col.col-status{width:7%}
.records-table col.col-actions{width:6%}
.records-table col.col-notes{width:5%}

/* Readable typography and tighter archive columns; retain the existing palette. */
:root{font-size:18px}
.identity strong{font-size:21px}
.identity .brand-subtitle{font-size:14px}
.sidebar nav button{font-size:18px;padding:11px 12px}
.sidebar nav span{font-size:20px;margin-right:8px}
.sidebar-stats>div,.sidebar-bottom,.sidebar-bottom button{font-size:16px}
.sidebar-stats strong{font-size:19px}
.breadcrumb{font-size:18px}
.page-title h1{font-size:32px}
.toolbar h2,.records-title+.panel .toolbar h2{font-size:23px}
.primary,.secondary,.danger,.section-tabs button,.form-footer button{font-size:16px}
.muted,.note,.export-card p,.patient-summary,.sync-notice{font-size:17px}
.form-section h2,.section-heading h2{font-size:22px}
.field label,.account-form label{font-size:17px}
.field input,.field select,.field textarea,.account-form input,.account-form select,.users-table input,.users-table select{font-size:18px}
.records-title+.panel .list-filters{gap:8px}
.records-title+.panel .list-filters label,.current-center-marker>span{font-size:15px}
.records-title+.panel .list-filters input,.records-title+.panel .list-filters select,.current-center-marker>strong{font-size:16px}
.table-wrap .records-table{min-width:1280px}
.records-table col.col-patient-id{width:10%}
.records-table col.col-name{width:9%}
.records-table col.col-date{width:11%}
.records-table col.col-diagnosis{width:12%}
.records-table col.col-assessment{width:9%}
.records-table col.col-treatment{width:13%}
.records-table col.col-baseline{width:7%}
.records-table col.col-followup{width:7%}
.records-table col.col-status{width:7%}
.records-table col.col-actions{width:8%}
.records-table col.col-notes{width:7%}
.records-table thead th{font-size:16px;padding:13px 4px}
.records-table tbody td{font-size:16px;padding:10px 4px;line-height:1.4}
.records-table .patient-record-link,.records-table .diagnosis-text,.records-table .adaptive-text{font-size:17px}
.records-table .patient-id-text:not(.patient-id-sm):not(.patient-id-xs):not(.patient-id-xxs){font-size:16px}
.records-table .patient-id-text.patient-id-sm{font-size:12px}
.records-table .patient-id-text.patient-id-xs{font-size:11px}
.records-table .patient-id-text.patient-id-xxs{font-size:10px}
.records-table .patient-id-text{max-height:34px}
.records-table .visit-pill{font-size:13px}
.records-table .record-cell-link,.records-table .action-menu summary{font-size:16px}
.records-table .status{font-size:14px}
.records-table .star{font-size:20px}
.login-card h1{font-size:32px}
.login-card .eyebrow{font-size:14px}
.login-card label{font-size:17px}
.login-card input{font-size:18px}
.login-card .brand-symbol{background:#fff3f5;border-color:#c3425a;font-size:42px}
#login .brand-symbol{color:#c3425a!important}
.records-pagination,.users-table th,.users-table td,.trash-table th,.trash-table td,.audit-table th,.audit-table td,.menu-items button{font-size:16px}
.stat span,.filters label,.current-follow-indicator,.follow-history-date time,.follow-history-actions .link-btn{font-size:16px}
.stat strong{font-size:24px}
.follow-history-card-head>strong{font-size:18px}
.follow-history-date>span,.field-help,.measurement-hint,.hematology-upload-help,.center-context .muted{font-size:15px}
.current-follow-indicator b{font-size:18px}
@media(max-width:760px){.sidebar nav button{font-size:17px}.breadcrumb{font-size:16px}.records-title+.panel .list-filters{gap:8px}}

/* Login presentation: preserve the red heart and the rehabilitation blue-green identity. */
.login-shell{position:relative;isolation:isolate;overflow:hidden;padding:30px;background:radial-gradient(circle at 9% 17%,#d4f0f2 0,transparent 34%),radial-gradient(circle at 90% 86%,#dce9f9 0,transparent 32%),linear-gradient(135deg,#edf8f9,#f8fbff 58%,#eaf4f7)}
.login-shell::before,.login-shell::after{content:"";position:absolute;z-index:-1;border:1px solid #ffffff99;border-radius:50%;pointer-events:none}
.login-shell::before{width:540px;height:540px;left:-180px;top:-180px}
.login-shell::after{width:440px;height:440px;right:-110px;bottom:-210px}
.login-card{width:min(930px,calc(100vw - 48px));min-height:515px;padding:0;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);overflow:hidden;border:1px solid #cce2e8;border-radius:26px;background:#fff;box-shadow:0 25px 70px #123b5626,0 3px 10px #123b560b}
.login-brand{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:55px 48px 42px;overflow:hidden;background:linear-gradient(150deg,#123552 0%,#15566b 62%,#137789 100%)}
.login-brand::after{content:"";position:absolute;width:320px;height:320px;right:-135px;bottom:-130px;border:1px solid #ffffff2b;border-radius:50%;box-shadow:0 0 0 38px #ffffff0c,0 0 0 82px #ffffff08;pointer-events:none}
.login-brand .brand-symbol{width:70px;height:70px;margin:0 0 48px;border:1px solid #f5a6b5;border-radius:20px;background:#fff4f6;box-shadow:0 12px 26px #0a2e4650;font-size:45px}
#login .login-brand .brand-symbol{color:#c3425a!important}
.login-brand .login-kicker{margin:0 0 12px;font-size:12px;font-weight:750;letter-spacing:2px}
.login-brand h1{margin:0 0 12px;font-size:36px;line-height:1.25;letter-spacing:.4px}
.login-brand .login-subtitle{margin:0;font-size:20px;line-height:1.5}
.login-brand .login-brand-foot{position:relative;z-index:1;margin:auto 0 0;font-size:15px;letter-spacing:.2px}
.login-brand .login-brand-foot span{padding:0 7px}
#login .login-brand :is(h1,p),#login .login-brand .login-brand-foot span{color:#fff!important}
.login-form-panel{display:flex;flex-direction:column;justify-content:center;padding:48px 55px 42px}
.login-form-panel .login-form-kicker{width:max-content;margin:0 0 16px;padding:8px 14px;border:1px solid #b7dfe4;border-radius:999px;background:#e8f8f9;font-size:15px;font-weight:700}
.login-form-panel h2{margin:0 0 21px;font-size:32px;line-height:1.3}
.login-form-panel label,.login-form-panel label:first-of-type{margin:12px 0 7px;gap:10px;font-size:17px;font-weight:700}
.login-form-panel input{width:100%;height:56px;padding:12px 15px;border:1px solid #bcd1dd;border-radius:10px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}
.login-form-panel input:focus{border-color:#0d8394;box-shadow:0 0 0 4px #d9f2f4}
.login-form-panel .primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;margin-top:20px;border-radius:10px;font-size:18px;font-weight:750}
.login-form-panel .primary span{font-size:22px;line-height:1}
.login-form-panel .error{margin:12px 0 0;line-height:1.4}
.login-form-panel .error:empty{display:none}
/* Black labels need a lighter action fill than the former dark teal. */
.primary,.form-footer .primary{background:#9edce5;border-color:#168b9b;color:#000!important;box-shadow:0 4px 12px #167e8d1c}
.primary:hover,.form-footer .primary:hover{background:#81cfdb;border-color:#087c91}
.primary:focus-visible{outline:3px solid #b6edf1;outline-offset:2px}
@media(max-width:780px){.login-shell{padding:20px}.login-card{width:min(500px,calc(100vw - 28px));min-height:0;grid-template-columns:1fr}.login-brand{padding:28px 32px 25px}.login-brand .brand-symbol{width:60px;height:60px;margin-bottom:19px;font-size:40px}.login-brand h1{font-size:30px}.login-brand .login-subtitle{font-size:17px}.login-brand .login-brand-foot{margin-top:18px;font-size:13px}.login-form-panel{padding:29px 32px 30px}.login-form-panel h2{font-size:29px}}
@media(max-width:480px){.login-shell{padding:14px}.login-card{width:100%;border-radius:20px}.login-brand{padding:24px}.login-form-panel{padding:25px 24px 22px}.login-brand .login-kicker{letter-spacing:1.2px;font-size:11px}}

/* MMSE and MoCA are scored manually, outside the integrated scales workflow. */
#page .field[data-key="MMSE"] label,#page .field[data-key="MoCA"] label{color:#92500b!important}
#page .field[data-key="MMSE"] input,#page .field[data-key="MoCA"] input{color:#7c450d!important;-webkit-text-fill-color:#7c450d;border-color:#d8b77e}
#page .field[data-key="MMSE"] input:focus,#page .field[data-key="MoCA"] input:focus{border-color:#b87928;box-shadow:0 0 0 3px #ffefd0}

/* Inline labels make module headings, availability and dates visually align. */
.hematology-group{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);column-gap:30px;row-gap:20px;align-items:center}
.hematology-group h3{grid-column:1;grid-row:1;margin:0}
.hematology-group .module-choice,.hematology-group .module-details:not([hidden]){display:contents}
.hematology-group .module-choice>.field,.hematology-group .lab-time>.field{display:flex;flex-direction:row;align-items:center;gap:14px;width:max-content;max-width:100%}
.hematology-group .module-choice>.field{grid-column:2;grid-row:1}
.hematology-group .module-choice label,.hematology-group .lab-time label{white-space:nowrap}
.hematology-group .module-choice select{width:82px;min-width:82px;height:44px;padding:7px 8px}
.hematology-group .lab-time{grid-column:3;grid-row:1;min-width:0;width:max-content;max-width:100%}
.hematology-group .lab-time input{width:250px;max-width:100%;height:44px}
.hematology-group .lab-results{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.hematology-group .field.wide{grid-column:1/-1}
#page .form-section:has(> .module-choice){display:grid;grid-template-columns:max-content max-content minmax(0,1fr);column-gap:30px;row-gap:20px;align-items:center}
#page .form-section:has(> .module-choice)>.section-heading{grid-column:1;grid-row:1;margin:0;padding:0;border:0}
#page .form-section:has(> .module-choice)>.section-heading h2,#page .treatment-record>h2{margin:0;padding:0;border:0;white-space:nowrap}
#page .form-section:has(> .module-choice)>.module-choice,#page .form-section:has(> .module-choice)>.module-details:not([hidden]){display:contents}
#page .form-section:has(> .module-choice)>.module-choice>.field,#page .form-section:has(> .module-choice)>.module-details>.module-date>.field{display:flex;flex-direction:row;align-items:center;gap:14px;width:max-content;max-width:100%}
#page .form-section:has(> .module-choice)>.module-choice>.field{grid-column:2;grid-row:1}
#page .form-section:has(> .module-choice)>.module-choice label,#page .form-section:has(> .module-choice)>.module-details>.module-date label{white-space:nowrap}
#page .form-section:has(> .module-choice)>.module-choice select{width:82px;min-width:82px;height:44px;padding:7px 8px}
#page .form-section:has(> .module-choice)>.module-details>.module-date{grid-column:3;grid-row:1;min-width:0;width:max-content;max-width:100%}
#page .form-section:has(> .module-choice)>.module-details>.module-date input{width:240px;max-width:100%;height:44px}
#page .form-section:has(> .module-choice)>.module-details>.fields{grid-column:1/-1;grid-row:2}
#page .scales-section #open-scales{grid-column:3;grid-row:1;justify-self:start;min-height:44px;margin:0}
#page .echo-section .notes-attachment-actions{grid-column:1/-1;order:1}
#page .echo-section .echo-attachment-panel{grid-column:1/-1;order:2}
#page .treatment-record>h2{grid-column:1;grid-row:1}
#page .treatment-record>.module-details>.field{grid-column:1/-1;grid-row:2}
@media(max-width:1150px){.hematology-group,#page .form-section:has(> .module-choice){column-gap:20px}}
@media(max-width:900px){.hematology-group,#page .form-section:has(> .module-choice){grid-template-columns:max-content minmax(0,1fr)}.hematology-group .lab-time,#page .form-section:has(> .module-choice)>.module-details>.module-date{grid-column:1/-1;grid-row:2}.hematology-group .lab-results{grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}#page .form-section:has(> .module-choice)>.module-details:has(> .module-date)>.fields{grid-row:3}#page .scales-section #open-scales{grid-column:1/-1;grid-row:2}#page .scales-section>.module-details>.fields{grid-row:3}#page .treatment-record>.module-details>.field{grid-row:2}}
@media(max-width:560px){.hematology-group .lab-results{grid-template-columns:minmax(0,1fr)}.hematology-group .module-choice>.field,#page .form-section:has(> .module-choice)>.module-choice>.field{width:100%}.hematology-group .module-choice label,#page .form-section:has(> .module-choice)>.module-choice label{white-space:normal}}

/* Keep both MRI dates beside the module controls on a full-width desktop. */
#page .mri-section:has(> .module-choice){grid-template-columns:repeat(4,max-content);column-gap:30px;justify-content:start}
#page .form-section.mri-section:has(> .module-choice)>.module-details>.module-date input{width:210px}
#page .form-section.mri-section:has(> .module-choice)>.module-details>.module-date-extra{grid-column:4;grid-row:1}
@media(max-width:1480px){#page .mri-section:has(> .module-choice){grid-template-columns:max-content max-content minmax(0,1fr)}#page .form-section.mri-section:has(> .module-choice)>.module-details>.module-date-extra{grid-column:1/-1;grid-row:2}#page .form-section.mri-section:has(> .module-choice)>.module-details>.fields{grid-row:3}}
@media(max-width:900px){#page .mri-section:has(> .module-choice){grid-template-columns:max-content minmax(0,1fr)}#page .form-section.mri-section:has(> .module-choice)>.module-details>.module-date-extra{grid-row:3}#page .form-section.mri-section:has(> .module-choice)>.module-details>.fields{grid-row:4}}

/* Use the space between the current step and actions for concise guidance. */
#page .form-footer{align-items:center}
#page .form-footer .step-label{flex:0 0 auto;margin-right:0;white-space:nowrap}
#page .footer-completion-help{flex:1 1 260px;min-width:0;margin:0 8px;text-align:center;font-size:14px;line-height:1.4;color:#667d93!important}
#page .form-footer button{flex:0 0 auto}
@media(max-width:760px){#page .form-footer .step-label,#page .footer-completion-help{width:100%;flex-basis:100%}#page .footer-completion-help{margin:0;text-align:left}}

/* Keep a compact patient identity bar visible while entering measurements. */
#page .record-context-sticky{position:sticky;top:60px;z-index:19;margin:0 -4px 14px;padding:7px 4px 9px;border-bottom:1px solid #d7e5f4;background:#f4f8fff2;backdrop-filter:blur(8px)}
#page .record-context-sticky .page-title{min-height:0;margin:0 0 6px;align-items:center}
#page .record-context-sticky .page-title h1{margin:0 0 2px;font-size:25px;line-height:1.2}
#page .record-context-sticky .page-title .muted{font-size:15px;line-height:1.25}
#page .record-context-sticky .page-title .secondary{padding:7px 12px;font-size:14px;white-space:nowrap}
#page .record-context-sticky .patient-summary{flex-wrap:nowrap;gap:8px 14px;min-height:35px;margin:0;padding:7px 10px;font-size:14px;white-space:nowrap;overflow:hidden}
#page .record-context-sticky .patient-summary span{display:block;min-width:0;flex:0 0 auto}
#page .record-context-sticky .patient-summary b{margin-right:5px}
#page .record-context-sticky .patient-summary .summary-diagnosis{flex:1 1 120px;overflow:hidden;text-overflow:ellipsis}
#page:has(.record-context-sticky) .form-section{scroll-margin-top:185px}
@media(max-width:1100px){#page .record-context-sticky .patient-summary{flex-wrap:wrap;max-height:74px}#page .record-context-sticky .patient-summary .summary-diagnosis{flex:1 1 180px}#page:has(.record-context-sticky) .form-section{scroll-margin-top:220px}}
@media(max-width:760px){#page .record-context-sticky .page-title{flex-direction:row}#page .record-context-sticky .page-title h1{font-size:21px}#page .record-context-sticky .page-title .muted{font-size:13px}#page .record-context-sticky .patient-summary{max-height:86px}}

/* Clinical result grids use the available width evenly while remaining readable on narrow screens. */
#page .follow-history-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#page .scales-section>.module-details>.fields,
#page .exercise-test-section>.module-details>.fields,
#page .hematology-group .lab-results{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px}
#page .record-context-sticky .patient-summary{align-items:flex-start;line-height:1.4;max-height:none}
#page .record-context-sticky .patient-summary .summary-diagnosis{flex:0 1 165px;white-space:nowrap}
#page .record-context-sticky .patient-summary .summary-current-diagnosis{display:-webkit-box;flex:2 1 440px;min-width:280px;white-space:normal;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
#page:has(.record-context-sticky) .form-section{scroll-margin-top:220px}
@media(max-width:1350px){#page .follow-history-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){#page .scales-section>.module-details>.fields,#page .exercise-test-section>.module-details>.fields,#page .hematology-group .lab-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){#page .record-context-sticky .patient-summary{max-height:125px;overflow:auto}#page .record-context-sticky .patient-summary .summary-current-diagnosis{flex-basis:100%}#page .follow-history-list{grid-template-columns:repeat(3,minmax(0,1fr))}#page:has(.record-context-sticky) .form-section{scroll-margin-top:260px}}
@media(max-width:900px){#page .scales-section>.module-details>.fields,#page .exercise-test-section>.module-details>.fields,#page .hematology-group .lab-results{grid-template-columns:repeat(2,minmax(0,1fr))}#page .follow-history-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#page .scales-section>.module-details>.fields,#page .exercise-test-section>.module-details>.fields,#page .hematology-group .lab-results,#page .follow-history-list{grid-template-columns:minmax(0,1fr)}#page .record-context-sticky .patient-summary .summary-current-diagnosis{min-width:0}}

/* Make patient context and clinical entry readable without crowding the four-column layout. */
#page .record-context-sticky .patient-summary{font-size:17px;gap:9px 17px;line-height:1.5;padding:9px 12px}
#page .record-context-sticky .patient-summary b{font-weight:700}
#page .record-context-sticky .patient-summary .summary-diagnosis{flex-basis:185px}
#page .record-context-sticky .patient-summary .summary-current-diagnosis{flex-basis:470px}
#page .form-section h2,#page .form-section .section-heading h2{font-size:23px}
#page .hematology-group h3{font-size:21px;line-height:1.3}
#page .form-section .field label{font-size:18px;line-height:1.35}
#page .form-section .field input,#page .form-section .field select,#page .form-section .field textarea{font-size:19px;line-height:1.45}
#page .form-section .not-measured{font-size:15px;padding:5px 8px}
#page .form-section .secondary,#page .form-section .primary{font-size:17px}
@media(max-width:1450px){#page .record-context-sticky .patient-summary{flex-wrap:wrap}#page .record-context-sticky .patient-summary .summary-current-diagnosis{flex-basis:100%}#page:has(.record-context-sticky) .form-section{scroll-margin-top:250px}}
@media(max-width:1100px){#page .record-context-sticky .patient-summary{max-height:155px}#page:has(.record-context-sticky) .form-section{scroll-margin-top:280px}}

/* Keep only identity and current diagnosis in the compact patient context. */
#page .record-context-sticky .patient-summary{flex-wrap:nowrap}
#page .record-context-sticky .patient-summary .summary-current-diagnosis{flex:1 1 0;min-width:0}
@media(max-width:760px){#page .record-context-sticky .patient-summary{flex-wrap:wrap;max-height:155px}#page .record-context-sticky .patient-summary .summary-current-diagnosis{flex-basis:100%}}
/* 启动时先核对登录状态：已登录用户刷新或从量表返回时显示“正在加载”，不再闪出登录框；脚本未能运行时 12 秒后仍显示登录框 */
.boot-loading{display:none}.booting .boot-loading{position:fixed;inset:0;z-index:5;display:grid;place-items:center;background:#f3f7fa;color:#5d778b;font-size:15px;animation:boot-hide 0s 12s forwards}.booting #login{visibility:hidden;animation:boot-show 0s 12s forwards}@keyframes boot-hide{to{visibility:hidden}}@keyframes boot-show{to{visibility:visible}}

/* 备案名称（2026-11-26） */
/* 左侧：英文副标 + 中心名紧接图标下方；底部标语加分隔线 */
.login-brand .brand-symbol{margin-bottom:30px}
.login-brand .login-kicker{margin-bottom:10px;opacity:.78}
.login-brand .login-brand-foot{width:100%;padding-top:18px;border-top:1px solid #ffffff26;opacity:.9}
/* 右侧：欢迎语与“账户”同字号，前加小圆点；输入框浅底；登录按钮字距加宽 */
.login-form-panel .login-form-kicker{display:flex;align-items:center;gap:9px;margin-bottom:28px;padding:9px 18px 9px 14px;border-color:#bfe3e8;background:linear-gradient(90deg,#e3f6f8,#f3fbfc);font-size:17px;letter-spacing:.5px;box-shadow:0 2px 8px #167e8d12}
.login-form-panel .login-form-kicker::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#14a3b4;box-shadow:0 0 0 3px #14a3b42e}
.login-form-panel input{background:#f8fbfc}
.login-form-panel input:focus{background:#fff}
.login-form-panel .primary{margin-top:26px;letter-spacing:8px;text-indent:8px}
@media(max-width:780px){.login-brand .brand-symbol{margin-bottom:18px}.login-brand .login-brand-foot{padding-top:14px}.login-form-panel .login-form-kicker{margin-bottom:18px}}
@media(max-width:400px){.login-form-panel .login-form-kicker{padding:8px 14px 8px 12px;font-size:16px;letter-spacing:0}}
/* 页面底部版权与 ICP 备案号（备案号链接到工信部备案系统） */
#login.login-shell{grid-template-rows:minmax(0,1fr) auto}
#login .login-footer{margin-top:22px;font-size:13px;line-height:1.7;letter-spacing:.3px;text-align:center;opacity:.72}
#login .login-footer a{text-decoration:none;white-space:nowrap}
#login .login-footer a:hover,#login .login-footer a:focus-visible{text-decoration:underline}
@media(max-width:480px){#login .login-footer{margin-top:16px;font-size:12px}}
