/* Account pages. Inherits colour and fonts from the site layout; only structure lives here. */
.acct { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.acct h1 { margin: 0 0 .75rem; }
.acct h2 { margin: 2rem 0 .5rem; }
.acct-muted { opacity: .72; font-size: .92em; }
.acct-form { display: grid; gap: .5rem; max-width: 32rem; margin: 1rem 0; }
.acct-form.acct-row { grid-template-columns: 1fr auto; align-items: end; max-width: none; }
.acct-form.acct-row label { grid-column: 1 / -1; }
.acct input:not([type=checkbox]):not([type=hidden]) { font: inherit; padding: .6rem .7rem; min-height: 44px; box-sizing: border-box; width: 100%; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 4px; }
.acct button, .acct-button { font: inherit; cursor: pointer; min-height: 44px; padding: .55rem 1rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; text-decoration: none; display: inline-block; box-sizing: border-box; }
.acct button:hover, .acct-button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.acct button.acct-danger { opacity: .85; }
.acct button.acct-link { border: 0; padding: 0; min-height: 0; text-decoration: underline; }
.acct-inline { display: inline-flex; gap: .4rem; margin: 0 .3rem .3rem 0; align-items: center; }
.acct-inline input { width: 12rem; }
.acct-scroll { overflow-x: auto; }
.acct table { border-collapse: collapse; width: 100%; font-size: .94em; }
.acct th, .acct td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); vertical-align: middle; }
.acct-notice { padding: .7rem .9rem; border-left: 4px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.acct-key code { display: block; padding: .8rem; font-size: 1.05rem; word-break: break-all; border: 1px dashed currentColor; user-select: all; }
.acct-warn { font-weight: 600; }
.acct pre { overflow-x: auto; padding: .8rem; background: color-mix(in srgb, currentColor 10%, transparent); }
.acct progress { width: 100%; height: .6rem; }
.acct-plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.acct-plan { border: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding: 1rem; }
.acct-plan h3 { margin: 0 0 .25rem; }
.acct-plan .acct-inline { display: flex; margin: .4rem 0 0; }
.acct-plan .acct-inline button { width: 100%; }
.acct-list { list-style: none; padding: 0; }
.acct-list li { border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding: .8rem 0; }
.acct-list code, .acct td code { word-break: break-all; }
.acct fieldset { border: 1px solid color-mix(in srgb, currentColor 30%, transparent); margin: .5rem 0; }
.acct-check { display: inline-block; margin: .25rem .9rem .25rem 0; }
.acct-check input { width: 1.1rem; height: 1.1rem; vertical-align: -.15rem; }
.acct td code { white-space: nowrap; word-break: normal; }
@media (max-width: 40rem) {
  .acct-keys thead { display: none; }
  .acct-keys tr { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .8rem; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
  .acct-keys td { border: 0; padding: 0; }
  .acct-keys td:first-child, .acct-keys td:last-child { grid-column: 1 / -1; }
  .acct-keys td:nth-child(3)::before { content: "Created "; opacity: .65; }
  .acct-keys td:nth-child(4)::before { content: "Last used "; opacity: .65; }
  .acct-keys .acct-inline, .acct-keys .acct-inline input { width: 100%; }
  .acct-keys .acct-inline { margin: 0 0 .3rem; }
  .acct-keys .acct-inline input { flex: 1; min-width: 0; }
}
