/*
 * IDfied issuer pages: tokens and idf- component classes, drawn in IDfied's
 * visual system (the tokens, buttons, links, inputs, focus ring, chips and
 * app bar of idfied/src/app/globals.css), which since 3.0.0 wears
 * Eventfied's recipient look (fonts, colours, corners, shadows, buttons and
 * inputs), so moving between Eventfied, IDfied and the identity provider
 * reads as one product. Light only: every
 * colour is declared once, as a token of the :root block below, and every
 * other rule refers to a token, `transparent`, `currentColor` or, inside the
 * forced-colours rules, a system colour, so a dark set is a later
 * redefinition of the tokens alone (AUTH-062). Fonts are self-hosted by the
 * identity provider (AUTH-063); nothing is imported and no third-party
 * request is made from a credential page. No animation; colour transitions
 * only, at most 150 ms (AUTH-068). The one exception, since 3.2.0, is the
 * toast's short fade and rise, under prefers-reduced-motion: no-preference
 * only.
 *
 * Changelog:
 *   3.4.2 (2026-10-05) W-25: a read-only field (.idf-input[readonly]) keeps
 *     the normal ink on the surface-2 grey, so it reads as not editable
 *     without greyed-out text (ink on surface-2 12.92:1 in :root, about
 *     13.6:1 on IDfied's #F5F7FA). Focus is the usual D12 ring.
 *   3.4.1 (2026-09-29) The account tabs wrap onto a second line where their
 *     row does not fit, instead of scrolling inside the row (WCAG 2.2 SC
 *     1.4.10; ACP-032 found "Account and security" cut off at 320 CSS px).
 *     Each tab keeps its 44 px height; a wide window keeps the one row.
 *   3.4.0 (2026-09-27) The sign-in pages in IDfied's look (owner: "can we
 *     also update idp ui to match idfied, else it looks out of place"),
 *     replacing their neutral look. The 3.3.0 block's IDfied tokens and ui-
 *     rules now apply to both layouts' body classes (body:is(.idf-portal,
 *     .idf-auth), the same specificity as before, so the account pages'
 *     cascade is unchanged); there is still one copy of IDfied's tokens.
 *     Manrope, now self-hosted as manrope-latin-var.woff2, is declared
 *     (600 to 800) and sets the sign-in headings and brand name; DM Sans and
 *     IBM Plex Mono are no longer used by the sign-in pages (their faces stay
 *     declared and are never fetched there), codes take the system monospace
 *     stack. The new block at the end, scoped to body.idf-auth: the centred
 *     480 px column and its white card, the product context as a tint chip
 *     above the heading, 48 px fields with the 1.5 px control edge, the code
 *     field's six boxes in the same field look, IDfied's boxed error summary
 *     and notices, 22 px radio controls, the organisation chooser's tint
 *     marks, full-width primary and secondary buttons in the card. Both
 *     layouts keep the footer at the foot of the window on a short page
 *     (owner: "shouldnt footer always stay at bottom"): the frame is a flex
 *     column at least the window's height and the main area grows. The old
 *     centred-card rule of 2026-09-25 (body.idf-auth as a flex column) is
 *     removed; the banner, frame, panel and footer-line rules are left unused
 *     by the sign-in pages. The html root of both layouts paints IDfied's
 *     page grey from the first frame.
 *   3.3.0 (2026-09-27) The account pages in IDfied's look (owner: "the ui is
 *     still completely off, and have the sub nav like we have in idfied
 *     instead of sidebar"): the new block at the end of this file, scoped to
 *     body.idf-portal, holds IDfied's colour, radius and shadow tokens
 *     (idfied/src/app/globals.css 4.0.0), points this file's token names at
 *     them for the portal only, and adds IDfied's shell, header, brand, tabs,
 *     back link, cards, rows, panels, buttons and footer. Inter for headings
 *     and text on the portal (no Manrope file yet; DM Sans and IBM Plex Mono
 *     are not used there, codes take the system monospace stack). No rule
 *     above the new block changes, so the sign-in pages keep their look; the
 *     old rail, breadcrumb, portal grid and history table rules are left
 *     unused by the portal.
 *   3.2.2 (2026-09-26) The phone origin chip's host wraps instead of being
 *     cut with an ellipsis (WCAG 2.2 SC 1.4.12 text spacing; E2E-RSS-30 found
 *     the host clipped at 320 CSS px).
 *   3.2.1 (2026-09-26) The phone origin chip and its host keep the 14 CSS px
 *   text floor of AUTH-063 (.875rem, was .75rem); the chip stays one compact
 *   line, the host shortened with an ellipsis.
 *   3.2.0 (2026-09-26) Toasts (owner rule 26 Sep 2026: a confirmation of an
 *   action the person just took is a toast, not an inline strip): one fixed
 *   region at the bottom right (on phones the bottom, full width with a 16
 *   px gutter); each toast a surface card with a 1 px hairline, the D9 3 px
 *   start rule and tone icon, the text in ink and a 44 px "Dismiss" button.
 *   No auto-dismiss (WCAG 2.2 SC 2.2.3); a CanvasText border under forced
 *   colours; hidden in print. New token --shadow-toast.
 *   3.1.1 (2026-09-26) 44 px controls everywhere (owner rule 26 Sep 2026,
 *   WCAG 2.2 SC 2.5.5): the native 16 px checkbox and radio keep their
 *   look, and each sits in a 44 px row whose label (the control's pointer
 *   target) is 44 px tall.
 *   3.1.0 (2026-09-25) Account-setup steps (owner decision 25 Sep 2026):
 *   the name question's option list (.idf-radio-list, .idf-radio-row, one
 *   option per line) and the "Enter a different name" fields
 *   (.idf-name-other), shown only while that option is chosen. No colour,
 *   font or size token changed.
 *   3.0.0 (2026-09-25) Eventfied visual alignment (owner request): layout
 *   and markup unchanged; the look follows Eventfied's recipient pages.
 *   Fonts: Inter for body text (--font-ui) and DM Sans for headings (the
 *   new --font-display), self-hosted as inter-latin-var.woff2 and
 *   dm-sans-latin-var.woff2; IBM Plex Mono stays for codes and references;
 *   Public Sans retired. Surfaces keep the owner's softened tones (room
 *   #EDF0F5, surface #F2F4F8, field #F9FAFC, hover #E9EDF3, line #C3CAD3).
 *   Colours (old to new): ink #19216C to Eventfied's #1F2933 (text only);
 *   the brand glyph and the organisation initials #19216C to Eventfied's
 *   primary-dark #2D3A8C (new --brand); focus #0A5186 and accent #4C63B6
 *   to Eventfied's primary #4055A8; link #0A5186 to #34468A (primary
 *   darkened 18 percent: #4055A8 is 5.96:1 on the room); button #19216C to
 *   #3E52A3 (primary darkened 3 percent: white on #4055A8 is 6.81:1) with
 *   hover #2D3A8C (primary-dark); ok #0D5944 to #0A5A4A (Eventfied success
 *   #0C6B58 darkened 16 percent, it is 5.64:1 on the room), err #8F1A20 to
 *   #990D1B (Eventfied danger #CF1124 darkened 26 percent, it is 4.62:1 on
 *   its tint), warn #7A4108 to #85390D (Eventfied warning #B44D12 darkened
 *   26 percent, it is 4.58:1 on the room); tints ok-bg #E6F6F0 to #EFFCF6,
 *   err-bg #FFF1F1 to #FFE3E3, warn-bg #FFF6E0 to #FFF3C4; err-line
 *   #D62828 to Eventfied's danger #CF1124; line-strong #616E7C to #7B8795
 *   (Eventfied's control border #CBD2D9 is 1.39:1 on the surface, so control
 *   outlines take the next Eventfied grey that clears 3:1 on every surface);
 *   new ink-strong #323F4B (badge text), info #0B69A3 (badge dot) and
 *   info-bg #E3F8FF. Corners: controls 6 px to 4 px. Eventfied's form
 *   scale (owner 2026-09-25): body text 14 CSS px on a 20 px line, the
 *   level-one heading 24 px and the level-two 18 px, labels 14 px 500 in
 *   ink-strong; inputs and buttons 48 px to 40 px high with 14 px text,
 *   buttons 500 with 16 px sides, flat (the button shadow token is
 *   retired); checkboxes and radios the native 16 px control in the
 *   accent colour, 8 px from the label (the custom 44 px boxes retired),
 *   radio options in one row; the card shadow is Eventfied's small card
 *   shadow; badges are Eventfied's status pills (dark text on the tone's
 *   tint, the tone in the dot).
 *   2.1.0 (2026-09-25) Softer light theme (owner feedback: the pages were
 *   too white): the room #F5F7FA to #EDF0F5, the surface (panel, card, app
 *   bar) #FFFFFF to #F7F8FB, surface-2 #F5F7FA to #EDF0F5, hover #EEF1F6 to
 *   #E9EDF3, the hairline #CBD2D9 to #C3CAD3, the glyph cut to the app bar's
 *   #F7F8FB; a new --field #FBFCFD for text fields, code slots and check
 *   boxes, and a new --qr-bg #FFFFFF for the QR code's ground only. Link
 *   and focus #0A558C to #0A5186 and ok #0E5C47 to #0D5944 so both keep
 *   7:1 on the darker room. Ink, the button navy and the accent unchanged.
 *   2.0.2 (2026-09-25) Crisp corners (owner rule): --r-control 10 px to 6
 *   px, --r-panel 16 px to 10 px, --r-row 12 px to 10 px, new --r-chip 4
 *   px; the password Show or Hide control on --r-control and the checkbox
 *   box on --r-chip instead of literals.
 *   2.0.1 (2026-09-25) The origin chip, its host and the badges at 14 CSS
 *   px (.875rem), up from 13 CSS px, to meet AUTH-063's text floor; the
 *   contrast notes below corrected to the measured ratios.
 *   2.0.0 (2026-09-25) IDfied visual system: Public Sans for everything and
 *   IBM Plex Mono only for codes and references (Fraunces and Instrument
 *   Sans retired); IDfied's colour tokens; the white app bar with the brand
 *   and a compact origin chip; phone first (below 560 CSS px no card, full
 *   width white content, 16 px gutters; from 560 CSS px a centred 28rem card
 *   with a hairline edge and a soft shadow); the password Show or Hide
 *   control inside the field's right edge; badges drawn as IDfied chips; the
 *   seal and its styles removed.
 *   1.0.0 Stub and Seal plain variant (IDP-D31).
 *
 * Contrast (WCAG 2.2 AAA, text 7:1, non-text 3:1), from 3.0.0:
 *   ink #1F2933 on surface #F2F4F8 13.40:1, on field #F9FAFC 14.13:1, on
 *   room #EDF0F5 12.92:1, on err-bg #FFE3E3 12.19:1
 *   ink-2 #3E4C59 on surface 8.00:1, on field 8.44:1, on room 7.71:1, on
 *   hover #E9EDF3 7.50:1, on err-bg 7.28:1
 *   ink-strong #323F4B (badge text and labels) on ok-bg #EFFCF6 10.23:1,
 *   warn-bg #FFF3C4 9.69:1, err-bg 8.90:1, info-bg #E3F8FF 9.82:1, hover
 *   9.17:1, surface 9.79:1
 *   link #34468A on surface 7.98:1, on room 7.69:1
 *   ok #0A5A4A on ok-bg 7.74:1, on room 7.14:1; warn #85390D on warn-bg
 *   7.29:1, on room 7.10:1; err #990D1B on surface 7.86:1, on room 7.57:1,
 *   on err-bg 7.15:1
 *   line-strong #7B8795 on surface 3.32:1, on field 3.50:1, on room 3.20:1,
 *   on hover 3.11:1 (control outlines); err-line #CF1124 on surface
 *   5.07:1, on room 4.89:1, on err-bg 4.62:1
 *   focus and accent #4055A8 on surface 6.19:1, on room 5.96:1, on hover
 *   5.80:1 (focus ring, current-page marker, checked controls)
 *   white on the button #3E52A3 7.14:1, on its hover and the brand
 *   #2D3A8C 10.02:1
 */
@font-face {
  font-family: "Inter";
  src: url("/auth-assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* 3.4.0: IDfied's heading face, for the sign-in pages' headings and brand name. */
@font-face {
  font-family: "Manrope";
  src: url("/auth-assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/auth-assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/auth-assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing: IDfied's 4 px steps. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --gutter: 16px;

  /* Radii and sizes (Eventfied visual alignment 2026-09-25): 4 px controls, chips and checkboxes,
     10 px panels, rows and lists; the pill only for status chips, dots and radio buttons. Inputs and
     buttons 40 px high, as Eventfied's form controls; links keep a 44 px target. */
  --r-chip: 4px;
  --r-control: 4px;
  --r-panel: 10px;
  --r-row: 10px;
  --r-pill: 999px;
  --size-target: 44px;
  --size-control: 44px;
  --size-card: 28rem;
  --size-rail: 240px;
  --size-shell: 1200px;

  /* Room and surfaces: the owner's softened tones (less white than Eventfied). Text: Eventfied's inks
     (ink, ink-body, ink-strong), for text only. Brand and accent: Eventfied's primary palette (primary
     #4055A8, primary-dark #2D3A8C, primary-bg #E0E8F9); status: Eventfied's success, warning, danger
     and info with their tints. Where an Eventfied colour carries text under 7:1 it is darkened just
     past 7:1 on the worst surface it sits on (see the contrast notes above). */
  --room: #EDF0F5;
  --surface: #F2F4F8;
  --surface-2: #EDF0F5;
  --field: #F9FAFC;
  --qr-bg: #FFFFFF;
  --hover: #E9EDF3;
  --ink: #1F2933;
  --ink-2: #3E4C59;
  --ink-strong: #323F4B;
  --line: #C3CAD3;
  --line-strong: #7B8795;
  --link: #34468A;
  --focus: #4055A8;
  --accent: #4055A8;
  --btn-bg: #3E52A3;
  --btn-ink: #FFFFFF;
  --btn-bg-hover: #2D3A8C;
  --brand: #2D3A8C;
  --ok: #0A5A4A;
  --ok-bg: #EFFCF6;
  --err: #990D1B;
  --err-line: #CF1124;
  --err-bg: #FFE3E3;
  --warn: #85390D;
  --warn-bg: #FFF3C4;
  --info: #0B69A3;
  --info-bg: #E3F8FF;
  --mark-cut: #F2F4F8;

  /* Shadow, declared here so no colour appears outside this block: Eventfied's small card shadow. */
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  /* The toast floats above the page, so its soft shadow is a step deeper than the card's. */
  --shadow-toast: 0 4px 12px -2px rgb(0 0 0 / .14), 0 2px 4px -2px rgb(0 0 0 / .1);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/*
 * D12: a 3 px solid outline at a 2 px gap on every control the person moves
 * to (WCAG 2.2 2.4.7, 2.4.13; AUTH-064), on `:focus-visible` only. A text
 * field matches `:focus-visible` whenever it has focus, so a field focused
 * by script or `autofocus` still shows it.
 */
:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px !important;
}
/*
 * Programmatic focus targets (the main landmark, a heading or a container
 * with tabindex="-1", focused by the skip link or after a submission) are not
 * controls and never show a ring (owner rule 2026-09-24).
 */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
main:focus,
main:focus-visible {
  outline: none !important;
}

/* DSN-013: a focused control is never hidden under other content. */
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* DSN-014, AUTH-068: every transition collapses under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Phone first: surface-toned content under the header; the grey room from 560 CSS px. */
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 560px) {
  body { background-color: var(--room); }
}

p { margin: 0 0 var(--s-4); max-width: 70ch; }
a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
a:hover { text-decoration-thickness: 2px; }
code {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
strong { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }

.idf-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: the first tab stop, shown when focused (IDfied's skip link). */
.idf-skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  padding: 0 16px;
  border-radius: var(--r-control);
  background-color: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  text-decoration: none;
}
/* Review 5 Oct 2026 (E2E RSS-02): shown in the page flow while focused, so it never covers the brand link beneath it
   (WCAG 2.2 SC 2.5.8 target spacing); it is the first thing on the page, so nothing moves under the pointer. */
.idf-skip:focus, .idf-skip:focus-visible { position: static; margin: 8px 16px 0; }

/* ---------------------------------------------------------------------------
 * Frame: IDfied's app bar across the window, then one column holding
 * the main panel and the footer line. No horizontal scroll at 320 CSS px.
 * ------------------------------------------------------------------------- */
/*
 * The app bar: a strip in the surface tone with a hairline below, its content on IDfied's
 * 1200 px shell with the same gutter, the brand on the left and the origin
 * chip on the right. One compact row on a phone, never a tall empty band.
 */
.idf-banner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  min-height: 60px;
  padding-block: var(--s-2);
  padding-inline: max(var(--gutter), calc((100% - var(--size-shell)) / 2 + var(--gutter)));
  background-color: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.idf-frame {
  width: 100%;
  max-width: calc(var(--size-card) + 32px);
  margin-inline: auto;
  padding: 0;
}
.idf-main {
  display: block;
  padding: 0;
}
/* Below 560 CSS px the panel is the page: no card, full width, 16 px gutters. */
.idf-panel {
  background-color: var(--surface);
  padding: var(--s-6) var(--s-4) var(--s-7);
}
.idf-panel > :last-child { margin-bottom: 0; }
.idf-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-5);
  margin: 0;
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.5;
}
.idf-footer-line { margin: 0; }
.idf-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
}
/* From 560 CSS px: a centred surface card, 28rem wide, in the grey room. */
@media (min-width: 560px) {
  .idf-frame { padding: 0 16px; }
  .idf-main { padding-block: clamp(24px, 7vh, 80px) 0; }
  .idf-panel {
    padding: var(--s-7);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    box-shadow: var(--shadow-card);
  }
  .idf-footer {
    margin: var(--s-6) 0 0;
    padding: 0 var(--s-1) var(--s-7);
    border-top: 0;
  }
}

/* The brand: IDfied's notched pass and the live text "IDfied" (AUTH-021, AUTH-063). */
.idf-wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: var(--size-target);
  font-family: var(--font-ui);
  font-size: 1.1875rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
/* Owner 2026-09-26: on the account pages the wordmark links to IDfied's home; it keeps the wordmark's look. */
.idf-wordmark-link {
  display: inline-flex;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.idf-glyph {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.idf-glyph-body { fill: currentColor; }
.idf-glyph-cut {
  fill: none;
  stroke: var(--mark-cut);
  stroke-width: 2;
  stroke-linecap: round;
}

/*
 * AUTH-033 origin chip, IDfied's chip: a small pill in the tone's colour on
 * its tint, the host in IBM Plex Mono, then "Encrypted" or "Not encrypted".
 * The shape carries the state as well as the words: a lock when served over
 * HTTPS, a diamond when not.
 */
.idf-origin {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 3px 10px 3px 8px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  background-color: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.25;
  font-weight: 500;
}
.idf-origin-host {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  color: inherit;
  overflow-wrap: anywhere;
}
.idf-origin-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}
.idf-origin-cue::before {
  content: "\00B7";
  content: "\00B7" / "";
  font-weight: 600;
}
/*
 * Owner 2026-09-26 ("idp mobile view is very poor"): on a phone the chip is one
 * compact line beside the wordmark, as a browser shows its address: the shape
 * (lock or diamond) and the host. A host that does not fit wraps onto a second
 * line, never shortened with an ellipsis (WCAG 2.2 SC 1.4.12: text spacing may
 * lose no content; E2E-RSS-30). The words "Encrypted" / "Not encrypted" stay for assistive
 * technology (the group's own label says both), hidden from view only.
 */
@media (max-width: 559.98px) {
  .idf-origin {
    flex-wrap: nowrap;
    min-height: 26px;
    padding: 2px 8px 2px 7px;
    font-size: .875rem;
  }
  .idf-origin-host {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .875rem;
  }
  .idf-origin-cue {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.idf-origin-secure {
  color: var(--ok);
  background-color: var(--ok-bg);
}
.idf-origin-plain {
  color: var(--warn);
  background-color: var(--warn-bg);
}
.idf-origin-plain::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-inline: 1px 2px;
  border-radius: 1px;
  background-color: currentColor;
  transform: rotate(45deg);
}
.idf-origin-lock {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 8px;
  margin-top: 4px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.idf-origin-lock::before {
  content: "";
  position: absolute;
  left: 0.5px;
  top: -6.5px;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* D3: "Continue to <product>" as one plain ink line, first in the panel. */
.idf-context {
  margin: 0 0 var(--s-4);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.idf-context strong { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------------------
 * Type: Inter for text, DM Sans for headings (700), as Eventfied.
 * ------------------------------------------------------------------------- */
.idf-h1 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 560px) {
  .idf-h1 { font-size: 1.5rem; }
}
.idf-h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.idf-helper { color: var(--ink-2); }
.idf-body { color: var(--ink); }
.idf-hint {
  margin: 0 0 var(--s-4);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.idf-label {
  display: block;
  margin: 0;
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 500;
  color: var(--ink-strong);
}

/* Step indicator (DSN-037): the text, then M decorative segments. */
.idf-step { margin: 0 0 var(--s-4); }
.idf-step-text {
  margin: 0 0 var(--s-2);
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
}
.idf-step-segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--s-1);
}
.idf-step-segment {
  height: 4px;
  border-radius: 2px;
  background-color: var(--line);
}
.idf-step-segment.is-done,
.idf-step-segment.is-current { background-color: var(--accent); }

/* ---------------------------------------------------------------------------
 * Forms and fields (AUTH-064): label, hint, message beside the field, control.
 * ------------------------------------------------------------------------- */
.idf-form {
  display: grid;
  gap: var(--s-5);
  margin: 0 0 var(--s-6);
}
.idf-form-secondary { margin-bottom: var(--s-3); }
.idf-form-inline {
  justify-items: start;
  margin: var(--s-3) 0 0;
}
.idf-field {
  display: grid;
  gap: var(--s-2);
  min-width: 0;
}
.idf-field .idf-hint { margin: 0; }
.idf-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* 40 px, 14 CSS px text, radius 4, a 1 px strong line, the accent edge while focused (Eventfied inputs). */
.idf-input {
  width: 100%;
  min-width: 0;
  height: var(--size-control);
  padding-block: 0;
  padding-inline: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background-color: var(--field);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .875rem;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-input:hover { border-color: var(--ink); }
.idf-input:focus { border-color: var(--accent); }
.idf-input:disabled {
  background-color: var(--surface-2);
  color: var(--ink-2);
  cursor: not-allowed;
}
/*
 * W-25: a read-only field (the invited address at sign-up) keeps the normal
 * ink, never a greyed-out colour, on a subtle grey ground that shows it is
 * not editable. Focus keeps the D12 ring; the field still posts with the form.
 */
.idf-input[readonly] {
  background-color: var(--surface-2);
  color: var(--ink);
  cursor: default;
}
/* A 2 px error edge and the error tint, padding reduced by 1 px so text does not shift. */
.idf-input[aria-invalid="true"],
.idf-field-error .idf-input {
  border: 2px solid var(--err-line);
  background-color: var(--err-bg);
  padding-inline: 11px;
}
.idf-select { padding-inline-end: 32px; }

/* D8: the message beside the field, in the error colour, with its icon. */
.idf-error-message {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0;
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 600;
  color: var(--err);
}
.idf-error-message .idf-icon { margin-top: 2px; color: var(--err); }

/*
 * D10: the password field with its Show or Hide control inside the field's
 * right edge, on phones and desktop. The control is a 44 px target; the
 * field keeps room for it only while the page script has revealed it.
 */
.idf-input-row {
  position: relative;
  display: block;
}
.idf-input-row:has(.idf-reveal:not([hidden])) .idf-input { padding-inline-end: 84px; }
.idf-input-row .idf-btn.idf-reveal {
  position: absolute;
  top: 0;
  right: 2px;
  width: auto;
  min-width: 72px;
  min-height: var(--size-control);
  height: var(--size-control);
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-control);
  background-color: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
/*
 * Owner 2026-09-26 ("ui bug"): hover and press keep the control a text link
 * inside the field. A filled hover drew a grey block over the field's edge
 * that stayed after a click, so the cue is the thicker underline only.
 */
.idf-input-row .idf-btn.idf-reveal:hover,
.idf-input-row .idf-btn.idf-reveal:active {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration-thickness: 2px;
}
.idf-field-row { margin: -8px 0 0; }
.idf-field-row a,
.idf-link-row a,
.idf-footline a,
.idf-link-list a,
.idf-dev-grid a,
.idf-breadcrumb a,
.idf-alert-action a,
.idf-linked-row a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  font-weight: 600;
}
.idf-link-row { margin: 0 0 var(--s-4); }
.idf-footline { margin: var(--s-6) 0 0; color: var(--ink); }
.idf-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.idf-rule-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: var(--s-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-pill);
}
.idf-rule-met .idf-rule-icon {
  background-color: var(--ok);
  border-color: var(--ok);
}

/* ---------------------------------------------------------------------------
 * D7 one code field, in IBM Plex Mono with generous letter spacing. Plain
 * field by default (no script, script failed or still loading, forced
 * colours); six slots in two groups of three once the page script marks the
 * field `is-enhanced`.
 * ------------------------------------------------------------------------- */
.idf-code {
  position: relative;
  max-width: 360px;
}
.idf-input-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .3em;
}
.idf-code-slots { display: none; }
.idf-code.is-enhanced .idf-code-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 10px repeat(3, minmax(0, 1fr));
  column-gap: 6px;
  pointer-events: none;
}
.idf-code.is-enhanced .idf-input-code {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border-color: transparent;
  background-color: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  letter-spacing: 0;
}
.idf-code-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background-color: var(--field);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.625rem;
  line-height: 1;
  font-weight: 500;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-code-slot.is-filled {
  border-color: var(--ink);
  background-color: var(--surface-2);
}
.idf-code.is-enhanced:hover .idf-code-slot { border-color: var(--ink); }
/*
 * Owner rule 2026-09-24: the focus ring is drawn on the active digit box only
 * (the next empty one, or the last when all six are filled), never around the
 * whole group. The real input lies over the group, so its own outline is
 * suppressed here and the D12 ring moves to that one slot.
 */
.idf-code.is-enhanced .idf-input-code:focus,
.idf-code.is-enhanced .idf-input-code:focus-visible { outline: none !important; }
.idf-code.is-enhanced:focus-within .idf-code-slot.is-active {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}
/* The next empty slot shows a static caret while the field has focus. */
.idf-code:focus-within .idf-code-slot.is-next::after {
  content: "";
  width: 2px;
  height: 26px;
  background-color: var(--ink);
}
.idf-code-rule {
  align-self: center;
  height: 2px;
  background-color: var(--line-strong);
}
.idf-input-code[aria-invalid="true"] ~ .idf-code-slots .idf-code-slot {
  border: 2px solid var(--err-line);
  background-color: var(--err-bg);
}
@media (max-width: 359.98px) {
  .idf-code.is-enhanced .idf-code-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr));
    column-gap: 4px;
  }
  .idf-code-slot { height: 48px; }
}

/* ---------------------------------------------------------------------------
 * Buttons (IDfied .btn, .btn-primary, .btn-secondary, Eventfied's Button):
 * 40 px, radius 4, Inter 500 at 14 CSS px, flat. Full width on the sign-in panel.
 * ------------------------------------------------------------------------- */
.idf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--size-control);
  min-width: var(--size-target);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--font-ui);
  font-size: .875rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-btn:hover { text-decoration: none; }
.idf-btn-primary {
  background-color: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: none;
}
.idf-btn-primary:hover {
  background-color: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-ink);
}
.idf-btn-secondary {
  background-color: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.idf-btn-secondary:hover {
  background-color: var(--hover);
  border-color: var(--ink);
  color: var(--ink);
}
.idf-btn-danger {
  background-color: var(--surface);
  border-color: var(--err-line);
  color: var(--err);
}
.idf-btn-danger:hover { background-color: var(--err-bg); color: var(--err); }
.idf-btn:disabled,
.idf-btn[aria-disabled="true"] {
  background-color: var(--hover);
  border-color: var(--line-strong);
  box-shadow: none;
  color: var(--ink-2);
  cursor: not-allowed;
}
/* DESIGN 4.7 text link button: IDfied's quiet link, a 44 px target. */
.idf-btn-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--link);
  font-family: var(--font-ui);
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: pointer;
}
.idf-btn-link:hover { text-decoration-thickness: 2px; }
.idf-actions { margin: 0 0 var(--s-4); }

/* Upstream controls: outlined, the provider's 20 px mark at the start. */
.idf-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: none;
  margin: var(--s-6) 0 var(--s-4);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.idf-divider::before,
.idf-divider::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid var(--line);
}
.idf-upstream-list {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}
.idf-btn-upstream { gap: var(--s-3); }
.idf-upstream-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

/*
 * Checkbox and radio (DSN-057, Eventfied's RadioGroup, owner 2026-09-25): the native 16 px control in
 * the accent colour, 8 px from its label. The control and its label together are the target, at least
 * 24 CSS px high (WCAG 2.2 SC 2.5.8). Consecutive radio options sit in one row that wraps, 12 px apart.
 * The D12 focus outline goes round the control, at its 2 px gap.
 */
.idf-check,
.idf-field.idf-check,
.idf-field.idf-checkbox,
.idf-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
}
.idf-radio { margin-inline-end: var(--s-3); }
input.idf-checkbox,
.idf-checkbox-input,
.idf-radio-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input.idf-checkbox[aria-invalid="true"],
.idf-checkbox-input[aria-invalid="true"],
.idf-radio-input[aria-invalid="true"] {
  outline: 2px solid var(--err-line);
  outline-offset: 2px;
}
/*
 * Owner decision (25 Sep 2026): the name question lists its options one per
 * line (each name is a full sentence), and the two fields of "Enter a
 * different name" show only once that option is chosen. Without `:has()` the
 * fields simply always show.
 */
.idf-radio-list {
  display: grid;
  gap: var(--s-2);
}
.idf-radio-row { display: block; }
.idf-name-choice:has(#name-choice-other:not(:checked)) .idf-name-other { display: none; }
.idf-name-other {
  display: grid;
  gap: var(--s-5);
}
.idf-check .idf-label,
.idf-checkbox-label,
.idf-radio-label {
  /* 3.1.1: the label is the checkbox's or radio's pointer target (a click on it sets the control), 44 px tall. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 2px 0;
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 400;
  color: var(--ink-2);
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * D9 message strips (IDfied .notice): a 3 px start rule, the tone icon, no fill.
 * ------------------------------------------------------------------------- */
.idf-message {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
  padding: var(--s-3) 0 var(--s-3) var(--s-4);
  border-inline-start: 3px solid var(--link);
  color: var(--ink);
}
.idf-message-body { min-width: 0; }
.idf-message p { margin: 0 0 var(--s-2); }
.idf-message p:last-child { margin-bottom: 0; }
.idf-message-title {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}
.idf-message .idf-icon { margin-top: 2px; }
.idf-message-info { border-inline-start-color: var(--link); }
.idf-message-info .idf-icon { color: var(--link); }
.idf-message-success { border-inline-start-color: var(--ok); }
.idf-message-success .idf-icon,
.idf-message-success .idf-message-title { color: var(--ok); }
.idf-message-warning { border-inline-start-color: var(--warn); }
.idf-message-warning .idf-icon,
.idf-message-warning .idf-message-title { color: var(--warn); }
.idf-message-danger { border-inline-start-color: var(--err-line); }
.idf-message-danger .idf-icon,
.idf-message-danger .idf-message-title { color: var(--err); }

/* Tone icons: 20 px inline svg, drawn in the tone's colour, shape differs by tone. */
.idf-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------------------
 * Toasts (3.2.0, owner 2026-09-26): only the confirmation of an action the
 * person just took. One fixed region above the content, at the bottom right
 * from 560 CSS px and across the bottom on a phone (16 px gutter). Each toast
 * is a surface card with the D9 start rule and tone icon, the text in ink
 * and a 44 px "Dismiss" button. It never takes focus and stays until closed
 * (WCAG 2.2 SC 2.2.3). Errors, warnings and a page's main message stay inline.
 * ------------------------------------------------------------------------- */
.idf-toasts {
  position: fixed;
  inset-inline: var(--s-4);
  bottom: var(--s-4);
  z-index: 20;
  display: grid;
  gap: var(--s-2);
  pointer-events: none;
}
@media (min-width: 560px) {
  .idf-toasts {
    inset-inline: auto var(--s-6);
    bottom: var(--s-6);
    width: min(24rem, calc(100% - 2 * var(--s-6)));
  }
}
.idf-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--link);
  border-radius: var(--r-control);
  background-color: var(--surface);
  box-shadow: var(--shadow-toast);
  color: var(--ink);
  pointer-events: auto;
}
/* The icon and the text line up with the middle of the 44 px close button. */
.idf-toast > .idf-icon { margin-top: 10px; }
.idf-toast-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 10px 0;
  font-size: .875rem;
  line-height: 1.43;
  color: var(--ink);
}
.idf-toast-info { border-inline-start-color: var(--link); }
.idf-toast-info > .idf-icon { color: var(--link); }
.idf-toast-success { border-inline-start-color: var(--ok); }
.idf-toast-success > .idf-icon { color: var(--ok); }
.idf-toast-close {
  flex: 0 0 var(--size-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-target);
  height: var(--size-target);
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background-color: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-toast-close:hover { background-color: var(--hover); border-color: var(--line-strong); }
/*
 * WCAG 2.2 SC 2.4.12: while a toast shows, focus moved near the bottom of the
 * page is scrolled clear of it, and the page can scroll past it at the end.
 */
html:has(.idf-toast) { scroll-padding-bottom: 8rem; }
body:has(.idf-toast) { padding-bottom: 8rem; }
@keyframes idf-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .idf-toast { animation: idf-toast-in 180ms ease-out both; }
}
@media print {
  .idf-toasts { display: none !important; }
  body:has(.idf-toast) { padding-bottom: 0; }
  .idf-portal-recovery-codes .ui-header, .idf-portal-recovery-codes .ui-subnav, .idf-portal-recovery-codes .ui-footer { display: none; }
}

/* DSN-026 advisory: a warning strip below the panel (no page renders it today). */
.idf-message.idf-advisory { margin: var(--s-6) 0 0; }
.idf-advisory .idf-message-title { color: var(--ink); }
.idf-host {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/*
 * DSN-018 error summary, forms with more than one field only: a quiet strip
 * with a 3 px error start rule like the D9 message strips; no box, and its
 * heading (a programmatic focus target) is never outlined or boxed.
 */
.idf-error-summary {
  margin: 0 0 var(--s-6);
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  border-inline-start: 3px solid var(--err-line);
}
.idf-error-summary-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--err);
}
.idf-error-summary-title .idf-icon { color: var(--err); }
.idf-error-list {
  margin: 0;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.5;
}
.idf-error-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  color: var(--err);
  font-weight: 600;
}

/* Empty states: a quiet box, text in words (IDfied .b-empty). */
.idf-empty {
  margin: 0 0 var(--s-6);
  padding: 14px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  color: var(--ink-2);
}
.idf-empty p { margin: 0; }
.idf-empty-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: var(--s-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-pill);
}

/* ---------------------------------------------------------------------------
 * Choice cards (organisation chooser) and link rows (portal tiles and
 * product rows): outlined, text only, a chevron; no product mark.
 * ------------------------------------------------------------------------- */
.idf-org-list,
.idf-product-grid ul,
.idf-product-list,
.idf-tile-grid,
.idf-dev-grid ul {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.idf-org-card,
.idf-product-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .875rem;
  line-height: 1.43;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-org-card:hover,
.idf-product-tile:hover {
  background-color: var(--hover);
  border-color: var(--ink);
}
.idf-org-initials {
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-control);
  background-color: var(--brand);
  color: var(--btn-ink);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.idf-org-copy,
.idf-product-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}
.idf-org-copy strong,
.idf-product-name,
.idf-tile-title {
  font-size: .875rem;
  line-height: 1.43;
  font-weight: 600;
  color: var(--ink);
}
.idf-org-role,
.idf-product-meta,
.idf-tile-status {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.idf-org-arrow,
.idf-product-tile::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-inline-end: var(--s-1);
  border-top: 2px solid var(--ink-2);
  border-right: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.idf-signed-in-as { color: var(--ink); }

/* Authenticator setup */
.idf-steps-list {
  margin: 0 0 var(--s-4);
  padding-left: 20px;
  color: var(--ink);
}
.idf-qr-setup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: flex-start;
  margin: 0 0 var(--s-4);
}
.idf-qr-setup .idf-label { margin: 0 0 var(--s-1); }
.idf-qr-setup .idf-hint { margin: 0 0 var(--s-2); }
.idf-qr {
  width: 176px;
  height: 176px;
  padding: var(--s-2);
  background-color: var(--qr-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
}
.idf-manual-code { margin: 0; }
.idf-manual-code code {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .08em;
  user-select: all;
}

/* Linked accounts (SCR-ACC-07) */
.idf-linked-list {
  display: grid;
  gap: 0;
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.idf-linked-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  min-height: var(--size-target);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.idf-linked-row > a,
.idf-linked-row .idf-linked-action { margin-left: auto; }
.idf-linked-row .idf-btn { width: auto; }
.idf-linked-hint,
.idf-linked-date { color: var(--ink-2); }

/* Request reference and misc. */
.idf-request-reference code { overflow-wrap: anywhere; letter-spacing: .02em; }
.idf-notice-text { margin: 0 0 var(--s-4); }

/* ---------------------------------------------------------------------------
 * ACP-031 account portal: the same app bar with "Sign out", the
 * "Account" navigation, one main panel (no card on a phone, a card from
 * 560 CSS px) and the footer line. The wider grid of ACP-005.
 * ------------------------------------------------------------------------- */
.idf-portal-banner {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.idf-portal-banner .idf-origin { margin-inline-start: auto; }
.idf-portal-signout-form { margin: 0; }
.idf-btn.idf-portal-signout {
  width: auto;
  min-height: var(--size-target);
  padding: 0 14px;
  font-size: .875rem;
}
.idf-portal .idf-btn {
  width: auto;
  min-width: var(--size-target);
}
.idf-portal .idf-form > .idf-btn { justify-self: start; }
.idf-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: var(--size-shell);
  margin: 0 auto;
  padding: 0;
}
.idf-portal-main {
  min-width: 0;
  padding: var(--s-6) var(--s-4) var(--s-7);
  background-color: var(--surface);
}
.idf-portal-main > :last-child { margin-bottom: 0; }
.idf-portal-footer {
  max-width: var(--size-shell);
  margin: 0 auto;
}
/* Below 560 CSS px: the brand and "Sign out" on one row, the chip compact on the right below them. */
@media (max-width: 559.98px) {
  .idf-portal-banner { row-gap: 0; }
  .idf-portal-banner .idf-origin { order: 3; }
  .idf-portal-banner .idf-portal-signout-form { margin-inline-start: auto; }
  .idf-portal .idf-form > .idf-btn-primary,
  .idf-portal .idf-actions > .idf-btn-primary {
    justify-self: stretch;
    width: 100%;
  }
}
@media (min-width: 560px) {
  .idf-portal-grid {
    gap: var(--s-4);
    padding: var(--s-4) var(--gutter) 0;
  }
  .idf-portal-main {
    padding: var(--s-7);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    box-shadow: var(--shadow-card);
  }
  .idf-portal-footer {
    margin-top: var(--s-6);
    padding: 0 var(--gutter) var(--s-7);
  }
}
@media (min-width: 768px) {
  .idf-portal-grid {
    grid-template-columns: var(--size-rail) minmax(0, 1fr);
    gap: var(--s-7);
  }
}

/* The "Account" navigation: a wrapping row above the panel, a rail from 768 px. */
.idf-portal-rail ul,
.idf-breadcrumb ol,
.idf-link-list,
.idf-pagination ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.idf-portal-rail { padding: var(--s-2) var(--s-2) 0; border-bottom: 1px solid var(--line); background-color: var(--surface); }
.idf-portal-rail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--s-1);
}
.idf-rail-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--size-target);
  padding: 0 var(--s-3);
  border-radius: var(--r-control);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-rail-link:hover { background-color: var(--hover); color: var(--ink); }
.idf-rail-link[aria-current] { color: var(--ink); }
/* IDfied's current-page marker: a 3 px accent bar under the words. */
.idf-rail-link[aria-current]::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--accent);
}
@media (min-width: 560px) {
  .idf-portal-rail { padding: 0; border-bottom: 0; background-color: transparent; }
}
@media (min-width: 768px) {
  .idf-portal-rail ul {
    display: grid;
    gap: var(--s-1);
  }
  .idf-rail-link[aria-current] { background-color: var(--surface); }
  .idf-rail-link[aria-current]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
  }
}
.idf-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-2);
  margin-bottom: var(--s-4);
  font-size: .875rem;
  color: var(--ink-2);
}
.idf-breadcrumb li + li::before {
  content: "/";
  margin-right: var(--s-2);
}
.idf-tile-grid {
  grid-template-columns: minmax(0, 1fr);
  margin: var(--s-6) 0;
}
@media (min-width: 768px) {
  .idf-tile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.idf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-height: 72px;
  padding: var(--s-4) 48px var(--s-4) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background-color: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.idf-tile::after {
  content: "";
  position: absolute;
  top: 26px;
  inset-inline-end: 22px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink-2);
  border-right: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.idf-tile:hover {
  background-color: var(--hover);
  border-color: var(--ink);
}
.idf-tile:hover .idf-tile-title { text-decoration: underline; }
.idf-tile .idf-badge {
  align-self: flex-start;
  margin-top: var(--s-1);
}
.idf-portal-section { margin: var(--s-7) 0 0; }
.idf-link-list {
  display: grid;
  gap: var(--s-1);
}

/*
 * Badges drawn as Eventfied's status pills: dark ink-strong text on the tone's tint, the tone in the
 * dot, no drawn edge (a transparent one, so forced colours still outline the pill). The dot's shape
 * carries the state as well as the word.
 */
.idf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 2px 10px 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background-color: var(--hover);
  color: var(--ink-strong);
  font-size: .875rem;
  line-height: 1.2;
  font-weight: 500;
  white-space: normal;
  text-align: start;
}
.idf-badge::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}
.idf-badge-neutral { color: var(--ink-strong); background-color: var(--hover); }
.idf-badge-neutral::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.idf-badge-success { color: var(--ink-strong); background-color: var(--ok-bg); }
.idf-badge-success::before { background-color: var(--ok); }
.idf-badge-warning { color: var(--ink-strong); background-color: var(--warn-bg); }
.idf-badge-warning::before {
  flex-basis: 8px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background-color: var(--warn);
  transform: rotate(45deg);
}
.idf-badge-danger { color: var(--ink-strong); background-color: var(--err-bg); }
.idf-badge-danger::before { border-radius: 2px; background-color: var(--err-line); }
.idf-badge-info { color: var(--ink-strong); background-color: var(--info-bg); }
.idf-badge-info::before { background-color: var(--info); }

/* The sign-in history table; labelled rows below 720 px (ACP-032). */
.idf-table-wrap { overflow-x: auto; }
.idf-table {
  width: 100%;
  border-collapse: collapse;
}
.idf-table caption {
  padding: var(--s-2) 0;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.idf-table th,
.idf-table td {
  padding: var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.idf-table tbody th time { font-family: var(--font-mono); font-size: .875rem; }
.idf-table thead th {
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom-color: var(--line-strong);
}
@media (max-width: 719.98px) {
  .idf-table,
  .idf-table tbody,
  .idf-table tr,
  .idf-table th,
  .idf-table td { display: block; }
  .idf-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .idf-table tbody tr {
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--line);
  }
  .idf-table tbody th,
  .idf-table tbody td {
    display: grid;
    grid-template-columns: minmax(6rem, 30%) minmax(0, 1fr);
    gap: var(--s-2);
    padding: var(--s-1) 0;
    border-bottom: 0;
  }
  .idf-table tbody [data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-2);
  }
}
.idf-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}
.idf-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  padding: 0 var(--s-2);
  font-weight: 600;
}
.idf-pagination a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * AUTH-068 forced colours: every boundary kept in system colours, the focus
 * in Highlight, the code field plain, decorative drawings hidden.
 * ------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .idf-banner,
  .idf-panel,
  .idf-portal-main,
  .idf-error-summary,
  .idf-origin,
  .idf-badge,
  .idf-empty,
  .idf-table th,
  .idf-table td { border-color: CanvasText; }
  .idf-panel,
  .idf-portal-main { border: 1px solid CanvasText; }
  .idf-message,
  .idf-toast {
    border: 1px solid CanvasText;
    border-inline-start-width: 3px;
  }
  .idf-toast-close { border-color: ButtonBorder; }
  .idf-input,
  .idf-btn,
  .idf-org-card,
  .idf-product-tile,
  .idf-tile { border-color: ButtonBorder; }
  .idf-input-row .idf-btn.idf-reveal { border: 1px solid ButtonBorder; }
  :focus-visible { outline-color: Highlight !important; }
  /* The code field is one plain input here, so it keeps its own ring. */
  .idf-code.is-enhanced .idf-input-code:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
  .idf-rail-link[aria-current] { text-decoration: underline; }
  .idf-rail-link[aria-current]::after { background-color: Highlight; }
  .idf-step-segments { display: none; }
  .idf-code-slots,
  .idf-code.is-enhanced .idf-code-slots { display: none !important; }
  .idf-code.is-enhanced .idf-input-code {
    position: static;
    height: var(--size-control);
    padding: 0 12px;
    border-color: ButtonBorder;
    background-color: Field;
    color: FieldText;
    -webkit-text-fill-color: FieldText;
    caret-color: FieldText;
    letter-spacing: .3em;
  }
  .idf-glyph,
  .idf-badge::before,
  .idf-origin-plain::before { forced-color-adjust: none; }
  .idf-glyph { color: CanvasText; }
  .idf-glyph-cut { stroke: Canvas; }
  /*
   * AUTH-064, AUTH-068: the wordmark text and the security chip text take the
   * system text colour on the system background in every forced palette, and
   * never inherit an opt-out from a drawing beside them.
   */
  .idf-wordmark,
  .idf-wordmark-text,
  .idf-origin,
  .idf-origin-host,
  .idf-origin-cue {
    forced-color-adjust: auto;
    background-color: Canvas;
    color: CanvasText;
  }
  .idf-badge::before,
  .idf-origin-plain::before { background-color: CanvasText; box-shadow: none; }
  .idf-org-initials { border: 1px solid CanvasText; }
  /* The checkbox and radio are native controls (3.0.0), drawn in system colours by the browser. */
}

/*
 * Owner 2026-09-25: a field the browser autofilled keeps the field colour
 * instead of the browser's bright yellow; a faint tint still shows it was
 * filled. :autofill (Firefox, Safari) and :-webkit-autofill (Chromium).
 */
input:autofill,
input:-webkit-autofill {
  background-color: var(--field) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important;
  box-shadow: 0 0 0 1000px var(--field) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  filter: none;
}

/* Owner 2026-09-25: a status badge never wraps inside its pill. */
.idf-badge { white-space: nowrap; flex-shrink: 0; }

/* Phone widths (owner decision 2026-09-25, AUTH-064): fields keep Eventfied's
   look but grow to 44 px with 16 px text, so every target meets 44 px and
   mobile Safari does not zoom the page when a field takes focus. */
@media (max-width: 600px) {
  .idf-input { height: var(--size-target); font-size: 1rem; }
  .idf-btn, .idf-input-row .idf-btn.idf-reveal { min-height: var(--size-target); }
  select, textarea { font-size: 1rem; }
}

/* ---------------------------------------------------------------------------
 * Recipient account security portal pages (recipient account security spec
 * v1.0.0, RAS-019, RAS-027, RAS-031; added 2026-09-26, recorded here rather
 * than in the header changelog). The recovery codes are an ordered list in
 * the monospace face, one code per item, readable and selectable as text with
 * no script. Each signed-in device is one bordered row with its lines as
 * text; "This device" is a badge with a word, never colour alone. Only
 * existing tokens are used, so the forced-colours and dark-set rules hold.
 * ------------------------------------------------------------------------- */
.idf-recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-4) + 2ch);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background-color: var(--surface);
  list-style: decimal;
}
.idf-recovery-codes li { padding-inline-start: var(--s-1); }
.idf-recovery-codes code {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .05em;
  color: var(--ink);
  user-select: all;
}
.idf-device-list {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.idf-device {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background-color: var(--surface);
}
.idf-device-current { border-color: var(--line-strong); }
.idf-device-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
}
.idf-device-lines {
  display: grid;
  gap: var(--s-1);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.idf-device .idf-form { margin: 0; }
@media (forced-colors: active) {
  .idf-recovery-codes,
  .idf-device { border-color: CanvasText; }
}

/* ===========================================================================
 * 3.3.0 (2026-09-27) The account pages in IDfied's look (owner: "the ui is
 * still completely off, and have the sub nav like we have in idfied instead
 * of sidebar"). Everything here is scoped to body.idf-portal, the portal
 * layout's body class, so the sign-in pages keep the rules above unchanged.
 * 3.4.0: the scope is now body:is(.idf-portal, .idf-auth), the account and the
 * sign-in layouts' body classes, at the same specificity, so both read this
 * one copy of IDfied's tokens and ui- rules; the sign-in pages' own rules are
 * in the 3.4.0 block after this one.
 *
 * Source: idfied/src/app/globals.css 4.0.0 (the section 3.1 tokens, .ui-shell,
 * .ui-frame, .ui-header, .ui-brand, .ui-subnav, .ui-page-head, .ui-back,
 * .ui-card, .ui-panel, .ui-section, .btn, .btn-secondary, .ui-footer) and
 * account-security.module.css 2.0.0 (.srow, .device), the approved screens
 * mockup 1.1.0. The ui- names are IDfied's, so the markup reads the same in
 * both products. Fonts: IDfied sets Manrope for headings; no Manrope file is
 * self-hosted here yet, so headings take Inter at IDfied's weights and sizes;
 * codes take the system monospace stack, as IDfied's do. No animation.
 *
 * Contrast (WCAG 2.2 AAA, text 7:1, non-text 3:1), IDfied's measures:
 *   text #1F2933 on white about 14.5:1, on the page #F5F7FA about 13.6:1
 *   muted #3E4C59 on white 8.9:1, on the page 8.2:1
 *   action #2D3A8C on white about 10:1, on the tint #E0E8F9 8.2:1; white on
 *   action about 10:1, on hover #19216C and pressed #141A56 above 12:1
 *   danger #8F3300 on white 7:1 or more; white on it about 7.9:1
 *   ring #4055A8 on white 6.8:1 (a ring and a bar, never text)
 *   control edge #7B8794 on white and the page 3.4:1 or more
 *   the status badges keep this file's tints and ink-strong text (8.9:1 or more)
 * ========================================================================= */
/* The account pages' root paints IDfied's page grey from the first frame, so a jump between IDfied and these pages
   never shows a white page before the body's own background (owner, 27 Sep 2026: a flash between the tabs).
   3.4.0: the sign-in pages' root (html.idf-auth-root) does the same. */
html:is(.idf-portal-root, .idf-auth-root) { background: #F5F7FA; }

body:is(.idf-portal, .idf-auth) {
  /* IDfied's colour tokens (globals.css section 3.1), byte for byte. */
  --blue-500: #4055A8;
  --blue-700: #2D3A8C;
  --blue-900: #19216C;
  --blue-950: #141A56;
  --blue-100: #E0E8F9;
  --blue-200: #BED0F7;
  --sky-300: #62B0E8;
  --danger-text: #8F3300;
  --danger-pressed: #6B2600;
  --row-hover: #FAFBFC;
  --grey-050: #F5F7FA;
  --grey-100: #E4E7EB;
  --grey-200: #CBD2D9;
  --grey-400: #7B8794;
  --grey-600: #3E4C59;
  --grey-800: #323F4B;
  --grey-900: #1F2933;
  --white: #FFFFFF;

  --page: var(--grey-050);
  --text: var(--grey-900);
  --muted: var(--grey-600);
  --divider: var(--grey-200);
  --control-edge: var(--grey-400);
  --action: var(--blue-700);
  --action-hover: var(--blue-900);
  --action-pressed: var(--blue-950);
  --ring: var(--blue-500);
  --tint: var(--blue-100);

  /* IDfied's radius, shadow and gutter tokens (sections 3.3 to 3.5). */
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgb(31 41 51 / .06), 0 1px 1px rgb(31 41 51 / .04);
  --gutter: clamp(16px, 3vw, 32px);

  /* This file's token names, pointed at IDfied's for the portal, so every idf- part above follows. The
     control outline token keeps its meaning here (IDfied's control edge, 3:1 or more); the badge tints
     (--ok-bg, --warn-bg, --err-bg, --info-bg) and status inks stay as declared in :root. */
  --font-display: var(--font-ui);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --room: var(--page);
  --surface: var(--white);
  --surface-2: var(--grey-050);
  --field: var(--white);
  --hover: var(--grey-050);
  --ink: var(--text);
  --ink-2: var(--muted);
  --ink-strong: var(--grey-800);
  --line: var(--grey-100);
  --line-strong: var(--control-edge);
  --link: var(--action);
  --focus: var(--ring);
  --accent: var(--ring);
  --btn-bg: var(--action);
  --btn-bg-hover: var(--action-hover);
  --brand: var(--action);
  --mark-cut: var(--white);
  --r-control: var(--radius-s);
  --r-panel: var(--radius);
  --r-row: var(--radius);
  --shadow-card: var(--shadow);

  background-color: var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
}

/* Tabular figures for references, counts and times; never a monospace face. */
body:is(.idf-portal, .idf-auth) .ui-tnum { font-variant-numeric: tabular-nums; }

/* ---------- Shell: the gutter and the 1080 px frame hold the header, main and footer ----------
   3.4.0 (owner, 27 Sep 2026: "shouldnt footer always stay at bottom"): the shell and the frame are flex columns
   at least the window's height and the main area grows, so on a short page the footer sits at the window's foot;
   a long page scrolls as before. */
body:is(.idf-portal, .idf-auth) .ui-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  padding-block: 8px 48px;
}
body:is(.idf-portal, .idf-auth) .ui-frame {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  min-width: 0;
}
body:is(.idf-portal, .idf-auth) .ui-main {
  display: block;
  flex: 1 0 auto;
  min-width: 0;
}
/* The Me pages' reading column: 760 px from 960 px, as IDfied's account.module.css .column. */
body:is(.idf-portal, .idf-auth) .ui-column { min-width: 0; }
body:is(.idf-portal, .idf-auth) .ui-column > :last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  body:is(.idf-portal, .idf-auth) .ui-column { max-width: 760px; }
}

/* ---------- Header: the brand on the left; the origin chip and "Sign out" on the right ---------- */
body:is(.idf-portal, .idf-auth) .ui-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 4px 8px;
}
body:is(.idf-portal, .idf-auth) .ui-header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  min-width: 0;
  margin-inline-start: auto;
}
body:is(.idf-portal, .idf-auth) .ui-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--size-target);
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
}
body:is(.idf-portal, .idf-auth) .ui-brand:hover { color: var(--text); }
/* Owner, 3 and 5 Oct 2026: the brand as a link to IDfied, a 44 px target that keeps the brand's look. */
body:is(.idf-portal, .idf-auth) .ui-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
}
body:is(.idf-portal, .idf-auth) .ui-brand-link:hover { color: var(--text); }
body:is(.idf-portal, .idf-auth) .ui-brand-glyph {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}
body:is(.idf-portal, .idf-auth) .ui-brand-tile { fill: var(--action); }
body:is(.idf-portal, .idf-auth) .ui-brand-bar { fill: var(--white); }
body:is(.idf-portal, .idf-auth) .ui-brand-dot { fill: var(--sky-300); }
body:is(.idf-portal, .idf-auth) .ui-brand-name {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- Tabs (IDfied's Me sub-navigation): one row of 44 px links over a divider ----------
   3.4.1: where the row does not fit (320 CSS px), the tabs wrap onto a second line, so every tab is whole and
   nothing scrolls sideways (WCAG 2.2 SC 1.4.10). The wrapped lines touch; a wide window keeps the one row. */
body:is(.idf-portal, .idf-auth) .ui-subnav {
  margin-bottom: 4px;
  overflow-x: auto;
}
body:is(.idf-portal, .idf-auth) .ui-subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--divider);
}
body:is(.idf-portal, .idf-auth) .ui-subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  padding: 0 8px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
body:is(.idf-portal, .idf-auth) .ui-subnav a:hover { color: var(--text); }
body:is(.idf-portal, .idf-auth) .ui-subnav a[aria-current] { color: var(--action); }
/* The current tab is shown by shape as well as colour: a 3 px ring-blue bar at its foot. */
body:is(.idf-portal, .idf-auth) .ui-subnav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--ring);
}
/* The row scrolls inside itself, so the ring is drawn inside the link and never clipped. */
body:is(.idf-portal, .idf-auth) .ui-subnav a:focus-visible { outline-offset: -3px !important; }

/* ---------- Page head: the back link, the one level-one heading and the lede ---------- */
body:is(.idf-portal, .idf-auth) .ui-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--size-target);
  margin: 12px 0 0 -4px;
  padding-right: 8px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
body:is(.idf-portal, .idf-auth) .ui-back:hover { text-decoration: underline; }
body:is(.idf-portal, .idf-auth) .ui-back-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
body:is(.idf-portal, .idf-auth) .idf-h1 {
  margin: 12px 0 20px;
  font-family: var(--font-ui);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
@media (min-width: 960px) {
  body:is(.idf-portal, .idf-auth) .idf-h1 { font-size: 2rem; }
}
body:is(.idf-portal, .idf-auth) .ui-back + .idf-h1 { margin-top: 6px; }
body:is(.idf-portal, .idf-auth) .idf-h1:has(+ .idf-helper) { margin-bottom: 6px; }
body:is(.idf-portal, .idf-auth) .idf-helper {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--muted);
}
body:is(.idf-portal, .idf-auth) .idf-h2 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
body:is(.idf-portal, .idf-auth) .idf-body { color: var(--text); }

/* ---------- Cards, panels and sections ---------- */
body:is(.idf-portal, .idf-auth) .ui-card,
body:is(.idf-portal, .idf-auth) .ui-panel,
body:is(.idf-portal, .idf-auth) .ui-section { margin: 0 0 24px; }
body:is(.idf-portal, .idf-auth) .ui-card {
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body:is(.idf-portal, .idf-auth) ul.ui-card {
  padding: 0;
  list-style: none;
}
body:is(.idf-portal, .idf-auth) .ui-card.is-pad { padding: 20px; }
body:is(.idf-portal, .idf-auth) .ui-card.is-pad > :last-child { margin-bottom: 0; }
body:is(.idf-portal, .idf-auth) .ui-card-rows > * + * { border-top: 1px solid var(--line); }
body:is(.idf-portal, .idf-auth) .ui-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}
body:is(.idf-portal, .idf-auth) .ui-section > * { margin: 0; }
/* Buttons on one wrapping row; they stack at full width on the narrowest phones. */
body:is(.idf-portal, .idf-auth) .ui-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
body:is(.idf-portal, .idf-auth) .idf-form > .ui-btn-row { margin: 0; }
@media (max-width: 479.98px) {
  body:is(.idf-portal, .idf-auth) .ui-btn-row { align-items: stretch; flex-direction: column; }
  body:is(.idf-portal, .idf-auth) .ui-btn-row > .idf-btn,
  body:is(.idf-portal, .idf-auth) .ui-btn-row > li > .idf-btn { width: 100%; }
}
body:is(.idf-portal, .idf-auth) .ui-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body:is(.idf-portal, .idf-auth) .ui-panel > * { margin: 0; }

/* A row (the approved .srow): the label, the value lines, one action on the right. */
body:is(.idf-portal, .idf-auth) .ui-srow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 20px;
}
body:is(.idf-portal, .idf-auth) .ui-srow-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body:is(.idf-portal, .idf-auth) .ui-srow-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text);
  overflow-wrap: anywhere;
}
body:is(.idf-portal, .idf-auth) .ui-srow-value {
  max-width: none;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
body:is(.idf-portal, .idf-auth) .ui-srow-action { margin: 0; }
body:is(.idf-portal, .idf-auth) .ui-srow-action .idf-form { margin: 0; }

/* A device or sign-in row (the approved .device): the 24 px icon, the name and its lines, the action. */
body:is(.idf-portal, .idf-auth) .ui-device {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}
body:is(.idf-portal, .idf-auth) .ui-device-icon {
  width: 24px;
  height: 24px;
  color: var(--muted);
}
body:is(.idf-portal, .idf-auth) .ui-device-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
body:is(.idf-portal, .idf-auth) .ui-device-lines {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
}
/* Below 480 px the action drops under the text: under the name beside the icon column on a device row. */
@media (max-width: 479.98px) {
  body:is(.idf-portal, .idf-auth) .ui-srow { grid-template-columns: minmax(0, 1fr); }
  body:is(.idf-portal, .idf-auth) .ui-srow > .ui-srow-action { justify-self: start; }
  body:is(.idf-portal, .idf-auth) .ui-device { grid-template-columns: 24px minmax(0, 1fr); }
  body:is(.idf-portal, .idf-auth) .ui-device > .ui-srow-action {
    grid-column: 2;
    justify-self: start;
  }
}

/* The task tiles as the rows of one card: the title over its status, a chevron at the end. */
body:is(.idf-portal, .idf-auth) .ui-tiles > li + li { border-top: 1px solid var(--line); }
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile {
  gap: 2px;
  min-height: 64px;
  padding: 14px 48px 14px 20px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
body:is(.idf-portal, .idf-auth) .ui-tiles > li:first-child > .idf-tile { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
body:is(.idf-portal, .idf-auth) .ui-tiles > li:last-child > .idf-tile { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
body:is(.idf-portal, .idf-auth) .ui-tiles > li:only-child > .idf-tile { border-radius: calc(var(--radius) - 1px); }
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile:hover { background-color: var(--row-hover); }
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile::after { top: calc(50% - 6px); }
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile:focus-visible { outline-offset: -3px !important; }
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile-title {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
body:is(.idf-portal, .idf-auth) .ui-tiles .idf-tile-status {
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- Buttons (IDfied .btn): 44 px, 8 px corners, a 1.5 px edge, 600 at 15 CSS px ---------- */
body:is(.idf-portal, .idf-auth) .idf-btn {
  width: auto;
  min-height: var(--size-target);
  padding: 0 18px;
  border-width: 1.5px;
  border-radius: var(--radius-s);
  font-size: .9375rem;
  line-height: 1.2;
  font-weight: 600;
}
body:is(.idf-portal, .idf-auth) .idf-btn-primary {
  background-color: var(--action);
  border-color: var(--action);
  color: var(--white);
}
body:is(.idf-portal, .idf-auth) .idf-btn-primary:hover {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--white);
}
body:is(.idf-portal, .idf-auth) .idf-btn-primary:active {
  background-color: var(--action-pressed);
  border-color: var(--action-pressed);
}
/* Re-walk 5 Oct 2026, #2: a disabled primary button keeps the disabled look,
   on hover and press too, instead of the brand fill above. */
body:is(.idf-portal, .idf-auth) .idf-btn-primary:disabled,
body:is(.idf-portal, .idf-auth) .idf-btn-primary[aria-disabled="true"],
body:is(.idf-portal, .idf-auth) .idf-btn-primary:disabled:hover,
body:is(.idf-portal, .idf-auth) .idf-btn-primary[aria-disabled="true"]:hover,
body:is(.idf-portal, .idf-auth) .idf-btn-primary:disabled:active,
body:is(.idf-portal, .idf-auth) .idf-btn-primary[aria-disabled="true"]:active {
  background-color: var(--hover);
  border-color: var(--line-strong);
  box-shadow: none;
  color: var(--ink-2);
  cursor: not-allowed;
}
body:is(.idf-portal, .idf-auth) .idf-btn-secondary {
  background-color: var(--surface);
  border-color: var(--control-edge);
  color: var(--action);
}
body:is(.idf-portal, .idf-auth) .idf-btn-secondary:hover {
  background-color: var(--tint);
  border-color: var(--action);
  color: var(--action-hover);
}
body:is(.idf-portal, .idf-auth) .idf-btn-secondary:active {
  background-color: var(--blue-200);
  border-color: var(--action);
  color: var(--action-hover);
}
body:is(.idf-portal, .idf-auth) .idf-btn-danger {
  background-color: var(--surface);
  border-color: var(--danger-text);
  color: var(--danger-text);
}
body:is(.idf-portal, .idf-auth) .idf-btn-danger:hover,
body:is(.idf-portal, .idf-auth) .idf-btn-danger:active {
  background-color: var(--danger-text);
  border-color: var(--danger-text);
  color: var(--white);
}

/* ---------- Fields (IDfied section 3.8): 48 px, a 1.5 px control edge, 16 CSS px text, 600 labels ---------- */
body:is(.idf-portal, .idf-auth) .idf-label {
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
body:is(.idf-portal, .idf-auth) .idf-check .idf-label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code) {
  height: 48px;
  border-width: 1.5px;
  font-size: 1rem;
}
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code):hover { border-color: var(--muted); }
/* Re-walk 5 Oct 2026, #8: a read-only address (an invitation's, or the confirmed one of a set-up link) keeps the
   locked look on hover too, so nothing suggests it can be edited. */
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code)[readonly],
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code)[readonly]:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
  color: var(--ink);
  cursor: default;
}
/* A refused field keeps its 2 px error edge, also on hover, over the portal's 1.5 px control edge. */
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code)[aria-invalid="true"],
body:is(.idf-portal, .idf-auth) .idf-input:not(.idf-input-code)[aria-invalid="true"]:hover {
  border: 2px solid var(--err-line);
}
body:is(.idf-portal, .idf-auth) .idf-input-row .idf-btn.idf-reveal { top: 2px; }

/* ---------- Footer: IDfied's two sentences and Help, Privacy and Terms ---------- */
body:is(.idf-portal, .idf-auth) .ui-footer {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: .875rem;
  color: var(--muted);
}
body:is(.idf-portal, .idf-auth) .ui-footer p {
  max-width: 720px;
  margin: 0;
}
body:is(.idf-portal, .idf-auth) .ui-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: 0 0 0 -4px;
  padding: 0;
  list-style: none;
}
body:is(.idf-portal, .idf-auth) .ui-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  padding: 0 4px;
  font-weight: 500;
}

@media (forced-colors: active) {
  body:is(.idf-portal, .idf-auth) .ui-card,
  body:is(.idf-portal, .idf-auth) .ui-panel { border-color: CanvasText; }
  body:is(.idf-portal, .idf-auth) .ui-card-rows > * + *,
  body:is(.idf-portal, .idf-auth) .ui-tiles > li + li,
  body:is(.idf-portal, .idf-auth) .ui-subnav ul,
  body:is(.idf-portal, .idf-auth) .ui-footer { border-color: CanvasText; }
  body:is(.idf-portal, .idf-auth) .ui-subnav a[aria-current]::after { background-color: Highlight; }
  body:is(.idf-portal, .idf-auth) .ui-subnav a[aria-current] { text-decoration: underline; }
  body:is(.idf-portal, .idf-auth) .ui-brand-glyph { forced-color-adjust: none; }
  body:is(.idf-portal, .idf-auth) .ui-brand-tile { fill: CanvasText; }
  body:is(.idf-portal, .idf-auth) .ui-brand-bar,
  body:is(.idf-portal, .idf-auth) .ui-brand-dot { fill: Canvas; }
}

/* ===========================================================================
 * 3.4.0 (2026-09-27) The sign-in pages in IDfied's look (owner: "can we also
 * update idp ui to match idfied, else it looks out of place"). Everything
 * here is scoped to body.idf-auth, the sign-in layout's body class; IDfied's
 * tokens and the ui- shell, header, brand, card and footer come from the
 * block above, so the account pages are not touched by these rules.
 *
 * Source: idfied/src/app/globals.css 4.0.0 sections 3.7 and 3.8 (.ui-card,
 * .ui-brand-name, .btn, .btn-secondary, .btn-block, .field, .field-label,
 * .field-hint, .field-error, .field-input, .choice, .check-input,
 * .error-summary, .notice, .ui-mark.is-org). Headings and the brand name in
 * Manrope, text in Inter, codes in the system monospace stack. No animation.
 *
 * Contrast (WCAG 2.2 AAA, text 7:1, non-text 3:1), beyond the block above:
 *   action #2D3A8C on the tint #E0E8F9 8.2:1 (the product chip, the
 *   organisation marks, info notice icons)
 *   text #1F2933 on the tint about 12.5:1; muted #3E4C59 on it 7.2:1
 *   ok #0A5A4A on ok-bg #EFFCF6 7.74:1 (a success notice sits on ok-bg: on
 *   the tint ok is only 6.6:1)
 *   err #990D1B and warn #85390D on white 7:1 or more (danger and warning
 *   notice titles and edges)
 *   control edge #7B8794 on white 3.4:1 or more (fields, code boxes, the
 *   organisation cards)
 * ========================================================================= */
body.idf-auth {
  --font-head: "Manrope", var(--font-ui);
  --font-display: var(--font-head);
}
body.idf-auth .ui-brand-name { font-family: var(--font-head); }

/* ---------- The one centred column (at most 480 px) and its white card ---------- */
body.idf-auth .idf-auth-column {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-top: clamp(8px, 4vh, 40px);
}
body.idf-auth .idf-auth-column > .ui-card.is-pad {
  margin: 0;
  padding: 24px 20px;
}
@media (min-width: 560px) {
  body.idf-auth .idf-auth-column > .ui-card.is-pad { padding: 32px; }
}

/* The product context ("Continue to Eventfied"): a small tint chip above the heading. Not a control. */
body.idf-auth .idf-context {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: var(--radius-s);
  background-color: var(--tint);
  color: var(--action);
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 600;
}
body.idf-auth .idf-context strong { color: inherit; font-weight: 700; }

/* ---------- Page head: the one level-one heading and its lede, sized for the card ---------- */
body.idf-auth .idf-h1 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
@media (min-width: 960px) {
  body.idf-auth .idf-h1 { font-size: 1.75rem; }
}
body.idf-auth .idf-h2 { font-family: var(--font-head); }
body.idf-auth .idf-helper:has(+ .idf-helper) { margin-bottom: 8px; }
body.idf-auth .idf-footline {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Fields (IDfied section 3.8): the error text at 15 CSS px ---------- */
body.idf-auth .idf-error-message {
  font-size: .9375rem;
  line-height: 1.5;
}

/* ---------- The six-digit code: IDfied's field look on each box; paste and autocomplete unchanged ---------- */
/* The plain field (no script, or forced colours) is 48 px with the 1.5 px control edge; a refused one keeps 2 px. */
body.idf-auth .idf-code:not(.is-enhanced) .idf-input-code { height: 48px; }
body.idf-auth .idf-code:not(.is-enhanced) .idf-input-code:not([aria-invalid="true"]) { border-width: 1.5px; }
body.idf-auth .idf-code-slot {
  height: 52px;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--radius-s);
  background-color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
}
body.idf-auth .idf-code-slot.is-filled {
  border-color: var(--muted);
  background-color: var(--white);
}
body.idf-auth .idf-code.is-enhanced:hover .idf-code-slot { border-color: var(--muted); }
body.idf-auth .idf-code.is-enhanced:focus-within .idf-code-slot.is-active { border-color: var(--action); }
/* A refused code keeps its 2 px error edge on every box, also on hover and focus. */
body.idf-auth .idf-code .idf-input-code[aria-invalid="true"] ~ .idf-code-slots .idf-code-slot {
  border: 2px solid var(--err-line);
  background-color: var(--err-bg);
}
@media (max-width: 359.98px) {
  body.idf-auth .idf-code-slot { height: 48px; }
}

/* ---------- Buttons: the form's own button and a filled link are full width in the card (IDfied .btn-block) ---------- */
body.idf-auth .idf-form > .idf-btn,
body.idf-auth .idf-actions > .idf-btn,
body.idf-auth .idf-upstream-list .idf-btn {
  width: 100%;
  padding-block: 10px;
  line-height: 1.3;
}

/* ---------- Error summary (IDfied .error-summary): a white box with a 2 px error edge ---------- */
body.idf-auth .idf-error-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 16px;
  border: 2px solid var(--err);
  border-radius: var(--radius);
  background-color: var(--white);
}
body.idf-auth .idf-error-summary-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.25;
}
body.idf-auth .idf-error-list {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

/* ---------- Notices (IDfied .notice): info on the tint, success on its own tint, warning and danger boxed in white ---------- */
body.idf-auth .idf-message {
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background-color: var(--tint);
}
body.idf-auth .idf-message-info .idf-icon { color: var(--action); }
body.idf-auth .idf-message-success {
  border: 1px solid var(--ok);
  background-color: var(--ok-bg);
}
body.idf-auth .idf-message-warning {
  border: 2px solid var(--warn);
  background-color: var(--white);
}
body.idf-auth .idf-message-danger {
  border: 2px solid var(--err);
  background-color: var(--white);
}

/* ---------- Radios and checkboxes (IDfied .choice, .check-input): 22 px controls in 44 px rows ---------- */
body.idf-auth .idf-radio-list { gap: 0; }
body.idf-auth .idf-radio,
body.idf-auth .idf-check { gap: 12px; }
body.idf-auth .idf-radio-input,
body.idf-auth .idf-checkbox-input,
body.idf-auth input.idf-checkbox {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: var(--action);
}
body.idf-auth .idf-radio-label,
body.idf-auth .idf-checkbox-label,
body.idf-auth .idf-check .idf-label {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- The organisation chooser: outlined cards with IDfied's tint mark ---------- */
body.idf-auth .idf-org-card {
  border-color: var(--control-edge);
  font-size: 1rem;
  line-height: 1.5;
}
body.idf-auth .idf-org-card:hover {
  background-color: var(--tint);
  border-color: var(--action);
}
body.idf-auth .idf-org-initials {
  border-radius: 10px;
  background-color: var(--tint);
  color: var(--action);
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 800;
}
body.idf-auth .idf-org-copy strong {
  font-size: 1rem;
  line-height: 1.5;
}
body.idf-auth .idf-org-role {
  font-size: .9375rem;
  color: var(--muted);
}

@media (forced-colors: active) {
  body.idf-auth .idf-context,
  body.idf-auth .idf-org-initials { border: 1px solid CanvasText; }
  body.idf-auth .idf-error-summary,
  body.idf-auth .idf-message { border-color: CanvasText; }
}
