/* Shared portal palette. Status colours and dark lesson/message cards stay semantic. */
body.learning-dashboard .dashboard-heading::after{display:none!important}
body.learning-dashboard .dashboard-heading .today-label{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;padding:0;border:0;border-radius:0;background:transparent;color:#526d83;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap}
body.learning-dashboard .overview-aside-heading{margin-bottom:24px}
body.learning-dashboard .resources-preview .gentle-empty::before{display:none!important}
@media(max-width:1100px){body.learning-dashboard .dashboard-heading{flex-wrap:wrap;gap:12px}body.learning-dashboard .dashboard-heading .today-label{display:inline-flex!important;flex-basis:100%}}
body.learning-dashboard .dashboard-heading .today-label::before{content:"";width:15px;height:15px;flex:0 0 15px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526d83' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='3'/%3E%3Cpath d='M8 3v4m8-4v4M4 11h16m-12 4h3'/%3E%3C/svg%3E")}
@media(max-width:600px){body.learning-dashboard .dashboard-heading{flex-wrap:wrap;gap:12px}body.learning-dashboard .dashboard-heading .today-label{display:inline-flex!important}}
body.learning-dashboard :is(.schedule-hero,.dashboard-heading){--section-art:url('/portal-art-calendar.svg')}
body.learning-dashboard :is(.requests-hero,.messages-heading){--section-art:url('/portal-art-messages.svg')}
body.learning-dashboard .library-hero{--section-art:var(--portal-art)}
body.admin-workspace .admin-hero{--section-art:url('/portal-art-calendar.svg')}
body:is(.learning-dashboard,.admin-workspace) :is(.schedule-hero,.dashboard-heading,.requests-hero,.library-hero,.messages-heading,.admin-hero)::after{content:"";display:block;width:80px;height:60px;flex:0 0 80px;align-self:center;background:var(--section-art) center/contain no-repeat}
body.learning-dashboard .lesson-messages .chat-back{display:inline-flex;align-items:center;min-height:40px;padding:9px 15px;border:1px solid #c4d7e7;border-radius:10px;background:white;color:#234760;text-decoration:none!important;font-weight:600}
@media(max-width:600px){body:is(.learning-dashboard,.admin-workspace) :is(.schedule-hero,.dashboard-heading,.requests-hero,.library-hero,.messages-heading,.admin-hero)::after{width:56px;height:42px;flex-basis:56px}}
body:is(.learning-dashboard,.admin-workspace) :is(.gentle-empty,.finance-empty,.admin-empty-state,.group-empty){display:block!important;text-align:center}
body:is(.learning-dashboard,.admin-workspace) :is(.gentle-empty,.admin-empty-state){--portal-art:url('/portal-art-calendar.svg')}
body:is(.learning-dashboard,.admin-workspace) :is(.group-lessons-page .hero,.group-empty){--portal-art:url('/portal-art-group.svg?v=2')}
body:is(.learning-dashboard,.admin-workspace) :is(.finance-hero,.finance-empty){--portal-art:url('/portal-art-payments.svg')}
body:is(.learning-dashboard,.admin-workspace) .inbox-hero{--portal-art:url('/portal-art-messages.svg')}
body:is(.learning-dashboard,.admin-workspace) :is(.gentle-empty,.finance-empty,.admin-empty-state,.group-empty)::before{margin:0 auto 18px!important;flex:none}
body.learning-dashboard .lesson-messages .chat-header{padding:18px 24px;gap:12px;flex-wrap:wrap}
body.learning-dashboard .lesson-messages .chat-header h1{font-size:21px!important;line-height:1.3;margin:0!important;letter-spacing:-.3px}
body.learning-dashboard .lesson-messages .chat-header p{margin:3px 0 0!important;font-size:12px;line-height:1.5}
body.learning-dashboard .lesson-messages .chat-person{min-width:0;flex:1}
body.learning-dashboard .lesson-messages .chat-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
body.learning-dashboard .lesson-messages .chat-refresh{width:40px;min-height:40px;padding:10px;margin:0;display:grid;place-items:center}
body.learning-dashboard .lesson-messages .chat-change-action{font-size:12px;min-height:40px;padding:9px 12px}
body.learning-dashboard .lesson-messages .chat-guidance{padding:8px 24px;font-size:11px;background:#fff;border-bottom:1px solid #e3edf4}
body.learning-dashboard .lesson-messages .chat-history{padding:14px 24px 24px;background:radial-gradient(ellipse at 95% 5%,#eaf3fa88,transparent 45%),#f7fafe}
body.learning-dashboard .lesson-messages .chat-composer{padding:16px 24px}
body.learning-dashboard .lesson-messages .message-report{margin-top:6px}
body.learning-dashboard .lesson-messages .message-report summary{font-size:10px;opacity:.85}
@media(max-width:600px){body.learning-dashboard .lesson-messages .chat-tools{width:100%;margin-left:54px}body.learning-dashboard .lesson-messages .chat-header{padding:16px}body.learning-dashboard .lesson-messages .chat-history,body.learning-dashboard .lesson-messages .chat-composer{padding:16px}}
/* Shared action, illustration and information hierarchy across portal workspaces. */
body:is(.learning-dashboard,.admin-workspace){--portal-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none'%3E%3Crect x='8' y='8' width='104' height='74' rx='28' fill='%23e7f1fa'/%3E%3Cpath d='M28 29c12-4 22-1 32 5 10-6 20-9 32-5v35c-12-4-22-1-32 5-10-6-20-9-32-5V29Z' fill='white' stroke='%23315775' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M60 34v35M37 40l14 4M37 49l14 4M69 44l14-4M69 53l14-4' stroke='%23799bb6' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='98' cy='17' r='9' fill='%23c5ddee'/%3E%3Cpath d='m94 17 3 3 5-6' stroke='%23315775' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
body:is(.learning-dashboard,.admin-workspace) :is(.text-action,.resource-link,.finance-record-link,.admin-back-link,.chat-back,.chat-refresh,.chat-change-action),
body:is(.learning-dashboard,.admin-workspace) :is(.dashboard-card,.group-lessons-page .card,.admin-form-card,.admin-record-card,.finance-section,.admin-boundaries)>p>a,
body.admin-workspace .admin-quick-links>a,
body.admin-workspace :is(.admin-counts>div,.card)>a:not(.admin-workspace-card),
body.learning-dashboard :is(.dashboard-card,.finance-section)>.card-heading>a{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid #c4d7e7;border-radius:10px;background:#fff;color:#234760!important;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none!important;box-sizing:border-box;max-width:100%;white-space:normal;transition:background .15s,border-color .15s;
}
body:is(.learning-dashboard,.admin-workspace) :is(.text-action,.resource-link,.finance-record-link,.admin-back-link,.chat-back,.chat-refresh,.chat-change-action):hover{background:#eaf3fb;border-color:#8fadc5}
body:is(.learning-dashboard,.admin-workspace) :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #4d84af;outline-offset:3px}
body:is(.learning-dashboard,.admin-workspace) :is(.section-intro,.admin-intro){font-size:16px;line-height:1.7;max-width:70ch;color:#526d83}
body:is(.learning-dashboard,.admin-workspace) :is(.eyebrow,.sidebar-label){font-weight:700;letter-spacing:.1em}
body:is(.learning-dashboard,.admin-workspace) :is(.gentle-empty,.finance-empty,.admin-empty-state,.group-empty){padding:28px;border:1px dashed #c4d7e7;border-radius:16px;background:#f8fbfe}
body:is(.learning-dashboard,.admin-workspace) :is(.gentle-empty,.finance-empty,.admin-empty-state,.group-empty)::before{content:"";display:block;width:100px;height:75px;background:var(--portal-art) center/contain no-repeat;margin:0 0 16px}
body.learning-dashboard .group-empty::before{margin:0 auto 18px}
body.learning-dashboard .group-empty-symbol{display:none}
body.learning-dashboard .group-lessons-page .group-timezone,
body.learning-dashboard .chat-timezone,
body.learning-dashboard .inbox-stream-heading>div>p:last-child:not(.eyebrow){display:inline-flex;align-items:center;width:fit-content;border:1px solid #cfdeeb;border-radius:999px;background:#fff;padding:6px 12px;font-size:12px!important;font-weight:600;line-height:1.5;color:#486880;margin:16px 0 0}
body.learning-dashboard .group-lessons-page .group-guidance{display:block;border:0;border-left:3px solid #83abc8;border-radius:0 12px 12px 0;background:#fff;padding:16px 20px;margin:20px 0 0;font-size:14px;line-height:1.7;color:#486276;max-width:76ch}
body.learning-dashboard .group-guidance strong{display:block;color:#234760;margin-bottom:4px;font-size:14px}
body:is(.learning-dashboard,.admin-workspace) :is(.notice[role=status]){border:1px solid #bcd9cd;border-left:4px solid #488468;border-radius:12px;padding:16px 20px;background:#f0f8f4;color:#24523e}
body:is(.learning-dashboard,.admin-workspace) :is(.notice[role=status])::before{content:"✓";display:inline-block;margin-right:10px;font-weight:700}
@media(min-width:1000px){body:is(.learning-dashboard,.admin-workspace) :is(.group-lessons-page .hero,.finance-hero,.inbox-hero){position:relative;padding-right:155px}body:is(.learning-dashboard,.admin-workspace) :is(.group-lessons-page .hero,.finance-hero,.inbox-hero)::after{content:"";position:absolute;right:24px;top:28px;width:110px;height:83px;background:var(--portal-art) center/contain no-repeat;pointer-events:none}}
@media(prefers-reduced-motion:reduce){body:is(.learning-dashboard,.admin-workspace) a{transition:none!important}}
body.learning-dashboard[class*="panel-"] .learning-sidebar .learning-nav [data-panel]{color:#234760!important}
body.learning-dashboard.panel-overview .learning-nav [data-panel=overview],
body.learning-dashboard.panel-schedule .learning-nav [data-panel=schedule],
body.learning-dashboard.panel-resources .learning-nav [data-panel=resources],
body.learning-dashboard.panel-requests .learning-nav [data-panel=requests],
body.learning-dashboard.panel-financial .learning-nav [data-panel=financial]{background:#e7f0f8!important;color:#153651!important}
body:is(.learning-dashboard,.admin-workspace) .learning-nav a,
body:is(.learning-dashboard,.admin-workspace) .learning-nav summary,
body:is(.learning-dashboard,.admin-workspace)>header nav>a{color:#234760!important}
body:is(.learning-dashboard,.admin-workspace) .learning-nav a svg,
body:is(.learning-dashboard,.admin-workspace) .learning-nav summary svg{color:#315775!important}
body:is(.learning-dashboard,.admin-workspace) .learning-nav a:hover{background:#f0f6fb;color:#153651!important}
body:is(.learning-dashboard,.admin-workspace) .learning-nav a[aria-current=page]{background:#e7f0f8!important;color:#153651!important}
body:is(.learning-dashboard,.admin-workspace)>header{border-bottom:1px solid #dce7ef!important}
body.learning-dashboard .group-lessons-page .hero{background:linear-gradient(135deg,#f8fbfe,#eaf3fb);border-color:#dce7ef}
body.learning-dashboard .group-lessons-page .card{border-color:#dce7ef}
body.learning-dashboard,body.admin-workspace,body.messages-dashboard{
  --paper:#f0f6fb;--line:#dce7ef;--surface:#fff;--surface-soft:#f8fbfe;
  --surface-tint:#eaf3fb;--border-soft:#dce7ef;background:#f0f6fb!important;
}
body.learning-dashboard>main,body.admin-workspace>main,body.messages-dashboard>main{background:#f0f6fb!important}
body.learning-dashboard>header,body.admin-workspace>header{background:#fff!important;border-color:#dce7ef;box-shadow:0 1px 0 #15365108}
body.learning-dashboard>footer,body.admin-workspace>footer{background:#f0f6fb;border-color:#dce7ef}
body.learning-dashboard .learning-sidebar,body.admin-workspace .admin-sidebar{background:#fff!important;border-color:#dce7ef!important}
body.learning-dashboard .sidebar-label,body.admin-workspace .sidebar-label{color:#607d94}
body.learning-dashboard .learning-nav a[aria-current=page],body.admin-workspace .learning-nav a[aria-current=page]{background:#e7f0f8!important;color:#173b57}
body.learning-dashboard .sidebar-profile,body.admin-workspace .sidebar-profile{border-color:#dce7ef}
body.learning-dashboard .profile-avatar,body.admin-workspace .profile-avatar{background:#e5eff8;color:#315775}
body.learning-dashboard :is(.dashboard-card,.finance-section,.inbox-stream,.invoice-record-card,.invoice-history,.request-card,.lesson-detail,.section-disclosure),
body.admin-workspace :is(.admin-workspace-card,.admin-form-card,.admin-record-card,.admin-attention,.admin-snapshot),
body.admin-workspace .admin-operations .card{background:#fff;border-color:#dce7ef;box-shadow:0 5px 18px #143b5b08}
body.learning-dashboard :is(.finance-hero,.inbox-hero),body.admin-workspace .admin-hero,body.admin-workspace .admin-page-heading>div{background:linear-gradient(135deg,#f8fbfe,#eaf3fb);border-color:#dce7ef}
body.learning-dashboard :is(.gentle-empty,.finance-empty),body.admin-workspace :is(.admin-empty-state,.admin-boundaries){background:#f8fbfe;border-color:#dce7ef}
body.learning-dashboard .finance-requests{background:#f8fbfe}
body.admin-workspace .admin-card-icon{background:#eaf3fb;color:#315775}
body.admin-workspace .admin-operations .admin-quick-links{background:linear-gradient(#f0f6fb 74%,#f0f6fb00)}
body.admin-workspace .admin-workspace-card:hover,body.admin-workspace a.admin-record-card:hover{border-color:#b9d0e3;box-shadow:0 12px 26px #143b5b10}
