.account-dropdown{position:relative;max-width:190px;color:#12304e}
.account-dropdown summary{cursor:pointer;border:1px solid #d3dfe9;border-radius:9px;padding:10px 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.account-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:210px;background:#fff;padding:8px;border:1px solid #d3dfe9;border-radius:12px;box-shadow:0 12px 32px #12304e20;z-index:100}
.account-menu a,.account-menu button{display:block;text-align:left;padding:12px;width:100%;background:transparent;border:0;border-radius:7px;font:inherit;color:inherit;cursor:pointer}
.account-menu :is(a,button):hover{background:#edf4fa}
.is-account-centre{display:block!important;max-width:1100px;min-height:0!important;padding-block:36px!important}
.is-account-centre>.auth-intro{display:none}
.is-account-centre>.auth-card{max-width:none;width:100%;padding:0;border:0;background:transparent;box-shadow:none}
.account-centre{width:100%;padding:32px!important}
[data-page="account"],.auth-shell.is-account-centre{scroll-margin-top:96px}
.portal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.portal-heading h2{font-size:clamp(30px,4vw,42px);line-height:1.08;letter-spacing:-.03em;margin:0 0 7px;overflow-wrap:anywhere}
.portal-heading p{color:#596d80;margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.portal-tabs{display:flex;gap:6px;margin:28px 0 0;border-bottom:1px solid #d3dfe9;flex-wrap:wrap}
.portal-tabs a{padding:12px 18px;color:#596d80;border-bottom:3px solid transparent}
.portal-tabs a[aria-current=page]{color:#12304e;border-color:#126daa;font-weight:600}
.portal-content{padding-top:24px;min-height:0}.portal-content label{display:grid;gap:8px;margin:14px 0}
.portal-content input:not([type=checkbox]):not([type=radio]),.portal-content textarea{width:100%;max-width:520px;padding:12px;border:1px solid #c5d3df;border-radius:8px;font:inherit}
.portal-content .portal-privacy label{display:flex;align-items:center;gap:12px;min-height:44px;width:fit-content;max-width:100%;margin:8px 0;cursor:pointer;line-height:1.5}
.portal-content input:is([type=checkbox],[type=radio]){box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;padding:0;margin:0;accent-color:#12304e}
.portal-privacy{margin-top:24px}.portal-privacy h3{margin:0 0 8px}.portal-privacy label span{min-width:0;overflow-wrap:anywhere}.portal-privacy p:empty{display:none}
.portal-content input:is([type=checkbox],[type=radio]):focus-visible{outline:3px solid #087b80;outline-offset:4px}
.portal-content textarea{min-height:120px}.portal-content [role=alert]{color:#a42a22}
.portal-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-block:24px}
.portal-facts dt{font-size:13px;color:#596d80}.portal-facts dd{margin:6px 0;overflow-wrap:anywhere}
.portal-invite,.portal-product{border:1px solid #d3dfe9;padding:20px;border-radius:12px;margin-top:24px;background:#f7fafc}
.portal-ticket-list{padding:0;list-style:none}.portal-ticket-list li{padding:16px 0;border-bottom:1px solid #d3dfe9;display:flex;justify-content:space-between;gap:12px}.portal-ticket-list span{font-size:13px;color:#596d80}
.portal-message{border-left:3px solid #126daa;padding:8px 16px;margin:18px 0}.portal-message p{white-space:pre-wrap}
[aria-busy=true]{opacity:.85}.portal-content [hidden]{display:none!important}
.portal-identity{display:flex;align-items:center;gap:20px;min-width:0}.portal-identity h2{overflow-wrap:anywhere}
.portal-avatar{display:grid;place-items:center;width:80px;height:80px;flex:none;border-radius:50%;overflow:hidden;background:#e4edf4;color:#12304e}
.portal-avatar :is(img,svg){width:100%;height:100%;object-fit:cover}.portal-avatar-actions{display:flex;flex-wrap:wrap;gap:12px}
.portal-product>header,.portal-message>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal-tier,.portal-state{display:inline-block;padding:4px 8px;border:1px solid #a7becf;border-radius:5px;font-size:13px;font-weight:600}
.portal-devices{list-style:none;padding:0;margin:0}.portal-devices li{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #d3dfe9}
.portal-devices small{display:block;color:#596d80;margin-top:4px}.portal-message time{font-size:13px;color:#596d80}
.portal-reset-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #a7becf;border-radius:12px;padding:24px;color:#12304e;background:#fff}
.portal-reset-dialog::backdrop{background:#10263b80}.portal-reset-dialog label{display:grid;gap:8px;margin:16px 0}
.portal-reset-dialog input{padding:12px;font:inherit;border:1px solid #a7becf;border-radius:6px}.portal-device-code{display:block;overflow-wrap:anywhere;font-size:13px}
.portal-reset-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
button[aria-busy=true]::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:portal-spin .75s linear infinite}
@keyframes portal-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){button[aria-busy=true]::before{animation:none}}
@media(max-width:480px){.portal-identity{gap:12px}.portal-avatar{width:56px;height:56px}.portal-identity h2{font-size:22px}.portal-devices li{flex-direction:column;align-items:flex-start}}
@media(max-width:680px){.account-centre{padding:20px!important}.portal-heading{align-items:flex-start}.portal-facts{grid-template-columns:1fr}.portal-tabs a{padding:12px 10px}.portal-ticket-list li{flex-direction:column}.account-dropdown{max-width:140px}}
@media(max-width:480px){.nav-actions .account-dropdown{max-width:90px}}
@media(prefers-reduced-motion:no-preference){.account-menu{animation:portal-in .12s ease-out}@keyframes portal-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}

/* 2026-10-30: account centre layout pass — one grid, one card rhythm. */
.portal-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 20px;flex-wrap:wrap}
.portal-panel-head h3{margin:0 0 4px;font-size:22px}
.portal-panel-lead{margin:0;color:#596d80;font-size:14px;line-height:1.5}
.portal-panel-head>.button{flex:none;text-decoration:none}
.portal-licence-list{display:grid;gap:18px}
.portal-product-grid{display:grid;gap:18px;min-width:0}
.portal-product{background:#fff;border:1px solid #dbe5ee;border-radius:14px;box-shadow:0 8px 24px #12304e0a;padding:22px 24px;margin:0}
.portal-product>header{align-items:flex-start;gap:16px;padding-bottom:14px;border-bottom:1px solid #e6edf3}
.portal-product>header h4{margin:0;font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.portal-product .portal-facts{margin:0;padding:18px 0;border-bottom:1px solid #e6edf3;gap:18px 28px}
.portal-product .portal-facts div{min-width:0}
.portal-product .portal-facts dt{font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#6b7f91}
.portal-product .portal-facts dd{margin:5px 0 0;font-size:15px;overflow-wrap:anywhere}
.portal-devices li{align-items:center;padding:14px 0;border-top:0;border-bottom:1px solid #edf2f6}
.portal-devices li:last-child{border-bottom:0;padding-bottom:0}
.portal-devices li>div{min-width:0}
.portal-devices .button{flex:none;min-width:150px;justify-content:center}
.portal-device-empty{margin:14px 0 0}
.portal-reset-bar{display:flex;justify-content:flex-end;margin:0 0 10px}
.portal-reset-bar .link-button{font-size:14px}
.portal-reset-policy{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border:1px solid #dbe5ee;border-radius:14px;background:#f7fafc}
.portal-reset-copy{min-width:0}
.portal-reset-copy h4{margin:0 0 4px;font-size:16px}
.portal-reset-copy p{margin:0;color:#596d80;font-size:14px;line-height:1.5}
.portal-reset-copy .portal-limit{color:#a42a22;font-weight:600;margin-top:4px}
.portal-reset-policy>.button{flex:none;min-height:44px}
.portal-product-grid>.empty-note{margin:0;padding:22px 24px;border:1px dashed #c5d3df;border-radius:14px;background:#fff}
.portal-invite{background:#f7fafc}
@media(max-width:680px){
  .portal-panel-head{align-items:stretch}
  .portal-panel-head>.button{width:100%;justify-content:center}
  .portal-reset-policy{align-items:flex-start;flex-direction:column}
  .portal-reset-policy>.button{width:100%;justify-content:center}
  .portal-product{padding:18px}
  .portal-devices li{align-items:stretch;flex-direction:column}
  .portal-devices .button{width:100%;min-width:0}
}

.portal-empty{display:flex;align-items:flex-start;gap:16px;padding:28px;border:1px dashed #c5d3df;border-radius:14px;background:#fff}
.portal-empty-mark{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:#eaf2f7;color:#12304e;font-size:24px;line-height:1}
.portal-empty h4{margin:2px 0 6px;font-size:17px;color:#12304e}.portal-empty p{margin:0;max-width:620px;color:#596d80;font-size:14px;line-height:1.55}
