/* Eldva Account, in the look of the Eldva Chat app. The colours are the app's theme
   (crates/ui/src/theme.rs), light and dark: the lavender-grey window background, white or
   near-black surfaces, navy for actions in light and lavender in dark. The shapes are the app's
   kit (crates/ui/src): buttons 32 px high with 7 px corners, fields 36 px with 6 px, menus
   10 px with 6 px items, round avatars for people, 14 px text with 13 px beside it, semibold
   for names and buttons.

   The frame is the app's (crates/app/src/shell.rs): the top bar and the sidebar sit directly
   on the window background, without borders, and the page is one panel in the surface colour
   with 12 px corners, 6 px in from the window's edge. Nothing inside the panel has an outline
   either, except fields and quiet buttons, which need one to be recognised: groups are set
   apart by space and by a step of tone (the app's hover tint for a group, its selected tint
   for something inside a group).

   The pages' own additions: a soft gradient with three still waves behind the band that
   carries the person and behind the sign-in card, in each theme's tints; state as a word in
   colour (green when something is set up, muted when not), with no dots and no icons in
   tinted squares; an app as its own icon (Eldva Chat) or a plain initial.

   Two deliberate differences from the app, both for WCAG AA on the web: field borders are
   darker than the app's hairline (3:1 against the surface), and the green of the check marks is
   darker in light.

   Themes: light and dark follow the system; the theme switch sets data-theme on <html>, which
   wins. The dark tokens are therefore written twice, in the media query and under
   [data-theme="dark"], and a test keeps the two blocks identical. Every text and control
   colour here is checked for contrast by contrast_test.go. */

@font-face {
  font-family: "Open Sans";
  src: url("/static/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: fallback;
}
@font-face {
  font-family: "Open Sans";
  src: url("/static/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: fallback;
}

:root {
  color-scheme: light dark;
  /* The app's light theme. */
  --background: #eceef7;
  --surface: #ffffff;
  --text: #15182b;
  --muted: #5b6075;
  --border: #e3e5ee;
  --field-border: #81869e;
  --accent: #1b1f5e;
  --on-accent: #ffffff;
  --hover: #f3f4fa;
  --selected: #e9ebf6;
  --danger: #c93a3f;
  --on-danger: #ffffff;
  --success: #1f8a43;
  --ok-bg: #dff3e4;
  --ok-text: #14602f;
  --warning-bg: #fff6dc;
  --warning-text: #5c4200;
  --focus: #1b1f5e;
  /* The gradient and its waves, from the app's lavender tints (hover, group avatar, chip
     border) to a mid blue of the same family. */
  --hero-from: #f3f4fa;
  --hero-to: #dfe3f4;
  --wave-pale: #cfd4f0;
  --wave-mid: #b9bedf;
  --wave-deep: #8389d8;
  /* Always show the master full-colour Eldva mark in both light and dark themes. */
  --mark-on-light: none;
  --mark-on-dark: block;
  --shadow-raised: 0 2px 6px rgba(11, 13, 42, .06), 0 16px 40px rgba(11, 13, 42, .16);
  /* How strongly each wave covers what is behind it. The test blends them with these. */
  --wave-back-opacity: .5;
  --wave-middle-opacity: .4;
  --wave-front-opacity: .5;
  /* The ten avatar colours Eldva Chat offers (crates/settings/src/profile.rs), the same in
     both themes so that a person's colour is the same in every app. A test holds them to the
     list in identity.AvatarColors. */
  --avatar-0: #1b1f5e; --avatar-1: #3f6fb9; --avatar-2: #0f8199; --avatar-3: #4d8a6a; --avatar-4: #8a4d7c;
  --avatar-5: #6a5acd; --avatar-6: #b94d5c; --avatar-7: #c2643f; --avatar-8: #8f6a1d; --avatar-9: #737373;
}
:root[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #11121b;
    --surface: #1b1d2a;
    --text: #e9eaf3;
    --muted: #9da2b8;
    --border: #2d3042;
    --field-border: #6b7090;
    --accent: #9da5ff;
    --on-accent: #11121b;
    --hover: #242736;
    --selected: #2b2e42;
    --danger: #f0686c;
    --on-danger: #11121b;
    --success: #3fc56a;
    --ok-bg: #173524;
    --ok-text: #8fe0a8;
    --warning-bg: #3a3110;
    --warning-text: #f3dc8f;
    --focus: #9da5ff;
    --hero-from: #1b1d2a;
    --hero-to: #272a3b;
    --wave-pale: #30345a;
    --wave-mid: #3a41a6;
    --wave-deep: #4a52b8;
    --mark-on-light: none;
    --mark-on-dark: block;
    --shadow-raised: 0 2px 6px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #11121b;
  --surface: #1b1d2a;
  --text: #e9eaf3;
  --muted: #9da2b8;
  --border: #2d3042;
  --field-border: #6b7090;
  --accent: #9da5ff;
  --on-accent: #11121b;
  --hover: #242736;
  --selected: #2b2e42;
  --danger: #f0686c;
  --on-danger: #11121b;
  --success: #3fc56a;
  --ok-bg: #173524;
  --ok-text: #8fe0a8;
  --warning-bg: #3a3110;
  --warning-text: #f3dc8f;
  --focus: #9da5ff;
  --hero-from: #1b1d2a;
  --hero-to: #272a3b;
  --wave-pale: #30345a;
  --wave-mid: #3a41a6;
  --wave-deep: #4a52b8;
  --mark-on-light: none;
  --mark-on-dark: block;
  --shadow-raised: 0 2px 6px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

/* The app's text is 14 px; 1rem is that. */
html { font-size: 14px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  line-height: 1.45;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 14px; z-index: 20; }

/* The brand: the mark and the lower-case wordmark. In the top bar the mark is the single-colour
   drawing in the accent colour; above the sign-in card it is the full-colour one, of which the
   theme shows its version. */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent); flex: none; }
.brand .mark { display: block; width: 28px; height: 28px; }
.brand .mark-on-light { display: var(--mark-on-light); }
.brand .mark-on-dark { display: var(--mark-on-dark); }
.wordmark { font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: -.01em; }

/* The gradient waves. Still shapes; the stylesheet only colours them. */
.waves { display: block; pointer-events: none; }
.stop-pale { stop-color: var(--wave-pale); }
.stop-mid { stop-color: var(--wave-mid); }
.stop-deep { stop-color: var(--wave-deep); }
.wave-back { opacity: var(--wave-back-opacity); }
.wave-middle { opacity: var(--wave-middle-opacity); }
.wave-front { opacity: var(--wave-front-opacity); }

/* Signed out: one card over the gradient, like a dialog of the app ------------------------- */

body.focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding-bottom: 48px;
  background: linear-gradient(160deg, var(--background), var(--hero-to)) fixed;
}
body.focus > .waves { position: fixed; left: 0; bottom: 0; width: 100%; height: 82vh; z-index: 0; }
body.focus > header, body.focus > main, body.focus > footer { position: relative; z-index: 1; }

.brandbar { padding: 48px 16px 20px; }
.brandbar .mark { width: 38px; height: 38px; }
.brandbar .wordmark { font-size: 26px; }

body.focus main { width: 100%; max-width: 432px; padding: 0 16px; }
body.focus main.wide { max-width: 720px; }
body.focus main.wide:has(.org-ws) { max-width: 1080px; }
body.focus .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-raised);
  padding: 28px;
}
body.focus .switch { background: var(--surface); }
@media (max-width: 420px) { body.focus .card { padding: 20px 16px; } }

/* Signed in: top bar, sidebar, content -----------------------------------------------------
   On desktop (> 860px), the viewport is an app shell: the top bar and sidebar stay fixed while
   the rounded content panel scrolls internally with a stable, thin, rounded scrollbar so the
   outer window never scrolls or shifts width. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 20px;
  background: var(--background);
}

.menu { margin-left: auto; position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 999px; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--selected); }
.menu > summary:focus-visible { border-radius: 999px; }
.menu > summary .avatar { width: 32px; height: 32px; font-size: 13px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, calc(100vw - 24px));
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
  font-size: 13px;
  overflow: hidden;
}
.menu-current {
  padding: 6px;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
}
.menu-current .account-row { padding: 6px 8px; }
.menu-others {
  padding: 6px;
  border-bottom: 1px solid var(--border);
}
.menu-label { margin: 2px 8px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.menu-panel .accounts { margin: 0; display: grid; gap: 2px; }
.menu-panel .account-row { min-height: 0; padding: 7px 8px; border-radius: 8px; gap: 10px; }
.menu-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.menu-scope {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--selected);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.menu-active-check {
  width: 14px;
  height: 14px;
  color: var(--success);
  margin-inline-start: auto;
  flex: none;
}
.menu-links { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.menu-links a, .menu-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}
.menu-links a:hover, .menu-button:hover { background: var(--hover); }
.menu-signout:hover { color: var(--danger); }
.menu-signout:hover .icon { color: var(--danger); }

.frame { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: calc(100vh - 52px); }

/* The sidebar sits on the window background, like the app's rail; its entries are the app's
   rows: 8 px corners, the current one in the panel's colour. */
.side { padding: 6px 10px; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 58px; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.side a .icon { width: 16px; height: 16px; color: var(--muted); }
.side a:hover { background: var(--selected); }
.side a[aria-current=page] { background: var(--surface); font-weight: 600; }
.side a[aria-current=page] .icon { color: var(--accent); }
.side-help { margin-top: 14px; }

/* On an organisation's pages its menu takes the account's place, in the same rows: the way back
   to the account at the top, quieter than a section, then the sections in groups under quiet
   labels. On a narrow window the groups fold into a disclosure that names the section shown. */
.side .side-inner { position: sticky; top: 58px; }
.side[data-org] ul { position: static; }
.side .side-back { gap: 8px; min-height: 32px; padding: 4px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.side .side-back .icon { width: 12px; height: 12px; transform: rotate(180deg); }
.side .side-back:hover { color: var(--text); }
.side-group { margin-top: 16px; }
.org-menu-narrow { display: none; }
.org-menu-narrow > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 8px; background: var(--surface); font-weight: 600; cursor: pointer; }
.org-menu-narrow > summary::-webkit-details-marker { display: none; }
.org-menu-narrow > summary .icon { width: 12px; height: 12px; color: var(--accent); }
.org-menu-narrow[open] > summary .icon { transform: rotate(180deg); }

/* The page: one panel in the surface colour, rounded, 6 px in from the window's edge, as the
   app's content panel is. On desktop, scrolling happens inside this rounded panel with a stable
   thin scrollbar so the outer window never scrolls or shifts width. */
.panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0 6px 6px 0; background: var(--surface); border-radius: 12px; }
.panel > .content { flex: 1; }

@media (min-width: 861px) {
  body.app {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.app .frame {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  body.app .side, body.app .panel {
    --scrollbar-thumb: var(--field-border);
    --scrollbar-track: transparent;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  }
  body.app .side ul, body.app .side .side-inner { position: static; }
}

@media (prefers-contrast: more) {
  body.app .side, body.app .panel {
    --scrollbar-thumb: var(--text);
    --scrollbar-track: var(--surface);
  }
}

@supports not (scrollbar-color: auto) {
  @media (min-width: 861px) {
    body.app .side, body.app .panel { scrollbar-width: auto; }
    body.app .side::-webkit-scrollbar, body.app .panel::-webkit-scrollbar { width: 8px; height: 8px; }
    body.app .side::-webkit-scrollbar-thumb, body.app .panel::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb);
      border-radius: 999px;
      border: 2px solid transparent;
      background-clip: content-box;
    }
    body.app .side::-webkit-scrollbar-track, body.app .panel::-webkit-scrollbar-track { background: var(--scrollbar-track); }
  }
}

/* The content uses the panel's width, up to a generous limit, and is centred beyond it. */
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 20px 24px 8px; }
.content.narrow { max-width: 648px; margin: 0; }

/* A section page lays its cards side by side where there is room: two columns, the first one
   wider where it holds the longer list; or three alike. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split.wide-first { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.thirds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.split .card, .thirds .card, .stack .card { margin: 0; }
.split, .thirds { margin-bottom: 16px; }
@media (max-width: 1100px) {
  .split, .split.wide-first, .thirds { grid-template-columns: minmax(0, 1fr); }
}
body.focus .thirds { grid-template-columns: minmax(0, 1fr); }

.page-head { margin: 4px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }

body.app .bottom { padding: 16px 24px 20px; justify-content: flex-start; }

@media (max-width: 860px) {
  .topbar { padding: 0 14px; }
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { padding: 0 6px; }
  /* Every section stays in sight: the strip wraps to a second row rather than scrolling. */
  .side ul { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 4px; padding: 0 0 6px; }
  .side a { white-space: nowrap; gap: 8px; }
  .side-help { margin: 0; }
  .side .side-inner { position: static; padding: 0 0 6px; }
  .org-menu-wide { display: none; }
  .org-menu-narrow { display: block; margin-top: 2px; }
  .org-menu-narrow .side-group { margin-top: 8px; }
  .org-menu-narrow .side-group ul { padding: 0; }
  .panel { margin: 0 6px 6px; }
  .content { padding: 14px 14px 8px; }
  body.app .bottom { padding: 12px 14px 18px; }
}

/* The welcome area: the gradient, the waves behind, the account in front ------------------ */

/* The band: the person on the gradient with its waves, and beside them three facts with
   their links, separated by hairlines. */
.band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--hero-from), var(--hero-to));
}
.band .waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 210%; }
.band-person { position: relative; display: flex; align-items: center; gap: 20px; min-width: 0; }
.band-text { min-width: 0; }
.band .eyebrow { color: var(--text); font-weight: 400; }
.band h1 { font-size: 26px; line-height: 1.2; margin-bottom: 2px; overflow-wrap: anywhere; }
.band { min-height: 172px; }
.band-sub { margin: 0; overflow-wrap: anywhere; }
.band-links { padding-top: 8px; }
.band-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-weight: 600; }
.band-action { margin-top: 14px; }
.band-facts { position: relative; display: flex; flex-wrap: wrap; row-gap: 12px; max-width: 100%; min-width: 0; margin: 0; padding: 14px 6px; background: var(--surface); border-radius: 10px; }
.band-facts > div { flex: 1 1 auto; padding: 0 22px; overflow-wrap: break-word; }
.band > * { min-width: 0; }
@media (max-width: 720px) {
  .band { padding: 18px 16px; }
  .band-person { gap: 14px; }
  .band .avatar.big { width: 56px; height: 56px; font-size: 22px; }
  .band h1 { font-size: 21px; }
  .band .waves { width: 100%; height: 45%; }
  .band .wave-front { display: none; }
  .band-facts { width: 100%; flex-direction: column; padding: 4px 16px; }
  .band-facts { row-gap: 0; }
  .band-facts > div { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 8px 0; }
  .band-facts dt { grid-column: 1 / -1; }
}

/* A fact: a quiet label, the value in larger type, and one line or link under it. */
.band-facts dt { color: var(--muted); font-size: 13px; }
.band-facts dd { margin: 0; }
.fact-value { font-size: 19px; font-weight: 600; line-height: 1.35; }
.fact-more { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.fact-more a { font-weight: 600; }

/* A state is a word in colour: green when something is set up, muted when it is not. */
.state { font-weight: 600; }
.state.ok { color: var(--ok-text); }
.state.off { color: var(--muted); }
h2 .state { font-size: 13px; }

/* The overview below the band: four equal-height categories side by side, all built alike:
   a heading with its link, then items of a name and one quieter line. */
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1320px) { .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .categories { grid-template-columns: minmax(0, 1fr); } }
.category { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; border-radius: 12px; background: var(--hover); border: 1px solid var(--border); }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.category-head h2 { margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; flex-direction: column; padding: 7px 0; min-width: 0; overflow-wrap: anywhere; }
.items li.with-icon { flex-direction: row; align-items: center; gap: 12px; }
.item-text { display: flex; flex-direction: column; min-width: 0; }
.item-name { font-weight: 600; }
.item-name a { text-decoration: none; }
.item-name a:hover { text-decoration: underline; }
.item-detail { color: var(--muted); font-size: 13px; }
.category-action { align-self: flex-start; margin-top: auto; }
.items + .category-action { margin-top: 12px; }

.block { margin-bottom: 20px; }
.block .card { margin: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.block-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more .icon { width: 12px; height: 12px; }


/* Places the account is signed in: one small card each, side by side. */
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.place { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--hover); border-radius: 10px; overflow-wrap: anywhere; }
.place-name { font-size: 15px; font-weight: 600; }
.place .state { font-size: 13px; }
.place form { margin-top: 6px; }
.kind { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }

/* A short log: the time in the quiet colour, then what happened. */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 5px 0; }
.timeline time { flex: 0 0 124px; }
.timeline li > span { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.timeline time { color: var(--muted); font-size: 13px; line-height: 20px; }

/* A long form in two columns where there is room (an organisation's rules, a provider). */
form.columns { columns: 2 380px; column-gap: 40px; }
form.columns .field { break-inside: avoid; }
form.columns > button { column-span: all; margin-top: 4px; }
input[type=number] { max-width: 160px; }
table.log td:first-child, table.log th:first-child { width: 1%; white-space: nowrap; padding-right: 24px; }

/* Apps as themselves: the app's own icon where it has one (Eldva Chat), a plain outlined
   initial otherwise; side by side. */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.split .places { grid-template-columns: minmax(0, 1fr); }
.app-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.app-name { font-size: 15px; font-weight: 600; }
.app-icon { display: block; width: 40px; height: 40px; flex: none; }
.app-icon.small { width: 16px; height: 16px; }
.initial { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--selected); color: var(--muted); font-size: 16px; font-weight: 600; }
.consent-icon { width: 48px; height: 48px; margin-bottom: 12px; }

.inline-action { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.danger-zone h2, .danger-zone p { margin: 0; }
.danger-zone h2 { margin-bottom: 2px; }

/* Cards, text and forms ---------------------------------------------------------------------- */

/* A group inside the panel: a step of tone, no outline. */
.card {
  background: var(--hover);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 16px;
}
.card > :last-child, .card > form:last-child > :last-child { margin-bottom: 0; }

h1 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.card > h2, .section > h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card > h2 > .icon { width: 16px; height: 16px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

form { margin: 0; }
.field { margin-bottom: 14px; max-width: 560px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

input[type=email], input[type=password], input[type=text], input[type=url], input[type=number], input[type=tel], select, textarea {
  width: 100%;
  min-height: 36px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 6px 10px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[readonly] { background: var(--hover); }
input.code { font-size: 20px; letter-spacing: .2em; text-align: center; min-height: 44px; }
input[aria-invalid=true] { border-color: var(--danger); }
.row > input { flex: 1; width: auto; min-width: 140px; }

.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; width: 15px; height: 15px; flex: none; accent-color: var(--accent); }

/* The app's button: 32 px high, 14 px at the sides, 7 px corners, semibold. */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  font: inherit;
  font-weight: 600;
  border-radius: 7px;
  padding: 4px 14px;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.15); }
/* A quiet button has the field's outline, which stands 3:1 off the panel and off a group's
   tone, so that it is seen to be a button wherever it sits. */
button.secondary, .button.secondary, .button.soft { background: var(--surface); border-color: var(--field-border); color: var(--text); }
button.secondary:hover, .button.secondary:hover, .button.soft:hover { background: var(--selected); filter: none; }
.button.soft .icon { color: var(--accent); }
button.danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
button.link { min-height: 0; background: none; border: none; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
button.link:hover { filter: none; text-decoration-thickness: 2px; }
button.block, .button.block { width: 100%; min-height: 38px; margin-bottom: 0; }
.menu-button:hover, button.account-row:hover { filter: none; }

.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.links { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.alert { border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }
.alert .icon { margin-top: 2px; }
.alert.error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--text); }
.alert.notice { background: var(--selected); color: var(--text); }
.alert.warning { background: var(--warning-bg); color: var(--warning-text); }
.alert.warning a { color: inherit; font-weight: 600; }

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: middle;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.icon.grey { color: var(--muted); }
.i-check { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-57.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M438.6%20105.4c12.5%2012.5%2012.5%2032.8%200%2045.3l-256%20256c-12.5%2012.5-32.8%2012.5-45.3%200l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200L160%20338.7%20393.4%20105.4c12.5-12.5%2032.8-12.5%2045.3%200z'/></svg>"); }
.i-chevron { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><g%20transform='rotate%28-90%20256%20256%29'><path%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7%2086.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/></g></svg>"); }
.i-chevron-down { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7%2086.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/></svg>"); }
.i-arrow { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><%21--%20Eldva's%20own%20drawing.%20--><path%20d='M286%20106c-12%2012-12%2032%200%2045l73%2073H88c-18%200-32%2014-32%2032s14%2032%2032%2032h271l-73%2073c-12%2013-12%2033%200%2045%2013%2012%2033%2012%2045%200l128-128c12-12%2012-32%200-45L331%20106c-12-13-32-13-45%200z'/></svg>"); }
.i-error { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M256%20512A256%20256%200%201%200%20256%200a256%20256%200%201%200%200%20512zm0-384c13.3%200%2024%2010.7%2024%2024l0%20112c0%2013.3-10.7%2024-24%2024s-24-10.7-24-24l0-112c0-13.3%2010.7-24%2024-24zM224%20352a32%2032%200%201%201%2064%200%2032%2032%200%201%201%20-64%200z'/></svg>"); }
.i-info { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M256%20512A256%20256%200%201%200%20256%200a256%20256%200%201%200%200%20512zM216%20336l24%200%200-64-24%200c-13.3%200-24-10.7-24-24s10.7-24%2024-24l48%200c13.3%200%2024%2010.7%2024%2024l0%2088%208%200c13.3%200%2024%2010.7%2024%2024s-10.7%2024-24%2024l-80%200c-13.3%200-24-10.7-24-24s10.7-24%2024-24zm40-208a32%2032%200%201%201%200%2064%2032%2032%200%201%201%200-64z'/></svg>"); }
.i-plus { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-57.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M256%2080c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20144L48%20224c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l144%200%200%20144c0%2017.7%2014.3%2032%2032%2032s32-14.3%2032-32l0-144%20144%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32l-144%200%200-144z'/></svg>"); }
.i-signout { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M377.9%20105.9L500.7%20228.7c7.2%207.2%2011.3%2017.1%2011.3%2027.3s-4.1%2020.1-11.3%2027.3L377.9%20406.1c-6.4%206.4-15%209.9-24%209.9c-18.7%200-33.9-15.2-33.9-33.9l0-62.1-128%200c-17.7%200-32-14.3-32-32l0-64c0-17.7%2014.3-32%2032-32l128%200%200-62.1c0-18.7%2015.2-33.9%2033.9-33.9c9%200%2017.6%203.6%2024%209.9zM160%2096L96%2096c-17.7%200-32%2014.3-32%2032l0%20256c0%2017.7%2014.3%2032%2032%2032l64%200c17.7%200%2032%2014.3%2032%2032s-14.3%2032-32%2032l-64%200c-53%200-96-43-96-96L0%20128C0%2075%2043%2032%2096%2032l64%200c17.7%200%2032%2014.3%2032%2032s-14.3%2032-32%2032z'/></svg>"); }
.i-trash { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-57.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M135.2%2017.7L128%2032%2032%2032C14.3%2032%200%2046.3%200%2064S14.3%2096%2032%2096l384%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32l-96%200-7.2-14.3C307.4%206.8%20296.3%200%20284.2%200L163.8%200c-12.1%200-23.2%206.8-28.6%2017.7zM416%20128L32%20128%2053.2%20467c1.6%2025.3%2022.6%2045%2047.9%2045l245.8%200c25.3%200%2046.3-19.7%2047.9-45L416%20128z'/></svg>"); }
.i-users { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-32%20-96%20704%20704'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M96%20128a128%20128%200%201%201%20256%200A128%20128%200%201%201%2096%20128zM0%20482.3C0%20383.8%2079.8%20304%20178.3%20304l91.4%200C368.2%20304%20448%20383.8%20448%20482.3c0%2016.4-13.3%2029.7-29.7%2029.7L29.7%20512C13.3%20512%200%20498.7%200%20482.3zM609.3%20512l-137.8%200c5.4-9.4%208.6-20.3%208.6-32l0-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1%204.7-.2%207.1-.2l61.4%200C567.8%20320%20640%20392.2%20640%20481.3c0%2017-13.8%2030.7-30.7%2030.7zM432%20256c-31%200-59-12.6-79.3-32.9C372.4%20196.5%20384%20163.6%20384%20128c0-26.8-6.6-52.1-18.3-74.3C384.3%2040.1%20407.2%2032%20432%2032c61.9%200%20112%2050.1%20112%20112s-50.1%20112-112%20112z'/></svg>"); }
.i-user { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-57.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M224%20248a120%20120%200%201%200%200-240%20120%20120%200%201%200%200%20240zm-29.7%2056C95.8%20304%2016%20383.8%2016%20482.3%2016%20498.7%2029.3%20512%2045.7%20512l356.6%200c16.4%200%2029.7-13.3%2029.7-29.7%200-98.5-79.8-178.3-178.3-178.3l-59.4%200z'/></svg>"); }
.i-user-plus { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-32%20-96%20704%20704'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M285.7%20304c98.5%200%20178.3%2079.8%20178.3%20178.3%200%2016.4-13.3%2029.7-29.7%2029.7L77.7%20512C61.3%20512%2048%20498.7%2048%20482.3%2048%20383.8%20127.8%20304%20226.3%20304l59.4%200zM528%2080c13.3%200%2024%2010.7%2024%2024l0%2048%2048%200c13.3%200%2024%2010.7%2024%2024s-10.7%2024-24%2024l-48%200%200%2048c0%2013.3-10.7%2024-24%2024s-24-10.7-24-24l0-48-48%200c-13.3%200-24-10.7-24-24s10.7-24%2024-24l48%200%200-48c0-13.3%2010.7-24%2024-24zM256%20248a120%20120%200%201%201%200-240%20120%20120%200%201%201%200%20240z'/></svg>"); }
.i-settings { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M495.9%20166.6c3.2%208.7%20.5%2018.4-6.4%2024.6l-43.3%2039.4c1.1%208.3%201.7%2016.8%201.7%2025.4s-.6%2017.1-1.7%2025.4l43.3%2039.4c6.9%206.2%209.6%2015.9%206.4%2024.6c-4.4%2011.9-9.7%2023.3-15.8%2034.3l-4.7%208.1c-6.6%2011-14%2021.4-22.1%2031.2c-5.9%207.2-15.7%209.6-24.5%206.8l-55.7-17.7c-13.4%2010.3-28.2%2018.9-44%2025.4l-12.5%2057.1c-2%209.1-9%2016.3-18.2%2017.8c-13.8%202.3-28%203.5-42.5%203.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1%20425.9c-8.8%202.8-18.6%20.3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4%206.4-24.6l43.3-39.4C64.6%20273.1%2064%20264.6%2064%20256s.6-17.1%201.7-25.4L22.4%20191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9%209.7-23.3%2015.8-34.3l4.7-8.1c6.6-11%2014-21.4%2022.1-31.2c5.9-7.2%2015.7-9.6%2024.5-6.8l55.7%2017.7c13.4-10.3%2028.2-18.9%2044-25.4l12.5-57.1c2-9.1%209-16.3%2018.2-17.8C227.3%201.2%20241.5%200%20256%200s28.7%201.2%2042.5%203.5c9.2%201.5%2016.2%208.7%2018.2%2017.8l12.5%2057.1c15.8%206.5%2030.6%2015.1%2044%2025.4l55.7-17.7c8.8-2.8%2018.6-.3%2024.5%206.8c8.1%209.8%2015.5%2020.2%2022.1%2031.2l4.7%208.1c6.1%2011%2011.4%2022.4%2015.8%2034.3zM256%20336a80%2080%200%201%200%200-160%2080%2080%200%201%200%200%20160z'/></svg>"); }
.i-x { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-89.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M342.6%20150.6c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L192%20210.7%2086.6%20105.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3L146.7%20256%2041.4%20361.4c-12.5%2012.5-12.5%2032.8%200%2045.3s32.8%2012.5%2045.3%200L192%20301.3%20297.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200s12.5-32.8%200-45.3L237.3%20256%20342.6%20150.6z'/></svg>"); }
.i-pen { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M362.7%2019.3L314.3%2067.7%20444.3%20197.7l48.4-48.4c25-25%2025-65.5%200-90.5L453.3%2019.3c-25-25-65.5-25-90.5%200zm-71%2071L58.6%20323.5c-10.4%2010.4-18%2023.3-22.2%2037.4L1%20481.2C-1.5%20489.7%20.8%20498.8%207%20505s15.3%208.5%2023.7%206.1l120.3-35.4c14.1-4.2%2027-11.8%2037.4-22.2L421.7%20220.3%20291.7%2090.3z'/></svg>"); }
.i-download { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M288%2032c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l128%20128c12.5%2012.5%2032.8%2012.5%2045.3%200l128-128c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L288%20274.7%20288%2032zM64%20352c-35.3%200-64%2028.7-64%2064l0%2032c0%2035.3%2028.7%2064%2064%2064l384%200c35.3%200%2064-28.7%2064-64l0-32c0-35.3-28.7-64-64-64l-101.5%200-45.3%2045.3c-25%2025-65.5%2025-90.5%200L165.5%20352%2064%20352zm368%2056a24%2024%200%201%201%200%2048%2024%2024%200%201%201%200-48z'/></svg>"); }
.i-warning { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M256%2032c14.2%200%2027.3%207.5%2034.5%2019.8l216%20368c7.3%2012.4%207.3%2027.7%20.2%2040.1S486.3%20480%20472%20480L40%20480c-14.3%200-27.6-7.7-34.7-20.1s-7-27.8%20.2-40.1l216-368C228.7%2039.5%20241.8%2032%20256%2032zm0%20128c-13.3%200-24%2010.7-24%2024l0%20112c0%2013.3%2010.7%2024%2024%2024s24-10.7%2024-24l0-112c0-13.3-10.7-24-24-24zm32%20224a32%2032%200%201%200%20-64%200%2032%2032%200%201%200%2064%200z'/></svg>"); }
.i-copy { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-57.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M208%200L332.1%200c12.7%200%2024.9%205.1%2033.9%2014.1l67.9%2067.9c9%209%2014.1%2021.2%2014.1%2033.9L448%20336c0%2026.5-21.5%2048-48%2048l-192%200c-26.5%200-48-21.5-48-48l0-288c0-26.5%2021.5-48%2048-48zM48%20128l80%200%200%2064-64%200%200%20256%20192%200%200-32%2064%200%200%2048c0%2026.5-21.5%2048-48%2048L48%20512c-26.5%200-48-21.5-48-48L0%20176c0-26.5%2021.5-48%2048-48z'/></svg>"); }
.i-home { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><%21--%20Eldva's%20own%20drawing.%20--><path%20d='M256%2052c8%200%2016%203%2022%208l196%20172c13%2012%2014%2032%203%2045-12%2013-32%2014-45%203l-8-7v163c0%2018-14%2032-32%2032h-72c-9%200-16-7-16-16v-96c0-18-14-32-32-32h-32c-18%200-32%2014-32%2032v96c0%209-7%2016-16%2016h-72c-18%200-32-14-32-32V273l-8%207c-13%2011-33%2010-45-3-11-13-10-33%203-45L234%2060c6-5%2014-8%2022-8z'/></svg>"); }
.i-shield { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M256%200c4.6%200%209.2%201%2013.4%202.9L457.8%2082.8c22%209.3%2038.4%2031%2038.3%2057.2-.5%2099.2-41.3%20280.7-213.6%20363.2-16.7%208-36.1%208-52.8%200-172.4-82.5-213.1-264-213.6-363.2-.1-26.2%2016.3-47.9%2038.3-57.2L242.7%202.9C246.9%201%20251.4%200%20256%200zm0%2066.8l0%20378.1c138-66.8%20175.1-214.8%20176-303.4l-176-74.6%200%200z'/></svg>"); }
.i-laptop { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-32%20-96%20704%20704'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M128%2032C92.7%2032%2064%2060.7%2064%2096l0%20240%2064%200%200-240%20384%200%200%20240%2064%200%200-240c0-35.3-28.7-64-64-64L128%2032zM19.2%20384C8.6%20384%200%20392.6%200%20403.2%200%20445.6%2034.4%20480%2076.8%20480l486.4%200c42.4%200%2076.8-34.4%2076.8-76.8%200-10.6-8.6-19.2-19.2-19.2L19.2%20384z'/></svg>"); }
.i-phone { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M164.9%2024.6c-7.7-18.6-28-28.5-47.4-23.2l-88%2024C12.1%2030.2%200%2046%200%2064C0%20311.4%20200.6%20512%20448%20512c18%200%2033.8-12.1%2038.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3%2011.6L304.7%20368C234.3%20334.7%20177.3%20277.7%20144%20207.3L193.3%20167c13.7-11.2%2018.4-30%2011.6-46.3l-40-96z'/></svg>"); }
.i-display { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-28.8%20-60.8%20633.6%20633.6'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M64%200C28.7%200%200%2028.7%200%2064L0%20352c0%2035.3%2028.7%2064%2064%2064l176%200-10.7%2032L160%20448c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l256%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32l-69.3%200L336%20416l176%200c35.3%200%2064-28.7%2064-64l0-288c0-35.3-28.7-64-64-64L64%200zM512%2064l0%20288L64%20352%2064%2064l448%200z'/></svg>"); }
.i-grid { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><%21--%20Eldva's%20own%20drawing.%20--><path%20fill-rule='evenodd'%20d='M96%2056h96c22%200%2040%2018%2040%2040v96c0%2022-18%2040-40%2040H96c-22%200-40-18-40-40V96c0-22%2018-40%2040-40zm8%2048v80h80v-80h-80zm216-48h96c22%200%2040%2018%2040%2040v96c0%2022-18%2040-40%2040h-96c-22%200-40-18-40-40V96c0-22%2018-40%2040-40zm8%2048v80h80v-80h-80zM96%20280h96c22%200%2040%2018%2040%2040v96c0%2022-18%2040-40%2040H96c-22%200-40-18-40-40v-96c0-22%2018-40%2040-40zm8%2048v80h80v-80h-80zm216-48h96c22%200%2040%2018%2040%2040v96c0%2022-18%2040-40%2040h-96c-22%200-40-18-40-40v-96c0-22%2018-40%2040-40zm8%2048v80h80v-80h-80z'/></svg>"); }
.i-building { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-89.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M64%200C28.7%200%200%2028.7%200%2064L0%20448c0%2035.3%2028.7%2064%2064%2064l256%200c35.3%200%2064-28.7%2064-64l0-384c0-35.3-28.7-64-64-64L64%200zM176%20352l32%200c17.7%200%2032%2014.3%2032%2032l0%2080-96%200%200-80c0-17.7%2014.3-32%2032-32zM96%20112c0-8.8%207.2-16%2016-16l32%200c8.8%200%2016%207.2%2016%2016l0%2032c0%208.8-7.2%2016-16%2016l-32%200c-8.8%200-16-7.2-16-16l0-32zM240%2096l32%200c8.8%200%2016%207.2%2016%2016l0%2032c0%208.8-7.2%2016-16%2016l-32%200c-8.8%200-16-7.2-16-16l0-32c0-8.8%207.2-16%2016-16zM96%20240c0-8.8%207.2-16%2016-16l32%200c8.8%200%2016%207.2%2016%2016l0%2032c0%208.8-7.2%2016-16%2016l-32%200c-8.8%200-16-7.2-16-16l0-32zm144-16l32%200c8.8%200%2016%207.2%2016%2016l0%2032c0%208.8-7.2%2016-16%2016l-32%200c-8.8%200-16-7.2-16-16l0-32c0-8.8%207.2-16%2016-16z'/></svg>"); }
.i-clock { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M256%200a256%20256%200%201%201%200%20512A256%20256%200%201%201%20256%200zM232%20120l0%20136c0%208%204%2015.5%2010.7%2020l96%2064c11%207.4%2025.9%204.4%2033.3-6.7s4.4-25.9-6.7-33.3L280%20243.2%20280%20120c0-13.3-10.7-24-24-24s-24%2010.7-24%2024z'/></svg>"); }
.i-key { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M336%20352c97.2%200%20176-78.8%20176-176S433.2%200%20336%200%20160%2078.8%20160%20176c0%2018.7%202.9%2036.8%208.3%2053.7L7%20391c-4.5%204.5-7%2010.6-7%2017l0%2080c0%2013.3%2010.7%2024%2024%2024l80%200c13.3%200%2024-10.7%2024-24l0-40%2040%200c13.3%200%2024-10.7%2024-24l0-40%2040%200c6.4%200%2012.5-2.5%2017-7l33.3-33.3c16.9%205.4%2035%208.3%2053.7%208.3zM376%2096a40%2040%200%201%201%200%2080%2040%2040%200%201%201%200-80z'/></svg>"); }
.i-list { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M40%2048C26.7%2048%2016%2058.7%2016%2072l0%2048c0%2013.3%2010.7%2024%2024%2024l48%200c13.3%200%2024-10.7%2024-24l0-48c0-13.3-10.7-24-24-24L40%2048zM192%2064c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l288%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32L192%2064zm0%20160c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l288%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32l-288%200zm0%20160c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l288%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32l-288%200zM16%20232l0%2048c0%2013.3%2010.7%2024%2024%2024l48%200c13.3%200%2024-10.7%2024-24l0-48c0-13.3-10.7-24-24-24l-48%200c-13.3%200-24%2010.7-24%2024zM40%20368c-13.3%200-24%2010.7-24%2024l0%2048c0%2013.3%2010.7%2024%2024%2024l48%200c13.3%200%2024-10.7%2024-24l0-48c0-13.3-10.7-24-24-24l-48%200z'/></svg>"); }
.i-globe { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M351.9%20280l-190.9%200c2.9%2064.5%2017.2%20123.9%2037.5%20167.4%2011.4%2024.5%2023.7%2041.8%2035.1%2052.4%2011.2%2010.5%2018.9%2012.2%2022.9%2012.2s11.7-1.7%2022.9-12.2c11.4-10.6%2023.7-28%2035.1-52.4%2020.3-43.5%2034.6-102.9%2037.5-167.4zM160.9%20232l190.9%200C349%20167.5%20334.7%20108.1%20314.4%2064.6%20303%2040.2%20290.7%2022.8%20279.3%2012.2%20268.1%201.7%20260.4%200%20256.4%200s-11.7%201.7-22.9%2012.2c-11.4%2010.6-23.7%2028-35.1%2052.4-20.3%2043.5-34.6%20102.9-37.5%20167.4zm-48%200C116.4%20146.4%20138.5%2066.9%20170.8%2014.7%2078.7%2047.3%2010.9%20131.2%201.5%20232l111.4%200zM1.5%20280c9.4%20100.8%2077.2%20184.7%20169.3%20217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5%20280zm398.4%200c-3.5%2085.6-25.6%20165.1-57.9%20217.3%2092.1-32.7%20159.9-116.5%20169.3-217.3l-111.4%200zm111.4-48C501.9%20131.2%20434.1%2047.3%20342%2014.7%20374.3%2066.9%20396.4%20146.4%20399.9%20232l111.4%200z'/></svg>"); }
.i-question { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><%21--%20Eldva's%20own%20drawing.%20--><path%20fill-rule='evenodd'%20d='M256%2040c119%200%20216%2097%20216%20216s-97%20216-216%20216S40%20375%2040%20256%20137%2040%20256%2040zm0%2048c-93%200-168%2075-168%20168s75%20168%20168%20168%20168-75%20168-168S349%2088%20256%2088zm2%2056c44%200%2078%2028%2078%2068%200%2030-17%2047-36%2060-16%2011-20%2016-20%2026v6h-48v-10c0-28%2015-43%2034-56%2016-11%2022-16%2022-26%200-12-12-20-30-20-17%200-29%208-37%2022l-40-24c15-28%2043-46%2077-46zm-2%20188c17%200%2030%2013%2030%2030s-13%2030-30%2030-30-13-30-30%2013-30%2030-30z'/></svg>"); }
.i-external { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M320%200c-17.7%200-32%2014.3-32%2032s14.3%2032%2032%2032l82.7%200-201.4%20201.4c-12.5%2012.5-12.5%2032.8%200%2045.3s32.8%2012.5%2045.3%200L448%20109.3%20448%20192c0%2017.7%2014.3%2032%2032%2032s32-14.3%2032-32l0-160c0-17.7-14.3-32-32-32L320%200zM80%2096C35.8%2096%200%20131.8%200%20176L0%20432c0%2044.2%2035.8%2080%2080%2080l256%200c44.2%200%2080-35.8%2080-80l0-80c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%2080c0%208.8-7.2%2016-16%2016L80%20448c-8.8%200-16-7.2-16-16l0-256c0-8.8%207.2-16%2016-16l80%200c17.7%200%2032-14.3%2032-32s-14.3-32-32-32L80%2096z'/></svg>"); }
.i-sun { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M361.5%201.2c5%202.1%208.6%206.6%209.6%2011.9L391%20121l107.9%2019.8c5.3%201%209.8%204.6%2011.9%209.6s1.5%2010.7-1.6%2015.2L446.9%20256l62.3%2090.3c3.1%204.5%203.7%2010.2%201.6%2015.2s-6.6%208.6-11.9%209.6L391%20391%20371.1%20498.9c-1%205.3-4.6%209.8-9.6%2011.9s-10.7%201.5-15.2-1.6L256%20446.9l-90.3%2062.3c-4.5%203.1-10.2%203.7-15.2%201.6s-8.6-6.6-9.6-11.9L121%20391%2013.1%20371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7%201.6-15.2L65.1%20256%202.8%20165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6%2011.9-9.6L121%20121%20140.9%2013.1c1-5.3%204.6-9.8%209.6-11.9s10.7-1.5%2015.2%201.6L256%2065.1%20346.3%202.8c4.5-3.1%2010.2-3.7%2015.2-1.6zM160%20256a96%2096%200%201%201%20192%200%2096%2096%200%201%201%20-192%200zm224%200a128%20128%200%201%200%20-256%200%20128%20128%200%201%200%20256%200z'/></svg>"); }
.i-moon { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-89.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202024%20Fonticons%2C%20Inc.%20--><path%20d='M223.5%2032C100%2032%200%20132.3%200%20256S100%20480%20223.5%20480c60.6%200%20115.5-24.2%20155.8-63.4c5-4.9%206.3-12.5%203.1-18.7s-10.1-9.7-17-8.5c-9.8%201.7-19.8%202.6-30.1%202.6c-96.9%200-175.5-78.8-175.5-176c0-65.8%2036-123.1%2089.3-153.3c6.1-3.5%209.2-10.5%207.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z'/></svg>"); }
.i-auto { mask-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25.6%20-25.6%20563.2%20563.2'><%21--%21%20Font%20Awesome%20Free%207.2.0%20by%20%40fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20%28Icons:%20CC%20BY%204.0%2C%20Fonts:%20SIL%20OFL%201.1%2C%20Code:%20MIT%20License%29%20Copyright%202025%20Fonticons%2C%20Inc.%20--><path%20d='M448%20256c0-106-86-192-192-192l0%20384c106%200%20192-86%20192-192zM0%20256a256%20256%200%201%201%20512%200%20256%20256%200%201%201%20-512%200z'/></svg>"); }

/* The account chooser and account lists: the app's rows */
.accounts { list-style: none; margin: 0 0 12px; padding: 0; }
.account-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}
button.account-row:hover, a.account-row:hover { background: var(--selected); }
.account-row .who { flex: 1; min-width: 0; }
.account-row .name { display: block; font-weight: 600; }
.account-row .detail { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* People are round, with initials at four tenths of the size, as in the app. */
.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  background: var(--avatar-0);
}
.avatar.c1 { background: var(--avatar-1); } .avatar.c2 { background: var(--avatar-2); }
.avatar.c3 { background: var(--avatar-3); } .avatar.c4 { background: var(--avatar-4); }
.avatar.c5 { background: var(--avatar-5); } .avatar.c6 { background: var(--avatar-6); }
.avatar.c7 { background: var(--avatar-7); } .avatar.c8 { background: var(--avatar-8); }
.avatar.c9 { background: var(--avatar-9); }
img.avatar { object-fit: cover; background: var(--selected); }
.avatar.big { width: 72px; height: 72px; font-size: 29px; }
.avatar.huge { width: 128px; height: 128px; font-size: 51px; }

/* The profile page ------------------------------------------------------------------------
   The security page's grid: a column of reading width with a heading over each group (the
   picture as the anchor, the form, the address), and the account's facts as quiet lines
   beside them where there is room, under them where there is not. */
.profile { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 340px); gap: 28px 48px; align-items: start; }
@media (max-width: 1260px) { .profile { grid-template-columns: minmax(0, 640px); } }
.profile-main { display: grid; gap: 28px; min-width: 0; }
.profile h2 { margin: 0 0 8px; font-size: 16px; min-height: 24px; }
.profile-card { border-radius: 12px; background: var(--hover); border: 1px solid var(--border); }
.picture-card { display: flex; align-items: center; gap: 24px; padding: 20px; }
/* A file dragged over the group: the group takes a tone and the picture a dashed ring. */
.picture-card.dropping { background: var(--selected); }
.picture-card.dropping .picture-frame { outline: 2px dashed var(--accent); outline-offset: 4px; }
.picture-frame { flex: none; line-height: 0; border-radius: 50%; }
.picture-side { flex: 1; min-width: 0; }
.picture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picture-actions form { margin: 0; }
.picture-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picture-form input[type=file] { flex: 1 1 220px; min-width: 0; max-width: 100%; font: inherit; color: var(--muted); }
.picture-form input[type=file]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 4px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 7px;
  cursor: pointer;
}
.picture-form input[type=file]::file-selector-button:hover { background: var(--selected); }
.picture-choose { display: none; margin: 0; }
.picture-form.enhanced { position: relative; }
.picture-form.enhanced .picture-choose { display: inline-flex; }
.picture-form.enhanced input[type=file] { position: absolute; width: 1px; height: 1px; flex: none; opacity: 0; overflow: hidden; }
.picture-form.enhanced input[type=file]:focus-visible + .picture-choose { outline: 2px solid var(--focus); outline-offset: 2px; }
.picture-side .hint { margin: 8px 0 0; }
.color-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-top: 16px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: none; min-width: 0; }
.swatches legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
/* The hairline inside keeps a dark swatch in sight on a dark group. */
.swatch { position: relative; width: 26px; height: 26px; margin: 0; border-radius: 50%; background: var(--avatar-0); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.swatch.c1 { background: var(--avatar-1); } .swatch.c2 { background: var(--avatar-2); } .swatch.c3 { background: var(--avatar-3); }
.swatch.c4 { background: var(--avatar-4); } .swatch.c5 { background: var(--avatar-5); } .swatch.c6 { background: var(--avatar-6); }
.swatch.c7 { background: var(--avatar-7); } .swatch.c8 { background: var(--avatar-8); } .swatch.c9 { background: var(--avatar-9); }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* The chosen colour, and the one the keyboard is on, wear a ring off the swatch. */
.swatch:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 2px var(--hover), 0 0 0 4px var(--text); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 5px; }
.profile-form { padding: 20px; }
.profile-form .field { max-width: none; }
.profile-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 20px; }
.profile-row-text { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.profile-aside { min-width: 0; }
.pair-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.field .label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .value { display: block; overflow-wrap: anywhere; }
.quiet-lines { display: grid; gap: 10px; margin: 0; }
.quiet-lines > div { display: flex; flex-direction: column; }
.quiet-lines dt { color: var(--muted); font-size: 13px; }
.quiet-lines dd { margin: 0; }
@media (max-width: 1260px) { .quiet-lines { grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); gap: 10px 40px; } }
@media (max-width: 560px) {
  .picture-card { align-items: flex-start; gap: 16px; padding: 16px; }
  .avatar.huge { width: 80px; height: 80px; font-size: 32px; }
  .swatches { gap: 6px; }
  .swatch { width: 24px; height: 24px; }
  .profile-form { padding: 16px; }
  .profile-row { padding: 14px 16px; }
  .pair-fields { grid-template-columns: minmax(0, 1fr); }
}

.badge { display: inline-block; font-size: 12px; font-weight: 400; line-height: 18px; padding: 0 8px; border-radius: 999px; background: var(--selected); color: var(--text); }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.danger { background: var(--danger); color: var(--on-danger); }

/* Lists and tables inside cards */
.section { padding: 16px 0; }
.section:first-of-type { padding-top: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 40px; padding: 7px 0; }
.list .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .what input { margin-top: 2px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
th, td { text-align: left; padding: 8px 6px; vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; }
nav.tabs a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
nav.tabs a:hover { background: var(--hover); }
nav.tabs a[aria-current=page], nav.tabs a[aria-current=page]:hover { background: var(--selected); color: var(--accent); }

.faq { margin: 0; }
.faq dt { font-weight: 600; }
.faq dd { margin: 2px 0 12px; }
.faq dd:last-child { margin-bottom: 0; }

.codes { columns: 2; font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: 15px; padding-left: 20px; }
.secret { font-family: ui-monospace, monospace; overflow-wrap: anywhere; background: var(--selected); padding: 5px 8px; border-radius: 6px; }
.qr { display: block; margin: 0 auto 14px; width: 168px; height: 168px; image-rendering: pixelated; background: #ffffff; padding: 8px; border-radius: 8px; }
details.section > summary { cursor: pointer; color: var(--accent); margin-bottom: 10px; }

/* The language and theme switches: the app's segmented control, 8 px outside and 6 px inside,
   opaque so it reads on the gradient as well as on the page. */
footer.bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 16px 28px; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--hover); border-radius: 8px; }
.switch > .icon { margin: 0 4px 0 7px; }
.switch a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 6px; color: var(--muted); font-weight: 600; text-decoration: none; }
.switch a:hover { color: var(--text); }
.switch a[aria-current=true] { background: var(--selected); color: var(--accent); }

/* The same choices on the settings page */
.choices { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--selected); border-radius: 8px; }
.choices a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: 6px; color: var(--muted); font-weight: 600; text-decoration: none; }
.choices a:hover { color: var(--text); }
.choices a[aria-current=true] { background: var(--surface); color: var(--accent); }

/* Security page (account_security.html, account_passkey.html) -------------------------------
   A column of reading width with two groups, each a heading on the panel and its methods in a
   group's tone: how you sign in, and the second step. Each method is a name with its state
   under it and its action close beside it; the passkeys are a list of rows in the selected
   tint inside their group, each with two quiet text actions. The recent sign-ins and changes
   stand beside the column, untinted, and move under it where there is no room. */
.sec-page { display: grid; grid-template-columns: minmax(0, 640px) minmax(280px, 380px); gap: 28px 40px; align-items: start; }
@media (max-width: 1260px) { .sec-page { grid-template-columns: minmax(0, 640px); } }
.sec-main { display: grid; gap: 24px; min-width: 0; }
.sec-page h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 24px; margin: 0 0 10px; font-size: 15.5px; letter-spacing: -.01em; }
.sec-required { color: var(--muted); font-size: 13px; font-weight: 400; }
.sec-card { padding: 4px 20px; border-radius: 12px; background: var(--hover); border: 1px solid var(--border); }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 0; }
.sec-row + .sec-row, .sec-row + .confirm-act, .confirm-act + .confirm-act { border-top: 1px solid var(--border); }
.sec-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.sec-row > .sec-text { flex: 1 1 180px; }
.sec-row .item-detail { text-wrap: balance; }
.sec-row > .button, .sec-row > form { flex: none; }
.sec-keys { list-style: none; display: grid; gap: 4px; margin: -2px 0 14px; padding: 0; }
.sec-keys li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 10px 14px; border-radius: 8px; background: var(--selected); }
.sec-keys .sec-text { flex: 1 1 200px; }
.sec-key-actions { display: flex; align-items: center; gap: 18px; }
.sec-aside { min-width: 0; }
.sec-events { list-style: none; margin: 0 0 6px; padding: 0; }
.sec-events li { display: flex; flex-direction: column; padding: 6px 0 8px; overflow-wrap: anywhere; }
@media (max-width: 1260px) { .sec-aside { max-width: 640px; } }
/* The passkey step, in the frame of the other set-up steps: the field as wide as the button,
   and the note on browsers that cannot make passkeys gone once app.js has shown the name and
   the button. */
.passkey-step h1 { margin-bottom: 12px; }
.passkey-step .field { max-width: none; }
.passkey-unavailable { margin: 0 0 12px; }
[data-passkey-only]:not(.hidden) ~ .passkey-unavailable { display: none; }

/* Billing (org_billing.html and the subscribe steps, org_invoice.html) ----------------------
   The security page's grid and groups. A state that needs the admin is a word in the warning
   colour. The subscribe flow is one column of reading width: a quiet step count, a heading,
   the choices as rows in a group's tone (the chosen one in the selected tint), the filled
   button and a quiet one beside it. An invoice is a document of the same width in a group's
   tone, and alone on paper when printed. */
.org-plan { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.org-plan.due { color: var(--warning-text); font-weight: 600; }
.bill-alerts .alert:last-child { margin-bottom: 0; }
.state.due { color: var(--warning-text); }
.bill-invoices { list-style: none; margin: 0; padding: 4px 0; }
.bill-invoices li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 4px 24px; padding: 8px 0; }
.bill-invoices a { font-weight: 600; text-decoration: none; }
.bill-invoices a:hover { text-decoration: underline; }
.bill-amount { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
  .bill-invoices li { grid-template-columns: minmax(0, 1fr) auto; }
  .bill-invoices li .item-detail { grid-row: 2; }
}
.bill-step { max-width: 640px; }
.bill-steps { margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.bill-step-title { margin: 0 0 14px; font-size: 16px; }
/* Unified segmented option cards: one bordered container with crisp dividers between choices
   instead of separate floating slabs of varying heights. */
.bill-choices { display: grid; gap: 0; margin: 0 0 16px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--hover); overflow: hidden; min-width: 0; }
.bill-choice { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 18px; background: transparent; font-weight: 400; cursor: pointer; }
.bill-choice + .bill-choice { border-top: 1px solid var(--border); }
.bill-choice:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.bill-choice:has(input:checked) { background: color-mix(in srgb, var(--accent) 12%, var(--hover)); }
.bill-choice input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.bill-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.bill-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.bill-step .field { max-width: none; }
.bill-summary { padding: 8px 20px; margin-bottom: 16px; }
.bill-lines, .invoice-totals, .invoice-dates { margin: 0; }
.bill-lines > div, .invoice-totals > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 9px 0; }
.bill-lines dt, .invoice-totals dt { color: var(--muted); }
.bill-lines dd, .invoice-totals dd { margin: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.bill-lines dd.bill-amount, .invoice-totals dd { text-align: left; }
.bill-total dt, .bill-total dd { color: var(--text); font-weight: 600; font-size: 15px; }
.bill-note { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.bill-back { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 6px 0 14px; }
.invoice { max-width: 640px; padding: 28px 32px 24px; border-radius: 10px; background: var(--hover); }
.invoice-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 24px; }
.invoice-head h1 { margin: 0; }
.invoice-dates > div { display: flex; gap: 12px; }
.invoice-dates dt { color: var(--muted); }
.invoice-dates dd { margin: 0; }
.invoice-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; margin-bottom: 24px; }
.invoice-parties h2 { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.invoice-party { display: flex; flex-direction: column; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.invoice-party span { font-weight: 400; }
.invoice-lines { margin-bottom: 8px; }
.invoice-lines th, .invoice-lines td { padding: 8px 0; }
.invoice-lines th + th, .invoice-lines td + td { padding-left: 24px; }
.invoice-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-totals { margin-left: auto; max-width: 360px; }
.invoice-totals > div { grid-template-columns: minmax(0, 1fr) auto; }
.invoice-totals dt { text-align: right; }
.invoice-totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-paid { margin: 18px 0 4px; font-weight: 600; }
.invoice-note { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .invoice { padding: 18px 16px; }
  .invoice-parties { grid-template-columns: minmax(0, 1fr); }
  .bill-lines > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.fake-amount {
  margin: 14px 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* An organisation's admin pages (org.html, org_person.html, org_signin_*.html) -----------------
   The security page's grid and groups. Lists of people and log entries are rows inside a group's
   tone; a DNS record to copy sits inside its domain's group in the selected tint, each value a
   line of monospace with a quiet Copy beside it (shown only with script). A row's actions sit
   together at its right; the guided set-up of company sign-in is the subscribe flow's column. */
ol.sec-card, ul.sec-card { list-style: none; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.row-actions form { margin: 0; }
.domain-row + .dns-record { margin-top: -4px; }
.dns-record { margin: 0 0 14px; padding: 12px 16px 14px; border-radius: 8px; background: var(--selected); }
.dns-lead { margin: 0 0 8px; }
.dns-record dl { display: grid; gap: 6px; margin: 0 0 8px; }
.dns-record dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.dns-record dt { color: var(--muted); font-size: 13px; }
.dns-record dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; min-width: 0; }
code { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.dns-host-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.dns-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dns-check form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.inline-form input { flex: 1 1 220px; width: auto; }
.after-group { margin: 10px 0 0; }
.copy-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 0; }
.conn-details { margin: -4px 0 12px; }
.conn-details > summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; width: max-content; }
.conn-details .quiet-lines { margin: 10px 0 10px; grid-template-columns: minmax(0, 1fr); }
.conn-details dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.invite-form { padding: 16px 20px 18px; }
.invite-form .field, .setup-form .field, .admin-form .field { max-width: none; }
textarea { resize: vertical; min-height: 76px; }
.invite-addresses { font-weight: 600; overflow-wrap: anywhere; }
.people { padding: 4px 20px; }
.people > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 12px 0; }
.people > li + li { border-top: 1px solid var(--border); }
.people .sec-text { flex: 1 1 220px; }
.people a.item-name { text-decoration: none; }
.people a.item-name:hover { text-decoration: underline; }
.people form { margin: 0; }
.card-stack { padding: 0; overflow: hidden; }
.card-flush { list-style: none; margin: 0; padding: 4px 20px; }
.card-empty { margin: 0; padding: 16px 20px; }
.card-foot { padding: 14px 20px 16px; border-top: 1px solid var(--border); }
.card-foot .hint { margin: 8px 0 0; }
.aside-lead { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; overflow-wrap: anywhere; }
.aside-list li + li { border-top: 1px solid var(--border); }
.checks { display: grid; gap: 14px; padding: 16px 20px; }
.checks .check { margin: 0; }
.checks .hint { margin-top: 2px; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 18px 20px 6px; }
@media (max-width: 560px) { .numbers { grid-template-columns: minmax(0, 1fr); } }
.sec-page.wide-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1120px; gap: 28px 36px; }
@media (max-width: 1180px) { .sec-page.wide-aside { grid-template-columns: minmax(0, 640px); } }
.sec-aside-stack { display: grid; gap: 24px; min-width: 0; }
.sec-main > form { display: grid; gap: 24px; }
.sec-main > form > .bill-buttons { margin-top: -8px; }
.check-off { display: flex; flex-direction: column; margin: 0; padding-left: 30px; }
.check-off .hint { margin-top: 2px; }
.org-role-word { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.org-role-badge { font-weight: 600; vertical-align: middle; }
/* The head of an organisation's pages: the name with the admin's role and the plan's quiet
   line, and at its right, for an admin of more than one organisation, the switch to another, a
   quiet button that opens the account menu's panel. */
.org-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 24px; }
.org-head-text { min-width: 0; overflow-wrap: anywhere; }
.org-switch { position: relative; }
.org-switch > summary { list-style: none; }
.org-switch > summary::-webkit-details-marker { display: none; }
.org-switch > summary .icon { width: 12px; height: 12px; }
.org-switch[open] > summary { background: var(--selected); }
.org-switch .menu-panel { z-index: 5; }
.org-switch .menu-links { margin: 0; }
.org-switch .menu-links a { height: auto; min-height: 40px; padding: 5px 10px; }
.org-switch .who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.org-switch .name { font-weight: 600; }
.org-switch .detail { color: var(--muted); font-size: 12.5px; }
@media (max-width: 860px) { .org-switch .menu-panel { left: 0; right: auto; } }

/* The overview of an organisation in use: three facts side by side, each a group in a step of
   tone that opens its section (the label is the link, and the whole group answers to it); under
   them what needs attention, a row each with the section where it is done. */
.sec-page.overview-page { grid-template-columns: minmax(0, 760px); }
.org-facts-box { container-type: inline-size; }
.org-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; align-items: stretch; }
.org-fact { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 20px; border-radius: 12px; background: var(--hover); border: 1px solid var(--border); overflow-wrap: anywhere; }
.org-fact:hover { background: var(--selected); }
.org-fact dt a { font-size: 13px; font-weight: 600; text-decoration: none; }
.org-fact dt a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.org-fact dt { padding-right: 18px; white-space: nowrap; }
.org-fact dt a .icon { position: absolute; top: 18px; right: 16px; width: 12px; height: 12px; }
.org-fact dd { margin: 0; }
.org-fact .fact-value { margin: 2px 0 2px; }
/* Each label stays on one line, so the three values share a line: where three do not fit side
   by side with their labels whole, the facts stack. */
@container (max-width: 680px) { .org-facts { grid-template-columns: minmax(0, 1fr); } }
.attention .sec-row > .more { flex: none; }

/* The account's organisations: a row each, and under a work account's organisation, where the
   account only belongs to it, its administrators to ask. */
.org-contacts { flex: 1 1 100%; min-width: 0; }
.org-contacts > p { margin: 0 0 6px; }
.org-contacts .sec-keys { margin: 0 0 4px; }
.org-contacts .sec-keys a { overflow-wrap: anywhere; }
.back-link a { display: inline-flex; align-items: center; gap: 2px; }
.back-link .icon { width: 12px; height: 12px; transform: rotate(180deg); }
.sec-main > .back-link { margin-bottom: -16px; }
.dns-record code, .copy-line code { word-break: break-all; }
.numbers .field { max-width: none; }
.admin-form { padding: 16px 20px 18px; }
.log-list { padding: 4px 20px; }
.log-list > li { display: flex; flex-direction: column; padding: 10px 0; overflow-wrap: anywhere; }
.log-list > li + li { border-top: 1px solid var(--border); }
.log-reason { margin-top: 2px; }
.back-link { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.setup-steps { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.setup-steps li { padding-left: 4px; }
.setup-form { padding: 16px 20px 18px; margin-bottom: 16px; }
.setup-form .bill-buttons { margin-top: 6px; }

/* Groups and Outside the organisation (org.html, org_group.html) ------------------------------
   The same groups and rows. A select in a one-line form takes the room an input would; the
   choice of a list beside a domain stays as wide as its words. The exceptions are a list in a
   group's tone, in the order they win: a name with its rules in words, whom it applies to as
   rows in the selected tint, and Assign and Change as summaries that open in place; an open one
   takes the whole width. A confirmation to delete is a row that opens (no script). */
.inline-form select { flex: 1 1 180px; width: auto; min-width: 0; }
.inline-form select.narrow { flex: none; }
.sec-group > .hint { margin: 6px 0 0; }
.sec-main > form > .bill-buttons + .hint { margin: -20px 0 0; }
.policy-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.policy-list > li { display: grid; gap: 8px; min-width: 0; padding: 16px 20px 14px; border-radius: 12px; background: var(--hover); border: 1px solid var(--border); }
.policy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.policy-head > .sec-text { flex: 1 1 260px; }
.policy-head .row-actions { gap: 4px 16px; }
.policy-list .sec-keys { margin: 0; }
.policy-unused { margin: 0; }
.policy-more { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.policy-more > details { margin: 0; }
.policy-more > details[open] { flex-basis: 100%; }
.assign-forms { display: grid; gap: 12px; margin: 10px 0 4px; }
.assign-forms .hint { margin: 0; }
.rules-form { display: grid; gap: 4px; margin: 10px 0 12px; }
.rules-form .field { max-width: none; }
.rules-form .bill-buttons { margin-top: 10px; }
.admin-form.rules-form { margin: 10px 0 0; }
fieldset.checks { margin: 0; border: none; min-width: 0; }
.rules-compact { padding: 0; gap: 8px; }
.rules-legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.bill-choices > .rules-legend { display: block; width: 100%; padding: 12px 18px 10px; margin: 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 40%, var(--hover)); }
.bill-choices.rules-links > .hint { padding: 10px 18px 12px; margin: 0; border-top: 1px solid var(--border); }
.rules-compact .rules-gap { margin-top: 6px; }
.rules-compact.rules-links { margin-top: 14px; }
.group-exception { flex: 1 1 100%; max-width: none; margin: 0; }
.row-actions select { width: auto; max-width: 240px; }
.new-exception { margin-top: 12px; }
.new-exception > summary { list-style: none; }
.new-exception > summary::-webkit-details-marker { display: none; }
.new-exception[open] > summary { background: var(--selected); }
@media print {
  body, body.app { height: auto; overflow: visible; background: #ffffff; color: #000000; }
  .topbar, .side, footer.bottom, .bill-back, .skip { display: none !important; }
  .frame { display: block; overflow: visible; }
  .panel { margin: 0; background: none; overflow: visible; }
  .invoice { max-width: none; padding: 0; background: none; }
}

.hidden { display: none !important; }
.js-only { visibility: hidden; }
img.avatar, img.app-icon { display: block; flex: none; }
pre.mail { white-space: pre-wrap; background: var(--hover); padding: 10px; border-radius: 8px; font-size: 13px; }

/* Staff console (staff*.html) -----------------------------------------------------------------
   The security page's grid and groups. A change is a row of its group that opens (a <details>,
   no script) into a small form with the reason it needs; its button is a quiet one. Found
   things and log entries are rows of a name and quieter lines. */
.staff-sub { margin: 2px 0 0; font-size: 13px; }
.staff-sub .state + .state { margin-left: 12px; }
.staff-alerts, .staff-column { max-width: 640px; }
.staff-column { display: grid; gap: 28px; }
.staff-find .field { max-width: none; margin: 0; }
.staff-hits { list-style: none; margin: 0; padding: 4px 0; }
.staff-hits li { display: flex; flex-direction: column; padding: 8px 0; overflow-wrap: anywhere; }
.staff-act > summary, .confirm-act > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 0; list-style: none; cursor: pointer; }
.staff-act > summary::-webkit-details-marker, .confirm-act > summary::-webkit-details-marker { display: none; }
.staff-act > summary > .sec-text, .confirm-act > summary > .sec-text { flex: 1 1 180px; }
.staff-act > summary > .button, .confirm-act > summary > .button { flex: none; }
.staff-act[open] > summary > .button, .confirm-act[open] > summary > .button { background: var(--selected); }
.staff-act > form, .confirm-act > form { padding: 2px 0 16px; }
.staff-act textarea { min-height: 72px; resize: vertical; }
.staff-act .field { max-width: none; }
.staff-id { font-family: ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.sec-page .staff-aside-h { margin-top: 28px; }
.sec-page .sec-aside > .staff-aside-h:first-child { margin-top: 0; }

/* People rows with avatars, search/filter bar, and person page header */
.person-ident { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.person-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.person-head h2 { margin: 0; }
.people-filter { margin-bottom: 10px; align-items: center; }
.conflicts-all { margin-bottom: 10px; }
.settings-accounts { padding: 14px 16px 16px; }
.settings-accounts .accounts { margin-bottom: 10px; }

/* Subtle, accessible transitions when the user has not requested reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  a, button, .button, .side a, .org-fact, .bill-choice, .account-row, .menu > summary,
  .org-kpi, .org-group-card, .org-option-tile, .org-toggle-card, .org-switch, .org-switch::before {
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, filter 120ms ease, transform 140ms ease;
  }
}

/* ============================================================================================
   Organisation Workspace Console (rebuilt from scratch: identity-first rail, section masthead,
   bordered elevated surfaces, horizontal option studios, CSS toggle switches, directory grids)
   ============================================================================================ */

/* Compact Linear/Stripe-style org switcher in the sidebar rail */
.org-rail-switcher,
.org-rail-static {
  position: relative;
  margin: 8px 0 16px;
}
.org-rail-trigger,
.org-rail-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.org-rail-trigger {
  list-style: none;
  cursor: pointer;
}
.org-rail-trigger::-webkit-details-marker { display: none; }
.org-rail-trigger:hover,
.org-rail-switcher[open] > .org-rail-trigger {
  background: var(--hover);
  border-color: var(--field-border);
}
.org-rail-caret {
  width: 12px;
  height: 12px;
  color: var(--muted);
  flex: none;
}
.org-rail-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.org-rail-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}
.org-rail-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.org-rail-plan.due { color: var(--danger); font-weight: 600; }

.org-rail-switcher .menu-panel {
  left: 0;
  right: 0;
  min-width: 0;
  width: 100%;
  top: calc(100% + 6px);
  z-index: 20;
}
.org-rail-switcher .menu-label { margin: 6px 10px 2px; padding: 0; }
.org-rail-switcher .menu-links { margin: 0; padding: 4px 6px 6px; }
.org-rail-switcher .menu-links a { height: auto; min-height: 38px; padding: 6px 10px; }
.org-rail-switcher .who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.org-rail-switcher .name { font-weight: 600; }
.org-rail-switcher .detail { font-size: 12px; color: var(--muted); }

.org-rail-label {
  margin: 0 0 4px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.side[data-org] .side-group + .side-group { margin-top: 16px; }
.side[data-org] li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
}
.side[data-org] li a .icon { width: 15px; height: 15px; flex: none; opacity: .75; }
.side[data-org] li a[aria-current="page"],
.side[data-org] li a[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.side[data-org] li a[aria-current="page"] .icon,
.side[data-org] li a[aria-current="true"] .icon {
  color: var(--accent);
  opacity: 1;
}

/* Workspace canvas & section-first masthead */
.org-ws {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  width: 100%;
}
.org-alerts { display: grid; gap: 10px; }
.org-alerts .alert { margin: 0; }
@media (min-width: 721px) {
  .org-alerts {
    position: fixed;
    bottom: 24px;
    right: 28px;
    z-index: 40;
    width: min(420px, calc(100vw - 56px));
    pointer-events: none;
  }
  .org-alerts .alert {
    pointer-events: auto;
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border);
  }
}

.org-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.org-mast-text { min-width: 0; }
.org-crumb {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.org-mast h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.org-count {
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--border);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.org-mast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.org-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.org-plan-pill:hover { background: var(--selected); }
.org-plan-pill.due { background: var(--warning-bg); color: var(--warning-text); border-color: transparent; }
.org-plan-pill .icon { width: 11px; height: 11px; }

.org-back-crumb {
  margin: 0 0 -10px;
  font-size: 13px;
  font-weight: 600;
}
.org-back-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.org-back-crumb a:hover { text-decoration: underline; }
.org-back-crumb .icon { width: 12px; height: 12px; transform: rotate(180deg); }

/* Core surface cards */
.org-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
}
.org-surface-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 20px;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  border-radius: 13px 13px 0 0;
}
.org-surface-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.org-surface-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.org-surface-foot {
  padding: 14px 20px 16px;
  background: var(--hover);
  border-top: 1px solid var(--border);
  border-radius: 0 0 13px 13px;
}
.org-surface-foot .hint { margin: 8px 0 0; }
.org-form-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}
.org-form-body .field { margin: 0; max-width: none; }
.org-form-flush { padding: 0; }

/* Layout grids */
.org-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.org-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.org-grid-stretch { align-items: stretch; }
.org-grid-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.org-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .org-grid-2, .org-grid-main-aside, .org-bento { grid-template-columns: minmax(0, 1fr); }
}

/* Pills & tags */
.org-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.org-pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.org-pill.due { background: var(--warning-bg); color: var(--warning-text); }
.org-pill.off { background: var(--hover); color: var(--muted); border: 1px solid var(--border); }
.org-pill.role { background: var(--selected); color: var(--accent); }
.org-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Shared row primitives */
.org-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.org-row-title { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
a.org-row-title:hover { color: var(--accent); text-decoration: underline; }
.org-row-sub { font-size: 13px; color: var(--muted); }
.org-row-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none; }
.org-inline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }

/* Horizontal 4-step Onboarding Stepper */
.org-stepper {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.org-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--hover);
}
.org-step.is-next {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.org-step-top { display: flex; align-items: center; gap: 8px; }
.org-step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: none;
}
.org-step.is-done .org-step-num {
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok-text);
}
.org-step.is-done .org-step-num .icon { width: 12px; height: 12px; }
.org-step.is-next .org-step-num {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
}
.org-step-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.org-step-state { margin: 0; font-size: 12.5px; color: var(--muted); }
.org-step-act { margin-top: auto; padding-top: 4px; }
@media (max-width: 960px) { .org-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .org-stepper { grid-template-columns: minmax(0, 1fr); } }

/* 3-Column KPI Stat Strip */
.org-ws .org-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  align-items: stretch;
}
.org-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}
.org-kpi:hover {
  background: var(--hover);
  border-color: var(--field-border);
}
.org-kpi dt {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.org-kpi dt > .icon { width: 15px; height: 15px; flex: none; }
.org-kpi dt a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.org-kpi dt a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.org-kpi dt a .icon { width: 15px; height: 15px; }
.org-kpi-arrow { margin-inline-start: auto; opacity: .6; }
.org-kpi:hover .org-kpi-arrow { opacity: 1; color: var(--accent); }
.org-kpi dd { margin: 0; }
.org-kpi-val {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.org-kpi-sub { font-size: 13px; color: var(--muted); }
.org-kpi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
@media (max-width: 820px) { .org-ws .org-facts { grid-template-columns: minmax(0, 1fr); } }

/* Callout banners (Attention, Conflicts, Domain prompt) */
.org-callout {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--hover);
  border: 1px solid var(--border);
}
.org-callout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.org-callout-warn {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: color-mix(in srgb, var(--warning-text) 25%, transparent);
}
.org-callout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.org-callout-head > .icon { width: 18px; height: 18px; flex: none; }
.org-callout-head h2 { margin: 0; font-size: 14px; font-weight: 600; color: inherit; }
.org-callout-warn .org-row-title,
.org-callout-warn .org-row-sub { color: var(--warning-text); }
.org-callout-head form { margin-inline-start: auto; }
.org-callout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.org-callout-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.org-callout-list .org-row-title { color: var(--text); }
.org-conflict-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.org-conflict-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.org-conflict-grid .org-row-title { color: var(--text); font-size: 13.5px; }
@media (max-width: 720px) { .org-conflict-grid { grid-template-columns: minmax(0, 1fr); } }

/* Connected Eldva Apps list */
.org-apps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-apps-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 20px;
}
.org-apps-list li + li { border-top: 1px solid var(--border); }
.org-app-ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-app-ident .org-pill { align-self: flex-start; margin-top: 2px; }

/* Floating action popovers (Invite people, New exception — zero layout shift) */
.org-drawer {
  position: relative;
}
.org-drawer > summary {
  list-style: none;
  width: fit-content;
}
.org-drawer > summary::-webkit-details-marker { display: none; }
.org-drawer-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-raised);
}
.org-popover-drawer .org-drawer-body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(460px, calc(100vw - 48px));
  z-index: 30;
}
@media (max-width: 680px) {
  .org-popover-drawer .org-drawer-body { right: auto; left: 0; }
}
.org-drawer-body .field { margin: 0; max-width: none; }
.org-drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.org-surface-foot .new-exception {
  position: relative;
  margin: 0;
  width: fit-content;
}
.org-surface-foot .org-new-exc-form {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: min(440px, calc(100vw - 48px));
  margin: 0;
  z-index: 30;
  box-shadow: var(--shadow-raised);
}

/* Quick creation bar (Groups, Domains) */
.org-create-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--hover);
  border: 1px solid var(--border);
  align-items: center;
}
.org-create-bar input { flex: 1 1 240px; min-width: 0; }
.org-create-bar button { flex: none; }

/* Directory toolbar & structured rows (People, Admins) */
.org-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  border-radius: 13px 13px 0 0;
}
.org-toolbar input { flex: 1 1 220px; min-width: 0; }
.org-toolbar select { width: auto; flex: none; }

.org-dir { list-style: none; margin: 0; padding: 0; }
.org-dir-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(160px, 1fr) minmax(170px, auto);
  gap: 10px 20px;
  align-items: center;
  padding: 14px 20px;
}
.org-dir-row:has(.org-row-go) { cursor: pointer; }
.org-row-go::after { content: ""; position: absolute; inset: 0; }
.org-dir-row + .org-dir-row { border-top: 1px solid var(--border); }
.org-dir-row:hover { background: var(--hover); }
.org-dir-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-dir-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; font-size: 13px; }
.org-meta-item { color: var(--text); overflow-wrap: anywhere; }
.org-meta-muted { color: var(--muted); }
.org-dir-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.org-row-go {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--muted);
}
.org-row-go:hover { background: var(--selected); color: var(--accent); }
.org-row-go .icon { width: 12px; height: 12px; }
@media (max-width: 780px) {
  .org-dir-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .org-dir-end { justify-content: flex-start; }
}

/* Simple list inside a surface */
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list > li,
.org-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 20px;
}
.org-list > li + li,
.org-list-row + .org-list-row,
.org-list-row + .org-confirm-row,
.org-confirm-row + .org-list-row,
.org-confirm-row + .org-confirm-row { border-top: 1px solid var(--border); }

.org-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 36px 24px;
  color: var(--muted);
}
.org-empty p { margin: 0; }
.org-empty-inline { margin: 0; padding: 18px 20px; font-size: 13.5px; color: var(--muted); }

/* Group Card Grid */
.org-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 680px) { .org-card-grid { grid-template-columns: minmax(0, 1fr); } }
.org-group-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  height: 100%;
}
.org-group-card:hover { background: var(--hover); border-color: var(--field-border); }
.org-group-card-top { display: flex; align-items: center; gap: 10px; }
.org-group-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--selected);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.org-group-icon .icon { width: 15px; height: 15px; }
.org-group-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.org-group-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Policy Studio (Outside the organisation) */
.org-studio-body {
  display: grid;
  gap: 22px;
  padding: 20px;
}
.org-studio-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 20px;
  background: var(--hover);
  border-top: 1px solid var(--border);
  border-radius: 0 0 13px 13px;
}
.org-foot-hint { margin: 0; font-size: 13px; color: var(--muted); }
.org-bar-actions { display: flex; justify-content: flex-start; }

.org-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.org-fieldset > .hint { margin: 0; }
.org-legend {
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.org-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.org-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .org-mode-grid, .org-link-grid { grid-template-columns: minmax(0, 1fr); }
}
.org-option-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.org-option-tile:hover { background: var(--hover); border-color: var(--field-border); }
.org-option-tile:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.org-wizard { max-width: 680px; }
.org-wizard .setup-steps { margin: 0 0 4px; }
.org-switch-form { width: 100%; }
.org-bulk-form { margin-top: 10px; }
.org-border-top { border-top: 1px solid var(--border); }
.org-toolbar select#pick-member { flex: 1 1 240px; min-width: 0; }
.org-option-head { display: flex; align-items: center; gap: 10px; }
.org-option-head input[type="radio"] { margin: 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.org-option-title { font-size: 14px; font-weight: 600; color: var(--text); }
.org-option-desc { font-size: 13px; line-height: 1.45; color: var(--muted); padding-left: 26px; }

/* Toggle Switch Cards & Rows */
.org-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) { .org-toggle-grid { grid-template-columns: minmax(0, 1fr); } }
.org-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.org-toggle-card:hover { background: var(--hover); border-color: var(--field-border); }

.org-switch-list { display: grid; }
.org-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  cursor: pointer;
}
.org-switch-row.is-locked { cursor: default; }
.org-switch-row + .org-switch-row { border-top: 1px solid var(--border); }
.org-switch-row:not(.is-locked):hover { background: var(--hover); }

/* Native accessible CSS toggle switch */
input.org-switch[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--border);
  border: 1px solid var(--field-border);
  position: relative;
  cursor: pointer;
  flex: none;
}
input.org-switch[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
input.org-switch[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
input.org-switch[type="checkbox"]:checked::before {
  transform: translateX(18px);
  background: var(--on-accent);
}
input.org-switch[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Exceptions Priority Stack */
.org-rank-list { list-style: none; margin: 0; padding: 0; }
.org-rank-item {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
}
.org-rank-item + .org-rank-item { border-top: 1px solid var(--border); }
.org-rank-top { display: flex; align-items: flex-start; gap: 12px; }
.org-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--selected);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.org-rank-empty { margin: 0; font-size: 13px; color: var(--muted); padding-left: 36px; }
.org-chip-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 12.5px;
}
.org-chip a { font-weight: 600; text-decoration: none; }
.org-chip a:hover { text-decoration: underline; }
.org-chip-kind { color: var(--muted); font-size: 11.5px; }
.org-chip-x {
  background: none;
  border: none;
  padding: 0;
  height: auto;
  min-height: 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.org-chip-x:hover { color: var(--danger); text-decoration: underline; }

.org-rank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-left: 36px;
}
.org-sub-drawer { margin: 0; }
.org-sub-drawer[open] { flex-basis: 100%; }
.org-sub-drawer > summary,
.org-tech-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.org-sub-drawer > summary::-webkit-details-marker,
.org-tech-details > summary::-webkit-details-marker { display: none; }
.org-disclosure-icon {
  width: 11px;
  height: 11px;
  flex: none;
}
details[open] > summary > .org-disclosure-icon {
  transform: rotate(90deg);
}
.org-num-inline {
  width: 88px;
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.org-sub-body {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--hover);
  border: 1px solid var(--border);
}
.org-compact-form { display: grid; gap: 12px; }
.org-compact-form .field { margin: 0; max-width: none; }
.org-compact-group { margin: 0; padding: 0; border: none; display: grid; gap: 8px; }
.org-new-exc-form {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.org-link-danger { color: var(--danger); }

/* Domains DNS panel */
.org-domain-name { font-size: 15px; font-weight: 600; color: var(--text); }
.org-dns-panel { display: grid; gap: 12px; padding: 16px 20px 0; }
.org-dns-panel > .org-studio-foot { margin: 4px -20px 0; }
.org-dns-lead { margin: 0; font-size: 13.5px; color: var(--text); }
.org-dns-grid {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--hover);
  border: 1px solid var(--border);
}
.org-dns-grid > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
}
.org-dns-grid dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.org-dns-grid dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  word-break: break-all;
}

/* Company sign-in technical details & code boxes */
.org-tech-details { padding: 12px 20px 14px; }
.org-tech-details > summary { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.org-tech-details[open] > summary { margin-bottom: 12px; }
.org-kv-list { margin: 0 0 12px; display: grid; gap: 10px; }
.org-kv-padded { margin: 0; padding: 16px 20px; }
.org-kv-list > div { display: grid; gap: 2px; }
.org-kv-list dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.org-kv-list dd { margin: 0; font-size: 13.5px; word-break: break-all; }
.org-copy-row { display: flex; align-items: center; gap: 10px; }
.org-copy-row .org-code-box { flex: 1 1 auto; min-width: 0; }
.org-copy-row button { flex: none; }
.org-aside-card .org-form-body > button { justify-self: start; }
.org-kv-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; }
.org-code-box {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 12.5px;
  word-break: break-all;
}

/* Sign-in rules numeric metrics grid */
.org-metrics-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 18px 20px;
  align-items: stretch;
}
.org-metrics-form .field {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
@media (max-width: 560px) { .org-metrics-form { grid-template-columns: minmax(0, 1fr); } }

/* Entity Hero (Person detail) */
.org-entity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--hover);
  border: 1px solid var(--border);
}
.org-entity-ident { display: flex; align-items: center; gap: 16px; min-width: 0; }
.org-entity-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.org-entity-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.org-entity-title h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.org-entity-sub { margin: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

/* Inline confirmation disclosures */
.org-confirm-row > summary,
.org-ws .confirm-act > summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 20px;
  cursor: pointer;
}
.org-confirm-row > summary::-webkit-details-marker,
.org-ws .confirm-act > summary::-webkit-details-marker { display: none; }
.org-confirm-row > summary:hover,
.org-ws .confirm-act > summary:hover { background: var(--hover); }
.org-confirm-row[open] > summary,
.org-ws .confirm-act[open] > summary { background: var(--hover); }
.org-confirm-body,
.org-ws .confirm-act > form {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 12px 20px 16px;
  background: var(--hover);
  border-top: 1px solid var(--border);
}
.org-confirm-body p,
.org-ws .confirm-act > form p { margin: 0; font-size: 13.5px; }

/* Danger Zone */
.org-danger-surface {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
}
.org-danger-surface > .org-surface-head h2 { color: var(--danger); }
.org-danger-foot { padding: 0; background: var(--surface); }

/* Billing hero & invoices */
.org-bill-hero-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 20px 24px;
}
.org-bill-plan { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.org-bill-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 24px;
  background: var(--hover);
  border-top: 1px solid var(--border);
}
.org-bill-next-amt { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.org-bill-amt { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }

/* Audit Log Table */
.org-log-table { list-style: none; margin: 0; padding: 0; }
.org-log-table > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 13px 20px;
}
.org-log-table > li + li { border-top: 1px solid var(--border); }
.org-log-table > li:hover { background: var(--hover); }
.org-log-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.org-log-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.org-log-reason { font-size: 13px; color: var(--text); margin-top: 2px; }

/* Custom searchable dropdowns (.cselect) */
.cselect {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
}
.inline-form .cselect { flex: 1 1 180px; width: auto; }
.inline-form .cselect.narrow,
.org-toolbar .cselect.narrow { flex: none; width: auto; min-width: 120px; }
.org-toolbar .cselect.cselect-grow { flex: 1 1 240px; width: auto; }
.cselect-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--field-border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.cselect-trigger:hover { background: var(--hover); }
.cselect.is-open .cselect-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.cselect-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cselect-caret {
  width: 12px;
  height: 12px;
  color: var(--muted);
  flex: none;
}
.cselect.is-open .cselect-caret { transform: rotate(180deg); }

.cselect-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-raised);
  z-index: 50;
  overflow: hidden;
}
.cselect-menu.cselect-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.cselect-search-wrap {
  display: block;
  width: 100%;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--hover);
  box-sizing: border-box;
}
.cselect .cselect-search {
  display: block;
  width: 100%;
  max-width: none;
  flex: none;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
}
.cselect-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}
.cselect-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}
.cselect-opt:hover,
.cselect-opt.is-active { background: var(--hover); }
.cselect-opt.is-selected { background: var(--selected); font-weight: 600; }
.cselect-opt-text { overflow-wrap: anywhere; }
.cselect-check { width: 13px; height: 13px; color: var(--accent); flex: none; }
.cselect-empty { margin: 0; padding: 12px; text-align: center; font-size: 13px; color: var(--muted); }

/* Developer docs code blocks */
.dev-pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-family: "DejaVu Sans Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  color: var(--text);
}
