/* MENU-M2: shared dark surfaces. Screen-only; media and print output retain their colors. */
@media screen {
html[data-l98-theme="dark"]{color-scheme:dark;background:#0c1216;--m2-bg:#0c1216;--m2-surface:#172127;--m2-raised:#202e34;--m2-line:#3b4b52;--m2-text:#e7eeef;--m2-muted:#aabbbf;--m2-green:#9ad8b7;--m2-gold:#e8c98b;--bg:#0c1216!important;--card:#172127!important;--panel:#172127!important;--paper:#172127!important;--soft:#202e34!important;--text:#e7eeef!important;--ink:#e7eeef!important;--muted:#aabbbf!important;--line:#3b4b52!important;--border:#3b4b52!important;--shell-bg-glass:#172127f5!important;--shell-btn-bg:#25343c!important;--shell-border:#3b4b52!important;--shell-btn-border:#45565f!important;--shell-shadow:0 12px 32px #0003!important;--shell-btn-shadow:none!important}
html[data-l98-theme="dark"] body{background:#0c1216!important;color:#e7eeef!important}
html[data-l98-theme="dark"] body :is(.page,.points-page,.wrap,.admin-main,.l98-create-wrap,.l98-edit-wrap){color:var(--m2-text)}
html[data-l98-theme="dark"] body :is(.card,.panel,.points-card,.points-pkg,.promo-box,.post-card,.group-item,.pkg,.section,.notice,.flash,.warn,.error,.err,.ok,.hero-card,.login-card,.l98-clean-details,.l98-clean-publish,.fb-compose,.media-card,.ai-box,.l98-auth-dialog,.l98-global-friend-panel,.l98-global-friend-card,.l98-shell-drawer,.menu-panel,.l98-menu-card,.l98-contact-box div,.l98-hero,.help-step,.help-task-grid>a,.help-start,.help-ending,.preview-clock,.h1-create-landing section){background:var(--m2-surface)!important;color:var(--m2-text)!important;border-color:var(--m2-line)!important;box-shadow:0 6px 24px #0002!important}
html[data-l98-theme="dark"] body :is(.topbar,.l98-shell-topbar,.tophead,.top,.admin-sidebar,.help-top){background:#0c1216f5!important;border-color:var(--m2-line)!important;color:var(--m2-text)!important}
html[data-l98-theme="dark"] body :is(.title,.hero-title,.hero-title-edit-wrap,.points-hero-title,.channel-title,.hero h1,.section h2,.card h1,.card h2,.card h3,.panel h1,.panel h2,.help-step h3,.l98-auth-title,.l98-global-friend-title,.l98-global-friend-name,.admin-main h1,.admin-main h2,.promo-label){color:var(--m2-text)!important}
html[data-l98-theme="dark"] body :is(.muted,.desc,.small,.hint,.sub,.hero-sub,.points-hero-sub,.points-note,.field label,.field .label,.section .desc,.card .desc,.l98-auth-sub,.l98-global-friend-sub,.l98-global-friend-note,.l98-clean-details-body,.help-note,.help-step p,.help-task-grid p){color:var(--m2-muted)!important}
html[data-l98-theme="dark"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea){color:var(--m2-text)!important;background:#10191f!important;border-color:#4b5e68!important;caret-color:var(--m2-green)}
html[data-l98-theme="dark"] body :is(input,textarea)::placeholder{color:#95a8ae!important;opacity:1}
html[data-l98-theme="dark"] body :is(.btn,.button,.topbtn,.tab,.icon-btn,.points-link,.points-mode-tag,.l98-shell-action,.topnav a,.l98-minimal-toggle-btn,.l98-global-friend-btn,.l98-clean-details summary){background:var(--m2-raised)!important;color:var(--m2-text)!important;border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body :is(.btn-main,.btn.primary,.btn-primary,.points-pay-btn,.promo-redeem-btn,.l98-global-friend-btn.main){background:#d9bc83!important;color:#232415!important;border-color:#d9bc83!important}
html[data-l98-theme="dark"] body :is(.points-price,.points-balance,.balance){color:var(--m2-gold)!important}
html[data-l98-theme="dark"] body :is(.points-cfg-warn,.points-pay-msg.err,.error,.err,.h1-save-feedback.is-error){background:#382428!important;color:#ffc7bd!important;border-color:#87524e!important}
html[data-l98-theme="dark"] body :is(.points-pay-msg.ok,.ok,.flash,.h1-save-confirmation){background:#19352c!important;color:#b6e4c8!important;border-color:#406c56!important}
html[data-l98-theme="dark"] body :is(.pos,.text-success){color:#a1dfb6!important}
html[data-l98-theme="dark"] body :is(.neg,.text-danger){color:#ffb8af!important}
html[data-l98-theme="dark"] body :is(table,td){background:var(--m2-surface)!important;color:var(--m2-text);border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body th{background:#24353b!important;color:#d8e5df!important;border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body :is(.h1-dialog,.h1-surface,.h1-card,.h1-day,.h1-choice,.h1-journal-choice,.h1-wheel-wrap,.h1-manage,.h1-trash-row,.h1-reminder,.h1-dialog-footer,.h1-form-actions,.h1-status,.h1-alarm-due){background:var(--m2-surface)!important;color:var(--m2-text)!important;border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body :is(.h1-dialog-title,.h1-label,.h1-day-number,.h1-choice strong,.h1-journal-choice strong,.h1-clock-face,.h1-reminder-title){color:var(--m2-text)!important}
html[data-l98-theme="dark"] body :is(.h1-subtle,.h1-clock-date,.h1-clock-face small,.h1-field small,.h1-reminder-detail,.h1-help summary,.h1-help p,.h1-save-feedback,.h1-calendar-weekday){color:var(--m2-muted)!important}
html[data-l98-theme="dark"] body :is(.h1-btn,.h1-icon-btn,.h1-segment){background:#25343b!important;color:#dce9e4!important;border-color:#42565e!important}
html[data-l98-theme="dark"] body :is(.h1-btn.primary,.h1-segment[aria-pressed=true],.h1-day[aria-selected=true],.h1-wheel button[aria-selected=true]){background:#315b4c!important;color:#d9f3df!important;border-color:#81b79a!important}
html[data-l98-theme="dark"] body #l98LifeClock{background:linear-gradient(115deg,#17262b,#172127)!important;border-color:#3a4d53!important;color:var(--m2-text)!important;box-shadow:0 10px 30px #0002!important}
html[data-l98-theme="dark"] .l98-nav-content{--nav-ink:#e7eeef;--nav-muted:#aabbbf;--nav-line:#3b4b52;--nav-soft:#202e34;--nav-card:#19252b;--nav-accent:#9ad8b7;--nav-accent-soft:#243f35;--nav-section:#152027}
html[data-l98-theme="dark"] body [data-l98-navigation-drawer]{background:#172127!important;color:#e7eeef!important;border-color:#3b4b52!important}
html[data-l98-theme="dark"] body [data-l98-navigation-drawer]>:is(.l98-drawer-head,.side-menu-head){background:#172127f7!important;color:#e7eeef!important;border-color:#3b4b52!important}
html[data-l98-theme="dark"] body :is(.l98-drawer-title,.l98-nav-drawer-subtitle){color:#c5d3d5!important}
html[data-l98-theme="dark"] body [data-l98-navigation-drawer]>div>button{background:#26363e!important;color:#dbe5e8!important;border-color:#4a5a62!important}
html[data-l98-theme="dark"] body .l98-points-dialog-m2{color-scheme:dark;background:#172127!important;color:#e7eeef!important;border-color:#4a5a60!important}
html[data-l98-theme="dark"] body :is(.l98-points-m2-head,.l98-points-m2-option,.l98-points-m2-icon,.l98-points-m2-head button){background:#1e2b31!important;color:#dcebe5!important;border-color:#425259!important}
html[data-l98-theme="dark"] body :is(.l98-points-m2-head h2,.l98-points-m2-option strong){color:#eaf2ed!important}
html[data-l98-theme="dark"] body :is(.l98-points-m2-head p,.l98-points-m2-option small,.l98-points-m2-arrow){color:#b3c4c5!important}
html[data-l98-theme="dark"] body .l98-points-m2-icon{color:#a0daba!important;background:#263c34!important}
html[data-l98-theme="dark"] body .l98-points-m2-option:hover{background:#28433a!important;border-color:#9ad8b7!important}
html[data-l98-theme="dark"] body .cinema-login{background:#172127;color:#e7eeef;border-color:#425259}
html[data-l98-theme="dark"] body .cinema-login :is(h2,.cinema-brand){color:#e7eeef}
html[data-l98-theme="dark"] body .cinema-login :is(.splash-sub,.sep,.policy-links,.field label,.cinema-login-join span){color:#b2c3c6}
html[data-l98-theme="dark"] body .cinema-login .btn-line{background:#06c755!important;color:#083d20!important}
html[data-l98-theme="dark"] body .cinema-login .btn-google{background:#e9eeee!important;color:#24372e!important}
html[data-l98-theme="dark"] body :is(.life-details,.cinema-footer){background:#0c1216;color:#dce7e6}
html[data-l98-theme="dark"] body .life-details :is(p,.life-notes p){color:#aabbbf}
html[data-l98-theme="dark"] body :is(.life-intro h2,.life-notes h3,.life-end-link){color:#dbe8db}
html[data-l98-theme="dark"] body .h4-page{background:#0c1216!important;color:#e7eeef!important}
/* QR/barcodes are functional artwork: keep the white scanning surface. */
html[data-l98-theme="dark"] body :is(.f1-qr,.l98-global-friend-qr-img,.barcode-box,.carrier-barcode){background:#fff!important;color:#111!important}

html[data-l98-theme="dark"]{--l98-bg:#0c1216!important;--l98-card:#172127!important;--l98-ink:#e7eeef!important;--l98-muted:#aabbbf!important;--l98-line:#3b4b52!important}
html[data-l98-theme="dark"] body :is(.item,.head-card,.empty,.danger-zone,.status,.log,.modal-card,.detail-card,.excel-wrap,.excel-head,.expense-row,.ocr-row,.expense-row-summary,.manual-box,.preview,.preview-ai,.input-note,.video-copyright-note,.cell,.bottom-panel,.item-card,.alert-form,.memory-create-panel,.memory-create-head,.alert-submit-zone,.calendar-pin-box,.h4-root,.h4-chat-card,.h4-dialog,.h4-filter,.h4-pin,.h4-empty,.h4-table-wrap){background:var(--m2-surface)!important;color:var(--m2-text)!important;border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body :is(.h4-dialog-head,.h4-dialog-foot,.h4-segments,.h4-button,.page-link,.manual-toggle,.back-link,.hero-pill,.meta-pill,.pill,.chev,.filters a,.filters button,.pdfbtn,.add-toggle,.small-btn,.mode-tab,.alert-tag-btn,.calendar-lock-btn){background:var(--m2-raised)!important;color:var(--m2-text)!important;border-color:var(--m2-line)!important}
html[data-l98-theme="dark"] body :is(.h4-muted,.h4-status,.h4-details,.h4-count small,.h4-dates label,.item small,.cell .date,.item-card .sub,.input-note,.editable-title-label){color:var(--m2-muted)!important}
html[data-l98-theme="dark"] body :is(.h4-heading h1,.h4-pin h2,.h4-dialog h2,.item-title,.item h3,.head-card h1,.bottom-panel h2){color:var(--m2-text)!important}
html[data-l98-theme="dark"] body :is(.h4-button.primary,.h4-segments [aria-pressed=true],.mode-tab.active,.page-link.active,.calendar-lock-btn.active,.cell.today){background:#284b3e!important;color:#c7eed7!important;border-color:#78a991!important}
html[data-l98-theme="dark"] body :is(.btn-line,.tab-line.active){background:#06c755!important;color:#083d20!important}
html[data-l98-theme="dark"] body :is(.btn-danger,.btn.danger,.iconbtn.danger){background:#432b2f!important;color:#ffc7bd!important;border-color:#8e5655!important}
}
