/* HOUSE 18 member portal: compact navigation and warm dark surfaces. */
body.portal-dark{--bone:#1b1713;--paper:#241e19;--line:#493a2f;--muted:#c6b5a6;--portal-bg:#100e0c;--portal-surface:#1b1713;--portal-raised:#292019;--portal-text:#f4eee7;--portal-muted:#c6b5a6;--portal-accent:#dfa27c;background:var(--portal-bg);color:var(--portal-text);color-scheme:dark}
body.portal-dark #portal-app{background:var(--portal-bg);color:var(--portal-text)}
body.portal-dark .portal-sidebar{background:#100e0c;border-right:1px solid var(--line)}
body.portal-dark .portal-sidebar nav{display:grid;gap:5px;padding-top:8px}
body.portal-dark .portal-sidebar nav button,body.portal-dark .portal-sidebar nav a{color:#cdbfb2;text-align:left;justify-content:flex-start;line-height:1.35}
body.portal-dark .portal-sidebar nav button{min-height:46px;padding:12px 14px;border-color:transparent;background:transparent;font-size:12px}
body.portal-dark .portal-sidebar nav button:is(:hover,:focus-visible){background:#30231b;color:#fff}
body.portal-dark .portal-sidebar nav button.is-active{background:#3a281d;color:#fff;border-left-color:#d6946c}
body.portal-dark .portal-sidebar .portal-nav-icon{stroke-width:2;color:#d79a73;flex-shrink:0}
body.portal-dark .portal-sidebar .portal-document{margin-top:16px;border-top:1px solid var(--line);padding-top:16px;color:#e0c3ad}
body.portal-dark .portal-main{background:var(--portal-bg)}
body.portal-dark .portal-main>header{min-height:64px;background:#17130f;border-color:var(--line);color:var(--portal-text);padding-block:10px}
body.portal-dark .portal-header-title>p{color:var(--portal-accent);font-size:9px}
body.portal-dark .portal-header-title h1{color:var(--portal-text);font-size:22px;margin:3px 0 0}
body.portal-dark .portal-header-logo img{filter:brightness(0) invert(1)}
body.portal-dark .portal-header-actions :is(button,a){color:#fff;border-color:#6c4b34;background:#33241b;font-size:11px}
body.portal-dark .portal-header-actions :is(button,a):is(:hover,:focus-visible){color:#fff;background:#955536}
body.portal-dark :is(#portal-content,#portal-assistant-content){padding:20px;color:var(--portal-text)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :where(section,article,aside,fieldset,form){background-color:var(--portal-surface);border-color:var(--line);color:var(--portal-text)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(h1,h2,h3,h4,h5,strong,dd){color:var(--portal-text)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(p,small,dt,label){color:var(--portal-muted)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(section,article,aside,fieldset,form,dl,header,footer){border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#302720;color:var(--portal-text);border:1px solid #735840;border-radius:3px;color-scheme:dark}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(input,textarea)::placeholder{color:#baa897;opacity:1}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(input,select,textarea):focus-visible{outline:2px solid #dfa27c;outline-offset:2px}
body.portal-dark textarea{resize:none;overflow:auto}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(input[type=checkbox],input[type=radio]){accent-color:#c5875d}
body.portal-dark :is(#portal-content,#portal-assistant-content) option{background:#302720;color:#f4eee7}
body.portal-dark :is(#portal-content,#portal-assistant-content) button{background:#925337;color:#fff;border:1px solid #bb7b52;transition:background-color .16s ease,border-color .16s ease}
body.portal-dark :is(#portal-content,#portal-assistant-content) button:is(:hover,:focus-visible){background:#b16e45;color:#fff;border-color:#e5b08c}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(button,a,summary):focus-visible{outline:2px solid #e5b08c;outline-offset:3px}
body.portal-dark :is(#portal-content,#portal-assistant-content) button:disabled{background:#39302a;color:#b6a595;border-color:#685343;opacity:1;cursor:not-allowed}
body.portal-dark :is(#portal-content,#portal-assistant-content) table :is(th,td){background:#211b16;border-color:var(--line);color:var(--portal-text)}
body.portal-dark :is(#portal-content,#portal-assistant-content) table th{color:#dec2ac}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.portal-section-head,.page-intro,.course-filters,.document-filters,.health-controls,.health-start,.health-prefill-note,.health-question-card,.health-subsection,.health-choice span,.health-review-grid article,.health-consents label,.health-signature,.survey-intro,.survey-anonymous,.survey-question,.survey-extra,.survey-nps span,.member-appointments,.member-appointment-card,.appointment-booking-controls label,.appointment-slot-day label>span,.appointment-empty,.profile-appointment-cta,.profile-panel,.profile-details,.community-grid>article,.community-privacy-note,.community-empty,.event-member-card,.message-center,.message-people,.message-thread,.message-history,.message-welcome,.team-notice-panel,.h18-assistant-shell,.h18-assistant-message,.member-course-card,.member-course-day,.booking-card,.document-card,.invoice-card){background:#211b16;color:var(--portal-text);border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.health-choice input:checked+span,.appointment-slot-day input:checked+span,.survey-scale input:checked+span,.survey-nps input:checked+span){background:#67432d;color:#fff;border-color:#dca078}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-picker label{background:#292019;color:#f4eee7;border-color:#72563e}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-picker label:has(input:checked){background:#65412c;border-color:#e4b08c}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-picker img{background:#e6d9c8;border-radius:5px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-person{background:transparent;color:#f4eee7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-person.is-active{background:#4b3222}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-bubble{background:#342820;color:#fff;border-color:#634833}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-bubble.is-own{background:#64412d;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-bubble p{color:#f4eee7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-welcome{background:linear-gradient(145deg,#241a13,#15120f)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-empty-chats{color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.member-avatar,.community-avatar,.profile-avatar){color:#fff}
body.portal-dark .portal-section-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid var(--line)}
body.portal-dark .portal-section-tabs button{min-height:38px;padding:9px 14px;background:#261d16;border-color:#57402d;color:#d9c4b1;font-size:12px}
body.portal-dark .portal-section-tabs button.is-active{background:#72472e;color:#fff;border-color:#cf956b}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin:0 0 12px;background:transparent}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy{padding:18px;background:#21170f;border:1px solid var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy>p:first-child{margin:0;color:#dfa27c;font-size:9px;letter-spacing:.1em}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy h2{font-size:29px;line-height:1.1;margin:12px 0 9px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy>span{font-size:12px;line-height:1.5;color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy>p:last-child{margin:15px 0 0;font-size:11px;letter-spacing:0;color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:10px;min-height:0;margin:0;padding:16px;background:#241b14;border:1px solid var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card:not(:has(.entry-qr img,.entry-qr canvas)){grid-template-columns:1fr}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card span{font-size:9px;color:#dfa27c;letter-spacing:.08em}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card h3{font-size:17px;line-height:1.2;margin:8px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card p{font-size:11px;line-height:1.45;margin:8px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card button{padding:7px 9px;min-height:30px;font-size:10px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card .entry-qr{width:100px;height:100px;min-height:0;padding:5px;background:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card .entry-qr:empty{display:none}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card .entry-qr :is(img,canvas){width:90px!important;height:90px!important}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session{display:flex;flex-direction:column;min-height:0;padding:18px;background:#2c1e14;border:1px solid #6a4831}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session header{display:flex;justify-content:space-between;align-items:center;margin:0;padding:0;gap:8px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session header span{color:#dfa27c;font-size:10px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session header b{color:#dbc6b1;font-size:10px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session h3{font-size:20px;line-height:1.2;margin:12px 0 7px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session p{font-size:12px;line-height:1.5;margin:0 0 12px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session button{margin-top:auto;min-height:32px;padding:8px 10px;font-size:11px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview{grid-template-columns:minmax(0,1.5fr) .65fr 1fr auto;gap:16px;padding:12px 16px;min-height:0;margin:0 0 12px;background:#211a14}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview h3{font-size:14px;margin:5px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview span{font-size:9px;color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview strong{font-size:12px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview button{padding:9px 12px;font-size:11px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);margin:0 0 12px;border:1px solid var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats article{padding:12px 16px;background:#201812}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats span{display:block;color:#ccb6a3;font-size:10px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats strong{display:block;margin-top:6px;font-size:27px;line-height:1.1}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats small{font-size:11px;font-weight:500;color:#c6b5a6}
body.portal-dark .portal-home-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin:0 0 12px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda,body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notifications{min-width:0;margin:0;padding:16px;border:1px solid var(--line);background:#1b1713}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda>header,body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notifications>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;margin:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda header span,body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notifications header span{font-size:9px;color:#dfa27c;letter-spacing:.09em}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda h3,body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notifications h3{font-size:18px;margin:5px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda header small{font-size:10px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-agenda header button{padding:7px 8px;font-size:10px}
body.portal-dark .portal-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day{padding:8px 6px;min-height:106px;min-width:0;background:#261e17;border:1px solid var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-today{border-top:3px solid #d19064}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.has-course{background:#493020}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day>span{font-size:9px;color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day>strong{font-size:15px;margin:6px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day>b{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#efc4a5}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day>small{font-size:9px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notifications>div{display:grid;gap:6px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification{display:grid;grid-template-columns:1fr auto;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);background:transparent}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification>.notification-mark{display:none}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification h3{font-size:12px;margin:4px 0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification p{font-size:10px;line-height:1.4;margin:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification small{font-size:9px;color:#dfa27c}
body.portal-dark :is(#portal-content,#portal-assistant-content) .dashboard-notification button{font-size:10px;padding:6px 8px;align-self:center;min-height:28px}
body.portal-dark .portal-more-activity,body.portal-dark .portal-extra-notices{border:1px solid var(--line);background:#1b1713}
body.portal-dark .portal-more-activity>summary{cursor:pointer;padding:14px 16px;font-size:13px;font-weight:650;color:#efd7c4}
body.portal-dark .portal-more-activity>summary>span{font-size:11px;font-weight:400;color:#bda996;margin-left:12px}
body.portal-dark .portal-extra-notices>summary{cursor:pointer;padding:9px;color:#dfbca1;font-size:11px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .payment-photo-lock{padding:12px 16px;margin:0 0 12px;background:#342419;color:#ecd7c4}
body.portal-dark :is(#portal-content,#portal-assistant-content) .fitness-dashboard{margin:0;border:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .fitness-progress-ring>div{background:#17130f}
body.portal-dark .portal-toast{background:#4b3221;color:#fff;border:1px solid #c58a69}
body.portal-dark .entry-code-dialog{background:#211810;color:#fff;border:1px solid #9b6948}
body.portal-dark .entry-code-dialog form{background:transparent;color:#fff}
body.portal-dark .entry-code-dialog .entry-qr{background:#fff}
@media(max-width:1150px){body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero{grid-template-columns:1fr 1fr}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy{grid-column:1/-1;padding:14px 16px}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy h2{font-size:24px;margin:5px 0}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy>p:last-child{margin:6px 0 0}body.portal-dark .portal-home-columns{grid-template-columns:1fr}body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview{grid-template-columns:1.4fr 1fr auto}body.portal-dark .membership-overview-validity{display:none}}
@media(max-width:760px){body.portal-dark .portal-main>header{min-height:60px}body.portal-dark :is(#portal-content,#portal-assistant-content){padding:12px}body.portal-dark .portal-sidebar nav button{min-height:44px}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero{grid-template-columns:1fr}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy{grid-column:1}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card{grid-template-columns:1fr 90px}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card .entry-qr{width:90px;height:90px}body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card .entry-qr :is(img,canvas){width:80px!important;height:80px!important}body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview{grid-template-columns:1fr auto;gap:8px}body.portal-dark .membership-overview-state{display:none}body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats{grid-template-columns:repeat(2,1fr)}body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-home-stats article{padding:10px 12px}body.portal-dark .portal-week-strip{grid-template-columns:repeat(7,minmax(65px,1fr));overflow:auto;padding-bottom:4px}body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day{min-height:94px}body.portal-dark .portal-more-activity>summary>span{display:block;margin:6px 0 0}body.portal-dark .portal-section-tabs{flex-wrap:nowrap;overflow:auto;scrollbar-width:thin}body.portal-dark .portal-section-tabs button{white-space:nowrap;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){body.portal-dark :is(#portal-content,#portal-assistant-content) button{transition:none}}

/* Explicit contrast corrections for inherited controls and secondary panels. */
body.portal-dark .nav-health-state{flex:0 0 8px;width:8px;height:8px;border-radius:50%;margin-left:auto}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero>*{grid-column:auto;grid-row:auto;min-height:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy{min-height:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) legend,body.portal-dark :is(#portal-content,#portal-assistant-content) .appointment-booking-controls label>span{color:#dfc0a7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .health-start .health-on-site-note{background:#33261b;border-color:#9a6543;color:#efd4bc}
body.portal-dark :is(#portal-content,#portal-assistant-content) .community-hero>div:last-child{background:#67422c;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.community-member-search,.message-member-search){background:#302720;border-color:#735840;color:#efd7c4}
body.portal-dark :is(#portal-content,#portal-assistant-content) .survey-scale span,body.portal-dark :is(#portal-content,#portal-assistant-content) .survey-nps span{background:#302720;border-color:#735840;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .survey-question-title b{background:#805035;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-thread-header,body.portal-dark :is(#portal-content,#portal-assistant-content) .thread-actions>div{background:#241c16;color:#f4eee7;border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) #direct-message-form{background:#241c16;color:#f4eee7;border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) #direct-message-body{background:#302720;color:#f4eee7;border-color:#735840}
body.portal-dark :is(#portal-content,#portal-assistant-content) .message-person time{color:#dfc4ae}
body.portal-dark :is(#portal-content,#portal-assistant-content) .member-avatar{background:#754b32;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.community-avatar,.profile-avatar).is-female{background:#915432;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.community-avatar,.profile-avatar).is-male{background:#365864;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.community-avatar,.profile-avatar).is-neutral{background:#635442;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .payment-methods{background:#292019;color:#f4eee7;border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .payment-methods>span{background:#3e2d20;color:#f4eee7;border-color:#735840}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-controls{background:#292019;border-color:var(--line);color:#f4eee7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-picker :is(legend,label>span){color:#f4eee7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-none{color:#e5c3a5}
body.portal-dark :is(#portal-content,#portal-assistant-content) .h18-assistant-header>span,body.portal-dark :is(#portal-content,#portal-assistant-content) .h18-assistant-speaker{color:#dfa27c}
body.portal-dark :is(#portal-content,#portal-assistant-content) .h18-assistant-page-head :is(p,span){color:#dfa27c}
@media(max-width:1150px){body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero>.member-hero-copy{grid-column:1/-1}}
@media(max-width:760px){body.portal-dark :is(#portal-content,#portal-assistant-content) .member-home-hero>*{grid-column:1}}

body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-avatar-wrap .community-avatar.is-neutral{color:#fff!important}
body.portal-dark :is(#portal-content,#portal-assistant-content) .profile-icon-picker label>span:last-child{color:#f4eee7!important}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-controls>div,body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-controls>label{background:#292019;color:#c6b5a6}
body.portal-dark :is(#portal-content,#portal-assistant-content) .thread-actions summary{color:#f4eee7;background:transparent}
body.portal-dark :is(#portal-content,#portal-assistant-content) .thread-actions .thread-actions-close{color:#f4eee7!important;background:#241c16!important}
body.portal-dark :is(#portal-content,#portal-assistant-content) #direct-message-form :is(span,small,label){color:#ccb8a5}
body.portal-dark :is(#portal-content,#portal-assistant-content) .h18-assistant-head>div>span{color:#dfa27c}

body.portal-dark :is(#portal-content,#portal-assistant-content) #direct-message-form [data-character-count]{color:#ccb8a5}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-controls>div span{color:#dec2ac}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-pagination{border-color:var(--line);background:#1d1612;color:#d6c2b2}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-document-pagination button{border-color:var(--line);color:#f4eee7;background:#292019}
body.portal-dark :is(#portal-content,#portal-assistant-content) .address-automation,body.portal-dark :is(#portal-content,#portal-assistant-content) .address-automation>div{background:#292019;color:#f4eee7;border-color:var(--line)}

body.portal-dark :is(#portal-content,#portal-assistant-content) .survey-extra>label>span{color:#dfc0a7}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-photo>span{background:#694831;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-photo.is-missing>b{background:#805035;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .identity-photo-managed,body.portal-dark :is(#portal-content,#portal-assistant-content) .identity-photo-managed.is-required{background:#342419;border-color:#a9744f;color:#efd4bc}
body.portal-dark :is(#portal-content,#portal-assistant-content) .privacy-controls label{background:#292019;color:#f4eee7;border-color:var(--line)}

body.portal-dark #portal-app :is(#portal-content,#portal-assistant-content) button :is(span,b,strong,small){color:inherit}

body.portal-dark .portal-main>.portal-section-tabs{margin:16px 20px 0}body.portal-dark .portal-section-tabs button:focus-visible{outline:2px solid #e5b08c;outline-offset:2px}@media(max-width:760px){body.portal-dark .portal-main>.portal-section-tabs{margin:12px 12px 0}}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.section-eyebrow,.eyebrow){color:#dfa27c}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-section-head span{color:#dfa27c}
body.portal-dark :is(#portal-content,#portal-assistant-content) :is(.portal-card .kicker,.plan-item span,.event-member-date span,.event-member-copy .kicker,.community-person small,.course-main .kicker,.settings-goals header span,.training-how span,.plan-title-row>div>span,.plan-copy summary span,.plan-details aside span,.identity-alert small,.membership-payment header>div>span,.payment-invoice>div span,.membership-personal .kicker,.portal-document-row small,.health-landing-copy>span,.health-start>div>span,.health-form-step>header>span,.health-welcome-step>span,.health-signature>div>span,.health-question-card>span,.health-review-grid span,.survey-heading>div>span,.appointment-heading>div>span,.appointment-slot-day header span,.profile-appointment-cta span){color:#dfa27c}
body.portal-dark :is(#portal-content,#portal-assistant-content) .community-hero>div:last-child small{color:#efd7c4}body.portal-dark :is(#portal-content,#portal-assistant-content) .message-bubble.own{background:#64412d;color:#fff}body.portal-dark :is(#portal-content,#portal-assistant-content) .message-bubble footer{color:#e4d0be}

@media(max-width:760px){
 body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy{padding:12px}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .member-hero-copy>span{display:none}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .member-entry-card,body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session{padding:12px}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session h3{font-size:18px;margin:8px 0 6px}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .member-next-session p{font-size:11px;margin-bottom:10px}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview{padding:10px 12px;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview>div{padding:0;min-height:0}
 body.portal-dark :is(#portal-content,#portal-assistant-content) .membership-overview button{grid-column:auto;min-height:32px;align-self:center;justify-self:end;padding:8px;font-size:10px}
}
body.portal-dark .portal-week-strip:focus-visible{outline:2px solid #e5b08c;outline-offset:3px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .h18-app-eyebrow{color:#dfa27c}body.portal-dark :is(#portal-content,#portal-assistant-content) a.h18-app-download-button.primary{background:#8d4e30;color:#fff}
/* Refined portal: generous sections, quiet navigation and an integrated messenger. */
body.portal-dark .portal-sidebar nav [data-portal-view=assistant]{display:none!important}
body.portal-dark .portal-main{min-width:0}
body.portal-dark #portal-content{padding:32px clamp(20px,3vw,48px) 72px;max-width:1540px;margin-inline:auto;width:100%;box-sizing:border-box}
body.portal-dark .portal-main>.portal-section-tabs{margin:20px clamp(20px,3vw,48px) 0;padding:0;gap:28px;min-height:58px;align-items:stretch;border-bottom:1px solid #493a2f;background:transparent}
body.portal-dark .portal-section-tabs button{position:relative;min-height:58px;padding:12px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#c6b5a6;font-size:14px;font-weight:650;cursor:pointer}
body.portal-dark .portal-section-tabs button:is(:hover,:focus-visible){color:#fff;background:transparent}
body.portal-dark .portal-section-tabs button.is-active{background:transparent;color:#fff;border:0;box-shadow:inset 0 -3px #d69b76}
body.portal-dark .portal-sidebar nav button{min-height:54px;font-size:13px;gap:12px}
body.portal-dark .portal-sidebar .portal-nav-icon{width:22px;height:22px;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
body.portal-dark .portal-sidebar .nav-health-state{width:8px!important;min-width:8px!important;max-width:8px!important;height:8px!important;min-height:8px!important;flex:0 0 8px!important;aspect-ratio:1;border-radius:50%!important;align-self:center;padding:0}
body.portal-dark :is(.portal-avatar,.member-avatar,.community-avatar,.profile-avatar,.profile-discipline-badge,.legend-dot,.fitness-progress-ring,.fitness-progress-ring>div,.message-send-button,.message-welcome-mark){border-radius:50%!important;aspect-ratio:1}
body.portal-dark .profile-discipline-badge{object-fit:contain}
body.portal-dark #portal-content .portal-welcome{display:block;min-height:0;padding:4px 0 30px;margin:0 0 30px;border:0;border-bottom:1px solid #493a2f;background:transparent}
body.portal-dark #portal-content .portal-welcome h2{font-size:clamp(30px,3vw,42px);margin:10px 0 12px}
body.portal-dark #portal-content .portal-welcome>span{display:block;font-size:15px;line-height:1.6}
body.portal-dark #portal-content .portal-welcome>p:first-child{font-size:11px}
body.portal-dark #portal-content .portal-welcome>p:last-child{font-size:13px;margin-top:16px}
body.portal-dark .portal-overview-heading{display:flex;align-items:center;gap:16px;margin:0 0 22px;padding:0;background:transparent}
body.portal-dark .portal-overview-heading svg,body.portal-dark .portal-home-columns>section>header>svg,body.portal-dark .portal-membership-icon svg{width:28px;height:28px;fill:none;stroke:#dfa27c;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:0 0 28px}
body.portal-dark .portal-overview-heading span{font-size:10px;font-weight:750;letter-spacing:.12em;color:#dfa27c}
body.portal-dark #portal-content .portal-overview-heading h2{font-size:25px;line-height:1.2;margin:7px 0 0}
body.portal-dark #portal-content .member-home-hero{grid-template-columns:1fr 1fr;gap:24px;margin-bottom:38px}
body.portal-dark #portal-content .member-home-hero>:is(.member-entry-card,.member-next-session){min-height:220px;padding:28px;box-sizing:border-box;background:#241b15;border:1px solid #57402e}
body.portal-dark #portal-content .member-entry-card h3,body.portal-dark #portal-content .member-next-session h3{font-size:24px;margin:14px 0}
body.portal-dark #portal-content .member-entry-card p,body.portal-dark #portal-content .member-next-session p{font-size:14px;line-height:1.65;margin:0 0 20px}
body.portal-dark #portal-content .member-entry-card span,body.portal-dark #portal-content .member-next-session header span{font-size:11px;letter-spacing:.08em}
body.portal-dark #portal-content .member-entry-card button,body.portal-dark #portal-content .member-next-session button{min-height:42px;padding:11px 16px;font-size:12px;width:fit-content}
body.portal-dark .portal-home-columns{grid-template-columns:1fr;gap:32px;margin-bottom:32px}
body.portal-dark #portal-content .portal-home-agenda,body.portal-dark #portal-content .dashboard-notifications{padding:28px;background:#1b1713;border:1px solid #493a2f}
body.portal-dark #portal-content :is(.portal-home-agenda,.dashboard-notifications)>header{justify-content:flex-start;gap:16px;padding:0 0 24px}
body.portal-dark #portal-content :is(.portal-home-agenda,.dashboard-notifications)>header>div{flex:1}
body.portal-dark #portal-content :is(.portal-home-agenda,.dashboard-notifications) h3{font-size:24px;margin:7px 0}
body.portal-dark #portal-content .portal-home-agenda header small{font-size:12px}
body.portal-dark #portal-content .portal-home-agenda header button{padding:10px 14px;font-size:12px}
body.portal-dark .portal-week-strip{gap:10px}
body.portal-dark #portal-content .portal-week-strip .fitness-week-day{padding:16px 12px;min-height:132px}
body.portal-dark #portal-content .portal-week-strip .fitness-week-day>span{font-size:11px}
body.portal-dark #portal-content .portal-week-strip .fitness-week-day>strong{font-size:22px;margin:12px 0}
body.portal-dark #portal-content .portal-week-strip .fitness-week-day>b,body.portal-dark #portal-content .portal-week-strip .fitness-week-day>small{font-size:12px}
body.portal-dark #portal-content .dashboard-notification{padding:18px 0;gap:24px}
body.portal-dark #portal-content .dashboard-notification h3{font-size:17px;margin:6px 0 8px}
body.portal-dark #portal-content .dashboard-notification p{font-size:13px;line-height:1.6}
body.portal-dark #portal-content .dashboard-notification small{font-size:11px}
body.portal-dark #portal-content .dashboard-notification button{padding:10px 16px;font-size:12px;min-height:40px}
body.portal-dark #portal-content .membership-overview{grid-template-columns:32px minmax(0,1fr) auto auto auto;padding:24px;gap:24px;margin-bottom:32px}
body.portal-dark #portal-content .membership-overview h3{font-size:17px}
body.portal-dark #portal-content .membership-overview span{font-size:11px}
body.portal-dark #portal-content .membership-overview strong{font-size:13px}
body.portal-dark .portal-more-activity>summary{padding:22px 26px;font-size:16px}
body.portal-dark #portal-content .portal-more-activity .portal-home-stats{margin:0;padding:20px;gap:1px;background:#1b1713;border:0}
body.portal-dark #portal-content .portal-more-activity .portal-home-stats article{padding:20px}
body.portal-dark #portal-content .portal-section-head{padding:0 0 24px;margin-bottom:24px;background:transparent;border:0}
body.portal-dark #portal-content .portal-section-head h2{font-size:32px;margin:0 0 12px}
body.portal-dark #portal-content .portal-section-head p{font-size:14px;line-height:1.6}
body.portal-dark #portal-content .message-center{border-color:#493a2f;background:#1b1713;box-shadow:0 16px 40px #0003;grid-template-columns:310px minmax(0,1fr);height:calc(100dvh - 245px);min-height:530px;max-height:850px}
body.portal-dark #portal-content .message-thread{align-items:stretch;background:#1b1713;min-width:0}
body.portal-dark #portal-content .message-thread>.message-empty--start{width:100%;max-width:none;align-self:stretch;min-height:0;flex:1;background:radial-gradient(ellipse at 50% 35%,#31241b 0,transparent 70%),#1b1713;padding:44px 28px;box-sizing:border-box;color:#c6b5a6}
body.portal-dark #portal-content .message-empty--start>strong{color:#f4eee7;font-size:32px;line-height:1.15}
body.portal-dark #portal-content .message-empty--start>p{color:#c6b5a6;font-size:14px;max-width:360px}
body.portal-dark #portal-content .message-empty--start>small{color:#c6b5a6}
body.portal-dark #portal-content .message-empty--start>.message-welcome-kicker{color:#dfa27c}
body.portal-dark #portal-content .message-welcome-mark{background:#4b3323;color:#efb78f;box-shadow:0 0 0 10px #a5744215;flex-shrink:0}
body.portal-dark #portal-content .message-list-empty{background:#241d17;border:1px solid #57402e;color:#c6b5a6;padding:24px 18px}
body.portal-dark #portal-content .message-list-empty :is(strong,span){color:#d5c5b7}
body.portal-dark #portal-content .message-member-search input[type=search]{background:transparent;border:0;box-shadow:none;padding:0;outline:0;border-radius:0}
body.portal-dark #portal-content .message-member-search:focus-within{outline:2px solid #dfa27c;outline-offset:2px}
body.portal-dark #portal-content .message-member-search svg{stroke:#d6b99f}
body.portal-dark #portal-content .message-search-section,body.portal-dark #portal-content .message-chats-section{background:#211b16}
body.portal-dark .portal-assistant-launcher{position:fixed;z-index:65;right:24px;bottom:24px;display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 20px;border:1px solid #d29a75;border-radius:32px!important;background:#825034;color:#fff;box-shadow:0 8px 28px #0007;cursor:pointer;font-size:12px;font-weight:750}
body.portal-dark .portal-assistant-launcher[hidden]{display:none}
body.portal-dark .portal-assistant-launcher:hover{background:#a36543}
body.portal-dark .portal-assistant-launcher svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
body.portal-dark #portal-assistant-popup{position:fixed;inset:auto 24px 96px auto;width:min(430px,calc(100vw - 32px));height:min(660px,calc(100dvh - 130px));margin:0;padding:0;z-index:70;border:1px solid #9b6b49;border-radius:16px;background:#1b1713;color:#f4eee7;box-shadow:0 24px 70px #0009;overflow:hidden}
body.portal-dark #portal-assistant-popup[open]{display:flex;flex-direction:column}
body.portal-dark .assistant-popup-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:16px 18px;border-bottom:1px solid #493a2f;background:#302219}
body.portal-dark .assistant-popup-bar strong{font-size:15px}
body.portal-dark .assistant-popup-bar button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #8c664b;border-radius:50%;background:#473021;color:#fff;font-size:22px;cursor:pointer}
body.portal-dark #portal-assistant-content{flex:1;min-height:0;padding:0}
body.portal-dark #portal-assistant-content .h18-assistant{height:100%;display:flex;flex-direction:column;color:#f4eee7}
body.portal-dark #portal-assistant-content .h18-assistant-head{padding:12px 16px;margin:0;flex-shrink:0}
body.portal-dark #portal-assistant-content .h18-assistant-head h2{font-size:23px}
body.portal-dark #portal-assistant-content .h18-assistant-head>div>span{display:none}
body.portal-dark #portal-assistant-content .h18-assistant-shell{display:flex;flex:1;min-height:0;max-height:none;height:auto;border:0}
body.portal-dark #portal-assistant-content .h18-assistant-conversation{width:100%;min-height:0;border:0;background:#1b1713}
body.portal-dark #portal-assistant-content .h18-assistant-conversation>header{display:none}
body.portal-dark #portal-assistant-content .h18-assistant-log{padding:16px;background:#1b1713;min-height:0;flex:1}
body.portal-dark #portal-assistant-content .h18-assistant-message{background:#30251c;color:#f4eee7;border-color:#61432e}
body.portal-dark #portal-assistant-content .h18-assistant-message p{color:#f4eee7;font-size:14px;line-height:1.65}
body.portal-dark #portal-assistant-content .h18-assistant-message.is-user{background:#5b3927}
body.portal-dark #portal-assistant-content .h18-assistant-composer{background:#241b15;border-color:#493a2f;padding:14px}
body.portal-dark #portal-assistant-content .h18-assistant-composer textarea{background:#302720;color:#f4eee7;border-color:#735840;font-size:16px;resize:none}
body.portal-dark #portal-assistant-content .h18-assistant-privacy{color:#c6b5a6}
body.portal-dark :is(.portal-assistant-launcher,.assistant-popup-bar button):focus-visible{outline:2px solid #efbf9d;outline-offset:3px}
@media(max-width:1050px){body.portal-dark #portal-content .membership-overview{grid-template-columns:32px 1fr auto}body.portal-dark #portal-content .membership-overview-state,body.portal-dark #portal-content .membership-overview-validity{display:none}body.portal-dark #portal-content .message-center{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:760px){body.portal-dark #portal-content{padding:24px 16px 100px}body.portal-dark .portal-main>.portal-section-tabs{margin:12px 16px 0;gap:24px}body.portal-dark .portal-section-tabs button{font-size:13px}body.portal-dark #portal-content .member-home-hero{grid-template-columns:1fr;gap:18px;margin-bottom:30px}body.portal-dark #portal-content .member-home-hero>:is(.member-entry-card,.member-next-session){padding:24px;min-height:200px}body.portal-dark #portal-content .portal-welcome{padding-bottom:24px;margin-bottom:28px}body.portal-dark #portal-content .portal-welcome>span{display:block}body.portal-dark .portal-home-columns{gap:24px}body.portal-dark #portal-content :is(.portal-home-agenda,.dashboard-notifications){padding:20px}body.portal-dark #portal-content :is(.portal-home-agenda,.dashboard-notifications) h3{font-size:22px}body.portal-dark .portal-week-strip{grid-template-columns:repeat(7,minmax(90px,1fr))}body.portal-dark #portal-content .membership-overview{gap:12px;padding:20px;grid-template-columns:28px 1fr}body.portal-dark #portal-content .membership-overview button{grid-column:2;justify-self:start;font-size:12px}body.portal-dark #portal-content .dashboard-notification{grid-template-columns:1fr;gap:12px}body.portal-dark #portal-content .dashboard-notification button{justify-self:start}body.portal-dark #portal-content .message-center{display:block;height:calc(100dvh - 240px);min-height:450px}body.portal-dark #portal-content .message-center:not(.is-thread-open) .message-thread{display:none}body.portal-dark #portal-content .message-center.is-thread-open .message-people{display:none}body.portal-dark #portal-content .message-center.is-thread-open .message-thread{display:flex;height:100%}body.portal-dark #portal-content .message-people{height:100%}body.portal-dark .portal-assistant-launcher{right:16px;bottom:16px;min-width:58px;width:58px;height:58px;padding:0;border-radius:50%!important}body.portal-dark .portal-assistant-launcher>span{display:none}body.portal-dark #portal-assistant-popup{right:16px;bottom:88px;height: min(640px,calc(100dvh - 112px))}}
body.portal-dark #portal-content .portal-section-head>div{background:transparent}
@media(max-width:760px){body.portal-dark #portal-content .dashboard-notification button{grid-column:1}body.portal-dark #portal-content .portal-home-agenda>header{flex-wrap:wrap}body.portal-dark #portal-content .portal-home-agenda>header>div{min-width:190px}body.portal-dark #portal-content .portal-home-agenda>header>button{margin-left:44px}body.portal-dark #portal-content .portal-home-agenda header h3{white-space:nowrap}}

/* Comfortable inset for all section title panels, including monthly feedback. */
body.portal-dark #portal-content .portal-section-head{box-sizing:border-box;padding:26px 28px;margin-bottom:26px}
body.portal-dark #portal-content .portal-section-head>div{min-width:0}
body.portal-dark #portal-content .portal-section-head h2{line-height:1.15;overflow-wrap:break-word}
@media(max-width:760px){body.portal-dark #portal-content .portal-section-head{padding:22px 20px;margin-bottom:24px}body.portal-dark #portal-content .survey-heading{flex-wrap:wrap;gap:16px}}
/* Community presence is supporting information, not a full-page headline. */
body.portal-dark #portal-content .community-hero{grid-template-columns:minmax(0,1fr) 230px;min-height:0}
body.portal-dark #portal-content .community-hero>div{padding:28px;min-height:0}
body.portal-dark #portal-content .community-hero h2{font-size:clamp(28px,2.8vw,38px);line-height:1.12;letter-spacing:-.035em;margin:12px 0 16px;max-width:none}
body.portal-dark #portal-content .community-hero p{font-size:14px;line-height:1.6;max-width:650px;margin:0}
body.portal-dark #portal-content .community-hero>div:last-child{background:#30241b;border-left:1px solid #57402e;justify-content:center}
body.portal-dark #portal-content .community-hero>div:last-child strong{font-size:44px;line-height:1.1;margin:0 0 8px}
body.portal-dark #portal-content .community-hero>div:last-child small{font-size:13px;color:#d8c2af}
body.portal-dark #portal-content .community-hero>div:last-child button{min-height:38px;padding:10px 12px;margin-top:18px;font-size:11px}
@media(max-width:760px){body.portal-dark #portal-content .community-hero{grid-template-columns:1fr}body.portal-dark #portal-content .community-hero>div{padding:22px 20px}body.portal-dark #portal-content .community-hero>div:last-child{border-left:0;border-top:1px solid #57402e;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 14px}body.portal-dark #portal-content .community-hero>div:last-child strong{font-size:32px;margin:0}body.portal-dark #portal-content .community-hero>div:last-child button{grid-column:1/-1;margin-top:4px;justify-self:start}}

/* Lesbare Team- und Datenschutzhinweise im dunklen Gesundheitsbereich. */
body.portal-dark #portal-content :is(.health-review-note,.health-privacy-copy){box-sizing:border-box;margin:16px 0;padding:14px 18px;border:1px solid #735840;border-left:3px solid #dfa27c;background:#292019;color:#f4eee7;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
body.portal-dark #portal-content :is(.health-review-note,.health-privacy-copy) :is(strong,span,a){color:#f4eee7}
body.portal-dark #portal-content .health-review-note strong{color:#dfa27c;font-weight:750}

/* HOUSE18_WEEK_STATUS_ICONS */
body.portal-dark :is(#portal-content,#portal-assistant-content) .fitness-week-day{position:relative}
body.portal-dark :is(#portal-content,#portal-assistant-content) .fitness-week-day>.fitness-day-icons{position:absolute;top:14px;right:9px;display:flex;align-items:center;gap:5px;color:#fff;line-height:1;pointer-events:none}
.fitness-day-icons .fitness-day-icon{display:inline-flex;align-items:center;justify-content:center;color:#fff}
.fitness-day-icons svg{display:block;width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){body.portal-dark :is(#portal-content,#portal-assistant-content) .fitness-week-day>.fitness-day-icons{top:14px;right:5px;gap:3px}.fitness-day-icons svg{width:12px;height:12px}}

/* Wochenplan: Heute, gebucht und besucht klar auseinanderhalten. */
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day{border:1px solid rgba(255,255,255,.16);border-radius:2px;transition:none}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-today{border:2px solid #e4a174;box-shadow:inset 0 0 0 1px rgba(17,15,13,.55),0 0 0 1px rgba(228,161,116,.18);background:#34231b}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.has-course{border-color:#c87950;background:#4a2d20}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-attended{border-color:#a9b18b;background:#384130;box-shadow:inset 0 0 0 1px rgba(225,235,204,.18)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-today.has-course{border-color:#efbd91;background:linear-gradient(145deg,#4e3022,#3d281e)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-today.is-attended{border-color:#d8dfb4;background:linear-gradient(145deg,#465238,#342d21)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day.is-attended .fitness-day-icon.is-attended svg{stroke:#dbe8bd}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="heute"]::after,
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="gebucht"]::after,
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="besucht"]::after{display:block;align-self:end;margin-top:auto;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="heute"]::after{content:"Heute";color:#efbd91}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="gebucht"]::after{content:"Gebucht";color:#f0b48f}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day[data-day-status="besucht"]::after{content:"Besucht";color:#dbe8bd}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-week-strip .fitness-week-day>b.is-visited{color:#dbe8bd}

/* Datumsfelder im Kursplan immer mit vollständigem, gleichmässigem Rahmen. */
.course-date,.event-member-date{border:1px solid rgba(17,15,13,.28)!important;box-sizing:border-box}
body.portal-dark :is(#portal-content,#portal-assistant-content) .course-date,
body.portal-dark :is(#portal-content,#portal-assistant-content) .event-member-date{border:1px solid rgba(255,255,255,.24)!important}

/* Appointment slots: pointer, visible hover, keyboard focus and selected state. */
body.portal-dark #portal-content .appointment-slot-day label,body.portal-dark #portal-content .appointment-slot-day label *{cursor:pointer}
body.portal-dark #portal-content .appointment-slot-day label>span{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
body.portal-dark #portal-content .appointment-slot-day label:hover>span,body.portal-dark #portal-content .appointment-slot-day input:focus-visible+span{background:#754b32;border-color:#e1ad87;color:#fff;box-shadow:inset 0 0 0 1px #e1ad87}
body.portal-dark #portal-content .appointment-slot-day label:hover>span :is(b,small),body.portal-dark #portal-content .appointment-slot-day input:focus-visible+span :is(b,small){color:#fff}
body.portal-dark #portal-content .appointment-slot-day input:checked+span{background:#895135;border-color:#efc29f;color:#fff;box-shadow:inset 0 0 0 1px #efc29f}
body.portal-dark #portal-content .appointment-slot-day input:checked+span :is(b,small){color:#fff}
@media(prefers-reduced-motion:reduce){body.portal-dark #portal-content .appointment-slot-day label>span{transition:none}}

/* Housi: a friendly club-house icon and a named, unobtrusive launcher. */
body.portal-dark .assistant-popup-bar strong{display:flex;align-items:center;gap:10px}
body.portal-dark .assistant-popup-bar .housi-icon{width:30px;height:30px;color:#efb78f;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
body.portal-dark .housi-icon{stroke-width:2.2}
@media(max-width:760px){body.portal-dark .portal-assistant-launcher{width:auto;min-width:0;height:52px;min-height:52px;padding:0 16px;gap:8px;border-radius:28px!important}body.portal-dark .portal-assistant-launcher>span{display:inline}body.portal-dark .portal-assistant-launcher svg{width:26px;height:26px}}

body.portal-dark #portal-assistant-content .h18-assistant{min-height:0;overflow:hidden}
body.portal-dark #portal-assistant-content .h18-assistant-shell{overflow:hidden}
body.portal-dark #portal-assistant-content .h18-assistant-conversation{height:auto;max-height:100%;min-height:0;flex:1}

/* HOUSE18_DARK_APPOINTMENT_NOTE */
body.portal-dark :is(#portal-content,#portal-assistant-content) .appointment-note{background:#211b16;color:var(--portal-text);border-color:var(--line)}
body.portal-dark :is(#portal-content,#portal-assistant-content) .appointment-note>span{color:#dfc0a7}

/* HOUSE18_COMPACT_TRAINING_FILTERS */
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid #65503e;background:#261e17;color:#e5d8ca;font-size:12px;font-weight:650;line-height:1.25;letter-spacing:0}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters button.is-active{background:#925337;border-color:#bb7b52;color:#fff}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters button:is(:hover,:focus-visible){background:#b86f4d;border-color:#b86f4d;color:#fff;filter:none;transform:none}
body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters button b{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;margin:0;padding:0 3px;box-sizing:border-box;border-radius:50%;background:#ffffff1f;color:inherit;font-size:10px;font-weight:700;line-height:1}
@media(max-width:760px){body.portal-dark :is(#portal-content,#portal-assistant-content) .portal-training-filters button{min-height:36px;padding:7px 10px}}

/* HOUSE18_PORTAL_SHELL_ONLY */
body.portal-dark:has(#portal-app:not([hidden])) .auth-house-close{display:none!important}
@media(min-width:1101px){body.portal-dark .portal-menu{display:none!important}}
