.visit-board{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}.visit-row{display:grid;grid-template-columns:210px 1fr;border-bottom:1px solid var(--line)}.subject-cell{padding:22px;border-right:1px solid var(--line);display:flex;flex-direction:column}.visit-cards{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:10px;padding:14px;background:#f7faf8}.visit-card{padding:14px;border:1px solid var(--line);border-radius:5px;background:#fff;display:flex;flex-direction:column;color:var(--ink)}.visit-card span,.visit-card small{margin-top:5px}.visit-card.done{border-left:4px solid #3ca477;background:#f0faf5}.visit-card.overdue{border-left:4px solid #e47b2e;background:#fff7ef}.visit-card.upcoming{opacity:.68}.crf-layout{display:grid;grid-template-columns:230px 1fr;gap:20px;align-items:start}.module-nav{position:sticky;top:88px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px}.module-nav a{display:flex;gap:10px;padding:12px;color:var(--ink);border-bottom:1px solid var(--line)}.module-nav span,.crf-section h2 span{color:var(--accent);font-size:12px}.crf-content{display:grid;gap:16px}.crf-section{scroll-margin-top:90px}.crf-section h2{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field label{display:block;font-weight:600;margin-bottom:6px}.field.full{grid-column:1/-1}.sticky-save{position:sticky;bottom:12px;display:flex;justify-content:flex-end;align-items:center;gap:20px;background:#fffffff2;border:1px solid var(--line);border-radius:8px;padding:14px;box-shadow:0 8px 30px #18332d18}@media(max-width:900px){.visit-row{grid-template-columns:1fr}.visit-cards{overflow:auto;grid-template-columns:repeat(5,150px)}.crf-layout{grid-template-columns:1fr}.module-nav{position:static;display:flex;overflow:auto}.module-nav a{min-width:150px}.field-grid{grid-template-columns:1fr}}
.module-page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.button-light{border:1px solid var(--line);padding:10px 16px;border-radius:8px}.module-nav strong{display:block;padding:12px 16px;color:#6d7f79}.module-nav a.active{background:#e7f4f0;color:#00785f;border-left:4px solid #00785f}.variable-list{display:flex;flex-direction:column}.variable-row{display:grid;grid-template-columns:240px minmax(260px,1fr) 130px;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.variable-row>label{font-weight:650}.variable-row em{color:#d64b3c}.variable-control{display:flex;align-items:stretch}.variable-control input,.variable-control select,.variable-control textarea{width:100%;border-radius:8px 0 0 8px}.variable-control .unit{display:flex;align-items:center;border:1px solid #bdcec8;border-left:0;padding:0 14px;background:#f5f8f7;border-radius:0 8px 8px 0;white-space:nowrap}.status-select{min-width:120px}.variable-row small{grid-column:2/4;color:#70817b}.variable-row .error{color:#b53225}.has-error input{border-color:#c64538}.choice-group{display:flex;gap:8px;flex-wrap:wrap}.choice-group label{border:1px solid #bdcec8;border-radius:8px;padding:8px 12px}.choice-group input{width:auto;margin-right:6px}@media(max-width:850px){.variable-row{grid-template-columns:1fr}.variable-row small{grid-column:auto}.module-page-head{align-items:flex-start;gap:12px}}
.enrollment-card{max-width:720px;margin:0 auto;display:grid;gap:20px;padding:32px}.enrollment-card .field label{font-weight:650}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:20px;padding-top:12px}
.variable-list{max-width:980px;margin:0 auto}.variable-row{display:grid!important;grid-template-columns:230px minmax(360px,1fr)!important;column-gap:26px!important;row-gap:4px!important;align-items:center!important;padding:10px 6px!important}.variable-row>label{font-size:15px;line-height:1.35}.variable-control{min-width:0;min-height:40px}.variable-control>input:not([type=hidden]),.variable-control>textarea{box-sizing:border-box;width:100%!important;min-height:40px;padding:7px 12px;font-size:15px;border:1px solid #cbd8d4;border-radius:6px!important;background:#fff}.variable-control>textarea{resize:vertical;min-height:72px}.variable-control .unit{font-size:14px}.variable-row small{grid-column:2!important;margin-top:-2px}.choice-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.choice-group label{position:relative;padding:0!important;border:0!important}.choice-group input{position:absolute;opacity:0;pointer-events:none}.choice-group span,.choice-group label:not(:has(span)){display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border:1px solid #c8d2cf;border-radius:6px;background:#fff;cursor:pointer}.choice-group input:checked+span{color:#009f9f;border-color:#20bfc2;background:#effcfc}.crf-section{padding:18px 26px}.crf-section>h2{margin-top:0;margin-bottom:4px;padding-bottom:10px}.sticky-save button{min-width:135px}@media(max-width:850px){.variable-row{grid-template-columns:1fr!important;gap:6px!important}.variable-row small{grid-column:1!important}.crf-section{padding:16px}.variable-control{width:100%}}
.date-input-wrap{position:relative;width:100%}.date-input-wrap .custom-date{padding-right:52px!important}.date-icon{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:38px;height:38px;padding:0!important;border:0!important;background:transparent!important;color:#8ea09a!important;font-size:23px;box-shadow:none!important}.date-popover{display:none;position:absolute;z-index:2000;width:350px;background:#fff;border:1px solid #dbe4e1;border-radius:8px;box-shadow:0 18px 46px #173a3028;overflow:hidden}.date-popover.open{display:block}.date-head{height:64px;display:grid;grid-template-columns:40px 40px 1fr 40px 40px;align-items:center;border-bottom:1px solid #edf1f0;padding:0 10px}.date-head strong{text-align:center;font-size:19px}.date-head button{border:0;background:transparent;color:#7d8b87;font-size:26px;padding:0}.date-week,.date-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}.date-week{padding:18px 14px 8px;font-weight:650}.date-days{padding:0 14px 16px;gap:4px}.date-days button{height:39px;border:0;background:transparent;border-radius:7px;font-size:16px;color:#263a35;padding:0}.date-days button:hover{background:#edf8f6}.date-days .outside{color:#bdc6c3}.date-days .today{border:1px solid #24bfc0}.date-days .selected{background:#35c2c4!important;color:#fff}.date-today{width:100%;height:56px;border:0!important;border-top:1px solid #edf1f0!important;background:#fff!important;color:#18afb2!important;font-size:17px!important;border-radius:0!important}
/* Shared visual language across dashboards, lists, forms and login. */
body{background:#f5f8f6}header{height:72px;box-shadow:0 1px 0 #dfe9e5}header b{border-radius:7px;padding:9px 11px}nav a,nav .link{font-weight:650}main{max-width:1320px;padding-top:48px}.title{margin-bottom:34px}.title h1{font-size:42px;letter-spacing:-.5px}.title p:not(.eyebrow){color:#5e716a}.button,button{border-radius:7px;font-weight:650;transition:.16s ease}.button:hover,button:hover{filter:brightness(.96);transform:translateY(-1px)}.card,.metrics div,.visit-board{border-color:#d9e5e0;box-shadow:0 7px 24px #173a300b}.metrics{gap:18px}.metrics div{padding:28px;border-radius:10px}.metrics b{font-size:38px}.card{border-radius:10px;padding:30px}.row{padding:17px 0}.row:last-child{border-bottom:0}.search{background:#fff;border:1px solid var(--line);padding:9px;border-radius:10px;box-shadow:0 4px 16px #173a3008}.search input{border:0;background:transparent}.visit-board{border-radius:10px}.visit-card{border-radius:7px;min-height:108px}.table{padding:0}.table th{padding-top:18px;padding-bottom:18px}.login{max-width:560px}.login h1{font:600 38px/1.2 Georgia,"Songti SC",serif}.login .card{padding:34px}.login button{width:100%;margin-top:8px}
.data-form{max-width:1080px;margin:0 auto;padding:0;overflow:visible}.data-form-fields{padding:18px 34px}.data-field{display:grid;grid-template-columns:230px minmax(360px,1fr);gap:24px;align-items:center;padding:8px 0}.data-field>label{font-size:15px;font-weight:650}.data-field em{color:#d65848;margin-left:3px}.data-control input:not([type=checkbox]),.data-control select,.data-control textarea{min-height:40px;padding:7px 12px;border-color:#c8d7d1;border-radius:6px;font-size:15px}.data-control textarea{min-height:74px}.data-control .error{display:block;color:#bd3f33;margin-top:4px}.boolean-control input[type=checkbox]{appearance:none;width:48px;height:26px;border-radius:26px;background:#d7dfdc;position:relative;cursor:pointer;vertical-align:middle}.boolean-control input[type=checkbox]:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:.18s}.boolean-control input[type=checkbox]:checked{background:#14a88c}.boolean-control input[type=checkbox]:checked:after{left:25px}.form-footer{position:sticky;bottom:8px;margin:0;padding:12px 24px;background:#ffffffed;border-top:1px solid var(--line);border-radius:0 0 10px 10px}.form-footer button{min-width:135px}.notice{border-radius:8px}@media(max-width:760px){main{padding:20px 14px 55px}.title h1{font-size:30px}.data-form-fields{padding:16px}.data-field{grid-template-columns:1fr;gap:5px}.card{padding:18px}}
.record-bar{display:grid;grid-template-columns:38px auto auto auto 1fr;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 18px;margin:-24px 0 18px;min-height:56px;box-shadow:0 4px 15px #173a3008}.record-back{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:7px;background:#f2f7f5;font-size:30px;line-height:1}.record-bar strong{font-size:17px}.record-bar>span{padding-left:16px;border-left:1px solid var(--line);font-weight:650}.record-bar em{font-style:normal;color:#e67c31;background:#fff4e8;padding:4px 9px;border-radius:5px;font-size:13px}.record-bar small{text-align:right;white-space:nowrap}.record-bar+.crf-layout{margin-top:0}.record-bar+.crf-layout .module-nav{top:84px}.record-bar+.crf-layout .crf-section{padding-top:24px}.record-bar+.crf-layout .crf-section h2{margin-bottom:8px}@media(max-width:850px){.record-bar{grid-template-columns:38px 1fr auto;margin:-10px 0 14px}.record-bar>span,.record-bar small{display:none}}
.module-nav a b{font-weight:600;flex:1}.module-state{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;font-size:12px}.module-state.complete{background:#dff4e9;color:#18845e}.module-state.partial{background:#fff0d9;color:#d47d13}.module-state.empty{background:#fff0e6;color:#e87828}.compact-title{margin-bottom:18px}.compact-title h1{font-size:32px}.data-field[hidden]{display:none!important}
.module-nav a.disabled,.row-disabled{color:#a7afac;background:#fafbfa;cursor:not-allowed}.module-state.disabled{background:#e5e8e7;color:#a8afad}.row-disabled b{color:#9ca6a2}
.module-nav{max-height:calc(100vh - 110px);overflow:auto}.module-nav h4{margin:10px -10px 2px;padding:7px 14px;background:#f3f7f5;color:#526963;font-size:12px;letter-spacing:.08em}.crf-subsection{margin:14px 0 2px;padding:9px 6px 8px;border-bottom:1px solid #d9e5e0;color:#1c3a33;font-size:16px}.crf-guidance{padding:8px 6px;color:#5d706a;font-size:14px;line-height:1.55}.patient-stage{margin:18px -4px 3px;padding:8px 4px;border-bottom:1px solid var(--line);color:#60766f;font-size:14px}.variable-row{grid-template-columns:260px minmax(320px,1fr)!important;padding:7px 6px!important}.crf-section{padding:15px 22px}.sticky-save{padding:9px 14px}.record-bar{margin-top:-32px}.choice-group span,.choice-group label:not(:has(span)){min-height:34px;padding:0 11px}.variable-control{min-height:36px}.variable-control>input:not([type=hidden]){min-height:36px}
.multiselect-group span:before{content:"✓";display:inline-grid;place-items:center;width:17px;height:17px;margin-right:7px;border:1px solid #aebdb8;border-radius:4px;color:transparent;font-size:12px;font-weight:800}.multiselect-group input:checked+span:before{border-color:#20bfc2;background:#20bfc2;color:#fff}.multiselect-group input:focus-visible+span{outline:2px solid #128aef;outline-offset:2px}
@media(max-width:850px){.module-nav{max-height:none}.record-bar{margin-top:-10px}}
.section-tabs{display:flex;gap:6px;overflow:auto;margin:0 -2px 8px;padding:2px 2px 9px;border-bottom:1px solid #e1e9e6}.section-tabs a{display:flex;align-items:center;gap:6px;flex:0 0 auto;max-width:260px;padding:6px 9px;border:1px solid #d9e4e0;border-radius:6px;color:#526862;font-size:12px;background:#fff}.section-tabs a.active{border-color:#168f78;background:#edf8f5;color:#08715e}.section-tabs small{color:#91a09b}
.title-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.button.secondary{background:#fff;color:#08715e;border:1px solid #168f78}.export-note{margin-bottom:16px;padding:16px 20px}.export-note h2{margin:0 0 5px;font-size:17px}.export-note p{margin:0;color:#647872}
.compact-page-head{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 18px}.compact-page-head h1{margin:2px 0 5px;font:600 34px/1.15 Georgia,"Songti SC",serif}.compact-page-head p{margin:0;color:#63766f}.filter-bar{display:flex;gap:8px;margin-bottom:12px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:8px}.filter-bar select{min-width:220px}.data-table{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 20px #173a3009}.data-table table{width:100%;border-collapse:collapse}.data-table th{padding:12px 14px;background:#eef4f1;color:#536a63;text-align:left;font-size:13px;white-space:nowrap}.data-table td{padding:12px 14px;border-top:1px solid #e5ece9;vertical-align:top}.data-table td small{display:block;margin-top:4px;color:#73837e}.data-table .empty{text-align:center;padding:44px;color:#7b8b86}.status-pill{display:inline-flex;padding:4px 9px;border-radius:12px;background:#edf3f1;color:#587069;font-size:12px;white-space:nowrap}.status-submitted,.status-answered{background:#e5f1ff;color:#2d6ca8}.status-queried,.status-open{background:#fff0e6;color:#c7661e}.status-locked,.status-closed,.status-cra_passed,.status-dm_passed{background:#e3f5eb;color:#147653}.workflow-metrics{margin-bottom:16px}.secondary-button{background:#fff!important;color:#08715e!important;border:1px solid #168f78!important}.record-bar em.state-locked{background:#e5efec;color:#526963}.record-bar em.state-submitted{background:#e5f1ff;color:#2d6ca8}.record-bar em.state-queried{background:#fff0e6;color:#c7661e}@media(max-width:900px){header{height:auto;padding:10px 14px}header nav{overflow:auto}.compact-page-head{align-items:flex-start;gap:10px}.compact-page-head h1{font-size:28px}}

.participant-head{margin-bottom:14px}.visit-search{margin-bottom:10px}.visit-legend{display:flex;flex-wrap:wrap;gap:16px;margin:0 2px 12px;color:#60736c;font-size:12px}.visit-legend span{display:flex;align-items:center;gap:6px}.visit-legend i{width:9px;height:9px;border-radius:50%;background:#c8d2ce}.visit-legend i.done{background:#2e9d72}.visit-legend i.draft{background:#3d82b8}.visit-legend i.overdue{background:#e47b2e}.visit-legend i.queried{background:#c94f45}.visit-legend i.locked{background:#214e43}.cohort-timeline{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 7px 24px #173a300b}.timeline-header,.timeline-row{display:grid;grid-template-columns:190px minmax(1050px,7fr) minmax(1050px,7fr);min-width:2290px}.timeline-header{position:sticky;top:0;z-index:2;background:#edf4f1;color:#526a62;font-size:12px;font-weight:750;letter-spacing:.06em}.timeline-header>div{padding:10px 14px;border-right:1px solid #d5e2dd}.phase-label{text-align:center}.phase-label.hospital{color:#195b4d}.phase-label.followup{color:#7a622c}.timeline-row{border-top:1px solid var(--line);min-height:124px}.timeline-subject{position:sticky;left:0;z-index:1;display:flex;flex-direction:column;padding:17px 15px;background:#fff;border-right:1px solid var(--line);box-shadow:6px 0 12px #173a3008}.timeline-subject strong{color:var(--brand)}.timeline-subject>b{margin-top:2px}.timeline-subject small{margin-top:3px}.timeline-subject span{align-self:flex-start;margin-top:8px;padding:2px 8px;border-radius:10px;background:#e7f2ee;color:#176d59;font-size:11px}.timeline-phase{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));gap:8px;padding:10px;border-right:1px solid var(--line)}.followup-visits{background:#fcfaf5}.timeline-card{display:flex;flex-direction:column;min-height:100px;padding:11px 11px 9px;border:1px solid #d9e5e0;border-left:4px solid #c5cfcb;border-radius:7px;background:#fff;color:var(--ink);transition:.15s ease}.timeline-card:hover{transform:translateY(-1px);box-shadow:0 5px 14px #18332d12}.timeline-card strong{font-size:13px}.timeline-card b{font-size:11px;font-weight:600;color:#64766f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-card time{margin-top:auto;font-size:12px;color:#4e625b}.timeline-card small{font-size:11px}.timeline-card.done{border-left-color:#2e9d72;background:#f1faf6}.timeline-card.draft{border-left-color:#3d82b8;background:#f2f8fc}.timeline-card.overdue{border-left-color:#e47b2e;background:#fff7ef}.timeline-card.queried{border-left-color:#c94f45;background:#fff2f0}.timeline-card.locked{border-left-color:#214e43;background:#edf5f2}.timeline-card.upcoming{opacity:.68}.timeline-card.disabled{opacity:.45;background:#f1f3f2}.timeline-empty{padding:50px;text-align:center}@media(max-width:760px){.timeline-header,.timeline-row{grid-template-columns:150px minmax(980px,7fr) minmax(980px,7fr);min-width:2110px}.timeline-subject{padding:13px 10px}.timeline-phase{gap:6px;padding:7px}.timeline-card{min-height:92px;padding:8px}}

main:has(.cohort-timeline){max-width:1920px;padding-left:24px;padding-right:24px}.timeline-header,.timeline-row{grid-template-columns:180px minmax(770px,7fr) minmax(770px,7fr);min-width:1720px}.timeline-phase{grid-template-columns:repeat(7,minmax(102px,1fr));gap:6px;padding:8px}.timeline-card{min-height:94px;padding:9px 8px 7px}.timeline-card time{font-size:11px}.timeline-card b{font-size:10px}.module-admin-legend{display:flex;gap:9px;margin:-4px 0 14px}.module-admin-legend span,.module-admin-meta em{padding:4px 9px;border-radius:99px;background:#eef3f1;color:#61726d;font-size:11px;font-style:normal}.module-admin-legend .repeat,.module-admin-meta em.repeat{background:#e2f3ed;color:#08715e}.module-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.module-admin-card{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 4px 16px #173a3008}.module-admin-card.inactive{opacity:.55}.module-admin-card h2{margin:3px 0 5px;font-size:18px}.module-admin-card p{margin:0;color:var(--muted);font-size:12px}.module-admin-meta{min-width:116px;text-align:right}.module-admin-meta b{display:block;font:600 25px Georgia,serif}.module-admin-meta span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.module-admin-actions{grid-column:1/-1;display:flex;gap:8px;padding-top:10px;border-top:1px solid var(--line)}.module-admin-actions a{padding:6px 10px;border:1px solid #cddbd5;border-radius:5px;font-size:12px}.module-admin-actions a:nth-child(2){background:var(--brand);border-color:var(--brand);color:#fff}@media(max-width:900px){.module-admin-grid{grid-template-columns:1fr}}
.dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:16px}.dashboard-panel{padding:20px 24px}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:8px}.panel-head h2{margin:0;font-size:17px}.work-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:8px}.work-cards a{display:flex;flex-direction:column;padding:16px;border:1px solid #e0e9e6;border-radius:8px;background:#f8fbfa;color:var(--ink)}.work-cards b{font-size:27px}.work-cards span{margin-top:3px;color:#657870;font-size:13px}.process-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 8px 4px}.process-line span{padding:9px 13px;border-radius:7px;background:#eef7f4;font-weight:650;font-size:13px}.process-line i{color:#8ca09a;font-style:normal}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.process-line{overflow:auto;justify-content:flex-start}.process-line span{white-space:nowrap}}
.change-reason{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:center;padding:13px 6px;margin-top:10px;background:#fff8ee;border:1px solid #f3d7b1;border-radius:7px}.change-reason label{font-weight:650}.query-panel,.compact-query{margin:14px 0;padding:18px 22px}.compact-query{display:grid;grid-template-columns:180px 220px 1fr auto;gap:8px;align-items:center}.compact-query h2{margin:0;font-size:16px}.task-actions{display:flex;align-items:center;gap:8px}.task-actions form,.inline-action{display:flex;gap:5px;align-items:center;margin:0}.task-actions button,.inline-action button{padding:6px 9px;font-size:12px}.task-actions input,.inline-action input{min-height:32px;max-width:160px;padding:5px 8px}@media(max-width:850px){.compact-query{grid-template-columns:1fr}.change-reason{grid-template-columns:1fr}}
.export-builder{max-width:1100px;margin:0 auto;padding:24px}.export-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.export-builder label{display:grid;gap:6px;font-weight:600}.export-builder fieldset{margin:20px 0;border:1px solid var(--line);border-radius:8px;padding:16px}.module-checks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.module-checks label,.privacy-check{display:flex;align-items:center;gap:7px;font-weight:500}.module-checks input,.privacy-check input{width:auto}.privacy-check{padding:12px;background:#fff8ea;border-radius:7px}@media(max-width:850px){.export-grid,.module-checks{grid-template-columns:1fr}}

/* Seven inpatient visits plus the inline discharge control. */
main:has(.cohort-timeline){max-width:1920px;padding-left:24px;padding-right:24px}.timeline-header,.timeline-row{grid-template-columns:180px minmax(890px,8fr) minmax(770px,7fr);min-width:1840px}.timeline-phase{grid-template-columns:repeat(7,minmax(102px,1fr));gap:6px;padding:8px}.hospital-visits{grid-template-columns:repeat(8,minmax(102px,1fr))}.discharge-card{display:grid;grid-template-columns:1fr auto;align-content:start;gap:4px 6px;min-height:94px;padding:9px 8px 7px;border:1px solid #bdd8cf;border-left:4px solid var(--brand);border-radius:7px;background:#edf8f4}.discharge-card strong{grid-column:1/-1;font-size:13px}.discharge-card label{grid-column:1/-1;color:#61766e;font-size:10px}.discharge-card input{grid-column:1/-1;height:29px;padding:3px 5px;font-size:11px}.discharge-card button{padding:4px 7px;font-size:11px}.module-admin-actions form{margin-left:auto}.module-admin-actions button{padding:6px 10px;border:1px solid #cddbd5;border-radius:5px;background:#fff;color:var(--brand);font-size:12px;cursor:pointer}.module-admin-actions button.danger{border-color:#efc7c3;background:#fff5f4;color:#a93226}.module-admin-actions button.danger:hover{background:#a93226;color:#fff}

/* Fluid viewport layout: no page-level horizontal scrolling. */
html,body{max-width:100%;overflow-x:hidden}main,main>*{box-sizing:border-box;max-width:100%;min-width:0}header nav{flex-wrap:wrap;overflow:visible}.data-table{overflow-x:visible}.data-table table{table-layout:fixed}.data-table th,.data-table td{white-space:normal;overflow-wrap:anywhere}.filter-bar{flex-wrap:wrap}.filter-bar>*{min-width:0!important;flex:1 1 180px}.visit-cards{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));overflow:visible}.module-nav{overflow-x:hidden}.section-tabs,.process-line{flex-wrap:wrap;overflow:visible}.head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cohort-timeline{overflow:visible}.timeline-header{display:none}.timeline-row{display:grid;grid-template-columns:175px minmax(0,1fr);min-width:0;width:100%;align-items:stretch}.timeline-subject{position:static;grid-column:1;grid-row:1/span 2}.timeline-phase{position:relative;grid-column:2;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));min-width:0;padding:31px 8px 8px}.timeline-phase::before{content:attr(data-phase);position:absolute;top:7px;left:10px;color:#526a62;font-size:11px;font-weight:800;letter-spacing:.08em}.hospital-visits{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}.followup-visits{border-top:1px solid var(--line)}.timeline-card,.discharge-card{min-width:0}.timeline-card b{white-space:normal;line-height:1.25}.discharge-card input{min-width:0}
@media(max-width:900px){main:has(.cohort-timeline){padding-left:12px;padding-right:12px}.timeline-row{grid-template-columns:145px minmax(0,1fr)}.timeline-phase,.hospital-visits{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}.module-admin-actions{flex-wrap:wrap}.module-admin-actions form{margin-left:0}.data-table{overflow:visible}.data-table table{font-size:12px}.data-table th,.data-table td{padding:8px 6px}.module-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));overflow:visible}.module-nav a{min-width:0}.visit-cards{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}}
@media(max-width:620px){.timeline-row{grid-template-columns:1fr}.timeline-subject{grid-column:1;grid-row:auto}.timeline-phase{grid-column:1}.timeline-phase,.hospital-visits{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-page-head{flex-direction:column}}
.date-input-wrap{flex:1 1 auto;min-width:0;height:36px}.date-input-wrap .custom-date{height:36px!important;min-height:36px!important}.date-icon{top:0!important;right:2px!important;transform:none!important;width:34px!important;height:34px!important;font-size:18px!important}.module-nav{scroll-behavior:smooth}.timeline-subject{grid-row:1/span 3;padding:11px 12px}.timeline-row{min-height:0}.timeline-phase{padding:25px 6px 6px}.hospital-visits{grid-template-columns:repeat(6,minmax(88px,1fr))}.discharge-visits{grid-template-columns:minmax(120px,1fr) minmax(180px,1.4fr);background:#f6faf8;border-top:1px solid var(--line)}.followup-visits{grid-template-columns:repeat(7,minmax(88px,1fr))}.timeline-card,.discharge-card{min-height:72px;padding:7px}.timeline-card strong{font-size:12px}.timeline-card time,.timeline-card small{font-size:10px}.discharge-card{grid-template-columns:1fr auto}.discharge-card input{grid-column:1;height:27px}.discharge-card button{grid-column:2}.timeline-row+.timeline-row{border-top:2px solid #cfddd8}

/* Dense, fixed-size visit matrix: cards no longer stretch when a phase has fewer nodes. */
main:has(.cohort-timeline){padding-top:24px;padding-bottom:42px}.participant-head{margin-bottom:10px}.participant-head h1{font-size:30px}.visit-search{padding:5px;margin-bottom:7px}.visit-search input{padding:7px 10px}.visit-search button{padding:7px 14px}.visit-legend{margin-bottom:7px}.timeline-row{grid-template-columns:150px minmax(0,1fr)}.timeline-subject{padding:8px 10px;font-size:13px}.timeline-subject small{font-size:10px}.timeline-subject span{margin-top:4px}.timeline-phase{display:flex;align-items:stretch;justify-content:flex-start;gap:6px;padding:22px 6px 5px;min-height:82px;overflow:hidden}.timeline-phase::before{top:4px;left:7px;font-size:10px}.timeline-card{flex:0 0 124px;width:124px;min-height:55px;height:55px;padding:5px 7px;border-radius:6px}.timeline-card strong{font-size:11px;line-height:1.15}.timeline-card b{font-size:9px;line-height:1.1}.timeline-card time{font-size:9px;line-height:1.1}.timeline-card small{font-size:9px;line-height:1.1}.discharge-visits{display:flex}.discharge-card{flex:0 0 254px;width:254px;min-height:55px;height:55px;padding:4px 6px;grid-template-columns:1fr auto;gap:2px 5px}.discharge-card strong{font-size:10px}.discharge-card label{display:none}.discharge-card input{height:23px;min-height:23px;padding:2px 5px;font-size:10px}.discharge-card button{padding:2px 7px;font-size:10px}.followup-visits{display:flex}.timeline-row+.timeline-row{border-top:2px solid #cfddd8}

/* Home page prioritizes daily entry work and keeps the full overview above the fold. */
.home-head{margin-bottom:12px}.home-head h1{font-size:32px}.home-metrics{gap:10px;margin-bottom:12px}.home-metrics a{display:block;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:9px;color:var(--ink);box-shadow:0 4px 14px #173a3008}.home-metrics b{display:block;font:600 29px Georgia,serif}.home-metrics span{color:var(--muted);font-size:12px}.home-shortcuts{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:10px;margin-bottom:12px}.home-shortcuts>a{display:flex;min-height:96px;flex-direction:column;padding:16px 18px;border:1px solid #d8e5e0;border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 5px 18px #173a3008}.home-shortcuts>a:first-child{background:#edf8f4;border-color:#bcdcd1}.home-shortcuts strong{font-size:16px}.home-shortcuts span{margin-top:3px;color:var(--muted);font-size:12px}.home-shortcuts i{margin-top:auto;color:var(--brand);font-size:12px;font-style:normal;font-weight:700}.recent-panel{padding:15px 18px}.recent-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.recent-patient{display:flex;justify-content:space-between;gap:8px;padding:10px 11px;border:1px solid #e1e9e6;border-radius:7px;background:#fafcfb;color:var(--ink)}.recent-patient span{display:flex;min-width:0;flex-direction:column}.recent-patient span:last-child{align-items:flex-end}.recent-patient small,.recent-patient time{overflow:hidden;color:var(--muted);font-size:10px;white-space:nowrap;text-overflow:ellipsis}.recent-patient em{margin-top:3px;padding:1px 6px;border-radius:9px;background:#e6f2ee;color:var(--brand);font-size:10px;font-style:normal}
@media(max-width:1000px){.timeline-phase{overflow-x:auto}.home-shortcuts{grid-template-columns:1fr}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.timeline-row{grid-template-columns:1fr}.timeline-subject{grid-column:1;grid-row:auto}.timeline-phase{grid-column:1}.home-metrics{grid-template-columns:1fr 1fr}.recent-grid{grid-template-columns:1fr}}

/* Further vertical compression requested for dense patient review. */
.timeline-phase{min-height:66px;padding-top:17px;padding-bottom:3px}.timeline-phase::before{top:2px}.timeline-card{height:45px;min-height:45px;padding:3px 6px}.timeline-card b{display:none}.timeline-card strong{font-size:10px}.timeline-card time,.timeline-card small{font-size:8px;line-height:1}.timeline-subject{padding-top:5px;padding-bottom:5px}.discharge-card{height:45px;min-height:45px;padding:3px 5px}.discharge-card strong{line-height:1}.discharge-card input{height:20px;min-height:20px}.discharge-card button{padding:1px 6px}.import-upload{display:flex;align-items:end;justify-content:space-between;gap:20px}.import-upload label{flex:1}.import-upload strong,.import-upload small{display:block}.import-upload input{margin:8px 0 4px}.import-preview{padding:20px}.import-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:12px 0}.import-metrics div{padding:12px;border:1px solid var(--line);border-radius:7px;background:#f8fbfa}.import-metrics b,.import-metrics span{display:block}.import-metrics b{font-size:24px}.import-metrics span{color:var(--muted);font-size:11px}.import-error,.import-errors{margin-bottom:12px;padding:12px 15px;border:1px solid #efc7c3;border-radius:7px;background:#fff3f1;color:#9e372e}.import-errors p{margin:4px 0}.import-preview details{padding:10px 0;border-top:1px solid var(--line)}.import-preview summary{cursor:pointer;font-weight:650}.mapping-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px;padding-top:10px;font-size:12px}.overwrite-check{display:flex!important;align-items:center;gap:7px}.overwrite-check input{width:auto}.import-preview .actions form{display:flex;align-items:center;gap:14px}.muted{color:var(--muted)}@media(max-width:800px){.import-metrics{grid-template-columns:repeat(3,1fr)}.mapping-list{grid-template-columns:1fr}.import-upload{align-items:stretch;flex-direction:column}}
.export-format-note{margin-top:12px;padding:10px 12px;border-radius:7px;background:#f0f6f3;color:#5b7068;font-size:12px}
.csv-preview-window{max-height:330px;margin-top:9px;overflow:auto;border:1px solid var(--line);border-radius:7px}.csv-preview-window table{width:max-content;min-width:100%;font-size:11px}.csv-preview-window th{position:sticky;top:0;z-index:1;padding:7px 9px;background:#edf4f1;white-space:nowrap}.csv-preview-window td{max-width:210px;padding:6px 9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.csv-preview-window tr:nth-child(even){background:#fafcfb}
.mapping-table-wrap{max-height:420px;margin-top:9px;overflow:auto;border:1px solid var(--line);border-radius:7px}.mapping-table{width:100%;table-layout:fixed;font-size:12px}.mapping-table th{position:sticky;top:0;z-index:1;padding:8px 10px;background:#edf4f1}.mapping-table th:nth-child(1){width:24%}.mapping-table th:nth-child(2){width:5%}.mapping-table th:nth-child(3){width:46%}.mapping-table th:nth-child(4){width:25%}.mapping-table td{padding:8px 10px;border-top:1px solid #e5ece9;overflow-wrap:anywhere}.mapping-table tr:nth-child(even){background:#fafcfb}.mapping-arrow{text-align:center;color:#8a9d97;font-size:16px}.mapping-kind{display:inline-block;margin-right:8px;padding:2px 7px;border-radius:9px;font-size:10px}.mapping-kind.core{background:#e9f1ff;color:#326c9b}.mapping-kind.variable{background:#e5f4ee;color:#14735b}.mapping-table code{color:#214d42;font-size:11px}

/* Collapsible patient rows: one compact summary line until opened. */
.cohort-timeline{overflow:hidden}.timeline-row{display:block;width:100%;min-width:0;border-top:1px solid var(--line)}.timeline-row:first-of-type{border-top:0}.timeline-row+.timeline-row{border-top:1px solid var(--line)}.timeline-subject{position:static;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;padding:8px 14px;background:#fff;border:0;box-shadow:none;cursor:pointer;list-style:none}.timeline-subject::-webkit-details-marker{display:none}.timeline-subject::marker{display:none}.subject-identity{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(90px,.8fr) minmax(150px,1fr);align-items:center;gap:22px;min-width:0}.subject-identity strong{color:var(--brand);font-size:14px}.subject-identity b{overflow:hidden;font-size:13px;white-space:nowrap;text-overflow:ellipsis}.subject-identity small{font-size:11px}.subject-summary-meta{display:flex;align-items:center;gap:16px}.subject-summary-meta em{padding:3px 9px;border-radius:12px;background:#e7f2ee;color:#176d59;font-size:11px;font-style:normal}.subject-summary-meta i{min-width:70px;color:var(--brand);font-size:11px;font-style:normal}.subject-summary-meta i::after{content:"⌄";display:inline-block;margin-left:6px;transition:.16s}.timeline-row[open] .subject-summary-meta i::after{transform:rotate(180deg)}.timeline-row[open]>.timeline-subject{background:#f1f7f4;border-bottom:1px solid var(--line)}.timeline-detail{position:relative;background:#fff}.patient-profile-link{position:absolute;top:2px;right:10px;z-index:2;font-size:10px;font-weight:700}.timeline-detail .timeline-phase{padding-right:100px}.timeline-detail .followup-visits{padding-right:6px}@media(max-width:700px){.subject-identity{grid-template-columns:1fr 1fr;gap:3px 12px}.subject-identity small{grid-column:1/-1}.subject-summary-meta i{display:none}.timeline-detail .timeline-phase{padding-right:6px}}
/* Cohort dashboard and single-line collapsed patient summaries. */
.timeline-row:not([open]){height:52px;overflow:hidden}.timeline-row:not([open]) .timeline-subject{height:52px;min-height:52px}.timeline-subject{flex-wrap:nowrap}.subject-identity{display:flex;flex:1;gap:18px;white-space:nowrap}.subject-identity strong,.subject-identity b,.subject-identity small{display:block;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subject-identity strong{flex:0 1 260px}.subject-identity b{flex:0 1 130px}.subject-identity small{flex:0 1 180px}.subject-summary-meta{flex:none;white-space:nowrap}
.home-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:10px 0 12px}.home-kpis a{padding:12px 15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.home-kpis b{display:block;font:600 28px Georgia,serif}.home-kpis span{color:var(--muted);font-size:11px}.home-kpis .attention b{color:#c85d28}.cohort-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.cohort-panel{padding:15px 18px}.cohort-panel .panel-head small{color:var(--muted);font-size:10px}.split-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px}.split-summary h3{margin:7px 0;font-size:12px}.summary-row{display:grid;grid-template-columns:55px 1fr 60px;align-items:center;gap:7px;margin:7px 0;font-size:11px}.summary-row>div,.followup-summary i{height:6px;overflow:hidden;border-radius:9px;background:#e9efec}.summary-row i,.followup-summary em{display:block;height:100%;border-radius:9px;background:#2b9c79}.summary-row b{text-align:right}.summary-row small{color:var(--muted);font-weight:400}.outcome-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:7px}.outcome-grid>div,.form-summary>div{position:relative;padding:12px;border:1px solid #e1e9e6;border-radius:7px;background:#f8fbfa}.outcome-grid b,.form-summary b{display:block;font:600 23px Georgia,serif}.outcome-grid span,.form-summary span{font-size:11px}.outcome-grid small{position:absolute;right:9px;top:9px;color:var(--muted)}.followup-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px 24px;padding-top:5px}.followup-summary>div{display:grid;grid-template-columns:68px 1fr 42px;align-items:center;gap:7px}.followup-summary span{display:flex;justify-content:space-between;font-size:11px}.followup-summary small{color:var(--muted);font-size:9px}.followup-summary strong{text-align:right;font-size:10px}.form-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:7px}.form-summary .query-stat{background:#fff7ef}.recent-panel{margin-bottom:25px}
@media(max-width:900px){.home-kpis{grid-template-columns:repeat(2,1fr)}.cohort-dashboard-grid{grid-template-columns:1fr}.subject-identity strong{flex-basis:180px}}
@media(max-width:620px){.subject-identity{gap:8px}.subject-identity small{display:none}.subject-summary-meta em{display:none}.split-summary,.followup-summary{grid-template-columns:1fr}.outcome-grid,.form-summary{grid-template-columns:repeat(2,1fr)}}

/* Refined cohort overview: denser hierarchy, clearer actions and data cards. */
.home-head{position:relative;overflow:hidden;padding:22px 24px;margin-bottom:14px;border:1px solid #d6e5df;border-radius:14px;background:linear-gradient(125deg,#fff 0%,#f3faf7 58%,#e3f2ec 100%);box-shadow:0 10px 30px #173a300b}
.home-head::after{content:"";position:absolute;right:-54px;bottom:-82px;width:230px;height:230px;border:36px solid #cfe6dd66;border-radius:50%;pointer-events:none}
.home-head>div{position:relative;z-index:1}.home-head .eyebrow{margin:0;color:#247762}.home-head h1{margin:4px 0 2px;font-size:34px}.home-head p:last-child{margin:0;color:#647972}.home-head .head-actions{display:flex;gap:9px;align-items:center}.home-head .button-light,.home-head .button{min-width:104px;padding:9px 15px;text-align:center}
.home-kpis{gap:12px;margin-bottom:14px}.home-kpis a{position:relative;overflow:hidden;min-height:94px;padding:15px 17px;border-color:#d9e5e1;border-radius:12px;box-shadow:0 6px 20px #173a3009;transition:transform .16s ease,box-shadow .16s ease}.home-kpis a::before{content:"";position:absolute;top:0;left:0;width:100%;height:3px;background:#2f9b7b}.home-kpis a:nth-child(2)::before{background:#3d82b8}.home-kpis a:nth-child(3)::before{background:#647c73}.home-kpis a:nth-child(4)::before{background:#d4a542}.home-kpis a.attention::before{background:#e47b2e}.home-kpis a:hover{transform:translateY(-2px);box-shadow:0 10px 25px #173a3012}.home-kpis b{font-size:32px;line-height:1.15}.home-kpis span{display:block;margin-top:5px;font-size:12px;font-weight:650}
.cohort-dashboard-grid{gap:14px;margin-bottom:14px}.cohort-panel{padding:18px 20px;border-radius:12px;box-shadow:0 7px 24px #173a3009}.cohort-panel .panel-head{margin-bottom:12px}.cohort-panel .panel-head h2{font-size:18px}.cohort-panel .panel-head small{font-size:11px}.outcome-grid>div,.form-summary>div{min-height:70px;border-radius:9px;background:linear-gradient(145deg,#fbfdfc,#f3f8f6)}.outcome-grid b,.form-summary b{font-size:27px}.summary-row>div,.followup-summary i{height:7px}.followup-summary>div{padding:3px 0}.recent-panel{padding:18px 20px;border-radius:12px}.recent-patient{padding:12px 13px;border-radius:9px;transition:border-color .16s ease,background .16s ease}.recent-patient:hover{border-color:#a9d0c2;background:#f1f9f6}
@media(max-width:900px){.home-head{align-items:flex-start}.home-head .head-actions{flex-wrap:wrap}.home-kpis a{min-height:82px}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.home-head{padding:16px}.home-head h1{font-size:27px}.home-head .head-actions{width:100%}.home-head .head-actions a{flex:1}.home-kpis{gap:8px}.home-kpis a{min-height:73px;padding:10px 12px}.home-kpis b{font-size:25px}.cohort-panel,.recent-panel{padding:14px}.recent-grid{grid-template-columns:1fr}}

/* Final patient summary reset: older timeline rules styled every nested span. */
.timeline-row:not([open]){height:52px!important;min-height:52px!important;overflow:hidden!important}
.timeline-row .timeline-subject{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;width:100%!important;height:52px!important;min-height:52px!important;padding:7px 14px!important;overflow:hidden!important}
.timeline-subject .subject-identity{display:flex!important;flex:1 1 auto!important;flex-direction:row!important;align-items:center!important;align-self:stretch!important;gap:18px!important;min-width:0!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important}
.timeline-subject .subject-identity strong{flex:0 1 300px!important}.timeline-subject .subject-identity b{flex:0 1 150px!important}.timeline-subject .subject-identity small{flex:0 1 210px!important}
.timeline-subject .subject-summary-meta{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;align-self:center!important;gap:14px!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important}
.timeline-subject .subject-summary-meta em{margin:0!important}.timeline-subject .subject-summary-meta i{margin:0!important}

/* Discharge control stays on one compact row and matches the V00F card height. */
.discharge-visits .discharge-card{display:flex!important;flex:0 0 360px!important;align-items:center!important;gap:7px!important;width:360px!important;height:45px!important;min-height:45px!important;padding:5px 7px!important;overflow:hidden!important}
.discharge-visits .discharge-card strong{display:block!important;flex:0 0 auto!important;grid-column:auto!important;margin:0!important;font-size:10px!important;white-space:nowrap!important}
.discharge-visits .discharge-card label{display:none!important}
.discharge-visits .discharge-card .date-input-wrap{flex:1 1 auto!important;min-width:0!important;height:29px!important}
.discharge-visits .discharge-card input,.discharge-visits .discharge-card .custom-date{grid-column:auto!important;width:100%!important;height:29px!important;min-height:29px!important;padding:3px 32px 3px 7px!important;font-size:10px!important}
.discharge-visits .discharge-card .date-icon{width:28px!important;height:27px!important;font-size:15px!important}
.discharge-visits .discharge-card button{grid-column:auto!important;flex:0 0 auto!important;height:29px!important;margin:0!important;padding:3px 8px!important;line-height:1!important}

.review-rule-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:920px;margin:0 auto;padding:24px}.review-rule-form>div{display:grid;gap:6px}.review-rule-form>aside{grid-column:1/-1;padding:13px 15px;border-radius:8px;background:#f1f7f4}.review-rule-form>aside p{margin:5px 0 0;color:var(--muted);font-size:12px}.review-rule-form .actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px}.review-rule-form input[type=checkbox]{width:auto;justify-self:start}.rule-table code{font-size:11px;overflow-wrap:anywhere}@media(max-width:700px){.review-rule-form{grid-template-columns:1fr}}

/* Account, review and query workflow. */
.account-link{padding:5px 9px;border:1px solid #d7e4df;border-radius:16px;background:#f3f8f6}.profile-card{max-width:900px;margin:0 auto;padding:26px}.profile-identity{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--line)}.profile-identity>span{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:#e4f3ed;color:var(--brand);font-size:24px;font-weight:800}.profile-identity h2,.profile-identity p{margin:0}.profile-identity p{margin-top:4px;color:var(--muted)}.profile-details{display:grid;grid-template-columns:1fr 2fr;gap:28px;padding-top:20px}.profile-details h3{margin:0 0 10px}.role-badges{display:flex;flex-wrap:wrap;gap:7px}.role-badges strong{padding:6px 10px;border-radius:15px;background:#e6f3ee;color:var(--brand);font-size:12px}.profile-details ul{margin:0;padding-left:19px}.profile-details li{margin:7px 0}.query-create-panel{display:grid;grid-template-columns:250px 1fr;gap:20px;margin-top:12px;padding:18px}.query-create-panel h2,.query-create-panel p{margin:0}.query-create-panel p{margin-top:5px;color:var(--muted);font-size:12px}.query-create-panel form{display:grid;grid-template-columns:220px minmax(260px,1fr) auto;align-items:center;gap:8px}.bulk-review-bar{display:flex;align-items:center;gap:9px;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f3f8f6}.bulk-review-bar button{padding:7px 10px}.bulk-review-bar small{margin-left:auto;color:var(--muted)}.check-column{width:38px!important;text-align:center}.check-column input{width:auto}@media(max-width:800px){.profile-details,.query-create-panel{grid-template-columns:1fr}.query-create-panel form{grid-template-columns:1fr}.bulk-review-bar{align-items:stretch;flex-direction:column}.bulk-review-bar small{margin-left:0}}
.import-index-guide{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:8px 18px;margin-bottom:12px;padding:14px 18px}.import-index-guide span{padding:8px 10px;border-radius:7px;background:#f2f7f5}.import-index-guide small{grid-column:1/-1;color:var(--muted)}@media(max-width:800px){.import-index-guide{grid-template-columns:1fr}.import-index-guide small{grid-column:auto}}
.module-entry-form{display:grid;gap:16px}.review-complete-note{display:flex;align-items:center;gap:12px;padding:15px 18px;border-left:4px solid #29986f}.review-complete-note span{color:var(--muted);font-size:12px}
.mobile-visit-context{display:none}
.timeline-row[id]{scroll-margin-top:90px}.timeline-row:target>.timeline-subject{background:#e9f5f0;box-shadow:inset 4px 0 0 var(--brand)}

/* Mobile/WeChat entry workspace: single-column, touch-sized and overflow-safe. */
.module-nav{scroll-behavior:auto!important}
@media(max-width:760px){
  body{font-size:14px;padding-bottom:env(safe-area-inset-bottom)}
  header{position:sticky;height:auto;min-height:58px;padding:8px 12px;align-items:flex-start;gap:8px}
  header>div{flex:0 0 auto;gap:8px;height:42px}
  header>div b{padding:6px 8px}
  header>div span{display:none}
  header nav{display:flex;flex:1;gap:4px;padding:2px 0 5px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  header nav::-webkit-scrollbar{display:none}
  header nav a{display:inline-flex;flex:0 0 auto;min-height:36px;align-items:center;padding:6px 9px;border-radius:18px;background:#f3f8f6;font-size:12px}
  header nav form{flex:0 0 auto}.link{min-height:36px;padding:6px 8px;font-size:12px}
  main{width:100%;padding:16px 10px 92px}
  footer{padding:22px 10px 86px;font-size:11px}
  .notice{margin-bottom:10px;padding:10px 12px}
  .record-bar{position:relative;grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px!important;min-height:50px;margin:0 0 10px!important;padding:7px 9px!important}
  .record-back{width:34px;height:34px}.record-bar strong{min-width:0;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
  .record-bar em{padding:4px 7px;font-size:11px;white-space:nowrap}.record-bar>span,.record-bar small{display:none!important}
  .crf-layout{display:block!important}
  .module-nav{position:sticky!important;top:58px!important;z-index:2;display:flex!important;align-items:stretch;gap:6px;max-height:none!important;margin-bottom:10px;padding:7px!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;background:#fff;scroll-snap-type:x proximity;scrollbar-width:none}
  .module-nav::-webkit-scrollbar{display:none}.module-nav>strong{display:flex;flex:0 0 auto;align-items:center;padding:7px 10px;font-size:12px;white-space:nowrap}
  .module-nav a{display:flex!important;flex:0 0 min(68vw,240px);min-width:0!important;min-height:48px;padding:8px 10px!important;border:1px solid var(--line)!important;border-radius:7px;scroll-snap-align:center}
  .module-nav a.active{border-color:#9bcabb!important;border-left:4px solid var(--brand)!important}.module-nav a b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .crf-content,.module-entry-form{gap:10px}.crf-section{padding:14px 12px!important}.crf-section>h2{font-size:19px}
  .section-tabs{display:flex;flex-wrap:nowrap;gap:6px;margin:0 -4px 8px;padding:4px;overflow-x:auto;scrollbar-width:none}.section-tabs::-webkit-scrollbar{display:none}.section-tabs a{flex:0 0 auto}
  .variable-list{width:100%;max-width:none}.variable-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;padding:12px 2px!important}
  .variable-row>label{font-size:15px}.variable-control{width:100%;min-width:0;min-height:44px}
  .variable-control>input:not([type=hidden]),.variable-control>textarea,.variable-control select{min-width:0!important;min-height:44px!important;font-size:16px!important}
  .variable-control .unit{font-size:13px}.variable-row small{grid-column:1!important}
  .choice-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}.choice-group label{min-width:0}.choice-group span,.choice-group label:not(:has(span)){justify-content:center;width:100%;min-height:44px;padding:7px!important;text-align:center}
  .multiselect-group{grid-template-columns:1fr 1fr}
  .change-reason{padding:10px}.change-reason input{font-size:16px}
  .sticky-save{position:fixed!important;right:0;bottom:0;left:0;z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;border-radius:12px 12px 0 0!important;background:#fffffff5;box-shadow:0 -5px 20px #173a3020}
  .sticky-save a{display:none}.sticky-save button{min-width:0!important;min-height:44px;padding:8px 6px;font-size:12px}.sticky-save button:last-child{grid-column:1/-1}
  .query-create-panel{grid-template-columns:1fr!important;gap:10px!important;margin-top:0;padding:14px 12px!important}.query-create-panel form{grid-template-columns:1fr!important}.query-create-panel select,.query-create-panel input,.query-create-panel button{min-height:44px;font-size:16px}
  .review-complete-note{align-items:flex-start;flex-direction:column}.card{padding:15px}
  .title,.compact-page-head{align-items:flex-start;flex-direction:column;gap:10px}.title h1,.compact-page-head h1{font-size:28px}.head-actions{width:100%;overflow-x:auto;flex-wrap:nowrap}
  .filter-bar{display:grid!important;grid-template-columns:1fr!important}.filter-bar>*{width:100%}
  .home-kpis{grid-template-columns:1fr 1fr}.cohort-dashboard-grid{grid-template-columns:1fr}.cohort-panel{padding:13px}
  .timeline-subject .subject-identity{gap:8px!important}.timeline-subject .subject-identity strong{flex-basis:auto!important}.timeline-subject .subject-identity b,.timeline-subject .subject-identity small{display:none!important}
  .timeline-detail .timeline-phase,.hospital-visits,.followup-visits{display:flex!important;gap:7px;padding:22px 7px 7px!important;overflow-x:auto!important;scroll-snap-type:x proximity}
  .timeline-card{flex:0 0 118px!important;scroll-snap-align:start}.discharge-visits{display:flex!important;gap:7px;overflow-x:auto}.discharge-visits .discharge-card{flex:0 0 290px!important;width:290px!important}
  .data-table{overflow-x:auto}.data-table table{min-width:720px;table-layout:auto}.bulk-review-bar{align-items:stretch;flex-direction:column}
}

/* Module catalogue: restrained information hierarchy.  Keep the identity dominant;
   the description and operational metadata are deliberately compact. */
.module-admin-card{
  grid-template-columns:minmax(270px,1.32fr) minmax(210px,.78fr) minmax(168px,.48fr)!important;
  column-gap:18px!important;
  row-gap:10px!important;
  padding:16px 20px!important;
  min-height:164px!important;
}
.module-admin-primary h2.bilingual-title>b{font-size:clamp(21px,1.28vw,25px)!important;line-height:1.08!important}
.module-admin-primary h2.bilingual-title>small{margin-top:4px!important;font-size:12px!important}
.module-admin-description{padding-right:4px!important}
.module-admin-description p>b{font-size:11px!important;line-height:1.3!important}
.module-admin-description p>small{font-size:10px!important;line-height:1.35!important}
.module-admin-card .module-admin-meta{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  padding-left:14px!important;
}
.module-meta-item{grid-template-columns:38px minmax(0,1fr)!important;gap:6px!important}
.module-meta-item>b{font-size:21px!important}
.module-meta-item:nth-child(2)>b{font-size:11px!important;line-height:1.12!important}
.module-meta-item strong{font-size:10px!important;line-height:1.1!important}
.module-meta-item small{font-size:9px!important;line-height:1.1!important}
.module-admin-card .module-admin-actions{min-height:39px!important;padding-top:8px!important}
.module-admin-actions a,.module-admin-actions button{min-height:35px!important;padding:4px 10px!important}
@media(max-width:1180px){
  .module-admin-card{grid-template-columns:minmax(230px,1.12fr) minmax(185px,.75fr) minmax(155px,.5fr)!important;column-gap:13px!important}
}
@media(max-width:900px){
  .module-admin-card{grid-template-columns:minmax(220px,1fr) minmax(170px,.72fr) minmax(150px,.5fr)!important}
}
@media(max-width:760px){
  .module-admin-card{grid-template-columns:minmax(0,1fr) 155px!important;grid-template-areas:"primary meta" "description description" "actions actions"!important}
  .module-admin-card .module-admin-meta{grid-template-columns:1fr!important;padding-left:11px!important}
}
@media(max-width:520px){
  .module-admin-card{grid-template-columns:1fr!important;grid-template-areas:"primary" "description" "meta" "actions"!important}
  .module-admin-card .module-admin-meta{grid-template-columns:1fr!important;padding:9px 0 0!important}
}

/* Do not repeat the same baseline state twice: retain the concise bilingual label. */
.module-meta-item:nth-child(2)>span>strong{display:none!important}
.module-meta-item:nth-child(2){padding-top:7px;border-top:1px solid #edf2f0}

/* International research-platform typography.
   English and all numerals lead with Inter; Chinese retains a highly legible
   sans-serif stack.  These are local/system fonts, so the visual upgrade adds
   no third-party font request to a clinical data-entry workflow. */
@font-face{
  font-family:"Inter";
  src:url("/static/fonts/InterVariable.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
:root{
  --font-en:"Inter","Helvetica Neue",Arial,sans-serif;
  --font-cn:"Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
}
html,body,button,input,select,textarea{font-family:var(--font-cn)!important}
h1,h2,h3,h4,h5,h6,.title,.compact-page-head{font-family:var(--font-cn)!important}

/* Identity, English labels and codes never fall back to the old editorial serif. */
.site-header .brand-mark,.brand-copy small,.primary-nav a small,
.showcase-kicker,.showcase-hero h1,.showcase-tagline-en,
.showcase-kpis b,.showcase-kpis small,.governance-feature strong,
.governance-feature .feature-en,.account-link span,.site-header .link span,
.variable-export-list code,.fixed-index-note code,code,.metric-number,
.panel-head h2 small,.recent-panel h2 small{
  font-family:var(--font-en)!important;
}

/* Numerals have a consistent, data-oriented rhythm throughout the platform. */
.showcase-kpis b,.metric-number,.home-kpis b,.outcome-grid b,.import-metrics b,
.dashboard-metric b,.summary-number,.stat-number{
  font-family:var(--font-en)!important;
  font-weight:650!important;
  letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums;
}
.showcase-hero h1{
  font-weight:650!important;
  letter-spacing:-.045em!important;
  line-height:.98!important;
}
.showcase-tagline-en,.showcase-kpis small,.governance-feature strong,
.brand-copy small,.account-link span,.site-header .link span{
  font-weight:500!important;
  letter-spacing:0!important;
}

/* International-first navigation: English is the primary label, Chinese is the
   precise local-language reference directly below it. */
@media(min-width:761px){
  .site-header .primary-nav a{gap:2px!important;min-width:76px!important}
  .site-header .primary-nav a small{
    display:block!important;
    order:0;
    color:#164c49!important;
    font-family:var(--font-en)!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.12!important;
  }
  .site-header .primary-nav a b{
    order:1;
    color:#6b827d!important;
    font-family:var(--font-cn)!important;
    font-size:10px!important;
    font-weight:500!important;
    line-height:1.12!important;
  }
  .site-header .primary-nav a.active small{color:#007b6c!important}
  .site-header .primary-nav a.active b{color:#245d57!important}
}
.site-header .brand-mark{font-family:var(--font-en)!important;font-weight:700!important;letter-spacing:.015em!important}
.showcase-cn-label,.showcase-tagline,.showcase-kpis strong,.governance-feature b{font-family:var(--font-cn)!important}

@media(max-width:760px){
  .site-header .primary-nav a small{font-family:var(--font-en)!important}
  .showcase-hero h1{font-size:clamp(36px,10.5vw,50px)!important;white-space:normal!important}
}

/* English-first bilingual content pattern used by every working page. */
.bilingual-title,.bilingual-label,.bilingual-copy,.bilingual-action{display:inline-grid;gap:2px;vertical-align:middle}
.bilingual-title>b,.bilingual-label>b,.bilingual-copy>b,.bilingual-action>b{order:0;color:#163f3c;font-family:var(--font-en)!important;font-weight:650;line-height:1.15}
.bilingual-title>small,.bilingual-label>small,.bilingual-copy>small,.bilingual-action>small{order:1;color:#718780;font-family:var(--font-cn)!important;font-size:.78em;font-weight:500;line-height:1.2}
.bilingual-title>b{font-size:clamp(28px,2.2vw,40px);letter-spacing:-.035em}
.compact-page-head h1,.title h1{margin:0!important}
.compact-page-head .eyebrow,.title .eyebrow{font-family:var(--font-en)!important}
.data-table th .bilingual-label>b{font-size:11px;color:#28534d}.data-table th .bilingual-label>small{font-size:9px}
.module-admin-card h2 .bilingual-title>b{font-size:20px}.module-admin-card h2 .bilingual-title>small{font-size:12px}
.auto-en,.field-label-en{display:block;color:#153f3b;font-family:var(--font-en)!important;font-weight:650;line-height:1.15}
.auto-cn,.field-label-cn{display:block;margin-top:2px;color:#718780;font-family:var(--font-cn)!important;font-size:.78em;font-weight:500;line-height:1.2}
.data-table th .auto-en{font-size:11px}.data-table th .auto-cn{font-size:9px}.field-label-en{font-size:14px}.field-label-cn{font-size:11px}

/* Dense, calm module catalogue: content hierarchy instead of oversized type. */
.module-admin-grid{gap:14px!important}
.module-admin-card{grid-template-columns:minmax(0,1fr) 124px!important;gap:10px 18px!important;min-height:196px;padding:18px 20px!important}
.module-admin-card>div:first-child{min-width:0}.module-admin-card>div:first-child>small{display:block;color:#70837d;font-family:var(--font-en)!important;font-size:11px;line-height:1.25}
.module-admin-card h2.bilingual-title{display:grid!important;margin:8px 0 7px!important;gap:3px!important}
.module-admin-card h2.bilingual-title>b{font-size:clamp(21px,1.65vw,28px)!important;line-height:1.05!important;letter-spacing:-.04em!important;overflow-wrap:anywhere}
.module-admin-card h2.bilingual-title>small{font-size:13px!important;line-height:1.25!important}
.module-admin-card p{display:grid;gap:3px;max-width:680px;font-size:11px!important;line-height:1.35!important}
.module-admin-card p>b{color:#526d66;font-family:var(--font-en)!important;font-size:11px;font-weight:550}
.module-admin-card p>small{color:#7b8f89;font-family:var(--font-cn)!important;font-size:10px;line-height:1.35}
.module-admin-meta{display:grid!important;align-content:start;justify-items:end;gap:2px;min-width:124px!important;padding-top:8px;text-align:right!important}
.module-admin-meta>b{font-family:var(--font-en)!important;font-size:27px!important;font-weight:680!important;line-height:1!important;letter-spacing:-.04em!important}
.module-admin-meta span,.module-admin-meta em{display:grid!important;gap:1px;margin:0!important;padding:0!important;background:transparent!important;color:#70827d!important;font-style:normal!important}
.module-admin-meta span>b,.module-admin-meta em>b{color:#345a53;font-family:var(--font-en)!important;font-size:10px;font-weight:600;line-height:1.2}
.module-admin-meta span>small,.module-admin-meta em>small{color:#82928d;font-family:var(--font-cn)!important;font-size:9px;line-height:1.2}
.module-admin-meta em{margin-top:14px!important;padding-top:9px!important;border-top:1px solid #e2ece8!important}.module-admin-meta em.repeat{background:transparent!important;color:inherit!important}
.module-admin-actions{align-items:stretch!important;gap:7px!important;padding-top:11px!important}
.module-admin-actions a,.module-admin-actions button{display:inline-grid!important;place-content:center start;min-height:43px;padding:7px 11px!important;border-radius:7px!important;font-size:inherit!important}
.module-admin-actions .bilingual-action{gap:1px}.module-admin-actions .bilingual-action>b{font-size:11px!important}.module-admin-actions .bilingual-action>small{font-size:9px!important}
.module-admin-actions form{display:flex;margin-left:auto!important}.module-admin-actions form button{height:100%}
.compact-page-head .bilingual-title>b{font-size:clamp(30px,2.25vw,38px)!important}.compact-page-head .bilingual-title>small{font-size:15px!important}
.compact-page-head p>b{display:block;color:#536f68;font-family:var(--font-en)!important;font-size:13px;font-weight:520;line-height:1.38}.compact-page-head p>small{display:block;margin-top:2px;color:#788d87;font-family:var(--font-cn)!important;font-size:11px;line-height:1.35}
.compact-page-head p>.auto-en,.title p>.auto-en{display:block;color:#536f68;font-family:var(--font-en)!important;font-size:13px;font-weight:520;line-height:1.38}.compact-page-head p>.auto-cn,.title p>.auto-cn{display:block;margin-top:2px;color:#788d87;font-family:var(--font-cn)!important;font-size:11px;line-height:1.35}
@media(max-width:900px){.module-admin-card{grid-template-columns:minmax(0,1fr) 96px!important;min-height:0}.module-admin-meta{min-width:96px!important}.module-admin-card h2.bilingual-title>b{font-size:22px!important}}
@media(max-width:600px){.module-admin-card{grid-template-columns:1fr!important;padding:15px!important}.module-admin-meta{grid-template-columns:auto auto;justify-content:start;justify-items:start;min-width:0!important;padding-top:0;text-align:left!important}.module-admin-meta em{margin-top:0!important;margin-left:12px!important;border-top:0!important;border-left:1px solid #e2ece8!important;padding:0 0 0 12px!important}.module-admin-actions{flex-wrap:wrap}.module-admin-actions form{margin-left:0!important}.module-admin-card h2.bilingual-title>b{font-size:22px!important}.compact-page-head .bilingual-title>b{font-size:27px!important}}

/* Final visual calibration: quieter palette and one consistent control scale. */
:root{--brand:#167f70;--brand-deep:#126b60;--brand-soft:#edf8f5;--ink:#173f3b;--muted:#6f8780}
.button,button,.primary-button{background:var(--brand)!important;border-color:var(--brand)!important;box-shadow:none!important}.button:hover,button:hover,.primary-button:hover{background:var(--brand-deep)!important;filter:none!important;transform:none!important}
.button.secondary,.button-light,.head-actions>a:not(.primary-button),.title-actions>a.button.secondary{background:#fff!important;border-color:#bcd8d1!important;color:#276d63!important}
.head-actions,.title-actions{gap:8px!important}.head-actions>a,.title-actions>a{min-height:48px!important;padding:8px 12px!important;border-radius:8px!important}.head-actions .bilingual-action>b,.title-actions .bilingual-action>b{font-size:12px!important}.head-actions .bilingual-action>small,.title-actions .bilingual-action>small{font-size:9px!important}
.module-admin-legend{gap:7px!important;margin:2px 0 12px!important}.module-admin-legend span{display:inline-grid!important;gap:1px;min-height:34px;padding:5px 10px!important;background:#f2f7f5!important;color:#477069!important}.module-admin-legend span.repeat{background:#e9f6f2!important;color:#266f63!important}.module-admin-legend .bilingual-label>b{font-size:10px!important}.module-admin-legend .bilingual-label>small{font-size:9px!important}
.workflow-metrics{gap:14px!important}.workflow-metrics>div{min-height:132px!important;padding:22px 26px!important}.workflow-metrics>div>b{font-size:39px!important;line-height:.95!important}.workflow-metrics .bilingual-label{margin-top:5px!important;gap:2px!important}.workflow-metrics .bilingual-label>b{font-size:18px!important;line-height:1.1!important;letter-spacing:-.025em}.workflow-metrics .bilingual-label>small{font-size:11px!important}
.table th .bilingual-label,.data-table th .bilingual-label{gap:2px!important}.table th .bilingual-label>b,.data-table th .bilingual-label>b{font-size:11px!important}.table th .bilingual-label>small,.data-table th .bilingual-label>small{font-size:9px!important}
.visit-legend{gap:13px!important}.visit-legend .bilingual-label{grid-template-columns:9px auto;column-gap:6px;align-items:center}.visit-legend i{grid-row:1/3}.visit-legend .bilingual-label>b{font-size:11px!important}.visit-legend .bilingual-label>small{font-size:9px!important}
.patient-list-meta .bilingual-label>b{font-size:11px!important}.patient-list-meta .bilingual-label>small{font-size:9px!important}
.timeline-card small{display:grid!important;gap:1px}.timeline-card small>b{font-family:var(--font-en)!important;font-size:8px;font-weight:650;line-height:1}.timeline-card small>span{font-family:var(--font-cn)!important;font-size:8px;line-height:1}.timeline-phase::before{font-family:var(--font-en)!important;font-size:10px!important;font-weight:650!important;letter-spacing:.04em!important}.subject-summary-meta .bilingual-label{gap:1px!important}.subject-summary-meta .bilingual-label>b{font-size:10px!important}.subject-summary-meta .bilingual-label>small{font-size:8px!important}.subject-summary-meta i .bilingual-action>b{font-size:10px!important}.subject-summary-meta i .bilingual-action>small{font-size:8px!important}
.bulk-review-bar{align-items:center!important}.bulk-review-bar .bilingual-label>b,.bulk-review-bar .bilingual-action>b{font-size:11px!important}.bulk-review-bar .bilingual-label>small,.bulk-review-bar .bilingual-action>small{font-size:9px!important}.bulk-review-bar>small{display:grid;gap:2px;margin-left:auto}.bulk-review-bar>small>b{font-family:var(--font-en)!important;font-size:10px}.bulk-review-bar>small>span{font-family:var(--font-cn)!important;font-size:9px}
@media(max-width:760px){.workflow-metrics>div{min-height:104px!important;padding:16px!important}.workflow-metrics>div>b{font-size:30px!important}.workflow-metrics .bilingual-label>b{font-size:14px!important}.head-actions>a,.title-actions>a{min-height:42px!important;padding:6px 9px!important}}

/* Soft-action palette: no solid dark-green blocks in ordinary work screens. */
.button,button,.primary-button,.module-admin-actions a:nth-child(2),.module-admin-actions button,
.bulk-review-bar button,.filter-bar button,.sticky-save button,.import-upload button{
  background:#dff1eb!important;
  border:1px solid #b9ded3!important;
  color:#175f54!important;
  box-shadow:none!important;
}
.button:hover,button:hover,.primary-button:hover,.module-admin-actions a:nth-child(2):hover,
.module-admin-actions button:hover,.bulk-review-bar button:hover,.filter-bar button:hover,.sticky-save button:hover{
  background:#cbe9df!important;
  border-color:#9bcdbf!important;
  color:#104c43!important;
}
.button .bilingual-action>b,button .bilingual-action>b,.primary-button .bilingual-action>b{color:#175f54!important}
.button .bilingual-action>small,button .bilingual-action>small,.primary-button .bilingual-action>small{color:#527c73!important}

/* One compact scale for filters and bulk operations. */
.filter-bar{align-items:center!important;padding:8px 10px!important}.filter-bar input,.filter-bar select{min-height:40px!important;font-size:13px!important}
.filter-bar button{flex:0 0 146px!important;min-height:40px!important;padding:6px 13px!important;font-size:12px!important}
.filter-bar button .bilingual-action{gap:1px!important}.filter-bar button .bilingual-action>b{font-size:12px!important;line-height:1.08!important}.filter-bar button .bilingual-action>small{font-size:9px!important;line-height:1.05!important}
.bulk-review-bar{gap:10px!important;min-height:62px!important;padding:10px 14px!important}.bulk-review-bar button{min-height:40px!important;padding:6px 13px!important}.bulk-review-bar .bilingual-action>b{font-size:12px!important}.bulk-review-bar .bilingual-action>small{font-size:9px!important}

/* Module cards use a stable three-zone layout; nothing may intrude into the metadata. */
.module-admin-card{display:grid!important;grid-template-columns:minmax(0,1fr) 122px!important;grid-template-areas:"content meta" "actions actions"!important;align-items:start!important;gap:14px 20px!important;min-height:0!important}
.module-admin-card>div:first-child{display:block!important;grid-area:content!important;min-width:0!important;padding-right:0!important}
.module-admin-card .module-admin-meta{grid-area:meta!important;align-self:stretch!important;min-width:0!important;padding:4px 0 0 16px!important;border-left:1px solid #e0ebe7!important}
.module-admin-card .module-admin-actions{grid-area:actions!important;display:flex!important;align-items:center!important;min-height:50px!important;margin:0!important;padding:11px 0 0!important;border-top:1px solid #e0ebe7!important}
.module-admin-card h2.bilingual-title{max-width:100%!important;margin:7px 0 5px!important}.module-admin-card h2.bilingual-title>b{font-size:clamp(20px,1.45vw,25px)!important;white-space:normal!important}
.module-admin-card p{display:block!important;max-width:680px!important;margin-top:0!important}.module-admin-card p>b,.module-admin-card p>small{display:block!important}.module-admin-card p>b{font-size:11px!important}.module-admin-card p>small{margin-top:3px!important;font-size:10px!important}
.module-admin-actions a,.module-admin-actions button{min-height:40px!important;padding:6px 11px!important;background:#f4faf8!important;border-color:#cfe1db!important;color:#225f55!important}
.module-admin-actions a:nth-child(2){background:#dff1eb!important;border-color:#b9ded3!important}.module-admin-actions button.danger{background:#f8fbfa!important;border-color:#d6e6e0!important;color:#6d807a!important}.module-admin-actions button.danger:hover{background:#edf6f2!important;color:#315e55!important}
.module-admin-actions .bilingual-action>b{font-size:11px!important}.module-admin-actions .bilingual-action>small{font-size:9px!important}
@media(max-width:760px){.filter-bar{flex-wrap:wrap!important}.filter-bar input,.filter-bar select{flex:1 1 190px!important}.filter-bar button{flex:1 1 120px!important}.bulk-review-bar{align-items:flex-start!important;flex-wrap:wrap!important}.bulk-review-bar>small{width:100%;margin-left:0!important}.module-admin-card{grid-template-columns:minmax(0,1fr) 92px!important;gap:10px 12px!important}.module-admin-card .module-admin-meta{padding-left:10px!important}.module-admin-card .module-admin-actions{flex-wrap:wrap!important}.module-admin-card h2.bilingual-title>b{font-size:21px!important}}
@media(max-width:560px){.module-admin-card{grid-template-columns:1fr!important;grid-template-areas:"content" "meta" "actions"!important}.module-admin-card .module-admin-meta{display:flex!important;align-items:center!important;justify-items:initial!important;gap:14px!important;padding:8px 0 0!important;border-left:0!important;border-top:1px solid #e0ebe7!important}.module-admin-card .module-admin-meta em{margin:0!important;padding:0 0 0 14px!important;border-top:0!important;border-left:1px solid #e0ebe7!important}}

/* Module catalogue: fixed compact three-part header (identity / description / metadata). */
.module-admin-card{grid-template-columns:minmax(235px,1.05fr) minmax(250px,1.4fr) minmax(230px,.9fr)!important;grid-template-areas:"primary description meta" "actions actions actions"!important;gap:10px 22px!important;padding:17px 20px!important}
.module-admin-primary{grid-area:primary!important;display:block!important;min-width:0!important}.module-admin-description{grid-area:description!important;display:flex!important;align-items:center!important;min-width:0!important}.module-admin-primary>small{display:block!important;margin-bottom:7px!important}.module-admin-primary h2{margin:0!important}.module-admin-primary h2.bilingual-title>b{font-size:clamp(20px,1.35vw,24px)!important}.module-admin-primary h2.bilingual-title>small{font-size:12px!important}
.module-admin-description p{width:100%;margin:0!important}.module-admin-description p>b{font-size:12px!important;line-height:1.25!important}.module-admin-description p>small{font-size:11px!important;line-height:1.35!important}
.module-admin-card .module-admin-meta{grid-area:meta!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;align-self:center!important;padding:0 0 0 18px!important;border-left:1px solid #dce9e4!important}
.module-meta-item{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:7px!important;min-width:0!important}.module-meta-item>b{display:block!important;color:#164e47!important;font-family:var(--font-en)!important;font-size:23px!important;font-weight:680!important;line-height:.98!important;letter-spacing:-.04em!important;white-space:nowrap}.module-meta-item:nth-child(2)>b{font-size:11px!important;letter-spacing:-.015em!important;white-space:normal!important;line-height:1.1!important}.module-meta-item>span{display:grid!important;gap:1px!important;min-width:0!important}.module-meta-item strong{color:#315f57!important;font-family:var(--font-en)!important;font-size:10px!important;font-weight:650!important;line-height:1.12!important}.module-meta-item small{color:#81918d!important;font-family:var(--font-cn)!important;font-size:9px!important;line-height:1.12!important}
.module-admin-card .module-admin-actions{grid-area:actions!important;min-height:44px!important;padding-top:9px!important}.module-admin-actions a,.module-admin-actions button{min-height:37px!important;padding:5px 10px!important}
@media(max-width:1050px){.module-admin-card{grid-template-columns:minmax(210px,1fr) minmax(190px,1fr) minmax(190px,.8fr)!important;gap:9px 14px!important}.module-admin-card .module-admin-meta{padding-left:12px!important}.module-meta-item{gap:5px!important}.module-meta-item>b{font-size:21px!important}.module-meta-item:nth-child(2)>b{font-size:10px!important}}
@media(max-width:760px){.module-admin-card{grid-template-columns:minmax(0,1fr) 180px!important;grid-template-areas:"primary meta" "description description" "actions actions"!important}.module-admin-card .module-admin-meta{grid-template-columns:1fr 1fr!important}.module-admin-description{min-height:0!important}.module-admin-description p{padding-top:2px!important}}
@media(max-width:520px){.module-admin-card{grid-template-columns:1fr!important;grid-template-areas:"primary" "description" "meta" "actions"!important}.module-admin-card .module-admin-meta{padding:9px 0 0!important;border-left:0!important;border-top:1px solid #dce9e4!important}.module-meta-item{grid-template-columns:auto 1fr!important}.module-meta-item:nth-child(2)>b{font-size:12px!important}.module-admin-primary h2.bilingual-title>b{font-size:22px!important}}

/* Layout repair: override legacy first-child grid area that conflicted with the three-column card. */
.module-admin-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:14px!important}
.module-admin-card{height:auto!important;min-height:188px!important;grid-auto-rows:auto!important;overflow:hidden!important}
.module-admin-card>.module-admin-primary{grid-area:primary!important;display:block!important;align-self:center!important}
.module-admin-card>.module-admin-description{grid-area:description!important;display:flex!important;align-self:center!important}
.module-admin-card>.module-admin-meta{grid-area:meta!important;display:grid!important;align-self:center!important}
.module-admin-card>.module-admin-actions{grid-area:actions!important;display:flex!important}
@media(max-width:900px){.module-admin-grid{grid-template-columns:1fr!important}.module-admin-card{min-height:0!important}}

/* The historical :first-child rule has higher specificity; explicitly neutralize it. */
.module-admin-card>div.module-admin-primary:first-child{grid-area:primary!important;display:block!important;align-self:center!important}
.module-admin-card>div.module-admin-description{grid-area:description!important;display:flex!important;align-self:center!important}
.module-admin-card>div.module-admin-meta{grid-area:meta!important;display:grid!important;align-self:center!important}
.module-admin-card>div.module-admin-actions{grid-area:actions!important;display:flex!important}
.module-admin-card{grid-template-columns:minmax(235px,1.05fr) minmax(250px,1.4fr) minmax(230px,.9fr)!important;grid-template-rows:auto auto!important;grid-auto-columns:auto!important;grid-auto-flow:row!important}
.variable-row label>span:first-child{font-family:var(--font-en)!important;font-weight:600}
.variable-row label>.variable-english{display:none!important}
.variable-row label>span:first-child::after{content:attr(data-cn);display:block;margin-top:3px;color:#738780;font-family:var(--font-cn)!important;font-size:11px;font-weight:500;line-height:1.25}
@media(max-width:760px){
  .bilingual-title>b{font-size:27px}.bilingual-title>small{font-size:13px}
  .bilingual-action>b{font-size:12px}.bilingual-action>small{font-size:9px}
  .variable-row label>span:first-child::after{font-size:10px}
}

/* International collaboration shell and cohort showcase. */
.site-header{position:sticky;top:0;z-index:20;padding:0!important;border-bottom:1px solid #dce8e4!important;background:rgba(255,255,255,.95)!important;backdrop-filter:blur(16px)}
.site-header-inner{display:flex;align-items:center;gap:28px;width:min(1440px,calc(100% - 52px));min-height:82px;margin:auto}.brand-lockup{display:flex!important;align-items:center;gap:12px;color:#0c2d30!important;text-decoration:none}.brand-mark{display:grid!important;width:48px;height:48px;place-items:center;padding:0!important;border-radius:10px;background:#006b5c!important;color:#fff!important;font-family:Georgia,serif;font-size:17px!important;letter-spacing:.06em}.brand-copy{display:grid!important;gap:3px}.brand-copy strong{font-size:16px;letter-spacing:.02em}.brand-copy small{color:#66807b;font-family:Georgia,serif;font-size:8px;letter-spacing:.13em}.primary-nav{display:flex!important;align-items:stretch;gap:3px;margin-left:auto}.primary-nav a{display:grid!important;gap:2px;min-width:65px;padding:12px 7px 10px;border-radius:0!important;background:transparent!important;color:#123c3d!important;text-align:center}.primary-nav a:hover{background:#f1f8f6!important;color:#007b68!important}.primary-nav a b{font-size:13px}.primary-nav a small{color:#6d8580;font-family:Georgia,serif;font-size:8px;letter-spacing:.035em}.header-account{display:flex;align-items:center;gap:11px;white-space:nowrap}.language-label{display:flex;align-items:center;gap:7px;color:#305552;font-size:11px}.language-label i{height:15px;border-left:1px solid #b9cfca}.header-account .account-link,.header-account .link{display:grid!important;gap:1px;min-height:auto;padding:8px 10px!important;border:1px solid #d7e6e1;border-radius:18px;background:#f8fbfa!important;color:#057661!important;font-size:12px;text-align:center}.header-account .link{border:0;background:transparent!important}.header-account span span{font-family:Georgia,serif;font-size:8px;color:#6e8681}.header-account form{margin:0!important}
.showcase-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);min-height:425px;margin:-26px calc((min(1440px,calc(100vw - 52px)) - 100vw)/2) 0;overflow:hidden;background:linear-gradient(112deg,#f8fbfa 0%,#eff8f7 46%,#d9eeec 100%)}.showcase-hero:before{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(255,255,255,.2));content:""}.showcase-copy,.showcase-art{position:relative}.showcase-copy{z-index:1;align-self:center;max-width:700px;margin-left:max(26px,calc((100vw - min(1440px,calc(100vw - 52px)))/2));padding:56px 36px}.showcase-kicker{margin:0;color:#087768;font-size:10px;font-weight:800;letter-spacing:.24em}.showcase-cn-label{margin:18px 0 3px;color:#1a3f42;font-size:19px;font-weight:700}.showcase-hero h1{margin:0;color:#05383b;font-family:Georgia,"Times New Roman",serif;font-size:66px;line-height:.92;letter-spacing:-.045em}.showcase-tagline{margin:22px 0 2px;color:#163d40;font-size:19px;font-weight:600}.showcase-tagline-en{max-width:550px;margin:0;color:#54706f;font-family:Georgia,serif;font-size:14px;line-height:1.55}.showcase-actions{display:flex;gap:12px;margin-top:28px}.showcase-actions a{display:flex;align-items:center;gap:9px;min-height:43px;padding:0 17px;border-radius:7px;text-decoration:none;font-weight:700}.showcase-actions span{font-family:Georgia,serif;font-size:11px;font-weight:400}.showcase-primary{background:#006d60;color:#fff}.showcase-primary b{margin-left:6px;font-size:21px;font-weight:400}.showcase-secondary{border:1px solid #b7d4ce;color:#14564e;background:#ffffffa8}.showcase-art{overflow:hidden}.hero-monogram{position:absolute;top:-35px;right:-5px;color:#fff9;font-family:Georgia,serif;font-size:228px;font-weight:700;letter-spacing:-.12em}.hero-orbit{position:absolute;border:1px solid #89c3bd66;border-radius:50%}.orbit-one{width:400px;height:400px;right:24px;bottom:-210px}.orbit-two{width:290px;height:290px;right:95px;bottom:-135px}.hero-data-card{position:absolute;right:11%;bottom:68px;display:grid;gap:8px;max-width:250px;padding:18px 20px;border:1px solid #ffffffb5;border-radius:8px;background:#0e5e589e;color:#fff;box-shadow:0 15px 40px #0a4a472b;backdrop-filter:blur(10px)}.hero-data-card small{font-size:9px;letter-spacing:.15em}.hero-data-card b{font-family:Georgia,serif;font-size:17px;line-height:1.2}.hero-data-card span{font-size:10px;opacity:.85}.showcase-art>p{position:absolute;right:9%;bottom:27px;margin:0;color:#18766d;font-family:Georgia,serif;font-size:9px;line-height:1.65;letter-spacing:.23em;text-align:right}
.showcase-kpis{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,1fr);width:min(1370px,calc(100% - 52px));margin:-34px auto 32px;overflow:hidden;border:1px solid #e1ece8;border-radius:13px;background:#fffffff2;box-shadow:0 12px 35px #153e3514}.showcase-kpis a{display:flex;align-items:center;gap:12px;min-height:105px;padding:18px 19px;border-right:1px solid #e1ece8;color:#193e3b;text-decoration:none}.showcase-kpis a:last-child{border:0}.showcase-kpis a:hover{background:#f4faf8}.showcase-kpis i{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:50%;background:#e6f3ef;color:#057361;font-size:20px;font-style:normal}.showcase-kpis span{display:grid;gap:2px}.showcase-kpis b{font-family:Georgia,serif;font-size:27px;line-height:1}.showcase-kpis strong{font-size:12px}.showcase-kpis small{color:#71847f;font-family:Georgia,serif;font-size:10px}.governance-intro{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:0;width:min(1370px,calc(100% - 52px));margin:0 auto 43px}.governance-heading{padding:9px 25px 9px 0}.governance-heading h2,.operations-heading h2{margin:8px 0 3px;color:#113b3b;font-family:Georgia,"Times New Roman",serif;font-size:29px;letter-spacing:-.03em}.governance-heading>p:last-child,.operations-heading span{margin:0;color:#72837f;font-family:Georgia,serif;font-size:13px}.governance-feature{display:flex;gap:11px;padding:11px 19px;border-left:1px solid #dce8e4}.governance-feature i{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:50%;background:#e7f3f0;color:#006d60;font-size:19px;font-style:normal}.governance-feature div{display:grid;align-content:start;gap:2px}.governance-feature b{font-size:12px}.governance-feature strong{color:#41625e;font-family:Georgia,serif;font-size:10px;font-weight:400}.governance-feature p{margin:5px 0 0;color:#71847e;font-size:10px;line-height:1.55}.operations-heading{display:flex;align-items:end;justify-content:space-between;width:min(1370px,calc(100% - 52px));margin:0 auto 14px}.operations-heading .button small{display:block;font-family:Georgia,serif;font-size:9px;font-weight:400;opacity:.8}
body:has(.showcase-hero) main{width:100%;max-width:none;padding:26px 0 54px}body:has(.showcase-hero) .cohort-dashboard-grid,body:has(.showcase-hero) .recent-panel{width:min(1370px,calc(100% - 52px));margin-right:auto;margin-left:auto}body:has(.showcase-hero) .cohort-dashboard-grid{margin-bottom:15px}.panel-head h2 small,.recent-panel h2 small{color:#6f8580;font-family:Georgia,serif;font-size:11px;font-weight:400}body:has(.showcase-hero) footer{margin-top:0}
@media(max-width:1200px){.site-header-inner{gap:13px;width:calc(100% - 28px)}.brand-copy small,.primary-nav a small,.language-label{display:none}.primary-nav a{min-width:54px;padding-right:5px;padding-left:5px}.showcase-hero{grid-template-columns:1.15fr .85fr}.governance-intro{grid-template-columns:repeat(2,1fr);gap:15px}.governance-heading{grid-column:1/-1}.governance-feature{border-left:0;border-top:1px solid #dce8e4;padding:15px 0}.showcase-kpis{grid-template-columns:repeat(3,1fr)}.showcase-kpis a:nth-child(3){border-right:0}.showcase-kpis a:nth-child(n+4){border-top:1px solid #e1ece8}}
@media(max-width:760px){.site-header{position:relative!important}.site-header-inner{width:calc(100% - 18px);min-height:54px;gap:7px}.brand-mark{width:36px;height:36px;border-radius:8px;font-size:12px!important}.brand-copy strong{font-size:12px}.brand-copy small,.header-account,.primary-nav a small{display:none}.primary-nav{gap:2px;margin-left:auto;overflow-x:auto}.primary-nav a{display:flex!important;min-width:auto;padding:6px 7px!important;font-size:11px}.primary-nav a b{font-size:11px}.primary-nav a:nth-of-type(n+5){display:none!important}.showcase-hero{display:block;min-height:390px;margin:-10px 0 0}.showcase-copy{margin:0;padding:38px 23px}.showcase-cn-label{margin-top:13px;font-size:16px}.showcase-hero h1{font-size:48px}.showcase-tagline{margin-top:18px;font-size:16px}.showcase-tagline-en{font-size:12px}.showcase-actions{margin-top:22px}.showcase-actions a{min-height:39px;padding:0 11px;font-size:12px}.showcase-actions span{display:none}.showcase-art{position:absolute;right:0;bottom:0;width:58%;height:42%;opacity:.75}.hero-monogram{top:-20px;font-size:135px}.hero-data-card{right:8%;bottom:22px;padding:10px 12px}.hero-data-card b{font-size:12px}.hero-data-card span,.showcase-art>p{display:none}.showcase-kpis{grid-template-columns:1fr 1fr;width:calc(100% - 20px);margin:-20px auto 24px}.showcase-kpis a{min-height:76px;padding:10px;border-top:1px solid #e1ece8}.showcase-kpis a:first-child,.showcase-kpis a:nth-child(2){border-top:0}.showcase-kpis a:nth-child(2n){border-right:0}.showcase-kpis a:last-child{grid-column:1/-1}.showcase-kpis i{flex-basis:31px;width:31px;height:31px;font-size:15px}.showcase-kpis b{font-size:21px}.showcase-kpis strong{font-size:10px}.showcase-kpis small{font-size:9px}.governance-intro,.operations-heading,body:has(.showcase-hero) .cohort-dashboard-grid,body:has(.showcase-hero) .recent-panel{width:calc(100% - 20px)}.governance-intro{grid-template-columns:1fr;margin-bottom:27px}.governance-heading{padding:0}.governance-heading h2,.operations-heading h2{font-size:23px}.governance-feature{padding:10px 0}.governance-feature p{font-size:9px}.operations-heading{align-items:start}.operations-heading .button{padding:8px;font-size:10px}body:has(.showcase-hero) main{padding:10px 0 66px}}

/* Wide desktop refinement: use the full collaboration presentation canvas. */
@media(min-width:761px){
  .site-header-inner{width:min(1840px,calc(100% - 72px));min-height:88px}
  .brand-mark{width:54px;height:54px;font-size:19px!important}.brand-copy strong{font-size:18px}.brand-copy small{font-size:9px}
  .primary-nav{gap:7px}.primary-nav a{min-width:74px;padding:14px 9px 12px}.primary-nav a b{font-size:14px}.primary-nav a small{font-size:9px}
  .showcase-hero{grid-template-columns:1.02fr .98fr;min-height:510px;margin:-26px 0 0}
  .showcase-copy{margin-left:clamp(42px,7vw,185px);padding:72px 36px}.showcase-hero h1{font-size:78px}.showcase-cn-label{font-size:22px}.showcase-tagline{font-size:21px}.showcase-tagline-en{font-size:16px}
  .hero-monogram{font-size:275px}.hero-data-card{right:17%;bottom:78px;max-width:310px;padding:22px 25px}.hero-data-card b{font-size:21px}.showcase-art>p{right:15%;bottom:29px;font-size:11px}
  .showcase-kpis,.governance-intro,.operations-heading,body:has(.showcase-hero) .cohort-dashboard-grid,body:has(.showcase-hero) .recent-panel{width:min(1760px,calc(100% - 88px))}
  .showcase-kpis a{min-height:121px;padding:20px 25px}.showcase-kpis i{flex-basis:48px;width:48px;height:48px}.showcase-kpis b{font-size:32px}.showcase-kpis strong{font-size:14px}.showcase-kpis small{font-size:11px}
  .governance-intro{margin-bottom:52px}.governance-heading h2,.operations-heading h2{font-size:34px}.governance-feature{padding:14px 23px}.governance-feature b{font-size:14px}.governance-feature strong{font-size:11px}.governance-feature p{font-size:11px}
}

/* Unified workbench headers for participant, review and governance pages. */
main:not(:has(.showcase-hero))>.compact-page-head,main:not(:has(.showcase-hero))>.title{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;max-width:1760px;margin:0 auto 20px;padding:28px 32px;overflow:hidden;border:1px solid #dbe9e5;border-radius:14px;background:linear-gradient(116deg,#fff 0%,#f4faf8 62%,#e4f2ef 100%);box-shadow:0 8px 26px #19493c0b}main:not(:has(.showcase-hero))>.compact-page-head:after,main:not(:has(.showcase-hero))>.title:after{position:absolute;right:24px;top:-35px;color:#0a79670a;content:"RJH";font-family:Georgia,serif;font-size:150px;font-weight:700;line-height:1;letter-spacing:-.1em;pointer-events:none}main:not(:has(.showcase-hero))>.compact-page-head>*,main:not(:has(.showcase-hero))>.title>*{position:relative;z-index:1}main:not(:has(.showcase-hero))>.compact-page-head h1,main:not(:has(.showcase-hero))>.title h1{margin:5px 0 6px;color:#103d3c;font-family:Georgia,"Times New Roman",serif;font-size:34px;letter-spacing:-.035em}main:not(:has(.showcase-hero))>.compact-page-head p:not(.eyebrow),main:not(:has(.showcase-hero))>.title p:not(.eyebrow){max-width:760px;margin:0;color:#667d77;font-size:13px;line-height:1.6}main:not(:has(.showcase-hero))>.compact-page-head .eyebrow,main:not(:has(.showcase-hero))>.title .eyebrow{margin:0;color:#087967;font-size:10px;letter-spacing:.2em}main:not(:has(.showcase-hero))>.compact-page-head>.head-actions,main:not(:has(.showcase-hero))>.title>.title-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}main:not(:has(.showcase-hero))>.compact-page-head a:not(.button),main:not(:has(.showcase-hero))>.title a:not(.button){padding:9px 12px;border:1px solid #c5ddd6;border-radius:7px;background:#fff;color:#076e5c;font-size:12px;text-decoration:none}.participant-head{border-left:4px solid #087967!important}.participant-head:after{content:"COHORT"!important;font-size:106px!important}
main:not(:has(.showcase-hero))>.compact-page-head~.card,main:not(:has(.showcase-hero))>.title~.card,main:not(:has(.showcase-hero))>.compact-page-head~.data-table,main:not(:has(.showcase-hero))>.compact-page-head~.query-table{max-width:1760px;margin-right:auto;margin-left:auto}.filter-bar,.bulk-review-bar,.selection-toolbar{border-radius:10px!important;background:#f8fbfa!important}.data-table,.table{border:1px solid #dce9e5!important;border-radius:12px!important;box-shadow:0 5px 18px #173f3610}.data-table thead,.table thead{background:#edf6f3!important}.data-table th,.table th{color:#315b54!important;font-size:11px!important;letter-spacing:.04em}.data-table tr:hover td,.table tr:hover td{background:#f7fbf9}
@media(max-width:760px){main:not(:has(.showcase-hero))>.compact-page-head,main:not(:has(.showcase-hero))>.title{align-items:flex-start;margin-bottom:12px;padding:17px 16px;border-radius:10px}main:not(:has(.showcase-hero))>.compact-page-head:after,main:not(:has(.showcase-hero))>.title:after{right:8px;top:-12px;font-size:78px}main:not(:has(.showcase-hero))>.compact-page-head h1,main:not(:has(.showcase-hero))>.title h1{font-size:25px}main:not(:has(.showcase-hero))>.compact-page-head p:not(.eyebrow),main:not(:has(.showcase-hero))>.title p:not(.eyebrow){font-size:11px}main:not(:has(.showcase-hero))>.compact-page-head>.head-actions,main:not(:has(.showcase-hero))>.title>.title-actions{width:100%;justify-content:flex-start}}

/* Keep the global navigation stable at any desktop browser zoom. */
.site-header-inner{flex-wrap:nowrap!important}.primary-nav{flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap;scrollbar-width:none}.primary-nav::-webkit-scrollbar{display:none}.primary-nav a{flex:0 0 auto!important}.brand-lockup,.header-account{flex:0 0 auto!important}@media(max-width:1000px) and (min-width:761px){.site-header-inner{gap:9px;width:calc(100% - 24px)}.brand-copy strong{font-size:14px}.brand-mark{width:43px;height:43px}.primary-nav a{min-width:58px;padding-right:6px;padding-left:6px}.primary-nav a b{font-size:12px}.header-account{gap:4px}.header-account .account-link,.header-account .link{padding:6px 7px!important;font-size:11px}}

/* Participant directory: identifiers and actions only; hide empty legacy columns. */
.timeline-subject .subject-identity strong{flex:1 1 auto!important;max-width:none!important}.timeline-subject .subject-summary-meta{gap:12px!important}.cohort-timeline .timeline-header{display:none!important}

/* Final bilingual navigation and stable editorial hero. */
.site-header .primary-nav a,.site-header .primary-nav a:hover{background:transparent!important;border-radius:0!important}.site-header .primary-nav a b{padding:0!important;border-radius:0!important;background:transparent!important;color:#103d3c!important;letter-spacing:0!important}.site-header .primary-nav a:hover b{color:#007764!important}.site-header .primary-nav a:first-child{position:relative}.site-header .primary-nav a:first-child:after{position:absolute;right:24%;bottom:4px;left:24%;height:2px;background:#00806c;content:""}.site-header .primary-nav a small{display:block!important}.site-header .brand-mark{background:#006c5c!important;color:#fff!important}
.showcase-hero{grid-template-columns:minmax(520px,48%) 1fr!important;min-height:530px!important;margin:-26px 0 0!important;background:linear-gradient(90deg,rgba(249,253,252,.98) 0%,rgba(249,253,252,.94) 34%,rgba(249,253,252,.18) 67%,rgba(8,61,58,.16) 100%),url('/static/images/cohort-hero-hospital-v1.png') center/cover no-repeat!important}.showcase-hero:before{display:none!important}.showcase-copy{max-width:720px;margin-left:clamp(40px,7vw,165px)!important;padding:74px 25px!important}.showcase-kicker{color:#087c6a!important;font-family:Georgia,serif;font-size:12px!important;letter-spacing:.4em!important}.showcase-cn-label{font-size:25px!important}.showcase-hero h1{font-size:74px!important}.showcase-tagline{margin-top:28px!important;font-family:Georgia,"Songti SC",serif;font-size:26px!important}.showcase-tagline-en{max-width:520px;font-size:17px!important}.showcase-actions{margin-top:33px!important}.showcase-actions a{min-height:52px!important;padding:0 24px!important;font-size:15px!important}.showcase-art{display:none!important}.showcase-kpis{width:min(1760px,calc(100% - 88px))!important;margin-top:-46px!important}.governance-intro{width:min(1760px,calc(100% - 88px))!important;margin-bottom:38px!important}.governance-heading{display:none}.governance-intro{grid-template-columns:repeat(4,1fr)!important}.governance-feature{border-left:1px solid #dce8e4!important;border-top:0!important}.governance-feature:first-of-type{border-left:0!important}
.variable-row>label{display:grid;gap:3px}.variable-row>label>.variable-english,.data-field label>.variable-english,.field label>.variable-english{display:block!important;margin:0!important;color:#64817a!important;font-family:Georgia,serif;font-size:10px!important;font-weight:400;letter-spacing:.04em;line-height:1.25}.data-field label,.field label{display:grid;gap:3px}
@media(max-width:1050px){.site-header .primary-nav a small{display:none!important}.showcase-hero{grid-template-columns:minmax(430px,55%) 1fr!important}.showcase-copy{margin-left:5vw!important}.showcase-hero h1{font-size:57px!important}.showcase-tagline{font-size:21px!important}.showcase-kpis,.governance-intro{width:calc(100% - 44px)!important}.governance-feature{padding:12px!important}}
@media(max-width:760px){.site-header .primary-nav a:first-child:after{display:none}.showcase-hero{display:block!important;min-height:450px!important;background:linear-gradient(90deg,rgba(249,253,252,.98),rgba(249,253,252,.78)),url('/static/images/cohort-hero-hospital-v1.png') 64% center/cover no-repeat!important}.showcase-copy{margin:0!important;padding:42px 23px!important}.showcase-kicker{font-size:9px!important;letter-spacing:.22em!important}.showcase-cn-label{font-size:18px!important}.showcase-hero h1{font-size:48px!important}.showcase-tagline{font-size:19px!important}.showcase-tagline-en{font-size:12px!important}.showcase-actions a{min-height:42px!important;padding:0 13px!important}.showcase-kpis,.governance-intro{width:calc(100% - 20px)!important}.governance-intro{grid-template-columns:1fr 1fr!important}.governance-feature{border-left:0!important;border-top:1px solid #dce8e4!important}.governance-feature:nth-of-type(2){border-top:0!important}.variable-row>label>.variable-english,.data-field label>.variable-english,.field label>.variable-english{font-size:9px!important}}

/* Alignment system, active navigation and compact participant cards. */
:root{--content-gutter:clamp(18px,3.5vw,76px)}main:not(:has(.showcase-hero)){max-width:none!important;width:100%;padding-right:var(--content-gutter)!important;padding-left:var(--content-gutter)!important}main:not(:has(.showcase-hero))>.compact-page-head,main:not(:has(.showcase-hero))>.title,main:not(:has(.showcase-hero))>.compact-page-head~.card,main:not(:has(.showcase-hero))>.title~.card,main:not(:has(.showcase-hero))>.compact-page-head~.data-table,main:not(:has(.showcase-hero))>.compact-page-head~.query-table{max-width:none!important;margin-right:0!important;margin-left:0!important}.site-header .brand-mark{width:auto!important;height:auto!important;padding:0 14px 0 0!important;border-right:1px solid #c9ded8!important;border-radius:0!important;background:transparent!important;color:#073d3e!important;font-family:Georgia,serif;font-size:28px!important;letter-spacing:.04em}.site-header .brand-copy{gap:1px}.site-header .brand-copy strong{font-size:17px}.site-header .brand-copy small{font-size:9px;letter-spacing:.09em}.site-header .primary-nav a:first-child:after{display:none!important}.site-header .primary-nav a.active{position:relative}.site-header .primary-nav a.active:after{position:absolute;right:21%;bottom:4px;left:21%;height:2px;border-radius:2px;background:#00806c;content:""}.site-header .primary-nav a.active b{color:#007565!important}.site-header .header-account{margin-left:6px}.site-header .account-link{border:0!important;border-radius:0!important;background:transparent!important}.site-header .account-link:before{content:"◌";display:block;font-size:18px;line-height:.7}.site-header .link{padding-left:3px!important}.showcase-hero{grid-template-columns:minmax(0,1fr)!important;min-height:clamp(465px,39vw,580px)!important}.showcase-copy{width:min(780px,55%);margin-left:var(--content-gutter)!important;padding:clamp(42px,5vw,78px) 0!important}.showcase-hero h1{font-size:clamp(48px,4.1vw,76px)!important;line-height:1!important;white-space:nowrap}.showcase-cn-label{font-size:clamp(18px,1.45vw,25px)!important}.showcase-tagline{font-size:clamp(19px,1.55vw,27px)!important}.showcase-tagline-en{font-size:clamp(12px,1.05vw,17px)!important}.showcase-kpis,.governance-intro{width:calc(100% - (var(--content-gutter) * 2))!important}.cohort-timeline{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}.timeline-row,.timeline-row:not([open]){display:block!important;height:auto!important;min-width:0!important;overflow:visible!important;border:1px solid #dce8e4!important;border-radius:10px!important;background:#fff}.timeline-row[open]{grid-column:1/-1}.timeline-subject,.timeline-row:not([open]) .timeline-subject{display:flex!important;align-items:center!important;justify-content:space-between!important;height:64px!important;min-height:64px!important;padding:10px 13px!important}.timeline-subject .subject-identity{display:block!important;flex:1 1 auto!important}.timeline-subject .subject-identity strong{font-size:13px!important}.timeline-subject .subject-summary-meta{gap:7px!important}.timeline-subject .subject-summary-meta i{min-width:auto!important;font-size:10px!important}.timeline-row[open] .timeline-subject{border-bottom:1px solid #dce8e4!important;background:#f4faf8}.timeline-detail .timeline-phase{padding-right:8px!important}.pagination{margin:16px 0!important}.patient-list-meta{margin:9px 0!important}.visit-legend{margin:10px 0!important}
@media(max-width:760px){:root{--content-gutter:10px}main:not(:has(.showcase-hero)){padding-right:10px!important;padding-left:10px!important}.site-header .brand-mark{padding-right:8px!important;border-right:0!important;font-size:19px!important}.site-header .brand-copy small{display:none}.site-header .brand-copy strong{font-size:12px}.showcase-copy{width:auto;margin-left:0!important;padding:42px 23px!important}.showcase-hero h1{font-size:clamp(36px,11vw,48px)!important;white-space:normal}.cohort-timeline{grid-template-columns:1fr}.timeline-row[open]{grid-column:auto}}

/* Account actions share one bilingual format. */
.site-header .account-link:before{display:none!important}.site-header .account-link,.site-header .link{display:grid!important;place-items:center;gap:2px;min-width:58px;padding:7px 8px!important;color:#007565!important;font-size:12px!important;font-weight:700!important;line-height:1.08!important}.site-header .account-link span,.site-header .link span{display:block;color:#57736c!important;font-family:Georgia,serif;font-size:9px!important;font-weight:400!important;letter-spacing:.02em}.site-header .header-account{align-items:center!important;gap:6px!important}

/* Keep the collaboration landing page within one desktop viewport. */
body:has(.showcase-hero) main{padding-bottom:10px!important}body:has(.showcase-hero) footer{margin-top:0!important;padding:12px var(--content-gutter) 16px!important;font-size:11px!important}body:has(.showcase-hero) .showcase-hero{min-height:clamp(420px,31vw,505px)!important}body:has(.showcase-hero) .showcase-copy{padding-top:clamp(36px,3.8vw,60px)!important;padding-bottom:clamp(32px,3.2vw,50px)!important}body:has(.showcase-hero) .showcase-kpis{margin-top:-34px!important;margin-bottom:22px!important}body:has(.showcase-hero) .showcase-kpis a{min-height:102px!important;padding-top:14px!important;padding-bottom:14px!important}body:has(.showcase-hero) .governance-intro{margin-bottom:8px!important}body:has(.showcase-hero) .governance-feature{padding-top:8px!important;padding-bottom:8px!important}body:has(.showcase-hero) .governance-feature p{margin-top:3px!important;line-height:1.35!important}@media(max-width:760px){body:has(.showcase-hero) .showcase-hero{min-height:450px!important}body:has(.showcase-hero) footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}}

/* Cohort resource narrative and paginated participant directory. */
.home-update{display:block;margin-top:9px;color:#71857e;font-size:11px;letter-spacing:.02em}
.resource-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.9fr);gap:34px;align-items:center;margin:0 0 14px;padding:22px 24px;border-radius:12px;background:linear-gradient(135deg,#fff 0%,#fbfdfc 100%)}
.resource-intro h2{margin:4px 0 8px;font-size:20px}.resource-intro p:last-child{max-width:900px;margin:0;color:#596f67;font-size:12px;line-height:1.85}
.quality-tags{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quality-tags span{display:flex;align-items:center;gap:9px;min-height:43px;padding:9px 11px;border:1px solid #dce9e4;border-radius:9px;background:#f3f9f6;color:#284b40;font-size:11px;font-weight:700}.quality-tags span:last-child{grid-column:1/-1}.quality-tags b{display:grid;flex:0 0 25px;width:25px;height:25px;place-items:center;border-radius:50%;background:#dcefe7;color:#08775d;font-size:9px}
.patient-list-meta{display:flex;justify-content:space-between;align-items:center;margin:8px 2px;color:var(--muted);font-size:11px}.patient-list-meta strong{color:var(--brand);font-size:13px}
.pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin:16px 0 4px}.pagination a,.pagination span{min-width:70px;padding:8px 11px;border:1px solid #d6e4df;border-radius:7px;background:#fff;color:var(--brand);text-align:center;font-size:11px}.pagination a:hover{border-color:#91c4b3;background:#edf7f3}.pagination .page-current{min-width:112px;background:#08775d;color:#fff;font-weight:700}.pagination .disabled{color:#aab7b2;background:#f5f7f6}
@media(max-width:900px){.resource-intro{grid-template-columns:1fr;gap:16px}.quality-tags{grid-template-columns:repeat(3,1fr)}.quality-tags span:last-child{grid-column:auto}}
@media(max-width:620px){.resource-intro{padding:15px}.resource-intro h2{font-size:18px}.resource-intro p:last-child{font-size:11px;line-height:1.7}.quality-tags{display:flex;gap:6px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.quality-tags::-webkit-scrollbar{display:none}.quality-tags span,.quality-tags span:last-child{flex:0 0 auto;min-height:36px;padding:7px 9px}.patient-list-meta{margin:6px 1px}.pagination{gap:4px}.pagination a,.pagination span{min-width:0;padding:7px 8px;font-size:10px}.pagination a:first-child,.pagination a:last-child,.pagination .disabled:first-child,.pagination .disabled:last-child{display:none}.pagination .page-current{min-width:96px}}

/* The same compact footer rhythm applies to every internal workbench page. */
main:not(:has(.showcase-hero)){padding-bottom:12px!important}footer{margin-top:0!important;padding:12px var(--content-gutter) 16px!important;font-size:11px!important;line-height:1.35!important}

/* Variable-level custom export. */
.fixed-index-note{display:flex;align-items:center;gap:9px;margin-top:18px;padding:12px 14px;border-left:4px solid var(--brand);border-radius:7px;background:#eef7f3}.fixed-index-note code{padding:5px 8px;border-radius:5px;background:#fff;color:var(--brand);font-weight:700}.fixed-index-note span{color:var(--muted);font-size:11px}
.selection-toolbar{display:flex;align-items:center;gap:7px;margin-bottom:12px}.selection-toolbar button,.variable-export-list section>div:first-child button{padding:5px 9px;border:1px solid #bdd6cd;border-radius:6px;background:#fff;color:var(--brand);font-size:10px}.selection-toolbar small{margin-left:auto;color:var(--muted)}
.variable-export-list{display:grid;gap:10px;max-height:560px;overflow:auto}.variable-export-list section{border:1px solid #dce7e3;border-radius:8px;background:#fbfdfc}.variable-export-list section>div:first-child{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;border-bottom:1px solid #e3ece8;background:#f0f7f4}.variable-export-list section>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.variable-export-list label{display:flex;align-items:flex-start;gap:7px;min-width:0;padding:9px 11px;border-right:1px solid #edf2f0;border-bottom:1px solid #edf2f0;font-weight:500}.variable-export-list input{flex:0 0 auto;width:auto;margin-top:2px}.variable-export-list label span{display:grid;min-width:0}.variable-export-list label b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.variable-export-list label code{overflow:hidden;color:#71857e;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:850px){.fixed-index-note{align-items:flex-start;flex-wrap:wrap}.fixed-index-note span{flex-basis:100%}.variable-export-list section>div:last-child{grid-template-columns:1fr}.selection-toolbar{align-items:flex-start;flex-wrap:wrap}.selection-toolbar small{flex-basis:100%;margin-left:0}}

/* Compact mobile pass based on real WeChat screenshots. */
@media(max-width:760px){
  body{font-size:13px;line-height:1.42}
  header{min-height:50px;padding:5px 8px;align-items:center;flex-wrap:nowrap}
  header>div{height:36px}header>div b{padding:5px 7px;font-size:13px}
  header nav{flex-wrap:nowrap!important;align-items:center;gap:3px;padding:0;overflow-x:auto}
  header nav a{min-height:30px;padding:4px 7px;border-radius:14px;font-size:11px}
  header nav .account-link{padding:4px 7px}.link{min-height:30px;padding:4px 6px;font-size:11px}
  main{padding:10px 8px 66px}.notice{padding:7px 10px;font-size:12px}
  .record-bar{min-height:48px;margin-bottom:7px!important;padding:5px 7px!important}.record-back{width:30px;height:30px;font-size:25px}.record-bar strong{display:flex;min-width:0;flex-direction:column;font-size:13px;line-height:1.25}.record-bar em{font-size:10px}
  .mobile-visit-context{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:600;white-space:nowrap}
  .module-nav{top:50px!important;gap:4px;margin-bottom:7px;padding:5px!important}.module-nav>strong{display:none!important}
  .module-nav a{flex-basis:min(57vw,190px);min-height:39px;padding:5px 7px!important;font-size:12px}.module-state{width:18px;height:18px;font-size:10px}
  .crf-content,.module-entry-form{gap:7px}.crf-section{padding:10px 10px!important}.crf-section>h2{margin-bottom:2px;padding-bottom:7px;font-size:17px}
  .crf-subsection{margin-top:8px;padding:6px 2px;font-size:14px}.crf-guidance{padding:6px 2px;font-size:12px}
  .variable-row{gap:4px!important;padding:8px 1px!important}.variable-row>label{font-size:14px;line-height:1.3}
  .variable-control{min-height:38px}.variable-control>input:not([type=hidden]),.variable-control>textarea,.variable-control select{min-height:38px!important;padding:6px 9px!important;font-size:14px!important}.variable-control>textarea{min-height:60px!important}
  .choice-group{gap:5px}.choice-group span,.choice-group label:not(:has(span)){min-height:38px;padding:5px 6px!important;font-size:13px;line-height:1.2}
  .variable-control .unit{padding:0 8px;font-size:11px}.variable-row small{font-size:10px}
  .section-tabs{gap:4px}.section-tabs a{padding:5px 7px;font-size:11px}
  .sticky-save{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px 7px calc(6px + env(safe-area-inset-bottom))!important}
  .sticky-save button,.sticky-save button:last-child{grid-column:auto;min-height:38px!important;padding:5px 3px;font-size:10px;line-height:1.15}
  .query-create-panel{padding:10px!important}.query-create-panel h2{font-size:16px}.query-create-panel p{font-size:10px}.query-create-panel select,.query-create-panel input,.query-create-panel button{min-height:38px;font-size:13px}
  .title h1,.compact-page-head h1{font-size:24px}.card{padding:11px}.home-kpis a{padding:9px 10px}.home-kpis b{font-size:23px}
}

/* v51 — final module metadata: one concise bilingual fact per line. */
.module-admin-card .module-admin-meta{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding-left:14px!important}
.module-admin-card .module-meta-item{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-width:0!important}
.module-admin-card .module-meta-item>b{font-size:22px!important;line-height:1!important;white-space:nowrap!important}
.module-admin-card .module-meta-item:nth-child(2){padding-top:7px!important;border-top:1px solid #e7efec!important}
.module-admin-card .module-meta-item:nth-child(2)>b{font-size:20px!important;line-height:1!important;white-space:nowrap!important}
.module-admin-card .module-meta-item:nth-child(2)>span>strong{display:block!important}
@media(max-width:520px){.module-admin-card .module-admin-meta{grid-template-columns:1fr!important;padding:9px 0 0!important}}

/* v53 — full-width module catalogue cards: identity / description / status. */
.module-admin-grid{grid-template-columns:1fr!important;gap:13px!important}
.module-admin-card{
  grid-template-columns:minmax(280px,.82fr) minmax(360px,1.32fr) minmax(230px,.56fr)!important;
  grid-template-areas:"primary description meta" "actions actions actions"!important;
  gap:12px 26px!important;
  min-height:0!important;
  padding:23px 30px 18px!important;
}
.module-admin-primary{align-self:center!important}.module-admin-primary>small{margin-bottom:10px!important;font-size:13px!important}.module-admin-primary h2.bilingual-title>b{font-size:clamp(26px,2vw,34px)!important;line-height:1.04!important}.module-admin-primary h2.bilingual-title>small{font-size:16px!important;margin-top:6px!important}
.module-admin-description{align-self:center!important;padding:0 10px 0 0!important}.module-admin-description p>b{font-size:16px!important;line-height:1.3!important}.module-admin-description p>small{margin-top:6px!important;font-size:14px!important;line-height:1.45!important}
.module-admin-card .module-admin-meta{align-self:stretch!important;grid-template-columns:1fr!important;gap:0!important;padding:0 0 0 24px!important;border-left:1px solid #dbe9e5!important}
.module-admin-card .module-meta-item{grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;min-height:50px!important}.module-admin-card .module-meta-item>b{font-size:34px!important;line-height:1!important}.module-admin-card .module-meta-item:nth-child(2){padding-top:11px!important;border-top:1px solid #dfeae7!important}.module-admin-card .module-meta-item:nth-child(2)>b{font-size:27px!important}.module-admin-card .module-meta-item strong{font-size:14px!important;line-height:1.15!important}.module-admin-card .module-meta-item small{margin-top:3px!important;font-size:12px!important;line-height:1.2!important}
.module-admin-card .module-admin-actions{min-height:50px!important;padding-top:14px!important}.module-admin-actions a,.module-admin-actions button{min-height:44px!important;padding:7px 14px!important}.module-admin-actions .bilingual-action>b{font-size:13px!important}.module-admin-actions .bilingual-action>small{font-size:10px!important}
@media(max-width:980px){.module-admin-card{grid-template-columns:minmax(220px,.85fr) minmax(250px,1.15fr) minmax(195px,.55fr)!important;padding:20px!important;gap:10px 18px!important}.module-admin-primary h2.bilingual-title>b{font-size:25px!important}.module-admin-description p>b{font-size:14px!important}.module-admin-description p>small{font-size:12px!important}.module-admin-card .module-admin-meta{padding-left:16px!important}.module-admin-card .module-meta-item>b{font-size:29px!important}}
@media(max-width:720px){.module-admin-card{grid-template-columns:minmax(0,1fr) 190px!important;grid-template-areas:"primary meta" "description description" "actions actions"!important}.module-admin-description{padding:0!important}.module-admin-card .module-admin-meta{padding-left:14px!important}.module-admin-primary h2.bilingual-title>b{font-size:24px!important}}

/* v57 — compact workbench controls and presentation-friendly summaries. */
.filter-bar{display:grid!important;align-items:center!important;gap:10px!important;margin:12px 0!important;padding:10px!important;border:1px solid #dce9e5!important;border-radius:12px!important;background:#fbfdfc!important}
.filter-bar:has(input){grid-template-columns:minmax(280px,1.1fr) minmax(260px,.9fr) 150px!important}
.filter-bar:not(:has(input)){grid-template-columns:minmax(0,1fr) 150px!important}
.filter-bar input,.filter-bar select,.filter-bar button{width:100%!important;min-height:42px!important;height:42px!important;margin:0!important;border-radius:8px!important}
.filter-bar input,.filter-bar select{padding:8px 12px!important;color:#284b45!important;font-size:14px!important;background:#fff!important;border:1px solid #c8ddd7!important}
.filter-bar input::placeholder{color:#93a39f!important}.filter-bar button{padding:5px 12px!important;background:#e1f3ed!important;border:1px solid #b9dfd4!important;color:#166458!important}.filter-bar button .bilingual-action{align-items:center!important}.filter-bar button .bilingual-action>b{font-size:13px!important}.filter-bar button .bilingual-action>small{font-size:10px!important}
.workflow-metrics{gap:12px!important;margin:14px 0!important}.workflow-metrics>div{min-height:116px!important;padding:17px 22px!important}.workflow-metrics>div>b{font-size:30px!important;line-height:1!important;letter-spacing:-.035em!important}.workflow-metrics .bilingual-label{margin-top:4px!important}.workflow-metrics .bilingual-label>b{font-size:15px!important;line-height:1.15!important}.workflow-metrics .bilingual-label>small{font-size:11px!important;line-height:1.2!important}
.export-note{padding:18px 22px!important;margin:14px 0 16px!important}.export-note .bilingual-title b{font-size:23px!important;line-height:1.1!important}.export-note .bilingual-title small{margin-top:3px!important;font-size:13px!important}.export-note p{margin:10px 0 0!important}.export-note p>b,.export-note p>small{display:block!important}.export-note p>b{font-size:13px!important;line-height:1.4!important}.export-note p>small{margin-top:4px!important;font-size:12px!important;line-height:1.4!important}
@media(max-width:760px){.filter-bar,.filter-bar:has(input),.filter-bar:not(:has(input)){grid-template-columns:1fr!important}.workflow-metrics{grid-template-columns:1fr 1fr!important}.workflow-metrics>div{min-height:100px!important;padding:14px!important}.workflow-metrics>div>b{font-size:26px!important}.export-note{padding:15px!important}.export-note .bilingual-title b{font-size:20px!important}}

/* v55 — align every desktop module card to a shared row rhythm. */
@media(min-width:1241px){
  .module-admin-grid{grid-auto-rows:220px!important;align-items:stretch!important}
  .module-admin-card{height:220px!important;min-height:220px!important;grid-template-rows:minmax(0,1fr) auto!important;align-items:stretch!important}
  .module-admin-primary,.module-admin-description,.module-admin-card .module-admin-meta{align-self:start!important}
  .module-admin-card .module-admin-actions{align-self:end!important}
}
@media(max-width:520px){.module-admin-card{grid-template-columns:1fr!important;grid-template-areas:"primary" "description" "meta" "actions"!important;padding:17px!important}.module-admin-card .module-admin-meta{grid-template-columns:1fr!important;padding:11px 0 0!important;border-left:0!important;border-top:1px solid #dbe9e5!important}.module-admin-primary h2.bilingual-title>b{font-size:24px!important}}

/* v54 — two module cards per desktop row, while retaining the full card anatomy. */
.module-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.module-admin-card{grid-template-columns:minmax(175px,.82fr) minmax(205px,1.1fr) minmax(155px,.55fr)!important;column-gap:15px!important;padding:19px 20px 16px!important}
.module-admin-primary>small{font-size:11px!important;margin-bottom:8px!important}.module-admin-primary h2.bilingual-title>b{font-size:clamp(21px,1.42vw,26px)!important}.module-admin-primary h2.bilingual-title>small{font-size:13px!important}.module-admin-description p>b{font-size:12px!important}.module-admin-description p>small{font-size:11px!important}.module-admin-card .module-admin-meta{padding-left:14px!important}.module-admin-card .module-meta-item{grid-template-columns:37px minmax(0,1fr)!important;gap:6px!important;min-height:42px!important}.module-admin-card .module-meta-item>b{font-size:26px!important}.module-admin-card .module-meta-item:nth-child(2)>b{font-size:21px!important}.module-admin-card .module-meta-item strong{font-size:11px!important}.module-admin-card .module-meta-item small{font-size:10px!important}.module-admin-card .module-admin-actions{min-height:42px!important;padding-top:10px!important}.module-admin-actions a,.module-admin-actions button{min-height:38px!important;padding:5px 10px!important}
@media(max-width:1240px){.module-admin-grid{grid-template-columns:1fr!important}.module-admin-card{grid-template-columns:minmax(250px,.85fr) minmax(310px,1.25fr) minmax(210px,.6fr)!important;padding:21px 25px 17px!important}.module-admin-primary h2.bilingual-title>b{font-size:27px!important}.module-admin-description p>b{font-size:15px!important}.module-admin-description p>small{font-size:13px!important}.module-admin-card .module-meta-item>b{font-size:31px!important}}
@media(max-width:720px){.module-admin-card{grid-template-columns:minmax(0,1fr) 190px!important;grid-template-areas:"primary meta" "description description" "actions actions"!important}.module-admin-description{padding:0!important}.module-admin-card .module-admin-meta{padding-left:14px!important}.module-admin-primary h2.bilingual-title>b{font-size:24px!important}}
