/* Heisenberg’s Lab v5.73 — scoped customer cabinet; subscription card refinement. All other storefront styles retained. */
#accountDrawer [hidden]{display:none!important}
#accountDrawer.is-authenticated>.account-panel>.account-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:18px 22px}
#accountDrawer .account-heading-text{min-width:0}
#accountDrawer.is-authenticated .account-heading-text h2{font-size:28px;line-height:1.14;margin-top:6px}
#accountDrawer.is-authenticated .account-heading-text>span{font-size:9px}
#accountDrawer.is-authenticated .account-heading-text p{font-size:11px;line-height:1.45;margin:6px 0 0}
#accountDrawer.is-authenticated .account-header>.account-close{width:42px;height:42px;grid-column:3;align-self:start}
#accountDrawer .account-header>.cabinet-mode-switch{display:flex;width:auto;max-width:100%;gap:3px;margin:0;padding:4px;border-radius:12px;align-self:center;min-width:0}
#accountDrawer .account-header>.cabinet-mode-switch button{min-height:36px;padding:0 13px;font-size:11px;white-space:nowrap;line-height:1.2}
#accountDrawer:not(.admin-mode) .account-content{padding:18px 22px 28px}
#accountDrawer.is-authenticated .account-identity.cabinet-identity{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;align-self:stretch;width:100%;max-width:none;margin:0 0 14px;padding:13px 15px;min-height:76px;border-radius:15px;justify-items:stretch}
#accountDrawer .cabinet-identity>.account-avatar{display:grid!important;width:42px;height:42px;border-radius:12px;font-size:17px}
#accountDrawer .cabinet-profile-info{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
#accountDrawer .cabinet-profile-name{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;min-width:0}
#accountDrawer .cabinet-profile-name>#accountProfileName{font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;overflow:visible}
#accountDrawer .cabinet-profile-name>.admin-badge{display:inline-flex;margin:0;font-size:8px;letter-spacing:.06em;align-items:center;line-height:1.4}
#accountDrawer .cabinet-profile-info>#accountEmailValue{color:#a2adb2;font-size:11px;line-height:1.45;overflow-wrap:anywhere;word-break:normal;white-space:normal}
#accountDrawer .cabinet-identity>.cabinet-profile-actions{display:flex;flex-direction:row;align-items:center;gap:5px}
#accountDrawer .cabinet-profile-actions>button{min-height:40px;padding:8px 11px;border:1px solid rgba(255,255,255,.11);border-radius:10px;font-size:11px;color:#d7dfe2;background:rgba(10,14,15,.45);line-height:1.4}
#accountDrawer .cabinet-profile-actions>#accountLogout{border-color:transparent;color:#a2adb2}
#accountDrawer .cabinet-profile-actions>button:hover{background:#20282a;color:#fff}
#accountDrawer.admin-mode .account-identity.cabinet-identity{max-width:600px;min-height:62px;padding:9px 12px;margin-bottom:10px;gap:10px}
#accountDrawer.admin-mode .cabinet-identity>.account-avatar{width:36px;height:36px;font-size:14px}
#accountDrawer.admin-mode .cabinet-profile-actions>#openProfile{display:none}
#accountDrawer .customer-overview-nav{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#384341 transparent;gap:4px;margin:0 0 16px;padding:4px;border-radius:13px}
#accountDrawer .customer-overview-nav>button{flex:1 0 auto;display:flex;flex-direction:row;min-height:42px;gap:7px;padding:8px 13px;font-size:12px;line-height:1.25;white-space:nowrap}
#accountDrawer .customer-overview-nav>button>i{font-size:14px;line-height:1}
#accountDrawer .customer-overview-nav>button>strong{position:static;display:inline-grid;margin:0;min-width:20px;height:20px;font-size:9px;padding:0 5px;border:0}
#accountDrawer .customer-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);grid-template-areas:'subscriptions bonus' 'orders achievements';gap:16px;align-items:start}
#accountDrawer .customer-dashboard-grid>section{margin:0;min-width:0;border-radius:18px}
#accountDrawer #activeServices,#accountDrawer #bonusWallet,#accountDrawer #achievementShowcase{padding:18px}
#accountDrawer #customerOrdersSection{border:1px solid var(--line);background:#111719;padding:18px}
#accountDrawer .customer-dashboard-grid[data-section="orders"],#accountDrawer .customer-dashboard-grid[data-section="subscriptions"],#accountDrawer .customer-dashboard-grid[data-section="bonus"]{display:block}
#accountDrawer .customer-dashboard-grid:not([data-section="overview"])>section:not([hidden]){width:100%;max-width:100%}
#accountDrawer .customer-dashboard-grid.is-orders-focused>.customer-orders-section>.orders-heading,#accountDrawer .customer-dashboard-grid.is-orders-focused>.customer-orders-section>.orders-list,#accountDrawer .customer-dashboard-grid.is-subscriptions-focused>.active-services>header,#accountDrawer .customer-dashboard-grid.is-subscriptions-focused>.active-services>.service-reminder-settings,#accountDrawer .customer-dashboard-grid.is-subscriptions-focused>.active-services>.active-services-list{width:100%;max-width:none;margin-inline:0}
#accountDrawer #activeServicesTitle,#accountDrawer #bonusWalletTitle,#accountDrawer #achievementShowcaseTitle,#accountDrawer #customerOrdersTitle{font-size:21px;line-height:1.3;letter-spacing:-.025em;margin:4px 0 0;overflow-wrap:anywhere}
#accountDrawer .active-services-heading>div>span,#accountDrawer .bonus-wallet>header>div>span,#accountDrawer .achievement-showcase>header>div>span,#accountDrawer .orders-heading>div>span{font-size:9px;line-height:1.3;letter-spacing:.12em}
#accountDrawer .active-services-heading>strong{height:30px;min-width:30px;font-size:12px;flex-shrink:0}
#accountDrawer .service-reminder-settings{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin:13px 0;padding:11px 0;border-width:1px 0;border-style:solid;border-color:rgba(255,255,255,.07);border-radius:0;background:none;gap:4px 12px}
#accountDrawer .service-reminder-settings>div>b{font-size:11px;line-height:1.4}
#accountDrawer .service-reminder-settings>div>p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#9da9ae}
#accountDrawer .service-reminder-settings .service-reminder-toggle{min-width:46px;min-height:44px;justify-content:center;margin:0}
#accountDrawer .service-reminder-message{grid-column:1/-1;margin:0;font-size:11px;line-height:1.45}
#accountDrawer .service-reminder-message:empty{display:none}
#accountDrawer .active-service-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;padding:0 0 14px;border:0;border-bottom:1px solid rgba(255,255,255,.07);border-radius:0;background:none}
#accountDrawer .active-service-card:last-of-type{padding-bottom:0;border-bottom:0}
#accountDrawer .active-service-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
#accountDrawer .active-service-main h4{font-size:14px;line-height:1.4;white-space:normal;overflow:visible;overflow-wrap:anywhere;margin:0}
#accountDrawer .active-service-main>div>p{font-size:11px;line-height:1.5;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:#9eacb0;margin:3px 0 0}
#accountDrawer .active-service-state{font-size:9px;line-height:1.3;max-width:100%;padding:4px 6px;align-self:start}
#accountDrawer .active-service-period{display:flex;flex-direction:column;align-items:flex-start;gap:3px;grid-column:1/-1;margin-top:5px;padding-top:7px;min-width:0}
#accountDrawer .active-service-period b{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#accountDrawer .active-service-period span{font-size:10px;line-height:1.45;text-align:left}
#accountDrawer .is-expiring .active-service-period span{color:#edc976}
#accountDrawer .cabinet-service-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;grid-column:1/-1;margin-top:7px;min-width:0}
#accountDrawer .cabinet-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 13px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:#131b1d;color:#e5e9eb;font-size:11px;font-weight:800;line-height:1.4;cursor:pointer;text-align:center;overflow-wrap:anywhere;max-width:100%}
#accountDrawer .cabinet-button.primary{border-color:rgba(30,215,96,.25);background:rgba(30,215,96,.1);color:#8be9ad}
#accountDrawer .cabinet-button:hover{background:#25302f}
#accountDrawer .cabinet-button:disabled{opacity:.5;cursor:default}
#accountDrawer .cabinet-text-link{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:5px 0;border:0;background:transparent;color:#bec9ce;font-size:11px;font-weight:750;line-height:1.4;text-align:left;overflow-wrap:anywhere;cursor:pointer;max-width:100%;width:auto;height:auto}
#accountDrawer .cabinet-text-link span{color:inherit;font-size:inherit;letter-spacing:normal}
#accountDrawer .cabinet-text-link:hover{color:var(--y)}
#accountDrawer .cabinet-section-more{display:block;width:100%;border:0;border-top:1px solid var(--line);background:none;min-height:40px;padding:10px 0 0;font-size:11px;font-weight:800;text-align:left;color:#91d9ae;cursor:pointer}
#accountDrawer #bonusWallet>header{display:block}
#accountDrawer #bonusWallet>header>strong{display:block;max-width:100%;margin-top:16px;font-size:clamp(27px,3vw,36px);line-height:1.15;letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
#accountDrawer #bonusWallet>p{min-height:0;font-size:11px;line-height:1.5;margin:8px 0;color:#aab4b9}
#accountDrawer #bonusWallet>p.cabinet-bonus-rule{font-size:10px;color:#d5c38f;margin:4px 0 16px}
#accountDrawer .cabinet-bonus-actions{display:flex;flex-wrap:wrap;gap:7px}
#accountDrawer .cabinet-bonus-actions .primary{background:var(--y);color:#17130b;border-color:var(--y)}
#accountDrawer .customer-dashboard-grid[data-section="overview"] #bonusWallet .bonus-wallet-stats,#accountDrawer .customer-dashboard-grid[data-section="overview"] #cabinetBonusHistory{display:none}
#accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
#accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats small{font-size:10px}
#accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats b{font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#accountDrawer .customer-dashboard-grid[data-section="bonus"] #cabinetBonusHistory summary{font-size:13px;padding:16px 0}
#accountDrawer .customer-dashboard-grid[data-section="bonus"] [data-cabinet-section="bonus"]{display:none}
#accountDrawer #bonusHistory li{font-size:12px;min-width:0;gap:12px}
#accountDrawer #bonusHistory li>span{min-width:0}
#accountDrawer #bonusHistory li>span b{font-size:12px;overflow-wrap:anywhere;line-height:1.5}
#accountDrawer #bonusHistory li>span small{font-size:10px;line-height:1.5}
#accountDrawer #bonusHistory li>strong{font-size:13px;line-height:1.5;flex-shrink:0}
#accountDrawer .customer-dashboard-grid[data-section="overview"] .achievement-showcase>header{display:flex;gap:10px;align-items:center}
#accountDrawer .achievement-showcase>header>div>p{font-size:11px;line-height:1.45;margin-top:6px}
#accountDrawer .achievement-showcase>header>button{min-height:38px;height:auto;width:auto;margin:0;padding:8px 10px;font-size:10px;line-height:1.4}
#accountDrawer #achievementFavorites{display:block;min-height:0;margin:18px 0 14px}
#accountDrawer .cabinet-latest-achievement{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center}
#accountDrawer .cabinet-latest-achievement>.achievement-medal{width:84px;height:84px;flex-shrink:0}
#accountDrawer .cabinet-latest-achievement>div{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px}
#accountDrawer .cabinet-latest-achievement small{font-size:9px;color:#9ba6ae;line-height:1.4}
#accountDrawer .cabinet-latest-achievement b{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#accountDrawer .cabinet-latest-achievement>div>span{font-size:10px;line-height:1.5;color:#9ba6ae}
#accountDrawer .cabinet-latest-achievement .cabinet-text-link{color:#c7b5ff}
#accountDrawer .achievement-showcase-progress>span{font-size:10px;margin-bottom:8px}
#accountDrawer .achievement-showcase-progress>progress{height:6px}
#accountDrawer .achievement-favorites-empty{font-size:12px;line-height:1.6;color:#a1acb1}
#accountDrawer .cabinet-orders-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
#accountDrawer .cabinet-orders-tools #refreshOrders{width:36px;height:36px;border-radius:10px}
#accountDrawer .orders-heading{gap:10px;margin-bottom:14px;align-items:center}
#accountDrawer .customer-dashboard-grid:not([data-section="overview"]) .cabinet-orders-tools [data-cabinet-section]{display:none}
#accountDrawer .cabinet-recent-orders{display:grid;min-width:0}
#accountDrawer .cabinet-recent-order{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto 10px;gap:10px;align-items:center;min-width:0;padding:13px 0;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.07);color:#edf0f1;text-align:left;cursor:pointer}
#accountDrawer .cabinet-recent-order:first-child{padding-top:3px}
#accountDrawer .cabinet-recent-order:last-child{padding-bottom:0;border-bottom:0}
#accountDrawer .cabinet-recent-order>img{width:44px;height:44px;object-fit:cover;border-radius:10px;background:#0b0f11}
#accountDrawer .cabinet-recent-main{display:flex;flex-direction:column;min-width:0;gap:4px}
#accountDrawer .cabinet-recent-main>small{font-size:9px;line-height:1.5;color:#9ca8ad}
#accountDrawer .cabinet-recent-main>b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#accountDrawer .cabinet-recent-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:0}
#accountDrawer .cabinet-recent-meta .order-status{font-size:8px;padding:4px 7px;line-height:1.4;margin:0}
#accountDrawer .cabinet-recent-meta>strong{font-size:12px;line-height:1.5;white-space:nowrap}
#accountDrawer .cabinet-recent-arrow{font-size:15px;color:#829597}
#accountDrawer .cabinet-recent-order:hover .cabinet-recent-arrow{color:var(--y)}
#accountDrawer .cabinet-unread{font-size:10px;line-height:1.4;color:#f1c66d}
#accountDrawer .cabinet-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 0;color:#9fadb2;font-size:12px;line-height:1.6;min-width:0}
#accountDrawer .cabinet-empty>b{color:#e5ebed;font-size:14px}
#accountDrawer .cabinet-empty>.cabinet-button{margin-top:4px}
#accountDrawer .cabinet-muted{font-size:10px;color:#9daaad;line-height:1.5}
#accountDrawer .cabinet-attention{border:1px solid rgba(244,183,47,.25);border-radius:16px;background:linear-gradient(110deg,rgba(244,183,47,.065),rgba(244,183,47,.015));padding:13px 17px;margin:0 0 16px}
#accountDrawer .cabinet-attention>header{display:flex;justify-content:space-between;gap:10px;align-items:center}
#accountDrawer .cabinet-attention h3{margin:0;color:#f2cf84;font-size:13px;line-height:1.5}
#accountDrawer #cabinetAttentionCount{font-size:10px;color:#b9b39f}
#accountDrawer .cabinet-attention-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;min-width:0}
#accountDrawer .cabinet-attention-row+.cabinet-attention-row{border-top:1px solid rgba(255,255,255,.07)}
#accountDrawer .cabinet-attention-row:last-child{padding-bottom:0}
#accountDrawer .cabinet-attention-row>span{display:flex;flex-direction:column;min-width:0;gap:3px}
#accountDrawer .cabinet-attention-row b{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#accountDrawer .cabinet-attention-row small{font-size:10px;line-height:1.5;color:#a5afb1;overflow-wrap:anywhere}
#accountDrawer .cabinet-attention-row>button{flex-shrink:0}
#accountDrawer .active-services-empty,#accountDrawer .active-services-error,#accountDrawer .active-services-loading{border:0;padding:16px 0;text-align:left;font-size:12px;line-height:1.6}
#accountDrawer .active-services-empty b,#accountDrawer .active-services-error b{font-size:14px;line-height:1.5}
#accountDrawer .active-services-error button{font-size:12px;min-height:40px}
#accountDrawer .cabinet-button:focus-visible,#accountDrawer .cabinet-text-link:focus-visible,#accountDrawer .cabinet-section-more:focus-visible,#accountDrawer .cabinet-recent-order:focus-visible,#accountDrawer .cabinet-profile-actions button:focus-visible,#accountDrawer .customer-overview-nav button:focus-visible{outline:2px solid var(--y);outline-offset:2px}
#accountDrawer.customer-mode .account-footer{padding:10px 22px max(12px,env(safe-area-inset-bottom));gap:8px}
#accountDrawer.customer-mode .account-footer p{font-size:10px;line-height:1.5}
#accountDrawer.customer-mode .account-footer span{font-size:12px;line-height:1.5}
@media(max-width:980px){
 #accountDrawer.is-authenticated>.account-panel>.account-header{gap:10px;padding:16px 18px}
 #accountDrawer.is-authenticated .account-heading-text h2{font-size:25px}
 #accountDrawer .customer-dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr)}
 #accountDrawer .account-header>.cabinet-mode-switch button{padding-inline:10px}
}
@media(max-width:740px){
 #accountDrawer.is-authenticated>.account-panel{height:96dvh;max-height:none;border-radius:20px 20px 0 0}
 #accountDrawer.is-authenticated>.account-panel>.account-header{grid-template-columns:minmax(0,1fr) 42px;padding:14px 16px;gap:10px}
 #accountDrawer.is-authenticated .account-heading-text{grid-column:1;grid-row:1}
 #accountDrawer.is-authenticated .account-heading-text h2{font-size:24px;margin-top:4px;line-height:1.16}
 #accountDrawer.is-authenticated .account-heading-text>span{font-size:8px}
 #accountDrawer.is-authenticated .account-heading-text p{font-size:10px;margin-top:4px}
 #accountDrawer.is-authenticated .account-header>.account-close{grid-column:2;grid-row:1;width:40px;height:40px}
 #accountDrawer .account-header>.cabinet-mode-switch{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%}
 #accountDrawer .account-header>.cabinet-mode-switch button{font-size:11px;min-height:34px;padding-inline:12px}
 #accountDrawer:not(.admin-mode) .account-content{padding:13px 14px 24px}
 #accountDrawer.is-authenticated .account-identity.cabinet-identity{grid-template-columns:36px minmax(0,1fr);padding:11px 12px;gap:8px 10px;margin-bottom:12px;min-height:0}
 #accountDrawer .cabinet-identity>.account-avatar{width:36px;height:36px;align-self:start;font-size:15px}
 #accountDrawer .cabinet-profile-name>#accountProfileName{font-size:13px}
 #accountDrawer .cabinet-profile-info>#accountEmailValue{font-size:10px}
 #accountDrawer .cabinet-identity>.cabinet-profile-actions{grid-column:1/-1;gap:10px;padding-top:5px;border-top:1px solid rgba(255,255,255,.06);justify-content:space-between}
 #accountDrawer .cabinet-profile-actions>button{min-height:36px;padding:7px 9px;font-size:10px}
 #accountDrawer.admin-mode .account-identity.cabinet-identity{grid-template-columns:36px minmax(0,1fr) auto;max-width:100%;gap:7px;padding:10px}
 #accountDrawer.admin-mode .cabinet-identity>.cabinet-profile-actions{grid-column:3;grid-row:1;border:0;padding:0}
 #accountDrawer .customer-overview-nav{margin-bottom:13px;padding:4px;gap:3px}
 #accountDrawer .customer-overview-nav>button{flex:0 0 auto;min-height:40px;font-size:11px;padding:8px 10px;gap:6px}
 #accountDrawer .customer-dashboard-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'subscriptions' 'orders' 'bonus' 'achievements';gap:13px}
 #accountDrawer #activeServices,#accountDrawer #bonusWallet,#accountDrawer #achievementShowcase,#accountDrawer #customerOrdersSection{padding:15px}
 #accountDrawer #activeServicesTitle,#accountDrawer #bonusWalletTitle,#accountDrawer #achievementShowcaseTitle,#accountDrawer #customerOrdersTitle{font-size:20px}
 #accountDrawer .active-service-main{grid-template-columns:minmax(0,1fr)}
 #accountDrawer .active-service-state{justify-self:start;grid-row:2;margin:0}
 #accountDrawer .active-service-card{grid-template-columns:40px minmax(0,1fr);gap:10px}
 #accountDrawer .active-service-card>img{width:40px;height:40px}
 #accountDrawer .active-service-main h4{font-size:13px}
 #accountDrawer .active-service-main>div>p{font-size:10px}
 #accountDrawer .cabinet-service-actions{gap:5px 9px}
 #accountDrawer .cabinet-button{font-size:11px;min-height:42px;padding:9px 11px}
 #accountDrawer #bonusWallet>header>strong{font-size:34px}
 #accountDrawer .cabinet-orders-tools{gap:6px}
 #accountDrawer .cabinet-orders-tools .cabinet-text-link{font-size:10px}
 #accountDrawer .cabinet-recent-order{grid-template-columns:36px minmax(0,1fr) 10px;gap:8px 10px;padding:12px 0}
 #accountDrawer .cabinet-recent-order>img{width:36px;height:36px;grid-row:1;align-self:start}
 #accountDrawer .cabinet-recent-main{grid-column:2;grid-row:1}
 #accountDrawer .cabinet-recent-main>b{font-size:12px}
 #accountDrawer .cabinet-recent-meta{grid-column:2;grid-row:2;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:6px}
 #accountDrawer .cabinet-recent-arrow{grid-column:3;grid-row:1/3}
 #accountDrawer .cabinet-latest-achievement{grid-template-columns:90px minmax(0,1fr);gap:14px}
 #accountDrawer .cabinet-latest-achievement>.achievement-medal{width:90px;height:90px}
 #accountDrawer .cabinet-attention{padding:12px 14px;margin-bottom:13px}
 #accountDrawer .cabinet-attention-row{align-items:flex-start;flex-direction:column;gap:7px;padding:12px 0}
 #accountDrawer .cabinet-attention-row>button{align-self:flex-start}
 #accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats{grid-template-columns:1fr 1fr}
 #accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats>span:last-child{grid-column:1/-1}
 #accountDrawer #bonusHistory li{align-items:flex-start;flex-direction:column;gap:5px}
 #accountDrawer.customer-mode .account-footer{padding:9px 16px max(10px,env(safe-area-inset-bottom))}
 #accountDrawer.customer-mode .account-footer p{font-size:9px;line-height:1.5}
}
@media(max-width:360px){
 #accountDrawer.is-authenticated .account-heading-text h2{font-size:22px}
 #accountDrawer #activeServices,#accountDrawer #bonusWallet,#accountDrawer #achievementShowcase,#accountDrawer #customerOrdersSection{padding:13px}
 #accountDrawer #customerOrdersSection .orders-heading{flex-wrap:wrap;align-items:center}
 #accountDrawer #customerOrdersSection .cabinet-orders-tools{margin-left:auto}
 #accountDrawer .cabinet-latest-achievement{grid-template-columns:76px minmax(0,1fr);gap:10px}
 #accountDrawer .cabinet-latest-achievement>.achievement-medal{width:76px;height:76px}
 #accountDrawer .cabinet-latest-achievement b{font-size:13px}
}
@media(prefers-reduced-motion:reduce){#accountDrawer .customer-overview-nav{scroll-behavior:auto}}
/* Independent overview columns avoid empty space under a shorter card. */
#accountDrawer .customer-dashboard-grid{grid-template-areas:none}
#accountDrawer .cabinet-column{display:flex;flex-direction:column;gap:16px;min-width:0}
#accountDrawer .cabinet-column>section{margin:0;min-width:0;width:100%}
#accountDrawer .customer-dashboard-grid:not([data-section="overview"]) .cabinet-column{display:contents}
#accountDrawer .customer-dashboard-grid:not([data-section="overview"]) .cabinet-column>section{max-width:100%}

#accountDrawer .customer-dashboard-grid[data-section="bonus"] .bonus-wallet-stats,#accountDrawer .customer-dashboard-grid[data-section="bonus"] #cabinetBonusHistory{max-width:860px}
@media(max-width:740px){#accountDrawer .cabinet-column{gap:13px}#accountDrawer .customer-dashboard-grid{grid-template-areas:none}}
#accountDrawer .cabinet-column>section{border-radius:18px}
/* Isolate the compact management profile from the legacy two-column override. */
#accountDrawer.admin-mode .account-identity.cabinet-identity{grid-template-columns:36px minmax(0,1fr) auto!important}
#accountDrawer .cabinet-identity>.account-avatar{grid-column:1;grid-row:1}
#accountDrawer .cabinet-identity>.cabinet-profile-info{grid-column:2;grid-row:1}
#accountDrawer .cabinet-identity>.cabinet-profile-actions{grid-column:3;grid-row:1}
@media(max-width:740px){
 #accountDrawer:not(.admin-mode) .cabinet-identity>.cabinet-profile-actions{grid-column:1/-1;grid-row:2}
 #accountDrawer.admin-mode .cabinet-identity>.cabinet-profile-actions{grid-column:3;grid-row:1}
}

/* v5.73 — subscription layout. Compact is the fallback for older browsers;
   the wide layout uses the real panel width, not the viewport/other column. */
#accountDrawer #activeServices{container-type:inline-size;container-name:hl-subscriptions}
#accountDrawer #activeServicesList{width:100%;max-width:none;margin:0;gap:12px;min-width:0}
#accountDrawer #activeServices .cabinet-subscription-card{
 display:block;min-width:0;max-width:100%;margin:0;padding:15px 16px;
 border:1px solid rgba(154,187,173,.11);border-radius:14px;
 background:rgba(11,17,18,.64);box-sizing:border-box;
}
#accountDrawer .cabinet-subscription-identity{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;min-width:0}
#accountDrawer .cabinet-subscription-image{display:block;width:52px;height:52px;object-fit:cover;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#0b1011;flex-shrink:0;box-sizing:border-box}
#accountDrawer .cabinet-subscription-info{display:block;min-width:0;text-align:left}
#accountDrawer .cabinet-subscription-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;min-width:0}
#accountDrawer .cabinet-subscription-info h4{min-width:0;margin:0;font-size:15px;line-height:1.4;letter-spacing:-.012em;overflow:visible;white-space:normal;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-info .active-service-state{display:inline-flex;align-items:center;flex:0 0 auto;align-self:center;grid-row:auto;margin:0;padding:4px 7px;font-size:9px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;border-radius:999px}
#accountDrawer .cabinet-subscription-info>.cabinet-subscription-details{margin:5px 0 0;color:#a7b4b7;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(116px,auto);align-items:center;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid rgba(255,255,255,.07);min-width:0}
#accountDrawer .cabinet-subscription-card .active-service-period{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;grid-column:auto;gap:4px;margin:0;padding:0;border:0;min-width:0}
#accountDrawer .cabinet-subscription-card .active-service-period>b{font-size:13px;line-height:1.45;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-card .active-service-period>span{font-size:11px;line-height:1.45;text-align:left;white-space:normal;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-card .cabinet-service-actions{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:center;grid-column:auto;gap:2px;margin:0;min-width:0;max-width:180px;justify-self:end}
#accountDrawer .cabinet-subscription-card .cabinet-service-actions>.cabinet-button{min-height:42px;width:100%;padding:9px 14px;font-size:12px;border-radius:10px;box-sizing:border-box}
#accountDrawer .cabinet-subscription-card .cabinet-service-actions>.cabinet-text-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;width:100%;padding:6px 2px;font-size:10px;line-height:1.4;text-align:center;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-card .cabinet-service-actions>.cabinet-muted{max-width:150px;font-size:10px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
#accountDrawer .cabinet-subscription-card.is-expiring{border-color:rgba(244,183,47,.2)}
#accountDrawer .cabinet-subscription-card.is-scheduled{border-color:rgba(112,164,255,.16)}
#accountDrawer .cabinet-subscription-card:focus-within{border-color:rgba(154,187,173,.3)}
#accountDrawer #activeServices .service-reminder-settings{width:100%;max-width:none;margin:14px 0;padding:10px 0 12px;box-sizing:border-box}
#accountDrawer #activeServices .active-services-empty,#accountDrawer #activeServices .active-services-loading,#accountDrawer #activeServices .active-services-error{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
@container hl-subscriptions (min-width:820px){
 #accountDrawer #activeServices .cabinet-subscription-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(175px,.8fr) 154px;align-items:center;gap:22px;padding:16px 18px;min-height:114px}
 #accountDrawer .cabinet-subscription-footer{display:contents}
 #accountDrawer .cabinet-subscription-card .active-service-period{padding-left:20px;border-left:1px solid rgba(255,255,255,.09);min-height:48px}
 #accountDrawer .cabinet-subscription-card .cabinet-service-actions{width:154px;max-width:100%}
}
@container hl-subscriptions (max-width:400px){
 #accountDrawer #activeServices .cabinet-subscription-card{padding:12px;border-radius:12px}
 #accountDrawer .cabinet-subscription-identity{grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:start}
 #accountDrawer .cabinet-subscription-image{width:44px;height:44px;border-radius:10px}
 #accountDrawer .cabinet-subscription-info h4{font-size:14px}
 #accountDrawer .cabinet-subscription-title{gap:5px 8px}
 #accountDrawer .cabinet-subscription-info>.cabinet-subscription-details{font-size:10px;margin-top:5px}
 #accountDrawer .cabinet-subscription-footer{grid-template-columns:minmax(0,1fr) 118px;gap:10px;margin-top:12px;padding-top:11px}
 #accountDrawer .cabinet-subscription-card .active-service-period>b{font-size:12px}
 #accountDrawer .cabinet-subscription-card .active-service-period>span{font-size:10px}
 #accountDrawer .cabinet-subscription-card .cabinet-service-actions{width:118px}
 #accountDrawer .cabinet-subscription-card .cabinet-service-actions>.cabinet-button{min-height:44px;padding-inline:10px;font-size:11px}
 #accountDrawer .cabinet-subscription-card .cabinet-service-actions>.cabinet-text-link{min-height:34px;font-size:10px}
}
