/* sign-in, account and administration pages (same tokens as the portal) */
.auth-wrap{display:grid;place-items:start center}
/* the account's name line is filled once the account is known: its line is kept from the start, so the form below does
   not move (layout shift, docs/PRD.md 52.10) */
#who:empty::before{content:"\00a0"}
/* the cards below the first are laid out at once but shown together, once they are all filled (account-cards.js); without
   that script they show after 3 s (PRD 52.10) */
.auth-wrap.cards-wait>.auth-card:not(:first-child){visibility:hidden;animation:cards-show 0s linear 3s forwards}
@keyframes cards-show{to{visibility:visible}}
.auth-card{width:min(30rem,100%);background:var(--paper);border:1px solid var(--rule);box-shadow:var(--shadow);padding:2rem 2rem 1.5rem;margin-top:1.5rem}
.auth-card h1{font-size:var(--fs-h1);margin-bottom:.3rem;font-weight:400}
.auth-card form,.newgrid{display:grid;gap:.35rem;margin-top:1rem}
.auth-card label,.newgrid label{font-family:var(--mono);font-size:var(--fs-label);font-weight:600;color:var(--muted);margin-top:.6rem;display:grid;gap:.35rem;font-variant-numeric:tabular-nums lining-nums}
.auth-card input,.newgrid input,.newgrid select,.editgrid input,.editgrid select{font:inherit;font-weight:400;color:var(--ink);padding:.7rem .85rem;min-height:46px;border:var(--bw) solid var(--line-field);border-radius:var(--r);background:var(--paper);width:100%;font-family:var(--sans);font-size:1rem;letter-spacing:0;text-transform:none;transition:border-color .15s}
.auth-card input:focus,.newgrid input:focus,.newgrid select:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
.auth-card .btn{margin-top:1rem;justify-content:center}
.hint{font-size:.88rem;color:var(--muted);margin:.2rem 0 0;line-height:1.5}
/* Users: what each permission opens (question test, 27 October 2026) */
.adm-perm-d{max-width:var(--measure);margin:var(--sp-2) 0 var(--sp-3);padding-inline-start:var(--sp-5);font-size:var(--fs-small);line-height:var(--lh-body);color:var(--ink-2)}
.adm-perm-d li{margin:0 0 var(--sp-1)}
.msg{min-height:1.3em;margin:.8rem 0 0;font-size:.92rem}
.msg.err{color:var(--bad)} .msg.ok{color:var(--good);font-weight:600}
.admin-new{margin:1.2rem 0}
.newgrid{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.6rem 1.2rem;align-items:end;margin-top:.4rem}
.pwrow{display:flex;gap:.4rem}.pwrow input{font-family:var(--code);font-variant-numeric:tabular-nums lining-nums}
.perms{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;padding-top:.4rem}
.ck{display:inline-flex!important;align-items:center;gap:.5rem;font-weight:600!important;color:var(--ink)!important;letter-spacing:0!important;font-size:.92rem!important;margin:0!important;min-height:40px}
.ck input{width:20px;height:20px;min-height:0;accent-color:var(--blue)}
.row{grid-column:1/-1;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-top:.4rem}
.sec-h{font-size:1.25rem;margin:2rem 0 .7rem;font-weight:400}
table.list .yr{color:var(--muted);font-size:.8rem}
table.list.small{font-size:.85rem}
td.acts{white-space:normal;min-width:15rem}
td.acts button{border:1px solid var(--rule-strong);background:var(--paper);color:var(--ink);font-size:.84rem;font-weight:600;padding:.45rem .65rem;min-height:36px;border-radius:var(--r);margin:.1rem}
td.acts button.danger{color:var(--bad)}
.editgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.6rem 1rem;padding:.6rem 0}
.editgrid label{display:grid;gap:.3rem;font-size:.84rem;font-weight:700;color:var(--muted)}
/* email alerts card */
#alerts-card h2{font-size:1.25rem;margin:.1rem 0 .4rem}
.al-addr{margin:.8rem 0 0;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;word-break:break-all}
.al-prefs{border-top:1px solid var(--rule-soft);margin:1.1rem 0 0;padding:.9rem 0 0;display:grid;gap:.45rem;justify-items:start}
#alerts-card [hidden]{display:none!important}
.al-prefs .lbl{font-family:var(--mono);font-size:var(--fs-label);font-weight:600;color:var(--muted);margin:0;font-variant-numeric:tabular-nums lining-nums}
.al-prefs .lbl+.lbl,.al-prefs .ck+.lbl{margin-top:.6rem}
.al-prefs .ck-sub{margin-inline-start:1.75rem!important;font-weight:500!important} /* daily briefs, under "a new report" (PRD 29.4) */
#alerts-card .row .btn{margin-top:.6rem}
.al-sub{font-family:var(--sans);font-size:.95rem;font-weight:700;color:var(--navy);margin:1.2rem 0 .2rem;padding-top:.9rem;border-top:1px solid var(--rule-soft)}
#al-dev .row .btn{margin-top:.5rem}
/* Users page (PRD 26): the action panel under an account, the new credentials, and cards on phones */
td.acts .act-link{display:inline-flex;align-items:center;border:1px solid var(--rule-strong);background:var(--paper);color:var(--ink);font-size:.84rem;font-weight:600;padding:.45rem .65rem;min-height:36px;border-radius:var(--r);margin:.1rem;text-decoration:none}
td.acts .act-link:hover,td.acts button:hover{border-color:var(--navy)}
#msg,#created,tr.editrow{scroll-margin-top:4.5rem;scroll-margin-bottom:1rem}
tr.editrow>td{background:var(--raise);border-top:var(--bw-accent) solid var(--brass)}
.pwpanel{display:grid;gap:.5rem;max-width:34rem;padding:.4rem 0}
.pwpanel .pw-l{display:grid;gap:.35rem;font-size:.84rem;font-weight:700;color:var(--muted)}
.pwpanel .pwrow input{font:inherit;font-family:var(--code);font-size:1rem;color:var(--ink);padding:.6rem .8rem;min-height:44px;border:var(--bw) solid var(--line-field);border-radius:var(--r);background:var(--paper);width:100%;min-width:0;font-variant-numeric:tabular-nums lining-nums}
.pwpanel .pwrow input:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
.pwpanel .msg,.editrow .msg{margin:.2rem 0 0}
.pwpanel .row .btn,.editrow .row .btn{min-height:40px}
.created{margin-top:1rem;padding:1rem 1.1rem;background:var(--raise);border:1px solid var(--rule);border-top:var(--bw-accent) solid var(--good)}
.created .msg{margin:0 0 .6rem}
.cred{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1rem;margin:.2rem 0 .4rem;align-items:baseline}
.cred dt{font-family:var(--mono);font-size:var(--fs-label);color:var(--muted);font-variant-numeric:tabular-nums lining-nums;font-weight:600}
.cred dd{margin:0;text-align:start}
.cred code{font-family:var(--code);font-size:1.05rem;font-weight:600;color:var(--ink);background:var(--paper);border:1px solid var(--rule);padding:.15rem .5rem;border-radius:var(--r);word-break:break-all;user-select:all;font-variant-numeric:tabular-nums lining-nums}
html[dir="rtl"] .cred dt{letter-spacing:0;text-transform:none;font-family:var(--arabic);font-size:.9rem}
html[dir="rtl"] table.users-t td.num,html[dir="rtl"] table.log-t td.num:first-child{font-family:var(--arabic);letter-spacing:0}
/* the accounts table and the log become labelled cards whenever the table is wider than its box: always on phones, and on
   iPads upright or narrow windows (auth.js sets .cards by fit, PRD 27.2) */
.tw:has(table.cards){overflow:visible;background:none;border:0;box-shadow:none}
table.cards{display:block}
table.cards thead{display:none}
/* (one column no wider than the box: a long word with no break in it, an IPv6 address in the activity log, made the
   column and every card 39 px wider than a phone's screen; the site check of 12 November 2026, docs/PRD.md 89.4) */
table.cards tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:.7rem}
table.cards tr{display:block;background:var(--paper);border:1px solid var(--rule);box-shadow:var(--shadow);padding:.6rem .9rem}
table.cards tbody tr:hover{background:var(--paper)}
table.users-t.cards tr.editrow{margin-top:-.8rem;border-top:0;box-shadow:none;background:var(--raise)}
table.users-t.cards tr.editrow[hidden]{display:none}
table.users-t.cards tr.editrow>td{border:0;background:none;padding:.2rem 0}
table.cards td{display:block;border:0;padding:.3rem 0}
table.cards td[data-l]{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:.6rem;align-items:baseline;overflow-wrap:anywhere;white-space:normal;word-break:break-word}
table.cards td[data-l]::before{content:attr(data-l);font-family:var(--mono);font-size:var(--fs-label);color:var(--muted);font-variant-numeric:tabular-nums lining-nums;font-weight:600}
html[dir="rtl"] table.cards td[data-l]::before{letter-spacing:0;text-transform:none;font-family:var(--arabic);font-size:.85rem}
table.users-t.cards td:first-child{display:block;padding-bottom:.4rem;border-bottom:1px solid var(--rule-soft);margin-bottom:.2rem}
table.users-t.cards td:first-child::before{content:none}
table.users-t.cards td.acts{min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.4rem;padding-top:.6rem}
table.users-t.cards td.acts button,table.users-t.cards td.acts .act-link{margin:0;min-height:44px;justify-content:center;width:100%}
table.log-t.cards td:not([data-l]):empty{display:none}
table.log-t.cards td:not([data-l]){padding-inline-start:8.1rem;color:var(--muted)}
@media (max-width: 760px){
  .cred{grid-template-columns:1fr;gap:.15rem}
  .cred dd+dt{margin-top:.4rem}
  .pwpanel .pwrow{flex-wrap:wrap}
  .pwpanel .pwrow input{flex:1 1 12rem}
}

/* ---------- the sign-in page: the cover of the portal (programme PRD 13.5; persuade surface) ----------
   Direction (taste-skill, within the identity): the cover of the Center's own publication. The masthead's navy field
   becomes the page's left two thirds and carries what only this portal has: both names of the Center at cover size in
   its publication faces (Noto Serif, Noto Naskh Arabic) with the brass double rule between them, the portal's name,
   what it holds and its publishing hours. The form sits on paper beside it, a plain working form. No picture, gradient,
   card stack or badge: the subject's own words and colours carry the page. One authored moment: the brass rule draws
   once per visit; reduced motion keeps it still. */
body.cover-page{background:var(--ground)}
.cover{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,7fr) minmax(22rem,5fr);grid-template-rows:1fr auto;grid-template-areas:"field side" "more side"}
/* the field is two sections, the names and then what the portal holds, so that on a phone the form comes between them */
.cover-field,.cover-more{background:var(--head);color:var(--head-ink);padding-inline:clamp(1.5rem,5vw,5rem)}
.cover-field{grid-area:field;padding-block:clamp(1.5rem,3vw,2.5rem) var(--sp-5);display:flex;flex-direction:column;gap:var(--sp-5)}
.cover-more{grid-area:more;padding-block:0 clamp(2rem,5vw,4.5rem);display:flex;flex-direction:column;gap:var(--sp-5)}
.cover-side{grid-area:side}
.cover-top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);margin-bottom:auto}
.cover-logo{width:4rem;height:4rem;flex:none}
.cover-top .top-tools{padding:0}
.cover-names{margin-top:clamp(2.5rem,8vh,6rem);display:grid;gap:var(--sp-4);justify-items:start}
.cover-name{font-family:var(--display);font-weight:500;font-size:clamp(2.125rem,1.25rem + 2.6vw,3.375rem);line-height:1.08;letter-spacing:-.018em;color:var(--head-ink);max-width:19ch;margin:0;text-wrap:balance}
.cover-rule{width:min(16rem,62%);height:5px;border-top:1px solid var(--head-brass);border-bottom:1px solid var(--head-brass);transform-origin:0 50%}
.cover-alt{font-family:var(--display-ar);font-size:clamp(1.55rem,1.05rem + 1.7vw,2.375rem);line-height:1.55;color:var(--head-brass);margin:0;max-width:24ch;text-align:left}
html[dir="rtl"] .cover-alt{text-align:right}   /* the other language's name keeps to the page's edge, under the first */
.cover-alt[lang="en"]{font-family:'Noto Serif',Georgia,serif;line-height:1.2;letter-spacing:-.01em}
.cover-sub{font-family:var(--sans);font-size:var(--fs-label);font-weight:600;letter-spacing:var(--track-brand);text-transform:uppercase;color:var(--head-brass);margin:var(--sp-3) 0 0}
.cover-p{font-size:1.1875rem;line-height:1.55;color:var(--head-muted);max-width:34rem;margin:0}
.cover-sched{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-8);margin:var(--sp-2) 0 0;padding-top:var(--sp-4);border-top:1px solid var(--head-line)}
.cover-sched dt{font-weight:700;color:var(--head-ink);font-size:var(--fs-small)}
.cover-sched dd{margin:0;color:var(--head-muted);font-size:var(--fs-small);font-variant-numeric:tabular-nums lining-nums}
.cover-side{display:flex;align-items:center;justify-content:center;padding:clamp(1.5rem,4vw,4rem) clamp(1.25rem,4vw,3.5rem)}
.cover-side .auth-card{margin:0;width:min(25rem,100%);background:transparent;border:0;box-shadow:none;padding:0}
.cover-side .auth-card h1{font-size:var(--fs-h2);margin-bottom:var(--sp-2)}
.cover-side .btn.primary{min-height:48px;font-size:var(--fs-ui)}
@media (prefers-reduced-motion: no-preference){ html.first-visit .cover-rule{animation:draw .7s var(--ease-out) .1s both} }
html[dir="rtl"] .cover-rule{transform-origin:100% 50%}
html[dir="rtl"] .cover-name{letter-spacing:0;line-height:1.45}
html[dir="rtl"] .cover-sub{letter-spacing:0;text-transform:none;font-family:var(--arabic);font-size:var(--fs-small)}
html[dir="rtl"] :is(.cover-p,.cover-sched){line-height:1.8}
@media (max-width: 900px){
  .cover{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"field" "side" "more"}
  .cover-field{gap:var(--sp-4);padding-bottom:var(--sp-6)}
  .cover-names{margin-top:var(--sp-5)}
  .cover-more{padding-top:var(--sp-6)}
  .cover-p{font-size:var(--fs-body)}
  .cover-side{align-items:flex-start;padding-block:var(--sp-6) var(--sp-7)}
}
/* agreements lane, Phase 2 (Agreements PRD 20.1): the restricted-items tick box sits on its own row, its note under it */
.perm-rx{flex-direction:column;align-items:flex-start;gap:0;border-top:1px solid var(--rule);margin-top:.2rem}

/* Who can see what (PRD 37): one tick box per account and permission */
table.who-t th.c{white-space:normal;text-align:center;vertical-align:bottom;min-width:5.25rem}   /* eleven switches fit a desktop row (PRD-access-by-tab) */
table.who-t td.c{text-align:center;vertical-align:middle}
table.who-t .who-ck{display:inline-flex;flex-direction:column;align-items:center;gap:.2rem;min-height:44px;justify-content:center}
table.who-t .who-ck input{width:1.15rem;height:1.15rem}
table.who-t .who-ck input:disabled{opacity:.55}
table.who-t .who-m{font-size:var(--fs-label);min-height:1em}
table.who-t .who-m.ok{color:var(--good)}
table.who-t .who-m.err{color:var(--bad)}
/* Today's priorities for everyone at once (its PRD, Section 2) */
.tp-all{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);margin:0 0 var(--sp-3)}
.tp-all .who-m{font-size:var(--fs-label)}
.tp-all .who-m.ok{color:var(--good)}
.tp-all .who-m.err{color:var(--bad)}
table.who-t.cards td.c{display:grid;grid-template-columns:1fr auto;text-align:start}
table.who-t.cards .who-ck{flex-direction:row;min-height:44px}

/* Alerts card on the users page (docs/PRD-decision-tools.md, Section 8) */
.als-list{list-style:none;margin:.6rem 0 .8rem;padding:0;display:grid;gap:.45rem}
.als-list li{display:flex;gap:.6rem;align-items:baseline;line-height:1.5}
.als-dot{flex:none;inline-size:.7rem;block-size:.7rem;border-radius:50%;background:var(--good);transform:translateY(.05rem)}
.als-bad .als-dot{background:var(--bad)}
.als-chip{display:inline-block;font-size:.75rem;font-weight:700;padding:.05rem .4rem;border-radius:2px;background:var(--bad-soft);color:var(--bad)}
.als-fail{color:var(--bad);font-weight:700}
.als-act{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.8rem 0 .2rem}
.als-act .hint{margin:0}

/* Live check, 10 November 2026 (docs/PRD.md 73): a long username or date wraps inside its card on a phone and no longer
   pushes the Users page sideways */
table.cards .t-nw{white-space:normal;overflow-wrap:anywhere}
table.cards td{min-width:0;overflow-wrap:anywhere}

/* ===== docs/PRD.md 115: the whole-portal review, round 11, package P6 (sign-in and My account) ===== */
/* PRD 115 P6: field labels on sign-in and My account read at 14 px against the 46 px fields (they were 13 px); Arabic keeps its own larger size (rtl.css) */
html:not([dir="rtl"]) body:is([data-page="login"],[data-page="account"]) .auth-card label:not(.ck){font-size:var(--fs-caption)}
/* PRD 115 P6: sign-in, wide screens. The two rows of the navy field share the height 5 to 4, so the names, the line about the portal and the hours sit as one block in the middle of the field (they hung at its foot under 250 px of empty navy) and level with the form beside them */
@media (min-width:901px){
  /* PRD 115 S4: the block of names, the line about the portal and the hours is centred by the grid itself, in any language and at any height: six rows, an equal free row above the names and below the hours, and the two navy sections lend their rows to the page's grid (subgrid). The block's middle is then the form's middle to the pixel (with the two fixed shares it stood 22 px low in English and 12 px low in Arabic) */
  .cover{grid-template-rows:minmax(min-content,1fr) auto auto auto auto minmax(min-content,1fr);grid-template-areas:none}
  .cover-field{grid-area:1/1/4/2;display:grid;grid-template-rows:subgrid;row-gap:var(--sp-5)}
  .cover-more{grid-area:4/1/7/2;display:grid;grid-template-rows:subgrid;row-gap:var(--sp-5);align-items:start}
  .cover-side{grid-area:1/2/7/3}
  .cover-top{align-self:start;margin-bottom:0}
  .cover-names{margin-top:0}
}
/* PRD 115 Q4: sign-in. The two publishing hours share the width of the rule above them, half each (they stood together in its first third) */
.cover-sched{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}
/* PRD 115 Q4: sign-in. One 24 px step between the button, the recording note, the forgot-password help and "or" (the gaps were 60 and 40 px): the empty message line takes no room until it has a message, and the recording note is one size smaller than the help a reader acts on */
.cover-side #msg:empty{min-height:0;margin:0}
.cover-side .aud-note-in{margin-top:var(--sp-3)}
.cover-side .pk-box .pk-or{margin-top:var(--sp-6)}
/* PRD 115 P6: sign-in. The three helper notes share one size (they were 15, 14 and 14 px); the forgot-password line, the one a reader acts on, takes the stronger text tone and a clear gap above */
.cover-side :is(.aud-note,.hint){font-size:var(--fs-caption);line-height:1.5}
.cover-side #msg + .hint{margin-top:var(--sp-6)}   /* (PRD 115 S4: the three notes are one size and one tone, 14 px in the muted tone; the recording note was 13 px and the forgot-password line a darker grey) */
/* PRD 115 P6: My account. The title steps down to the size of the sign-in title (it was the page-title size inside a 30rem card) and the name of the account reads in the full text colour */
body[data-page="account"] .auth-card h1{font-size:var(--fs-h2)}
body[data-page="account"] #who{font-size:var(--fs-ui);color:var(--ink)}
/* PRD 115 Q4: My account. The "Signed in as" line is regular weight with more room under it, so the title leads (the line was bold; its name is not a separate element, so the whole line steps back) */
body[data-page="account"] #who{font-weight:400;margin-bottom:var(--sp-4)}
/* PRD 115 Q4: My account, wide screens. The cards stand two to a row across the page's width, so the passkey card is on the first screen beside the password card (one 30rem column left two thirds of the screen empty). The first sign-in, which shows the password card alone, keeps the single centred card */
@media (min-width:1100px){
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-5);place-items:start stretch}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > .auth-card{width:auto;margin-top:0}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > #si-card{grid-column:1/-1}   /* the sign-ins table takes the full row, so no cell breaks a word */
}
/* PRD 115 Q4: My account, from 1200 px. The Center's second name stands beside the first behind the thin brass rule, as in the portal's own header (style.css, PRD 110.10 and 111.5); it hung alone at the far end of the line */
@media (min-width:1200px){
  body[data-page="account"] .head-grid{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:1.25rem}
  body[data-page="account"] .head-grid .brand-alt{align-self:end;justify-self:start;max-width:none;margin:0 0 .85rem;padding:0;padding-inline-end:1.25rem;border-inline-end:1px solid color-mix(in srgb,var(--head-brass) 55%,transparent);color:var(--head-muted);font-size:.9375rem;line-height:1.15;text-align:start;white-space:nowrap}
  body[data-page="account"] .head-grid .brand-alt[lang="en"]{font-family:var(--mono);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;line-height:1.3}
}
/* PRD 115 P6: My account. Less padding above and below the card, and the empty message line takes no room until it has a message, so the recording note follows the button directly and the next card's heading shows on the first screen */
body[data-page="account"] .auth-card{padding-block:var(--sp-6) var(--sp-5)}
body[data-page="account"] .auth-card:first-child{margin-top:0}
body[data-page="account"] #msg:empty{min-height:0;margin:0}
/* PRD 115 P6: My account, tablet and wider. "Back to the portal", the only way back, is drawn as the header's other controls are: the same outline, height and white text (it was 13 px in the muted tone) */
@media (min-width:761px){
  body[data-page="account"] #top .nav a{align-self:center;margin-inline-start:.75rem;min-height:2.5rem;padding:0 var(--sp-4);border:1px solid var(--head-line);border-radius:999px;color:var(--head-ink);font-family:var(--sans);font-size:var(--fs-caption)}
  body[data-page="account"] #top .nav a::after{content:none}
  body[data-page="account"] #top .nav a:hover{border-color:var(--head-brass);background:rgba(255,255,255,.08)}
}
@media (min-width:761px) and (pointer:coarse){ body[data-page="account"] #top .nav a{min-height:2.75rem} }   /* a finger needs 44 px */
/* PRD 115 R3: My account, wide screens. The password card and the passkey card beside it are one height (the passkey card ended half way down, leaving a hole); in the wide cards a form's fields and its button keep to 360 px, and every card's main button is as wide as its words, at the start edge ("Change password" ran the card's 530 px while "Add a passkey" was 120 px) */
@media (min-width:1100px){
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > :is(.auth-card:first-child,#pk-card){align-self:start}   /* each card its own height: stretched, the passkey card was two-thirds empty (round 13's reviewers) */
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > .auth-card form{max-width:22.5rem}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > .auth-card form .btn{justify-self:start}
}
/* PRD 115 R3: My account. The line under "Your recent sign-ins" keeps to 75 characters and stands clear of the table (it ran the card's full width, tight on the table's head) */
body[data-page="account"] #si-card > .hint{max-width:75ch;margin-bottom:var(--sp-4)}

/* ===== docs/PRD.md 115: the whole-portal review, round 14 (the detail pass), package S4 (sign-in and My account) ===== */
/* PRD 115 S4: sign-in. One 24 px step down the form's foot: button to recording note, note to forgot-password line, that line to the "or" rule, the rule to the passkey button (they were 31, 24, 36 and 24 px); the passkey button's own hint sits 8 px under it (it was 3 px) and "or" is the notes' size */
.cover-side .aud-note-in{margin-top:calc(var(--sp-3) - .35rem - 1px)}
.cover-side .pk-box .pk-or{margin:var(--sp-3) 0;font-size:var(--fs-caption);line-height:1.5rem}
.cover-side .auth-card .pk-signin{margin-top:0}
.cover-side .pk-box .pk-signin + .hint{margin-top:var(--sp-2)}
/* PRD 115 S4: sign-in. The Center's second name keeps to one line under the portal's name on a wide screen, at about half its size (it wrapped to two lines at 38 px and outweighed "Jaywan"); where it must wrap, on a phone, its two lines are balanced */
.cover-alt{max-width:none;text-wrap:balance}
@media (min-width:901px){
  .cover-alt{font-size:clamp(1.25rem,2.05vw,1.75rem)}
  .cover-alt[lang="en"]{font-size:clamp(1.0625rem,1.75vw,1.5rem)}
}
/* PRD 115 S4: My account. Every card's title is one size (20 px; they were 20, 22 and 25.5 px) with the same space above it, set so the first card's page title and the title of the card beside it share a baseline */
body[data-page="account"] :is(#pk-card,#si-card,#alerts-card,#watch-card,#mtg-card,#radar-card) > h2{font-size:1.25rem;line-height:var(--lh-head);margin:.4375rem 0 .4rem}
html[dir="rtl"] body[data-page="account"] :is(#pk-card,#si-card,#alerts-card,#watch-card,#mtg-card,#radar-card) > h2{margin-top:.75rem}   /* the Arabic page title's line is taller: 12 px puts the two baselines on one line */
/* PRD 115 S4: My account, wide screens. The recording note and the rule above it keep to the fields' measure (360 px), so the password card has one right edge (the rule and note ran the card's width beside fields that stopped at 360 px) */
@media (min-width:1100px){
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))) > .auth-card:first-child > .aud-note{max-width:22.5rem}
}
/* PRD 117.1: My account, wide screens. The password card and the passkey card stand one under the other in a first column as wide as their fields (26.5rem: the 22.5rem fields and the card's padding), and "Your recent sign-ins" stands beside the two in the rest of the row (side by side, the passkey card ended about 310 px above the password card and left an empty block, whichever way the two were aligned). The row is two halves of two columns each, so every later card still takes a half, in its order */
@media (min-width:1100px){
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])){grid-template-columns:repeat(2,26.5rem minmax(0,1fr));grid-template-rows:auto 1fr}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > .auth-card{grid-column:span 2}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > .auth-card:first-child{grid-column:1;grid-row:1}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #pk-card{grid-column:1;grid-row:2;align-self:stretch}   /* its frame ends level with the sign-ins card where that one is the taller (43 px in English) */
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #si-card{grid-column:2 / -1;grid-row:1 / span 2}
  /* PRD 117.1: where the sign-ins card is the shorter of the two sides and its table is nearly full (8 sign-ins or more), the card ends level with the passkey card and the table's rows share the spare height (in Arabic the card ended 206 px above it); with fewer sign-ins the card keeps its own height */
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #si-card:has(.si-t:not(.cards) tbody tr:nth-child(8)){align-self:stretch;display:flex;flex-direction:column}
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #si-card:has(.si-t:not(.cards) tbody tr:nth-child(8)) .tw{flex:1;display:grid}
  /* PRD 117.1: the last column ("How") keeps each word whole (in the narrower card "Password" broke after its seventh letter) */
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #si-card .si-t:not(.cards) :is(th,td):last-child{overflow-wrap:normal}
  /* PRD 117.1: beside the two cards a sign-in's date and time and its device each keep one line, so the place takes the room (every row had wrapped to two lines in three columns: round 16's reviewers) */
  body[data-page="account"] .auth-wrap:not(:has(#first:not([hidden]))):has(> #pk-card:not([hidden])):has(> #si-card:not([hidden])) > #si-card .si-t:not(.cards) :is(th,td):is(:first-child,:nth-child(3),:last-child){white-space:nowrap}
}
