/* dashboard-account.css: page rules for Account (.acct2-). Layout only: every colour is a theme token from themes.css,
   and the pieces - .section, .btn, .chip, .pip, .rows, .switch, .skeleton - are the shared ones.
   Calm round, 2026-11-26: no panels and no frames. Who is signed in is one quiet line under the title; every other
   part is a heading and its content straight on the page, in a grid that fills the width and grows columns on wide
   screens: one column on a phone, two at 1366, three at 1920. Your stats takes a whole row. Only prose keeps a
   measure, through .note's own 72ch. */

.acct2{min-width:0}

/* who is signed in */
.acct2-who{margin:0 0 var(--d-section)}
.acct2-who p{margin:0}
.acct2-email-line{font-size:15px;line-height:1.4;color:var(--muted)}
.acct2-email{color:var(--text);overflow-wrap:anywhere}
.acct2-since{font-size:13px;color:var(--muted)}
.acct2-who > .acct2-since{margin-top:4px}
.acct2-paused{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:16px}
.acct2-paused .note{margin:0}

/* the grid of sections: rows line up, and the space under a short section is just page */
.acct2-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr));gap:48px 64px;align-items:start}
.acct2-grid > .section{margin:0}
.acct2-grid > .acct2-stats,.acct2-grid > .acct2-activity{grid-column:1 / -1}
/* one rhythm inside every section: 16 under the heading, 12 between the rest */
.acct2-sec > *{margin:0}
.acct2-sec > * + *{margin-top:12px}
.acct2-sec > h2 + *{margin-top:16px}
.acct2-sec > .acct2-say:empty{margin-top:0}

/* lines a section's buttons write to; errors carry the pixel "!" */
.acct2-say{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}
.acct2-say[data-err]{display:flex;align-items:baseline;gap:6px;font-weight:600;color:var(--text)}
.acct2-say[data-err]::before{content:"";flex:none;width:8px;height:8px;background:linear-gradient(currentColor,currentColor) 50% 0/2px 5px no-repeat,linear-gradient(currentColor,currentColor) 50% 100%/2px 2px no-repeat}
.acct2-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.acct2-off{font-size:12px}
.acct2-fail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.acct2-wait .skeleton:first-child{margin-top:4px}
.acct2-none{margin:0;font-size:14px;color:var(--muted)}

/* credits */
.acct2-balance{display:block;font-family:var(--display);font-weight:var(--display-weight);font-size:34px;line-height:1;color:var(--text);font-variant-numeric:tabular-nums}
.acct2-balance[data-unavailable]{font-family:var(--d-body);font-weight:600;font-size:15px;line-height:1.4}
.acct2-sec > .acct2-money + .note{margin-top:10px}
.acct2-topup{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.acct2-sec > .acct2-topup{margin-top:16px}
.acct2-topup label{font-size:14px;color:var(--text);cursor:pointer}
.acct2-topup input{width:96px;font-variant-numeric:tabular-nums}
.acct2-sec > .acct2-refund{margin-top:16px;font-size:12px}

/* agent connect: the plan's state is the first thing, its marker beside it */
.acct2-state{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.4;color:var(--text)}

/* connected accounts */
.acct2-conn > *{margin:0}
.acct2-conn > * + *{margin-top:12px}
.acct2-conn-line{font-size:15px;line-height:1.4;color:var(--text)}
.acct2-conn-line:focus{outline:none}
.acct2-conn-line:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* the names are one plain line; one that needs reconnecting gets one quiet line, its marker and muted words */
.acct2-conn-names{font-size:14px;line-height:1.5;color:var(--text)}
.acct2-conn > .acct2-conn-names{margin-top:6px}
.acct2-fix{display:flex;align-items:baseline;gap:8px;font-size:13px;line-height:1.45;color:var(--muted)}
.acct2-fix > .pip{position:relative;top:-1px}

/* AI posting: two plain choices, one under the other; the shared fieldset.field has no frame */
.acct2-ai-set{gap:10px;margin:0}
.acct2-ai-opt{align-items:flex-start;font-size:14px;line-height:1.4;color:var(--text)}
.acct2-ai-opt input{flex:none;margin-top:2px}
.acct2-ai-opt input[aria-disabled="true"]{opacity:.55}
.acct2-sec > .acct2-ai-set{margin-top:14px}

/* signed-in macs: plain rows, a 1px rule between them and nothing around them */
.acct2-mac-list > li{flex-wrap:wrap;gap:4px 16px}
.acct2-mac-text{display:grid;gap:2px;min-width:0;flex:1 1 200px}
.acct2-mac-name{font-size:14px;color:var(--text);overflow-wrap:anywhere}
.acct2-sec > .acct2-everywhere{margin-top:20px}
.acct2-everywhere .note{margin:0}

/* sign in on your phone: the code is its own white square, quiet zone included */
.acct2-qr{width:max-content;max-width:100%;line-height:0}
.acct2-qr svg{display:block;max-width:100%;height:auto}

/* your stats: the consent words, the switch, then the numbers as plain figures */
.acct2-sec > .acct2-switch{margin-top:16px}
.acct2-stats-sum > *{margin:0}
.acct2-stats-sum > * + *{margin-top:16px}
.acct2-stats-line{font-size:14px;color:var(--text)}
.acct2-figs{display:flex;flex-wrap:wrap;gap:24px 56px}
.acct2-fig{display:grid;align-content:start;gap:8px;min-width:96px}
.acct2-fig dt{font:800 10.5px/1.3 var(--d-body);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.acct2-fig dd{margin:0;font-family:var(--display);font-weight:var(--display-weight);font-size:clamp(24px,2vw,30px);line-height:1;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------- recent activity: a heading that opens, no panel ---------- */
.acct2-activity{margin:0}
.acct2-activity > .acct2-activity-sum{justify-content:flex-start;margin:0;cursor:pointer;list-style:none;color:var(--muted)}
.acct2-activity-sum::-webkit-details-marker{display:none}
.acct2-activity-sum:hover,.acct2-activity[open] > .acct2-activity-sum{color:var(--text)}
.acct2-activity-sum:focus-visible{outline-offset:2px}
.acct2-activity[open] > .acct2-activity-sum{margin-bottom:8px}
.acct2-activity[open] > .acct2-activity-sum .icon{transform:rotate(180deg)}
.acct2-activity-note{padding:8px 0}
.acct2-events > li{align-items:baseline}
.acct2-event-when{flex:none;min-width:150px;font-size:12px;color:var(--muted)}
.acct2-event-text{min-width:0;overflow-wrap:anywhere}
a.acct2-event-text{color:var(--text);text-decoration:none}
a.acct2-event-text:hover{text-decoration:underline}

@media (max-width:899.98px){
  .acct2-grid{gap:40px}
}
@media (max-width:640px){
  .acct2-event-when{min-width:0}
  .acct2-events > li{flex-direction:column;align-items:flex-start;gap:2px}
  .acct2-figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
  .acct2-balance{font-size:30px}
}
