/* Compact home overview; existing credentials, timer and navigation handlers are retained. */
#screen-dashboard .account-overview{padding:10px;margin-bottom:8px;border-radius:14px}
.account-overview-header,.account-overview-server{display:flex;align-items:center;gap:7px;min-width:0}
.account-overview-header{justify-content:space-between;flex-wrap:wrap;row-gap:5px}
.account-server-label{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:600;color:var(--color-text-muted);white-space:nowrap}
.account-server-label svg{width:14px;height:14px;flex-shrink:0}
.account-screen-count{font-size:.7rem;color:var(--color-text-muted);white-space:nowrap;border-left:1px solid var(--color-border);padding-left:7px}
.account-status{font-size:.66rem;font-weight:700;line-height:1.5;border-radius:20px;padding:3px 7px;white-space:nowrap;text-transform:none}
.account-overview-time{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0;padding:4px 0;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border)}
.account-remaining{display:flex;align-items:center;gap:7px;min-width:0}
.account-remaining>svg{width:18px;height:18px;flex-shrink:0}
.account-overview-label{display:block;color:var(--color-text-muted);font-size:.7rem;font-weight:500;line-height:1.5}
.account-overview .timer-digits{display:block;font-size:1.3rem;font-weight:600;line-height:1.3;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.account-expiry{text-align:right;min-width:0}
.account-expiry #val-zeus-expiration{display:block;font-size:.78rem;font-weight:600;line-height:1.6;color:var(--color-text-main);text-wrap:balance}
.account-overview .creds-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.account-overview .cred-compact-item{grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:auto auto;gap:0 3px;padding:5px 8px;align-items:center;background:var(--color-bg);border-color:var(--color-border);border-radius:9px}
.account-overview .cred-compact-label{font-size:.65rem;font-weight:500;text-transform:none;line-height:1.4}
.account-overview .cred-compact-val{grid-column:1;grid-row:2;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;font-size:.875rem!important;line-height:1.45!important;min-height:20px;user-select:text}
.account-overview .credential-copy-button{grid-column:2;grid-row:1/3;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;align-self:center;background:var(--color-surface)}
#screen-dashboard>.menu-order-toolbar{margin:2px 0 6px;min-height:32px;justify-content:flex-end}
#screen-dashboard>.menu-order-toolbar:not(.menu-order-toolbar-editing)>[data-menu-action=edit]{border-color:transparent;background:transparent;padding:4px 2px;min-height:32px;color:var(--color-text-muted);font-size:.76rem}
#screen-dashboard .portal-vertical-blocks{gap:8px!important}
.device-setup-entry{border-color:var(--credential-border)!important}
.device-setup-entry .menu-block-header{display:block!important}
.device-setup-entry .menu-block-title{font-size:1rem!important;line-height:1.35;font-weight:700;color:var(--credential-ink)}
.device-setup-entry .menu-block-desc{font-size:.79rem!important;line-height:1.4;margin-top:3px}
.device-setup-entry .menu-block-icon{flex-shrink:0}
.device-setup-entry:focus-visible{outline:2px solid var(--credential-ink);outline-offset:3px}
/* Two soft pulses on entry draw attention without permanently moving the page. */
@keyframes quality-setup-pulse{0%,100%{opacity:0;box-shadow:0 0 0 0 var(--credential-border)}35%{opacity:.65;box-shadow:0 0 0 3px var(--credential-border)}80%{opacity:0;box-shadow:0 0 0 6px var(--credential-border)}}
@media(prefers-reduced-motion:no-preference){
 #screen-dashboard .device-setup-entry::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;animation:quality-setup-pulse 2.4s ease-out 2}
 #screen-dashboard .device-setup-entry:is(:hover,:focus-visible)::after,#screen-dashboard .menu-order-editing .device-setup-entry::after{animation:none}
}
@media(max-width:380px){
 #screen-dashboard .account-overview{padding:10px}
 .account-overview-header{gap:5px}.account-overview-server{gap:5px}.account-screen-count{padding-left:5px}
 .account-server-label{font-size:.68rem}.account-status{font-size:.62rem;padding:3px 6px}
 .account-overview-time{gap:7px}.account-overview .timer-digits{font-size:1.18rem}
 .account-overview .cred-compact-item{padding:6px;grid-template-columns:minmax(0,1fr) 36px}
 .account-overview .credential-copy-button{width:36px!important;min-width:36px!important;max-width:36px!important}
 .account-expiry #val-zeus-expiration{font-size:.74rem}
}
@media(min-width:1024px){
 #screen-dashboard .account-overview{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(300px,1.25fr);column-gap:24px;align-items:center;padding:16px 18px}
 .account-overview-header{grid-column:1/-1;margin-bottom:10px}
 .account-overview-time{margin:0;border:0;padding:0}
 .account-overview .creds-compact-grid{margin:0}
 .account-overview>div:last-child:not(.creds-compact-grid){grid-column:1/-1}
}

/* Remove the duplicated outer/inner padding only while the account home is visible. */
@media(max-width:1023px){
 body.portal-logged-in .wizard-body:has(#screen-dashboard[style*="display: block"]>.account-overview){padding:2px 12px 24px}
}
@media(min-width:1024px){
 body.portal-logged-in .wizard-body:has(#screen-dashboard[style*="display: block"]>.account-overview){padding-top:0}
}
