.portal-toolbar,.portal-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.portal-toolbar{margin-bottom:25px}.portal-toolbar h2,.portal-section-heading h2{margin:6px 0 8px}.portal-toolbar p,.portal-section-heading p{margin:0;color:#52708a;line-height:1.65}.portal-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 28px}.portal-nav a{padding:10px 14px;border:1px solid #dbe5ed;border-radius:999px;text-decoration:none;color:#0d2851;font-weight:700;background:#fff}.portal-section{margin:0 0 40px;scroll-margin-top:105px}.portal-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.portal-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid #dbe5ed;border-radius:16px;padding:23px;background:white;box-shadow:0 8px 28px #0d285109}.portal-card h3{margin:0;color:#0d2851}.portal-card p{color:#52708a;line-height:1.65;margin:0 0 7px}.portal-card .btn{margin-top:auto}.portal-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e9f3fa;color:#0d2851;font-weight:800}.portal-session-meta{display:flex;gap:16px;color:#52708a;font-weight:700}.portal-controls{margin-top:25px;flex-wrap:wrap}.portal-question{max-width:850px}.portal-question-meta,.portal-helper{color:#59728a;font-size:.9rem}.portal-stem{white-space:pre-line;font-size:1.15rem;line-height:1.75;color:#162c43}.portal-options{display:grid;gap:10px;margin:16px 0}.portal-option{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #dbe5ed;border-radius:12px;background:#fff;cursor:pointer;line-height:1.55}.portal-option:has(input:checked){border-color:#1282bd;background:#eff8fc}.portal-option input{margin-top:4px;accent-color:#1282bd}.portal-feedback,.portal-hint{padding:16px;border-radius:12px;background:#edf7f2;color:#244b3a;margin-top:18px;line-height:1.65}.portal-feedback[hidden]{display:none}.portal-hint{background:#fff8e9;color:#76500b}.portal-format-section{border:1px solid #dbe5ed;border-radius:12px;padding:14px 18px;margin:15px 0}.portal-format-section legend{font-weight:750;color:#0d2851;padding:0 6px}.portal-field{display:grid;gap:7px;margin:12px 0;max-width:600px;color:#304b62;font-weight:650}.portal-field select,.portal-english-launch select{padding:12px;border:1px solid #b9c8d5;border-radius:9px;font:inherit;background:white}.portal-warning{color:#875019;background:#fff8e9;padding:13px;border-radius:9px}.portal-activity-grid .status-pill{margin:2px 0 8px}.pending{background:#f8fafc}.portal-report-list,.portal-case-list{display:grid;gap:12px;margin-top:16px}.portal-report,.portal-report-detail,.portal-case,.ngn-document{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 20px;border:1px solid #dbe5ed;border-radius:12px;background:#fff}.portal-report-detail{display:block;border-color:#168de2}.portal-case{flex-wrap:wrap}.portal-case>div{font-weight:750;color:#0d2851}.portal-case p{margin:5px 0;color:#52708a}.portal-english-launch{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.portal-english-launch label{display:grid;gap:7px;font-weight:700;color:#304b62}.ngn-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;margin-bottom:20px}.ngn-document{display:block;background:#f5f9fc}.ngn-document p{line-height:1.6;margin-bottom:0}.portal-completion{font-size:1.1rem;padding:22px;border-radius:12px;background:#edf7f2}.portal-order-list{display:grid;gap:8px}@media(max-width:800px){.portal-activity-grid{grid-template-columns:1fr 1fr}.portal-toolbar,.portal-section-heading{align-items:flex-start;flex-direction:column}.ngn-documents{grid-template-columns:1fr}}@media(max-width:560px){.portal-activity-grid{grid-template-columns:1fr}.portal-report{align-items:flex-start;flex-direction:column}.portal-session-meta{font-size:.88rem}}
.plan-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.plan-form label,.plan-entry-form label{display:grid;gap:7px;font-weight:700;color:#304b62}.plan-form input,.plan-entry-form input,.plan-entry-form select,.plan-entry-form textarea{padding:12px;border:1px solid #b9c8d5;border-radius:9px;font:inherit}.plan-entry-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.plan-entry-form textarea{grid-column:1/-1;min-height:70px}.plan-entry-form button{justify-self:start}.plan-subject{display:grid;grid-template-columns:minmax(180px,1fr) 2fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #e2eaf0}.plan-progress{height:9px;border-radius:99px;background:#e7eef3;overflow:hidden}.plan-progress span{display:block;height:100%;background:#168de2}@media(max-width:750px){.plan-form,.plan-entry-form{grid-template-columns:1fr 1fr}}@media(max-width:520px){.plan-form,.plan-entry-form{grid-template-columns:1fr}.plan-subject{grid-template-columns:1fr}.plan-entry-form textarea{grid-column:auto}}

/* My Study Plan workspace v4.7 */
.plan-workspace,.plan-resources,.plan-progress,.plan-area-progress,.plan-history{margin:24px 0}
.plan-workspace>p,.plan-resources>p,.plan-history>p{max-width:850px;color:#60798d;line-height:1.6}
.plan-target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.plan-form.plan-form-expanded{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}
.plan-form-expanded>.plan-target-grid,.plan-form-expanded>.plan-allocation-heading,.plan-form-expanded>.plan-allocation-grid,.plan-form-expanded>.portal-allocation-summary,.plan-form-expanded>button{grid-column:1/-1;min-width:0}
.plan-form-expanded>.btn{justify-self:start}
.plan-form-expanded>.portal-allocation-summary{margin:0;padding:13px 15px;border:1px solid #dbe5ed;border-radius:10px;background:#f7fafc;line-height:1.5}
.plan-workspace>p{max-width:850px}
.plan-field,.plan-allocation-field{display:grid;gap:7px;color:#304b62;font-weight:700}
.plan-field input,.plan-field select,.plan-allocation-field input{box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid #b9c8d5;border-radius:9px;background:#fff;color:#183a66;font:inherit}
.plan-field input:disabled,.plan-allocation-field input:disabled{background:#f3f6f8;color:#60798d}
.plan-allocation-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0 12px}
.plan-allocation-help{max-width:850px;margin:-8px 0 0;color:#60798d;line-height:1.55}
.plan-allocation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plan-allocation-field{padding:13px;border:1px solid #e2eaf0;border-radius:10px;background:#fff}
.plan-allocation-field small{font-weight:400;color:#60798d}
.portal-allocation-summary{font-weight:700;color:#183a66}
.plan-progress{height:auto;margin:22px 0;padding:18px;border:1px solid #e2eaf0;border-radius:12px;background:#fff}
.plan-stat{font-size:1.35rem;font-weight:800;color:#0d2851}.plan-stat-label{margin:4px 0 12px;color:#60798d}
.plan-progress-track{height:9px;border-radius:99px;background:#e7eef3;overflow:hidden}.plan-progress-track span{display:block;height:100%;border-radius:inherit;background:#168de2}
.plan-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plan-progress-item{padding:13px;border:1px solid #e2eaf0;border-radius:10px;background:#fff}
.plan-progress-item-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.plan-progress-item-heading span{white-space:nowrap;color:#60798d}
.portal-plan-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.portal-plan-resource{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:center;padding:13px;border:1px solid #e2eaf0;border-radius:11px;background:#fff;color:#183a66;text-decoration:none}
.portal-plan-resource:hover,.portal-plan-resource:focus-visible{border-color:#168de2;background:#f7fbff}
.portal-plan-resource-icon{grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eff7fb;color:#167a9c;font-weight:800}
.portal-plan-resource-copy{font-weight:750}.portal-plan-resource small{grid-column:2;line-height:1.35;color:#60798d}.portal-plan-resource-arrow{grid-column:3;grid-row:1/3;font-size:1.25rem}
.plan-entry-form-expanded{grid-template-columns:repeat(4,minmax(0,1fr));padding:16px;border-radius:12px;background:#f7fafc}
.plan-entry-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;align-items:center}
.plan-history-list{display:grid;gap:9px;margin-top:14px}
.plan-history-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px;border:1px solid #e2eaf0;border-radius:11px;background:#fff}
.plan-history-copy{display:grid;gap:4px}.plan-history-copy span,.plan-history-copy p{margin:0;color:#60798d}.plan-history-row .plan-entry-actions{grid-column:auto;flex-wrap:nowrap}
body[data-portal-theme="dark"] .plan-field,body[data-portal-theme="dark"] .plan-allocation-field,body[data-portal-theme="dark"] .portal-allocation-summary{color:#e8eff5}
body[data-portal-theme="dark"] .portal-plan-resource,body[data-portal-theme="dark"] .plan-allocation-field,body[data-portal-theme="dark"] .plan-progress-item,body[data-portal-theme="dark"] .plan-progress,body[data-portal-theme="dark"] .plan-history-row{background:#18283a;color:#e8eff5;border-color:#30445b}
body[data-portal-theme="dark"] .plan-field input,body[data-portal-theme="dark"] .plan-allocation-field input{background:#24364a;color:#e8eff5;border-color:#40566f}
body[data-portal-theme="dark"] .portal-plan-resource small,body[data-portal-theme="dark"] .plan-progress-item-heading span,body[data-portal-theme="dark"] .plan-history-copy span,body[data-portal-theme="dark"] .plan-history-copy p{color:#b9c9d8}
@media(max-width:850px){.portal-plan-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.portal-plan-resource-grid,.plan-target-grid,.plan-allocation-grid,.plan-progress-grid{grid-template-columns:1fr}.plan-history-row{align-items:flex-start;flex-direction:column}.plan-history-row .plan-entry-actions{width:100%}.plan-history-row .plan-entry-actions .btn{flex:1}.plan-allocation-heading{align-items:flex-start;flex-direction:column}.plan-form.plan-form-expanded{gap:16px}.plan-allocation-heading{margin-top:6px}}
#profile-form,#support-form{margin-top:16px}.portal-nav{max-height:none}.portal-ticket-message{white-space:pre-wrap;line-height:1.65;padding:12px 0;border-top:1px solid #e2eaf0}.notification-unread{border-left:4px solid #168de2}.portal-profile-save{align-self:end}
.portal-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.portal-page-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:185px;padding:22px;border:1px solid #dbe5ed;border-radius:16px;background:#fff;color:#0d2851;text-decoration:none;box-shadow:0 8px 28px #0d285109;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.portal-page-card:hover,.portal-page-card:focus-visible{transform:translateY(-2px);border-color:#168de2;box-shadow:0 12px 30px #0d285115}.portal-page-card>span{color:#1680b7;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.portal-page-card h3{margin:2px 0;color:#0d2851}.portal-page-card p{margin:0;color:#52708a;line-height:1.55}.portal-page-card strong{margin-top:auto;color:#087ab5}.portal-nav a[aria-current=page]{border-color:#168de2;background:#eaf6fc;color:#075d8c}.portal-report-detail[hidden]{display:none}@media(max-width:900px){.portal-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.portal-page-grid{grid-template-columns:1fr}.portal-page-card{min-height:150px}}

/* NGN clinical notes read in chronological vertical order. */
.ngn-documents{grid-template-columns:minmax(0,1fr);gap:12px}.ngn-document{align-items:flex-start;display:block}.ngn-document strong{display:block;margin-bottom:6px}.ngn-document p{margin-top:0}
.ngn-selection-count{margin:4px 0 0;color:#52708a;font-size:.92rem;font-weight:700}
body[data-portal-theme=dark] .ngn-selection-count{color:#c4d2df}

/* Wrong answers use a pale red feedback panel; correct and partial results retain distinct tones. */
.portal-feedback.is-incorrect{background:#fff0f0;color:#7f1d1d;border:1px solid #f2b8b5}.portal-feedback.is-correct{background:#edf7f2;color:#244b3a;border:1px solid #c5e6d3}.portal-feedback.is-partial{background:#fff8e9;color:#76500b;border:1px solid #f0dda9}.portal-feedback.is-recorded{background:#eef5fb;color:#23445f;border:1px solid #d0e0ee}
body[data-portal-theme=dark] .portal-feedback.is-incorrect{background:#3b2529;color:#ffdfe1;border-color:#75464d}body[data-portal-theme=dark] .portal-feedback.is-correct{background:#20382f;color:#d8f4e4;border-color:#3d6755}body[data-portal-theme=dark] .portal-feedback.is-partial{background:#3b3322;color:#ffedc2;border-color:#725b2e}body[data-portal-theme=dark] .portal-feedback.is-recorded{background:#233445;color:#deebf6;border-color:#435d74}
@media(prefers-color-scheme:dark){body[data-portal-theme=system] .portal-feedback.is-incorrect{background:#3b2529;color:#ffdfe1;border-color:#75464d}body[data-portal-theme=system] .portal-feedback.is-correct{background:#20382f;color:#d8f4e4;border-color:#3d6755}body[data-portal-theme=system] .portal-feedback.is-partial{background:#3b3322;color:#ffedc2;border-color:#725b2e}body[data-portal-theme=system] .portal-feedback.is-recorded{background:#233445;color:#deebf6;border-color:#435d74}}

/* NGN unfolding case workspace v4.6 */
.ngn-case-session{max-width:none}.ngn-case-heading{margin-bottom:20px}.ngn-case-heading p{max-width:720px}.ngn-case-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px}.ngn-record-pane,.ngn-question-pane{min-width:0;padding:20px;border:1px solid #dbe5ed;border-radius:16px;background:#fff;box-shadow:0 8px 28px #0d285109}.ngn-pane-heading{display:grid;gap:5px;padding-bottom:14px}.ngn-pane-heading strong{font-size:1.08rem;color:#0d2851}.ngn-record-tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 2px 10px;border-bottom:1px solid #dbe5ed}.ngn-record-tab{flex:0 0 auto;padding:9px 12px;border:1px solid #dbe5ed;border-radius:9px;background:#f7fafc;color:#23445f;font:inherit;font-size:.92rem;font-weight:700;cursor:pointer}.ngn-record-tab[aria-selected=true]{background:#eaf6fc;border-color:#1682bd;color:#075d8c}.ngn-record-tab:focus-visible{outline:3px solid #80c9ee;outline-offset:2px}.ngn-documents{display:block;min-height:170px;max-height:58vh;overflow:auto;margin:0;padding:15px 2px}.ngn-document{display:block;margin:0 0 12px;padding:15px;border:1px solid #dbe5ed;border-radius:11px;background:#f7fafc}.ngn-document:last-child{margin-bottom:0}.ngn-document strong{display:block;margin-bottom:7px;color:#0d2851}.ngn-document p{margin:0;color:#304b62;line-height:1.65;white-space:pre-line}.ngn-profile-row{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr);gap:12px;padding:11px 0;border-bottom:1px solid #e6edf2}.ngn-profile-row dt{font-weight:700;color:#52708a}.ngn-profile-row dd{margin:0;color:#183a66;white-space:pre-wrap;overflow-wrap:anywhere}.ngn-empty-record{padding:20px 8px;color:#52708a;line-height:1.6}.ngn-question-progress{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:20px}.ngn-question-progress>div{display:grid;gap:5px}.ngn-question-progress strong{color:#0d2851;font-size:1rem}.ngn-question-progress progress{width:min(160px,32%);height:10px;accent-color:#1682bd}.ngn-question-pane .portal-question,.ngn-question-pane .portal-stem{max-width:none}.ngn-question-pane .portal-format-section{margin-left:0;margin-right:0}.ngn-case-actions{margin-top:20px}.ngn-case-actions .btn{min-height:46px}
@media(max-width:900px){.ngn-case-workspace{grid-template-columns:1fr}.ngn-documents{max-height:42vh}.ngn-question-progress progress{width:min(180px,40%)}}
@media(max-width:560px){.ngn-record-pane,.ngn-question-pane{padding:15px}.ngn-case-heading{gap:10px}.ngn-profile-row{grid-template-columns:1fr;gap:4px}.ngn-question-progress{align-items:flex-start;flex-direction:column}.ngn-question-progress progress{width:100%}}
body[data-portal-theme="dark"] .ngn-record-pane,body[data-portal-theme="dark"] .ngn-question-pane{background:#1c2d40;border-color:#40566f}body[data-portal-theme="dark"] .ngn-pane-heading strong,body[data-portal-theme="dark"] .ngn-question-progress strong,body[data-portal-theme="dark"] .ngn-document strong{color:#e8eff5}body[data-portal-theme="dark"] .ngn-record-tab{background:#24364a;color:#e8eff5;border-color:#40566f}body[data-portal-theme="dark"] .ngn-record-tab[aria-selected=true]{background:#123d54;border-color:#55a9cf;color:#e6f7ff}body[data-portal-theme="dark"] .ngn-document{background:#24364a;border-color:#40566f}body[data-portal-theme="dark"] .ngn-document p,body[data-portal-theme="dark"] .ngn-profile-row dd{color:#e0e9f0}body[data-portal-theme="dark"] .ngn-profile-row dt,body[data-portal-theme="dark"] .ngn-empty-record{color:#c4d2df}

/* NGN_PATIENT_OVERVIEW_NARRATIVE_V4_10 */
.ngn-patient-overview{margin:0;padding:14px 15px;border:1px solid #dbe5ed;border-radius:11px;background:#f7fafc;color:#304b62;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}.ngn-patient-profile-list{margin:0;padding:14px 15px 14px 34px;border:1px solid #dbe5ed;border-radius:11px;background:#f7fafc;color:#304b62;line-height:1.65}.ngn-patient-profile-list li+li{margin-top:6px}body[data-portal-theme="dark"] .ngn-patient-overview,body[data-portal-theme="dark"] .ngn-patient-profile-list{background:#24364a;border-color:#40566f;color:#e0e9f0}
