/* Join the Intermeshwork wizard. Uses only the Stylon design tokens (stylon-tokens.css). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background-primary);
  color: var(--color-primary-900);
  font-family: var(--font-family-sans);
  font-size: var(--font-body-md-fontSize);
  line-height: var(--font-body-md-lineHeight);
}
main { max-width: 560px; margin: 0 auto; padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-4xl); display: grid; gap: var(--spacing-xl); }

/* ---------- header and stepper ---------- */
.top { display: grid; gap: var(--spacing-lg); }
.brand { margin: 0; font-weight: var(--font-heading-sm-fontWeight); font-size: var(--font-heading-sm-fontSize); letter-spacing: 0.02em; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--spacing-xs); counter-reset: step; }
.stepper li { counter-increment: step; display: grid; justify-items: center; gap: var(--spacing-xs); text-align: center;
  font-size: var(--font-caption-strong-fontSize); line-height: 1.2; color: var(--color-neutral-900); position: relative; }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: var(--avatar-xs); height: var(--avatar-xs);
  border-radius: var(--radius-badge); border: var(--border-width-default) solid var(--color-neutral-700);
  background: var(--color-primary-1); font-weight: var(--font-caption-strong-fontWeight); position: relative; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: calc(var(--avatar-xs) / 2); left: calc(50% + var(--avatar-xs) / 2);
  width: calc(100% - var(--avatar-xs) + var(--spacing-xs)); height: var(--border-width-default); background: var(--color-neutral-700); }
.stepper li:last-child::after { display: none; }
.stepper li.is-current { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }
.stepper li.is-current::before { background: var(--color-primary-900); border-color: var(--color-primary-900); color: var(--color-primary-1); }
.stepper li.is-done { color: var(--color-success-900); }
.stepper li.is-done::before { content: "✓"; background: var(--color-success-100); border-color: var(--color-success-600); color: var(--color-success-900); }
.stepper li.is-done::after { background: var(--color-success-600); }
@media (max-width: 480px) { .stepper li { font-size: 0; gap: 0; } }

/* ---------- the step card ---------- */
.card { background: var(--color-primary-1); border: var(--border-width-default) solid var(--color-border-divider);
  border-radius: var(--radius-surface); padding: var(--card-padding-lg); display: grid; gap: var(--spacing-lg); }
h1 { margin: 0; font-size: var(--font-heading-lg-fontSize); font-weight: var(--font-heading-lg-fontWeight); line-height: var(--font-heading-lg-lineHeight); }
.lead { margin: 0; color: var(--color-neutral-1000); overflow-wrap: anywhere; }

form { display: grid; gap: var(--spacing-lg); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--spacing-xs); }
label { font-size: var(--font-label-md-fontSize); font-weight: var(--font-label-md-fontWeight); line-height: var(--font-label-md-lineHeight); }
input { height: var(--button-height-md); padding: 0 var(--spacing-md); font: inherit; color: inherit; background: var(--color-primary-1);
  border: var(--border-width-default) solid var(--color-neutral-700); border-radius: var(--radius-input-md); width: 100%; }
input:focus { outline: var(--focus-ringWidth) var(--focus-ringStyle) var(--color-border-navigationFocus); outline-offset: var(--focus-ringOffset); }
input[aria-invalid="true"] { border-color: var(--color-error-600); }
.code-input { max-width: 12rem; letter-spacing: 0.4em; font-family: var(--font-family-mono); font-size: var(--font-heading-sm-fontSize); }
.field-error { margin: 0; color: var(--color-error-700); font-size: var(--font-body-sm-fontSize); }

.actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }
button.primary, button.secondary, a.button { height: var(--button-height-md); padding: 0 var(--spacing-xl); border-radius: var(--radius-button-md);
  font: inherit; font-weight: var(--font-label-md-fontWeight); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
button.primary, a.button.primary { border: 0; background: var(--color-primary-900); color: var(--color-primary-1); }
button.primary:hover, a.button.primary:hover { background: var(--color-primary-700); }
button.secondary, a.button.secondary { background: var(--color-primary-1); color: var(--color-primary-900);
  border: var(--border-width-default) solid var(--color-neutral-700); }
button.secondary:hover, a.button.secondary:hover { background: var(--color-background-primary); }
button:disabled { opacity: var(--button-loadingOpacity); cursor: not-allowed; }

/* ---------- messages and notes ---------- */
.message { padding: var(--spacing-md); border-radius: var(--radius-container-sm); font-size: var(--font-body-sm-fontSize); }
.message.ok { background: var(--color-success-100); color: var(--color-success-900); }
.message.info { background: var(--color-info-50); color: var(--color-info-900); }
.message.error { background: var(--color-error-50); color: var(--color-error-800); }
.test-note { padding: var(--spacing-md); border-radius: var(--radius-container-sm); font-size: var(--font-body-sm-fontSize);
  background: var(--color-warning-50); border: var(--border-width-default) dashed var(--color-warning-200); margin: 0; }
.test-note a { display: inline-block; margin-left: var(--spacing-xs); color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }

/* ---------- step contents ---------- */
.codes { margin: 0; padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-2xl); display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs) var(--spacing-xl); background: var(--color-background-primary); border-radius: var(--radius-container-sm);
  font-family: var(--font-family-mono); }
.confirm { display: flex; gap: var(--spacing-sm); align-items: center; font-weight: var(--font-weight-normal); }
.confirm input { width: auto; height: auto; }
.offer { display: flex; gap: var(--spacing-xl); align-items: center; flex-wrap: wrap; }
.offer img { background: var(--color-solid-white); border: var(--border-width-default) solid var(--color-border-divider); border-radius: var(--radius-container-sm); }
.offer-side { display: grid; gap: var(--spacing-sm); }
.offer a { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }
.stage { margin: 0; }
.done-mark { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--radius-badge);
  background: var(--color-success-100); color: var(--color-success-900); font-size: var(--font-heading-sm-fontSize); font-weight: var(--font-weight-bold); }

/* ---------- folded details ---------- */
details summary { cursor: pointer; font-size: var(--font-body-sm-fontSize); color: var(--color-neutral-1000); }
.why, .did { border-top: var(--border-width-default) solid var(--color-border-divider); padding-top: var(--spacing-md); }
.why dl + dl { margin-top: var(--spacing-md); padding-top: var(--spacing-md); border-top: var(--border-width-default) dashed var(--color-border-divider); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--spacing-xs) var(--spacing-lg); margin: var(--spacing-md) 0 0; font-size: var(--font-body-sm-fontSize); }
dt { font-weight: var(--font-weight-semibold); color: var(--color-neutral-1000); }
dd { margin: 0; overflow-wrap: anywhere; }
.did pre { margin: var(--spacing-sm) 0 0; padding: var(--spacing-md); overflow-x: auto; background: var(--color-background-primary);
  border-radius: var(--radius-container-sm); font-family: var(--font-family-mono); font-size: var(--font-caption-strong-fontSize); }
.credential { margin: 0; }

.foot { color: var(--color-neutral-900); font-size: var(--font-caption-strong-fontSize); text-align: center; }
code { font-family: var(--font-family-mono); }
.entry { font-weight: var(--font-weight-normal); color: var(--color-neutral-1000); }
.sub-lead { margin: 0; color: var(--color-neutral-900); font-size: var(--font-body-sm-fontSize); }
.stepper:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 50%; }
.stepper:has(li:nth-child(6):last-child) { grid-template-columns: repeat(6, 1fr); }

/* ---------- Meshwork screens ---------- */
main:has(#m-desk:not([hidden])) { max-width: 880px; }
h2 { margin: var(--spacing-md) 0 0; font-size: var(--font-heading-sm-fontSize); font-weight: var(--font-heading-sm-fontWeight); }
select { height: var(--button-height-md); padding: 0 var(--spacing-md); font: inherit; color: inherit; background: var(--color-primary-1);
  border: var(--border-width-default) solid var(--color-neutral-700); border-radius: var(--radius-input-md); width: 100%; }
.actions select { width: auto; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: var(--font-label-md-fontSize); font-weight: var(--font-label-md-fontWeight); margin-bottom: var(--spacing-xs); }
.list { display: grid; gap: var(--spacing-sm); }
.list:empty::before { content: attr(data-empty); color: var(--color-neutral-900); font-size: var(--font-body-sm-fontSize); }
.item { display: grid; gap: var(--spacing-sm); padding: var(--spacing-md); border: var(--border-width-default) solid var(--color-border-divider);
  border-radius: var(--radius-container-sm); }
.item.is-picked { border-color: var(--color-primary-900); }
.item-head { display: flex; gap: var(--spacing-sm); align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.item-name { font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.tags { display: flex; gap: var(--spacing-xs); flex-wrap: wrap; }
.tag { font-size: var(--font-caption-strong-fontSize); padding: 0 var(--spacing-sm); border-radius: var(--radius-badge);
  background: var(--color-background-primary); color: var(--color-neutral-1000); }
.tag.good { background: var(--color-success-100); color: var(--color-success-900); }
.tag.bad { background: var(--color-error-50); color: var(--color-error-800); }
.item .actions button, .item .actions a.button { height: auto; min-height: 2.25rem; padding: 0 var(--spacing-md); }
.panel { display: grid; gap: var(--spacing-md); padding: var(--spacing-lg); border-radius: var(--radius-container-sm); background: var(--color-background-primary); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--spacing-xs); }

/* lifecycle screens (26 Nov): free text, an act that cannot be undone here, report tables */
textarea { width: 100%; box-sizing: border-box; padding: var(--spacing-sm) var(--spacing-md); font: inherit; color: inherit;
  background: var(--color-primary-1); border: var(--border-width-default) solid var(--color-neutral-700); border-radius: var(--radius-input-md); resize: vertical; }
textarea:focus { outline: var(--focus-ringWidth) var(--focus-ringStyle) var(--color-border-navigationFocus); outline-offset: var(--focus-ringOffset); }
textarea[aria-invalid="true"] { border-color: var(--color-error-600); }
button.secondary.danger { color: var(--color-error-800); border-color: var(--color-error-600); }
.table-wrap { overflow-x: auto; }
table.report { width: 100%; border-collapse: collapse; font-size: var(--font-body-sm-fontSize); }
table.report th, table.report td { text-align: left; padding: var(--spacing-xs, 4px) var(--spacing-sm); border-bottom: 1px solid var(--color-primary-100, var(--color-primary-200)); }
table.report:empty { display: none; }

/* ================= Symbiontra look (26 Nov): the essentials of the hi-fi design (ux-hi-fi-html-design) ================
   Textured light background, a top bar with the logo, a status pill and Home; open cards; underline fields; soft pill
   buttons; Symbiontra in the footer. Decision details and identifiers show only with "Show test details". */
body { background: var(--color-background-primary) url("bg-texture.jpg") center / cover fixed no-repeat;
  font-family: var(--font-family-sans); color: var(--color-primary-900); }
main { max-width: 640px; padding-top: var(--spacing-lg); min-height: 100vh; grid-template-rows: auto auto 1fr auto; }
main:has(#m-desk:not([hidden])), main:has(.card.wide:not([hidden])) { max-width: 920px; }

.topbar { display: flex; align-items: center; gap: var(--spacing-md); }
.brand { display: flex; align-items: center; margin-right: auto; font-size: var(--font-heading-sm-fontSize); }
.brand .logo { height: 26px; width: auto; display: block; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: var(--radius-badge);
  background: color-mix(in srgb, var(--color-solid-white) 75%, transparent); box-shadow: 0 1px 3px color-mix(in srgb, var(--color-solid-black) 8%, transparent); font-size: var(--font-body-sm-fontSize); }
.pill .entry { color: inherit; font-weight: var(--font-weight-medium); }
.home-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-badge); color: var(--color-primary-900); }
.home-link:hover { background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); }

.stepper li::before { background: color-mix(in srgb, var(--color-solid-white) 85%, transparent); }

.card { background: transparent; border: 0; padding: var(--spacing-lg) 0; gap: var(--spacing-lg); }


.sub-lead { color: var(--color-primary-400); }
.sub-lead a, .links a { color: var(--color-primary-500); text-decoration: none; margin-right: var(--spacing-lg); }
.sub-lead a:hover { color: var(--color-primary-900); }

label { font-size: var(--font-caption-strong-fontSize); font-weight: var(--font-weight-medium); color: var(--color-primary-400); }
/* The form line is the Webxtron field's (wx-omni-stylet field.wg): border-stroke at rest, primary-400 on hover,
   primary-700 at border-width-2 on focus, error-500 when invalid (owner 28 Nov: every form alike). */
input, select, textarea { background: transparent; border: 0; border-bottom: var(--border-width-default) solid var(--color-border-stroke); border-radius: 0; padding: 0 2px;
  font-size: var(--font-size-fluid-sm-strong); }
textarea { border: 1px solid var(--color-primary-200); border-radius: var(--radius-container-md); background: color-mix(in srgb, var(--color-solid-white) 60%, transparent); }
input:hover, select:hover { border-bottom-color: var(--color-primary-400); }
input:focus, select:focus { outline: none; border-bottom: var(--border-width-2) solid var(--color-primary-700); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-bottom-color: var(--color-error-500); }
.code-input { max-width: 14rem; }

button.primary, a.button.primary, button.secondary, a.button.secondary { border-radius: var(--radius-badge); height: 44px;
  padding: 0 22px; font-weight: var(--font-weight-medium); transition: box-shadow .15s, background .15s; }
button.primary, a.button.primary { background: color-mix(in srgb, var(--color-solid-white) 92%, transparent); color: var(--color-primary-900); border: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-solid-black) 10%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
button.primary::after, a.button.primary::after { content: "›"; margin-left: 10px; font-size: var(--font-size-base); line-height: 1; }
button.primary:hover, a.button.primary:hover { background: var(--color-solid-white); box-shadow: 0 4px 14px color-mix(in srgb, var(--color-solid-black) 14%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
button.secondary, a.button.secondary { background: transparent; border: 1px solid var(--color-primary-200); color: var(--color-primary-700); }
button.secondary:hover, a.button.secondary:hover { background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); }
button.secondary.danger { color: var(--color-error-800); border-color: var(--color-error-600); }

.message { border-radius: var(--radius-container-lg); }
.test-note { background: none; border: 0; padding: var(--spacing-xs) 0; color: var(--color-primary-400); font-size: var(--font-caption-strong-fontSize); }

.item, .panel { background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); border: 0; border-radius: var(--radius-badge); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.codes { background: color-mix(in srgb, var(--color-solid-white) 75%, transparent); border-radius: var(--radius-container-lg); }
.done-mark { background: var(--color-success-100); color: var(--color-success-800); }

/* Decision details and identifiers: for testing only, shown in the Test popover, never on the page */
.why, .did { display: none !important; }
/* Test-only codes and links (no email is sent): kept out of the page; the small "Test" button at the bottom shows them
   in its popover; the page never shows them (owner 30 Nov) */
.test-note, .test-detail { display: none !important; }
.test-peek { position: fixed; right: 16px; bottom: 16px; z-index: 60; padding: 4px 10px; border-radius: var(--radius-badge); border: 1px solid var(--color-primary-200);
  background: color-mix(in srgb, var(--color-solid-white) 85%, transparent); color: var(--color-primary-500); font: inherit;
  font-size: var(--font-caption-strong-fontSize); cursor: pointer; }
.test-peek-box { position: fixed; right: 16px; bottom: 52px; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: 50vh; overflow: auto;
  display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-container-md); background: var(--color-solid-white); color: var(--color-primary-900);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--color-solid-black) 14%, transparent); font-size: var(--font-caption-strong-fontSize); }
.test-peek-box[hidden] { display: none; }
.test-peek-title { margin: 0; color: var(--color-primary-400); }
.test-peek-item { margin: 0; overflow-wrap: anywhere; }
.test-peek-why { border-top: var(--border-width-default) solid var(--color-border-divider); padding-top: var(--spacing-xs); }
.test-peek-why summary { cursor: pointer; color: var(--color-primary-700); }
.test-peek-why dl { margin: var(--spacing-xs) 0 0; }
.test-peek-why pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--font-caption-strong-fontSize); }
.test-peek-item a { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); margin-left: 4px; }
.foot { display: flex; align-items: center; gap: var(--spacing-lg); justify-content: space-between; color: var(--color-primary-400); padding-top: var(--spacing-xl); }
.foot-logo { height: 20px; }

/* Home: your Meshworks (the signed-in page of the Intermeshwork hi-fi design: page head, white surface, cards) */
.page-head { display: grid; gap: 4px; }

.surface { display: grid; gap: var(--spacing-md); padding: 20px; border-radius: var(--radius-modal); background: color-mix(in srgb, var(--color-solid-white) 55%, transparent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.surface h2 { margin: 0; font-size: var(--font-size-fluid-xl); font-weight: var(--font-weight-medium); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--spacing-md); }
.apps:empty::before { content: attr(data-empty); color: var(--color-primary-400); }
.app { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-container-lg); background: var(--color-solid-white); color: var(--color-primary-900);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 6%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-mark { width: 44px; height: 44px; border-radius: var(--radius-badge); display: grid; place-items: center; border: 1px solid var(--color-primary-200);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-primary-700); }
.app-name { margin: 0; font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
.app-facts { margin: 0; padding-top: 10px; border-top: 1px solid var(--color-primary-100); grid-template-columns: 1fr; gap: 2px; }
.app-facts dt { font-weight: var(--font-weight-normal); color: var(--color-primary-400); font-size: var(--font-size-xs); }
.app-facts dd { font-family: var(--font-family-mono); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.app .button { justify-self: start; }
.account-row { display: flex; align-items: center; gap: var(--spacing-md); padding: 14px 16px; border-radius: var(--radius-badge); background: color-mix(in srgb, var(--color-solid-white) 60%, transparent); }
.account-row > div { margin-right: auto; }
.account-name { margin: 0; font-weight: var(--font-weight-semibold); }
.avatar { width: 40px; height: 40px; border-radius: var(--radius-badge); display: grid; place-items: center; background: var(--color-neutral-500); font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); }
@media (max-width: 480px) { .account-row { flex-wrap: wrap; } }


/* ---------- desktop layout of the Intermeshwork hi-fi design (26 Nov) ----------
   Sign-up, sign-in and registration: the illustration on the left half, the form on the right half.
   Signed in: a full-width app shell, the Symbiontra mark in the middle of the top bar, the avatar menu on the right. */
.auth-visual, .center-mark { display: none; }
@media (min-width: 1024px) {
  body:not(.app-shell) { display: grid; grid-template-columns: 1fr 1fr; }
  body:not(.app-shell) .auth-visual { display: grid; place-items: center; padding: 64px 32px; position: sticky; top: 0; height: 100vh; }
  .auth-visual img { width: 100%; max-width: 560px; opacity: 0.9; }
  body:not(.app-shell) main { margin: 0; max-width: 620px; padding: 32px 56px 32px 24px; }
}
body.app-shell main { max-width: 1240px; padding: 16px 40px 32px; }
body.app-shell .pill, body.app-shell .stepper { display: none !important; }
body.app-shell .topbar { position: relative; }
body.app-shell .brand .logo { height: 22px; }
body.app-shell .center-mark { display: block; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); width: 96px; height: auto; }
.avatar-menu { position: relative; }
.avatar-menu .avatar { border: 0; cursor: pointer; background: var(--color-primary-800); color: var(--color-solid-white); width: 36px; height: 36px; font: inherit; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: var(--radius-container-lg); background: var(--color-solid-white); z-index: 10;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-solid-black) 14%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 4%, transparent); display: grid; gap: 2px; }
.menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--color-primary-100); margin-bottom: 4px; }
.menu-who p { margin: 0; }
.menu button, .menu a[role="menuitem"] { display: block; text-decoration: none; text-align: left; background: none; border: 0; font: inherit; padding: 9px 10px; border-radius: var(--radius-button-lg); cursor: pointer; color: var(--color-primary-900); }
.menu button:hover, .menu button:focus-visible, .menu a[role="menuitem"]:hover, .menu a[role="menuitem"]:focus-visible { background: var(--color-neutral-300); outline: none; }
body.app-shell .card { padding-top: 8px; }

body.app-shell .apps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
body.app-shell .surface { padding: 28px; }

/* ---------- screen review fixes (26 Nov) ---------- */
main { display: flex; flex-direction: column; gap: var(--spacing-xl); }
main > .foot { margin-top: auto; }
.card .lead { color: var(--color-primary-600); }
.card > h1 { margin-top: 8px; }
@media (min-width: 1024px) {
  /* as in the design: the Symbiontra logo top-left of the whole page, over the illustration; the footer logo bottom-left */
  body:not(.app-shell) .brand { position: fixed; top: 22px; left: 32px; }
  body:not(.app-shell) .topbar { justify-content: flex-end; }
  body:not(.app-shell) .foot-logo { position: fixed; bottom: 24px; left: 32px; }
  body:not(.app-shell) .card { padding-top: 40px; }
  body:not(.app-shell) main { padding-bottom: 24px; }
}
/* the centre mark: on a Meshwork page it opens the menu of what the person can do there (27 Nov) */
.center-menu { display: contents; }
.center-mark-button { all: unset; display: none; }
body.app-shell .center-mark-button { display: block; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); }
body.app-shell .center-mark-button .center-mark { position: static; transform: none; display: block; }
.center-mark-button.is-menu { cursor: pointer; border-radius: 0 0 var(--radius-fluid-2xl) var(--radius-fluid-2xl); transition: transform 160ms ease; }
.center-mark-button.is-menu:hover { transform: translateX(-50%) translateY(2px); }
.center-mark-button.is-menu:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.center-panel { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); z-index: 20;
  padding: 16px; border-radius: var(--radius-modal); background: color-mix(in srgb, var(--color-solid-white) 98%, transparent); box-shadow: 0 12px 40px color-mix(in srgb, var(--color-solid-black) 16%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 4%, transparent);
  display: grid; gap: 12px; animation: panel-in 140ms ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%); } }
.center-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.center-panel-title { margin: 0; font-weight: var(--font-weight-semibold); }
.center-panel-home { font-size: var(--font-size-sm); }

/* ---------- task menu (27 Nov, after the hi-fi admin tabs: icon, title, a short line, chevron) ---------- */
.section-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); margin: 0; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.task-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 56px; text-align: left;
  background: color-mix(in srgb, var(--color-solid-white) 85%, transparent); border: 0; border-radius: var(--radius-modal); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 6%, transparent);
  color: inherit; text-decoration: none; cursor: pointer; font: inherit; height: auto; width: 100%; }
.task-card:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--color-solid-black) 10%, transparent); }
.task-card:focus-visible { outline: 2px solid var(--color-primary-900); outline-offset: 2px; }
.task-icon { flex: none; width: 36px; height: 36px; border-radius: var(--radius-badge); display: grid; place-items: center;
  border: 1px solid var(--color-primary-200); color: var(--color-primary-400); background: transparent; }
.task-icon svg { width: 18px; height: 18px; }
.task-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.task-title { font-weight: var(--font-weight-semibold); color: var(--color-primary-900); line-height: 1.3; }
.task-sub { font-size: var(--font-size-fluid-sm-minus); color: var(--color-primary-400); line-height: 1.3; overflow-wrap: anywhere; }
.task-chevron { flex: none; color: var(--color-primary-600); font-size: var(--font-size-xl); line-height: 1; }
.task-card[aria-selected="true"] .task-icon { background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white); }
.task-card[aria-selected="true"] { background: var(--color-solid-white); }
.task-card.is-locked { background: color-mix(in srgb, var(--color-solid-white) 45%, transparent); box-shadow: none; }
.task-card.is-locked .task-title { color: var(--color-primary-500); }
.task-card:not(.is-locked) .task-icon { border-color: var(--color-primary-950); color: var(--color-primary-950); }
.task-card.is-locked .task-icon { border-style: dashed; }
.locked-note { padding: 12px 14px; border-radius: var(--radius-container-lg); background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); color: var(--color-primary-700); }

.task-card .task-lock { font-size: var(--font-size-xs); color: var(--color-primary-400); display: inline-flex; gap: 4px; align-items: center; }
.task-card .task-lock::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4"><rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>') center/contain no-repeat; }
.page-fade { animation: page-fade 180ms ease-out; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- a quiet waiting screen between pages (27 Nov: no half-drawn page while signing in) ---------- */
.card.transit { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 40vh; text-align: center; }
.card.transit[hidden] { display: none; }
.spinner { width: 28px; height: 28px; border-radius: var(--radius-badge); border: 2.5px solid color-mix(in srgb, var(--color-solid-black) 12%, transparent); border-top-color: var(--color-primary-950);
  animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .center-panel { animation: none; } }
#s-handoff, #s-mi-return { text-align: center; }
#s-handoff .message, #s-mi-return .message { justify-self: center; }
@media (min-width: 760px) { .center-panel .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.task-card[aria-selected="true"] .task-icon, .task-card[aria-selected="true"]:not(.is-locked) .task-icon { background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white); }

/* ---------- signed-in Meshwork shell (27 Nov): stable top bar, home = what waits, desk = one task ---------- */
.home-head h1 { margin: 8px 0 4px; }
.panel { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius-modal); background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.attention { display: grid; gap: 8px; }
.attention-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-container-lg); background: var(--color-solid-white);
  color: inherit; text-decoration: none; box-shadow: 0 1px 3px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.attention-row:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--color-solid-black) 10%, transparent); }
.attention-row:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.attention-count { min-width: 36px; height: 36px; border-radius: var(--radius-modal); display: grid; place-items: center; background: var(--color-primary-950); color: var(--color-solid-white); font-weight: var(--font-weight-semibold); padding: 0 10px; }
.attention-text { flex: 1; display: grid; gap: 2px; }
.attention-text strong { font-weight: var(--font-weight-semibold); }
.attention-text span { color: var(--color-primary-500); font-size: var(--font-size-sm); }
.empty-state { display: grid; gap: 6px; justify-items: start; padding: 8px 2px; color: var(--color-primary-700); }
.empty-state p { margin: 0; }
.task-head { display: flex; gap: 16px; align-items: flex-start; }
.task-head .task-icon { width: 48px; height: 48px; background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white); margin-top: 10px; }
.task-head .task-icon svg { width: 22px; height: 22px; }
.task-head h1 { margin: 8px 0 4px; }
.menu .menu-sep { height: 1px; background: var(--color-primary-100); margin: 4px 0; }
.center-mark-button.is-menu::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg);
  border-right: 1.5px solid var(--color-primary-600); border-bottom: 1.5px solid var(--color-primary-600); }
.center-mark-button.is-menu[aria-expanded="true"]::after { transform: translateX(-50%) rotate(225deg); bottom: -1px; }
/* the desk's sections, each its own panel (as the hi-fi admin pages) */
#m-join-box, #m-rec-box, #m-members-box, #m-inv, #m-prov, #m-batch, #m-rule, #m-dir, #m-charter, #m-reports, #m-roles-box, #m-second-box {
  display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--radius-modal); background: color-mix(in srgb, var(--color-solid-white) 72%, transparent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
:is(#m-join-box, #m-rec-box, #m-members-box, #m-inv, #m-prov, #m-batch, #m-rule, #m-dir, #m-charter, #m-reports, #m-roles-box, #m-second-box)[hidden] { display: none; }
:is(#m-join-box, #m-rec-box, #m-members-box, #m-inv, #m-prov, #m-batch, #m-rule, #m-dir, #m-charter, #m-reports, #m-roles-box, #m-second-box) > h2:first-child { margin: 0; font-size: var(--font-size-lg); }
#m-desk { gap: 16px; }
.menu-who .account-name { overflow-wrap: anywhere; font-weight: var(--font-weight-semibold); }

/* Phone: the Meshwork name keeps clear of the centre menu. It wraps between words, never inside one, and the mark is
   smaller so both fit. */
@media (max-width: 560px) {
  body.app-shell .brand { max-width: calc(50% - 40px); line-height: 1.15; }
  body.app-shell .brand-name { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
  body.app-shell .center-mark-button .center-mark { width: 64px; }
  body.app-shell .center-mark-button { top: -10px; }
}

/* Step Up by Email Code: one dialog over the page, for every act (shape from the hi-fi "verify" modal; our tokens) */
.step-up-dialog { border: 0; border-radius: var(--radius-modal); padding: var(--spacing-xl); max-width: 26rem; width: calc(100% - 32px);
  background: var(--color-primary-1); box-shadow: 0 12px 40px color-mix(in srgb, var(--color-solid-black) 18%, transparent); }
.step-up-dialog::backdrop { background: color-mix(in srgb, var(--color-solid-black) 35%, transparent); }
.step-up-dialog form { display: grid; gap: var(--spacing-md); }
.step-up-dialog h2 { margin: 0; }

/* Something the person passes on or registers (a reference for the other Approver, an address for the provider) */
.handover-note { padding: var(--spacing-md); border-radius: var(--radius-container-lg); background: color-mix(in srgb, var(--color-solid-white) 75%, transparent);
  border: 1px solid var(--color-border-divider); font-size: var(--font-body-sm-fontSize); overflow-wrap: anywhere; }

/* ---------- People (user management): the hi-fi user management's own components, measured from the hi-fi page ----------
   List: the admin table (toolbar with pager and icons, 32px zebra rows, number column, state dot, state pill).
   Desktop: list left, person right (split). Narrow: the person replaces the list. */
.people { display: grid; gap: 16px; align-items: start; }
/* user management is a wide admin page in the hi-fi: the list and the person side by side */
main:has(#m-members-box:not([hidden]) .people) { max-width: 1240px; }
.people.is-person .people-list, .people.only-person .people-list { display: none; }
.people.is-person .person { max-width: none; }
.back-link { justify-self: start; font-size: var(--font-size-fluid-xs); color: var(--color-primary-400); text-decoration: none; }
.back-link:hover { color: var(--color-primary-950); }
.tbl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 0 8px; }
.tbl-pager, .tbl-tools { display: flex; align-items: center; gap: 4px; font-size: var(--font-size-xs); color: var(--color-primary-400); }
.tbl-icon { width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--radius-button-md); background: transparent; color: var(--color-primary-400); display: inline-grid; place-items: center; cursor: pointer; }
.tbl-icon:hover, .tbl-icon[aria-expanded="true"] { color: var(--color-primary-950); background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.tbl-icon:disabled { opacity: 0.35; cursor: default; background: transparent; }
.tbl-icon svg, .tbl-filter svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbl-tools input[type="search"] { height: 28px; width: 220px; font-size: var(--font-size-fluid-xs); border-bottom: var(--border-width-default) solid var(--color-border-stroke); }
.tbl-filter { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; color: var(--color-primary-400); }
.tbl-filter select { height: 28px; border: 0; font-size: var(--font-size-xs); color: var(--color-primary-700); padding-right: 4px; background: transparent; }
.tbl { display: grid; }
.tbl-row { display: grid; grid-template-columns: 40px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px; align-items: center; min-height: 32px; padding: 0 10px; font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-900); cursor: pointer; }
.people-rows .tbl-row:nth-child(even) { background: var(--color-primary-50); }
.people-rows .tbl-row:hover { background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.people-rows .tbl-row[aria-current="true"] { background: color-mix(in srgb, var(--color-solid-black) 7%, transparent); }
.people-rows .tbl-row:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: -2px; }
.tbl-head { font-weight: var(--font-weight-semibold); cursor: default; border-bottom: 1px solid var(--color-neutral-300); min-height: 34px; padding-bottom: 6px; }
.tbl-num { color: var(--color-primary-400); font-variant-numeric: tabular-nums; }
.tbl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-you { color: var(--color-primary-400); }
.tbl-bad { color: var(--color-error-700); font-weight: var(--font-weight-semibold); }

/* the person: identity panel, banner, factor tiles, status cards, reason chips */
.person { display: grid; gap: 12px; }
#m-person-body { display: grid; gap: 10px; }
.up-identity { display: flex; align-items: center; gap: 13px; padding: 0 0 8px; }
.up-avatar-lg { flex: none; width: 52px; height: 52px; border-radius: var(--radius-badge); display: grid; place-items: center; background: var(--color-primary-200); color: var(--color-primary-700); font-size: var(--font-size-base); font-weight: var(--font-weight-bold); }
.up-id-body { flex: 1; min-width: 0; }
.up-name { margin: 0 0 2px; font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); letter-spacing: -0.36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-email { margin: 0; font-size: var(--font-size-sm); color: var(--color-primary-400); overflow-wrap: anywhere; }
.up-tag { padding: 2px 16px; border-radius: var(--radius-badge); background: color-mix(in srgb, var(--color-solid-black) 3%, transparent); border: 1px solid var(--color-neutral-300); color: var(--color-primary-400); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); white-space: nowrap; }
.up-close { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--radius-badge); background: var(--color-primary-300); color: var(--color-solid-white); display: grid; place-items: center; cursor: pointer; }
.up-close svg { width: 12px; height: 12px; }
.up-banner { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius-container-lg); font-size: var(--font-size-fluid-xs); background: color-mix(in srgb, var(--color-solid-black) 3%, transparent); color: var(--color-primary-700); }
.up-banner.ok { background: var(--color-success-50); color: var(--color-success-800); } .up-banner.error { background: var(--color-error-50); color: var(--color-error-700); } .up-banner.info { background: var(--color-warning-50); color: var(--color-warning-900); }
.up-section-label { margin: 14px 0 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-primary-400); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 26px; }
.detail-cell { display: flex; align-items: center; gap: 13px; }
.detail-icon { width: 40px; height: 40px; border-radius: var(--radius-badge); display: grid; place-items: center; background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); color: var(--color-primary-400); }
.detail-icon svg { width: 18px; height: 18px; }
.detail-text { display: grid; }
.detail-value { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); letter-spacing: -0.48px; color: var(--color-primary-900); line-height: var(--font-body-sm-lineHeight); }
.detail-label { font-size: var(--font-size-xs); color: var(--color-primary-400); letter-spacing: 0.24px; }
.up-status-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-top: 6px; }
.up-scard { display: flex; flex-direction: column; gap: 10px; padding: 11px 0; }
.up-scard-label { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-primary-400); }
.up-scard-note { margin: 0; font-size: var(--font-size-xs); line-height: var(--font-caption-md-lineHeight); color: var(--color-primary-400); flex: 1; }
.action-pill { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 37px; padding: 7px 18px;
  border: 1px solid transparent; border-radius: var(--radius-button-full); background: color-mix(in srgb, var(--color-solid-white) 40%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--color-solid-black) 10%, transparent);
  color: var(--color-primary-400); font: inherit; font-size: var(--font-size-fluid-xs); font-weight: var(--font-weight-medium); cursor: pointer; }
.action-pill:hover { color: var(--color-primary-950); background: color-mix(in srgb, var(--color-solid-white) 90%, transparent); }
.action-pill svg { width: 16px; height: 16px; flex: none; }
.action-pill-chev { font-size: var(--font-size-sm); }
.rec-chips { display: flex; flex-direction: column; gap: 7px; }
.rec-chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius-button-lg); cursor: pointer; }
.rec-chip:hover, .rec-chip:has(input:checked) { background: color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.rec-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rec-chip-icon { flex: none; width: 38px; height: 38px; border-radius: var(--radius-button-lg); display: grid; place-items: center; background: var(--color-neutral-300); color: var(--color-primary-400); }
.rec-chip-icon svg { width: 18px; height: 18px; }
.rec-chip-body { flex: 1; display: grid; gap: 2px; }
.rec-chip-body strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); color: var(--color-primary-500); letter-spacing: 0.4px; }
.rec-chip-body span { font-size: var(--font-size-xs); color: var(--color-primary-300); letter-spacing: 0.4px; }
.rec-chip:has(input:checked) .rec-chip-body strong { color: var(--color-primary-950); font-weight: var(--font-weight-medium); }
.rec-chip:has(input:checked) .rec-chip-body span { color: var(--color-primary-400); }
.rec-chip.danger:has(input:checked) .rec-chip-body strong, .rec-chip.danger:has(input:checked) .rec-chip-icon { color: var(--color-error-700); }
.rec-chip-sel { flex: none; width: 18px; height: 18px; border-radius: var(--radius-badge); border: 1px solid var(--color-primary-200); }
.rec-chip:has(input:checked) .rec-chip-sel { border: 5px solid var(--color-primary-950); }
.rec-chip:has(input:focus-visible) { outline: 2px solid var(--color-primary-950); outline-offset: 1px; }
.up-confirm { display: flex; justify-content: flex-start; }
.up-confirm .action-pill { width: auto; min-width: 170px; }
.up-roles { display: grid; gap: 8px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; }
.history li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 10px; padding: 7px 10px; font-size: var(--font-size-xs); }
.history li:nth-child(odd) { background: var(--color-primary-50); }
.history-when { color: var(--color-primary-400); }
.history-what { display: grid; gap: 1px; }
.history-what > span { color: var(--color-primary-700); }
.history-what .history-who { color: var(--color-primary-400); }

/* the act: the hi-fi action modal (title, the person it affects, what happens, the fields, then the buttons) */
.act-dialog { max-width: 32rem; padding: 28px; border-radius: var(--radius-fluid-2xl); }
.act-dialog h2 { margin: 0 0 4px; font-size: var(--font-size-fluid-xl); }
.act-dialog .act-who { margin: 0 0 8px; color: var(--color-primary-400); font-size: var(--font-size-fluid-xs); }
.act-dialog .act-name { color: var(--color-primary-300); }
.act-dialog form { display: grid; gap: 16px; margin-top: 10px; }
.act-dialog .message { margin-top: 12px; }
button.primary.danger { color: var(--color-error-800); }

@media (max-width: 760px) {
  .up-status-row { grid-template-columns: 1fr; }
  .tbl-row { grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) auto; }   /* four cells stay: 1, 2, 3 and 5 */
  .tbl-row > :nth-child(4), .tbl-row > :nth-child(6) { display: none; }
  .tbl-tools input[type="search"] { width: 150px; }
  .history li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- The person's page as the hi-fi book (Account & security BookSocket): tab cards, left page fixed on the
   person, the spine of round section buttons, the right page with the chosen section. Values measured from the hi-fi. */
.book-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 22px; }
.book-tab { display: flex; align-items: center; gap: 10px; width: 236px; padding: 8px 18px 8px 10px; border: 0; border-radius: var(--radius-badge);
  background: var(--color-solid-white); box-shadow: 0 6px 10px 0 color-mix(in srgb, var(--color-solid-black) 5%, transparent); cursor: pointer; text-align: left; font: inherit; transition: box-shadow .2s; }
.book-tab:hover { box-shadow: 0 8px 16px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.book-tab-icon { display: flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: var(--radius-badge);
  border: 1px solid var(--color-primary-200); background: var(--color-primary-1); }
.book-tab-icon svg { width: 16px; height: 16px; stroke: var(--color-primary-400); stroke-width: 1.7; fill: none; }
.book-tab.active { background: color-mix(in srgb, var(--color-solid-white) 40%, transparent); backdrop-filter: blur(4px); box-shadow: 0 6px 10px 0 color-mix(in srgb, var(--color-solid-black) 5%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--color-solid-white) 90%, transparent); }
.book-tab.active .book-tab-icon { background: var(--color-solid-black); border-color: var(--color-primary-600); }
.book-tab.active .book-tab-icon svg { stroke: var(--color-solid-white); }
.book-tab-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.book-tab-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-900); }
.book-tab-sub { font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); line-height: var(--font-label-md-lineHeight); color: var(--color-primary-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-tab:not(.active) .book-tab-title { color: var(--color-primary-400); }
.book-tab-caret { font-size: var(--font-size-xl); color: var(--color-primary-400); line-height: 1; }
.book-tab.active .book-tab-caret { color: var(--color-primary-900); }
.book { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.book-page { min-width: 0; padding: 14px 40px 32px; }
.book-left { padding-right: 34px; border-radius: 0 var(--radius-fluid-2xl) 0 0; box-shadow: -2px 4px 24px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); border-top: 1.5px solid color-mix(in srgb, var(--color-solid-white) 85%, transparent); }
.book-right { padding-left: 34px; border-radius: var(--radius-fluid-2xl) 0 0 0; box-shadow: 2px 4px 24px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); border-top: 1.5px solid color-mix(in srgb, var(--color-solid-white) 85%, transparent); }
.book-spine { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  gap: 36px; padding-top: 126px; z-index: 2; pointer-events: none; }
.book-spine::before { content: ""; position: absolute; top: 26px; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; background: color-mix(in srgb, var(--color-solid-white) 85%, transparent);
  filter: drop-shadow(5px 0 14px color-mix(in srgb, var(--color-solid-black) 16%, transparent)) drop-shadow(10px 0 30px color-mix(in srgb, var(--color-solid-black) 12%, transparent)); z-index: -1; }
.book-nub { position: relative; width: 46px; height: 46px; border-radius: var(--radius-badge); border: 2px solid var(--color-solid-white); background: color-mix(in srgb, var(--color-solid-white) 92%, transparent); cursor: pointer;
  pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: -6px 2px 10px color-mix(in srgb, var(--color-solid-black) 16%, transparent), -14px 4px 22px color-mix(in srgb, var(--color-solid-black) 8%, transparent); transition: background .2s; }
.book-nub svg { width: 20px; height: 20px; stroke: var(--color-primary-400); stroke-width: 1.2; fill: none; transition: stroke .2s; }
.book-nub:hover svg, .book-nub[data-active="true"] svg { stroke: var(--color-solid-black); }
.book-nub[data-active="true"] { background: var(--color-solid-white); }
.book-nub-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: var(--radius-badge); background: var(--color-warning-600); border: 1.5px solid var(--color-solid-white); }
.book-section-head { display: flex; align-items: center; gap: 12px; padding: 0 0 12px 14px; }
.book-section-icon { display: flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: var(--radius-container-md); background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.book-section-icon svg { width: 22px; height: 22px; stroke: var(--color-primary-700); stroke-width: 1.4; fill: none; }
.book-section-head h3 { margin: 0; font-size: var(--font-size-lg); font-weight: var(--font-weight-medium); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-950); }
.book-section-head p { margin: -2px 0 0; font-size: var(--font-size-fluid-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.book-summary { padding-left: 14px; margin-bottom: 17px; }
.book-summary-heading { margin: 10px 0 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-600); }
.book-summary-text { margin: 0; font-size: var(--font-size-fluid-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.book-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 8px 14px; border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.book-row-meta { display: flex; flex-direction: column; }
.book-row-meta strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-950); }
.book-row-meta span { font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.book-right .up-roles, .book-right .history-box { padding-left: 14px; }
@media (max-width: 760px) {
  .book-tab { width: 100%; }
  .book { grid-template-columns: 1fr; }
  .book-page { padding: 14px 4px 24px; border-radius: 0; box-shadow: none; }
  .book-spine { position: static; transform: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 4px; pointer-events: auto; }
  .book-spine::before { display: none; }
  .book-right { order: 3; }
}
/* the book lies on the page itself, as in the hi-fi, not inside a card */
#m-members-box:has(.people.is-person) { background: transparent; box-shadow: none; padding: 0; }
.book-row .action-pill { width: auto; align-self: flex-start; padding: 8px 20px; }
.book-row-why { font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
/* breadcrumb above the book; the categories are the spine's round buttons, the right page lists the chosen one's parts */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; font-size: var(--font-size-fluid-xs); color: var(--color-primary-400); min-width: 0; }
.crumbs a { color: var(--color-primary-400); text-decoration: none; }
.crumbs a:hover { color: var(--color-primary-900); text-decoration: underline; }
.crumb-here { color: var(--color-primary-900); font-weight: var(--font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-spine { gap: 24px; padding-top: 110px; }
.book-block { padding: 18px 0 6px; border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.book-block-head { display: flex; align-items: center; gap: 10px; padding-left: 14px; }
.book-block-icon { display: flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border-radius: var(--radius-badge); background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.book-block-icon svg { width: 16px; height: 16px; stroke: var(--color-primary-700); stroke-width: 1.4; fill: none; }
.book-block-head h4 { margin: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-950); }
.book-block-head p { margin: 0; font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.book-block .book-summary { margin: 6px 0 4px; padding-left: 56px; }
.book-block .book-summary-heading { margin-top: 4px; }
.book-block .book-row { border-top: 0; padding: 6px 0 8px 56px; }
.book-block .up-roles, .book-block .history-box { padding-left: 56px; }
/* one list of the acts open now: label and hint on the left, the pill on the right; leaving acts last, in error colour */
.act-list .book-row.act-line { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 14px 14px; }
.act-list .book-row.act-line:first-child { border-top: 0; }
.act-list .act-line .action-pill { flex: none; min-width: 120px; }
.act-list .act-line.is-danger .action-pill, .act-list .act-line.is-danger .book-row-meta strong { color: var(--color-error-800); }
.act-group { margin: 18px 0 0; padding: 0 0 6px 14px; font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.book-right > .up-roles, .book-right > .history-box { padding-left: 14px; }
@media (max-width: 760px) {
  .act-list .book-row.act-line { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 760px) {
  .book-block .book-summary, .book-block .book-row, .book-block .up-roles, .book-block .history-box { padding-left: 14px; }
}

/* ---------- Type after the hi-fi (measured at 1280 px), every value a Stylon token; font Noto Sans by the token selection ---------- */
body { font-size: var(--font-size-sm); line-height: var(--typography-lineHeight-body-plus); color: var(--color-primary-950); }
/* sign-up, sign-in and recovery (hi-fi flows: "Welcome back" 24/600 grey 700; lead 14/100 grey 300) */
.card h1 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: var(--font-heading-lg-lineHeight);
  letter-spacing: var(--typography-letterSpacing-default); color: var(--color-primary-700); }
.card .lead { font-size: var(--font-size-sm); font-weight: var(--font-weight-thin); line-height: var(--font-caption-md-lineHeight);
  letter-spacing: var(--typography-letterSpacing-wide); color: var(--color-primary-300); }
input, select, textarea, button.primary, button.secondary, a.button { font-size: var(--font-size-fluid-sm-plus); }
button.primary, button.secondary, a.button { font-weight: var(--font-weight-medium); }
/* Meshwork pages (hi-fi Manage Meshwork Users header: title fluid xl / 600 / grey 700; subtitle fluid xs / grey 400) */
body.app-shell .page-head h1, body.app-shell .card h1 { font-size: var(--font-size-fluid-xl); font-weight: var(--font-weight-semibold); line-height: var(--font-heading-lg-lineHeight);
  letter-spacing: var(--typography-letterSpacing-default); color: var(--color-primary-700); }
body.app-shell .page-head .lead, body.app-shell .card .lead { font-size: var(--font-size-fluid-xs); font-weight: var(--font-weight-normal);
  line-height: var(--typography-lineHeight-body-plus); letter-spacing: normal; color: var(--color-primary-400); }
body.app-shell .sub-lead { font-size: var(--font-size-fluid-xs); color: var(--color-primary-400); }
.book-left { display: grid; align-content: start; gap: var(--spacing-lg); }
.book-left .up-identity, .book-left .up-banner { margin: 0; }
/* the Intermeshwork Decentralized Identifier is long: it takes the whole row and wraps */
.detail-cell.is-wide { grid-column: 1 / -1; }
.detail-cell.is-wide .detail-value { overflow-wrap: anywhere; font-size: var(--font-size-xs); }

/* ---------- Let people join: the hi-fi admin tab cards (wx--msd-data-product-view-tab-item), one panel at a time ---------- */
.job-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 var(--spacing-fluid-11-22); }
.job-tab { display: flex; align-items: center; gap: var(--spacing-fluid-5-10); padding: var(--spacing-fluid-4-8) var(--spacing-fluid-9-18);
  border: 0; border-radius: var(--border-radius-4xl); background: var(--color-solid-white); box-shadow: 0 6px 10px 0 color-mix(in srgb, var(--color-solid-black) 5%, transparent);
  cursor: pointer; text-align: left; font: inherit; transition: box-shadow 0.2s; flex: 1 1 0; min-width: 0; }
.job-tab:hover { box-shadow: 0 8px 16px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.job-tab:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.job-tab-icon { display: flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: var(--radius-badge);
  border: 1px solid var(--color-primary-200); background: var(--color-primary-1); }
.job-tab-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--color-primary-300); stroke-width: 1.5; }
.job-tab:hover .job-tab-icon svg { stroke: var(--color-primary-600); }
.job-tab.is-active .job-tab-icon { border-color: var(--color-primary-600); background: var(--color-solid-black); }
.job-tab.is-active .job-tab-icon svg { stroke: var(--color-solid-white); }
.job-tab-label { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
.job-tab-title { font-size: var(--font-size-sm); line-height: 18px; color: var(--color-primary-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-tab.is-active .job-tab-title { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }
.job-tab-sub { font-size: var(--font-size-xs); line-height: 15px; font-weight: var(--font-weight-medium); color: var(--color-gray-125); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-tab-chev { flex: none; color: var(--color-primary-300); }
.job-head { margin: 18px 0 4px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-950); }
.job-panel > .job-head:first-child { margin-top: 0; }
.act-buttons { display: flex; flex: none; gap: 8px; }
.act-people { margin: 4px 0 0; padding-left: 16px; font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.job-earlier { margin-top: 18px; }
.job-earlier > summary { cursor: pointer; font-size: var(--font-size-sm); color: var(--color-primary-600); }
#m-joins:empty::before { content: attr(data-empty); color: var(--color-primary-400); font-size: var(--font-size-sm); }
/* Provisioning and Invitation: the steps of the job, then one section per step */
body.app-shell .stepper.job-steps { display: grid !important; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 0 var(--spacing-fluid-9-18); }
body.app-shell .stepper.job-steps.four { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
.stepper.job-steps li > button { all: unset; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.stepper.job-steps li > button:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; border-radius: var(--radius-button-sm); }
.wizard-step .actions { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; }
.wizard-step #m-review-people, .wizard-step #m-send-people { margin: 8px 0 16px; font-size: var(--font-size-sm); color: var(--color-primary-900); max-height: 280px; overflow: auto; }
.job-section { margin-top: var(--spacing-fluid-11-22); padding-top: var(--spacing-fluid-5-10); border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.job-section > .job-head:first-child { margin-top: 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--border-radius-4xl); background: var(--color-primary-50, color-mix(in srgb, var(--color-solid-black) 4%, transparent)); }
.seg label { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--border-radius-4xl); cursor: pointer; font-size: var(--font-size-sm); color: var(--color-primary-600); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--color-solid-white); color: var(--color-primary-950); font-weight: var(--font-weight-semibold); box-shadow: 0 2px 6px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--spacing-md, 16px); }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.choose { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: var(--font-size-sm); color: var(--color-primary-900); cursor: pointer; }
.choose input { width: 18px; height: 18px; flex: none; accent-color: var(--color-solid-black); }
.choose.is-all { font-weight: var(--font-weight-semibold); border-bottom: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.choose.is-list { font-weight: var(--font-weight-medium); color: var(--color-primary-600); }
.choose-group { padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.choose-people { padding-left: 28px; }
.choose-people .choose { padding: 4px 0; }
.act-who-list > summary { cursor: pointer; font-size: var(--font-size-xs); color: var(--color-primary-600); margin-top: 4px; }
.act-line.is-muted .book-row-meta strong { color: var(--color-primary-400); }
@media (max-width: 760px) {
  .job-tab { flex: 1 1 100%; }
  .act-buttons { flex-wrap: wrap; }
}

.adding-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-container-lg);
  background: color-mix(in srgb, var(--color-solid-black) 4%, transparent); font-size: var(--font-size-sm); color: var(--color-primary-900); }
.link-button { all: unset; cursor: pointer; color: var(--color-primary-600); text-decoration: underline; font-size: var(--font-size-sm); }
.link-button:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }

.state-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.state-chip { border: 0; border-radius: var(--radius-badge); padding: 5px 12px; font: inherit; font-size: var(--font-size-xs); cursor: pointer;
  background: var(--color-solid-white); color: var(--color-primary-700, var(--color-primary-600)); box-shadow: 0 2px 6px 0 color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.state-chip[aria-pressed="true"] { background: var(--color-solid-black); color: var(--color-solid-white); }
.state-chip:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.book-row-meta strong.with-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

#m-review-people li.is-repeat { color: var(--color-primary-400); text-decoration: line-through; }
#m-batch-template { display: inline-block; margin-top: 6px; }

.book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.book-page { min-width: 0; }
.detail-value { overflow-wrap: anywhere; }
.ambit-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
@media (max-width: 760px) { .book { grid-template-columns: minmax(0, 1fr); } }
.up-roles .act-group { padding-left: 0; margin: 10px 0 2px; }
.up-roles button { padding: 6px 18px; font-size: var(--font-size-sm); min-height: 0; }
.up-roles .actions { align-items: center; margin-top: 4px; }
.book-left { grid-template-columns: minmax(0, 1fr); }
.book-left .detail-grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
/* below 1000 px the book is one column; the center buttons become a row between who they are and the chosen page */
@media (max-width: 1000px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-page { border-radius: 0; box-shadow: none; }
  .book-spine { position: static; transform: none; flex-direction: row; justify-content: center; gap: 16px; padding: 8px 4px; }
  .book-spine::before { display: none; }
  .book-right { order: 3; }
}
/* Bring people in, Email Domains: each way in opens on its list; the record or the steps show in its place */
body.app-shell .job-panel[data-view="list"] > :is(.job-crumb, .job-detail, .job-work, .job-steps, .wizard-step) { display: none !important; }
body.app-shell .job-panel[data-view="work"] > :is(.job-list, .job-detail) { display: none !important; }
body.app-shell .job-panel[data-view="detail"] > :is(.job-list, .job-work, .job-steps, .wizard-step) { display: none !important; }
.job-crumb { margin: 0 0 14px; }
.job-crumb a { cursor: pointer; }
.job-tbl .tbl-row { grid-template-columns: 40px var(--cols); }
.job-tbl .tbl-body .tbl-row:nth-child(even) { background: var(--color-primary-50); }
.job-tbl .tbl-body .tbl-row:not(.is-static):hover { background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.job-tbl .tbl-row:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: -2px; }
.job-tbl .tbl-row.is-static { cursor: default; }
.tbl-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-primary-700); }
.tbl-count { font-size: var(--font-size-xs); color: var(--color-primary-400); }
.tbl-tools > button.primary { margin-left: 8px; padding: 6px 18px; font-size: var(--font-size-sm); min-height: 0; }
.tbl-empty { padding: 18px 10px; }
.batch-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.batch-pick-button { height: 28px; padding: 0 22px 0 8px; border: 1px solid var(--color-primary-200); border-radius: var(--radius-button-md); background: transparent; font-size: var(--font-size-xs); color: var(--color-primary-700); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; cursor: pointer; }
.batch-pick-button::after { content: "▾"; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--color-primary-400); }
.batch-pick-panel { position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; width: 340px; padding: 10px; border-radius: var(--radius-input-lg); background: var(--color-solid-white); box-shadow: 0 8px 28px rgb(0 0 0 / 14%); display: grid; gap: 8px; }
.batch-pick-panel input[type="search"] { height: 32px; width: 100%; border-bottom: var(--border-width-default) solid var(--color-border-stroke); font-size: var(--font-size-xs); }
.batch-pick-panel .sub-lead { margin: 0; font-size: var(--font-size-xs); }
.batch-pick-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.batch-pick-list button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 8px; border: 0; border-radius: var(--radius-button-md); background: transparent; text-align: left; font-size: var(--font-size-xs); color: var(--color-primary-900); cursor: pointer; }
.batch-pick-list button:hover, .batch-pick-list button:focus-visible { background: color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.batch-pick-count { color: var(--color-primary-400); white-space: nowrap; }
.tbl-link { font-size: inherit; padding: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.invite-groups { display: grid; gap: 8px; }
.invite-group { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; border: 1px solid color-mix(in srgb, var(--color-solid-black) 8%, transparent); border-radius: var(--radius-input-lg); background: transparent; padding: 12px 14px; cursor: pointer; }
.invite-group:hover, .invite-group:focus-visible { background: color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.invite-group-count { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); color: var(--color-primary-900); }
.tbl-all { padding: 8px 10px; margin: 0; background: color-mix(in srgb, var(--color-solid-black) 4%, transparent); border-radius: var(--radius-menu); }
.job-tbl .tbl-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--color-solid-black); cursor: pointer; }
.job-tbl .tbl-row.is-chosen { background: color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
.tbl-tools { flex-wrap: wrap; justify-content: flex-end; }
.tbl-filter-name { font-size: var(--font-size-xs); color: var(--color-primary-400); white-space: nowrap; }
.tbl-filter select { max-width: 220px; text-overflow: ellipsis; }
.job-detail .act-list { margin-top: 0; }
@media (max-width: 760px) {
  .job-tbl .tbl-row { grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); }   /* 1, 2, 3 and the last */
  .job-tbl .tbl-row > :nth-child(n+4) { display: none; }
  .job-tbl .tbl-row > :last-child { display: block; }
  .tbl-tools > button.primary { margin-left: 0; }
  .tbl-filter-name { display: none; }
  .job-tbl .tbl-row > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .job-tbl .tbl-head > * { white-space: normal; overflow-wrap: anywhere; }
  .tbl-filter select { max-width: 200px; }
}
body.app-shell #m-inv-steps { grid-template-columns: repeat(2, 1fr); max-width: 380px; }

/* ---------- The menu behind the centre mark: top-level menus as headings, their items beneath (owner 27 Nov, option A) ---------- */
.menu-groups { display: grid; gap: 14px; }
.menu-group-title { margin: 0 4px 6px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-400);
  text-transform: none; }
/* ---------- Meshwork Profile ---------- */
.profile-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.profile-facts dt { color: var(--color-primary-400); }
.profile-facts dd { margin: 0; font-weight: var(--font-weight-semibold); }
/* One item's page or a form stands alone: the other lists of the same task step back (owner 27 Nov). */
body.app-shell .job-panel.is-behind { display: none !important; }
/* Email Domains (27 Nov): the TXT record value is copied exactly, so it is shown in a fixed-width face and may wrap */
body.app-shell .profile-facts dd.mono { font-family: var(--font-family-mono); font-weight: var(--font-weight-normal); overflow-wrap: anywhere; }
body.app-shell #m-rule-detail section.act-list { margin-top: var(--spacing-lg); display: grid; gap: var(--spacing-md); }

/* Admission Policy (hi-fi №19 clickable choice card + №22 summary rows): glass cards, one tap sets the way in force */
.adm-panel .job-detail { display: grid; gap: var(--spacing-lg); }
.adm-card { display: grid; gap: 12px; padding: var(--spacing-fluid-9-18); border-radius: var(--border-radius-2xl);
  background: color-mix(in srgb, var(--color-solid-white) 55%, transparent); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--color-solid-white) 85%, transparent);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--color-solid-black) 18%, transparent), inset 0 1px 0 color-mix(in srgb, var(--color-solid-white) 90%, transparent); }
.adm-card .sub-lead { margin: 0; }
.adm-label { margin: 0; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary-400); }
.adm-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.adm-way { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit;
  padding: var(--spacing-fluid-9-18) var(--spacing-fluid-9-18) 14px; border-radius: var(--border-radius-xl); cursor: pointer;
  background: color-mix(in srgb, var(--color-solid-white) 62%, transparent); border: 1px solid var(--color-border-stroke);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.adm-way:hover:not(:disabled):not(.is-current) { background: var(--color-solid-white); border-color: var(--color-symbiontra-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.adm-way:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.adm-way:disabled { cursor: default; }
.adm-way:disabled:not(.is-current) { opacity: .55; }
.adm-way.is-current { cursor: default; background: var(--color-solid-white); border-color: var(--color-symbiontra-accent);
  box-shadow: 0 0 0 3px var(--color-symbiontra-accent-soft), var(--shadow-sm); }
.adm-way.is-busy { opacity: 1; animation: adm-pulse 1.2s ease-in-out infinite; }
@keyframes adm-pulse { 50% { box-shadow: 0 0 0 4px var(--color-symbiontra-accent-soft); } }
.adm-way-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--border-radius-lg); margin-bottom: 4px;
  background: var(--color-symbiontra-accent-soft); color: var(--color-symbiontra-accent); }
.adm-way strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-950); }
.adm-way-text { font-size: var(--font-size-xs); line-height: 1.5; color: var(--color-primary-500); }
.adm-way-facts { display: grid; gap: 2px; margin-top: auto; padding-top: 8px; font-size: var(--font-size-xs); color: var(--color-primary-700); }
.adm-way-facts em { font-style: normal; color: var(--color-primary-400); }
.adm-way-now { position: absolute; top: 12px; right: 12px; padding: 1px 10px; border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); background: var(--color-success-100); color: var(--color-success-900); }
.adm-class { border-top: 1px solid var(--color-border-divider); }
.adm-class:first-of-type { border-top: 0; }
.adm-class summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; }
.adm-class summary::-webkit-details-marker { display: none; }
.adm-class summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--color-primary-400); border-bottom: 1.5px solid var(--color-primary-400); transform: rotate(45deg); transition: transform .15s ease; margin-left: 4px; }
.adm-class[open] summary::after { transform: rotate(-135deg); }
.adm-class-name { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-950); }
.adm-class-count { margin-left: auto; font-size: var(--font-size-xs); color: var(--color-primary-500); }
.adm-class-names { margin: 0 0 12px; font-size: var(--font-size-xs); line-height: 1.8; color: var(--color-primary-600); word-break: break-word; }
.adm-link { justify-self: start; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-primary-950); text-underline-offset: 3px; }
@media (max-width: 720px) { .adm-ways { grid-template-columns: 1fr; } .adm-way-now { top: 14px; } }
.adm-card .message { margin: 4px 0 0; }

/* Email Domain page: two numbered steps (hi-fi №24), the open one on a glass card; copy lives inside the value */
.dom-steps { list-style: none; margin: var(--spacing-lg) 0 0; padding: 0; display: grid; gap: 10px; }
.dom-partner { margin-top: var(--spacing-lg); }
.dom-partner h4 { margin: 0 0 6px; }
.dom-partner .sub-lead { margin: 0 0 var(--spacing-md, 14px); }
.dom-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--border-radius-xl); }
.dom-step-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); border: 1.5px solid var(--color-primary-300); color: var(--color-primary-500); }
.dom-step-body { display: grid; gap: 8px; min-width: 0; padding-top: 3px; }
.dom-step-body > strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-500); }
.dom-step-body > span { font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-primary-600); }
.dom-step-body .actions { margin-top: 4px; }
.dom-step.is-now { background: color-mix(in srgb, var(--color-solid-white) 62%, transparent); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--color-solid-white) 85%, transparent);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--color-solid-black) 18%, transparent), inset 0 1px 0 color-mix(in srgb, var(--color-solid-white) 90%, transparent); }
.dom-step.is-now .dom-step-num { background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white); }
.dom-step.is-now .dom-step-body > strong, .dom-step.is-done .dom-step-body > strong { color: var(--color-primary-950); }
.dom-step.is-done .dom-step-num { background: var(--color-success-100); border-color: var(--color-success-600); color: var(--color-success-900); }
.dom-step.is-done .dom-step-num::before { content: "✓"; font-size: var(--font-size-sm); }
.dom-record { border-radius: var(--border-radius-lg); background: var(--color-solid-white); border: 1px solid var(--color-border-stroke); padding: 10px 14px; }
.dom-record dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: var(--font-size-sm); }
.dom-record dt { color: var(--color-primary-400); }
.dom-record dd { margin: 0; color: var(--color-primary-950); min-width: 0; }
.dom-record dd.mono { display: flex; align-items: center; gap: 8px; font-family: var(--font-family-mono); font-size: var(--font-size-xs); }
.dom-record dd.mono span { word-break: break-all; }
.copy-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--border-radius-md); cursor: pointer;
  background: transparent; border: 1px solid var(--color-border-stroke); color: var(--color-primary-600); transition: background .15s ease, color .15s ease; }
.copy-icon:hover { background: var(--color-primary-50); color: var(--color-primary-950); }
.copy-icon:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.copy-icon.is-done { background: var(--color-success-100); border-color: var(--color-success-600); color: var(--color-success-900); }
:is(#m-rule-detail, #m-batch-detail) .job-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
:is(#m-rule-detail, #m-batch-detail) .job-detail-head .action-pill { width: auto; flex: none; margin: 0; }
.adm-class-count { white-space: nowrap; }

/* A menu's pages as tabs at the top of its page (hi-fi №17 .wx--msd-data-product-view-tab-item): white pill, a 28px
   icon disc, title + subtitle; the open page's disc turns black and the pill reads as glass */
.desk-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 var(--spacing-lg); }
.desk-tab { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; max-width: 280px; padding: 8px 18px 8px 10px;
  border-radius: var(--border-radius-4xl); background: var(--color-solid-white); text-decoration: none; color: inherit;
  box-shadow: 0 6px 10px 0 color-mix(in srgb, var(--color-solid-black) 5%, transparent); transition: box-shadow .2s ease; }
.desk-tab:hover { box-shadow: 0 8px 16px 0 color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.desk-tab:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.desk-tab-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-badge);
  border: 1px solid var(--color-primary-200); background: var(--color-primary-1); color: var(--color-primary-300); }
.desk-tab-icon svg { width: 16px; height: 16px; }
.desk-tab:hover .desk-tab-icon { color: var(--color-primary-600); }
.desk-tab-label { display: grid; min-width: 0; }
.desk-tab-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-tab-sub { font-size: var(--font-size-xs); color: var(--color-primary-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-tab.is-active { cursor: default; background: color-mix(in srgb, var(--color-solid-white) 40%, transparent); backdrop-filter: blur(4px);
  box-shadow: 0 6px 10px 0 color-mix(in srgb, var(--color-solid-black) 5%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--color-solid-white) 90%, transparent); }
.desk-tab.is-active .desk-tab-icon { background: var(--color-solid-black); border-color: var(--color-primary-600); color: var(--color-solid-white); }
.desk-tab.is-locked .desk-tab-title { color: var(--color-primary-500); }
.desk-tab.is-locked .desk-tab-icon { border-style: dashed; }
@media (max-width: 640px) {
  .desk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 10px; }
  .desk-tabs::-webkit-scrollbar { display: none; }
  .desk-tab { flex: 0 0 auto; max-width: 240px; }
}
/* even rows (hi-fi: a deliberate 3+2 block, never a 4+1 orphan) and the whole page name, never cut */
@media (min-width: 641px) {
  .desk-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .desk-tab { max-width: none; }
  .desk-tab-title { white-space: normal; overflow: visible; line-height: 1.25; }
}
@media (max-width: 640px) { .desk-tab { padding: 6px 14px 6px 6px; } .desk-tab-sub { display: none; } }
@media (max-width: 640px) { .desk-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; gap: 8px; } .desk-tab { max-width: 100%; } }

/* Grid view of a list (owner 27 Nov): glass cards, the whole card opens the item; no button on a card */
.card-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.grid-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; cursor: pointer;
  padding: 14px 16px 14px; border-radius: var(--border-radius-xl); color: inherit;
  background: color-mix(in srgb, var(--color-solid-white) 62%, transparent); border: 1px solid var(--color-border-stroke);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.grid-card:hover { background: var(--color-solid-white); border-color: var(--color-symbiontra-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.grid-card:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.grid-card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.grid-card .avatar, .join-card .avatar { width: 36px; height: 36px; border-radius: var(--radius-badge); font-size: var(--font-size-xs);
  background: var(--color-primary-950); color: var(--color-solid-white); }
.grid-card-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-950); }
.grid-card-sub { max-width: 100%; font-size: var(--font-size-xs); color: var(--color-primary-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-card-foot { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px;
  font-size: var(--font-size-xs); color: var(--color-primary-400); }
.grid-card-foot .tag { background: var(--color-primary-50); color: var(--color-primary-700); padding: 1px 10px; border-radius: var(--radius-badge); }
.join-card { max-width: 640px; }
.join-head { display: flex; align-items: center; gap: 14px; }
.join-head h3 { margin: 0; }
.join-head .sub-lead { margin: 2px 0 0; }
.join-card .avatar-lg { width: 48px; height: 48px; font-size: var(--font-size-sm); flex: none; }
.join-what { margin: 0; padding: 10px 14px; border-radius: var(--border-radius-lg); background: color-mix(in srgb, var(--color-solid-white) 70%, transparent);
  font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-primary-700); }
.grid-card-when { font-size: var(--font-size-xs); color: var(--color-primary-400); }

/* Hi-fi card view of a request list (.wx-glass-card-list / .wx-glass-card): wide rows split by a hairline; on hover the row
   turns to glass; # number, 52px avatar, name + mono email, icon detail cells (value over label), the state pill at the end */
.glass-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; contain: inline-size; } /* the long one-line names never widen the page */
.glass-list > li + li { border-top: 1px solid color-mix(in srgb, var(--color-primary-950) 10%, transparent); }
.glass-row { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 12px; border: 0; border-radius: var(--border-radius-xl);
  background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease; }
.glass-row:hover { background: color-mix(in srgb, var(--color-solid-white) 45%, transparent); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
.glass-row:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: -2px; }
.glass-num { flex: none; width: 36px; font-size: var(--font-size-xs); color: var(--color-primary-400); font-variant-numeric: tabular-nums; }
.glass-avatar { flex: none; width: 52px; height: 52px; border-radius: var(--radius-avatar-full); display: grid; place-items: center;
  background: var(--color-primary-200); color: var(--color-primary-700); font-weight: var(--font-weight-bold); font-size: var(--font-size-base); }
.glass-main { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.glass-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass-desc { font-family: var(--font-family-mono); font-size: var(--font-size-xs); color: var(--color-primary-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass-cells { flex: 1 1 auto; display: flex; gap: 24px; min-width: 0; }
.glass-cell { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.glass-icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius-avatar-full); display: grid; place-items: center;
  background: color-mix(in srgb, var(--color-primary-950) 5%, transparent); color: var(--color-primary-400); }
.glass-icon svg { width: 18px; height: 18px; }
.glass-cell-text { display: flex; flex-direction: column; min-width: 0; }
.glass-value { font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-primary-900); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass-label { font-size: var(--font-size-2xs, 11px); color: var(--color-primary-400); letter-spacing: .02em; }
.glass-state { flex: none; }
@media (max-width: 720px) {
  .glass-row { flex-wrap: wrap; gap: 12px; padding: 14px 8px; }
  .glass-num { display: none; }
  .glass-avatar { width: 40px; height: 40px; font-size: var(--font-size-sm); }
  .glass-main { flex: 1 1 0; }
  .glass-cells { order: 3; flex-basis: 100%; gap: 12px; }
  .glass-icon { width: 32px; height: 32px; }
  .glass-state { order: 2; }   /* the pill sits above the facts, so the name and email keep the full width */
  .glass-main { flex-basis: calc(100% - 52px); }
  .glass-value { white-space: normal; }
}

/* The Legal Identity Binding Code the Approver reads out at the sitting: large, spaced, easy to read aloud */
.binding-code { margin: 6px 0; font-family: var(--font-family-mono); font-size: var(--typography-fontSize-4xl); font-weight: var(--font-weight-semibold);
  letter-spacing: .12em; color: var(--color-primary-950); }

/* A Meshwork's own logo (owner 28 Nov): beside its name in the bar, in its Profile, and on Symbiontra's app cards. */
.brand-logo { height: 26px; width: 26px; object-fit: contain; margin-right: 8px; border-radius: var(--radius-button-sm); flex: none; }
body.app-shell .brand-logo { height: 22px; width: 22px; }
.app-mark.has-logo { padding: 4px; overflow: hidden; }
.app-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* The Meshwork home (owner 28 Nov: calm, useful, not playful): the Meshwork's mark and name, then what needs a decision,
   the members at a glance, and the person's own membership. Quiet numbers, plain rows, small radii. */
.home-hero { display: flex; align-items: center; gap: 16px; }
.home-logo { width: 52px; height: 52px; object-fit: contain; border-radius: var(--radius-input-lg); background: var(--color-solid-white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 8%, transparent); padding: 4px; flex: none; }
.home-eyebrow { margin: 0; font-size: var(--font-size-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-500); }
.home-hero h1 { margin: 2px 0 4px; }
#m-app-home .panel { border-radius: var(--radius-container-lg); padding: 20px 22px; }
:is(#m-app-home, #m-pf-needs) .attention { gap: 0; }
:is(#m-app-home, #m-pf-needs) .attention-row { border-radius: 0; background: transparent; box-shadow: none; padding: 12px 4px;
  border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
:is(#m-app-home, #m-pf-needs) .attention-row:first-child { border-top: 0; }
:is(#m-app-home, #m-pf-needs) .attention-row:hover { box-shadow: none; background: color-mix(in srgb, var(--color-solid-black) 3%, transparent); }
#m-app-home .attention-count { min-width: 0; height: auto; border-radius: 0; background: none; color: var(--color-primary-950);
  font-size: var(--font-size-lg); font-variant-numeric: tabular-nums; width: 40px; padding: 0; place-items: center start; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-link { font-size: var(--font-size-sm); color: var(--color-primary-700); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.glance-tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-input-lg); text-decoration: none; color: inherit;
  background: var(--color-solid-white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 7%, transparent); }
.glance-tile:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 18%, transparent); }
.glance-tile:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
.glance-number { font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.glance-label { font-size: var(--font-size-sm); color: var(--color-primary-500); }
.home-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); display: grid; gap: 14px 24px; }
.home-facts dt { font-size: var(--font-size-xs); }
.home-facts dd { margin: 2px 0 0; font-weight: var(--font-weight-medium); }
.home-leave { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.home-leave .sub-lead { margin: 0; flex: 1 1 260px; }
.home-leave .actions { margin: 0; }
.home-fact dd { margin: 2px 0 0; }
@media (max-width: 520px) {
  .glance { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .glance-tile { padding: 10px; }
  .glance-number { font-size: var(--font-size-xl); }
  .glance-label { font-size: var(--font-size-xs); }
  #m-app-home .panel { padding: 16px; }
}

/* Signed-in pages (owner 28 Nov: "not too much centred; some space left and right, but not too much"): one width rule
   for every app page, wide with modest fluid side margins, replacing the earlier 880/920/1240px caps. */
body.app-shell main,
body.app-shell main:has(#m-desk:not([hidden])),
body.app-shell main:has(.card.wide:not([hidden])),
body.app-shell main:has(#m-members-box:not([hidden]) .people) {
  max-width: 1600px;
  padding-inline: var(--spacing-fluid-24-48);
}

/* Review 28 Nov against Webxtron (pill tabs with icon, title and subtitle are its own pattern, kept): the tabs take the
   width of their words, so no title or subtitle is cut; table headings and state pills stay on one line; a Join Request
   row gives the name and address the free width. */
.desk-tab { flex: 0 0 auto; max-width: none; }
.desk-tab-title, .desk-tab-sub { overflow: visible; text-overflow: clip; }
.tbl-head > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-main { flex: 0 0 32%; }
.glass-cells { flex: 1 1 0; }  /* same share on every row, so the columns line up */
.desk-tab-label { min-width: auto; }
/* A form page reads best at form width, on the left, not stretched across a wide screen. */
#m-me { max-width: 48rem; }
/* My Meshworks: one grid card per Meshwork (Webxtron grid card), never one bar across the page. */
#m-memberships { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: var(--spacing-lg); }
.meshwork-card { display: grid; gap: var(--spacing-lg); align-content: space-between; padding: var(--spacing-2xl); border-radius: var(--radius-container-lg); }
.meshwork-card .item-head { display: grid; gap: var(--spacing-md); }
.meshwork-card-name { display: flex; align-items: center; gap: var(--spacing-md); }
.meshwork-card .actions { margin: 0; }
/* Desktop (owner 28 Nov: desktop only for now): the tabs of a menu in one row, each as wide as its words. */
@media (min-width: 641px) {
  .desk-tabs { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
  .desk-tab { flex: 0 0 auto; padding-right: var(--spacing-lg); }
  .desk-tab-title { white-space: nowrap; }
}
/* Reports: two dates side by side at form width, not stretched across the page. */
#m-reports .row { max-width: 40rem; }
@media (min-width: 641px) { .desk-tab { padding-right: var(--spacing-md); } }

/* Profile (owner 29 Nov): our book view, like a member's profile. Left page: the Meshwork's logo or initial, its name and address,
   then its facts as detail cells. Right page: the logo as a tile with a pencil to replace it and a cross to remove it. */
#m-profile:not([hidden]) { display: grid; gap: var(--spacing-lg); }
#in-meshwork .up-avatar-lg, #m-profile .up-avatar-lg { overflow: hidden; }
#in-meshwork .up-avatar-lg img, #m-profile .up-avatar-lg img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--color-solid-white); }
#in-meshwork .up-id-body a.up-email, #m-profile .up-id-body a.up-email { color: var(--color-primary-700); text-decoration: underline; text-underline-offset: var(--spacing-2xs); overflow-wrap: anywhere; }
#m-profile .book-right .profile-logo-field { margin: var(--spacing-lg) 0 0 var(--spacing-sm); }
#in-meshwork .profile-none, #m-profile .profile-none { margin: 0; padding: var(--spacing-md) 0 0 14px; font-size: var(--font-size-xs); color: var(--color-primary-400); }
#m-profile .book-right .logo-edit { top: calc(6rem - 1.1rem); }
#m-profile .book-right .logo-remove { top: -0.65rem; }
.profile-form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--spacing-2xl); align-items: start; }
.profile-logo-field { position: relative; display: grid; gap: var(--spacing-xs); justify-items: start; }
/* Webxtron field, display mode (wx-omni-stylet field.wg, btm-label-ori): the label in primary-400 at the small size; the
   value in primary-700, medium; one underline of border-stroke at the default width; the field's padding fluid 6-12. */
.profile-label, .profile-fields dt { font-size: var(--typography-fontSize-xs); color: var(--color-primary-400); }
.logo-tile { width: 6rem; height: 6rem; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-container-md);
  border: var(--border-width-default) solid var(--color-primary-200); background: var(--color-solid-white); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-tile.has-logo { padding: var(--spacing-xs); }
.logo-initials { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); color: var(--color-primary-400); }
.logo-edit, .logo-remove { position: absolute; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border-radius: var(--radius-badge); border: var(--border-width-default) solid var(--color-primary-200);
  background: var(--color-solid-white); color: var(--color-primary-900); box-shadow: var(--shadow-sm); cursor: pointer; }
.logo-edit svg, .logo-remove svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-edit { left: calc(6rem - 1.1rem); top: calc(var(--font-size-xs) * 1.5 + var(--spacing-xs) + 6rem - 1.1rem); }
.logo-remove { left: calc(6rem - 1.1rem); top: calc(var(--font-size-xs) * 1.5 + var(--spacing-xs) - 0.65rem); }
.logo-remove:hover { color: var(--color-error-600); border-color: var(--color-error-600); }
.logo-edit:hover { border-color: var(--color-primary-900); }
.logo-edit:focus-visible, .logo-remove:focus-visible { outline: var(--focus-ringWidth) var(--focus-ringStyle) var(--color-border-navigationFocus); outline-offset: var(--focus-ringOffset); }
.profile-hint { margin: var(--spacing-xs) 0 0; max-width: 9rem; font-size: var(--font-size-xs); color: var(--color-primary-400); }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-xl) var(--spacing-2xl); margin: 0; }
.profile-field { display: grid; gap: var(--spacing-xs); min-width: 0; }
.profile-field dd { margin: 0; padding: var(--spacing-fluid-6-12) 0; border-bottom: var(--border-width-default) solid var(--color-border-stroke);
  color: var(--color-primary-700); font-weight: var(--typography-fontWeight-medium); overflow-wrap: anywhere; }
#m-profile .message { margin: 0; }

/* States in plain words (owner 28 Nov: no coloured dot before a row, no colour on a state for now). Every state is the one
   .state-pill of ui.js statePill(); its kind (good, bad, wait) rides as data-kind, so colour can come back here in one place. */
.tag.state-pill { display: inline-block; font-size: var(--font-caption-strong-fontSize); padding: 0 var(--spacing-sm); border-radius: var(--radius-badge);
  background: var(--color-solid-white); color: var(--color-primary-700); border: var(--border-width-default) solid var(--color-border-stroke); }
.tbl-row .state-pill { white-space: nowrap; }
.tbl-bad { color: inherit; font-weight: inherit; }

/* Owner 28 Nov: risky acts (End, Evict, Leave) look like any other act; no red. The step-up and "asks again" keep them safe. */
.act-list .act-line.is-danger .action-pill, .act-list .act-line.is-danger .book-row-meta strong,
button.primary.danger, button.secondary.danger { color: inherit; border-color: var(--color-border-stroke); }

/* Owner 28 Nov: colour very mild everywhere. Done marks, tags and outcome boxes are neutral;
   only a field error keeps the light error colour, with words that say what is wrong. */
.stepper li.is-done { color: inherit; }
.stepper li.is-done::before, .dom-step.is-done .dom-step-num, .copy-icon.is-done, .done-mark {
  background: var(--color-solid-white); border-color: var(--color-border-stroke); color: var(--color-primary-700); }
.stepper li.is-done::after { background: var(--color-border-stroke); }
.tag.good, .tag.bad, .adm-way-now { background: var(--color-solid-white); color: var(--color-primary-700); border: var(--border-width-default) solid var(--color-border-stroke); }
.message.ok, .message.info, .up-banner.ok, .up-banner.info, .test-note {
  background: var(--color-solid-white); color: var(--color-primary-700); border: var(--border-width-default) solid var(--color-border-stroke); }
.message.error, .up-banner.error { background: var(--color-solid-white); color: var(--color-error-700); border: var(--border-width-default) solid var(--color-border-stroke); }
.book-nub-dot { background: var(--color-primary-700); }
.rec-chip.danger:has(input:checked) .rec-chip-body strong, .rec-chip.danger:has(input:checked) .rec-chip-icon { color: inherit; }
.logo-remove:hover { color: var(--color-primary-700); border-color: var(--color-primary-700); }

/* The Webxtron field line, one step darker: --color-border-stroke (#f1f1f1) is made for white cards and vanishes on our
   textured page. Same shape, same grey scale (primary-200); hover, focus and error stay as Webxtron has them. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(:hover):not(:focus):not([aria-invalid="true"]),
select:not(:hover):not(:focus):not([aria-invalid="true"]), textarea:not(:hover):not(:focus):not([aria-invalid="true"]),
.profile-field dd { border-bottom-color: var(--color-primary-200); }

/* Small grey text was primary-300 / gray-125 (#bfbfbf), too pale to read on the light page. Mild but readable: primary-500. */
.card .lead, .rec-chip-body span, .act-dialog .act-name, .book-tab-sub, .job-tab-sub { color: var(--color-primary-500); }

/* Radios and checkboxes: the neutral dark grey, not the browser's blue. */
input[type="radio"], input[type="checkbox"] { accent-color: var(--color-primary-800); }

/* A plain state beside a name (no pill colour now) keeps a gap, so the two never run together. */
.with-tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-sm); }

/* 28 Nov: the main act that starts something new carries a plus (hi-fi №12); Email Domain steps as a wizard */
button.with-plus { display: inline-flex; align-items: center; gap: var(--spacing-xs); }
button.with-plus svg { flex: none; }
body.app-shell .stepper.job-steps:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
#m-rule .wizard-step .dom-record { margin: var(--spacing-md) 0; }
#m-rule .wizard-step .profile-facts { margin: 0 0 var(--spacing-md); }
button.with-plus::after { content: none; }
/* a long Universe column name wraps onto a second line instead of being cut */
.job-tbl .tbl-head > * { white-space: normal; overflow-wrap: break-word; text-overflow: clip; align-self: end; }
#m-batch-detail .job-detail-head .act-buttons { display: flex; gap: var(--spacing-sm); }
.batch-page, .join-page { display: grid; gap: var(--spacing-md); }
/* My identity sits on the same white card as the desk's pages, not on the bare background */
body.app-shell #m-me:not([hidden]) { padding: 20px 22px; border-radius: var(--radius-modal);
  background: color-mix(in srgb, var(--color-solid-white) 72%, transparent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
/* Directory page: the form to change the credential opens under the facts, with the page's own spacing */
#m-dir-cred .job-work-inline { display: grid; gap: var(--spacing-md); margin-top: var(--spacing-md); max-width: 520px; }
#m-dir-detail > .actions { margin-top: var(--spacing-md); }
/* Provider setup has five steps */
body.app-shell .stepper.job-steps.five { grid-template-columns: repeat(5, 1fr); max-width: 860px; }
/* Directory setup: what the admin does, in order, and the wait for the directory's first message */
.plain-steps { margin: 0 0 var(--spacing-md); padding-left: 1.2em; display: grid; gap: var(--spacing-xs); }
.dir-wait { display: grid; gap: var(--spacing-xs); margin: var(--spacing-md) 0; padding: 12px 14px; border-radius: var(--border-radius-lg);
  background: color-mix(in srgb, var(--color-solid-white) 70%, transparent); }
:is(#m-prov, #m-dir) > .wizard-step .profile-facts { margin-bottom: var(--spacing-md); }

/* Owner 28 Nov: the three step states must be told apart at a glance.
   Done = muted sage green with a tick; Now = dark filled circle with a soft ring; Not yet = plain grey circle. */
.stepper li::before, .dom-step-num { background: var(--color-solid-white); border-color: var(--color-neutral-700); color: var(--color-neutral-900); }
.stepper li::after { background: var(--color-neutral-700); }
.stepper li { color: var(--color-neutral-900); }
.stepper li.is-done::before, .dom-step.is-done .dom-step-num {
  background: color-mix(in srgb, var(--color-success-100) 55%, var(--color-solid-white));
  border-color: color-mix(in srgb, var(--color-success-700) 55%, var(--color-neutral-700));
  color: color-mix(in srgb, var(--color-success-900) 75%, var(--color-primary-700)); }
.stepper li.is-done { color: color-mix(in srgb, var(--color-success-900) 60%, var(--color-primary-700)); }
.stepper li.is-done::after { background: color-mix(in srgb, var(--color-success-700) 45%, var(--color-neutral-700)); }
.stepper li.is-current::before, .dom-step.is-now .dom-step-num {
  background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary-950) 14%, transparent); }
.stepper li.is-current { color: var(--color-primary-950); }

/* One Meshwork at Symbiontra (owner 29 Nov): the person's own state and the one act it allows, under who it is. */
#in-meshwork .mw-you { display: grid; gap: var(--spacing-md); margin-top: var(--spacing-xl); padding-top: var(--spacing-lg); border-top: 1px solid var(--color-primary-100); }
#in-meshwork .mw-you-text { margin: 0; font-size: var(--font-size-sm); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-700); }
#in-meshwork .mw-you .action-pill { width: auto; justify-self: start; padding: var(--spacing-sm) var(--spacing-xl); text-decoration: none; }
.app .actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin: 0; }

/* Platform Release and Estate changes of a member's Meshwork page (30 Nov, meshwork-upkeep.js) */
.upkeep { display: grid; gap: var(--spacing-sm); }
.upkeep-head { margin: var(--spacing-lg) 0 0; font-size: var(--font-body-strong-fontSize, 1rem); font-weight: var(--font-weight-semibold); }
.upkeep-head:first-child { margin-top: 0; }
.upkeep-why { margin: 0; color: var(--color-neutral-800); overflow-wrap: anywhere; }
.upkeep-item .facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--spacing-2xs) var(--spacing-md); margin: 0; }
.upkeep-item .facts dt { color: var(--color-neutral-800); }
.upkeep-item .facts dd { margin: 0; overflow-wrap: anywhere; }
.upkeep-waves { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); list-style: none; margin: 0; padding: 0; }
.upkeep-waves li { display: flex; gap: var(--spacing-xs); align-items: center; padding: var(--spacing-2xs) var(--spacing-sm);
  border: var(--border-width-default) solid var(--color-border-divider); border-radius: var(--radius-badge); }
.upkeep-waves li.is-yours { border-color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }
.upkeep-reasons { margin: 0; padding-left: var(--spacing-lg); }
.upkeep-form { display: grid; gap: var(--spacing-md); }
.upkeep-form select, .upkeep-form input[type=time], .upkeep-form input[type=number], .upkeep-form input[type=date] {
  font: inherit; padding: var(--spacing-xs) var(--spacing-sm); border: var(--border-width-default) solid var(--color-neutral-700);
  border-radius: var(--radius-input-md); background: var(--color-primary-1); color: inherit; max-width: 100%; box-sizing: border-box; }
.upkeep-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.upkeep-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--spacing-xs); }
.upkeep-freezes { display: grid; gap: var(--spacing-xs); }
.upkeep-freeze { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); align-items: center; }
@media (max-width: 480px) { .upkeep-item .facts { grid-template-columns: 1fr; } .upkeep-item .facts dd { margin-bottom: var(--spacing-xs); } }
.upkeep .book-row-meta > .tag { align-self: flex-start; }

/* The Intermeshwork home by belonging (owner 30 Nov): the domain and its Meshwork, lanes by Admission Class, the rest */
.belonging { display: grid; gap: var(--spacing-xl); }
.belong-anchor { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: var(--spacing-md);
  padding: var(--spacing-lg); border-radius: var(--radius-container-lg); background: color-mix(in srgb, var(--color-solid-white) 80%, transparent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.belong-domain { display: grid; gap: var(--spacing-2xs); }
.belong-domain strong { font-size: var(--font-heading-sm-fontSize); color: var(--color-primary-900); overflow-wrap: anywhere; }
.belong-label { font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); }
.belong-arrow { font-size: var(--font-heading-md-fontSize); color: var(--color-primary-300); }
.belong-home { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-container-md); border: var(--border-width-default) solid var(--color-primary-300); background: var(--color-solid-white); }
.belong-home.pending, .belong-home.outside, .belong-home.empty { border-style: dashed; }
.belong-home-text { flex: 1; min-width: 0; display: grid; gap: var(--spacing-2xs); }
.belong-home-text strong { font-size: var(--font-heading-sm-fontSize); color: var(--color-primary-900); }
.belong-home .sub-lead, .other-text .sub-lead, .lane-name span { margin: 0; }
.app-mark.big { width: 52px; height: 52px; font-size: var(--font-body-lg-fontSize); }
.belong-part { display: grid; gap: var(--spacing-sm); }
.belong-part .section-title { margin: 0; }
.lane { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--spacing-md); align-items: start;
  padding: var(--spacing-md) 0; border-top: var(--border-width-default) solid var(--color-border-divider); }
.lane-name { display: grid; gap: var(--spacing-2xs); }
.lane-name strong { color: var(--color-primary-900); }
.lane-name span { font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); }
.lane-items { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.mw-chip { display: inline-flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-xs) var(--spacing-md); text-decoration: none;
  border-radius: var(--radius-container-md); background: var(--color-solid-white); color: var(--color-primary-900);
  border: var(--border-width-default) solid var(--color-primary-200); }
.mw-chip:hover { border-color: var(--color-primary-500); }
.mw-chip .app-mark { width: 32px; height: 32px; font-size: var(--font-caption-md-fontSize); }
.mw-chip-name { font-weight: var(--font-weight-semibold); }
.other-rows { display: grid; }
.other-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--spacing-md);
  padding: var(--spacing-sm) 0; border-top: var(--border-width-default) solid var(--color-border-divider); }
.other-row .app-mark { width: 36px; height: 36px; font-size: var(--font-caption-md-fontSize); }
.other-text { display: grid; gap: var(--spacing-2xs); min-width: 0; }
.other-name { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); text-decoration: none; }
.other-name:hover { text-decoration: underline; }
.other-text .sub-lead { font-size: var(--font-caption-md-fontSize); }
@media (max-width: 640px) {
  .belong-anchor { grid-template-columns: 1fr; }
  .belong-arrow { transform: rotate(90deg); justify-self: start; }
  .lane { grid-template-columns: 1fr; gap: var(--spacing-sm); }
  .other-row { grid-template-columns: auto minmax(0, 1fr); }
  .other-row .button { grid-column: 2; justify-self: start; }
}

/* The Symbiontra home in the explore look (owner 30 Nov reference): a centred head, the domain's Meshwork as the featured
   card, a wide search, a toolbar (count, Show, grid or list) and cards of Meshworks. Stylon tokens only. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.explore-head { text-align: center; justify-items: center; }
.explore-head h1 { font-size: var(--font-heading-lg-fontSize); }
#s-in-done .belonging { gap: var(--spacing-lg); }
#s-in-done .belong-anchor { max-width: 960px; width: 100%; justify-self: center; }
.explore-find { display: grid; gap: var(--spacing-md); }
.explore-search { display: flex; align-items: center; gap: var(--spacing-sm); max-width: 720px; width: 100%; justify-self: center;
  padding: 10px var(--spacing-lg); border-radius: var(--radius-button-full); background: var(--color-solid-white);
  border: var(--border-width-default) solid var(--color-primary-200); box-shadow: var(--shadow-xs); }
.explore-search:focus-within { border-color: var(--color-primary-500); box-shadow: var(--shadow-interactive-focus); }
.explore-search svg { width: 20px; height: 20px; flex: none; color: var(--color-primary-400); }
.explore-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font: inherit; color: var(--color-primary-900); }
.explore-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); padding-bottom: var(--spacing-sm);
  border-bottom: var(--border-width-default) solid var(--color-border-divider); }
.explore-count { margin-right: auto; font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-button-full); background: var(--color-primary-50);
  border: var(--border-width-default) solid var(--color-primary-100); }
.seg button { border: 0; background: transparent; color: var(--color-primary-600); padding: 5px 14px; border-radius: var(--radius-button-full);
  font: inherit; font-size: var(--font-caption-md-fontSize); cursor: pointer; display: inline-flex; align-items: center; min-height: 0; box-shadow: none; }
.seg button[aria-pressed="true"] { background: var(--color-solid-white); color: var(--color-primary-900); font-weight: var(--font-weight-semibold); box-shadow: var(--shadow-xs); }
.seg button:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 1px; }
.seg-icons button { padding: 5px 9px; }
.seg-icons svg { width: 16px; height: 16px; }
.explore-none { margin: 0; text-align: center; color: var(--color-primary-500); padding: var(--spacing-lg) 0; }
#s-in-done .lane { grid-template-columns: 1fr; gap: var(--spacing-sm); border-top: 0; padding: 0 0 var(--spacing-md); }
#s-in-done .lane-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-xs) var(--spacing-sm); }
#s-in-done .lane-name h3 { margin: 0; font-size: var(--font-body-md-fontSize, 1rem); color: var(--color-primary-900); }
.mw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--spacing-md); }
.mw-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--spacing-sm); padding: var(--spacing-lg);
  border-radius: var(--radius-container-lg); background: var(--color-solid-white);
  border: var(--border-width-default) solid var(--color-primary-100); box-shadow: var(--shadow-xs); }
.mw-card:hover { border-color: var(--color-primary-300); }
.mw-card[hidden] { display: none; }
.mw-card-head { display: flex; align-items: center; gap: var(--spacing-sm); min-width: 0; }
.mw-card-head .app-mark { width: 44px; height: 44px; flex: none; }
.mw-card-title { display: grid; min-width: 0; }
.mw-card-name { font-weight: var(--font-weight-semibold); font-size: var(--font-body-lg-fontSize); color: var(--color-primary-900); text-decoration: none; overflow-wrap: anywhere; }
.mw-card-name:hover { text-decoration: underline; }
.mw-card-addr { font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); overflow-wrap: anywhere; }
.mw-card-text { margin: 0; color: var(--color-primary-700); font-size: var(--font-caption-lg-fontSize, 0.9rem); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mw-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mw-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-sm);
  padding-top: var(--spacing-sm); border-top: var(--border-width-default) solid var(--color-border-divider); }
.mw-facts { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }
.mw-fact { display: flex; align-items: center; gap: 6px; }
.mw-fact-icon { width: 16px; height: 16px; color: var(--color-primary-400); display: inline-flex; }
.mw-fact-icon svg { width: 16px; height: 16px; }
.mw-fact-text { display: grid; line-height: 1.2; }
.mw-fact-label { font-size: 11px; color: var(--color-primary-500); }
.mw-fact-text strong { font-size: var(--font-caption-md-fontSize); color: var(--color-primary-900); font-weight: var(--font-weight-medium); }
.mw-card-foot .button { padding-block: 6px; }
/* The list view: one row per Meshwork. */
#in-apps.as-list .mw-grid { grid-template-columns: 1fr; gap: 0; }
#in-apps.as-list .mw-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 400px); grid-template-rows: auto; align-items: center;
  border-radius: 0; border-width: 0 0 var(--border-width-default); box-shadow: none; background: transparent; padding: var(--spacing-sm) 0; }
#in-apps.as-list .mw-card-text { grid-column: 2; grid-row: 1; -webkit-line-clamp: 1; }
#in-apps.as-list .mw-card-tags { display: none; }
#in-apps.as-list .mw-card-foot { grid-column: 3; grid-row: 1; border-top: 0; padding-top: 0; flex-wrap: nowrap; justify-content: flex-start; }
#in-apps.as-list .mw-card-foot .button { margin-left: auto; }
@media (max-width: 760px) {
  .explore-count { width: 100%; }
  #in-apps.as-list .mw-card { grid-template-columns: 1fr; }
  #in-apps.as-list .mw-card-text, #in-apps.as-list .mw-card-foot { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  #s-in-done .belong-home-text { flex: 1 1 calc(100% - 52px - var(--spacing-md)); }
  #s-in-done .belong-home .button { margin-left: auto; }
  .explore-tools .seg:not(.seg-icons) { flex: 1; }
  .explore-tools .seg:not(.seg-icons) button { flex: 1; justify-content: center; padding-inline: 8px; }
}

/* A Meshwork's home in the detail-page look (owner 30 Nov reference): the Meshwork as the header, its menus as pill tabs,
   a main column and a side panel of the person's membership (value over label, with small icon tiles). */
.mw-detail-head { gap: var(--spacing-md); }
.mw-detail-mark { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--radius-container-md);
  background: var(--color-primary-900); color: var(--color-solid-white); font-weight: var(--font-weight-semibold); font-size: var(--font-body-lg-fontSize); }
.mw-detail-mark.has-logo { background: var(--color-solid-white); box-shadow: 0 0 0 1px var(--color-primary-100); }
.mw-detail-mark .home-logo { width: 100%; height: 100%; box-shadow: none; }
.mw-detail-head h1 { margin: 0 0 2px; }
.mw-detail-head .lead { color: var(--color-primary-500); font-size: var(--font-caption-lg-fontSize); }
.ma-sep { margin: 0 4px; color: var(--color-primary-300); }
#ma-menus { margin: 0; }
.mw-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--spacing-lg); align-items: start; }
.mw-detail-main, .mw-detail-side { display: grid; gap: var(--spacing-lg); min-width: 0; }
.mw-detail-side .panel { position: sticky; top: var(--spacing-lg); }
#m-app-home .side-facts { grid-template-columns: 1fr; gap: 0; margin: 0; }
#m-app-home .side-facts .home-fact { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--spacing-sm); align-items: center;
  padding: var(--spacing-sm) 0; border-top: var(--border-width-default) solid var(--color-border-divider); }
#m-app-home .side-facts .home-fact:first-child { border-top: 0; }
.side-fact-icon { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-container-sm);
  background: var(--color-primary-50); color: var(--color-primary-600); }
.side-fact-icon svg { width: 18px; height: 18px; }
#m-app-home .side-facts dd { margin: 0; font-weight: var(--font-weight-semibold); color: var(--color-primary-900); overflow-wrap: anywhere; }
#m-app-home .side-facts dt { font-size: var(--font-size-xs); color: var(--color-primary-500); }
#m-app-home .mw-detail-side .home-leave { display: grid; gap: var(--spacing-sm); }
#m-app-home .mw-detail-side .home-leave .sub-lead { flex: none; font-size: var(--font-caption-md-fontSize); }
/* Members as rings: the share of the whole each figure is. */
.glance.rings { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* always one row: never a ring alone below (owner review 30 Nov) */
.rings .glance-tile { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--spacing-sm); }
.ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 64px; height: 64px; }
.ring-track { fill: none; stroke: var(--color-primary-100); stroke-width: 6; }
.ring-part { fill: none; stroke: var(--color-primary-700); stroke-width: 6; stroke-linecap: round; }
.ring-number { position: relative; font-size: var(--font-heading-sm-fontSize); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }
.glance-text { display: grid; gap: 2px; }
.glance-of { font-size: var(--font-size-xs); color: var(--color-primary-400); }
.rings .glance-label { color: var(--color-primary-900); font-weight: var(--font-weight-medium); }
@media (max-width: 900px) {
  .mw-detail-body { grid-template-columns: 1fr; }
  .mw-detail-side .panel { position: static; }
}
@media (max-width: 760px) {
  .rings .glance-tile { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; }
}
@media (max-width: 520px) {
  .glance.rings { gap: 8px; }
  .rings .glance-of { display: none; }
  .mw-detail-mark { width: 44px; height: 44px; }
}

/* A Join Request on its own page (owner reference 30 Nov): a centred column, the person card, what each answer does. */
.join-page.jr { display: grid; gap: var(--spacing-md); max-width: 820px; }
.jr-pager { display: flex; align-items: center; gap: var(--spacing-xs); justify-self: end; margin-top: calc(-1 * var(--spacing-xl));
  font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); }
.jr-page { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-button-full); color: var(--color-primary-700); }
.jr-page:hover:not(:disabled) { background: var(--color-primary-50); }
.jr-page:disabled { opacity: .35; cursor: default; }
.jr-page:focus-visible { outline: 2px solid var(--color-primary-500); }
.jr-card { display: grid; gap: var(--spacing-lg); padding: var(--spacing-lg) var(--spacing-xl); border-radius: var(--radius-container-lg);
  background: var(--color-solid-white); border: var(--border-width-default) solid var(--color-primary-100); }
.jr-state { align-self: flex-start; white-space: nowrap; }
.jr-head { display: flex; align-items: center; gap: var(--spacing-md); padding-bottom: var(--spacing-lg); border-bottom: var(--border-width-default) solid var(--color-border-divider); }
.jr-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.jr-who h2 { margin: 0; font-size: var(--font-heading-md-fontSize); overflow-wrap: anywhere; }
.jr-mono { font-family: var(--font-family-mono, ui-monospace, monospace); font-size: var(--font-caption-lg-fontSize); color: var(--color-primary-700); overflow-wrap: anywhere; }
.jr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-lg) var(--spacing-xl); }
.jr-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-md); }
.jr-outcome { padding: var(--spacing-md) var(--spacing-lg); border-radius: var(--radius-container-md); background: var(--color-solid-white);
  border: var(--border-width-default) solid var(--color-primary-100); }
.jr-outcome h3 { margin: 0 0 var(--spacing-xs); display: flex; align-items: center; gap: var(--spacing-xs); font-size: var(--font-body-md-fontSize); }
.jr-outcome-mark { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--color-solid-white); }
.jr-outcome.good .jr-outcome-mark { background: var(--color-success-700); }
.jr-outcome.bad .jr-outcome-mark { background: var(--color-error-700, #b42318); }
.jr-outcome ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--color-primary-600); font-size: var(--font-caption-lg-fontSize); }
.join-page.jr > .actions { margin: 0; }
@media (max-width: 640px) {
  .jr-card { padding: var(--spacing-md); }
  .jr-head { flex-wrap: wrap; }
  .jr-state { order: 3; }
  .jr-facts, .jr-outcomes { grid-template-columns: 1fr; }
  .jr-pager { margin-top: 0; }
}
/* Your membership (owner review 30 Nov): the same page, only the person's own membership, in one column. */
#m-app-home.only-membership #ma-glance, #m-app-home.only-membership #ma-waiting { display: none; }
#m-app-home.only-membership .mw-detail-body { grid-template-columns: minmax(0, 640px); }
#m-app-home.only-membership .mw-detail-main:not(:has(> section:not([hidden]):not(#ma-glance):not(#ma-waiting))) { display: none; }
#m-app-home.only-membership .mw-detail-side .panel { position: static; }
.ma-kept { margin: var(--spacing-sm) 0 0; font-size: var(--font-caption-md-fontSize); }
/* The Meshwork logo changed in place on the Profile's left page (owner review 30 Nov). */
.logo-mark { position: relative; }
#m-profile button.logo-mark.editable { position: relative; cursor: pointer; padding: 0; font-family: inherit; overflow: visible; }
#m-profile button.logo-mark.editable img { border-radius: inherit; }
button.logo-mark.editable:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }
.logo-mark-pencil { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-solid-white); color: var(--color-primary-700); box-shadow: var(--shadow-sm); }
.logo-mark-pencil svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button.logo-mark.editable:hover .logo-mark-pencil { background: var(--color-primary-900); color: var(--color-solid-white); }
.logo-line { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--font-caption-sm-fontSize); color: var(--color-primary-500); }
.logo-line .link-button { all: unset; cursor: pointer; color: var(--color-primary-700); text-decoration: underline; }
.logo-line .link-button:focus-visible { outline: 2px solid var(--color-primary-500); }
/* Sign-in code page (owner review 30 Nov): one main button; sending a new code is a quiet line under it. */
.code-again { margin: 0; font-size: var(--font-caption-lg-fontSize); color: var(--color-primary-500); }
.code-again .link-button { font-size: inherit; }
.code-again .link-button[disabled] { color: var(--color-primary-400); text-decoration: none; cursor: default; }
#s-in-code .actions .primary { min-width: 160px; }

/* The Meshwork Profile's identity: kind of address under the address, and its decentralized identifier (owner review 30 Nov). */
.up-meta { margin: 2px 0 0; font-size: var(--font-size-xs); color: var(--color-primary-500); }
.up-did { display: grid; gap: 4px; margin-top: var(--spacing-md); padding-top: var(--spacing-md); border-top: 1px solid var(--color-primary-100); }
.up-did-label { font-size: var(--font-size-xs); color: var(--color-primary-500); }
.up-did-value { font-family: var(--font-family-mono); display: flex; align-items: flex-start; gap: 6px; font-size: var(--font-size-xs); color: var(--color-primary-900); overflow-wrap: anywhere; }
.up-did-value > span { min-width: 0; }

/* A heading row per organization in a grouped list (Email Domains, owner review 30 Nov). */
.tbl-group { display: block; padding: 14px 12px 6px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-primary-600); border-top: 1px solid var(--color-primary-100); }
.tbl-body > .tbl-group:first-child { border-top: 0; padding-top: 8px; }
.book-group { margin: 14px 0 4px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-primary-600); }
.book-group:first-child { margin-top: 0; }
.up-did-line { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: var(--font-size-xs); color: var(--color-primary-600); }
.up-did-line .mono { font-family: var(--font-family-mono); overflow-wrap: anywhere; min-width: 0; }

/* Provisioning (30 Nov): the people of a list by Admission Class, and changing a DRAFT list in place. Scoped to #m-batch. */
#m-batch .batch-people-head { margin: 0; font-size: var(--font-size-sm); }
#m-batch .batch-classes { display: grid; gap: var(--spacing-sm); }
#m-batch :is(.batch-class, .batch-change-people) { border: var(--border-width-default) solid var(--color-primary-100);
  border-radius: var(--radius-container-lg); background: var(--color-solid-white); overflow: hidden; }
#m-batch .batch-class > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  cursor: pointer; font-weight: var(--font-weight-semibold); color: var(--color-primary-900); }
#m-batch .batch-class.is-off > summary .batch-class-name { color: var(--color-error-800); }
#m-batch .batch-class-count { font-weight: normal; font-size: var(--font-caption-md-fontSize); color: var(--color-primary-500); white-space: nowrap; }
#m-batch :is(.batch-class-people, .batch-change-people, .batch-drafts) { list-style: none; margin: 0; padding: 0; }
#m-batch :is(.batch-class-people, .batch-change-people, .batch-drafts) > li { display: grid; gap: 2px; min-width: 0; padding: 8px 14px;
  border-top: var(--border-width-default) solid var(--color-border-divider); }
#m-batch .batch-change-people > li:first-child, #m-batch .batch-drafts > li:first-child { border-top: 0; }
#m-batch .batch-drafts > li { padding-left: 0; padding-right: 0; }
#m-batch .batch-change-people > li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
#m-batch .batch-change-people > li > .link-button { grid-column: 2; grid-row: 1 / span 2; }
#m-batch .batch-change-people > li.is-removed .batch-person { text-decoration: line-through; color: var(--color-primary-400); }
#m-batch .batch-person { overflow-wrap: anywhere; color: var(--color-primary-900); font-size: var(--font-body-sm-fontSize); }
#m-batch .batch-why { overflow-wrap: anywhere; color: var(--color-primary-500); font-size: var(--font-caption-md-fontSize); }
#m-batch .batch-change textarea { width: 100%; box-sizing: border-box; }
#m-batch .batch-change .field, #m-batch .batch-change .actions { margin: 0; }
#m-batch .job-detail-head .act-buttons { flex-wrap: wrap; }
#m-batch #m-batches .job-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#m-batch #m-batches .job-detail-head .act-buttons { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; }
#m-batch #m-batches .job-detail-head .action-pill { width: auto; flex: none; margin: 0; }
@media (max-width: 520px) {
  #m-batch .job-detail-head .act-buttons { width: 100%; }
  #m-batch .job-detail-head .act-buttons .action-pill { flex: 1 1 auto; }
}

/* Who owns a Meshwork's Enterprise (30 Nov 2026, meshwork-owners.js): Symbiontra's page and the Meshwork's Profile */
#in-meshwork .own-means, #m-profile .own-means { margin: var(--spacing-2xs) 0 var(--spacing-sm) 14px; color: var(--color-neutral-800);
  font-size: var(--font-body-sm-fontSize); overflow-wrap: anywhere; }
#in-meshwork .own-acts { margin-top: var(--spacing-md); }
#in-meshwork .own-form { display: grid; gap: var(--spacing-md); }
#in-meshwork .own-form .own-means { margin-left: 0; }
#in-meshwork .own-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--spacing-md); }
#in-meshwork .own-line { display: grid; grid-template-columns: minmax(0, 1fr) 9rem auto; gap: var(--spacing-sm) var(--spacing-md);
  align-items: end; padding-bottom: var(--spacing-md); border-bottom: var(--border-width-default) solid var(--color-border-divider); }
#in-meshwork .own-line select { font: inherit; height: var(--button-height-md); padding: 0 var(--spacing-sm); max-width: 100%;
  border: var(--border-width-default) solid var(--color-neutral-700); border-radius: var(--radius-input-md); background: var(--color-primary-1); color: inherit; }
#in-meshwork .own-line select:disabled { opacity: 1; color: var(--color-primary-900); background: var(--color-background-primary); }
#in-meshwork .own-who { min-width: 0; }
#in-meshwork .own-share-box { display: flex; align-items: center; gap: var(--spacing-xs); }
#in-meshwork .own-share-box input { min-width: 0; }
#in-meshwork .own-fixed { font-size: var(--font-size-xs); color: var(--color-primary-500); padding-bottom: var(--spacing-sm); }
#in-meshwork .own-remove { align-self: end; padding-bottom: var(--spacing-sm); }
#in-meshwork .own-add { justify-self: start; }
#in-meshwork .own-total { margin: 0; font-weight: var(--font-weight-semibold); }
@media (max-width: 560px) {
  #in-meshwork .own-line { grid-template-columns: minmax(0, 1fr) auto; }
  #in-meshwork .own-who { grid-column: 1 / -1; }
}

/* ================= Batch A, Webxtron look (owner 30 Nov: "look each screenshot and bring similar"). The small pieces of
   both apps, styled once here: chips and state pills, marks and avatars, the copy icon, hairlines, the labelled fact, the
   count. Look only; words, colours of a state (owner 28 Nov: neutral) and behaviour stay ours. Reference screenshots:
   Pellet-MetaPill, Pellet-StatusPill, Pellet-Avatar, Pellet-ReferenceCode, Pellet-LabeledValue, Pellet-Divider,
   Pellet-CountBadge, Laylet-AnthroposProfileHome, Gadget-ExploreMeshworkList. */

/* Chip (Pellet-MetaPill): grey fill, no border, 12/500, 24px high, padding 0 10px, fully round. */
.tag, .grid-card-foot .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; box-sizing: border-box; white-space: nowrap;
  font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); line-height: 1; border-radius: var(--radius-badge); border: 0;
  background: var(--color-primary-100); color: var(--color-primary-700); }
/* State pill (Pellet-StatusPill shape, neutral by owner 28 Nov): outline, 12/600, 24px high. Its kind stays in data-kind. */
.tag.state-pill, .tag.good, .tag.bad { display: inline-flex; height: 24px; padding: 0 10px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold);
  background: color-mix(in srgb, var(--color-solid-white) 80%, transparent); color: var(--color-primary-700);
  border: var(--border-width-default) solid var(--color-primary-200); }

/* Marks. A Meshwork's mark (Explore card): a rounded square, light grey, letters 15/600 grey 600. */
/* On the textured page the light grey alone vanishes, so a hairline holds its edge. */
.app-mark, .mw-detail-mark { box-shadow: 0 0 0 1px var(--color-border-divider); }
.app-mark { border: 0; border-radius: var(--radius-button-lg); background: var(--color-primary-100); color: var(--color-primary-600);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.app-mark.has-logo { background: var(--color-solid-white); box-shadow: 0 0 0 1px var(--color-primary-100); }
.mw-detail-mark { width: 72px; height: 72px; border-radius: var(--radius-container-lg); background: var(--color-primary-100); color: var(--color-primary-600);
  font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
/* A person's mark (profile avatar): a 64px round disc, very light fill, 1px hairline, initials 16/600 grey 600. */
.person-mark, .up-avatar-lg { flex: none; width: 64px; height: 64px; display: grid; place-items: center; box-sizing: border-box;
  border-radius: var(--radius-avatar-full); background: var(--color-primary-50); border: var(--border-width-default) solid var(--color-primary-100);
  color: var(--color-primary-600); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
/* The account avatar in the top bar (main navigation): 32px, mid grey, white 12/600. */
.avatar-menu .avatar { width: 32px; height: 32px; background: var(--color-primary-400); color: var(--color-solid-white);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }

/* Copy icon (Pellet-ReferenceCode): a bare 14px grey line icon right after the value; no box, no border. Hover darkens it. */
.copy-icon { width: 24px; height: 24px; border: 0; background: transparent; color: var(--color-primary-400); border-radius: var(--radius-button-sm); }
.copy-icon svg { width: 14px; height: 14px; }
.copy-icon:hover { background: transparent; color: var(--color-primary-900); }
.copy-icon.is-done { background: transparent; border: 0; color: var(--color-primary-900); }
.up-did-line { align-items: center; font-size: var(--font-size-sm-minus); }

/* Hairline (Pellet-Divider): one light grey line. */
.menu .menu-sep { background: var(--color-border-divider); }
.book-row, .home-leave, .mw-card-foot, #m-app-home .attention-row { border-top-color: var(--color-border-divider); }

/* Labelled fact (Pellet-LabeledValue, Profile Details): the value 14/500 near black, then its label 13/400 grey 500 under it.
   The same look for every fact of both apps: fact(), factorCell(), profileRow(), the side facts of a Meshwork home. */
.fact { display: grid; gap: 2px; min-width: 0; align-content: start; }
.fact-value, .detail-value, .book-row-meta strong, #m-app-home .side-facts dd {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); letter-spacing: normal; line-height: 20px; color: var(--color-primary-950); overflow-wrap: anywhere; }
.fact-value.mono { font-family: var(--font-family-mono); font-weight: var(--font-weight-normal); }
.fact-label, .detail-label, .book-row-meta span, #m-app-home .side-facts dt {
  font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal); letter-spacing: normal; line-height: 18px; color: var(--color-primary-500); }
.fact-hint { font-size: var(--font-size-xs); color: var(--color-primary-400); }
/* Its icon (Profile Details): a 40px round disc, light grey, an 18px grey line icon; 14px to the words. */
.detail-icon, .side-fact-icon { width: 40px; height: 40px; border-radius: var(--radius-avatar-full); background: var(--color-primary-100); color: var(--color-primary-500); }
.detail-cell { gap: 14px; }
#m-app-home .side-facts .home-fact { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }

/* Count (Pellet-CountBadge): a bare number, 14/500. Section title (Pellet-PanelTitle): 20/600. */
#m-app-home .attention-count, .attention-count { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.section-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }

/* ================= Batch B, Webxtron look (owner 30 Nov: "look each screenshot and bring similar"). Fields and acts of
   both apps, styled once here: the text field, select, textarea, code field, radio and checkbox, the buttons and the
   small action pill, the link line, the field error, the notice and the dialog. Look only; words, ids and behaviour stay
   ours. Reference screenshots: Widget-TextField, Gadget-AnthroposSignup, Widget-SelectField, Widget-TextAreaField,
   Widget-OtpCodeField, Widget-RadioGroupField, Pellet-Checkbox, Gadget-AnthroposLifecycleStateOutcome,
   Pellet-ValidationNotice, Widget-NoticeSurface, Widget-ModalDialog. Data-URI icons carry their colour as a hex (a URL
   cannot read a token): #fff, #737373 (primary-500), #d9d9d9 (primary-200), #8c8c8c (primary-400), #b1000f (error-700). */

/* Text field (Widget-TextField): a 40px light grey disc with a white glyph, the 1px line, the label UNDER the line at
   14/400 grey 700. One column, about 400px wide. Same field in both apps (sign up, sign in, dialogs, Create A Meshwork). */
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select) {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: start; max-width: 400px; }
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select) > * { grid-column: 2; }
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select) > :is(input, select),
.field:has(> textarea) > textarea { order: 1; }
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select) > label,
.field:has(> textarea) > label { order: 2; }
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select) > :not(input, select, label),
.field:has(> textarea) > :not(textarea, label) { order: 3; }
.field:has(> input:not([type="checkbox"], [type="radio"], [type="file"], [type="search"], [type="hidden"]), > select)::before {
  content: "Aa"; grid-column: 1; grid-row: 1 / span 2; order: 0; width: 40px; height: 40px; margin-top: 20px; display: grid; place-items: center;
  border-radius: var(--radius-avatar-full); background: color-mix(in srgb, var(--color-primary-200) 70%, var(--color-primary-100));
  background-position: center; background-repeat: no-repeat; background-size: 18px 18px;
  color: var(--color-solid-white); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: 1; }
.field:has(> input[type="email"])::before { content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.field:has(> input.code-input)::before { content: ""; margin-top: 4px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
/* The label under the line: 14/400 grey 700; a required field says so with "*" (Gadget-AnthroposSignup). */
label { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 20px; color: var(--color-primary-700); }
.field:has(> [required]) > label::after { content: " *"; color: var(--color-primary-500); }
input, select, textarea { font-size: var(--font-size-sm); }
input:not([type="checkbox"], [type="radio"], [type="file"]), select { height: 40px; }
/* Ours since 28 Nov: focus is a darker line (kept: the reader must see where they type), 1px so the label does not jump. */
input:not([type="checkbox"], [type="radio"], [type="file"]):focus, select:focus { border-bottom: var(--border-width-default) solid var(--color-primary-700); }
/* Sign up's names one under the other (Gadget-AnthroposSignup), not side by side. */
form:has(> .row > .field > input[autocomplete="given-name"]) > .row { grid-template-columns: minmax(0, 1fr); }

/* Select (Widget-SelectField): the same line field with a 14px chevron at the right, not the browser's arrow. */
select { appearance: none; -webkit-appearance: none; padding-right: 24px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 14px 14px; }

/* Textarea (Widget-TextAreaField): a quiet box, 1px light grey, radius 6, near-white fill, 14px text, padding 12px. */
textarea, textarea:not(:hover):not(:focus):not([aria-invalid="true"]) { padding: 12px; border: var(--border-width-default) solid var(--color-border-divider);
  border-radius: var(--radius-input-md); background: var(--color-neutral-100); font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-900); }
textarea:hover { border-color: var(--color-primary-200); }
textarea:focus { outline: none; border-color: var(--color-primary-400); }
textarea[aria-invalid="true"] { border-color: var(--color-error-500); }

/* Code field (Widget-OtpCodeField): the one input of ours (behaviour and tests unchanged), drawn as cells: 40x48 cells,
   radius 6, 8px apart, digits 20/500. The cells are the background; the letters step one cell each. */
input.code-input, input.code-input:hover, input.code-input:focus, input.code-input:not(:hover):not(:focus):not([aria-invalid="true"]) {
  --pitch: 48px; --cell: calc(var(--pitch) * 5 / 6); --cells: 6;
  box-sizing: border-box; height: calc(var(--pitch)); max-width: none; width: calc(var(--cells) * var(--pitch) + 16px); border: 0; border-radius: 0; outline: none;
  padding: 0 0 0 calc((var(--cell) - 1ch) / 2); letter-spacing: calc(var(--pitch) - 1ch);
  font-family: var(--font-family-mono); font-size: var(--font-size-xl); font-weight: var(--font-weight-medium); color: var(--color-primary-900);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 48'%3E%3Cg fill='%23fff' fill-opacity='.7' stroke='%23d9d9d9'%3E%3Crect x='.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='48.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='96.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='144.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='192.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='240.5' y='.5' width='39' height='47' rx='6'/%3E%3C/g%3E%3C/svg%3E")
    left center / calc(var(--cells) * var(--pitch)) var(--pitch) no-repeat; }
input.code-input[maxlength="8"], input.code-input[maxlength="8"]:hover, input.code-input[maxlength="8"]:focus,
input.code-input[maxlength="8"]:not(:hover):not(:focus):not([aria-invalid="true"]) { --cells: 8; --pitch: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 48'%3E%3Cg fill='%23fff' fill-opacity='.7' stroke='%23d9d9d9'%3E%3Crect x='.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='48.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='96.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='144.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='192.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='240.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='288.5' y='.5' width='39' height='47' rx='6'/%3E%3Crect x='336.5' y='.5' width='39' height='47' rx='6'/%3E%3C/g%3E%3C/svg%3E"); }
input.code-input:focus-visible { outline: var(--border-width-default) solid var(--color-primary-400); outline-offset: 4px; border-radius: var(--radius-input-md); }
@media (max-width: 480px) {
  input.code-input, input.code-input:hover, input.code-input:focus, input.code-input:not(:hover):not(:focus):not([aria-invalid="true"]) { --pitch: 40px; }
  input.code-input[maxlength="8"], input.code-input[maxlength="8"]:hover, input.code-input[maxlength="8"]:focus,
  input.code-input[maxlength="8"]:not(:hover):not(:focus):not([aria-invalid="true"]) { --pitch: 32px; }
}

/* Radio and checkbox (Widget-RadioGroupField, Pellet-Checkbox): 18px; the radio a 1px light circle that fills to a
   dark ring when picked; the checkbox radius 3, 1px grey 600, dark with a white tick when ticked. Option words 14/400. */
input[type="radio"], input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0;
  box-sizing: border-box; display: inline-block; vertical-align: middle; cursor: pointer; background: color-mix(in srgb, var(--color-solid-white) 80%, transparent);
  border: var(--border-width-default) solid var(--color-primary-200); border-radius: var(--radius-avatar-full); transition: border-width .12s; }
input[type="radio"]:checked { border: 5px solid var(--color-primary-950); }
input[type="checkbox"] { border-radius: 3px; border-color: var(--color-primary-600); }
input[type="checkbox"]:checked { border-color: var(--color-primary-900); background: var(--color-primary-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
input[type="radio"]:disabled, input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
.job-tbl .tbl-row input[type="checkbox"] { width: 16px; height: 16px; }
label.confirm, .accept-tick, label.tick { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 20px; color: var(--color-primary-700); }
legend, fieldset.field legend { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal); color: var(--color-primary-500); }

/* Buttons (Gadget-AnthroposSignup "Sign up", Gadget-AnthroposLifecycleStateOutcome "Continue to Reset"): one quiet pill
   for every act. 44px, padding 0 20px, near-white, soft shadow, no border, words 14/400 grey 700, a trailing "›" in
   grey 400 on the main act. The other act (Back, Cancel, Skip) is the same pill without the "›": the reference has no
   outlined button. Disabled is faint. */
button.primary, a.button.primary, button.secondary, a.button.secondary { height: 44px; padding: 0 20px; gap: 10px; border: 0; border-radius: var(--radius-button-full);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 20px; color: var(--color-primary-700);
  background: color-mix(in srgb, var(--color-solid-white) 90%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-solid-black) 8%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 3%, transparent); }
button.secondary, a.button.secondary { background: color-mix(in srgb, var(--color-solid-white) 60%, transparent); }
button.primary:hover, a.button.primary:hover, button.secondary:hover, a.button.secondary:hover { background: var(--color-solid-white); color: var(--color-primary-950);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-solid-black) 12%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 5%, transparent); }
button.primary::after, a.button.primary::after, button.with-plus::after { content: "›"; margin-left: 0; color: var(--color-primary-400); font-size: var(--font-size-base); line-height: 1; }
button.primary:disabled, button.secondary:disabled { opacity: .45; box-shadow: none; }
button.primary.danger, button.secondary.danger { color: var(--color-primary-700); }
/* The leading icon of an act (the plus of "Add …"): 16px grey 500. */
button.with-plus svg { width: 16px; height: 16px; color: var(--color-primary-500); }
/* Small pill (list tools, row and page acts, guide §9.2 small): 36px, padding 0 14px, 13/400, a leading 16px line icon,
   trailing "›". The list's main act (.tbl-tools) and the action pill (ui.js actionPill) are this one size. */
.tbl-tools > button.primary, .action-pill { height: 36px; min-height: 36px; padding: 0 14px; gap: 8px; font-size: var(--font-size-sm-minus); }
.action-pill { border: 0; border-radius: var(--radius-button-full); font-weight: var(--font-weight-normal); line-height: 18px; color: var(--color-primary-700); text-decoration: none;
  background: color-mix(in srgb, var(--color-solid-white) 85%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-solid-black) 8%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-solid-black) 3%, transparent); }
.action-pill:hover { background: var(--color-solid-white); color: var(--color-primary-950); }
.action-pill svg { width: 16px; height: 16px; color: var(--color-primary-500); }
.action-pill-chev { font-size: var(--font-size-base); line-height: 1; color: var(--color-primary-400); }
.book-row .action-pill, #in-meshwork .mw-you .action-pill { padding: 0 16px; }
/* The link line under a form ("Already have an account? Sign in ›"): 14px grey 700, the link words near black. */
.links, .sub-lead.links { font-size: var(--font-size-sm); color: var(--color-primary-700); }
.links a, .sub-lead.links a { color: var(--color-primary-950); }
.links a:hover { text-decoration: underline; }

/* Field error (Pellet-ValidationNotice): a light error pill under the field, a 16px filled error icon, 13px words. */
.field-error { justify-self: start; display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 4px 12px 4px 8px;
  border-radius: var(--radius-badge); border: var(--border-width-default) solid var(--color-error-100); background: var(--color-error-50);
  color: var(--color-error-700); font-size: var(--font-size-sm-minus); line-height: 18px; }
.field-error::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23b1000f'/%3E%3Cpath d='M12 7v6M12 16.5v.5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }

/* Notice (Widget-NoticeSurface): no box; a 3px grey bar on the left, square corners, 14px words grey 600, its title in
   bold near black. An error keeps its light error words (owner 28 Nov). The Join Request's outcome boxes are notices too. */
.message, .message.ok, .message.info, .message.error, .up-banner.ok, .up-banner.info, .up-banner.error, .jr-outcome {
  border: 0; border-left: 3px solid var(--color-primary-300); border-radius: 0; padding: 8px 16px; box-shadow: none;
  background: color-mix(in srgb, var(--color-solid-black) 3%, transparent); font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-600); }
.message.error, .up-banner.error { color: var(--color-error-700); border-left-color: var(--color-error-200); }
.message b, .message strong, .jr-outcome h3 { color: var(--color-primary-900); font-weight: var(--font-weight-semibold); }
.jr-outcome h3 { font-size: var(--font-size-sm); }

/* Dialog (Widget-ModalDialog): near-white, radius 12, padding 24, a soft 12px shadow, title 16/600, the acts at the
   bottom right. One look for the step up, the People acts, the CSV upload and Create A Meshwork's confirm. */
.step-up-dialog, .act-dialog, #s-create .confirm-dlg { border: 0; border-radius: 12px; padding: 24px; background: var(--color-primary-1); color: var(--color-primary-700);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-solid-black) 14%, transparent); }
.step-up-dialog::backdrop, #s-create .confirm-dlg::backdrop { background: color-mix(in srgb, var(--color-solid-black) 25%, transparent); }
.step-up-dialog h2, .act-dialog h2, #s-create .confirm-dlg h4 { margin: 0 0 4px; font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); line-height: 24px; color: var(--color-primary-900); }
.step-up-dialog .actions, .act-dialog .actions, #s-create .confirm-dlg .actions { justify-content: flex-end; }
/* Selects that had their own padding keep room for the chevron. */
.tbl-filter select, #in-meshwork .own-line select, .upkeep-form select { padding-right: 22px; }

/* ================= Batch C, Webxtron look (owner 30 Nov: "look each screenshot and bring similar"). The frame of both
   apps, styled once here: the top bar (one shell in index.html for both apps), the centre menu, the account menu, the
   breadcrumb, the tabs (pill, segmented, filter chips) and the page title. Look only; words, ids and behaviour stay ours;
   the breadcrumb stays under the bar (moving it into the bar would change every page: owner's call). Reference
   screenshots: Rootlet-MeshworkRootlet, Rootlet-IntermeshworkRootlet, Gadget-MeshworkMainNavigation,
   Gadget-IntermeshworkMainNavigation, Widget-PopoverSurface, Widget-BreadcrumbTrail, Widget-Tabs,
   Laylet-AnthroposManagementHome, Laylet-MeshworkHome, Gadget-ExploreMeshworkList. */

/* Top bar (Rootlet): items centred about 24px from the top; the name 13/600 grey 600; Home (a 16px line icon) before
   the 32px avatar; the centre mark in its white half-disc hanging from the top edge, the butterfly about 36px wide. */
body.app-shell main { padding-top: 6px; }
body.app-shell .topbar { min-height: 36px; gap: var(--spacing-lg); }
body.app-shell .brand { gap: 0; }
body.app-shell .brand-name { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-semibold); line-height: 18px; color: var(--color-primary-600); }
body.app-shell .brand-logo { height: 26px; width: 26px; margin-right: 10px; }
.topbar .home-link { order: 1; width: 32px; height: 32px; color: var(--color-primary-600); }
.topbar .home-link svg { width: 16px; height: 16px; }
.topbar .home-link:hover { color: var(--color-primary-950); }
.topbar .avatar-menu { order: 2; }
body.app-shell .center-mark-button { top: -17px; }
body.app-shell .center-mark-button .center-mark { width: 192px; }
body.app-shell .center-mark-button.is-menu::after { bottom: 14px; }
body.app-shell .center-mark-button.is-menu[aria-expanded="true"]::after { bottom: 11px; }
@media (max-width: 560px) {
  body.app-shell .brand { max-width: calc(50% - 56px); }
  body.app-shell .center-mark-button { top: -12px; }
  body.app-shell .center-mark-button .center-mark { width: 96px; }
  body.app-shell .center-mark-button.is-menu::after { bottom: 4px; }
  body.app-shell .center-mark-button.is-menu[aria-expanded="true"]::after { bottom: 1px; }
}

/* Popover surface (Widget-PopoverSurface): the account menu and the centre menu. White, radius 12, a soft 12px shadow
   and a hairline; a 13px grey heading; items 14/400 grey 700 on a light grey hover. */
.menu, .center-panel { border-radius: var(--radius-container-lg); background: var(--color-solid-white);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--color-solid-black) 10%, transparent), 0 0 0 1px var(--color-border-divider); }
.menu { min-width: 240px; padding: 6px; }
.menu-who { padding: 8px 12px 10px; border-bottom-color: var(--color-border-divider); }
.menu-who .account-name { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal); line-height: 18px; color: var(--color-primary-500); }
.menu-who .sub-lead, body.app-shell .menu-who .sub-lead { font-size: var(--font-size-xs); line-height: 16px; color: var(--color-primary-400); }
.menu button, .menu a[role="menuitem"] { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 20px; padding: 8px 12px;
  border-radius: var(--radius-button-md); color: var(--color-primary-700); }
.menu button:hover, .menu button:focus-visible, .menu a[role="menuitem"]:hover, .menu a[role="menuitem"]:focus-visible { background: var(--color-primary-50); color: var(--color-primary-950); }
.center-panel-title { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal); color: var(--color-primary-500); }

/* Pill tabs (Laylet-AnthroposManagementHome): the pages of a menu (.desk-tab) and the cards of the centre menu
   (.task-card) are one piece. 50px, fully round, white with a soft shadow; a 32px light disc with a 16px grey line icon
   (the open one black with a white icon); title 14/400 grey 700, sub 12 grey 400; a trailing "›". */
.desk-tab, .task-card { min-height: 50px; gap: 10px; padding: 8px 16px 8px 9px; border-radius: var(--border-radius-4xl); border: 0;
  background: color-mix(in srgb, var(--color-solid-white) 92%, transparent); backdrop-filter: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.desk-tab:hover, .task-card:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--color-solid-black) 10%, transparent); }
.desk-tab.is-active, .task-card[aria-selected="true"] { background: var(--color-solid-white);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-solid-black) 10%, transparent); }
.desk-tab-icon, .task-icon, .task-card:not(.is-locked) .task-icon { width: 32px; height: 32px; border-radius: var(--radius-avatar-full);
  border: var(--border-width-default) solid var(--color-border-divider); background: var(--color-neutral-100); color: var(--color-primary-500); }
.desk-tab-icon svg, .task-icon svg { width: 16px; height: 16px; }
.desk-tab.is-active .desk-tab-icon, .task-card[aria-selected="true"] .task-icon, .task-card[aria-selected="true"]:not(.is-locked) .task-icon {
  background: var(--color-primary-950); border-color: var(--color-primary-950); color: var(--color-solid-white); }
.desk-tab.is-locked .desk-tab-icon, .task-card.is-locked .task-icon { border-style: dashed; }
.desk-tab-title, .task-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 18px; color: var(--color-primary-700); }
.desk-tab.is-active .desk-tab-title, .task-card[aria-selected="true"] .task-title { color: var(--color-primary-950); }
.desk-tab.is-locked .desk-tab-title, .task-card.is-locked .task-title { color: var(--color-primary-400); }
.desk-tab-sub, .task-sub { font-size: var(--font-size-xs); line-height: 16px; color: var(--color-primary-400); }
.task-chevron, .desk-tab::after { flex: none; font-size: var(--font-size-base); line-height: 1; color: var(--color-primary-600); }
.desk-tab::after { content: "›"; margin-left: 6px; }

/* Segmented tabs (Widget-Tabs): a 40px light grey track; items 14/400 grey 600; the open one a white pill with a shadow. */
.seg:not(.chips) { min-height: 40px; box-sizing: border-box; align-items: center; padding: 4px; gap: 2px; border: 0;
  border-radius: var(--radius-button-full); background: var(--color-primary-50); }
.seg:not(.chips) button, .seg:not(.chips) label { min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border-radius: var(--radius-button-full); font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); color: var(--color-primary-600); }
.seg:not(.chips) button[aria-pressed="true"], .seg:not(.chips) label:has(input:checked) { background: var(--color-solid-white); color: var(--color-primary-950);
  font-weight: var(--font-weight-medium); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-solid-black) 10%, transparent); }
.seg.seg-icons button { padding: 0 9px; }
/* Filter chips (Gadget-ExploreMeshworkList "All / My Home"): no track; 36px round chips, 13/600; the chosen one dark. */
.seg.chips { display: inline-flex; flex-wrap: wrap; gap: var(--spacing-sm); padding: 0; border: 0; background: transparent; }
.seg.chips button { min-height: 36px; height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 16px;
  border-radius: var(--radius-button-full); border: var(--border-width-default) solid var(--color-primary-200); background: var(--color-solid-white);
  font: inherit; font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-semibold); line-height: 1; color: var(--color-primary-700);
  box-shadow: none; cursor: pointer; }
.seg.chips button:hover { border-color: var(--color-primary-400); }
.seg.chips button[aria-pressed="true"], .seg.chips .seg-b.is-on { background: var(--color-primary-800); border-color: var(--color-primary-800); color: var(--color-solid-white); }
.seg.chips button:focus-visible { outline: 2px solid var(--color-primary-950); outline-offset: 2px; }
/* A list's filter in its toolbar: 13px words. */
.tbl-filter select { font-size: var(--font-size-sm-minus); color: var(--color-primary-700); }

/* Breadcrumb (Widget-BreadcrumbTrail): 13px grey 400 with "›"; the page you are on grey 700. */
.crumbs { gap: 6px; font-size: var(--font-size-sm-minus); line-height: 18px; color: var(--color-primary-400); }
.crumbs a { color: var(--color-primary-400); }
.crumbs a:hover { color: var(--color-primary-950); }
.crumb-here { color: var(--color-primary-700); font-weight: var(--font-weight-medium); }

/* Page title (Laylet-MeshworkHome / -AnthroposManagementHome head): one look for every signed-in page head (.page-head,
   .task-head, .home-hero): title 24/600 grey 700, lead 14/400 grey 400; the task's icon a 56px light grey disc with a
   grey line icon (it was a black disc); the pill tabs 16px under the head. */
body.app-shell .card h1, body.app-shell .page-head h1 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: 32px;
  letter-spacing: -0.01em; color: var(--color-primary-700); }
body.app-shell .card .lead, body.app-shell .page-head .lead, body.app-shell .page-head .sub-lead, .mw-detail-head .lead {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); line-height: 20px; letter-spacing: normal; color: var(--color-primary-400); }
.task-head { align-items: center; gap: 14px; }
.task-head h1, .home-hero h1, .mw-detail-head h1 { margin: 0 0 2px; }
.task-head .task-icon { width: 56px; height: 56px; margin-top: 0; background: var(--color-primary-100); border: 0;
  box-shadow: 0 0 0 1px var(--color-border-divider); color: var(--color-primary-500); }
.task-head .task-icon svg { width: 26px; height: 26px; }
.task-head + .desk-tabs { margin-top: 2px; }
/* Hero (Gadget-ExploreMeshworkList "Meshworks"): Symbiontra's home head, large and tight; centred as the owner's
   explore page (30 Nov). */
/* Owner 30 Nov ("meshwork word too big"): the Meshworks title is the same size as every other page title (Members). */
body.app-shell .explore-head h1 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: 32px; letter-spacing: normal; color: var(--color-primary-900); }
body.app-shell .explore-head .sub-lead { font-size: var(--font-size-base); line-height: 24px; color: var(--color-primary-600); }

/* Chips keep their words on one line and wrap as whole chips (the explore toolbar stretched them on a phone). */
.seg.chips button { white-space: nowrap; }
.explore-tools .seg.chips { flex: 0 1 auto; }
.explore-tools .seg.chips button { flex: none; padding-inline: 16px; }

/* ================= Batch D, Webxtron look (owner 30 Nov: "look each screenshot and bring similar"). Records and lists of
   both apps, styled once here: the record view (book), the list table, the cards (a Meshwork card, the belonging cards,
   the Join Request card, the member rings), the sections of a signed-in page, the empty and the loading state. Look only;
   words, ids and behaviour stay ours. Reference screenshots: Laylet-AnthroposProfileHome, Gadget-AnthroposMemberOverview,
   Widget-SimpleTable, Gadget-AnthroposRecoveryRequestList, Laylet-AnthroposManagementHome, Gadget-ExploreMeshworkList,
   Gadget-ExploreMeshworkView, Pellet-RingGauge, Laylet-MeshworkHome, Pellet-EmptyStateSurface, Pellet-SkeletonSurface. */

/* Record view (Laylet-AnthroposProfileHome): the spine's round buttons 36px, white, a hairline and a soft shadow, a 16px
   grey line icon; the section's head a 56px light grey disc (the page head's look), its title 20/500 grey 700 and a
   14px grey 400 line; a group heading 16/600 near black with a 13px grey line under it. */
.book-nub { width: 36px; height: 36px; border: var(--border-width-default) solid var(--color-border-divider); background: var(--color-solid-white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-solid-black) 8%, transparent); }
.book-nub svg { width: 16px; height: 16px; stroke-width: 1.5; }
.book-nub[data-active="true"] { border-color: var(--color-primary-300); }
.book-nub-dot { top: 0; right: 0; }
.book-section-head { gap: 14px; }
.book-section-icon { width: 56px; height: 56px; border-radius: var(--radius-avatar-full); background: var(--color-primary-100);
  box-shadow: 0 0 0 1px var(--color-border-divider); }
.book-section-icon svg { width: 26px; height: 26px; stroke: var(--color-primary-500); stroke-width: 1.4; }
.book-section-head h3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-medium); line-height: 28px; color: var(--color-primary-700); }
.book-section-head p { margin: 0; font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-400); }
.book-group, .book-summary-heading, .book-block-head h4 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); line-height: 24px; color: var(--color-primary-900); }
.book-summary-text, .book-block-head p, .book-row-why { font-size: var(--font-size-sm-minus); line-height: 18px; color: var(--color-primary-500); }
.book-block-icon { border-radius: var(--radius-avatar-full); background: var(--color-primary-100); }
.book-block-icon svg { stroke: var(--color-primary-500); }
.book-block { border-top-color: var(--color-border-divider); }
.act-group { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-medium); color: var(--color-primary-500); }
/* The decentralized identifier on a record: mono 13 (Laylet-AnthroposProfileHome "did:web:…" line). */
.detail-cell.is-wide .detail-value { font-family: var(--font-family-mono); font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal); line-height: 18px; }

/* List table (Widget-SimpleTable, Gadget-AnthroposRecoveryRequestList): the head 40px, 13/600 near black, no line under
   it; rows 32px on zebra stripes, 14px words, the name 14/500; the row number 12px grey with a hairline after its
   column; the pager 13px. */
.tbl-row.tbl-head { min-height: 40px; padding-bottom: 0; border-bottom: 0; font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-semibold); line-height: 18px; color: var(--color-primary-900); }
.tbl-row { min-height: 32px; font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-900); }
.tbl-row > :first-child { align-self: stretch; display: flex; align-items: center; border-right: var(--border-width-default) solid var(--color-border-divider); }
.tbl-num { font-size: var(--font-size-xs); }
.tbl-name { font-weight: var(--font-weight-medium); color: var(--color-primary-950); }
.tbl-text { color: var(--color-primary-700); }
.tbl-body .tbl-row:nth-child(even), .people-rows .tbl-row:nth-child(even) { background: var(--color-primary-50); }
.tbl-pager, .tbl-count, .tbl-filter-name { font-size: var(--font-size-sm-minus); }
.tbl-pager > span { color: var(--color-primary-700); }
.tbl-group { font-size: var(--font-size-sm-minus); color: var(--color-primary-700); border-top-color: var(--color-border-divider); }
/* On a phone the columns are narrow: the rows 13px, the head 12px. */
@media (max-width: 760px) { .tbl-row { font-size: var(--font-size-sm-minus); line-height: 18px; } .tbl-row.tbl-head { font-size: var(--font-size-xs); line-height: 16px; } }

/* Empty state (Pellet-EmptyStateSurface): centred 14px grey 500 words, no box. The lists that write their own empty words
   (a list's ::before) say them the same way. */
.empty-state { justify-items: center; text-align: center; padding: 24px 8px; font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-500); }
.tbl-empty, .explore-none, body.app-shell .sub-lead.tbl-empty { text-align: center; padding: 24px 8px; font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-500); }
.list:empty::before, .apps:empty::before, #m-joins:empty::before { display: block; text-align: center; padding: 24px 8px; font-size: var(--font-size-sm); color: var(--color-primary-500); }
/* Loading (Pellet-SkeletonSurface): under the waiting words, three 16px light grey bars, fully round, 8px apart. */
#in-apps-loading:not([hidden]) { display: grid; gap: 12px; text-align: center; color: var(--color-primary-500); }
#in-apps-loading:not([hidden])::after { content: ""; display: block; height: 16px; margin-bottom: 48px; border-radius: var(--radius-button-full); background: #e6e6e6;
  box-shadow: 0 24px 0 #e6e6e6, 0 48px 0 #e6e6e6; }

/* Cards (Gadget-ExploreMeshworkList card): radius 12, a 1px light border, near-white, a light shadow, padding 20; the name
   20/600, the address 13 grey 500, the words 14 grey 600 on two lines; the footer facts 12/600 over a 12px grey label;
   the card's act the small pill. */
.mw-card { gap: 10px; padding: 20px; border-radius: var(--border-radius-xl); border-color: var(--color-border-divider);
  background: color-mix(in srgb, var(--color-solid-white) 88%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.mw-card:hover { border-color: var(--color-primary-200); box-shadow: 0 4px 14px color-mix(in srgb, var(--color-solid-black) 7%, transparent); }
.mw-card-head { gap: 12px; }
.mw-card-name { font-size: var(--font-size-xl); line-height: 28px; color: var(--color-primary-900); }
.mw-card-addr { font-size: var(--font-size-sm-minus); line-height: 18px; color: var(--color-primary-500); }
.mw-card-text { font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-600); }
.mw-fact-text strong { font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); line-height: 16px; }
.mw-fact-label { font-size: var(--font-size-xs); line-height: 16px; color: var(--color-primary-400); }
.mw-card-foot { padding-top: 12px; }
.mw-card-foot a.button, .mw-card-foot button.button, .mw-card-foot button.primary, .mw-card-foot button.secondary { height: 36px; min-height: 36px; padding: 0 14px; gap: 8px; font-size: var(--font-size-sm-minus); }
/* The belonging cards on Symbiontra's home: the same card look; the domain and Meshwork names 16/600, the labels 13px. */
.belong-anchor { padding: 20px; border-radius: var(--border-radius-xl); border: var(--border-width-default) solid var(--color-border-divider);
  background: color-mix(in srgb, var(--color-solid-white) 80%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.belong-home { border-radius: var(--border-radius-xl); border-color: var(--color-primary-200); }
.belong-domain strong, .belong-home-text strong { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); line-height: 24px; }
.belong-label { font-size: var(--font-size-sm-minus); line-height: 18px; }
/* The Join Request card: the same card, padding 24; the person's name 20/600, the address mono 13. */
.jr-card { padding: 24px; border-radius: var(--border-radius-xl); border-color: var(--color-border-divider);
  background: color-mix(in srgb, var(--color-solid-white) 88%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--color-solid-black) 4%, transparent); }
.jr-who h2 { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: 28px; color: var(--color-primary-900); }
.jr-mono { font-size: var(--font-size-sm-minus); }
@media (max-width: 640px) { .jr-card { padding: 16px; } }

/* Rings (Gadget-ExploreMeshworkView, Pellet-RingGauge): no card behind; a 96px ring on a white disc with a hairline and a
   soft shadow, a thin grey arc, the number 20/600 inside; its words beside it (14/500, the whole 12px grey). */
.rings .glance-tile { padding: 8px; border-radius: var(--border-radius-xl); background: transparent; box-shadow: none; gap: 14px; }
.rings .glance-tile:hover { background: color-mix(in srgb, var(--color-solid-white) 50%, transparent); box-shadow: none; }
.ring { width: 96px; height: 96px; border-radius: var(--radius-avatar-full); background: color-mix(in srgb, var(--color-solid-white) 80%, transparent);
  box-shadow: 0 0 0 1px var(--color-border-divider), 0 4px 12px color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.ring svg { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.ring-track { stroke: var(--color-primary-100); stroke-width: 4; }
.ring-part { stroke: var(--color-primary-500); stroke-width: 4; }
.ring-number { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: 28px; color: var(--color-primary-900); }
@media (max-width: 520px) { .ring { width: 72px; height: 72px; } .ring svg { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); } }

/* Sections of a signed-in page (Laylet-MeshworkHome, Laylet-AnthroposManagementHome): no card; the sections lie on the
   page, split by hairlines, the side column by a hairline on its left. A desk page's list sits on the page too. */
#m-app-home .panel { padding: 20px 0; border-radius: 0; background: transparent; box-shadow: none; }
#m-app-home .mw-detail-main > .panel:not([hidden]) ~ .panel:not([hidden]) { border-top: var(--border-width-default) solid var(--color-border-divider); }
#m-app-home .mw-detail-side .panel { padding-left: 24px; border-left: var(--border-width-default) solid var(--color-border-divider); }
@media (max-width: 900px) { #m-app-home .mw-detail-side .panel { padding-left: 0; border-left: 0; border-top: var(--border-width-default) solid var(--color-border-divider); } }
body.app-shell :is(#m-join-box, #m-rec-box, #m-members-box, #m-inv, #m-prov, #m-batch, #m-rule, #m-dir, #m-charter, #m-reports, #m-roles-box, #m-second-box) { padding: 8px 0 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }

/* ================= Batch E, Webxtron look (owner 30 Nov: "look each screenshot and bring similar"). The flows of both
   apps, styled once here: the one stepper (registration, sign in, recovery, the Meshwork app's flows, the desk's
   setups, Create a Meshwork), the numbered steps (.dom-step), the parts track, the auth pages' head, the Meshwork
   home's "Needs your decision" rows and Create a Meshwork's act row. Look only; words, ids and behaviour stay ours.
   Reference screenshots: Gadget-AnthroposOnboarding, Widget-ProgressStep, Rootlet-IntermeshworkRootlet,
   Gadget-AnthroposSignup, Gadget-AnthroposRecoveryRequest, Gadget-AnthroposLifecycleStateOutcome, Laylet-MeshworkHome.
   Kept from the owner (28 Nov): the muted green tick on a done step and the soft ring on the step now. */

/* Stepper (Widget-ProgressStep): 32px circles; not yet = light grey fill, no border, grey number 14/500; now = near
   black, white 14/600; a dotted 1px grey connector; the words under each circle, left aligned, 13px. Steppers without
   a fixed column class take as many equal columns as they show steps. */
.stepper:not(.job-steps) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.stepper { gap: 8px; }
.stepper li { justify-items: start; text-align: left; gap: 8px; font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-normal);
  line-height: 18px; color: var(--color-primary-500); }
.stepper li::before { width: var(--avatar-sm); height: var(--avatar-sm); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  background: var(--color-primary-100); border-color: transparent; color: var(--color-primary-500); }
.stepper li::after { top: calc(var(--avatar-sm) / 2); left: calc(var(--avatar-sm) + 6px); width: calc(100% - var(--avatar-sm) - 4px);
  height: 0; background: none; border-top: var(--border-width-default) dotted var(--color-primary-300); }
.stepper li.is-done::after { background: none; border-top-color: color-mix(in srgb, var(--color-success-700) 45%, var(--color-neutral-700)); }
.stepper li.is-current { color: var(--color-primary-950); font-weight: var(--font-weight-semibold); }
.stepper li.is-current::before { font-weight: var(--font-weight-semibold); }
.stepper li.is-done::before { border-width: var(--border-width-default); }
.stepper.job-steps li > button { text-align: left; }
/* the last step shown has no connector, also when a later step is hidden (registration's Wallet) */
.stepper li:not(:has(~ li:not([hidden])))::after { display: none; }
/* a phone keeps only the circles, as before (labels too narrow to read) */
@media (max-width: 480px) { .stepper li { font-size: 0; gap: 0; } .stepper li::before { font-size: var(--font-size-sm); } }

/* Numbered steps (.dom-step, the steps of Give Symbiontra access and the domain proof): the stepper's circle look;
   title 14/500 grey 700 (now: near black), its words 14 grey 500. */
.dom-step { grid-template-columns: var(--avatar-sm) minmax(0, 1fr); gap: 14px; }
.dom-step-num { width: var(--avatar-sm); height: var(--avatar-sm); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  background: var(--color-primary-100); border-color: transparent; color: var(--color-primary-500); }
.dom-step-body { padding-top: 6px; }
.dom-step-body > strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: 20px; color: var(--color-primary-700); }
.dom-step-body > span { font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-500); }
.dom-step.is-now .dom-step-num { font-weight: var(--font-weight-semibold); }
.dom-step.is-done .dom-step-num { border-width: var(--border-width-default); }

/* Parts track (Create a Meshwork, Digital Estate): bars 4px fully round, words 13px grey 500, the part now 13/600. */
body #s-create .parts-track .bar { height: 4px; background: var(--color-primary-100); }
body #s-create .parts-track .lbl { font-size: var(--font-size-sm-minus); line-height: 18px; color: var(--color-primary-500); }
body #s-create .parts-track li.is-current .lbl { color: var(--color-primary-950); }

/* Auth pages (Gadget-AnthroposSignup, -Signin, -RecoveryRequest): title 24/600 grey 700 (one page heading size with the
   signed-in pages), its lead 14px grey 500 (weight kept thin: hi-fi value, owner decision), any further line 14px. */
body:not(.app-shell) .card h1 { font-size: var(--font-size-2xl, 1.5rem); line-height: 32px; letter-spacing: -0.01em; color: var(--color-primary-700); }
body:not(.app-shell) .card .lead { line-height: 20px; }
body:not(.app-shell) .card .sub-lead:not(.links) { font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-500); }

/* Meshwork home, "Needs your decision" (Laylet-MeshworkHome "Review configuration"): each row hangs on a 2px grey bar,
   no hairline between rows; its words 14px, the count 14/600. */
#m-app-home .attention-row { border-top: 0; border-left: 2px solid var(--color-primary-400); border-radius: 0; padding: 8px 4px 8px 14px; margin-top: 8px; }
#m-app-home .attention-row:first-child { margin-top: 0; }
#m-app-home .attention-count { font-weight: var(--font-weight-semibold); }

/* Create a Meshwork (Rootlet-IntermeshworkRootlet): the step's act row sits under a hairline; the step title 24/600. */
body #s-create .wizard-step > .actions { padding-top: 20px; border-top: var(--border-width-default) solid var(--color-border-divider); }
body #s-create .wizard-step > .job-head { font-size: var(--font-size-2xl, 1.5rem); line-height: 32px; color: var(--color-primary-700); }
body #s-create .wizard-step > .lead { font-size: var(--font-size-sm); line-height: 20px; color: var(--color-primary-500); }

/* ================= Look check (30 Nov, after batches A to E): leftovers found by measuring every page of both apps at
   1280 and 375 against the type scale (12, 13, 14, 16, 20, 24, hero) and the same-piece-same-box rule. Look only. */
/* Top bar: the name and the entry pill are the same on signed-in and signed-out pages (Rootlet: 13/600 grey 600). */
.brand-name { font-size: var(--font-size-sm-minus); font-weight: var(--font-weight-semibold); line-height: 18px; color: var(--color-primary-600); }
.topbar .pill .entry { font-size: var(--font-size-sm-minus); line-height: 18px; }
/* Record head (one recordHead() in ui.js): the name 20/600 (AnthroposProfileHome), the logo note 12px. */
.up-name { font-size: var(--font-size-xl, 1.25rem); line-height: 28px; letter-spacing: -0.01em; }
.logo-line { font-size: var(--font-size-xs); line-height: 16px; }
/* A small line under a section, a card's address or a side note: 13px grey, in both apps (the fluid 12.4px is gone). */
body.app-shell .sub-lead:where(:not(.links, .tbl-empty)), .other-text .sub-lead, #m-app-home .mw-detail-side .home-leave .sub-lead,
.explore-count, .jr-pager, .jr-pager span { font-size: var(--font-size-sm-minus); line-height: 18px; }
/* Meshwork marks: the big one keeps its box, its letters 20/600 as the Meshwork home mark. */
.app-mark.big { font-size: var(--font-size-xl, 1.25rem); }
.belong-arrow { font-size: var(--font-size-xl, 1.25rem); }
/* A card's act is the small pill everywhere (Batch D): also on the belonging card (Open, Join, Create). */
:is(.belong-home, .belong-anchor) :is(a.button, button.primary, button.secondary) { height: 36px; min-height: 36px; padding: 0 14px; gap: 8px; font-size: var(--font-size-sm-minus); }
/* Every small pill has one padding (0 14), also in a book row and under "You are not a member". */
.book-row .action-pill, #in-meshwork .mw-you .action-pill { padding: 0 14px; }
/* List heads: every head cell sits in the middle of the 40px head (the # column was out of line with wrapped heads). */
.job-tbl .tbl-head > * { align-self: center; }
/* Join Request outcome: list words 14 like every body line; the mark glyph 12. */
.jr-outcome ul { font-size: var(--font-size-sm); line-height: 20px; }
.jr-outcome-mark { font-size: var(--font-size-xs); }
.test-peek { font-size: var(--font-size-xs); }
/* On a phone a long record name (an email address) wraps rather than being cut, at the 20px size. */
@media (max-width: 560px) { .up-name { white-space: normal; overflow-wrap: anywhere; } }
/* On a phone the Join Request's state pill goes under the name (it squeezed the name to one letter per line). */
@media (max-width: 640px) { .jr-who { flex: 1 1 160px; } }

/* A record view (ui.js recordView, owner 30 Nov): the full record of a Meshwork, grouped by what a person looks for, the
   same on Symbiontra's page and in the Meshwork's own Profile. Each fact: its name, its value, whether it can change. */
.record-view { display: grid; gap: var(--spacing-md, 16px); padding-left: 14px; min-width: 0; }
.record-group { min-width: 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--color-solid-black) 6%, transparent); }
.record-group:first-child { border-top: 0; padding-top: 0; }
.record-group-head { margin: 0 0 6px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-950); }
.record-group-note { margin: 0 0 8px; font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.record-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
.record-fact { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 2px 16px; align-items: start; min-width: 0; }
.record-fact dt { font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.record-fact dd { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; min-width: 0; }
.record-value { min-width: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-950); overflow-wrap: anywhere; }
.record-value.mono { font-family: var(--font-family-mono); font-size: var(--font-size-xs); font-weight: var(--font-weight-normal); }
.record-value.is-missing { color: var(--color-primary-400); font-weight: var(--font-weight-normal); }
.record-change { flex-basis: 100%; font-size: var(--font-size-xs); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-400); }
.record-history { margin-top: 12px; }
.record-history .history-box { padding-left: 0; }
@media (max-width: 760px) {
  .record-view { padding-left: 0; }
  .record-fact { grid-template-columns: minmax(0, 1fr); }
  .history li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.record-subhead { margin: 0 0 6px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); line-height: var(--font-body-sm-lineHeight); color: var(--color-primary-600); }

/* Cloud logo (shared, ui.js cloudLogo): the Estate Provider's logo shape (Simple Icons, kept in cloud-logos/) filled with
   the company's own brand colour; the logos' own colours, not theme colours. */
.cloud-logo { flex: none; display: inline-block; width: var(--avatar-2xs); height: var(--avatar-2xs); vertical-align: middle;
  background: var(--brand); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.lg-aws { --brand: #FF9900; --logo: url(cloud-logos/amazonwebservices.svg); }
.lg-azure { --brand: #0078D4; --logo: url(cloud-logos/microsoftazure.svg); }
.lg-gcp { --brand: #4285F4; --logo: url(cloud-logos/googlecloud.svg); }
.lg-oci { --brand: #F80000; --logo: url(cloud-logos/oracle.svg); }
.lg-openstack { --brand: #ED1944; --logo: url(cloud-logos/openstack.svg); }
.lg-nutanix { --brand: #024DA1; --logo: url(cloud-logos/nutanix.svg); }
.lg-vmware { --brand: #607078; --logo: url(cloud-logos/vmware.svg); }
.lg-k8s { --brand: #326CE5; --logo: url(cloud-logos/kubernetes.svg); }
.lg-openshift { --brand: #EE0000; --logo: url(cloud-logos/redhatopenshift.svg); }
.with-logo { display: inline-flex; align-items: center; gap: var(--spacing-sm); }
.detail-icon .cloud-logo { width: 18px; height: 18px; }

/* Owner 30 Nov 2026: no page-name pill in the top bar ("Sign in", "Sign up", "Registration"...) on any page; the page's
   own heading already says where the person is. The element stays for scripts that read it. */
.topbar .pill { display: none !important; }

/* Leave A Membership on Symbiontra's home (owner 30 Nov): a quiet Leave beside Open on a card the person belongs to,
   and the note its first press shows. Additive only: no existing card rule changes. */
.mw-card-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs, 6px); margin-left: auto; }
.mw-card-foot .mw-card-acts button.mw-leave, .belong-home button.mw-leave { height: 36px; min-height: 36px; padding: 0 14px;
  font-size: var(--font-size-sm-minus); background: transparent; }
.mw-card .mw-leave-note, .belong-home .mw-leave-note { flex-basis: 100%; margin: 0; font-size: var(--font-caption-md-fontSize); }
#in-apps.as-list .mw-card-foot .mw-card-acts { flex-wrap: nowrap; }
#in-apps.as-list .mw-card-foot .mw-card-acts .button { margin-left: 0; }
#in-apps.as-list .mw-card .mw-leave-note { grid-column: 1 / -1; }
#s-in-done > .message { margin-bottom: var(--spacing-md); }
@media (max-width: 375px) {
  .mw-card-acts { width: 100%; justify-content: flex-end; }
  #in-apps.as-list .mw-card-foot .mw-card-acts { flex-wrap: wrap; }
}

/* A Meshwork's page at Symbiontra (owner 30 Nov): its address is the way in, a link with an arrow; its description under
   the name. */
#in-meshwork .up-id-body a.up-open { display: inline-flex; align-items: center; gap: var(--spacing-2xs); }
#in-meshwork .up-open-arrow { display: inline-grid; width: 14px; height: 14px; flex: none; }
#in-meshwork .up-open-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#in-meshwork .up-desc { margin: 2px 0 var(--spacing-2xs); font-size: var(--font-size-sm); color: var(--color-primary-600); max-width: 60ch; }

/* Symbiontra's Meshworks page (owner 30 Nov): Create a Meshwork under the greeting; Close a Meshwork last, quiet. */
.explore-head .in-create { margin-top: var(--spacing-sm); }
.explore-head .in-create[hidden] { display: none; }

/* The home Meshwork, first card of the Meshworks page (owner 30 Nov): the same card, its border a shade stronger. */

.mw-card.is-home { border-color: var(--color-primary-300); }
.mw-card.is-home.pending { border-style: dashed; }

/* Symbiontra's Members (owner 30 Nov: the same UI as the Meshwork app's Members): the people list and the person book are
   the Meshwork app's own (.people, .tbl-row, .book); the worklists below are the home's "Needs your decision" rows, each
   with its act on the row. */
#m-pf-person-body { display: grid; gap: 10px; }
#m-platform .people.is-person + .pf-needs { display: none; }
.pf-needs { margin-top: 8px; }
.pf-needs .act-group { padding-left: 4px; }
.pf-needs .attention-row { flex-wrap: wrap; }
.pf-needs .attention-row > button { flex: none; }
.pf-needs .attention-text .tag, .pf-needs .attention-text .state-pill { justify-self: start; }
.pf-answer { flex-basis: 100%; display: grid; gap: 8px; padding: 4px 0 4px 54px; }
.pf-answer textarea { width: 100%; }
.pf-sweep { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; }
.pf-sweep .sub-lead { margin: 0; flex: 1 1 260px; }
.pf-empty { margin: 0; padding: 8px 4px; color: var(--color-primary-500); font-size: var(--font-size-sm); }
@media (max-width: 760px) { .pf-answer { padding-left: 0; } }
/* The richer Meshwork card (owner 30 Nov): its parts vary (no filler), so it stacks and its foot sits at the bottom. */
.mw-card { display: flex; flex-direction: column; }
.mw-card-foot { margin-top: auto; }
.mw-card-note { margin: 0; font-size: var(--font-caption-md-fontSize); color: var(--color-primary-600); }
#in-apps.as-list .mw-card { display: grid; }
#in-apps.as-list .mw-card-note { display: none; }
/* Close this Meshwork: one act line under the Meshwork's facts on its own page (owner 30 Nov), as on a person's page */
.mw-close { margin-top: var(--spacing-md); border-top: var(--border-width-default) solid var(--color-border-divider); }
.mw-close .book-row.act-line { padding-left: 0; }
/* Symbiontra's Members list: the person, their address, identifier, how many Meshworks, and their state pills */
.pf-tbl .tbl-row { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.8fr) minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 1.3fr); }
.tbl-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pf-tbl .mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--font-size-xs); }
@media (max-width: 760px) {
  .pf-tbl .tbl-row { grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, 0.5fr) auto; }
  .pf-tbl .tbl-row > :nth-child(3), .pf-tbl .tbl-row > :nth-child(4) { display: none; }
  .pf-tbl .tbl-row > :nth-child(6) { display: block; }
}

/* ---------- the first paint and every loading state (owner 30 Nov: "always show skeleton every page") ----------
   html[data-boot] is set by early.js before the body is parsed; boot.js puts a signed-in page in the app shell, so the
   signed-out illustration never shows while the session is checked. The .boot block is plain HTML: it paints before
   any script runs and hides as soon as a real page (a section of main) shows. */
.boot, .boot > div, .boot-app > div, .boot-up { display: none; }
html[data-boot] main:not(:has(> section:not([hidden]))) > .boot { display: block; }
html[data-boot="form"] .boot-form { display: grid; }
html[data-boot-form="up"] .boot-up { display: grid; }
html[data-boot="landing"] .boot-landing { display: grid; }
html[data-boot="landing"] .top .brand { visibility: hidden; }   /* the landing carries the name itself */
html[data-boot^="app"] .boot-app { display: block; }
html[data-boot="app-cards"] .boot-cards, html[data-boot="app-rows"] .boot-rows, html[data-boot="app-me"] .boot-me,
html[data-boot="app-create"] .boot-create, html[data-boot="app"] .boot-page { display: grid; }
html[data-boot^="app"] .auth-visual { display: none !important; }
html[data-boot^="app"] body { display: block; }
html[data-boot^="app"] main { max-width: 1240px; }

.sk { display: block; border-radius: 10px; background: linear-gradient(90deg,
    color-mix(in srgb, var(--color-primary-100) 70%, transparent) 0%,
    color-mix(in srgb, var(--color-primary-50, var(--color-solid-white)) 90%, transparent) 40%,
    color-mix(in srgb, var(--color-primary-100) 70%, transparent) 80%);
  background-size: 300% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
/* The pieces a skeleton puts inside the real markup: a line of text (its width --w, its height the text's own), a pill,
   a button, an input, an icon. Their boxes take the size of the real element they stand in. */
.sk-text { display: inline-block; vertical-align: middle; width: var(--w, 60%); max-width: 100%; height: 0.72em; border-radius: 6px; }
p > .sk-text + .sk-text, .mw-card-text > .sk-text + .sk-text { margin-top: 6px; }
.sk-pill { display: inline-block; width: var(--w, 96px); height: 24px; border-radius: var(--radius-button-full, 999px); }
.sk-btn { display: inline-block; width: var(--w, 96px); height: 36px; border-radius: var(--radius-badge); }
.sk-btn-wide { width: 100%; height: 44px; }
.sk-input { display: block; width: 100%; height: var(--button-height-md, 44px); border-radius: var(--radius-badge); }
.sk-icon { display: inline-block; width: 26px; height: 26px; border-radius: var(--radius-button-md); }
.sk-search { display: block; height: 46px; width: 100%; max-width: 720px; justify-self: center; border-radius: var(--radius-button-full, 999px); }
.sk-seg { display: inline-block; width: 320px; max-width: 60%; height: 34px; border-radius: var(--radius-button-full, 999px); }
.sk-seg-sm { width: 76px; }
.sk-logo { display: inline-block; height: 56px; width: min(280px, 70vw); }
.app-mark.sk, .mw-fact-icon.sk, .task-icon.sk, .detail-icon.sk, .book-section-icon.sk, .up-avatar-lg.sk { border: 0; }
.explore-find.is-sk .explore-tools { justify-content: flex-end; }
.mw-card.is-sk .mw-card-text { display: block; }
.boot .tbl-row { cursor: default; }
.boot .stepper.job-steps li::before, .boot .stepper.job-steps li::after { display: none; }
.sk-grid[hidden] { display: none; }
.sk-grid { display: grid; gap: var(--spacing-md); }
.cm-load { padding: var(--spacing-md, 16px) 0; }
.cm-load[hidden] { display: none; }

/* "/" for a person who is not signed in: the mark, the name, one line, two choices. */
.landing { justify-items: center; text-align: center; padding-top: 12vh; }
.landing h1 { margin: 0; line-height: 0; }
.landing-logo { width: min(280px, 70vw); height: auto; }
.landing-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(420px, 100%); margin-top: 8px; }
.landing-choices .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 420px) { .landing-choices { grid-template-columns: 1fr; } }

/* One form for every Meshwork card (owner 30 Nov: "why is the grid view card not consistent, why is the same information
   not shown in the same form?"). Every card has the same six slots in the same order (flow.js cardSlots), each slot one
   fixed line, so every card in a row has the same height and every part sits at the same place: (a) mark and name,
   (b) address, (c) pill row, (d) facts row (two facts), (e) the description on two lines, its space kept, (f) the actions,
   pinned at the bottom. The skeleton (.mw-card.is-sk) is the same markup. */
.mw-grid { align-items: stretch; }
.mw-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mw-card-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 28px; min-height: 28px; }
.mw-card-addr { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; min-height: 18px; }
.mw-card-addr.is-none { color: var(--color-primary-400); }
.mw-card-tags { flex-wrap: nowrap; overflow: hidden; min-height: 24px; align-items: center; }
.mw-card-tags > * { flex: none; }
.mw-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); min-height: 32px; flex-wrap: nowrap; }
.mw-fact { min-width: 0; }
.mw-fact-text { min-width: 0; }
.mw-fact-text strong, .mw-fact-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-card-text { min-height: 40px; max-height: 40px; }
.mw-card-foot { margin-top: auto; min-height: 49px; flex-wrap: nowrap; }
.mw-card-foot .mw-card-note { flex: 1 1 auto; min-width: 0; }
.mw-card-acts { flex-wrap: nowrap; }
@media (max-width: 375px) { .mw-card-acts { width: auto; } }
/* The list view: the same slots on one line: name and address, pills, the two facts, the description, the actions. */
#in-apps.as-list .mw-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr) auto;
  grid-template-rows: auto; align-items: center; gap: var(--spacing-md); }
#in-apps.as-list .mw-card > * { grid-row: 1; grid-column: auto; }
#in-apps.as-list .mw-card-tags { display: flex; }
#in-apps.as-list .mw-card-text { min-height: 0; max-height: 20px; -webkit-line-clamp: 1; }
#in-apps.as-list .mw-card-foot { min-height: 0; border-top: 0; padding-top: 0; margin-top: 0; }
#in-apps.as-list .mw-card-note { display: none; }
@media (max-width: 1000px) {
  #in-apps.as-list .mw-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  #in-apps.as-list .mw-facts, #in-apps.as-list .mw-card-text { display: none; }
}
@media (max-width: 560px) {
  #in-apps.as-list .mw-card { grid-template-columns: minmax(0, 1fr) auto; }
  #in-apps.as-list .mw-card-tags { display: none; }
}

/* The whole card opens the Meshwork's page (owner 30 Nov: "why card not clickable"): the name link stretches over the
   card; the card's own buttons (Leave, Open, Request to join) sit above it and keep their own act. */
.mw-card { position: relative; cursor: pointer; }
.mw-card .mw-card-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mw-card .mw-card-foot, .mw-card .mw-card-foot * { position: relative; z-index: 1; }
.mw-card:has(.mw-card-name:focus-visible) { outline: 2px solid var(--color-primary-500); outline-offset: 2px; }
.mw-card.is-sk { cursor: default; }
.mw-card-name:hover { text-decoration: none; }

/* The Meshwork's members list with each member's DID (owner 30 Nov), read from Symbiontra: six cells. */
.mem-tbl .tbl-row { grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); }
@media (max-width: 760px) {
  .mem-tbl .tbl-row { grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) auto; }   /* #, email, DID, Arc State */
}

/* My identity as the person book (30 Nov): an opened act's part sits under its line; wallet credential rows */
#m-me .me-part { padding: var(--spacing-md) 0 var(--spacing-lg); border-bottom: var(--border-width-default) solid var(--color-border-divider); }
#m-me .me-part > .row, #m-me .me-part form { max-width: 560px; }
.wallet-row-head { display: flex; align-items: center; gap: var(--spacing-sm); flex-wrap: wrap; }
.wallet-offer { display: grid; justify-items: start; gap: var(--spacing-sm); margin-top: var(--spacing-md); }
.wallet-offer .qr img { width: 180px; height: 180px; border-radius: var(--radius-container-sm); border: var(--border-width-default) solid var(--color-border-stroke); background: var(--color-solid-white); }
/* The update's progress on the Platform Release page (1 Dec): the step list and activity list of Create a Meshwork
   (create-meshwork.css, shared through .upkeep); the tab's dot turns red when the update failed. */
.upkeep-item .wsteps { margin-top: var(--spacing-xs); }
.upkeep-activity > summary { cursor: pointer; font-weight: var(--font-weight-semibold); }
.upkeep-activity .log { margin-top: var(--spacing-xs); }
.book-nub-dot.is-bad { background: var(--color-error-700); }
