/* Build 8 additions use the existing EDA theme and shared controls. */
#menuBtn.mobile-only,#portalMenuBtn.mobile-only{color:var(--navy,#12324a);line-height:1;min-width:44px;min-height:44px;padding:8px}
#menuBtn svg,#portalMenuBtn svg{display:block;margin:auto}
#appShell .eda06-lectures-card .eda06-primary-head button{color:#fff;border-color:#b4d2f4;background:#214e7a}
#appShell .eda06-lectures-card .eda06-primary-head button:hover{background:#173d64}
#page-students.eda08-profile-open>:not(#eda08Profile){display:none}
.eda08-profile-toolbar,.eda08-profile-tabs,.eda08-profile-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin-block:.65rem}
.eda08-profile-tabs .eda08-current,.eda08-profile-roster .eda08-current{background:var(--eda-tint,#e9f2fc);color:var(--navy,#12324a);border-color:var(--eda-line,#b9cde0)}
.eda08-profile-layout{display:grid;grid-template-columns:minmax(12rem,18rem) minmax(0,1fr);gap:1rem}
.eda08-profile-main{min-width:0}
.eda08-profile-roster{align-self:start;max-height:70vh;overflow:auto}
.eda08-profile-roster .btn{display:block;width:100%;text-align:left;margin-top:.3rem}
.eda08-profile-identity{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem}
.eda08-profile-identity h2,.eda08-profile-identity p{margin:0}
.eda08-profile-identity label:first-of-type{margin-inline-start:auto}
#eda08Photo{width:64px;height:64px;flex:0 0 64px;overflow:hidden}
#eda08Photo img{width:100%;height:100%;object-fit:cover}
.eda08-photo-label{position:relative;cursor:pointer}
.eda08-photo-label input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.eda08-photo-label:focus-within{outline:2px solid var(--navy,#12324a)}
.eda08-profile-alerts{margin-block:.75rem;background:#fff7e9;border:1px solid #eac991;color:#603c12}
.eda08-profile-alerts ul{padding-inline-start:1.25rem}
.eda08-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin-block:.75rem}
.eda08-fields div{padding:.65rem;border-radius:.5rem;background:var(--eda-surface-alt,#f3f6fa);overflow-wrap:anywhere}
.eda08-fields dt{font-size:.82rem}
.eda08-fields dd{margin:0;font-weight:600}
.eda08-roster-table{padding:0;overflow:auto}
.eda08-roster-table th small{display:block;font-weight:400}
.eda08-roster-table tbody tr:nth-child(even){background:var(--eda-surface-alt,#f3f6fa)}
.eda08-mobile-roster{display:none}
.eda08-home-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));gap:.7rem;margin-block:1rem}
.eda08-home-shortcuts h3{grid-column:1/-1;margin:0;color:var(--eda-theme-text,#142a42);font-size:1rem}
#portalHubView .eda08-home-link{
  --shortcut-accent:var(--eda-theme-active-hover,#225da6);
  --shortcut-fill:var(--eda-theme-tint,#eaf3ff);
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:.85rem 1rem;min-height:4.75rem;border:1px solid var(--eda-theme-border,#b9cde1);
  border-inline-start:4px solid var(--shortcut-accent);border-radius:.8rem;
  background:var(--shortcut-fill);color:#142a42;text-align:left;cursor:pointer;
  box-shadow:0 2px 4px #142a4212;font:inherit;
}
#portalHubView .eda08-home-link[data-shortcut="peersupport"]{--shortcut-fill:#e8f5f1;--shortcut-accent:#1c695d}
#portalHubView .eda08-home-link[data-shortcut="events"]{--shortcut-fill:#fff3df;--shortcut-accent:#805111}
#portalHubView .eda08-home-link[data-shortcut="training"]{--shortcut-fill:#f1ebfa;--shortcut-accent:#62418e}
.eda08-home-link strong,.eda08-home-link small{display:block}
.eda08-home-link small{margin-top:.25rem;color:#354c66}
.eda08-home-link-arrow{
  display:grid;place-items:center;flex:0 0 1.8rem;height:1.8rem;
  border-radius:50%;background:var(--shortcut-accent);color:#fff;font-size:1.35rem;line-height:1;
}
#portalHubView .eda08-home-link:hover{border-color:var(--shortcut-accent);box-shadow:0 3px 9px #142a4226}
#portalHubView .eda08-home-link:focus-visible{outline:2px solid var(--shortcut-accent);outline-offset:3px}

#portalHubView .ps-immediate-actions .ps-emergency-call{
  min-height:44px;display:inline-flex;align-items:center;padding:.45rem .85rem;
  border-color:#9b1c22;background:#9b1c22;color:#fff;font-weight:700;text-decoration:none;
}
#portalHubView .ps-immediate-actions .ps-emergency-call:hover{background:#751319;color:#fff}
#portalHubView .ps-immediate-actions .ps-emergency-call:focus-visible{outline:2px solid #751319;outline-offset:3px}
.eda08-signature-pad{display:block;width:100%;height:auto;max-height:155px;border:1px solid #b7c9dc;border-radius:.45rem;background:#fff;touch-action:none}
.eda08-push-offer{position:fixed;z-index:1000;bottom:max(1rem,env(safe-area-inset-bottom));left:1rem;right:1rem;margin:0 auto;max-width:28rem;box-shadow:0 8px 26px #14345029}
@media(max-width:760px){
 .eda08-profile-layout{display:block}
 .eda08-profile-roster{display:none}
 .eda08-mobile-roster{display:block;flex:1;min-width:9rem}
 .eda08-profile-identity label:first-of-type{margin-inline-start:0}
 .eda08-roster-table thead{display:none}
 .eda08-roster-table table,.eda08-roster-table tbody,.eda08-roster-table tr{display:block;width:100%}
 .eda08-roster-table tr{padding:.5rem;border-bottom:1px solid #dbe5ed}
 .eda08-roster-table th,.eda08-roster-table td{display:flex;justify-content:space-between;gap:.5rem;border:0;padding:.35rem;text-align:right}
 .eda08-roster-table td[data-label]::before{content:attr(data-label);text-align:left}
}
.eda08-roster-watch{display:flex;gap:.6rem;flex-wrap:wrap;margin-block:.65rem}
.eda08-roster-watch:empty{display:none}
.eda08-roster-watch div{display:flex;gap:.5rem;border:1px solid var(--eda-line,#dbe5ed);background:var(--eda-surface-alt,#f3f6fa);padding:.45rem .65rem;border-radius:.5rem}
#appShell.course-nav-collapsed #sidebar nav{scrollbar-width:none}
#appShell.course-nav-collapsed #sidebar nav::-webkit-scrollbar{display:none}

/* Build 8 Agency billing shares existing buttons, tables, and theme tokens. */
.eda-billing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.eda-billing-head h2{margin:.3rem 0}.eda-billing-head p{margin:.35rem 0}
.eda-billing-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.eda-billing-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}
.eda-billing-purpose{white-space:pre-wrap;overflow-wrap:anywhere}
.eda-billing-date{display:inline-flex;align-items:center;gap:.5rem}
.eda-bill-line input{flex:1;min-width:7rem}
[data-testing-allocations]:not(:empty){margin-top:1rem}
[data-testing-allocations] .table-wrap .btn{margin:.15rem}

.eda08-document-evidence {
  display: grid;
  gap: 10px;
  margin: 0;
}
.eda08-document-evidence h4,
.eda08-document-evidence p { margin: 0; }
.eda08-document-evidence details { min-width: 0; }
.eda08-document-evidence summary {
  padding: 9px 0;
  font-weight: 600;
  cursor: pointer;
}
.eda08-document-evidence .smart-policy-choice { margin: 5px 0; }
.eda08-document-evidence .smart-policy-choice-body { overflow-wrap: anywhere; }
.eda08-document-evidence > button { justify-self: start; }
@media (max-width: 640px) {
  .smart-workspace:has(.eda08-document-evidence) .smart-action-bar { position: static; }
}

.eda08-profile-attention-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.eda08-profile-attention-row select { width: auto; }

@media(min-width:901px){
  #appShell.course-nav-collapsed #eda08LmsPushButton .nav-text{display:none}
}

details.eda08-profile-alerts { padding:.55rem .8rem; }
.eda08-profile-alerts summary { cursor:pointer; }
.eda08-profile-alert-count { margin-inline-start:.5rem; padding:.1rem .45rem; border-radius:999px; background:#f6e1b5; color:#603c12; font-size:.82rem; font-weight:700; }
.eda08-profile-alert-detail { margin-top:.65rem; }

/* Compact shortcuts and course resources. */
#portalHubView .eda08-home-shortcuts { grid-template-columns:repeat(auto-fit,minmax(min(10.5rem,100%),1fr));gap:.45rem;margin-block:.7rem; }
#portalHubView .eda08-home-link { min-height:44px;padding:.35rem .55rem;gap:.4rem;font-size:.88rem; }
#portalHubView .eda08-home-link-arrow { flex-basis:1.3rem;height:1.3rem;font-size:1.05rem; }
.eda-program-card { min-width:0;display:grid;align-content:start;gap:.35rem; }
.eda-program-removal { justify-self:start; }

#page-files .eda-resource-panel { min-width:0; }
#page-files .resources-view-tabs { margin:0 0 .65rem;display:flex;flex-wrap:wrap; }
.eda-resource-filters { display:flex;flex-wrap:wrap;gap:.5rem;align-items:center; }
.eda-resource-filters .search { flex:1 1 14rem;min-width:0; }
.eda-resource-filters select { width:auto;max-width:100%; }
.eda-resource-list { margin:0;padding:0;list-style:none; }
.eda-resource-row { display:flex;align-items:center;gap:.65rem;padding:.6rem .15rem;border-top:1px solid var(--eda-theme-border,#e4eaf2); }
.eda-resource-copy { flex:1;min-width:0;overflow-wrap:anywhere; }
.eda-resource-copy strong,.eda-resource-copy small { display:block; }
.eda-resource-copy small { color:var(--eda-theme-muted,#526775); }
.eda-resource-actions { display:flex;gap:.35rem;flex-wrap:wrap; }
#page-files .resources-scorm-panel summary { cursor:pointer; }
#scormPackagesView { margin-top:.65rem; }
@media(max-width:560px) {
  .eda-resource-row { display:grid;grid-template-columns:auto minmax(0,1fr); }
  .eda-resource-actions { grid-column:2; }
  .eda-resource-filters .search { flex-basis:100%; }
}
#appShell .student-current-unit {
  display:inline-flex; align-items:center; vertical-align:middle; margin:.15rem .35rem;
  padding:.25rem .6rem; border-radius:6px; background:#185b37; color:#fff;
  font-size:.82rem; font-weight:800; line-height:1.25;
}
#appShell .student-course-unit.is-active-current { border-inline-start:4px solid #185b37!important; }

/* Role homepages use the live portal's existing navigation and data. */
.eda-home-grid { display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;align-items:stretch; }
.eda-home-grid > * { min-width:0;margin:0!important; }
.eda-home-grid > .panel { padding:17px 20px; }
.eda-home-grid .panel-head { gap:10px;flex-wrap:wrap; }
.eda-home-grid .panel-head h3 { margin:0; }
.eda-home-feature[hidden] { display:none!important; }
#appShell #page-studenthome .eda-home-feature,
#appShell #page-dashboard .eda-home-feature,
#portalHubView .eda-home-feature {
  padding:22px 25px!important;min-height:185px;align-content:center;
  background:repeating-linear-gradient(138deg,transparent 0 24px,#b9e1e70c 25px,transparent 26px 41px),#103952!important;
  border:1px solid #103952!important;border-radius:14px!important;color:#fff!important;
}
#page-studenthome .eda-home-feature { display:grid; }
#appShell #page-dashboard .eda-home-feature h3,
#appShell #page-studenthome .eda-home-feature h3,
#portalHubView .eda-home-feature h3 { color:#fff!important;font-size:clamp(1.35rem,2vw,1.85rem)!important;line-height:1.18!important;margin:.3rem 0 .45rem!important;overflow-wrap:anywhere; }
.eda-home-feature p { margin:0 0 .35rem;color:#d9ebf1;overflow-wrap:anywhere; }
.eda-home-feature .eda-home-kicker { color:#a6e8df;font-size:.76rem;font-weight:750; }
#appShell .eda-home-feature .eda-home-primary,
#portalHubView .eda-home-feature .eda-home-primary,
#appShell .eda-home-staff-next .eda06-dash-listrow {
  display:inline-flex;align-items:center;justify-self:start;width:auto;min-height:40px;
  margin-top:.55rem;padding:.45rem .8rem!important;background:#d9f8ef!important;
  color:#123842!important;border:1px solid #d9f8ef!important;border-radius:8px;
}
#appShell .eda-home-staff-next .eda06-dash-listrow .eda06-rowtext strong { color:#123842; }
#appShell .eda-home-staff-next .eda06-dash-listrow .eda06-rowglyph,
#appShell .eda-home-staff-next .eda06-dash-listrow small { display:none; }
#appShell .eda-home-staff-next .eda06-dash-listrow .eda06-rowarrow { color:#123842;margin-left:8px; }
#appShell #page-dashboard .eda06-dashboard-grid { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px; }
#appShell #page-dashboard .eda06-dashboard-grid > .eda06-dash-card { grid-column:auto!important;order:0!important; }
body.eda06-student-session #appShell #page-studenthome .eda-home-progress #studentHomeKpis { grid-template-columns:repeat(auto-fit,minmax(min(7rem,100%),1fr));gap:8px!important;margin-bottom:0; }
body.eda06-student-session #appShell #page-studenthome .eda-home-progress #studentHomeKpis .kpi { min-height:0!important;padding:10px!important;box-shadow:none!important; }
body.eda06-student-session #appShell #page-studenthome .eda-home-progress #studentHomeKpis .value { font-size:1.17rem!important;line-height:1.2; }
#appShell #page-studenthome .eda-home-notices .panel-head { background:transparent!important;padding:0 0 10px!important; }
#appShell #page-studenthome .eda-home-notices #studentNotices { padding:0; }
.eda-home-coming .list-item { padding:9px 0; }
.eda-home-tools { grid-column:1/-1; }
.eda-home-tools > summary { cursor:pointer;font-weight:700; }
.eda-home-tools[open] > summary { margin-bottom:12px; }
.eda-home-agency .eda-home-agency-row {
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  width:100%;min-height:44px;text-align:left;border:0;border-top:1px solid #e3ebf0;
  color:var(--eda-theme-text,#183349);background:transparent;font:inherit;cursor:pointer;padding:7px 3px;
}
.eda-home-agency-row strong { color:#135c61;background:#e5f3f3;padding:3px 8px;border-radius:7px; }
@media(max-width:780px) {
  .eda-home-grid,#appShell #page-dashboard .eda06-dashboard-grid { grid-template-columns:minmax(0,1fr); }
  .eda-home-grid > .panel { padding:14px; }
}
.eda-home-agency .eda-home-queue:only-child { grid-column:1/-1; }
