/* Account screens keep functional content on quiet paper surfaces. */
:where(.account-shell,.account-dashboard){--account-inset:var(--panel-inset)}
.account-heading,.account-dashboard-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px;max-width:none}
.account-auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:0;margin-bottom:24px;padding:4px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper)}
.account-auth-tabs a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:var(--radius-sm);font-size:var(--type-button);font-weight:var(--weight-ui);line-height:var(--line-ui);color:var(--muted)}
.account-auth-tabs a[aria-current=page]{background:var(--surface);color:var(--ink)}
.account-auth-layout{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);align-items:start;gap:clamp(36px,6vw,88px);max-width:1040px;margin-top:var(--page-content-gap)}
.account-auth{display:flex;flex-direction:column;min-width:0;padding:var(--account-inset);border:0;border-radius:var(--radius-lg);background:var(--soft)}
.account-form{margin-top:24px;min-width:0}.account-auth>.account-form{margin-top:0}.account-form .form-field{margin-bottom:20px}
.account-form :is(input,select){min-height:var(--control-height,48px);background:var(--surface)}
.account-form small{display:block;margin-top:8px;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}
.account-auth-submit{width:100%;margin-top:4px}.account-auth-submit:disabled,.account-activation-form button:disabled{opacity:.55;cursor:not-allowed}
.account-help{align-self:flex-start;margin-top:16px;font-size:var(--type-caption)}
.account-feedback{margin-top:18px;font-size:var(--type-ui);line-height:var(--line-caption);color:var(--muted);overflow-wrap:anywhere}
.account-feedback:empty{display:none}.account-feedback[data-error=true]{color:var(--danger)}.account-feedback[data-success=true]{color:var(--success)}
.account-auth .account-feedback:not(:empty){margin:16px 0 0}.account-retry{margin-block:8px 0;align-self:flex-start}
.account-context{display:grid;align-content:start;gap:24px;min-width:0;padding-block:8px}
.account-context-note{min-width:0;max-width:48ch;font-size:var(--type-ui);line-height:var(--line-body);color:var(--muted)}
.account-selected{min-width:0;padding-bottom:24px;border-bottom:1px solid var(--line)}
.account-selected>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;color:var(--muted);font-size:var(--type-ui);line-height:var(--line-ui)}
.account-selected a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--type-ui);font-weight:var(--weight-ui)}
.account-selected>strong{display:block;margin-top:14px;font-size:var(--type-subsection);line-height:var(--line-card);overflow-wrap:anywhere}
.account-selected>p{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:18px;font-size:var(--type-caption);color:var(--muted)}
.account-selected b{font:600 32px/1.3 var(--font-sans);color:var(--ink)}.account-selected>small{display:block;margin-top:12px;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}

/* A compact account workspace: instances first, activation beside them. */
.account-session-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 20px;min-width:0;max-width:50%}
.account-user-link{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;min-height:44px;font:var(--type-caption)/var(--line-caption) var(--font-mono);color:var(--muted)}.account-user-link>span{min-width:0;overflow-wrap:anywhere}.account-user-link>.icon{width:12px;height:12px}.account-user-link:hover>span,.account-user-link:focus-visible>span{text-decoration:underline;text-underline-offset:4px}.account-session-tools>.inline-link{flex-shrink:0}
.account-dashboard-content{margin-top:var(--page-content-gap)}
.account-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start;min-width:0}
.account-instances,.account-activation{min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.account-instances{display:flex;flex-direction:column;overflow:hidden;container-type:inline-size}
.account-instances-heading{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:16px var(--account-inset);border-bottom:1px solid var(--line)}
.account-instances-heading h2,.account-activation h2{font-size:var(--type-small-title);line-height:var(--line-heading)}
.account-instances-heading>.inline-link{flex:0 0 auto;font-size:var(--type-caption)}
.account-instances-loading{padding:var(--account-inset);color:var(--muted);font-size:var(--type-ui)}
.account-activation{display:flex;flex-direction:column;padding:var(--account-inset);border-color:transparent;background:var(--soft)}
.account-activation-form{display:grid;gap:12px;min-width:0;margin-top:18px}
.account-activation-form .form-field{min-width:0;margin:0}.account-activation-form .form-field label{font-size:var(--type-ui)}
.account-activation-form input{height:var(--control-height);font-family:var(--font-mono);letter-spacing:0;text-overflow:ellipsis;background:var(--surface)}
.account-activation-form input::placeholder{font-family:var(--font-sans);font-size:16px}.account-activation-form>.button{width:100%;max-width:100%}
.account-activation-note{margin-top:16px;margin-bottom:0;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}
.account-activation-help{align-self:flex-start;margin-block:8px 0;font-size:var(--type-caption)}
.account-selected--activation{margin-top:18px;padding-bottom:20px}
.account-selected--activation>strong{margin-top:8px;font-size:var(--type-card)}
.account-selected--activation>p{margin-top:8px}
.account-selected--activation b{font-size:24px}
.account-selected--activation>small{margin-top:8px}
.account-cloud-note{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding-top:16px;border-top:1px solid var(--line);font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}
.account-cloud-note>.icon{width:18px;height:18px;margin-top:2px}.account-cloud-note>span{min-width:0}
.account-dashboard[data-has-instances=true] .account-cloud-note{display:none}
.account-instance-grid{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}.account-instance-grid:empty{display:none}
.account-instance-card{scroll-margin-block:100px;min-width:0;padding:24px var(--account-inset);background:var(--surface)}
.account-instance-card+.account-instance-card{border-top:1px solid var(--line)}
.account-instance-overview{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:14px;min-width:0}
.account-instance-identity{min-width:0}
.account-instance-heading{display:flex;align-items:center;gap:10px;min-width:0}.account-instance-heading img{flex:none;width:24px;height:24px}.account-instance-heading h3{min-width:0;font-size:var(--type-small-title);line-height:var(--line-card);overflow-wrap:break-word}
.account-instance-states{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:6px;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}
.account-instance-subscription{display:inline-flex;align-items:center;gap:7px;color:var(--success)}.account-instance-subscription:before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}.account-instance-card[data-expired=true] .account-instance-subscription{color:var(--muted)}
.account-instance-specs{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;list-style:none;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted)}
.account-instance-specs>li{min-width:0;overflow-wrap:break-word}
.account-instance-latency{display:inline-flex;align-items:baseline;gap:6px}
.account-instance-latency-value{font-variant-numeric:tabular-nums;white-space:nowrap}
.account-instance-term{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0;margin-top:14px;font-variant-numeric:tabular-nums}
.account-instance-term dt{color:var(--muted);font-size:var(--type-caption);line-height:var(--line-caption)}
.account-instance-term dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0;font-size:var(--type-caption);line-height:var(--line-caption)}
.account-instance-term time{white-space:nowrap}
.account-instance-remaining{margin:0 0 0 4px;font-size:var(--type-caption);line-height:var(--line-caption);color:var(--muted);font-weight:400}
/* One workbench action, with identifier and support as quiet utility links. */
.account-instance-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;min-width:0;margin-top:8px}
.account-instance-reference{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;max-width:100%;font-size:var(--type-meta);line-height:var(--line-caption);color:var(--muted)}
.account-instance-full-id{min-width:0;max-width:100%;font-size:inherit;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all}
.account-instance-copy{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:var(--radius-sm);color:var(--muted)}
.account-instance-copy svg{width:16px;height:16px}.account-instance-copy:hover{background:var(--soft);color:var(--ink)}.account-instance-copy:disabled{opacity:.55;cursor:wait}
.account-instance-copy-result{flex-basis:100%;font-size:inherit;overflow-wrap:anywhere}.account-instance-copy-result:empty{display:none}
.account-instance-actions{min-width:0}
.account-instance-actions .button{width:100%;min-width:0;max-width:100%;padding-inline:16px;white-space:normal;text-align:center}
.account-instance-connect:disabled{color:var(--muted);border-color:var(--line);background:var(--soft);opacity:1;cursor:not-allowed}
.account-instance-footer>.account-instance-support{flex:none;min-height:44px;font-size:var(--type-caption);color:var(--ink)}
@container(min-width:680px){
 .account-instance-overview{grid-template-columns:minmax(0,1fr) 170px;gap:24px}
}
.account-instance-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-block-size:300px;padding:32px var(--account-inset);text-align:center}
.account-empty-mark{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:16px;color:var(--muted)}.account-empty-mark>.icon{width:40px;height:40px;stroke-width:1.25}
.account-instance-empty h3{font-size:var(--type-card)}.account-instance-empty>p{max-width:40ch;margin-top:10px;font-size:var(--type-ui);line-height:var(--line-body);color:var(--muted)}
.account-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin-top:18px;font-size:var(--type-ui)}.account-empty-actions>button{color:var(--accent-dark)}
.account-security{position:fixed;inset:0;width:min(480px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:var(--account-inset,var(--panel-inset));border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-pop);overflow:auto;overscroll-behavior:contain}
.account-security::backdrop{background:#14141366}
.account-security-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.account-security-heading h2{font-size:var(--type-subsection);line-height:var(--line-heading)}
.account-security-close{display:flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-8px -8px -8px 0;border-radius:var(--radius-sm);color:var(--muted)}.account-security-close:hover{background:var(--soft);color:var(--ink)}.account-security-close>.icon{width:20px;height:20px}
.account-security .account-form{margin-top:24px}.account-security .account-form>p{margin-bottom:20px;font-size:var(--type-ui);line-height:var(--line-body);color:var(--muted)}.account-security .account-form>.button{width:100%}
@media(max-width:1024px){
 .account-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:20px}
}
@media(max-width:800px){
 :where(.account-shell,.account-dashboard){--account-inset:20px}
 .account-heading,.account-dashboard-heading{gap:16px}.account-auth-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 .account-context{gap:24px;padding-block:0}
 .account-security{padding:24px 20px}
 .account-session-tools{justify-content:flex-start;max-width:100%;width:100%;gap:4px 16px}.account-session-tools>.inline-link{margin-left:auto}
 .account-workspace{display:flex;flex-direction:column;gap:20px}.account-workspace>*{width:100%}
 .account-dashboard:not([data-has-instances=true]) .account-activation{order:-1}
 .account-instances-heading{padding:12px var(--account-inset)}
 .account-instance-empty{min-block-size:260px;padding:24px 20px}.account-empty-mark{width:48px;height:48px;margin-bottom:12px}.account-empty-mark>.icon{width:40px;height:40px}
}
