.rct-studybar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin-bottom:14px;background:linear-gradient(135deg,#123c34,#1f6b59);color:#fff;border-radius:14px;box-shadow:var(--shadow)}
.rct-studybar-main{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1 auto}.rct-studybar-main>div{min-width:180px}.rct-studybar>.button-row{width:auto;flex:0 0 auto;flex-wrap:nowrap}.rct-studybar select{min-width:260px;max-width:460px;margin:0;padding:10px 34px 10px 12px;border:1px solid rgba(255,255,255,.24);border-radius:9px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit}.rct-studybar small{display:block;margin-top:4px;color:#b8d8d0}.rct-studybar .ghost{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#fff}
.rct-studybar .ghost.danger{background:rgba(255,235,235,.12);border-color:rgba(255,205,205,.45);color:#ffe0e0}
.rct-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px;padding:4px;background:var(--theme-surface-muted,#e8f0ed);border-radius:12px}.rct-tabs button{flex:0 0 auto;max-width:100%;padding:10px 13px;border-radius:9px;background:transparent;color:var(--muted);font-weight:650}.rct-tabs button.active{background:var(--theme-surface,#fff);color:var(--green);box-shadow:0 3px 12px rgba(25,61,52,.08)}
.rct-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}.rct-toolbar>.button-row{justify-content:flex-end;flex-wrap:wrap}.rct-toolbar form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rct-toolbar input:where(:not([type=checkbox], [type=radio])),.rct-toolbar select,.rct-form-grid input:where(:not([type=checkbox], [type=radio])),.rct-form-grid select,.rct-form-grid textarea{margin:0;border:1px solid var(--line);border-radius:9px;padding:10px 11px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit}.rct-toolbar input{min-width:240px}.rct-toolbar select{min-width:145px}.rct-form-grid textarea{width:100%;min-height:120px;resize:vertical;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.rct-pills{display:flex;gap:6px;flex-wrap:wrap}.rct-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--theme-surface-muted,#edf2f0);color:var(--theme-muted,#4d625d);font-size:11px;font-weight:700;white-space:nowrap}.rct-pill.good{background:var(--green-soft);color:var(--green)}.rct-pill.warn{background:var(--yellow-soft);color:var(--theme-yellow,#8a6110)}.rct-pill.bad{background:var(--red-soft);color:var(--red)}.rct-pill.info{background:var(--theme-info-soft,#e8f0fb);color:var(--theme-info,#356aa0)}
.rct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rct-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.rct-stat{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--theme-surface-muted,#fbfdfc)}.rct-stat small{display:block;color:var(--muted)}.rct-stat strong{display:block;margin-top:7px;font-size:27px}.rct-stat span{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.rct-module-list{display:grid;gap:9px}.rct-module{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:start;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.rct-module:last-child{border-bottom:0}.rct-module i{width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--green)}.rct-module.pending i{background:var(--yellow)}.rct-module b,.rct-module small{display:block}.rct-module small{margin-top:4px;color:var(--muted);line-height:1.45}
.rct-table-wrap{width:100%;overflow:auto}.rct-table-wrap table{min-width:720px}.rct-table-wrap tbody tr[data-action]{cursor:pointer}.rct-table-wrap tbody tr:not([data-action]){cursor:default}.rct-table-wrap td .source{display:block;margin-top:4px}.rct-actions{display:flex;gap:6px;flex-wrap:wrap}.rct-actions button{padding:7px 9px}.rct-inline-empty{padding:24px;text-align:center;color:var(--muted);background:var(--theme-surface-muted,#fafcfb);border-radius:9px}
.rct-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.rct-detail-head h2{margin:0 0 6px}.rct-detail-head p{margin:0;color:var(--muted);line-height:1.6}.rct-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rct-kv div{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface-muted,#fafcfb)}.rct-kv small,.rct-kv b{display:block}.rct-kv small{margin-bottom:5px;color:var(--muted)}
.rct-subtabs{display:flex;gap:15px;border-bottom:1px solid var(--line);margin:18px 0}.rct-subtabs button{padding:9px 2px;background:transparent;color:var(--muted)}.rct-subtabs button.active{color:var(--green);font-weight:700;border-bottom:2px solid var(--green)}
.rct-evidence{display:grid;gap:14px}.rct-evidence article{border:1px solid var(--line);border-radius:12px;padding:15px;overflow:auto}.rct-evidence h3{margin:0 0 12px;font-size:15px}.rct-evidence table{min-width:620px}
.rct-config{max-width:520px;white-space:pre-wrap;word-break:break-word;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--theme-muted,#46605a)}.rct-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.rct-form-grid label{margin:0!important}.rct-form-grid label.full{grid-column:1/-1}.rct-form-grid label>span{display:block;margin-bottom:7px}.rct-modal-wide{width:min(760px,94vw)}
.rct-callout{padding:13px 15px;border-left:4px solid var(--green);border-radius:8px;background:var(--theme-green-soft,#eef7f3);color:var(--theme-muted,#355c51);font-size:13px;line-height:1.6}.rct-callout.warn{border-color:var(--yellow);background:var(--theme-yellow-soft,#fff8e6);color:var(--theme-yellow,#75591b)}.rct-callout.bad{border-color:var(--red);background:var(--theme-red-soft,#fff0ef);color:var(--theme-red,#7a3838)}
.rct-file{display:block;padding:18px;border:1px dashed var(--theme-line,#a9c3bb);border-radius:10px;background:var(--theme-surface-muted,#f8fbfa);text-align:center}.rct-file input{margin:8px 0 0}.rct-download{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.rct-download label{margin:0}.rct-download input{margin-top:7px}
button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:1000px){.rct-grid.three{grid-template-columns:1fr 1fr}.rct-kv{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.rct-studybar{align-items:stretch;flex-direction:column}.rct-studybar-main{align-items:stretch;flex-direction:column}.rct-studybar-main>div{min-width:0}.rct-studybar select{min-width:0;max-width:none;width:100%}.rct-studybar .button-row{width:100%;flex-wrap:wrap}.rct-studybar .button-row button{flex:1}.rct-grid,.rct-grid.three{grid-template-columns:1fr}.rct-kv{grid-template-columns:1fr}.rct-form-grid{grid-template-columns:1fr}.rct-form-grid label.full{grid-column:auto}.rct-download{grid-template-columns:1fr}.rct-toolbar form{width:100%}.rct-toolbar input,.rct-toolbar select{width:100%;min-width:0}.rct-toolbar .button-row{width:100%}.rct-toolbar .button-row button{flex:1 1 140px}.rct-detail-head{flex-direction:column}.rct-detail-head .button-row{width:100%}}

/* RCT management workbench follows the existing input and panel sizing. */
.rct-management-subject, #rctManagementForm > label { display: grid; gap: 8px; margin: 16px 0; }
.rct-management-subject select, #rctManagementForm select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--theme-line,#d7e4df); border-radius: 9px; background: var(--theme-surface,white); color: inherit; font: inherit; }
.rct-management-subject { max-width: 420px; }
#rctManagementForm textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--theme-line,#d7e4df); border-radius: 9px; font: inherit; }
#rctManagementForm [hidden] { display: none !important; }

/* Daily care workflow: queue -> subject -> recorded outcome. */
.care-queue-head>button{flex-shrink:0;white-space:nowrap}
.care-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;margin-bottom:20px;border:1px solid var(--theme-line,#cee0d9);border-radius:16px;background:linear-gradient(115deg,var(--theme-green-soft,#edf7f1),var(--theme-surface-muted,#f8faf5));color:var(--theme-ink,#183e32)}
.care-hero h2{margin:6px 0 10px;font-size:26px;letter-spacing:-.5px}.care-hero p{margin:0;color:var(--theme-muted,#527365);line-height:1.6}.care-hero .eyebrow{font-size:11px;letter-spacing:2px}.care-hero-date{text-align:right;flex-shrink:0}.care-hero-date b,.care-hero-date span{display:block}.care-hero-date span{margin-top:6px;font-size:12px;color:var(--theme-muted,#668073)}
.care-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 22px}.care-metric{text-align:left;background:var(--theme-surface,#fff);border:1px solid var(--line);border-radius:12px;padding:20px 22px;color:var(--ink);box-shadow:0 3px 12px #123c3405}.care-metric.selected{outline:2px solid var(--green);outline-offset:-2px}.care-metric span,.care-metric strong,.care-metric small{display:block}.care-metric strong{font-size:34px;margin:8px 0}.care-metric small{color:var(--muted);font-size:12px}.care-metric.danger strong{color:var(--theme-red,#b4483c)}.care-metric.warning strong{color:var(--theme-yellow,#967225)}
.care-queue-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.care-queue-head h2,.care-queue-head h3{margin:0}.care-queue-head p{color:var(--muted);font-size:13px;line-height:1.6;margin:6px 0 0}.care-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.care-filters>input{width:280px;margin:0;padding:11px 13px;border:1px solid var(--line);border-radius:9px;font:inherit}.care-filters label{display:flex;align-items:center;gap:7px;margin:0;color:var(--muted);font-size:13px}
.care-kinds{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line)}.care-kinds button{border-radius:8px;padding:9px 12px;color:var(--muted);background:var(--theme-surface-muted,#f3f6f4)}.care-kinds button.active{background:var(--theme-green-soft,#e0efe6);color:var(--theme-green,#246b4c)}.care-kinds span{margin-left:8px;font-size:12px}
.care-task-list{display:grid}.care-task{display:flex;gap:15px;align-items:center;padding:20px 2px;border-bottom:1px solid var(--theme-line,#e9eeeb)}.care-task:last-child{border-bottom:0}.care-task-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:11px;background:var(--theme-green-soft,#edf4f0);color:var(--theme-green,#40735a);font-size:16px;font-weight:700}.care-task-urgent .care-task-icon{background:var(--theme-red-soft,#fff0ea);color:var(--theme-red,#ad5940)}.care-task-main{flex:1;min-width:0}.care-task-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.care-task h3{font-size:15px;margin:0}.care-task p{margin:7px 0;color:var(--muted);font-size:13px}.care-task small{font-size:12px;color:var(--theme-muted,#748078)}.care-tag{font-size:11px;font-weight:650;padding:3px 7px;border-radius:5px;background:var(--theme-surface-muted,#f0f3f1);color:var(--theme-muted,#66756c);white-space:nowrap}.care-tag.danger{background:var(--theme-red-soft,#fff0eb);color:var(--theme-red,#aa5038)}.care-tag.warning{background:var(--theme-yellow-soft,#fcf3dc);color:var(--theme-yellow,#876717)}.care-subject-link{padding:0;background:none;color:var(--theme-green,#2b6950);font-weight:650;text-decoration:underline;text-underline-offset:3px}.care-task-focused{background:var(--theme-green-soft,#f1f8f3);box-shadow:inset 3px 0 #418464;padding-left:12px;padding-right:12px}
.care-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.care-pagination>div{display:flex;gap:8px}.care-empty{text-align:center;padding:42px 20px;color:var(--muted)}.care-empty>span{font-size:24px;color:var(--theme-green,#559070)}.care-empty h3{font-size:16px;color:var(--theme-muted,#426454)}.care-empty p{font-size:13px}.care-error{background:var(--theme-red-soft,#fff4ee);color:var(--theme-red,#94533b);padding:16px;border-radius:9px;line-height:1.6;display:flex;align-items:center;gap:12px;justify-content:space-between}.care-form-error{color:var(--theme-red,#a64135);font-size:13px}.care-form-error:empty{display:none}
.care-current{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0 26px}.care-current>div{background:var(--theme-surface-muted,#f3f8f4);border:1px solid var(--theme-line,#e1ebe2);padding:18px;border-radius:10px}.care-current small,.care-current strong,.care-current span{display:block}.care-current small{color:var(--muted);font-size:12px;margin-bottom:10px}.care-current strong{font-size:19px}.care-current span{font-size:12px;color:var(--muted);margin-top:8px}.care-section{padding:22px 0;border-top:1px solid var(--line)}.care-section>h3{margin:0 0 16px;font-size:16px}.care-muted{font-size:13px;color:var(--muted);line-height:1.6}.care-history article{display:grid;grid-template-columns:115px minmax(0,1fr);gap:16px;margin-top:18px}.care-history time{font-size:12px;color:var(--muted);padding-top:3px}.care-history article>div{border-left:2px solid var(--theme-line,#dfeae3);padding-left:16px}.care-history b{font-size:14px}.care-history p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:var(--theme-muted,#52665a);font-size:13px}.care-history small{color:var(--muted);font-size:12px}.care-weight-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:10px;padding:16px;margin-top:12px}.care-weight-list p,.care-weight-list small{font-size:12px;color:var(--muted)}
.care-dashboard{margin-bottom:20px}.care-dashboard .care-hero{margin-bottom:0}.care-dashboard-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}.care-dashboard-actions small{font-size:12px;color:var(--theme-muted,#527365)}.care-dashboard a.primary{display:inline-block;text-decoration:none;padding:12px 18px;border-radius:9px;background:var(--theme-primary,var(--green));color:#fff;font-size:14px;font-weight:650}
#rctModal textarea{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:9px;font:inherit;line-height:1.6;box-sizing:border-box}#rctModal .rct-form-grid textarea{font:inherit}.rct-subtabs{overflow-x:auto}.rct-subtabs button{flex-shrink:0}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:800px){.care-hero{padding:22px;align-items:flex-start;flex-direction:column}.care-hero h2{font-size:23px}.care-hero-date{text-align:left}.care-dashboard-actions{align-items:flex-start}.care-metric{padding:15px}.care-metric strong{font-size:28px}.care-task{gap:10px}.care-task-icon{display:none}.care-task>button{padding:9px}.care-history article{grid-template-columns:85px minmax(0,1fr)}.care-queue-head{align-items:flex-start}}
@media(max-width:520px){aside nav{grid-template-columns:repeat(3,minmax(0,1fr))}.care-metrics{gap:8px}.care-metric{padding:12px 8px}.care-metric span{font-size:12px}.care-metric small{font-size:10px}.care-filters>input{width:100%}.care-task{flex-wrap:wrap}.care-task-main{flex-basis:100%}.care-task>button{margin-left:auto}.care-current{grid-template-columns:1fr}.care-pagination{flex-wrap:wrap}}

/* Subject overview: weight evidence, management and upload recovery. */
.care-overview { background:var(--theme-surface,#fff); border:1px solid var(--theme-line,#dbe6e1); border-radius:18px; padding:24px; margin-bottom:20px; }
.care-state-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 0 12px; }
.care-state-grid article { background:var(--theme-surface-muted,#f5f8f6); border-radius:12px; padding:16px; overflow-wrap:anywhere; }
.care-state-grid small { display:block; color:var(--theme-muted,#596b63); margin-bottom:10px; }
.care-state-grid b { display:block; font-size:17px; line-height:1.5; color:var(--theme-ink,#254d40); }
.care-state-grid p,.care-state-note { font-size:13px; line-height:1.7; color:var(--theme-muted,#65766c); margin:8px 0 0; }
.care-state-note { background:var(--theme-green-soft,#edf5f0); border-left:3px solid var(--theme-green-border,#669780); padding:10px 14px; }
.care-range { display:flex; gap:6px; flex-wrap:wrap; }
.care-range .active { background:var(--theme-green-soft,#e1f0e7); color:var(--theme-green,#215e46); border-color:var(--theme-green-border,#669780); }
.care-trend-chart { display:block; width:100%; max-height:300px; margin-top:12px; }
.care-trend-chart text { fill:var(--theme-muted,#68776f); font-size:12px; }
.care-trend-legend { display:flex; gap:20px; flex-wrap:wrap; color:var(--theme-green,#467e70); font-size:12px; margin-top:22px; }
.care-trend-legend span:nth-child(2) { color:var(--theme-yellow,#9a7852); }
.care-trend-legend span:nth-child(3) { color:var(--theme-muted,#68776f); }
.care-trend-data summary,.care-event-details summary,.care-contacts-body summary { cursor:pointer; color:var(--theme-green,#306d54); padding:12px 0; }
.care-trend-data .rct-table-wrap { max-height:360px; }
.care-event-details article { padding:12px 0; border-top:1px solid var(--theme-line,#e4ebe6); }
.care-recovery { border-top:1px solid var(--theme-line,#e1e9e3); margin-top:22px; padding-top:22px; }
.care-contacts-body .care-history details p { margin:6px 0; }
@media(max-width:1000px) { .care-state-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .care-overview { padding:16px; } .care-state-grid { grid-template-columns:1fr; } .care-trend-chart { min-height:170px; } }

.care-stage-tags { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:12px; margin-top:10px; color:var(--theme-muted,#5c7368); }
.care-stage-tags small { flex-basis:100%; }
.care-filters select { max-width:190px; }
.research-overview { display:grid; gap:20px; }
.research-hero { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:26px 28px; border-radius:18px; background:linear-gradient(120deg,#153e36,#2b6859); color:white; }
.research-hero h2 { color:white; margin:6px 0 12px; font-size:28px; }
.research-hero p { color:#d8e9e0; margin:0; }
.research-hero button { flex-shrink:0; }
.research-controls form { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.research-controls label { display:grid; gap:6px; color:var(--theme-muted,#526b60); font-size:13px; }
.research-controls .care-range { margin-top:14px; align-items:center; }
.research-controls small { color:var(--theme-muted,#76877d); margin-left:auto; }
.research-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.research-metrics article { padding:20px; background:var(--theme-surface,#fff); border:1px solid var(--theme-line,#e1e9e4); border-radius:14px; }
.research-metrics small { color:var(--theme-muted,#667c70); }
.research-metrics strong { display:block; font-size:32px; color:var(--theme-ink,#234e3f); margin:10px 0; }
.research-metrics p { margin:0; color:var(--theme-muted,#75877b); font-size:12px; line-height:1.7; }
.research-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.research-overview .panel { min-width:0; padding:24px; }
.research-overview .panel>p,.research-overview .panel>small { color:var(--theme-muted,#738278); line-height:1.7; font-size:13px; }
.research-bars { display:grid; gap:14px; margin:20px 0; }
.research-bar-row { display:grid; grid-template-columns:minmax(80px,1fr) minmax(70px,3fr) 44px 50px; align-items:center; gap:12px; font-size:13px; }
.research-bar-track { height:10px; background:var(--theme-surface-muted,#edf2ef); border-radius:8px; overflow:hidden; }
.research-bar-track i { display:block; height:100%; border-radius:8px; }
.research-bar-row b,.research-bar-row small { text-align:right; }
.research-overview summary { cursor:pointer; color:var(--theme-green,#356f54); padding:14px 0; }
.research-data-table { max-height:350px; }
@media(max-width:1000px){.research-grid { grid-template-columns:1fr; }}
@media(max-width:600px){.research-hero { flex-direction:column; align-items:flex-start; padding:20px; }.research-overview .panel { padding:16px; }.research-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}.research-metrics article{padding:14px}.research-metrics strong{font-size:25px}.research-controls input,.research-controls select{max-width:100%;min-width:0}.research-controls label{max-width:100%}.research-bar-row{gap:6px;grid-template-columns:minmax(60px,1fr) minmax(40px,2fr) 32px 44px}.care-filters select{max-width:100%}}
.research-overview table { min-width:0; width:100%; }
.research-overview th,.research-overview td { overflow-wrap:anywhere; white-space:normal; }
.yellow-care { padding-top:20px; color:var(--theme-ink,#263e38); }
.yellow-hero { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:28px; border:1px solid var(--theme-yellow-border,#e9dbb8); border-radius:16px; background:linear-gradient(110deg,var(--theme-yellow-soft,#fff8e5),var(--theme-surface-muted,#f7faf8)); }
.yellow-hero h2 { margin:4px 0 12px; font-size:26px; }
.yellow-hero p,.yellow-section-head p { margin:6px 0 0; color:var(--theme-muted,#61756d); }
.yellow-section { background:var(--theme-surface,#fff); border:1px solid var(--theme-line,#e2eae6); border-radius:14px; padding:24px; margin-top:20px; }
.yellow-section h3 { margin:0 0 10px; font-size:19px; }
.yellow-section h4 { margin:24px 0 12px; }
.yellow-section-head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.yellow-filters { display:flex; flex-wrap:wrap; align-items:end; gap:16px; padding:18px 0; color:var(--theme-muted,#61756d); }
.yellow-filters label { display:flex; flex-direction:column; gap:7px; font-size:13px; min-width:0; }
.yellow-filters select { padding:10px 12px; border:1px solid var(--theme-line,#d9e2dc); border-radius:8px; background:var(--theme-surface,#fff); color:var(--theme-ink,#243e35); max-width:100%; }
.yellow-filters span { font-size:13px; padding:10px 0; }
.yellow-milestones { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.yellow-milestones article { border:1px solid var(--theme-line,#e4e9df); border-radius:12px; padding:18px; background:var(--theme-surface-muted,#fbfcf8); }
.yellow-milestones small { color:var(--theme-muted,#738478); display:block; }
.yellow-milestones b { display:block; margin:12px 0 8px; color:var(--theme-yellow,#566436); font-size:20px; }
.yellow-milestones p { font-size:12px; line-height:1.65; margin:0; overflow-wrap:anywhere; }
.yellow-note { margin:14px 0; font-size:13px; line-height:1.8; color:var(--theme-muted,#6a7467); background:var(--theme-yellow-soft,#faf8ef); border-left:3px solid var(--theme-yellow-border,#c6a854); padding:10px 14px; }
.yellow-goals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.yellow-goals article { padding:16px; border-radius:10px; background:var(--theme-surface-muted,#f4f8f5); }
.yellow-goals p { margin:8px 0 0; font-size:13px; color:var(--theme-muted,#61756d); }
.yellow-care details { margin-top:18px; }
.yellow-care summary { cursor:pointer; color:var(--theme-green,#357f69); font-size:14px; }
.yellow-table { overflow-x:auto; margin:14px 0; }
.yellow-care table { min-width:0; width:100%; }
.yellow-care th,.yellow-care td { font-size:13px; padding:12px 10px; white-space:normal; overflow-wrap:anywhere; }
.yellow-care td small { display:block; color:var(--theme-muted,#65796d); margin-top:6px; }
.yellow-history article { padding:16px 0; border-bottom:1px solid var(--theme-line,#e6ece8); }
.yellow-history article:last-child { border-bottom:none; }
.yellow-history p { font-size:14px; line-height:1.7; margin:8px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.yellow-history small { color:var(--theme-muted,#7b8d80); }
@media(max-width:760px){
 .yellow-hero,.yellow-section { padding:16px; }
 .yellow-hero,.yellow-section-head { flex-direction:column; align-items:flex-start; }
 .yellow-milestones { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .yellow-milestones article { padding:12px; }
 .yellow-milestones b { font-size:17px; }
 .yellow-goals { grid-template-columns:1fr; }
 .yellow-filters label { max-width:100%; }
 .yellow-table table { min-width:580px; }
}

.yellow-round{scroll-margin-top:24px}.yellow-jump{margin-bottom:16px}.yellow-round-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.yellow-round-days table{min-width:0;width:100%}@media(max-width:640px){.yellow-round{scroll-margin-top:128px}.yellow-round-days{grid-template-columns:1fr}.yellow-round .rct-actions{justify-content:flex-start}}

.plan-editor .yellow-hero{margin-top:16px}.plan-goal,.plan-editor fieldset,#rctModalForm [data-plan-consent]{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0}.plan-goal legend{font-weight:700}.plan-schedule{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px}.plan-schedule select{width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;font:inherit}.plan-weekdays{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.plan-weekdays[hidden]{display:none}.plan-weekdays label{display:flex;align-items:center}.plan-catalog-goal{border-top:1px solid var(--line);padding:12px 0}#rctModalForm [data-plan-comparison]{margin-top:20px}#rctModalForm [data-plan-consent]:disabled{opacity:.6}#rctModalForm button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:640px){.plan-schedule{grid-template-columns:1fr}.plan-editor .yellow-section-head{align-items:stretch}}
.red-hero { background: var(--theme-red-soft,#fff3f0); border-color: var(--theme-red-border,#edc8be); }
.red-hero .eyebrow { color: var(--theme-red,#a34231); }
.recovery-actions { margin: 16px 0; flex-wrap: wrap; }
.red-recovery .yellow-history p { white-space: pre-wrap; overflow-wrap: anywhere; }
.red-recovery .yellow-milestones b { overflow-wrap: anywhere; }
.red-risk.high b { color: var(--theme-red,#b42318); }
.red-risk.pending b { color: var(--theme-yellow,#926313); }
.red-deadlines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 20px 0 12px; }
.red-deadlines article { background: var(--theme-yellow-soft,#fff8f3); border: 1px solid var(--theme-yellow-border,#edd8c6); border-radius: 12px; padding: 16px; }
.red-deadlines p { color: var(--theme-red,#973c2d); margin: 8px 0; }
.red-care .yellow-history p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) { .red-deadlines { grid-template-columns: 1fr; } }
.goal-catalog { min-width: 0; }
.catalog-filters { display:flex; gap:14px; flex-wrap:wrap; align-items:end; }
.catalog-filters label { display:grid; gap:6px; flex:1 1 180px; }
.catalog-counts { color:var(--muted, #60746c); line-height:1.8; }
.catalog-counts small { display:block; }
.catalog-list article { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 0; border-top:1px solid var(--theme-line,#e0e9e4); }
.catalog-list article>div { min-width:0; overflow-wrap:anywhere; }
.catalog-list button { flex-shrink:0; }
.catalog-goals { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; }
.catalog-goals article { padding:18px; border:1px solid var(--theme-line,#dce6df); background:var(--theme-surface-muted,#f8faf8); border-radius:12px; overflow-wrap:anywhere; }
.catalog-goals p { white-space:pre-wrap; line-height:1.65; }
.catalog-goal-editor { border:1px solid var(--theme-line,#dce6df); padding:16px; border-radius:12px; margin:12px 0; }
.catalog-goal-editor summary { font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.catalog-goal-editor[open] summary { margin-bottom:16px; }
.catalog-editor>label { display:grid; gap:8px; margin:18px 0; }
.catalog-editor [data-editor-preview-body]:not(:empty) { margin-top:24px; border-top:1px solid var(--theme-line,#dce6df); padding-top:18px; }
.catalog-issues { margin:18px 0; color:var(--theme-yellow,#79561c); }
.goal-catalog h2,.goal-catalog h3,.goal-catalog .yellow-history { overflow-wrap:anywhere; }
@media(max-width:600px) { .catalog-list article { align-items:flex-start; flex-direction:column; } .catalog-filters label { flex-basis:100%; } }
.catalog-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
.catalog-editor input:where(:not([type=checkbox], [type=radio])),.catalog-editor select,.catalog-editor textarea{box-sizing:border-box;width:100%;font:inherit;color:inherit;border:1px solid var(--theme-line,#d8e4df);border-radius:9px;padding:10px 12px;background:var(--theme-surface,#fff)}
.catalog-editor textarea{resize:vertical;min-height:72px}
.catalog-editor [data-editor-error][hidden]{display:none}
.rct-questionnaires{min-width:0}.q-navigation{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.q-navigation .active{background:var(--theme-green-soft,#e3f0eb);color:var(--theme-green,#166b54)}.q-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.q-filters label{display:grid;gap:6px;flex:1;min-width:130px}.q-filters input,.q-filters select{width:100%;box-sizing:border-box}.q-meta{color:var(--theme-muted,#657d74);font-size:13px}.q-preview-field,.q-answer{border:1px solid var(--theme-line,#d8e4df);border-radius:12px;padding:18px;margin-top:14px;background:var(--theme-surface-muted,#f8fbf9)}.q-preview-option{display:flex;justify-content:space-between;gap:12px;padding:8px 0}.q-preview-blank{min-height:46px;border:1px dashed var(--theme-line,#b9cec4);border-radius:8px;padding:12px;color:var(--theme-muted,#687f75)}.q-required{font-size:12px;color:var(--theme-yellow,#92571a)}.q-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}.q-editor input:where(:not([type=checkbox], [type=radio])),.q-editor select,.q-editor textarea{box-sizing:border-box;width:100%;font:inherit;color:inherit;border:1px solid var(--theme-line,#d8e4df);border-radius:9px;padding:10px 12px;background:var(--theme-surface,#fff)}.q-editor textarea{resize:vertical;min-height:72px}.q-editor .q-options>div{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr) auto;gap:12px;align-items:center}.q-move{margin-top:16px}.q-editor [data-q-error][hidden]{display:none}.q-answer-warning{background:var(--theme-yellow-soft,#fff8ea);border-color:var(--theme-yellow-border,#edcf95)}.q-answer p,.q-preview p{white-space:pre-wrap;overflow-wrap:anywhere}.q-preview-option{overflow-wrap:anywhere}.q-body{min-width:0}
@media(max-width:700px){.q-filters{display:grid;grid-template-columns:1fr}.q-editor .q-options>div{grid-template-columns:1fr;border-bottom:1px solid var(--theme-line,#d8e4df);padding:12px 0}.q-editor .q-options button{justify-self:start}.q-navigation button{flex:1}.q-preview-option{flex-direction:column;gap:4px}}
.q-editor label.q-check{flex:0 0 auto}

.q-navigation .ghost{color:var(--theme-green,#356f54);background:var(--theme-surface,#fff)}
.q-navigation .ghost:hover,.q-navigation .ghost:focus-visible,.q-navigation .active{background:var(--theme-green-soft,#e3f0eb);color:var(--theme-green,#166b54)}
.export-center{min-width:0}.ex-navigation{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ex-navigation .ghost{color:var(--theme-green,#356f54);background:var(--theme-surface,#fff)}.ex-navigation .active,.ex-navigation .ghost:hover,.ex-navigation .ghost:focus-visible{color:var(--theme-green,#166b54);background:var(--theme-green-soft,#e3f0eb)}
.ex-form fieldset{min-width:0;border:0;margin:0;padding:0}.ex-form label,.ex-filters label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.ex-form input:where(:not([type=checkbox], [type=radio])),.ex-form select,.ex-form textarea,.ex-filters input,.ex-filters select{box-sizing:border-box;width:100%;font:inherit;color:inherit;border:1px solid var(--theme-line,#d8e4df);border-radius:9px;padding:10px 12px;background:var(--theme-surface,#fff)}.ex-form textarea{resize:vertical;min-height:76px}.ex-form fieldset:disabled{opacity:.65}.ex-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.ex-filters label{flex:1 1 180px;margin-bottom:0}.ex-error{color:var(--theme-red,#a13829)}.ex-error[hidden]{display:none}.ex-notice{padding:16px;background:var(--theme-green-soft,#e5f2e9);border-radius:10px;color:var(--theme-green,#265f42)}
.ex-record{padding:20px 0;border-top:1px solid var(--theme-line,#e0e9e4)}.ex-record h4{font-size:17px;margin:0}.ex-record p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.ex-record small,.ex-meta{color:var(--theme-muted,#64796e)}.ex-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px}.ex-state{background:var(--theme-green-soft,#e6f1ea);color:var(--theme-green,#316b50);border-radius:8px;padding:8px 12px;white-space:nowrap}.ex-state.warn{background:var(--theme-yellow-soft,#fff2d8);color:var(--theme-yellow,#855c22)}.ex-record details{margin-top:16px}.ex-record summary{cursor:pointer;color:var(--theme-green,#397459)}.ex-record code,.ex-digest{overflow-wrap:anywhere;word-break:break-all}.ex-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:13px}.ex-operation{padding:20px;background:var(--theme-yellow-soft,#fbf7eb);border:1px solid var(--theme-yellow-border,#dfd1b2);border-radius:12px;margin-top:20px}.ex-table{overflow:auto;margin:18px 0}.ex-table table{width:100%;min-width:0}.ex-table td{overflow-wrap:anywhere;white-space:normal}.ex-table code{word-break:break-all}.ex-table th:nth-child(1){width:30%}.ex-table th:nth-child(2){width:15%}.export-center h2{overflow-wrap:anywhere}
@media(max-width:700px){.ex-filters{display:grid;grid-template-columns:1fr}.ex-pagination,.ex-record .yellow-section-head{align-items:flex-start;flex-direction:column}.ex-record .rct-actions{flex-wrap:wrap}.ex-operation{padding:14px}.ex-navigation button{flex:1}.ex-table table{min-width:500px}}
.green-care{min-width:0}.green-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.green-care h2,.green-care h3{margin:0 0 10px}.green-care p{line-height:1.7;overflow-wrap:anywhere}.green-section-head p,.green-calendar p{font-size:13px;color:var(--theme-muted,#63776c)}.green-note,.green-notice{padding:14px 18px;background:var(--theme-green-soft,#f0f6f2);border-radius:10px;color:var(--theme-muted,#476c57);font-size:13px;line-height:1.8}.green-notice{background:var(--theme-yellow-soft,#fff5df);color:var(--theme-yellow,#775929)}.green-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.green-metrics article{padding:20px;border:1px solid var(--theme-line,#dce9df);background:var(--theme-surface-muted,#f6faf7);border-radius:12px}.green-metrics small,.green-metrics p{color:var(--theme-muted,#697b70);font-size:12px}.green-metrics b{display:block;font-size:26px;color:var(--theme-green,#286746);margin:10px 0}.green-metrics p{margin:0}.green-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;margin-top:24px}.green-calendar{padding:18px;border:1px solid var(--theme-line,#dce9df);border-radius:12px;align-self:start;max-height:820px;overflow:auto}.green-calendar h4{font-size:12px;color:var(--theme-muted,#687f6e);line-height:1.7;margin:20px 0 10px}.green-calendar button{display:block;width:100%;text-align:left;background:var(--theme-surface,#fff);border:1px solid var(--theme-line,#e2eae4);border-radius:10px;margin:8px 0;padding:12px;color:var(--theme-muted,#3c6150)}.green-calendar button span{display:block;margin-bottom:7px;font-size:13px}.green-calendar button b{display:inline-block;min-width:45px}.green-calendar button.active{background:var(--theme-green-soft,#edf6ee);border-color:var(--theme-green-border,#72a77e);box-shadow:inset 3px 0 #4b8660}.green-status{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;background:var(--theme-surface-muted,#edf1ed);color:var(--theme-muted,#627365)}.green-status.complete{background:var(--theme-green-soft,#def0e4);color:var(--theme-green,#226e44)}.green-status.due,.green-status.overdue,.green-status.retry{background:var(--theme-yellow-soft,#fff0d6);color:var(--theme-yellow,#855d20)}.green-window{padding:16px;background:var(--theme-green-soft,#edf5ef);border-radius:10px;margin:18px 0}.green-window p{font-size:13px;margin:8px 0 0;color:var(--theme-muted,#5b7465)}.green-current{padding:4px 0 16px}.green-current h4{margin:8px 0}.green-current p{font-size:14px;white-space:pre-wrap}.green-checklist{margin:24px 0;padding:18px;border:1px solid var(--theme-line,#e1e8e2);border-radius:12px}.green-checklist h4{margin:0 0 12px}.green-checklist p{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:8px 0}.green-checklist span{color:var(--theme-muted,#7b877c)}.green-history{border-top:1px solid var(--theme-line,#d9e5dd);padding-top:22px;margin-top:26px}.green-history article{padding:20px 0;border-bottom:1px solid var(--theme-line,#e0e8e1)}.green-history article>p{white-space:pre-wrap;font-size:14px}.green-history small{color:var(--theme-muted,#758275);font-size:12px}.green-history details{margin:14px 0}.green-history summary{cursor:pointer;color:var(--theme-green,#397651);font-size:14px}.green-check-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.green-check-summary>div{padding:12px;border-radius:8px;background:var(--theme-surface-muted,#f3f7f3);font-size:13px}.green-check-summary p{white-space:pre-wrap}.green-form-checks{margin-top:24px}.green-form-check{display:grid;grid-template-columns:1fr 2fr;gap:16px;border-top:1px solid var(--theme-line,#e1e8e2);padding:14px 0}.green-form-check label{display:grid;gap:8px}.green-feedback{min-width:0;padding:18px;border:1px solid var(--theme-line,#d9e5dd);border-radius:10px;margin:20px 0}.green-feedback:disabled{opacity:.6}.green-feedback legend{font-weight:600}.green-feedback p{font-size:13px;line-height:1.7}
@media(max-width:760px){.green-layout{grid-template-columns:1fr;gap:18px}.green-calendar{max-height:260px}.green-metrics{gap:8px}.green-metrics article{padding:12px}.green-metrics b{font-size:22px}.green-section-head{flex-direction:column;gap:8px}.green-check-summary,.green-form-check{grid-template-columns:1fr}.green-checklist p{flex-direction:column;gap:3px}.green-selected{min-width:0}.green-care .rct-actions{flex-wrap:wrap}}
.notification-center { color: var(--theme-ink,#20343e); }
.nc-tabs, .nc-header, .nc-record-head, .nc-pagination, .nc-search { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nc-tabs { justify-content: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.nc-tabs button.active { background: #146b62; color: white; border-color: #146b62; }
.nc-header { padding: 22px 26px; background: var(--theme-green-soft,#edf6f3); border: 1px solid var(--theme-line,#d8e9e3); border-radius: 16px; margin-bottom: 18px; }
.nc-header h2 { margin: 3px 0 8px; font-size: 25px; }
.nc-header p, .nc-record-head p { margin: 6px 0; }
.nc-section { background: var(--theme-surface,white); border: 1px solid var(--theme-line,#dce6e7); border-radius: 14px; padding: 24px; margin: 16px 0; }
.nc-section h3 { margin: 0 0 12px; font-size: 18px; }
.nc-filters { display: grid; grid-template-columns: minmax(140px,1.3fr) repeat(2,minmax(120px,1fr)) auto; align-items: end; gap: 14px; margin: 20px 0; }
.nc-filters label, .nc-schedule label { display: grid; gap: 8px; color: var(--theme-ink,#344d59); font-weight: 500; min-width: 0; }
.nc-filters input, .nc-filters select, .nc-schedule input, .nc-schedule select { width: 100%; min-width: 0; box-sizing: border-box; background: var(--theme-surface,#fff); color: var(--theme-ink,#20343e); border: 1px solid var(--theme-line,#b7cbd0); border-radius: 8px; padding: 10px 12px; font: inherit; }
.nc-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.nc-record { border: 1px solid var(--theme-line,#dce6e7); border-radius: 12px; padding: 20px; min-width: 0; }
.nc-record h3 { font-size: 17px; margin: 0; }
.nc-record-head { align-items: start; }
.nc-status { display: inline-block; padding: 6px 10px; background: var(--theme-info-soft,#edf3f6); color: var(--theme-muted,#375566); border-radius: 8px; font-size: 13px; white-space: normal; }
.nc-status.warn { background: var(--theme-yellow-soft,#fff1de); color: var(--theme-yellow,#774b10); }
.nc-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin: 20px 0; }
.nc-meta dt { font-size: 13px; color: var(--theme-muted,#607780); margin-bottom: 6px; }
.nc-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.nc-note { color: var(--theme-muted,#576e78); line-height: 1.7; font-size: 14px; }
.nc-notice { background: var(--theme-info-soft,#edf5f7); border-left: 3px solid var(--theme-info,#538895); padding: 12px 16px; line-height: 1.6; }
.nc-pagination { margin-top: 20px; color: var(--theme-muted,#576e78); font-size: 14px; }
.nc-content p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.nc-schedule { max-width: 950px; }
.nc-schedule fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.nc-picker { padding: 0 0 22px; margin-bottom: 24px; border-bottom: 1px solid var(--theme-line,#dce6e7); }
.nc-search { align-items: end; margin: 14px 0; }
.nc-search label { flex: 1; }
.nc-time-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.notification-center [role=alert] { color: var(--theme-red,#a13232); overflow-wrap: anywhere; }
.notification-center button { white-space: normal; }
@media (max-width: 780px) {
  .nc-header { align-items: stretch; flex-direction: column; padding: 18px; }
  .nc-section { padding: 16px; }
  .nc-list, .nc-time-fields { grid-template-columns: 1fr; }
  .nc-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nc-record { padding: 15px; }
  .nc-pagination { flex-wrap: wrap; }
  .nc-record-head { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .nc-meta, .nc-filters { grid-template-columns: 1fr; }
  .nc-header .rct-actions { flex-wrap: wrap; }
}
.management-center { display:grid; gap:18px; min-width:0; }
.mc-links,.mc-search,.mc-pages { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.mc-links { margin:20px 0; }
.mc-picker { min-width:0; border:1px solid var(--theme-line,#dce7e7); border-radius:12px; padding:14px; align-self:start; }
.management-center button:not(.primary),.mc-picker button { border:1px solid var(--theme-line,#dce7e7); border-radius:9px; padding:10px 14px; background:var(--theme-surface,#fff); color:var(--theme-ink,#17312d); cursor:pointer; min-height:42px; font:inherit; }
.management-center button:disabled,.mc-picker button:disabled { opacity:.45; cursor:default; }
.mc-picker select { min-height:44px; padding:10px 12px; background:var(--theme-surface,#fff); color:var(--theme-ink,#17312d); border:1px solid var(--theme-line,#dce7e7); border-radius:9px; font:inherit; }
.management-center .rct-form-grid > .full { grid-column:1/-1; }
.mc-picker label { display:grid; gap:8px; font-weight:600; }
.mc-picker select,.mc-picker input { width:100%; min-width:0; max-width:100%; }
.mc-search { margin:10px 0; }
.mc-search input { flex:1; width:120px; }
.mc-pages { font-size:13px; color:var(--theme-muted,#56737b); justify-content:space-between; }
.mc-error { color:var(--theme-red,#a53031); white-space:pre-wrap; }
.mc-error:empty { display:none; }
.mc-hint,.mc-selected { color:var(--theme-muted,#56737b); line-height:1.65; }
.mc-selected button { margin:4px; }
.mc-history { margin-top:18px; }
.mc-history details { margin:12px 0; padding:14px; border:1px solid var(--theme-line,#dce7e7); border-radius:10px; }
.mc-history summary { cursor:pointer; font-weight:600; }
.mc-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0; }
.mc-evidence div { min-width:0; }
.mc-evidence dt { color:var(--theme-muted,#56737b); font-size:13px; }
.mc-evidence dd { margin:4px 0 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.mc-evidence .mc-evidence { grid-template-columns:1fr; padding-left:12px; border-left:2px solid var(--theme-line,#dce7e7); }
.management-center [data-fields] { margin:18px 0; }
@media(max-width:600px) { .mc-evidence { grid-template-columns:1fr; } .mc-pages button { padding:8px; } }
.schedule-heading,.schedule-monthbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.schedule-heading p,.schedule-note { color:var(--muted,#61716a); font-size:13px; line-height:1.7; }
.schedule-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:20px 0; align-items:end; }
.schedule-filters label { display:grid; gap:6px; min-width:0; }
.schedule-filters input,.schedule-filters select { width:100%; min-width:0; }
.schedule-filters input,.schedule-filters select { padding:10px 12px; border:1px solid var(--theme-line,#dbe5df); border-radius:10px; min-height:42px; font:inherit; background:var(--theme-surface-muted,#fbfdfc); color:var(--theme-ink,#29453b); }
.schedule-center button:not(.schedule-day):not(.primary) { padding:9px 13px; border:1px solid var(--theme-line,#dbe5df); border-radius:9px; font:inherit; font-size:13px; color:var(--theme-ink,#29453b); background:var(--theme-surface,#fff); cursor:pointer; }
.schedule-center button:disabled { cursor:default; opacity:.5; }
.schedule-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin:10px 0; }
.schedule-weekday { text-align:center; padding:8px 0; color:var(--muted,#61716a); }
.schedule-day { min-height:98px; padding:10px; display:flex; flex-direction:column; align-items:flex-start; gap:4px; border:1px solid var(--theme-line,#dbe5df); border-radius:8px; background:var(--theme-surface,#fff); color:var(--theme-ink,#29453b); }
.schedule-day strong { font-size:17px; }.schedule-day small { font-size:11px; color:var(--theme-muted,#61716a); }
.schedule-day.rest { background:var(--theme-surface-muted,#f2f4f3); }.schedule-day.selected { outline:2px solid var(--theme-green,#287d60); outline-offset:-2px; background:var(--theme-green-soft,#eaf5ef); }
.schedule-item { display:grid; grid-template-columns:1fr 1.5fr 1fr auto; align-items:center; gap:18px; border-top:1px solid var(--theme-line,#dbe5df); padding:18px 0; }
.schedule-item small { display:block; color:var(--muted,#61716a); margin-top:6px; line-height:1.5; }
.schedule-item div { min-width:0; overflow-wrap:anywhere; }
.schedule-personnel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media(max-width:700px) {
 .schedule-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .schedule-grid { gap:3px; }.schedule-day { min-height:78px; padding:6px 4px; font-size:12px; }.schedule-day strong { font-size:15px; }
 .schedule-item { grid-template-columns:1fr; gap:10px; }.schedule-personnel { grid-template-columns:1fr; }
 .schedule-center.panel { padding:14px; }
}
.endpoint-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.endpoint-section { border-top:1px solid var(--theme-line,#dbe5df); margin-top:24px; padding-top:20px; }
.endpoint-note,.endpoint-heading p,.endpoint-record small { color:var(--muted,#61716a); font-size:13px; line-height:1.7; }
.endpoint-sources,.endpoint-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.endpoint-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.endpoint-sources>div,.endpoint-metrics>div { padding:14px; border:1px solid var(--theme-line,#dbe5df); border-radius:10px; min-width:0; overflow-wrap:anywhere; background:var(--theme-surface-muted,#f8fbfa); }
.endpoint-sources small,.endpoint-metrics small,.endpoint-measurements small { display:block; margin-bottom:6px; color:var(--theme-muted,#61716a); line-height:1.6; }
.endpoint-sources b,.endpoint-metrics b { display:block; font-size:19px; margin:8px 0; }
.endpoint-record { border:1px solid var(--theme-line,#dbe5df); border-radius:12px; padding:16px; margin:14px 0; overflow-wrap:anywhere; }
.endpoint-record details p { line-height:1.7; }.endpoint-input { border:1px solid var(--theme-line,#dbe5df); border-radius:10px; padding:14px; min-width:0; }.endpoint-input legend { padding:0 6px; font-weight:600; }
.endpoint-measurements article { display:flex; gap:16px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--theme-line,#dbe5df); padding:14px 0; overflow-wrap:anywhere; }
.endpoint-center button:not(.primary) { padding:9px 13px; border:1px solid var(--theme-line,#dbe5df); border-radius:9px; font:inherit; font-size:13px; color:var(--theme-ink,#29453b); background:var(--theme-surface,#fff); cursor:pointer; }
.endpoint-center button:disabled { opacity:.5; cursor:default; }
@media(max-width:700px) { .endpoint-sources,.endpoint-metrics { grid-template-columns:1fr; }.endpoint-measurements article { align-items:flex-start; flex-direction:column; }.endpoint-record { padding:12px; }.endpoint-center.panel { padding:14px; } }
.profile-center{margin-top:24px;border-top:1px solid var(--line,#dce5e5);padding-top:20px}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.profile-heading h3{margin:0}.profile-note{color:var(--theme-muted,#637b76);font-size:13px;line-height:1.7}
.profile-tabs,.profile-search{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.profile-tabs .active{background:#1d8068;color:white}.profile-search input{flex:1;min-width:150px}
.profile-center button{padding:9px 12px;border:1px solid var(--theme-line,#d6e2df);border-radius:8px;background:var(--theme-surface,white);color:var(--theme-ink,#244c43);cursor:pointer}.profile-center button:disabled{opacity:.45;cursor:default}
.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.profile-facts>div{padding:12px;background:var(--theme-surface-muted,#f6faf8);border:1px solid var(--theme-line,#e2eae7);border-radius:8px}.profile-facts small,.profile-facts b{display:block}.profile-facts small{color:var(--theme-muted,#688178);font-size:12px;margin-bottom:6px}
.profile-record{padding:16px;border:1px solid var(--theme-line,#dbe6e2);border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.profile-record p{line-height:1.65}.profile-record small{color:var(--theme-muted,#648075)}.profile-history{border-top:1px solid var(--theme-line,#e3ebe8);padding:12px 0}.profile-criterion{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid var(--theme-line,#dbe6e2);border-radius:10px;padding:12px;margin:10px 0}.profile-criterion label:nth-child(3){grid-column:1/-1}.profile-criterion button{justify-self:start}.profile-criteria{border-left:3px solid var(--theme-line,#c8ddd5);padding-left:12px}
@media(max-width:700px){.profile-facts,.profile-criterion{grid-template-columns:1fr}.profile-heading .button-row{width:100%;flex-wrap:wrap}.profile-heading button{flex:1}.profile-record{padding:12px}.profile-criterion label:nth-child(3){grid-column:auto}}

.care-study-scope{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.care-study-scope label{margin:0}.care-study-scope small{display:block;margin-top:5px;color:var(--muted)}.care-study-scope select{flex:1 1 240px;min-width:0;width:auto;margin:0;padding:10px 34px 10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit}.care-study-scope .button-row{width:auto;margin:0}.care-study-scope a{display:inline-flex;align-items:center;text-decoration:none}
.process-metrics{display:grid;gap:18px;min-width:0}.pm-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.pm-heading h2,.pm-heading h3{margin:8px 0}.pm-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:18px 0}.pm-filters label{display:grid;gap:6px;min-width:140px;flex:1}.pm-filters input,.pm-filters select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;margin:0;border:1px solid var(--line);border-radius:9px;padding:10px 11px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit}.pm-tabs{display:flex;gap:10px;flex-wrap:wrap}.pm-tabs .active{background:#1a7967;color:white}.pm-definitions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pm-definitions article{padding:16px;border:1px solid var(--theme-line,#e0e8e5);border-radius:12px;background:var(--theme-surface-muted,#fafbf9)}.pm-definitions h3{margin:0 0 10px}.pm-definitions strong{color:var(--theme-yellow,#8c6328)}.pm-definitions p,.pm-record p{line-height:1.6}.pm-definitions small{color:var(--theme-muted,#526b62)}.pm-records{display:grid;gap:14px;margin:16px 0}.pm-record{border:1px solid var(--theme-line,#e0e8e5);padding:18px;border-radius:12px;overflow-wrap:anywhere}.pm-record dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pm-record dt{font-size:12px;color:var(--theme-muted,#526b62)}.pm-record dd{margin:6px 0;font-weight:600}.pm-record details{margin-top:12px}.process-metrics button{padding:9px 14px;border:1px solid var(--theme-line,#d7e3df);border-radius:9px;background:var(--theme-surface,#fff);color:var(--theme-ink,#254d40);cursor:pointer}.process-metrics button.primary{background:#16735f;color:#fff}.process-metrics button:disabled{opacity:.45;cursor:default}@media(max-width:700px){.pm-definitions,.pm-record dl{grid-template-columns:1fr}.pm-filters label{min-width:0;flex-basis:100%}.pm-record{padding:14px}.process-metrics .panel{padding:16px}}
.rct-patient-picker{margin-top:14px;border:1px solid var(--theme-line,#dce7e7);border-radius:12px;overflow:hidden}
.rct-patient-results{max-height:250px;min-height:70px;overflow-y:auto;padding:8px}
.rct-patient-option{display:flex!important;align-items:center;gap:12px;margin:0!important;padding:10px;border-bottom:1px solid var(--theme-line,#edf2f1);cursor:pointer}
.rct-patient-option:last-child{border-bottom:0}.rct-patient-option:hover{background:var(--theme-surface-muted,#f2f8f5)}
.rct-patient-option>span{flex:1;min-width:0;margin:0!important}
.rct-patient-option b,.rct-patient-option span small{display:block;overflow-wrap:anywhere}.rct-patient-option.is-enrolled{opacity:.55;cursor:default}
.rct-patient-paging{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px;border-top:1px solid var(--theme-line,#dce7e7)}
.rct-patient-selection{margin:14px 0}.rct-patient-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-height:120px;overflow-y:auto}
.rct-patient-chips button{font-size:12px;padding:6px 10px;overflow-wrap:anywhere;max-width:100%;white-space:normal}

/* Search matches stay visible without opening the native selection menu. */
.rct-picker-status { margin:8px 0; color:var(--theme-muted,#526f78); font-size:14px; }
.rct-picker-results { display:grid; gap:8px; max-height:240px; overflow:auto; margin-bottom:12px; }
.rct-picker-results:empty { display:none; }
.rct-picker-results button { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-width:0; min-height:48px; padding:10px 14px; border:1px solid var(--theme-line,#dce7e7); border-radius:9px; background:var(--theme-surface,#fff); color:var(--theme-ink,#17312d); text-align:left; cursor:pointer; font:inherit; }
.rct-picker-results button span { min-width:0; overflow-wrap:anywhere; }
.rct-picker-results button strong { flex-shrink:0; color:var(--theme-green,#21856c); font-size:14px; }
.rct-picker-results button:hover,.rct-picker-results button[aria-pressed="true"] { border-color:var(--theme-green,#21856c); background:var(--theme-green-soft,#eaf6f1); }
.rct-picker-results button:focus-visible { outline:2px solid var(--theme-green,#21856c); outline-offset:-2px; }

#rctModalForm [aria-invalid=true]{border-color:var(--theme-yellow,#b66222);outline:2px solid var(--theme-focus-warning,#b6622255)}

button[data-action-unavailable],button[data-action-unavailable]:hover,.rct-more-menu button[data-action-unavailable],.rct-studybar button.ghost[data-action-unavailable]{background:var(--theme-surface-muted,#eef2f0);color:var(--theme-muted,#5b6b65);border:1px solid var(--theme-line,#cdd7d2);box-shadow:none;cursor:help}
button[data-action-unavailable]:focus-visible{outline:2px solid var(--theme-green,#24745d);outline-offset:2px}
.rct-more-actions{position:relative;flex:none}
.rct-more-actions>summary{list-style:none;cursor:pointer;border:1px solid var(--line);background:var(--theme-surface,#fff);color:var(--ink);border-radius:10px;padding:10px 14px;font-weight:600;white-space:nowrap}
.rct-more-actions>summary::-webkit-details-marker{display:none}
.rct-more-actions>summary::after{content:' ▾'}
.rct-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10;display:grid;gap:6px;min-width:210px;max-width:calc(100vw - 48px);padding:8px;background:var(--theme-surface,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #153e2f26}
.rct-more-menu button{text-align:left;width:100%;white-space:normal}
.rct-more-menu .ghost{background:var(--theme-surface,#fff);color:var(--ink)}
.rct-more-menu .ghost.danger{color:var(--red)}
@media(max-width:640px){.rct-more-menu{position:static;min-width:0;width:min(260px,calc(100vw - 60px));margin-top:6px;box-sizing:border-box}}

/* Shared across plain confirmation labels, editors, filters and picker rows. */
label:has(> input:is([type=checkbox], [type=radio])) {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
label:has(> input:is([type=checkbox], [type=radio])) > span {
  min-width: 0;
  margin: 0;
}
label:has(> input:is([type=checkbox], [type=radio]):disabled) { cursor: default; }
