/* The existing Eldorado surfaces remain the visual reference. Profile switching
   precedes navigation; account rows and a compact checkout are the main content. */
.profile-switcher{position:relative;margin-top:-25px}.profile-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--input);border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:var(--text);text-align:left}.profile-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu{position:absolute;left:0;top:calc(100% + 7px);min-width:100%;width:260px;max-width:85vw;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:15}.profile-menu button,.profile-menu a{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;overflow-wrap:anywhere}.profile-menu [aria-checked=true],.profile-menu button:hover,.profile-menu a:hover{background:var(--raised);text-decoration:none}.profile-menu a{border-top:1px solid var(--line);margin-top:5px;color:var(--accent)}.account-badge{display:inline-block;font-size:11px;padding:3px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}
.accounts-main{max-width:1210px;margin:auto;padding:48px 38px 80px}.accounts-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.accounts-actions{display:flex;gap:10px;flex-wrap:wrap}.subscription-strip{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:25px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:34px}.subscription-strip h2{margin-bottom:8px}.subscription-value{font-size:27px;font-weight:600;font-variant-numeric:tabular-nums}.subscription-progress{height:5px;border-radius:5px;background:var(--raised);margin:18px 0 9px;overflow:hidden}.subscription-progress span{display:block;height:100%;background:var(--accent)}.subscription-stat{border-left:1px solid var(--line);padding-left:25px;display:flex;flex-direction:column;justify-content:center;gap:5px}.accounts-list{display:flex;flex-direction:column;gap:14px}.account-row{display:grid;grid-template-columns:46px minmax(160px,1.6fr) minmax(130px,1fr) minmax(125px,1fr) auto;align-items:center;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px}.account-avatar{width:44px;height:44px;display:grid;place-items:center;background:var(--raised);color:var(--accent);border-radius:12px;font-size:17px;font-weight:650}.account-name{font-size:17px;font-weight:600;margin-bottom:5px;overflow-wrap:anywhere}.account-meta{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.account-stat small{display:block;color:var(--muted);margin-bottom:5px}.account-tools{display:flex;gap:8px;align-items:center}.account-more{position:relative}.account-more summary{list-style:none;cursor:pointer;width:36px;height:40px;display:grid;place-items:center;background:var(--raised);border:1px solid var(--line);border-radius:9px}.account-more .profile-menu{left:auto;right:0;width:170px}.account-more[open] .profile-menu{position:absolute}.account-checkout{width:min(580px,calc(100vw - 32px));border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);padding:30px}.account-checkout::backdrop{background:#0009;backdrop-filter:blur(3px)}.account-checkout h2{font-size:23px;margin-bottom:25px}.account-checkout .field{margin-bottom:18px}.account-checkout .accounts-actions{justify-content:flex-end;margin-top:25px}.account-checkout .field input{width:100%}.account-price{border-top:1px solid var(--line);padding-top:23px;margin-top:22px}.account-price strong{display:block;font-size:35px;letter-spacing:-1px}.account-price .small{margin-top:8px}.account-price-line{display:flex;justify-content:space-between;gap:15px;padding:7px 0;font-size:13px}.account-period{display:flex;gap:8px}.account-period button{flex:1}.account-period [aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.renew-profiles{max-height:170px;overflow:auto;display:grid;gap:10px;margin:18px 0}.renew-profiles label{display:flex;gap:10px;align-items:center}.account-method{position:relative}.account-method .profile-trigger{min-height:46px}.account-method .profile-menu{width:100%;max-width:none}.accounts-error{color:var(--error);margin-bottom:20px}.accounts-footer{border-top:1px solid var(--line);margin-top:38px;padding-top:18px;color:var(--faint);font-size:12px}.accounts-loading{color:var(--muted);padding:35px 0}.account-archived{opacity:.7}.account-connection-dot{width:6px;height:6px;border-radius:50%;background:var(--good);display:inline-block}
@media(max-width:1000px){.account-row{grid-template-columns:44px minmax(150px,1fr) 1fr auto}.account-stat.balance{display:none}.accounts-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.accounts-main{padding:26px 18px 55px}.subscription-strip{grid-template-columns:1fr 1fr;padding:22px;gap:18px}.subscription-strip>div:first-child{grid-column:1/-1}.subscription-stat{padding-left:0;border:0;border-top:1px solid var(--line);padding-top:18px}.account-row{padding:20px;grid-template-columns:40px minmax(0,1fr);gap:14px}.account-stat{grid-column:2}.account-tools{grid-column:2}.account-checkout{padding:24px}.accounts-actions .button{min-height:43px}.accounts-main h1{font-size:27px}}
@media(max-width:760px){#accounts-nav,.sidebar nav:has(.accounts-nav){overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}#accounts-nav .nav-button,.sidebar nav:has(.accounts-nav) .nav-button{flex:0 0 auto;min-width:56px;padding-inline:8px}#accounts-nav .nav-button>span{font-size:10px}.profile-in-header{width:100%;margin:0}.profile-in-header .profile-trigger{padding-block:9px}.topbar:has(.profile-in-header){flex-wrap:wrap}.profile-in-header .profile-menu{top:100%;width:100%;max-width:none}.account-checkout{max-height:calc(100svh - 30px);overflow-y:auto}.account-period{margin-bottom:18px}}
.accounts-topbar{justify-content:flex-end;padding-inline:38px!important}.accounts-error:empty{display:none}
.account-current-term{margin:11px 0 22px}.account-period{margin-bottom:0}
.renew-profiles{max-height:204px;gap:0;margin:10px 0 20px;border:1px solid var(--line);border-radius:10px;background:var(--input)}
.renew-profiles:empty{display:none}.renew-profiles .renew-profile{display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:50px;margin:0}
.renew-profile+.renew-profile{border-top:1px solid var(--line)}.renew-profiles label{cursor:pointer}.renew-profiles label:hover{background:var(--raised)}
.renew-profiles input[type=checkbox],.renew-spares input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;padding:0;accent-color:var(--accent);cursor:pointer}
.renew-spares{display:flex;align-items:center;gap:12px;margin:-8px 0 20px;font-size:12px;cursor:pointer}
.renew-profile-name{min-width:0;overflow-wrap:anywhere;font-size:13px}.renew-profile .account-avatar{width:30px;height:30px;border-radius:7px;font-size:12px;flex-shrink:0}
.renew-hint{margin:-10px 0 22px}.account-price{padding-top:14px;margin-top:22px}.account-price-line>span:last-child{white-space:nowrap}
.account-price-total{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:20px;margin-top:13px}.account-price-total:only-child{margin-top:0}
.account-price-total strong{font-size:32px;line-height:1.35;margin-top:3px;white-space:nowrap}.account-new-term{display:flex;flex-direction:column;gap:8px;text-align:right;font-size:13px;padding-bottom:5px}
.account-checkout .field:has(#account-method-label){margin-bottom:9px}.account-method [aria-selected=true]{color:var(--accent);background:var(--accent-soft)}
.profile-chevron{width:16px;height:16px;color:var(--muted);transition:transform .15s;flex-shrink:0}.profile-trigger[aria-expanded=true] .profile-chevron{transform:rotate(180deg)}
@media(max-width:700px){.accounts-topbar{padding-inline:18px!important}.account-price-total{gap:12px}.account-new-term{padding:0}.account-current-term{margin-bottom:18px}}
@media(max-width:700px){.account-stat.balance{display:block;grid-column:2}}

/* Account context uses the same quiet select treatment as the panel filters. */
.profile-switcher .profile-trigger{min-height:46px;font-size:12px;gap:12px}
.profile-trigger:hover:not(:disabled){background:var(--raised)}
.profile-trigger[aria-expanded=true]{border-color:var(--accent)}
.profile-trigger-content{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.profile-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-trigger .account-badge{flex-shrink:0;font-size:10px;padding:2px 6px}
.profile-switcher .profile-menu{width:280px;max-width:calc(100vw - 32px);padding:6px}
.profile-choices{max-height:min(360px,55svh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.profile-switcher .profile-choices button{display:flex;align-items:center;gap:16px;min-height:44px;font-size:12px}
.profile-choice-name{flex:1;min-width:0;overflow-wrap:anywhere}
.profile-choice-name small{display:block;color:var(--faint);font-size:11px;margin-top:3px}
.profile-check{width:16px;height:16px;visibility:hidden}
.profile-choices [aria-checked=true]{color:var(--accent);background:var(--accent-soft)}
.profile-choices [aria-checked=true] .profile-check{visibility:visible}
.profile-menu :is(button,a):focus-visible{outline-offset:-2px;background:var(--raised)}
.profile-switcher .profile-menu>a{min-height:44px;font-size:12px;border-radius:0 0 8px 8px;margin-top:6px;padding-top:13px}
.account-row{position:relative;min-width:0;grid-template-columns:44px minmax(0,1.6fr) minmax(0,1fr) minmax(0,.75fr) 44px;gap:20px}
.account-row>div{min-width:0}
.account-open{color:var(--text)}
.account-open:hover{text-decoration:none}
.account-open::after{content:'';position:absolute;inset:0;border-radius:var(--radius)}
.account-open:focus-visible{outline:none}
.account-open:focus-visible::after{outline:2px solid var(--accent);outline-offset:3px}
.account-row-link:hover{border-color:var(--faint)}
.account-row-link:hover .account-name{color:var(--accent)}
.account-tools{position:relative;z-index:1}
.account-rename{width:44px;height:44px;border:1px solid var(--line);background:var(--raised);border-radius:10px}
.account-stat>span{font-size:13px;overflow-wrap:anywhere}
.subscription-progress span{border-radius:inherit}
.accounts-footer:empty{display:none}
.account-method .profile-trigger>span{flex:1;min-width:0}
@media(max-width:1000px) and (min-width:701px){.account-row{grid-template-columns:44px minmax(0,1.4fr) minmax(0,1fr) 44px}}
@media(max-width:760px){.profile-switcher.profile-in-header{width:auto;flex:1 1 160px;margin:0;min-width:0}.profile-in-header .profile-menu{width:max(100%,280px);max-width:calc(100vw - 36px);top:calc(100% + 7px)}.topbar:has(.profile-in-header){padding-inline:22px;gap:12px}.topbar:has(.profile-in-header) .topbar-inner{width:auto;padding:0;margin:0;flex:0 0 auto}.profile-in-header .profile-trigger{min-height:44px}.accounts-main{padding-bottom:calc(36px + var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px))}}
@media(max-width:700px){.account-row{grid-template-columns:40px minmax(0,1fr) 44px;gap:12px 14px;padding:20px}.account-row>.account-avatar{grid-column:1;grid-row:1}.account-row>div:nth-child(2){grid-column:2;grid-row:1}.account-tools{grid-column:3;grid-row:1}.account-stat{grid-column:2/-1}.account-stat.balance{grid-column:2/-1}.accounts-actions{width:100%}.accounts-heading .accounts-actions>.button{flex:1}.account-checkout .accounts-actions{justify-content:flex-end}.account-name{font-size:16px}}
@media(max-width:430px){.topbar:has(.profile-in-header){padding:12px 18px}.profile-switcher.profile-in-header{flex-basis:100%;order:2}.topbar:has(.profile-in-header) .topbar-inner{width:100%;justify-content:flex-end}.profile-in-header .profile-menu{width:100%}.accounts-topbar .account-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){.profile-chevron{transition:none}}
@media(max-width:760px){#accounts-nav{scrollbar-width:none}#accounts-nav::-webkit-scrollbar{display:none}}

/* The working identity lives in the header; paid capacity lives in its menu. */
.topbar:has(.profile-switcher){justify-content:space-between;gap:20px;padding:15px 38px}
.topbar:has(.profile-switcher) .topbar-inner{margin:0;width:auto;flex:0 0 auto;padding:0}
.profile-switcher.profile-in-header{position:relative;margin:0;flex:0 1 280px;min-width:0}
.profile-switcher .profile-trigger{border-color:transparent;background:transparent;padding:6px 10px 6px 0;min-height:44px;gap:12px;text-align:left}
.profile-switcher .profile-trigger:hover{background:var(--raised);border-color:var(--line)}
.profile-trigger-content{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.profile-name{font-size:13px;font-weight:600;max-width:100%}
.profile-context-status{font-size:11px;color:var(--muted)}
.profile-context-icon{width:35px;height:35px;padding:8px;border-radius:10px;background:var(--raised);color:var(--accent);flex-shrink:0}
.profile-switcher .profile-menu{width:320px;max-width:calc(100vw - 36px);padding:7px;animation:profile-menu-enter .12s ease-out;z-index:30}
.profile-switcher .profile-menu button{display:flex;align-items:center;gap:12px;padding:12px;font-size:12px;min-height:46px}
.profile-switcher .profile-menu button>.icon{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.profile-menu .profile-choice-name{display:flex;flex-direction:column;gap:3px;font-weight:500}
.profile-menu .profile-choice-name small{font-size:11px;font-weight:400;margin:0}
.profile-switcher .profile-free-place{color:var(--accent)}
.profile-menu-footer{margin-top:6px;border-top:1px solid var(--line);padding-top:5px}
.profile-capacity{display:flex;justify-content:space-between;align-items:center;padding:9px 12px 5px;font-size:11px;color:var(--muted)}
.profile-capacity strong{color:var(--text);font-size:12px;font-weight:500}
.profile-menu-error{color:var(--error);font-size:12px;padding:8px 12px}.profile-menu-error:empty{display:none}
.account-checkout{max-height:calc(100svh - 32px);overflow-y:auto}
.subscription-dialog #account-renew-extra-field,.subscription-dialog #account-quantity-field{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin-block:16px}
.subscription-dialog #account-renew-extra-field>span,.subscription-dialog #account-quantity-field>span{font-size:12px;color:var(--muted);line-height:1.6}
.subscription-dialog #account-renew-extra,.subscription-dialog #account-quantity{width:82px;min-width:82px;min-height:42px;text-align:center;padding:8px}
.subscription-dialog .account-price-line{padding-block:8px}
.subscription-dialog .renew-profiles .renew-profile{min-height:44px;padding:10px 12px}
.subscription-dialog .accounts-actions{margin-top:20px}
@keyframes profile-menu-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.topbar:has(.profile-switcher){padding:15px 22px}.profile-switcher.profile-in-header{flex:1 1 160px;order:0}.profile-in-header .profile-menu{width:320px}.topbar:has(.profile-switcher) .topbar-inner{width:auto;justify-content:flex-end}.profile-switcher .profile-trigger{padding-block:3px}}
@media(max-width:540px){.topbar:has(.profile-switcher){gap:10px;padding:12px 18px}.profile-switcher.profile-in-header{flex-basis:100%;order:2}.topbar:has(.profile-switcher) .topbar-inner{width:100%}.profile-in-header .profile-menu{width:100%;max-width:none}.profile-switcher .profile-trigger{padding-inline:0}.account-checkout{padding:24px;max-height:calc(100svh - 24px)}}
@media(prefers-reduced-motion:reduce){.profile-switcher .profile-menu{animation:none}}
.account-checkout .account-capacity-field{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 10px}
.account-capacity-field>span:first-child{font-size:13px;color:var(--text)}
.slot-counter{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;background:var(--field);overflow:hidden;flex-shrink:0}
.slot-counter:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.slot-counter input:focus-visible,.slot-counter .button:focus-visible{outline:none}
.slot-counter .button{border:0;border-radius:0;background:transparent;min-width:44px;padding:10px;font-size:18px;line-height:1}
.account-checkout .slot-counter #account-quantity{width:46px;min-width:46px;border:0;background:transparent;border-radius:0;text-align:center;padding:8px 0;appearance:textfield;min-height:44px}
.slot-counter input::-webkit-inner-spin-button,.slot-counter input::-webkit-outer-spin-button{appearance:none;margin:0}
.account-slot-note{font-size:12px;line-height:1.7;margin:0 0 4px;max-width:39ch}
.account-capacity-change{margin:0 0 12px;min-height:1.6em;color:var(--text);line-height:1.6}
.account-capacity-change[hidden]{display:block!important;visibility:hidden}
#account-pay-error{min-height:1.6em;font-size:12px;line-height:1.6;margin:8px 0 0}
#account-pay-error:empty{display:block}
.account-price-line,.account-price-total{font-variant-numeric:tabular-nums}
.account-price-total>div{min-width:0}
@media(max-width:540px){.account-price-total{gap:10px}.account-price-total strong{font-size:24px;letter-spacing:-.5px}.account-new-term{font-size:12px}}

/* 24-hour trial: a quiet accent button and a short rule list in the confirmation. */
.account-trial-rules{margin:16px 0 0;padding-left:18px;display:grid;gap:7px;line-height:1.5}.subscription-trial{color:var(--warn);margin-top:6px;overflow-wrap:anywhere}
#account-trial-dialog .accounts-actions{margin-top:22px}
/* Administrator's tariff discount: the regular price struck through, the end of the offer below the total. */
.price-was{color:var(--faint);text-decoration:line-through;text-decoration-thickness:1px;font-weight:400;margin-right:.4em}
.account-price-total strong .price-was{font-size:.5em;letter-spacing:0;vertical-align:.3em}
.account-discount-note{margin:10px 0 0;font-size:12px;color:var(--good)}
