/* One shared preference system. Illustration canvases keep their original artwork. */
:root[data-theme="dark"]{color-scheme:dark;--adlux-bg:#071320;--adlux-surface:#111e30;--adlux-surface-raised:#192a40;--adlux-text:#eef5ff;--adlux-muted:#a3b5c9;--adlux-border:#33475e;--adlux-accent:#9bcfff;--adlux-accent-bg:#274b73;--adlux-focus:#9bcfff;--adlux-shadow:0 16px 48px #0005}
:root[data-theme="light"]{color-scheme:light;--adlux-bg:#f3f6fb;--adlux-surface:#fff;--adlux-surface-raised:#eaf0f8;--adlux-text:#142b45;--adlux-muted:#52677d;--adlux-border:#cad6e4;--adlux-accent:#195bb4;--adlux-accent-bg:#deebff;--adlux-focus:#1659b3;--adlux-shadow:0 16px 48px #1739581a;--canvas:var(--adlux-bg);--bg:var(--adlux-bg);--panel:var(--adlux-surface);--panel-high:var(--adlux-surface-raised);--text:var(--adlux-text);--ink:var(--adlux-text);--muted:var(--adlux-muted);--line:var(--adlux-border);--sky:var(--adlux-accent);--blue:#2467ed;--navy:#f7faff;--navy2:#eaf0f8;--green:#157153}
[data-adlux-preferences]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-width:0;letter-spacing:normal;font-weight:400}
.adlux-preferences{position:relative;color:var(--adlux-text);font-family:inherit;text-align:start;line-height:1.5;font-size:13px;letter-spacing:normal}
.adlux-preferences-trigger{display:flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px 11px;border:1px solid var(--adlux-border);border-radius:9px;background:var(--adlux-surface);color:var(--adlux-text);cursor:pointer;list-style:none;font-size:12px;white-space:nowrap;box-sizing:border-box}
.adlux-preferences .adlux-preferences-trigger>span{font:inherit;color:inherit;transform:none}
.adlux-preferences .adlux-preferences-trigger{width:44px;height:44px;padding:8px}
.adlux-preferences .adlux-preferences-trigger>.adlux-control-glyph{display:grid;place-items:center;width:20px;height:20px;line-height:1;transform:none}
.adlux-preferences .adlux-control-glyph>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.adlux-preferences-trigger::-webkit-details-marker{display:none}.adlux-preferences-trigger:focus-visible,.adlux-preferences button:focus-visible,.adlux-preferences select:focus-visible{outline:3px solid var(--adlux-focus);outline-offset:3px}
.adlux-preferences-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;flex-shrink:0}
.adlux-preferences[open]{z-index:160}.adlux-preferences[open] .adlux-preferences-trigger{border-color:var(--adlux-accent)}
.adlux-preferences-panel{position:absolute;z-index:160;inset-block-start:calc(100% + 10px);inset-inline-end:0;width:310px;max-width:calc(100vw - 24px);max-height:calc(100svh - 112px);overflow:auto;padding:20px;border:1px solid var(--adlux-border);border-radius:14px;background:var(--adlux-surface);box-shadow:var(--adlux-shadow);color:var(--adlux-text);font-size:13px;line-height:1.5}
.adlux-preferences-panel>strong{display:block;color:var(--adlux-text);font-size:13px;font-weight:650;margin:0 0 10px}.adlux-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;background:var(--adlux-bg);border:1px solid var(--adlux-border);border-radius:10px}
.adlux-theme-options button{font:inherit;line-height:1.3;font-size:12px;min-width:0;min-height:44px;padding:8px 5px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--adlux-muted);cursor:pointer;overflow-wrap:anywhere}
.adlux-theme-options button[aria-pressed="true"]{color:var(--adlux-accent);background:var(--adlux-accent-bg);border-color:var(--adlux-accent);font-weight:650}
.adlux-preferences-panel p{color:var(--adlux-muted);font-size:13px;line-height:1.6;letter-spacing:normal;margin:9px 0 16px}.adlux-preferences-panel label{display:grid;gap:8px;color:var(--adlux-text);font-size:13px;font-weight:600}.adlux-preferences-panel select{appearance:auto;width:100%;min-height:44px;padding:10px 12px;font:inherit;color:var(--adlux-text);background:var(--adlux-bg);border:1px solid var(--adlux-border);border-radius:8px}.adlux-preferences-panel .adlux-translation-note{margin:12px 0}.adlux-preferences-panel .adlux-preferences-close{font:inherit;font-size:13px;font-weight:600;min-height:44px;border:1px solid var(--adlux-border);border-radius:8px;padding:10px 14px;width:100%;color:var(--adlux-text);background:var(--adlux-surface-raised);cursor:pointer}
/* Keep contact details, identifiers and monetary amounts readable in every locale. */
html[dir="rtl"]{font-family:Arial,'Noto Sans Arabic',sans-serif}html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="tel"],html[dir="rtl"] input[type="number"],html[dir="rtl"] input[type="url"],html[dir="rtl"] [data-currency],html[dir="rtl"] .metric-value,html[dir="rtl"] .timer,html[dir="rtl"] code{direction:ltr;unicode-bidi:isolate;text-align:start}html[dir="rtl"] .eyebrow,html[dir="rtl"] .chapter-kicker,html[dir="rtl"] .tiny-label,html[dir="rtl"] .header-note{letter-spacing:0}html[lang="hi"] .chapter h1,html[lang="hi"] .chapter h2,html[lang="ar"] .chapter h1,html[lang="ar"] .chapter h2{line-height:1.25;letter-spacing:0}html[lang="hi"] h1,html[lang="hi"] h2,html[lang="ar"] h1,html[lang="ar"] h2{letter-spacing:0}
/* Public homepage. Preserve the original phone/call animation as an illustration. */
:root[data-theme="light"] body.immersive{color:var(--adlux-text);background:var(--adlux-bg)}
:root[data-theme="light"] .journey-environment{background:radial-gradient(ellipse at 50% 60%,#cbdff277,transparent 65%),#f3f6fb}:root[data-theme="light"] .environment-glow{background:radial-gradient(ellipse,#afcde677,transparent 67%)}:root[data-theme="light"] .environment-horizon{border-color:#5d91b533}
:root[data-theme="light"] .journey-header{background:linear-gradient(#f3f6fbf5,#f3f6fb00)}:root[data-theme="light"] .journey-header .header-note,:root[data-theme="light"] .header-portal,:root[data-theme="light"] .round-link,:root[data-theme="light"] .scene-next,:root[data-theme="light"] .consumer-guide,:root[data-theme="light"] .portal-open,:root[data-theme="light"] .intro-start{color:#174f82}
:root[data-theme="light"] .chapter h1,:root[data-theme="light"] .chapter h2,:root[data-theme="light"] .portal-copy h2{color:#132d48}:root[data-theme="light"] .chapter h1 span,:root[data-theme="light"] .chapter em{color:#236bb3}
:root[data-theme="light"] .intro-side p,:root[data-theme="light"] .scene-copy>p:not(.chapter-kicker),:root[data-theme="light"] .route-title>p:last-child,:root[data-theme="light"] .portal-copy>p,:root[data-theme="light"] .action-note,:root[data-theme="light"] .demo-duration,:root[data-theme="light"] .questions-link,:root[data-theme="light"] .story-feature-role{color:#49667f}
:root[data-theme="light"] .chapter-kicker,:root[data-theme="light"] .tiny-label,:root[data-theme="light"] .device-label,:root[data-theme="light"] .routing-endpoints,:root[data-theme="light"] .scene-note,:root[data-theme="light"] .stories-collection-label,:root[data-theme="light"] .stories-preview-note,:root[data-theme="light"] .experience-meta,:root[data-theme="light"] .experience-meta button{color:#526c85}
:root[data-theme="light"] .journey-book,:root[data-theme="light"] .journey-primary{color:#fff;background:#215e9c}:root[data-theme="light"] .journey-book:hover,:root[data-theme="light"] .journey-primary:hover{background:#174d84}
:root[data-theme="light"] .routing-labels>span{background:#ffffffe8;border-color:#b9ccde;color:#244c6d}:root[data-theme="light"] .chapter-nav{background:#f7faffed;border-color:#c8d5e3;box-shadow:0 8px 30px #17395818}:root[data-theme="light"] .chapter-nav a{color:#52708b}:root[data-theme="light"] .chapter-nav a[aria-current]{color:#164f87;background:#dceaff}:root[data-theme="light"] .nav-number{color:#6b8199}:root[data-theme="light"] .chapter-nav a[aria-current] .nav-number{color:#1a5794}:root[data-theme="light"] .journey-progress span{background:#2a6eac}
:root[data-theme="light"] .story-quote,:root[data-theme="light"] .story-feature-person strong,:root[data-theme="light"] .story-feature-watch{color:#153b60}:root[data-theme="light"] .story-feature-person>span{color:#526e87}:root[data-theme="light"] .story-feature-play,:root[data-theme="light"] .gallery-navigation button{background:#e3edf8;border-color:#b6cce0;color:#225b8d}
:root[data-theme="light"] #questions-dialog,:root[data-theme="light"] #james-dialog{background:#f8fbff;color:#142b45;border-color:#b9cde0}:root[data-theme="light"] #questions-dialog p,:root[data-theme="light"] #questions-dialog summary,:root[data-theme="light"] .story-player-footer,:root[data-theme="light"] #james-dialog p{color:#52677d}:root[data-theme="light"] .close-dialog,:root[data-theme="light"] .story-close{background:#e1eaf4;color:#183e64}
/* Portal chooser and signup share surfaces, including a genuine dark form state. */
body[data-adlux-page="entry"],body[data-adlux-page="signup"]{background:radial-gradient(ellipse at 13% 45%,color-mix(in srgb,var(--adlux-accent) 8%,transparent),transparent 60%),var(--adlux-bg);color:var(--adlux-text)}
[data-adlux-page] .site-header,[data-adlux-page] .site-footer{border-color:var(--adlux-border)}
[data-adlux-page] .site-footer,[data-adlux-page] .site-footer a,[data-adlux-page] .site-footer>span:nth-child(2),[data-adlux-page] .back-link,[data-adlux-page] .header-account,[data-adlux-page] .story-note,[data-adlux-page] .intro-copy,[data-adlux-page] .story-lede{color:var(--adlux-muted)}
[data-adlux-page] .header-account a,[data-adlux-page] .portal-intro h1,[data-adlux-page] .account-story h1{color:var(--adlux-text)}[data-adlux-page] .portal-intro h1 span,[data-adlux-page] .account-story h1 span{color:var(--adlux-accent)}
[data-adlux-page] .portal-options,[data-adlux-page] .account-panel{color:var(--adlux-text);background:var(--adlux-surface);border-color:var(--adlux-border);box-shadow:var(--adlux-shadow)}
[data-adlux-page] .panel-heading h2,[data-adlux-page] .account-heading h2,[data-adlux-page] .portal-options h3,[data-adlux-page] .completion h2{color:var(--adlux-text)}
[data-adlux-page] .eyebrow,[data-adlux-page] .signup-copy,[data-adlux-page] .panel-heading>p:last-child,[data-adlux-page] .account-heading>p:last-child,[data-adlux-page] .back-home,[data-adlux-page] .field,[data-adlux-page] .field small,[data-adlux-page] .form-assurance,[data-adlux-page] .signin-note,[data-adlux-page] .new-account-heading p,[data-adlux-page] .completion>p:not(.eyebrow),[data-adlux-page] .form-recovery{color:var(--adlux-muted)}
[data-adlux-page] .account-choice,[data-adlux-page] .account-type-switch button,[data-adlux-page] .completion-notice,[data-adlux-page] .agency-review-note{background:var(--adlux-surface-raised);border-color:var(--adlux-border);color:var(--adlux-text)}
[data-adlux-page] .account-choice:hover,[data-adlux-page] .account-type-switch button[aria-selected="true"]{background:var(--adlux-accent-bg);border-color:var(--adlux-accent);color:var(--adlux-text)}
[data-adlux-page] .choice-copy strong,[data-adlux-page] .account-type-switch button>span:not(.type-check){color:var(--adlux-text)}[data-adlux-page] .choice-copy small,[data-adlux-page] .account-type-switch small,[data-adlux-page] .agency-fields legend{color:var(--adlux-muted);white-space:normal}
[data-adlux-page] .choice-icon{background:var(--adlux-surface);border-color:var(--adlux-border);color:var(--adlux-accent)}
[data-adlux-page] .field input,[data-adlux-page] .field select{background:var(--adlux-bg);border-color:var(--adlux-border);color:var(--adlux-text)}[data-adlux-page] .field input::placeholder{color:var(--adlux-muted);opacity:.85}[data-adlux-page] .password-input button,[data-adlux-page] .signin-note a,[data-adlux-page] .form-recovery a{color:var(--adlux-accent)}[data-adlux-page] .field input:focus{border-color:var(--adlux-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--adlux-accent) 20%,transparent)}
[data-adlux-page] .agency-fields,[data-adlux-page] .signin-note,[data-adlux-page] .story-note{border-color:var(--adlux-border)}[data-adlux-page] .new-account-heading span{background:var(--adlux-border)}
:root[data-theme="dark"] [data-adlux-page] .signin-button,:root[data-theme="dark"] [data-adlux-page] .submit-button{background:#9bcfff;color:#102b45}:root[data-theme="dark"] [data-adlux-page] .form-error{background:#40272d;color:#ffd3d0;border-color:#785057}:root[data-theme="dark"] [data-adlux-page] .field input[aria-invalid="true"]{background:#35262d;border-color:#c7787d}
:root[data-theme="light"] [data-adlux-page] .workspace-card,:root[data-theme="light"] [data-adlux-page] .call-preview{color:#eef5ff}:root[data-theme="light"] [data-adlux-page] .call-connection,:root[data-theme="light"] [data-adlux-page] .visual-caption{color:#52677d}
html[dir="rtl"] [data-adlux-page] .account-choice,html[dir="rtl"] [data-adlux-page] .account-type-switch button,html[dir="rtl"] [data-adlux-page] .completion-notice{text-align:start}html[dir="rtl"] [data-adlux-page] .choice-arrow,html[dir="rtl"] [data-adlux-page] .type-check{margin-left:0;margin-right:auto}html[dir="rtl"] [data-adlux-page] .password-input button{right:auto;left:2px}html[dir="rtl"] [data-adlux-page] .password-input input{padding-right:13px;padding-left:70px}
/* Auth shells are generated on the backend; selectors stay independent of route. */
body[data-adlux-page="auth"]{background:var(--adlux-bg);color:var(--adlux-text)}[data-adlux-page="auth"] :is(.card,.auth-card,.login-card,.gate,main){background:var(--adlux-surface);color:var(--adlux-text);border-color:var(--adlux-border)}[data-adlux-page="auth"] :is(input,select,textarea){background:var(--adlux-bg);color:var(--adlux-text);border-color:var(--adlux-border)}[data-adlux-page="auth"] :is(label,p,small){color:var(--adlux-muted)}[data-adlux-page="auth"] a{color:var(--adlux-accent)}
/* Shared publisher/admin components. Detailed portal selectors live with their UI. */
:root[data-theme="light"] .ops-shell>aside{background:#f8faff;color:var(--adlux-text)}:root[data-theme="light"] .ops-shell nav button{color:var(--adlux-muted)}:root[data-theme="light"] .ops-shell nav button.active{color:#174c85;background:#e0ecff;border-color:#a9c5e4}:root[data-theme="light"] .ops-shell .metric{background:#fff}:root[data-theme="light"] .ops-shell .metric span,:root[data-theme="light"] .ops-shell .metric small,:root[data-theme="light"] .ops-shell th,:root[data-theme="light"] .ops-shell header b,:root[data-theme="light"] .ops-shell .empty,:root[data-theme="light"] .ops-shell .inventory-note,:root[data-theme="light"] .ops-shell .inventory-summary span{color:var(--adlux-muted)}:root[data-theme="light"] .ops-shell .empty h3{color:var(--adlux-text)}:root[data-theme="light"] .ops-shell :is(.panel-top,th,td,.inventory-summary,.workspace footer){border-color:var(--adlux-border)}
:root[data-theme="light"] .ops-shell .button{background:#e8f0fa;color:#234c75;border-color:#b9cee3}:root[data-theme="light"] .ops-shell .button.primary{background:#195bb4;color:white}:root[data-theme="light"] .ops-shell .quiet{color:#195bb4}:root[data-theme="light"] .ops-shell .tag{background:#e6eef8;color:#2f5478;border-color:#bdd0e4}:root[data-theme="light"] .ops-shell .notice{background:#e8f1fb;color:#325d86;border-color:#c1d4e8}:root[data-theme="light"] .ops-shell .error{background:#fff3dc;color:#78511b;border-color:#dfc78e}
:root[data-theme="light"] .ops-shell :is(.support-item:hover,.support-item.selected,.support-message,.support-message.own){background:#eaf1fa;border-color:#c3d2e4}:root[data-theme="light"] .ops-shell :is(.support-thread input,.support-thread select,.support-thread textarea,.support-toolbar select){background:#fff;color:var(--adlux-text);border-color:var(--adlux-border)}
:root[data-theme="dark"] .ops-shell :is(.account-item,.account-toolbar input,.account-toolbar select,.account-detail input,.account-detail select,.account-detail textarea){color:var(--adlux-text);background:var(--adlux-surface);border-color:var(--adlux-border)}:root[data-theme="dark"] .ops-shell .account-item.selected{background:var(--adlux-accent-bg)}
html[dir="rtl"] .ops-shell>aside{border-right:0;border-left:1px solid var(--adlux-border)}html[dir="rtl"] .ops-shell nav button,html[dir="rtl"] .ops-shell table,html[dir="rtl"] .ops-shell .support-item{text-align:start}
@media(max-width:800px){.adlux-preferences-trigger>span:not(.adlux-control-glyph){display:none}.adlux-preferences-trigger{padding:9px;min-width:44px}.journey-header .header-note{display:none}.journey-header-actions{gap:8px!important}.site-header{gap:12px!important}.header-account{gap:10px!important}.header-account>span{display:none!important}[data-adlux-page="entry"] .back-link{margin-inline-start:auto}}
@media(max-width:420px){.journey-header{padding-inline:12px!important;gap:8px!important}.journey-brand img{width:68px!important}.journey-header .header-portal{font-size:11px!important;gap:3px}.journey-book{font-size:11px!important;padding-inline:8px!important}.journey-book svg{display:none}.journey-header-actions{gap:7px!important}.adlux-preferences-panel{position:fixed;top:75px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100svh - 90px)}[data-adlux-page="entry"] .back-link{font-size:10px;gap:5px}[data-adlux-page="entry"] .brand img,[data-adlux-page="signup"] .brand img{width:98px!important;height:auto!important}.site-header [data-adlux-preferences]{margin-inline-start:0}.account-type-switch button{padding-inline:9px!important}}
/* Longer translations remain scrollable rather than clipped by the chapter dock. */
html:not([lang="en"]) .chapter h1{font-size:clamp(32px,5vw,78px)}html:not([lang="en"]) .chapter h2{font-size:clamp(30px,4vw,65px)}html:not([lang="en"]) .chapter-nav a{padding-inline:9px;font-size:11px}html:not([lang="en"]) .intro-side p{font-size:15px}html:not([lang="en"]) .scene-copy>p:not(.chapter-kicker){font-size:15px}html[dir="rtl"] .intro-right{text-align:start}html[dir="rtl"] .copy-left,html[dir="rtl"] .copy-right,html[dir="rtl"] .portal-copy{text-align:right}
@media(max-width:700px){html:not([lang="en"]) .chapter h1{font-size:clamp(28px,6.5vw,42px)}html:not([lang="en"]) .chapter h2{font-size:clamp(27px,6vw,38px)}html:not([lang="en"]) .intro-side p,html:not([lang="en"]) .scene-copy>p:not(.chapter-kicker){font-size:12px;line-height:1.5}html:not([lang="en"]) .chapter-kicker{font-size:9px;letter-spacing:.04em}html:not([lang="en"]) .chapter-nav a{padding-inline:7px;font-size:10px}html:not([lang="en"]) .header-portal span{display:none}html:not([lang="en"]) .journey-book{max-width:100px;white-space:normal;text-align:center;line-height:1.25}}
@media(prefers-reduced-motion:reduce){.adlux-preferences *{scroll-behavior:auto;transition:none!important}}
/* Local booking preview only; production /book is a separate unchanged site. */
body[data-adlux-page="book"]{background:var(--adlux-bg);color:var(--adlux-text)}[data-adlux-page="book"] .booking-panel{background:var(--adlux-surface);border-color:var(--adlux-border)}[data-adlux-page="book"] :is(.topbar,.panel-progress,.time-picker,.selection-bar,.ticket-bottom){border-color:var(--adlux-border)}[data-adlux-page="book"] .preview-note{background:var(--adlux-surface-raised);color:var(--adlux-muted);border-color:var(--adlux-border)}[data-adlux-page="book"] .preview-note a,[data-adlux-page="book"] .text-button,[data-adlux-page="book"] .back-link{color:var(--adlux-accent)}[data-adlux-page="book"] .intro{background:radial-gradient(ellipse at 100% 0,#173c5c,transparent 68%),#091527;color:#fff}
[data-adlux-page="book"] .topbar img{mix-blend-mode:normal;background:#f8fbff;border-radius:8px;padding:5px 8px}[data-adlux-page="book"] :is(.form-line input,.form-line textarea,.timezone-row,.selected-meeting,.confirmation-ticket){background:var(--adlux-surface-raised);color:var(--adlux-text);border-color:var(--adlux-border)}[data-adlux-page="book"] :is(.form-line label,.panel-title p,.times-heading,.week-labels,.calendar-key,.selection-bar p,.selected-meeting p,.timezone-row label,.timezone-row>span,.privacy-note,.complete-lead,.no-booking){color:var(--adlux-muted)}[data-adlux-page="book"] :is(.selected-meeting b,.selection-bar p b,.timezone-row select){color:var(--adlux-text)}[data-adlux-page="book"] .calendar-days button:not(:disabled),[data-adlux-page="book"] .time-slots button,[data-adlux-page="book"] .month-row button{color:var(--adlux-text);background:var(--adlux-surface-raised);border-color:var(--adlux-border)}[data-adlux-page="book"] .calendar-days button[aria-pressed="true"],[data-adlux-page="book"] .time-slots button[aria-pressed="true"]{color:var(--adlux-accent);background:var(--adlux-accent-bg);border-color:var(--adlux-accent)}[data-adlux-page="book"] .primary:not(:disabled){background:#225e9c;color:#fff}[data-adlux-page="book"] .primary:disabled{background:var(--adlux-surface-raised);color:var(--adlux-muted);opacity:.6}
html[dir="rtl"] [data-adlux-page="book"] .time-picker{border-left:0;border-right:1px solid var(--adlux-border);padding-left:0;padding-right:22px}html[dir="rtl"] [data-adlux-page="book"] .calendar-layout{direction:rtl}[data-adlux-page="auth"] .adlux-preferences button{margin-top:0;width:auto}[data-adlux-page="auth"] .adlux-preferences-close{width:100%}
@media(max-width:700px){[data-adlux-page="book"] .topbar{gap:10px;flex-wrap:wrap;height:auto;min-height:90px;padding-block:15px}[data-adlux-page="book"] .back-link{margin-inline-start:auto;font-size:11px;gap:6px}}
/* Light workspace primitives: keep text and its surface paired, including legacy dark components. */
:root[data-theme="light"] .app-shell :is(h1,.page-heading h2,.panel-head h2,.ops-empty h3,.metric-value){color:var(--adlux-text)}
:root[data-theme="light"] .app-shell :is(.page-heading p,.panel-head p,.metric-label,.metric-note,.live-report-scope,.nav-label,.topbar-label,.header-signup,.preview-badge,.sidebar-help,.walkthrough-lock,.back-home){color:var(--adlux-muted)}
:root[data-theme="light"] .app-shell .sidebar .brand{background:#fff;border:1px solid var(--adlux-border);box-shadow:0 2px 10px #17395808}
:root[data-theme="light"] .app-shell :is(.workspace-switch,.sidebar-connection,.wallet-peek){background:var(--adlux-surface-raised);border-color:var(--adlux-border);color:var(--adlux-text)}
:root[data-theme="light"] .app-shell :is(.workspace-switch strong,.sidebar-connection strong,.wallet-peek strong){color:var(--adlux-text)}
:root[data-theme="light"] .app-shell :is(.workspace-switch small,.sidebar-connection small,.sidebar-connection>span:last-child){color:var(--adlux-muted)}
:root[data-theme="light"] .app-shell :is(.nav-divider,.header-divider){background:var(--adlux-border)}
:root[data-theme="light"] .app-shell :is(.workspace-setup-rows span,.ops-checklist strong,.setup-live-meter>span){color:var(--adlux-text)}
:root[data-theme="light"] .app-shell :is(.workspace-setup-rows small,.workspace-setup-rows i,.setup-live-meter small,.ops-checklist p){color:var(--adlux-muted)}
:root[data-theme="light"] .app-shell .workspace-setup-rows>div{background:transparent}
:root[data-theme="light"] .app-shell :is(.workspace-setup-rows i,.ops-checklist i){border-color:#8ba4bd;background:#f4f8fc;color:#31516e}
:root[data-theme="light"] .app-shell :is(.workspace-setup-rows .complete i,.ops-checklist .complete i){background:#d9f0e4;border-color:#8dbca6;color:#226447}
:root[data-theme="light"] .app-shell :is(.button.secondary,.button.ghost,.button.dark-outline,.logout-button){background:#fff;color:#274f74;border-color:#b7cadd}
:root[data-theme="light"] .app-shell :is(.button.secondary:hover,.button.ghost:hover,.button.dark-outline:hover,.logout-button:hover){background:#e6f0fb}
:root[data-theme="light"] .app-shell .button.primary{background:#205f9e;color:#fff;border-color:#205f9e;box-shadow:0 3px 12px #205f9e12}
:root[data-theme="light"] .app-shell .button.primary:hover{background:#194e84;border-color:#194e84}
:root[data-theme="light"] .app-shell .button-link{color:#195b94}
:root[data-theme="light"] .app-shell .period-tabs{background:#e7eef7;border-color:#bdccdc}
:root[data-theme="light"] .app-shell .period-tabs button{color:#425f7b}
:root[data-theme="light"] .app-shell .period-tabs button.selected{background:#fff;color:#164d7d;box-shadow:0 1px 4px #17395822}
:root[data-theme="light"] .app-shell :is(.live-metrics,.connection-screen){background:#fff;border-color:var(--adlux-border);color:var(--adlux-text)}
:root[data-theme="light"] .app-shell :is(.connection-screen>p,.connection-guarantee,.panel-bottom){color:var(--adlux-muted)}
:root[data-theme="light"] .app-shell :is(.metric,.panel-bottom,.ops-checklist li){border-color:var(--adlux-border)}
:root[data-theme="light"] .app-shell .metric.highlight .metric-value{color:#195b94}

@media(max-width:360px){.journey-header{padding-inline:8px!important;gap:5px!important}.journey-brand img{width:48px!important}.journey-header-actions{gap:4px!important}.journey-header .header-portal{font-size:10px!important;gap:2px}.journey-header .header-portal>span{display:none}.journey-book{font-size:10px!important;padding-inline:6px!important}.journey-header [data-adlux-preferences]{gap:4px}}
/* Every homepage chapter action pairs its light foreground with the matching surface. */
:root[data-theme="light"] body[data-adlux-page="home"] :is(.intro-start,.portal-open){background:#deebff;color:#174f82;border-color:#99bada}
:root[data-theme="light"] body[data-adlux-page="home"] :is(.intro-start:hover,.portal-open:hover){background:#c9e0f7;border-color:#6c9fc9}
:root[data-theme="light"] body[data-adlux-page="home"] :is(.story-shortcut,.story-shortcut:hover,.consumer-guide:hover,.portal-next){color:#174f82;border-color:#8daecb;text-decoration-color:#8daecb}
:root[data-theme="light"] body[data-adlux-page="home"] :is(.round-link span,.scene-next,.questions-link){border-color:#9ab5ce}
:root[data-theme="light"] body[data-adlux-page="home"] :is(.answer-action,.answer-action:hover){background:#c4eadc;color:#174f40}
:root[data-theme="light"] body[data-adlux-page="home"] :is(.story-player-navigation button,.story-dialog-header button){background:#e5effa;color:#174f82;border-color:#9ab5ce}

/* Visible language choices match the shared outline controls and work without a native select. */
.adlux-language-options{display:grid;gap:3px}
.adlux-language-options button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--adlux-text);font:inherit;font-size:13px;text-align:start;cursor:pointer}
.adlux-language-options button:hover{background:var(--adlux-surface-raised)}
.adlux-language-options button[aria-pressed="true"]{background:var(--adlux-accent-bg);color:var(--adlux-accent);border-color:var(--adlux-accent);font-weight:650}
.adlux-language-check{display:grid;place-items:center;width:18px;height:18px;flex:none;visibility:hidden}
.adlux-language-options button[aria-pressed="true"] .adlux-language-check{visibility:visible}
.adlux-language-check svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[data-adlux-page="auth"] .adlux-language-options button{width:100%;margin-top:0}
[data-adlux-page="auth"] #status{color:var(--adlux-text)}

[data-adlux-page] .signed-in-note{color:var(--adlux-muted);border-color:var(--adlux-border)}
html[dir="rtl"] [data-adlux-page] .back-home,html[dir="rtl"] [data-adlux-page] .back-link{unicode-bidi:plaintext}

/* Theme audit: shared semantic colors, readable controls and locale-safe wrapping. */
:root[data-theme="dark"]{--adlux-success:#91e0b8;--adlux-success-bg:#15382e;--adlux-warning:#f0d29c;--adlux-warning-bg:#342b1c;--adlux-danger:#ffb9c1;--adlux-danger-bg:#3b2430;--hover:#1b3048}
:root[data-theme="light"]{--adlux-success:#156346;--adlux-success-bg:#e4f3eb;--adlux-warning:#785313;--adlux-warning-bg:#fff4dc;--adlux-danger:#a5293c;--adlux-danger-bg:#fff0f2;--hover:#eaf0f8}
:where(.app-shell,.ops-shell,dialog,[data-adlux-page]) :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--adlux-focus);outline-offset:3px}
:where(.app-shell,.ops-shell,dialog,[data-adlux-page]) :is(input,select,textarea){color-scheme:inherit}
:where(.app-shell,.ops-shell,dialog) :is(h1,h2,h3,p,label,legend,summary){overflow-wrap:break-word}
:where(.app-shell,.ops-shell,dialog) :is(button,.button,.button-link){max-width:100%}
html:not([lang="en"]) :where(.app-shell,.ops-shell,dialog) :is(.button,.button-link,.quiet){white-space:normal;line-height:1.5;overflow-wrap:anywhere}
html:is([lang="hi"],[lang="ar"]) :where(.app-shell,.ops-shell,dialog) :is(h1,h2,h3,.eyebrow,.section-kicker,.nav-label,.tiny-label){letter-spacing:0;line-height:1.45}
html[dir="rtl"] :is(input[type="time"],input[type="date"],input[type="datetime-local"],audio){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] :is(.table-scroll table,.table-wrap table){text-align:start}
html[dir="rtl"] :is(.table-scroll,.table-wrap) :is(th,td){text-align:start}
html[dir="rtl"] :is(.history-call-id,.record-summary strong,.record-notes time,.account-activity time,.payment-review-total,.package-total,.history-billing b){unicode-bidi:plaintext}
:root[data-theme="light"] [data-adlux-page="book"] .calendar-days button:disabled{color:#718195;background:transparent}
:root[data-theme="dark"] [data-adlux-page="book"] .calendar-days button:disabled{color:#75869b;background:transparent}
[data-adlux-page="book"] .timezone-row select{background:transparent;color-scheme:inherit}
[data-adlux-page="book"] .timezone-row select option{color:var(--adlux-text);background:var(--adlux-surface)}
@media(max-width:700px){
 html[dir="rtl"] [data-adlux-page="book"] .time-picker{border-right:0;padding-right:0}
 :where(.app-shell,.ops-shell,dialog) :is(.panel-head,.panel-top,.dialog-actions){flex-wrap:wrap}
 :where(.app-shell,.ops-shell,dialog) :is(input,select,textarea){max-width:100%;min-width:0}
 html:not([lang="en"]) :where(.app-shell,.ops-shell) :is(.metric-label,.history-chart-legend){white-space:normal;line-height:1.5}
}

/* Public account-entry labels must remain readable when translations expand. */
[data-adlux-page] :is(.choice-copy,.header-account,.account-type-switch button>span){min-width:0}
[data-adlux-page] :is(.choice-copy,.new-account-heading p,.account-heading,.panel-heading){overflow-wrap:anywhere}
[data-adlux-page] .new-account-heading p{white-space:normal;text-align:center}
[data-adlux-page] :is(.signin-button,.submit-button){white-space:normal;line-height:1.5}
[data-adlux-page] .password-input{display:flex;align-items:stretch;background:var(--adlux-bg);border-radius:7px}
[data-adlux-page] .password-input input{min-width:0;flex:1;padding-inline:13px!important;border-start-end-radius:0;border-end-end-radius:0}
[data-adlux-page] .password-input button{position:static;flex:none;max-width:42%;height:auto;min-height:46px;line-height:1.4;margin-top:8px;border:1px solid var(--adlux-border);border-inline-start:0;border-start-end-radius:7px;border-end-end-radius:7px;white-space:normal;overflow-wrap:anywhere;padding-inline:10px}
html[dir="rtl"] [data-adlux-page] .setup-roadmap li:not(:last-child):before{left:auto;right:15px}
:root[data-theme="light"] [data-adlux-page] .setup-roadmap strong{color:var(--adlux-text)}
:root[data-theme="light"] [data-adlux-page] :is(.setup-roadmap p,.source-footer small,.source-footer>span,.source-footer>div span){color:var(--adlux-muted)}
:root[data-theme="light"] [data-adlux-page] .source-footer b{color:var(--adlux-text)}
:root[data-theme="light"] [data-adlux-page] .setup-roadmap li>span{background:var(--adlux-surface-raised);color:var(--adlux-accent);border-color:var(--adlux-border)}
@media(max-width:420px){html:not([lang="en"]) [data-adlux-page="signup"] .account-type-switch{grid-template-columns:1fr}[data-adlux-page] .header-account a{gap:5px;line-height:1.4;text-align:center}}

/* Public entry audit: preserve full translated labels and standalone controls on small screens. */
[data-adlux-page="auth"] .auth-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
[data-adlux-page="auth"] .auth-header .brand{flex:none;line-height:0}
[data-adlux-page="auth"] .auth-header .brand img{width:clamp(92px,24vw,120px);height:auto}
[data-adlux-page="auth"] .auth-preferences{margin-inline-start:auto}
[data-adlux-page="auth"] :is(h1,p,label,.text-link,.primary){overflow-wrap:anywhere}
[data-adlux-page="auth"] .primary{white-space:normal}
[data-adlux-page="auth"] :is(#status,.help a){unicode-bidi:plaintext}
html[dir="rtl"] [data-adlux-page] :is(.choice-arrow,.signin-button svg){transform:scaleX(-1)}
@media(max-width:480px){
 [data-adlux-page="entry"] .site-header,[data-adlux-page="signup"] .site-header{flex-wrap:wrap;row-gap:8px}
 [data-adlux-page="entry"] .site-header>[data-adlux-preferences]{margin-inline-start:auto}
 [data-adlux-page="entry"] .site-header>.back-link{order:3;flex-basis:100%;justify-content:flex-end;margin:0;font-size:13px;white-space:normal}
 [data-adlux-page="signup"] .header-account{display:contents}
 [data-adlux-page="signup"] .header-account>a{order:3;flex-basis:100%;justify-content:flex-end;white-space:normal;font-size:14px}
 [data-adlux-page="signup"] .header-account>[data-adlux-preferences]{flex:none;margin-inline-start:auto}
}
/* Form fields: a border with at least 3:1 against the page in both themes (WCAG 1.4.11; a11y-2300 serious #6: the
   shared --adlux-border was 1.47:1 light, 1.76:1 dark, and several pages set their own paler field borders). Text
   fields, selects, text areas and the Wallet amount box only; cards, panels and buttons keep --adlux-border. A focused
   or invalid field keeps its own colour. !important because a dozen page rules colour field borders with more
   specific selectors; this one colour replaces all of them. */
:root[data-theme="dark"]{--adlux-field-border:#6d8299}
:root[data-theme="light"]{--adlux-field-border:#71839a}
:where(.app-shell,.ops-shell,dialog,[data-adlux-page]) :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=file],[type=color],[type=submit],[type=button],[type=image],[type=reset]),select,textarea):not(:focus,[aria-invalid="true"]),
:where(.app-shell,.ops-shell,dialog,[data-adlux-page]) .fx-amount-field:not(:focus-within){border-color:var(--adlux-field-border)!important}
