/* Adapt legacy content to the portal palette without replacing its navigation. */
.alv360-users{--alv:var(--alv360-text);--blue:var(--alv360-action);--light:var(--alv360-action);--yellow:var(--alv360-accent);--ink:var(--alv360-text);--muted:var(--alv360-muted);--line:var(--alv360-border);--paper:var(--alv360-surface);--page:var(--alv360-bg);--info:var(--alv360-text);--info-bg:var(--alv360-soft);--shadow:0 4px 18px #0000000a}
[data-alv-theme=dark] .alv360-users{--ok:#8be0ae;--ok-bg:#153b2b;--warn:#ffdc88;--warn-bg:#3d321b;--danger:#ffb0ab;--danger-bg:#422624}
.alv360-users-context{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0 0 18px;padding:20px;border:1px solid var(--alv360-border);border-radius:14px;background:var(--alv360-surface)}
.alv360-users-context strong{display:block;margin-top:5px;font-size:19px;color:var(--alv360-text)}
.alv360-context-eyebrow{color:var(--alv360-muted);font-size:10px;font-weight:700;letter-spacing:.1em}
.alv360-sap-identity{padding:8px 11px;border-radius:8px;border:1px solid var(--alv360-border);background:var(--alv360-soft);color:var(--alv360-text);overflow-wrap:anywhere;font-weight:700;font-size:12px}
.alv360-users-search{flex:1 1 270px;max-width:470px;margin-left:auto}
.alv360-users-search label{display:block;margin-bottom:6px;color:var(--alv360-muted);font-size:11px;font-weight:700}
.alv360-users-search>div{display:flex;gap:8px}
.alv360-users-search input{width:100%;min-width:0;flex:1;padding:10px 12px;border:1px solid var(--alv360-border);border-radius:8px;background:var(--alv360-bg);color:var(--alv360-text);font:inherit}
.alv360-users-search button{padding:10px 13px;border:1px solid var(--alv360-action);border-radius:8px;background:var(--alv360-action);color:#fff;font:inherit;font-weight:700;cursor:pointer}
[data-alv-theme=dark] .alv360-users-search button{color:#0b1d28}
.alv360-users-runtime{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 20px;padding:12px 14px;border-left:3px solid var(--alv360-accent);border-radius:8px;background:var(--alv360-soft);color:var(--alv360-muted);font-size:11px;line-height:1.6}
.alv360-users .users-breadcrumb{flex-wrap:wrap}.alv360-users .users-breadcrumb em{max-width:100%}
.alv360-users .v2-form :is(input,select,textarea){border-color:var(--alv360-border)}
.alv360-sessions .scroll{width:100%;max-width:100%;overflow:auto;border:1px solid var(--alv360-border);border-radius:12px;background:var(--alv360-surface)}
.alv360-sessions .scroll table{width:100%;min-width:780px;border-collapse:collapse;font-size:12px}
.alv360-sessions :is(td,th){padding:14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--alv360-border)}
.alv360-sessions th{background:var(--alv360-soft);color:var(--alv360-muted);font-size:11px}
.alv360-sessions #brain-content small{display:block;color:var(--alv360-muted);line-height:1.7}
.alv360-sessions #brain-content>nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0}
.alv360-sessions #brain-content>dl{display:grid;grid-template-columns:minmax(110px,180px) minmax(0,1fr);gap:12px;margin:22px 0;padding:20px;border:1px solid var(--alv360-border);border-radius:12px;background:var(--alv360-surface)}
.alv360-sessions #brain-content dd{margin:0;overflow-wrap:anywhere}.alv360-sessions #brain-content dt{color:var(--alv360-muted)}
.alv360-sessions #brain-content pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:9px;background:var(--alv360-soft);color:var(--alv360-text)}
.alv360-sessions #brain-content>section{margin:16px 0;padding:18px;border:1px solid var(--alv360-border);border-radius:12px;background:var(--alv360-surface)}
.alv360-sessions #brain-content form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.alv360-sessions #brain-content :is(input,button){min-height:40px;padding:8px 12px;border:1px solid var(--alv360-border);border-radius:8px;background:var(--alv360-surface);color:var(--alv360-text);font:inherit}
.alv360-sessions #brain-content button{cursor:pointer;font-weight:700}
.alv360-session-footnote{padding:12px 14px;border:1px solid var(--alv360-border);border-radius:9px;background:var(--alv360-soft);color:var(--alv360-muted);font-size:11px;line-height:1.7}

/* Profile editing keeps its original form and event hooks inside the shared shell. */
.alv360-account-page{--bg:var(--alv360-bg);--text:var(--alv360-text);--muted:var(--alv360-muted);--line:var(--alv360-border);--blue:var(--alv360-action);--blue-soft:var(--alv360-soft);--navy:var(--alv360-primary)}
.alv360-account-page :is(.account-card,.account-notice,.account-document,.modal-content-ml){background:var(--alv360-surface);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-account-page :is(.account-card strong,.account-document h2,.modal-title-ml,.ml-label,.ml-section-title){color:var(--alv360-text)}
.alv360-account-page :is(.account-card span,.account-document p,.ml-section-subtitle,.checkbox-wrap,.modal-content-ml::after){color:var(--alv360-muted)}
.alv360-account-page :is(.account-card,.button,.account-notice button,.account-document-form input,.ml-input,.ml-btn-save){font-family:var(--alv360-font)}
.alv360-account-page :is(.account-page-avatar,.ml-btn-close){background:var(--alv360-soft);color:var(--alv360-action)}
.alv360-account-page :is(.account-notice button,.button.primary,.ml-btn-save){background:var(--alv360-primary);color:#fff;border-color:var(--alv360-primary)}
.alv360-account-page :is(.account-document-form input,.ml-input){background:var(--alv360-bg);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-account-page .ml-help-link{background:var(--alv360-bg);color:var(--alv360-action)}
.alv360-account-page #addressModal{z-index:300}
.alv360-account-page #addressModal.open,.alv360-store #addressModal.open{opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.alv360-account-page #addressModal,.alv360-store #addressModal,.alv360-account-page .modal-content-ml,.alv360-store .modal-content-ml{animation:none!important;transition:none!important}}
.alv360-account-page .account-document{max-width:930px;margin:22px auto 0}
.alv360-account-page .account-card:not(a):not(button){cursor:default}
.alv360-account-page .account-card:not(a):not(button):hover{transform:none;box-shadow:none;border-color:var(--alv360-border)}
.alv360-profile .profile-page{max-width:1320px;padding:0;margin:auto}
.alv360-profile :is(.profile-page,.profile-dialog) svg{width:19px;height:19px;flex-shrink:0}
.alv360-profile :is(.profile-page,.profile-dialog) button{cursor:pointer;font-family:inherit}
.alv360-profile .profile-page a{text-decoration:none}
.alv360-profile .profile-back{color:var(--alv360-muted)!important}
.alv360-profile :is(.profile-card,.profile-area,.profile-dialog){border-color:var(--alv360-border);background:var(--alv360-surface);color:var(--alv360-text)}
.alv360-profile :is(.profile-hero h1,.profile-row dd,.profile-area strong,.profile-card h2,.profile-dialog h2){color:var(--alv360-text)}
.alv360-profile :is(.profile-eyebrow,.profile-subtitle,.profile-row dt,.profile-about,.profile-area small,.profile-access-note,.profile-form-note,.profile-field,.profile-photo-row small,.profile-check,.profile-dialog header p){color:var(--alv360-muted)}
.alv360-profile .profile-empty{color:var(--alv360-muted)!important}
.alv360-profile :is(.profile-row,.profile-tabs,.profile-dialog header,.profile-dialog footer){border-color:var(--alv360-border)}
.alv360-profile :is(.profile-banner,.profile-area-icon,.profile-dialog footer,.profile-close){background:var(--alv360-soft);color:var(--alv360-text)}
.alv360-profile .profile-banner{border-color:var(--alv360-border)}
.alv360-profile .profile-banner :is(p,small){color:var(--alv360-muted)}
.alv360-profile .profile-banner>span{background:var(--alv360-surface);color:var(--alv360-action)}
.alv360-profile .profile-banner:after{border-color:var(--alv360-border);opacity:.4}
.alv360-profile .profile-secondary{background:var(--alv360-surface);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-profile :is(.profile-secondary,.profile-area):hover{background:var(--alv360-soft);border-color:var(--alv360-action)}
.alv360-profile .profile-primary{background:var(--alv360-primary);border-color:var(--alv360-primary)}
.alv360-profile .profile-primary:disabled{opacity:.65;cursor:wait}
.alv360-profile .profile-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.alv360-profile .profile-tabs a{color:var(--alv360-muted)}
.alv360-profile .profile-tabs a[aria-current]{color:var(--alv360-action);border-color:var(--alv360-action)}
.alv360-profile .profile-field :is(input,select,textarea){border-color:var(--alv360-border);background:var(--alv360-bg);color:var(--alv360-text)}
.alv360-profile .profile-field :is(input,select,textarea):focus{border-color:var(--alv360-action);box-shadow:0 0 0 3px color-mix(in srgb,var(--alv360-action) 18%,transparent)}
.alv360-profile .profile-status{border-color:var(--alv360-success);background:var(--alv360-success-soft);color:var(--alv360-success)}
.alv360-profile .profile-status.is-inactive{border-color:var(--alv360-warning);background:var(--alv360-warning-soft);color:var(--alv360-warning)}
.alv360-profile .profile-card[id]{scroll-margin-top:20px}
@media(max-width:800px){.alv360-profile .profile-page{padding:0}.alv360-profile .profile-grid{grid-template-columns:1fr}.alv360-profile .profile-hero{gap:12px}.alv360-profile .profile-identity{min-width:0}.alv360-profile .profile-hero h1{overflow-wrap:anywhere}.alv360-profile .profile-dialog footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.alv360-profile :is(.profile-page,.profile-dialog) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Public legal documents share the palette; signed-in readers use the main shell. */
.alv360-legal{margin:0;background:var(--alv360-bg);color:var(--alv360-text);font:14px/1.8 Montserrat,"Segoe UI",sans-serif}
.alv360-legal *{box-sizing:border-box}.alv360-legal .alv-privacy-launcher{display:none}
.alv360-legal .alv-legal-header{background:var(--alv360-surface);border-color:var(--alv360-border)}
.alv360-legal .alv-legal-header>a{color:var(--alv360-text)}
.alv360-legal .alv-legal-header img{padding:5px;border-radius:7px;background:#fff;object-fit:contain}
.alv360-legal .alv-legal-header nav{align-items:center;flex-wrap:wrap}
.alv360-legal .alv-legal-main{width:100%;min-width:0}
.alv360-legal.alv360-shell .alv-legal-main{max-width:none;margin:0}
.alv360-legal :is(.alv-legal-paper,.alv-privacy-cards article,.alv-privacy-request){background:var(--alv360-surface);border-color:var(--alv360-border);border-radius:14px;color:var(--alv360-text)}
.alv360-legal :is(.alv-legal-hero h1,.alv-legal-paper h2,.alv-legal-paper h3,.alv-privacy-cards h2){color:var(--alv360-text)}
.alv360-legal :is(.alv-legal-hero p,.alv-legal-paper p,.alv-legal-paper li,.alv-privacy-cards p,.alv-legal-muted,.alv-legal-eyebrow,.alv-legal-hero small,.alv-privacy-request small){color:var(--alv360-muted)!important}
.alv360-legal :is(.alv-legal-header nav a,.alv-legal-main a){color:var(--alv360-action)}
.alv360-legal .alv-legal-nav a[aria-current=page]{background:var(--alv360-soft);color:var(--alv360-text)}
.alv360-legal :is(.alv-legal-identification,.alv-legal-footer,.alv-legal-table td,.alv-legal-table th){border-color:var(--alv360-border)}
.alv360-legal :is(.alv-legal-footer,.alv-legal-identification dt){color:var(--alv360-muted)}
.alv360-legal :is(.alv-legal-button,.alv-legal-main button,.alv-legal-form select,.alv-legal-form textarea){border-color:var(--alv360-border);background:var(--alv360-soft);color:var(--alv360-text)}
.alv360-legal .alv-legal-nav{top:90px}
.alv360-legal .alv-legal-notice{background:var(--alv360-soft);color:var(--alv360-text)!important;border-color:var(--alv360-border)}
.alv360-legal .alv-legal-notice.is-error{border-left:3px solid #d45454}
.alv360-surface-theme{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid var(--alv360-border);border-radius:10px;background:var(--alv360-soft);color:var(--alv360-text);font-size:18px;cursor:pointer}

/* Store branding remains configurable; only its neutral surfaces follow the theme. */
.alv360-store{--bg:var(--alv360-bg);--text:var(--alv360-text);--muted:var(--alv360-muted);--line:var(--alv360-border);--blue-soft:var(--alv360-soft);margin:0;background:var(--alv360-bg);color:var(--alv360-text)}
.alv360-store .alv360-store-status{padding:10px 20px;border-block:1px solid var(--alv360-border);background:var(--alv360-soft);color:var(--alv360-text);text-align:center;font-size:12px;font-weight:600}
.alv360-store .header-premium{background:var(--alv360-surface);border-color:var(--alv360-border)}
.alv360-store .header-premium .brand{padding:3px 8px;background:#fff;border-radius:8px}
.alv360-store :is(.hero,.categories>a,.product-card,.listing>aside,.summary,.buy-box,.empty,.cart-item,.project-paths-grid>a,.account-document,.account-menu,.drawer-content,.modal-content-ml,.mini-cart-sidebar,.cart-card,.cart-summary,.checkout-card,.checkout-summary){background:var(--alv360-surface);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-store :is(.account-card,.account-notice,.brand-group-block,.cart-item-row,.summary-sidebar){background:var(--alv360-surface);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-store :is(.brand-group-header,.account-menu:before){background:var(--alv360-soft);border-color:var(--alv360-border)}
.alv360-store :is(.account-card strong,.account-menu-profile strong,.cart-icon-wrapper i,.brand-title,.sidebar-title){color:var(--alv360-text)}
.alv360-store :is(.search input,.form input,.qty input,.catalog-sort select,.ml-input){background:var(--alv360-bg);color:var(--alv360-text);border-color:var(--alv360-border)}
.alv360-store :is(.helper,.account-menu-profile,.drawer-header){background:var(--alv360-soft);color:var(--alv360-text)}
.alv360-store :is(.hero p,.user-greeting,.user-sub,.header-location,.location-value,.nav-trigger-ml,.drawer-link,.modal-title-ml,.ml-label,.ml-section-title,.cart-item-name,.cart-summary h2){color:var(--alv360-text)}
.alv360-store :is(.account-menu a,.account-menu button){color:var(--alv360-text)}
.alv360-store .account-menu-primary{background:var(--alv360-soft)}
.alv360-store :is(.user-menu-header,.header-actions .cart-link):hover{background:var(--alv360-soft)}
.alv360-store :is(.market-footer,.footer-bottom){background:var(--alv360-surface)!important;border-color:var(--alv360-border)!important}
.alv360-store .footer-legal p{color:var(--alv360-muted)!important}
.alv360-store :is(.nav-dropdown-menu,.dropdown-arrow-up){background:var(--alv360-primary)}
.alv360-store :is(.modal-content-ml::after,.ml-section-subtitle,.checkbox-wrap){color:var(--alv360-muted)}
.alv360-store .ml-help-link{background:var(--alv360-bg)}
.alv360-store .ml-btn-close{background:var(--alv360-soft);color:var(--alv360-text)}
[data-alv-theme=dark] .alv360-store :is(.availability,.catalog-status,.unavailable,.danger){color:#8be0ae}
[data-alv-theme=dark] .alv360-store :is(.unavailable,.danger){color:#ffb0ab}
[data-alv-theme=dark] .alv360-store :is(.project-paths-grid b,.product-info h1,.page-title,.section-title h2,.price){color:var(--alv360-text)}
.alv360-store .header-actions{flex-shrink:0}
[data-alv-theme=dark] .alv360-store .header-premium .nav>a{color:var(--alv360-text)}
[data-alv-theme=dark] .alv360-store .header-premium .nav a:hover{background:var(--alv360-soft);color:var(--alv360-action)!important}
[data-alv-theme=dark] .alv360-store :is(.quick-actions,.product-shelf,.category-panel,.benefits-row-modern,.trust-row){background:var(--alv360-surface);color:var(--alv360-text);border-color:var(--alv360-border)}
[data-alv-theme=dark] .alv360-store .quick-actions>a{border-color:var(--alv360-border)}
[data-alv-theme=dark] .alv360-store :is(.quick-actions b,.shelf-title h2,.ben-text b){color:var(--alv360-text)}
[data-alv-theme=dark] .alv360-store :is(.quick-actions i,.quick-actions em,.project-paths-grid i,.shelf-title a,.ben-icon){color:var(--alv360-action)}
[data-alv-theme=dark] .alv360-store :is(.quick-actions em,.ben-icon){background:var(--alv360-soft)}
[data-alv-theme=dark] .alv360-store :is(.quick-actions span,.ben-text span){color:var(--alv360-muted)}
@media(max-width:780px){.alv360-users-context{padding:15px;gap:14px}.alv360-users-search{max-width:none;margin-left:0;flex-basis:100%}.alv360-users .v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.alv360-users .v2-grid,.alv360-users .v2-grid.equal{grid-template-columns:1fr}.alv360-users .v2-card{min-width:0;overflow:auto}.alv360-users .v2-table{min-width:640px}.alv360-sessions #brain-content>dl{grid-template-columns:1fr;gap:5px}.alv360-sessions #brain-content dd{margin-bottom:11px}.alv360-legal .alv-legal-nav{position:static}.alv360-legal .alv-legal-header nav{gap:10px}.alv360-legal .alv-legal-header{gap:14px}.alv360-store .header-actions{gap:12px}.alv360-store .wrap{padding-inline:16px!important}}
@media(max-width:500px){.alv360-users .v2-form{grid-template-columns:1fr}.alv360-users .v2-form .full{grid-column:auto}.alv360-users .users-breadcrumb em{margin-left:0}.alv360-legal .alv-legal-header{align-items:center}.alv360-legal .alv-legal-header>a{gap:8px}.alv360-legal .alv-legal-header nav{font-size:10px}.alv360-legal .alv-legal-header nav a:first-child{display:none}}
@media print{.alv360-legal{background:#fff;color:#000}.alv360-legal .alv-legal-paper{background:#fff;border:0}.alv360-legal .alv-legal-main{padding:0;margin:0}.alv360-legal :is(.alv-legal-hero h1,.alv-legal-paper h2,.alv-legal-paper h3,.alv-legal-paper p,.alv-legal-paper li){color:#000!important}.alv360-legal .alv-legal-header,.alv360-legal .alv-legal-footer{display:none!important}}
