/* Loaded last in the member layout. Text and surface roles are independent
   from the filled action colour: bright link colours must not become buttons. */
html.dark body.fum-user-layout{color-scheme:dark;background:#0e1928;color:#e5edf7;--fum-bg:#0e1928;--fum-white:#172638;--fum-text:#e5edf7;--fum-text-primary:#e5edf7;--fum-text-secondary:#b1c0d2;--fum-border:#435b73;--fum-primary:#8ecbff;--fum-primary-hover:#bae0ff;--fum-light-blue:#233e59;--fum-success:#91dfb4;--fum-warning:#f3d189;--fum-shadow:0 4px 20px #0003}
html.dark .fum-user-layout .fum-panel{--member-green:#8ecbff;--member-soft:#233e59;--member-border:#435b73;color:#e5edf7;background:#0e1928}
html.dark .fum-user-layout :is(.fum-sidebar,.fum-header,.fum-mobile-header,.fum-bottom-nav,.fum-header-badges__popover,.fum-dash-stats,.fum-dash-stat,.fum-profile-summary,.fum-profile-section,.fum-wallet-card,.fum-wallet-stat,.fum-notif-item,.fum-notif-empty,.fum-notif-drawer__panel){background:#172638!important;border-color:#435b73;color:#e5edf7}
html.dark .fum-user-layout :is(.fum-nav-item,.fum-nav-group__toggle,.fum-icon-btn,.fum-header-site,.fum-header-badges summary){color:#c7d9ed}
html.dark .fum-user-layout :is(.fum-nav-item.is-active,.fum-nav-group__toggle:hover,.fum-nav-item:hover,.fum-icon-btn:hover,.fum-bottom-nav a.is-active){background:#233e59!important;color:#a8d8ff!important}
html.dark .fum-user-layout :is(.fum-nav-item.is-active>i,.fum-nav-group__icon,.fum-nav-item>i,.fum-dash-stat__link,.fum-header-site i,.fum-header-badges summary i,.fum-bottom-nav a.is-active i){color:#8ecbff}
html.dark .fum-user-layout :is(.fum-bottom-nav a,.fum-dash-stat__label,.fum-dash-stat__unit,.fum-profile-summary small,.fum-profile-summary p,.fum-wallet-stat__label,.fum-wallet-stat__meta,.fum-wallet-card__desc,.fum-notif-item__time,.fum-notif-item__desc,.fum-page-head p){color:#b1c0d2}
html.dark .fum-user-layout :is(.fum-page-head h1,.fum-page-head h2,.fum-profile-section h2,.fum-profile-summary h1,.fum-profile-summary h2,.fum-dash-stat__value,.fum-wallet-stat__value,.fum-notif-item__title,.fum-notif-head__title){color:#e5edf7}
html.dark .fum-user-layout :is(.fum-dash-stat__icon,.fum-profile-status,.fum-profile-alert,.fum-wallet-usage__note){background:#233e59;color:#b6dbff;border-color:#4d6d8b}
html.dark .fum-user-layout .fum-legacy-page :is(h1,h2,h3,h4,label,legend,dt){color:#e5edf7}
html.dark .fum-user-layout .fum-legacy-page :is(.bg-white,.bg-slate-50,.bg-gray-50,.bg-slate-100,.bg-gray-100){background-color:#172638!important}
html.dark .fum-user-layout .fum-legacy-page :is(.text-black,.text-slate-900,.text-gray-900,.text-slate-800,.text-gray-800,.text-slate-700,.text-gray-700){color:#e5edf7!important}
html.dark .fum-user-layout .fum-legacy-page :is(.text-slate-600,.text-gray-600,.text-slate-500,.text-gray-500,.text-slate-400,.text-gray-400,.text-muted){color:#b1c0d2!important}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-profile-edit,.fum-wallet-card,.fum-panel) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){background-color:#111e2d!important;color:#e5edf7!important;border-color:#71869b!important;caret-color:#e5edf7}
html.dark .fum-user-layout :is(input,textarea)::placeholder{color:#a9bacd!important;opacity:1}
html.dark .fum-user-layout :is(select option,select optgroup){background:#111e2d;color:#e5edf7}
html.dark .fum-user-layout :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid #8ecbff;outline-offset:3px}
html.dark .fum-user-layout :is(input[type=checkbox],input[type=radio]){accent-color:#3c8ed5}
html.dark .fum-user-layout :is(.fum-btn--primary,.fum-wallet-preset.is-active,.fum-chip-filter.is-active,.fum-profile-edit button[type=submit],.dc-primary){background:#005da9!important;border-color:#529bd5!important;color:#fff!important}
html.dark .fum-user-layout :is(.fum-btn--primary,.dc-primary) :is(i,span){color:inherit}
html.dark .fum-user-layout :is(.fum-btn--ghost,.fum-btn--white,.fum-wallet-preset,.dc-secondary){background:#23364c!important;border-color:#71869b!important;color:#c7e5ff!important}
html.dark .fum-user-layout :is(.fum-wallet-preset:hover,.dc-card-action:hover){background:#2b4864;color:#fff}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-wallet-card,.fum-panel) table{color:#e5edf7;background:transparent}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-wallet-card,.fum-panel) table :is(th,td){border-color:#435b73}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-wallet-card,.fum-panel) table th{background:#23364c;color:#c7d9ed}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-wallet-card,.fum-panel) table tbody tr{background:#172638;color:#e5edf7}
html.dark .fum-user-layout :is(.fum-legacy-page,.fum-wallet-card,.fum-panel) table tbody tr:hover{background:#23364c}
html.dark .fum-user-layout .discount-catalog{--dc-green:#8ecbff;--dc-ink:#e5edf7;--dc-muted:#b1c0d2;--dc-line:#435b73;--dc-surface:#172638;--dc-soft:#23364c}
html.dark .fum-user-layout :is(.dc-filter-toggle,.dc-filters,.dc-card,.dc-dialog,.dc-detail,.dc-modal-footer){background:#172638;color:#e5edf7;border-color:#435b73}
html.dark .fum-user-layout :is(.dc-card-action,.dc-heading h1,.dc-price){color:#8ecbff}
html.dark .fum-user-layout .dc-rate{background:#005da9;color:#fff}
html.dark .fum-user-layout :is(.dc-close,.dc-reset){color:#c7d9ed}
html.dark .fum-user-layout .fum-panel-footer{background:#101e2e;border-color:#435b73;color:#c7d9ed}
html.dark .fum-user-layout .fum-panel-footer a{color:#a8d8ff}
html.dark .fum-user-layout .fum-panel-footer :is(p,small){color:#b1c0d2}
html.dark .fum-user-layout .fum-profile-edit :is(input:disabled,select:disabled,textarea:disabled){background:#233142!important;color:#b1c0d2!important;opacity:1}
html.dark .fum-user-layout .fum-header-logout{background:#452b30!important;border-color:#94606a!important;color:#ffd0d5!important}
html.dark .fum-user-layout .fum-bottom-nav a.is-active .icon-wrap{background:#233e59!important;color:#a8d8ff!important}
html.dark .fum-user-layout{--fum-surface:#172638;--fum-muted:#b1c0d2}
html.dark .fum-user-layout :is(.fum-member-footer,.fum-member-footer__bottom){background:#101e2e;color:#c7d9ed;border-color:#435b73}
html.dark .fum-user-layout .fum-member-footer :is(p,small,li){color:#b1c0d2}
html.dark .fum-user-layout .fum-member-footer a{color:#a8d8ff}
html.dark .fum-user-layout .fum-member-footer :is(h2,h3,h4){color:#e5edf7}
html.dark .fum-user-layout .dc-pages button[aria-current]{background:#005da9;border-color:#529bd5;color:#fff}
html.dark .fum-user-layout :is(.fum-scard-btn-primary,.fum-avatar__verified,.fum-pagination .active span,.fum-pagination [aria-current=page] span,.fum-home-menu__item.is-active .fum-home-menu__icon){background:#005da9;color:#fff}
html.dark .fum-user-layout :is(.fum-header-site,.fum-header-badges summary,.fum-icon-btn){background:#23364c;border-color:#435b73;color:#a8d8ff}
html.dark .fum-user-layout .fum-notice-ticker__viewport>a{color:#d9e9f9}

/* Student-card status surfaces use explicit theme colours, never light fills
   combined with inherited dark-mode text. Keep printed card artwork unchanged. */
html.dark .fum-user-layout .fum-scard{--fum-navy:#e5edf7}
html.dark .fum-user-layout :is(.fum-scard-card,.fum-scard-status,.fum-scard-support,.fum-scard-alert){background:#172638;color:#e5edf7;border-color:#435b73}
html.dark .fum-user-layout :is(.fum-scard-status__title,.fum-scard-card__title,.fum-scard-head__title,.fum-scard-support__title,.fum-scard-empty__title,.fum-scard-details__title){color:#e5edf7}
html.dark .fum-user-layout :is(.fum-scard-status__desc,.fum-scard-status__date,.fum-scard-support__desc){color:#c7d9ed}
html.dark .fum-user-layout :is(.fum-scard-status__icon,.fum-scard-status__badge,.fum-scard-support__icon,.fum-scard-pill,.fum-scard-timeline__marker){background:#233e59;color:#b6dbff}
html.dark .fum-user-layout :is(.fum-scard-status--warning,.fum-scard-alert--warning){background:#332b1b;border-color:#826c3f}
html.dark .fum-user-layout .fum-scard-status--warning :is(.fum-scard-status__icon,.fum-scard-status__badge){background:#4a3920;color:#ffe0a1}
html.dark .fum-user-layout :is(.fum-scard-status--danger,.fum-scard-status--error,.fum-scard-alert--error){background:#36232c;border-color:#94606a;color:#ffd0d5}
html.dark .fum-user-layout :is(.fum-scard-status--danger,.fum-scard-status--error) :is(.fum-scard-status__icon,.fum-scard-status__badge){background:#4d2d37;color:#ffd0d5}
html.dark .fum-user-layout .fum-scard-pill--warning{background:#4a3920;color:#ffe0a1}
html.dark .fum-user-layout .fum-scard-pill--danger{background:#4d2d37;color:#ffd0d5}
html.dark .fum-user-layout .fum-scard-btn-outline{background:#23364c;border-color:#71869b;color:#c7e5ff}
html.dark .fum-user-layout .fum-scard-btn-primary:is(:hover,:focus-visible){background:#004d8d;border-color:#8ecbff;color:#fff}
html.dark .fum-user-layout :is(.fum-scard-details__row,.fum-scard-rows__row){border-color:#435b73}
html.dark .fum-user-layout .fum-scard-timeline__item:not(:last-child)::after{background:#57738e}

/* Legacy panel utilities: resolve text and surface together. */
.fum-user-layout .fum-ticket-page{color:#26364a}
.fum-user-layout .fum-ticket-page :is(label,.fum-ticket-clear){color:#34465c}
.fum-user-layout .fum-ticket-heading :is(h2,span){color:#26364a}
.fum-user-layout .fum-ticket-description{background:#f1f5f9!important;border-color:#cbd5e1}
.fum-user-layout .fum-ticket-description p{color:#34465c!important}
.fum-user-layout .fum-ticket-status{background:#e3edf6!important;color:#234566}
.fum-user-layout .fum-ticket-status span{color:inherit!important}
.fum-user-layout .fum-ticket-symbol{background:#dcecf9!important;color:#005da9}
.fum-user-layout .fum-ticket-symbol i{color:inherit!important}
.fum-user-layout .fum-ticket-close{background:#a32535!important;color:#fff!important;border-color:#a32535!important}
.fum-user-layout .fum-ticket-submit{background:#005da9!important;color:#fff!important}
.fum-user-layout .fum-ticket-submit:hover{background:#004c8c!important}
.fum-user-layout .fum-ticket-clear{background:#eef3f8;border-color:#8699ae}
.fum-user-layout .fum-ticket-page input[type=file]::file-selector-button{background:#dcecf9;color:#17466f;border:0;border-radius:6px;padding:8px 12px}
.fum-user-layout .fum-ticket-page :is(button,a,input,textarea):focus-visible{outline:2px solid #005da9;outline-offset:3px}
.fum-user-layout .fum-ticket-page h6{overflow-wrap:anywhere}
html.dark .fum-user-layout .fum-main :is(.bg-white,.bg-gray-50,.bg-gray-100,.bg-gray-200,.bg-slate-50,.bg-slate-100,.bg-slate-200){background-color:#172638!important}
html.dark .fum-user-layout .fum-main :is(.text-black,.text-gray-900,.text-gray-800,.text-gray-700,.text-slate-900,.text-slate-800,.text-slate-700){color:#e5edf7!important}
html.dark .fum-user-layout .fum-main :is(.text-gray-600,.text-gray-500,.text-gray-400,.text-slate-600,.text-slate-500,.text-slate-400){color:#b1c0d2!important}
html.dark .fum-user-layout .fum-main :is(.border-gray-100,.border-gray-200,.border-gray-300,.border-slate-100,.border-slate-200,.border-slate-300){border-color:#435b73!important}
html.dark .fum-user-layout .fum-ticket-page{color:#e5edf7}
html.dark .fum-user-layout .fum-ticket-heading :is(h2,span){color:#e5edf7}
html.dark .fum-user-layout .fum-ticket-page label{color:#c7d9ed}
html.dark .fum-user-layout .fum-ticket-description{background:#111e2d!important}
html.dark .fum-user-layout .fum-ticket-description p{color:#e5edf7!important}
html.dark .fum-user-layout .fum-ticket-status{background:#233e59!important;color:#c7e5ff}
html.dark .fum-user-layout .fum-ticket-symbol{background:#233e59!important;color:#a8d8ff}
html.dark .fum-user-layout .fum-ticket-clear{background:#23364c;color:#e5edf7;border-color:#71869b}
html.dark .fum-user-layout .fum-ticket-close{background:#8b2433!important;color:#fff!important;border-color:#d38996!important}
html.dark .fum-user-layout .fum-ticket-page input[type=file]::file-selector-button{background:#233e59;color:#c7e5ff}
html.dark .fum-user-layout .fum-ticket-page :is(button,a,input,textarea):focus-visible{outline-color:#8ecbff}
