/* The account page (/account/), on the site's tokens (site.css): one column, rows of label, value and action, keys of
   44 px at least, body text 18 px, and no row that holds one control alone. Both looks come from the tokens. */
.acct { max-width: 760px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.acct h1 { font-family: var(--display); font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.acct-note { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--panel); }
.acct-lede { margin: 0 0 20px; color: var(--ink); }
.acct-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.acct-methods { margin: 0 0 20px; }
.acct-key { min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--panel); color: var(--ink);
  font: 600 17px/1.2 var(--ui); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.acct-key:hover { background: var(--rulebg); }
.acct-key:focus-visible, .acct-text:focus-visible, .acct input:focus-visible, .acct select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* The page's one filled key. Its label is the page's own background colour on the accent mixed toward the ink, so it
   reads at 7:1 or more in every look: 7.5:1 in the light look and 10.4:1 in the dark one, where white on the accent was
   2.1:1 (tests/browser/account.spec.js measures it). */
.acct-strong { background: var(--accent); background: color-mix(in srgb, var(--accent) 78%, var(--ink)); border-color: transparent; color: var(--bg); }
.acct-strong:hover { background: var(--accent); background: color-mix(in srgb, var(--accent) 78%, var(--ink)); filter: brightness(0.92); }
.acct-method { flex: 1 1 220px; }
.acct-danger { border-color: var(--warn); color: var(--warn); }
.acct-danger[disabled] { opacity: 0.55; cursor: not-allowed; }
.acct-text { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.acct-email label, .acct-first legend, .acct-dialog label, .acct-student label { display: block; font-weight: 700; margin: 0 0 8px; }
.acct-student label { flex: 1 0 100%; margin: 0; }
.acct-student-words { margin: 0 0 12px; }
.acct-email input, .acct-dialog input, .acct-student input { flex: 1 1 260px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--dim); border-radius: 10px;
  background: var(--panel); color: var(--ink); font: 18px var(--ui); }
.acct-first { margin: 0 0 20px; }
.acct-first fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.acct-pick { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; color: var(--dim); }
.acct-pick select { min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--dim); border-radius: 10px; background: var(--panel); color: var(--ink); font: 18px var(--ui); }
.acct-closed { color: var(--dim); }
.acct-hint { margin: 0 0 12px; font-size: 16px; color: var(--dim); }
.acct-r dd a { color: var(--accent); font-weight: 600; }
.acct-r dd a.acct-key { color: var(--ink); }
.acct-rows { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.acct-r { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.acct-r:first-child { border-top: 0; }
.acct-r dt { font-weight: 700; }
.acct-r dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.acct-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.acct-end { justify-content: space-between; }
.acct-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); padding: 24px; }
.acct-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.acct-dialog h2 { margin: 0 0 12px; font-size: 24px; }
.acct-dialog input { width: 100%; margin: 0 0 16px; box-sizing: border-box; }
@media (max-width: 640px) {
  .acct-r { grid-template-columns: 1fr; }
  .acct-act { justify-content: flex-start; }
  .acct-method { flex-basis: 100%; }
}
