
  /* A practice appointment has no type to choose, no case to link and no
     weekly limit: those parts of the Schedule form step aside while it's ticked. */
  #appointmentForm.is-practice #appointmentTypeRow,
  #appointmentForm.is-practice #appointmentCaseIdGroup,
  #appointmentForm.is-practice .limit-bypass-only { display: none !important; }

  @keyframes callModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes ringShake {
    0%, 100% { transform: rotate(0deg); }
    20%      { transform: rotate(-12deg); }
    40%      { transform: rotate(10deg); }
    60%      { transform: rotate(-8deg); }
    80%      { transform: rotate(6deg); }
  }

  /* ═══════════════════════════════════════════════════════════════════════
     Added with banners, accessibility settings, the broadcast editor,
     recent broadcasts, the session warning and volunteer pictures.
     ═══════════════════════════════════════════════════════════════════════ */

  /* ── Volunteer pictures beside names ───────────────────────────────── */
  .avatar-xs { width: 22px; height: 22px; font-size: 0.6rem; }
  .volunteer-chip { display: inline-flex; align-items: center; gap: 0.35rem; vertical-align: middle; max-width: 100%; }
  .volunteer-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ── Banners across the top of every screen ────────────────────────── */
  /* Inside the page that is showing, as its first thing (relayPlaceBanners),
     so they share its surface and padding rather than floating above it.
     Quiet by design: a soft tint, a hairline border and a slim accent, the
     same family as the cards on the page — only urgent ones are loud. */
  .relay-banner-host { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 1.25rem; padding: 0; }
  .page > .relay-banner-host { grid-column: 1 / -1; }
  .relay-banner-host:empty { display: none; }
  .relay-banner {
    position: relative; display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.8rem 1rem 0.8rem 1.15rem; font-size: 0.98rem; line-height: 1.5;
    border-radius: 12px; border: 1px solid rgba(29, 112, 184, 0.22);
    background: var(--c-info-bg); color: var(--n-900); overflow: hidden;
    box-shadow: 0 1px 2px rgba(10, 30, 50, 0.04);
  }
  .relay-banner::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-link);
  }
  .relay-banner-success { background: var(--c-success-bg); border-color: rgba(0, 112, 60, 0.25); }
  .relay-banner-success::before { background: var(--c-success); }
  .relay-banner-warning { background: var(--c-warning-bg); border-color: rgba(180, 110, 0, 0.3); }
  .relay-banner-warning::before { background: var(--c-warning); }
  .relay-banner-urgent  { background: var(--c-danger); border-color: #7a0f0f; color: #ffffff; font-weight: 600; }
  .relay-banner-urgent::before { background: #7a0f0f; }
  body.dark-mode .relay-banner:not(.relay-banner-urgent) { color: inherit; border-color: rgba(255, 255, 255, 0.12); }
  .relay-banner-heading { display: block; font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.15rem; }
  .relay-banner-icon { font-size: 1.15rem; line-height: 1.35; }
  .relay-banner-icon { flex-shrink: 0; }
  .relay-banner-message { display: block; }
  .relay-banner-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .relay-banner-link { color: inherit; font-weight: 700; text-decoration: underline; margin-left: 0.35rem; }
  .relay-banner-close {
    flex-shrink: 0; background: none; border: none; color: inherit; font-size: 1.6rem; line-height: 1;
    cursor: pointer; padding: 0 0.25rem; opacity: 0.75;
  }
  .relay-banner-close:hover, .relay-banner-close:focus-visible { opacity: 1; }
  .banner-admin-item { border: 1px solid var(--color-border); border-radius: 6px; padding: 0.75rem; margin-bottom: 0.75rem; }
  .banner-admin-item .relay-banner { border-radius: 4px; margin-bottom: 0.5rem; }
  .banner-admin-meta { font-size: 0.8rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
  .banner-state { font-weight: 600; }
  .banner-state.is-live { color: var(--c-success); }
  .banner-state.is-scheduled { color: var(--c-link); }

  /* ── Recent broadcasts (Dashboard) ─────────────────────────────────── */
  .broadcast-item {
    display: flex; align-items: flex-start; gap: 0.65rem; width: 100%; text-align: left;
    background: none; border: none; border-top: 1px solid var(--color-border);
    padding: 0.6rem 0.25rem; cursor: pointer; color: inherit; font: inherit;
  }
  .broadcast-item:first-child { border-top: none; }
  .broadcast-item:hover, .broadcast-item:focus-visible { background: var(--n-50); }
  .broadcast-item-icon { font-size: 1.1rem; line-height: 1.4; }
  .broadcast-item-body { display: flex; flex-direction: column; min-width: 0; }
  .broadcast-item-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .broadcast-item-body small { color: var(--color-text-secondary); }
  .bc-email-preview-body { line-height: 1.6; overflow-wrap: anywhere; }
  .bc-email-preview-body a { color: var(--color-primary); }

  /* ── Broadcast email editor ────────────────────────────────────────── */
  .rte-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
    padding: 0.35rem; border: 1px solid var(--color-border); border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0; background: var(--n-50);
  }
  .rte-btn {
    min-width: 2rem; padding: 0.3rem 0.55rem; border: 1px solid transparent; border-radius: 4px;
    background: none; color: var(--color-text-primary); font-size: 0.85rem; cursor: pointer;
  }
  .rte-btn:hover, .rte-btn:focus-visible { border-color: var(--color-border); background: var(--color-surface); }
  .rte-sep { width: 1px; height: 1.3rem; background: var(--color-border); margin: 0 0.2rem; }
  .rte-editor {
    min-height: 260px; max-height: 60vh; overflow-y: auto; line-height: 1.6;
    border-radius: 0 0 var(--radius) var(--radius); white-space: normal; cursor: text;
  }
  .rte-editor:empty::before { content: attr(data-placeholder); color: var(--color-text-light); }
  .rte-editor h2 { font-size: 1.25rem; color: var(--color-primary); margin: 0.9rem 0 0.4rem; }
  .rte-editor h3 { font-size: 1.05rem; color: var(--color-primary); margin: 0.8rem 0 0.35rem; }
  .rte-editor p { margin: 0 0 0.6rem; }
  .rte-editor blockquote { margin: 0 0 0.6rem; padding: 0.4rem 0.8rem; border-left: 4px solid #F5C300; background: var(--c-warning-bg); }
  .rte-editor ul, .rte-editor ol { padding-left: 1.4rem; margin: 0 0 0.6rem; }

  /* ── Session warning ───────────────────────────────────────────────── */
  .relay-session-warning {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 10050; max-width: 360px;
    background: var(--color-surface); color: var(--color-text-primary);
    border: 1px solid var(--color-border); border-top: 4px solid var(--c-warning);
    border-radius: 8px; padding: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  .relay-session-warning p { margin: 0.4rem 0 0.75rem; font-size: 0.9rem; }
  .relay-session-warning-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  @media (max-width: 480px) { .relay-session-warning { left: 1rem; right: 1rem; max-width: none; } }

  /* ── Profile → Accessibility form ──────────────────────────────────── */
  .a11y-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
  .a11y-checks { border: none; padding: 0; margin: 0.25rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
  .a11y-checks label { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
  .a11y-checks input { margin-top: 0.2rem; }
  .a11y-checks small { color: var(--color-text-secondary); }

  /* ── Accessibility settings, applied to <body> (Js_Spine) ─────────── */
  body.a11y-text-large   { zoom: 1.1; }
  body.a11y-text-larger  { zoom: 1.25; }
  body.a11y-text-largest { zoom: 1.4; }

  body.a11y-contrast-high {
    --color-text-secondary: #1f2a33; --color-text-light: #36424c; --color-border: #5b6770;
    --n-600: #1f2a33; --n-400: #45525c; --n-300: #5b6770;
    --color-primary: #063d5e; --c-link: #063d5e;
  }
  body.dark-mode.a11y-contrast-high {
    --color-text-primary: #ffffff; --color-text-secondary: #e2e8ec; --color-text-light: #c9d2d8;
    --color-border: #a8b3bb; --n-600: #e2e8ec; --n-900: #ffffff; --n-400: #a8b3bb; --n-300: #a8b3bb;
    --color-background: #000000; --color-surface: #0d1013; --n-0: #0d1013;
    --color-primary: #7cc4f2; --c-link: #7cc4f2;
  }
  body.a11y-contrast-high .btn, body.a11y-contrast-high .form-control { border-width: 2px; }

  body.a11y-reduce-motion *, body.a11y-reduce-motion *::before, body.a11y-reduce-motion *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }

  body.a11y-readable-font, body.a11y-readable-font input, body.a11y-readable-font button,
  body.a11y-readable-font select, body.a11y-readable-font textarea {
    font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif !important;
  }

  body.a11y-spacing-wide { line-height: 1.75; letter-spacing: 0.03em; word-spacing: 0.12em; }
  body.a11y-spacing-wide p, body.a11y-spacing-wide li, body.a11y-spacing-wide td { line-height: 1.75; }

  body.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }

  body.a11y-focus-ring *:focus, body.a11y-focus-ring *:focus-visible {
    outline: 3px solid #F5C300 !important; outline-offset: 2px !important;
    box-shadow: 0 0 0 6px #09517C !important;
  }

  body.a11y-large-targets button, body.a11y-large-targets .btn, body.a11y-large-targets .menu-item,
  body.a11y-large-targets select, body.a11y-large-targets .tab,
  body.a11y-large-targets input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    min-height: 44px;
  }
  body.a11y-large-targets input[type="checkbox"], body.a11y-large-targets input[type="radio"] {
    width: 1.35rem; height: 1.35rem;
  }

  /* ── Leavers: tawk.to removals (Js_Offboarding) ───────────────────── */
  .relay-banner-action {
    margin-left: 0.5rem; padding: 0.2rem 0.7rem; border-radius: 4px; cursor: pointer;
    border: 2px solid currentColor; background: transparent; color: inherit; font-weight: 700;
  }
  .relay-banner-action:hover, .relay-banner-action:focus-visible { background: rgba(255, 255, 255, 0.18); }
  .tawk-removal {
    display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.65rem 0.75rem; border: 1px solid var(--color-border); border-radius: 6px; margin-bottom: 0.5rem;
  }
  .tawk-removal.is-open { border-left: 4px solid var(--c-danger); }

  /* ── Wellbeing (Js_Wellbeing) ─────────────────────────────────────── */
  .wb-scale { border: none; padding: 0; margin: 0 0 1rem; }
  .wb-scale legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
  .wb-scale-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
  .wb-scale-opt {
    display: flex; flex-direction: column; align-items: center; gap: 0.1rem; cursor: pointer;
    padding: 0.4rem 0.6rem; border: 2px solid var(--color-border); border-radius: 8px; min-width: 3.2rem;
  }
  .wb-scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .wb-scale-opt span { font-size: 1.5rem; line-height: 1.2; }
  .wb-scale-opt small { color: var(--color-text-secondary); }
  .wb-scale-opt:has(input:checked) { border-color: var(--color-primary); background: var(--color-blue-pale); }
  .wb-scale-opt:has(input:focus-visible) { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
  .wb-scale-ends { display: flex; justify-content: space-between; max-width: 20rem; font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 0.2rem; }
  .wb-entry { border: 1px solid var(--color-border); border-left: 4px solid var(--c-link); border-radius: 6px; padding: 0.65rem 0.8rem; margin: 0.6rem 0 1rem; }
  .wb-entry.is-flagged { border-left-color: var(--c-warning); }
  .wb-entry p { margin: 0.35rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
  .wb-entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }

  /* ── Record views (Js_Forms, Js_Oversight) ────────────────────────── */
  .record-views { margin-top: 1.5rem; border-top: 1px solid var(--color-border); padding-top: 1rem; }
  .record-views h4 { margin: 0 0 0.5rem; }
  .record-view-flag { color: var(--c-danger); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
  .view-flag { border: 1px solid var(--color-border); border-radius: 6px; padding: 0.7rem 0.85rem; margin-bottom: 0.6rem; }
  .view-flag.is-open { border-left: 4px solid var(--c-danger); }
  .view-flag-head { margin-bottom: 0.2rem; }

  /* ── Loading: a bar and a pill at the top, never a sheet over the page ──
     See setBusy in Js_Spine. Overrides .loading-overlay in Styles. */
  #loadingOverlay.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 0;
    background: transparent !important; display: block; z-index: 9999;
    pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease;
  }
  #loadingOverlay.loading-overlay.show { opacity: 1; visibility: visible; }
  #loadingOverlay .loading-bar {
    position: absolute; top: 0; left: 0; height: 3px; width: 35%;
    background: var(--c-brand, #09517C); border-radius: 0 2px 2px 0;
    animation: relay-loading-bar 1.1s ease-in-out infinite;
  }
  /* No "Loading…" pill: the bar is enough, and the pill made every wait
     look like RELAY was slow. The words stay for screen readers (role=status). */
  #loadingOverlay .loading {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  @keyframes relay-loading-bar { 0% { left: -35%; } 100% { left: 100%; } }
  @media (prefers-reduced-motion: reduce) {
    #loadingOverlay .loading-bar { animation: none; width: 100%; opacity: .6; }
  }

  /* ── Management: the section menu down the side ────────────────────────
     See MANAGEMENT MENU in Js_Shell. Direct children only: sections have
     their own .tabs inside them. */
  @media (min-width: 900px) {
    #team-management.page.active {
      display: grid; grid-template-columns: 210px minmax(0, 1fr);
      column-gap: 1.5rem; align-items: start;
    }
    #team-management > .page-header { grid-column: 1 / -1; }
    #team-management > .mgmt-nav { grid-column: 1; grid-row: 2 / span 60; position: sticky; top: 1rem; }
    /* Banners, when there are any, take the first row; the header and the menu
       move down one so nothing is pushed to the bottom of the grid. */
    #team-management:has(> .relay-banner-host:not(:empty):not([style*="none"])) > .relay-banner-host { grid-row: 1; }
    #team-management:has(> .relay-banner-host:not(:empty):not([style*="none"])) > .page-header { grid-row: 2; }
    #team-management:has(> .relay-banner-host:not(:empty):not([style*="none"])) > .mgmt-nav { grid-row: 3 / span 60; }
    #team-management > .tab-content { grid-column: 2; min-width: 0; }
    #team-management > .mgmt-nav .mgmt-nav-current { display: none; }
  }
  #team-management > .tabs.mgmt-nav {
    display: block; padding: 0; margin: 0 0 1rem; border: 0; background: none;
    overflow: visible; grid-template-columns: none;
  }
  .mgmt-nav .mgmt-group { margin-bottom: .35rem; }
  .mgmt-nav .mgmt-group-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    background: none; border: 0; padding: .45rem .5rem; cursor: pointer;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--color-text-secondary, #5a6c7d);
  }
  .mgmt-nav .mgmt-group-toggle::after { content: '▾'; transition: transform .15s ease; }
  .mgmt-nav .mgmt-group.collapsed .mgmt-group-toggle::after { transform: rotate(-90deg); }
  .mgmt-nav .mgmt-group.collapsed .mgmt-group-items { display: none; }
  .mgmt-nav .mgmt-group-items { display: flex; flex-direction: column; gap: 2px; }
  #team-management > .mgmt-nav .tab {
    display: flex; align-items: center; justify-content: space-between; gap: .4rem;
    width: 100%; margin: 0; padding: .5rem .75rem; text-align: left;
    border: 0; border-left: 3px solid transparent; border-radius: 0 6px 6px 0;
    background: none; box-shadow: none; min-height: 0;
    font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: var(--color-text, #2c3e50);
  }
  #team-management > .mgmt-nav .tab:hover { background: var(--c-brand-bg, rgba(9,81,124,.07)); }
  #team-management > .mgmt-nav .tab.active {
    border-left-color: var(--c-brand, #09517C); background: var(--c-brand-bg, rgba(9,81,124,.10));
    color: var(--c-brand, #09517C); font-weight: 700;
  }
  .mgmt-nav .mgmt-nav-current {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: .6rem .85rem; border: 1px solid var(--color-border, #d9e1e7); border-radius: 8px;
    background: var(--color-surface, #fff); font-weight: 600; cursor: pointer; color: inherit;
  }
  @media (max-width: 899px) {
    .mgmt-nav .mgmt-nav-groups { display: none; margin-top: .5rem; }
    .mgmt-nav.open .mgmt-nav-groups { display: block; }
  }

  /* ── Less space lost to containers ──────────────────────────────────────
     A page used to be a card floating on a grey background (1.5rem margin,
     2rem padding, a shadow), with tinted, padded boxes inside it — three
     layers of border before any content. Pages now run edge to edge and the
     sections inside are lighter, so screens show more at once. */
  .page {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem 2rem 2.5rem;
    min-height: calc(100vh - 85px);
  }
  .volunteer-management-section {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-left-width: 3px;
  }
  .stat-card { padding: 1.25rem; }
  .profile-section { margin-top: 1.5rem; padding-top: 1.25rem; }
  .page-header { margin-bottom: 1.25rem; }
  @media (max-width: 768px) {
    .main-content { padding: 0; }
    .page { padding: 1rem 1rem 2rem; margin: 0; }
  }

  /* ── Guidance as a list; each section opens as a page ───────────────── */
  .guidance-list { display: flex; flex-direction: column; gap: .4rem; }
  .guidance-list-row {
    display: flex; align-items: center; gap: .75rem; padding: .35rem .5rem .35rem 0;
    border-bottom: 1px solid var(--color-border, #e3e8ec);
  }
  .guidance-list-open {
    flex: 1; min-width: 0; text-align: left; background: none; border: 0; cursor: pointer;
    padding: .55rem .5rem; border-radius: 6px; color: inherit;
  }
  .guidance-list-open:hover { background: var(--c-brand-bg, rgba(9,81,124,.07)); }
  .guidance-list-title { display: block; font-weight: 600; color: var(--c-brand, #09517C); }
  .guidance-list-meta { display: block; font-size: .8rem; color: var(--color-text-secondary, #5a6c7d); }
  /* A modal shown as a page (openModalHtmlAsPage): no box inside the page. */
  .relay-modal-page > * { padding-left: 0 !important; padding-right: 0 !important; background: none !important; }

  /* ── RELAY Docs ─────────────────────────────────────────────────────── */
  /* Spinners and "nothing here" messages sit in the middle of the space they
     stand in for. Many lists are grids of cards, and a message put in one
     became a single card-width cell on the left; this makes it span the row. */
  .loading, .empty-state { grid-column: 1 / -1; width: 100%; box-sizing: border-box; text-align: center; }
  .loading { flex-wrap: wrap; }

  /* A label wrapping a checkbox or radio is an option, not a field heading:
     ordinary case and weight, not the capitals headings get. */
  #team-management-appointment-settings label:has(> input[type=checkbox]),
  #team-management-notify label:has(> input[type=radio]),
  #team-management-notify label:has(> input[type=checkbox]) {
    text-transform: none; letter-spacing: normal; font-weight: 400; color: inherit; font-size: .95rem;
  }

  /* A training module, guidance section or broadcast on a page of its own (relayOpenReader). */
  .relay-reader p { margin: 0 0 .85rem; }
  .relay-reader ul, .relay-reader ol { margin: 0 0 .85rem 1.25rem; }
  .relay-reader h2, .relay-reader h3 { margin: 1rem 0 .5rem; }

  /* RELAY Docs — the hub (Page_Docs, Js_Docs). */
  .menu-item-hint { display: block; font-size: .72rem; font-weight: 400; opacity: .7; margin-left: 1.9rem; margin-top: -.1rem; }
  body.relay-view .docs-desktop-only { display: none !important; }
  .docs-search-bar { max-width: 46rem; margin: 0 auto 1.25rem; }
  .docs-search-bar label { display: block; font-size: .85rem; margin-bottom: .35rem; }
  .docs-search-bar input { font-size: 1.05rem; padding: .7rem .9rem; }
  .docs-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; margin-bottom: 1.75rem; }
  .docs-hub-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border-radius: 10px;
    border: 1px solid var(--color-border, #dde3ea); background: var(--color-surface, #fff); }
  .docs-hub-card .btn { align-self: flex-start; margin-top: auto; }
  .docs-hub-card-icon { font-size: 1.6rem; line-height: 1; }
  .docs-hub-card-title { font-weight: 700; font-size: 1.02rem; }
  .docs-hub-card-text { font-size: .9rem; color: var(--color-text-secondary, #5a6c7d); }
  .docs-hub-count { display: inline-block; margin-left: .25rem; font-size: .75rem; font-weight: 600; color: var(--c-brand, #09517C); }
  .docs-hub-heading { font-size: 1rem; margin: 0 0 .5rem; }
  .docs-hub-links { margin: 0 0 1.5rem 1.2rem; padding: 0; line-height: 1.9; }
  .docs-hub-howto { max-width: 46rem; border: 1px solid var(--color-border, #dde3ea); border-radius: 10px; padding: .75rem 1rem;
    background: var(--color-surface, #fff); }
  .docs-hub-howto summary { cursor: pointer; font-weight: 700; }
  .docs-hub-howto ol { margin: .75rem 0 .25rem 1.2rem; padding: 0; line-height: 1.6; }
  .docs-hub-howto li { margin-bottom: .45rem; }
  .docs-hub-results { display: flex; flex-direction: column; gap: .5rem; max-width: 46rem; margin: 0 auto 1.5rem; }
  .docs-hub-result { display: flex; flex-direction: column; gap: .15rem; text-align: left; width: 100%; padding: .75rem 1rem;
    border-radius: 8px; border: 1px solid var(--color-border, #dde3ea); background: var(--color-surface, #fff);
    color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
  .docs-hub-result:hover, .docs-hub-result:focus-visible { border-color: var(--c-brand, #09517C); }
  .docs-hub-kind { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-brand, #09517C); }
  .docs-hub-result-title { font-weight: 700; }
  .docs-hub-result-sub { font-size: .86rem; color: var(--color-text-secondary, #5a6c7d); }
  #docsHubResults > p { max-width: 46rem; margin: 0 auto .5rem; }
  .relay-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .85rem; }
  .relay-doc-card {
    display: flex; flex-direction: column; gap: .3rem; text-align: left; cursor: pointer;
    padding: 1rem 1.1rem; border: 1px solid var(--color-border, #dfe6eb); border-radius: 10px;
    background: var(--color-surface, #fff); color: inherit; transition: border-color .15s, box-shadow .15s;
  }
  .relay-doc-card:hover { border-color: var(--c-brand, #09517C); box-shadow: 0 2px 10px rgba(9,81,124,.12); }
  .relay-doc-card-cat { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-brand, #09517C); }
  .relay-doc-card-title { font-weight: 700; font-size: 1.02rem; }
  .relay-doc-card-sum { font-size: .88rem; color: var(--color-text-secondary, #5a6c7d); }
  .relay-doc-card-meta { font-size: .78rem; color: var(--color-text-secondary, #5a6c7d); margin-top: auto; padding-top: .35rem; }
  .tbym-doc { max-width: 46rem; }
  .tbym-doc-brand { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: 1.5rem;
                    border-bottom: 2px solid var(--c-brand, #09517C); }
  .tbym-doc-brand img { width: 64px; height: 64px; object-fit: contain; flex: none; }
  .tbym-doc-org { font-weight: 800; letter-spacing: .08em; color: var(--c-brand, #09517C); line-height: 1.2; }
  .tbym-doc-tag { color: var(--color-text-secondary, #5a6c7d); font-size: .88rem; margin-top: .15rem; }
  .tbym-doc-title { font-size: 1.55rem; margin: 0 0 .5rem; text-transform: none; letter-spacing: 0; }
  .tbym-doc-summary { font-size: 1.05rem; color: var(--color-text-secondary, #5a6c7d); }
  .tbym-doc-body { line-height: 1.7; }
  .tbym-doc img { max-width: 100%; height: auto; border-radius: 6px; }

  /* ── Directory: profile cards and a profile page ───────────────────── */
  .directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }
  /* Directory → Roles */
  .role-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
  @media (max-width: 400px) { .role-guide-grid { grid-template-columns: 1fr; } }
  .role-guide-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, #dee2e6); border-radius: 10px; padding: 1rem 1.1rem; }
  .role-guide-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
  .role-guide-summary { margin: 0 0 .6rem; color: var(--color-text-secondary, #555); }
  .role-guide-card details { margin: .35rem 0; }
  .role-guide-card summary { cursor: pointer; font-weight: 600; }
  .role-guide-card ul { margin: .35rem 0 .35rem 1.1rem; padding: 0; }
  .role-guide-card li { margin: .15rem 0; }
  .role-guide-when { margin-top: .6rem; padding: .55rem .7rem; border-radius: 8px; background: var(--c-info-bg, #eef6fb); }
  .role-guide-when p, .role-guide-when ul { margin: .25rem 0 0; }
  .role-guide-who { margin-top: .6rem; }
  .role-guide-who > div { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
  .role-guide-person { border: 1px solid var(--color-border, #dee2e6); background: transparent; color: inherit; border-radius: 999px;
    padding: .15rem .6rem; font-size: .82rem; cursor: pointer; }
  .role-guide-person:hover { border-color: var(--color-primary, #09517C); }
  .role-guide-edit { margin-top: .75rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
  .role-guide-edit small { color: var(--color-text-secondary, #555); }
  .role-guide-apply { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--color-border, #dee2e6); }
  .role-guide-apply small { display: block; color: var(--color-text-secondary, #555); margin-top: .3rem; }
  .role-guide-apply-note { margin: .75rem 0 0; font-size: .88rem; }
  .directory-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem;
    padding: 1.1rem .85rem 1rem; border: 1px solid var(--color-border, #dfe6eb); border-radius: 12px;
    background: var(--color-surface, #fff); cursor: pointer; color: inherit; transition: border-color .15s, box-shadow .15s;
  }
  .directory-card:hover { border-color: var(--c-brand, #09517C); box-shadow: 0 2px 10px rgba(9,81,124,.12); }
  .directory-card .avatar { margin-bottom: .35rem; }
  .directory-card-name { font-weight: 700; font-size: 1rem; }
  .directory-card-sub { font-size: .8rem; color: var(--color-text-secondary, #5a6c7d); }
  .directory-card-role { font-size: .85rem; color: var(--c-brand, #09517C); font-weight: 600; margin-top: .15rem; }
  .directory-card-ext { font-family: monospace; font-size: .85rem; background: var(--c-brand-bg, rgba(9,81,124,.08));
                        padding: .1rem .5rem; border-radius: 999px; margin-top: .25rem; }
  .directory-profile .dp-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
  .directory-profile .dp-name { font-size: 1.5rem; font-weight: 800; }
  .directory-profile .dp-sub { color: var(--color-text-secondary, #5a6c7d); }
  .directory-profile .dp-role { color: var(--c-brand, #09517C); font-weight: 600; margin-top: .25rem; }
  /* Two cards side by side where there is room, one above the other where
     there is not. About is its own block below them: spanning a grid row
     forced every auto-fit column to exist, which cut the page into narrow
     columns and squashed the cards into one each. */
  .directory-profile { max-width: 60rem; }
  .directory-profile .dp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
                                gap: 1rem; margin-bottom: 1rem; }
  .directory-profile .dp-card { border: 1px solid var(--color-border, #dfe6eb); border-radius: 10px; padding: 1rem 1.15rem;
                                min-width: 0; }
  .directory-profile .dp-wide { margin-bottom: 1rem; }
  .directory-profile .dp-card h3 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
                                   color: var(--color-text-secondary, #5a6c7d); }
  .directory-profile .dp-row { display: flex; gap: .75rem; padding: .3rem 0; align-items: baseline; }
  .directory-profile .dp-label { flex: 0 0 9.5rem; color: var(--color-text-secondary, #5a6c7d); }
  .directory-profile .dp-row > span:last-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .directory-profile .dp-note { display: block; font-size: .8rem; color: var(--color-text-secondary, #5a6c7d); }
  @media (max-width: 480px) {
    .directory-profile .dp-row { flex-direction: column; gap: .1rem; }
    .directory-profile .dp-label { flex: none; font-size: .85rem; }
  }
  .avatar.avatar-xl { width: 96px; height: 96px; font-size: 2rem; }
  /* ── Profile: a menu of its sections ──────────────────────────────── */
  .profile-menu { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; position: sticky; top: 0; z-index: 5;
                  background: var(--color-surface, #fff); padding: .5rem 0; }
  .profile-menu-chip { border: 1px solid var(--color-border, #dfe6eb); background: var(--color-surface, #fff);
                       border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; cursor: pointer; color: inherit; }
  .profile-menu-chip:hover { border-color: var(--c-brand, #09517C); color: var(--c-brand, #09517C); }
  .profile-section, .profile-photo-card { scroll-margin-top: 4rem; }

  /* ── Set up RELAY on your phone (Js_App) ───────────────────────────── */
  .relay-setup-gate { position: fixed; inset: 0; z-index: 10000; background: rgba(9, 30, 45, .55);
                      display: flex; align-items: center; justify-content: center; padding: 1rem; }
  .relay-setup-card { background: var(--color-surface, #fff); color: var(--color-text, #1f2d3a); border-radius: 14px;
                      max-width: 640px; width: 100%; padding: 1.75rem 2rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
  .relay-setup-card h2 { margin-top: 0; color: var(--c-brand, #09517C); text-transform: none; letter-spacing: 0; }
  .relay-setup-cols { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; margin: 1rem 0; }
  .relay-setup-qr { text-align: center; flex: none; }
  .relay-setup-qr #relaySetupQr { display: inline-block; padding: 8px; background: #fff; border-radius: 8px; }
  .relay-setup-steps { flex: 1; min-width: 220px; padding-left: 1.2rem; line-height: 1.6; }
  .relay-setup-steps li { margin-bottom: .6rem; } .relay-setup-steps li.done { color: var(--c-success, #2e7d32); }
  .relay-setup-wait { color: var(--color-text-secondary, #5a6c7d); }
  .relay-setup-note { background: var(--c-warning-bg, #fff8e1); padding: .5rem .75rem; border-radius: 6px; }
  .relay-setup-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }

  /* The TBYM logo is dark blue on transparent: in dark mode it sits on a white tile. */
  body.dark-mode .tbym-doc-brand img { background: #fff; border-radius: 10px; padding: 4px; }
  /* ── Change access (Management → Volunteers) ───────────────────────── */
  .change-access-choices { border: 0; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
  .change-access-choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .change-access-choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.75rem; cursor: pointer;
                          border: 1px solid var(--n-300); border-radius: var(--radius); background: var(--n-0); }
  .change-access-choice:has(input:checked) { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand) inset; }
  .change-access-choice.is-danger:has(input:checked) { border-color: var(--c-danger); box-shadow: 0 0 0 1px var(--c-danger) inset; }
  .change-access-choice input { margin-top: 0.2rem; flex: none; }
  .change-access-choice span { display: flex; flex-direction: column; gap: 0.15rem; }
  .change-access-choice small { color: var(--n-600); line-height: 1.4; }
  .change-access-refer { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }

  /* ── Orb: link buttons, quick questions, first week (Js_OrbAssist) ── */
  .orb-link-btn {
    display: inline-flex; align-items: center; gap: .3rem; margin: .35rem .35rem 0 0;
    padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--color-primary);
    background: var(--color-surface, #fff); color: var(--color-primary);
    font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
  }
  .orb-link-btn:hover, .orb-link-btn:focus-visible { background: var(--color-primary); color: #fff; }
  .orb-link-row { display: flex; flex-wrap: wrap; margin-top: .25rem; }
  .orb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .6rem; }
  .orb-chip {
    padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--color-blue-light);
    background: var(--color-surface, #fff); color: var(--color-text-primary);
    font: inherit; font-size: .78rem; cursor: pointer; touch-action: manipulation;
  }
  .orb-chip:hover, .orb-chip:focus-visible { border-color: var(--color-primary); color: var(--color-primary); }
  .orb-firstweek {
    border: 1px solid var(--color-blue-light); border-radius: 12px; padding: .75rem .9rem;
    background: var(--color-surface, #fff); margin-bottom: .75rem; font-size: .84rem;
  }
  .orb-firstweek-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
  .orb-firstweek-head span { color: var(--color-text-light); font-size: .78rem; }
  .orb-firstweek-bar { height: 6px; border-radius: 3px; background: var(--color-blue-pale); overflow: hidden; margin-bottom: .5rem; }
  .orb-firstweek-bar div { height: 100%; background: var(--color-primary); }
  .orb-firstweek ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
  .orb-firstweek li { padding: .15rem 0; display: flex; gap: .35rem; align-items: baseline; }
  .orb-firstweek li.done span:last-child { color: var(--color-text-light); text-decoration: line-through; }
  .orb-firstweek-link {
    border: 0; background: none; padding: 0; font: inherit; color: var(--color-primary);
    text-decoration: underline; cursor: pointer; text-align: left;
  }
  .orb-badge-dot {
    position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; z-index: 3;
    border-radius: 50%; background: var(--c-warning, #f5a623); border: 2px solid #fff; pointer-events: none;
  }

  /* ── Drafting with Orb ── */
  .orb-drafter { max-width: 860px; margin: 0 auto; }
  .orb-drafter-note { background: var(--color-blue-pale); padding: .6rem .8rem; border-radius: 6px; }
  .orb-drafter-thread { display: flex; flex-direction: column; gap: .6rem; margin: .5rem 0 1rem; }
  .orb-drafter-msg { max-width: 92%; padding: .6rem .85rem; border-radius: 12px; line-height: 1.55; overflow-wrap: anywhere; }
  .orb-drafter-msg.from-orb { align-self: flex-start; background: var(--color-blue-pale); border: 1px solid var(--color-blue-light); }
  .orb-drafter-msg.from-you { align-self: flex-end; background: var(--color-primary); color: #fff; }
  .orb-drafter-who { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .75; margin-bottom: .2rem; }
  .orb-drafter-text p { margin: 0 0 .45rem; }
  .orb-drafter-text p:last-child { margin-bottom: 0; }
  .orb-drafter-wait { opacity: .7; font-style: italic; }
  .orb-drafter-preview { border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem 1.15rem; margin-top: 1.25rem; background: var(--color-surface, #fff); }
  .orb-drafter-preview-head h3 { margin: .4rem 0 .2rem; }
  .orb-drafter-body { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: .75rem 0; margin: .75rem 0; }
  .orb-drafter-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
  /* Orb at the top of the drafter, and the warning that matters most */
  .orb-drafter-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 14px;
                      background: linear-gradient(135deg, var(--c-info-bg, #e8f3fb), var(--color-surface, #fff)); border: 1px solid var(--color-blue-light, #cfe3f1); }
  .orb-drafter-head strong { display: block; font-size: 1.1rem; }
  .orb-drafter-head #orbDraftMood { display: block; font-size: .9rem; color: var(--color-text-secondary); }
  .orb-drafter-face { display: inline-flex; flex: 0 0 auto; }
  .orb-drafter-private { margin: .6rem 0 1rem; border-left: 4px solid var(--c-warning, #b7791f); }
  .orb-drafter-private p { margin: 0; font-size: .95rem; }
  .orb-drafter-private strong { font-size: 1rem; }
  /* "Want a hand?" — Orb at the top of each RELAY Docs editor (orbHelperStripHtml) */
  .orb-helper-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding: .7rem 1rem;
                      border-radius: 12px; border: 1px solid var(--color-blue-light, #cfe3f1);
                      background: linear-gradient(135deg, var(--c-info-bg, #e8f3fb), var(--color-surface, #fff)); }
  .orb-helper-face { display: inline-flex; flex: 0 0 auto; }
  .orb-helper-words { flex: 1 1 16rem; margin: 0; line-height: 1.45; }
  .orb-helper-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
  /* A tiny Orb on a button or tab, where an emoji used to be */
  .orb-mini { display: inline-flex; vertical-align: -5px; margin-right: .3rem; }
  .orb-canon-result { border-left: 4px solid var(--color-primary); padding: .5rem .9rem; margin-top: .75rem; background: var(--color-blue-pale); border-radius: 0 8px 8px 0; }
  .orb-canon-issues { margin: .5rem 0 .75rem 1.1rem; }
  .orb-canon-issues li { margin-bottom: .45rem; }
  .orb-canon-panel { padding: 1rem 1.15rem; }
  .orb-canon-gap { padding: .85rem 1rem; margin-top: .75rem; }
  /* ── What Orb learned ── */
  .orb-learned { margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
  .orb-learned-item { font-size: .78rem; line-height: 1.45; padding: .35rem .55rem; border-radius: 8px;
    background: var(--color-surface, #fff); border: 1px dashed var(--color-blue-light); color: var(--color-text-primary); }
  .orb-learned-forget { border: 0; background: none; color: var(--color-primary); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 .2rem; }
  .orb-learning-row { padding: .75rem 1rem; margin-top: .6rem; }
  .orb-learning-fact { margin-top: .4rem; font-size: .9rem; }
  .orb-heading { display: block; margin: .35rem 0 .1rem; }
  /* ── Group Sessions (Page_GroupSessions, Js_GroupSessions) ───────────────
     Room to breathe, like the rest of RELAY: panels with real padding,
     RELAY's .btn-small for actions, and quiet text buttons for the
     secondary ones so cards don't fill up with full-size buttons. */
  #group-sessions .tab-content { padding-top: var(--spacing-lg, 1.5rem); }
  /* Six tabs: three to a row on a computer, all six on a wide screen. */
  @media (min-width: 900px) { #group-sessions .tabs { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1280px) { #group-sessions .tabs { grid-template-columns: repeat(6, 1fr); } }
  /* How it works */
  .grp-guide { max-width: 860px; }
  .grp-guide-toc { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1.5rem; font-size: .92rem; }
  .grp-guide ol, .grp-guide ul { margin: .25rem 0 .75rem; padding-left: 1.3rem; line-height: 1.6; }
  .grp-guide li { margin: .35rem 0; }
  .grp-guide-dl { margin: .5rem 0 .75rem; }
  .grp-guide-dl dt { font-weight: 700; margin-top: .65rem; }
  .grp-guide-dl dd { margin: .15rem 0 0; color: var(--color-text-secondary); line-height: 1.6; }
  .grp-checklist { list-style: none; padding-left: 0 !important; }
  .grp-checklist li { padding-left: 1.6rem; position: relative; }
  .grp-checklist li::before { content: '☐'; position: absolute; left: 0; color: var(--color-primary); }
  .grp-guide section { scroll-margin-top: 80px; }
  /* Management → Group Sessions → Reports */
  .grp-report-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  .grp-report-head .form-control { width: auto; margin: 0; }
  .grp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
  .grp-stat { border: 1px solid var(--color-border); border-radius: 8px; padding: .7rem .85rem; }
  .grp-stat-n { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
  .grp-stat-l { font-size: .82rem; color: var(--color-text-secondary); }
  .grp-stat-warn .grp-stat-n, .grp-report-table td.grp-warn { color: var(--color-danger, #c0392b); font-weight: 700; }
  .grp-table-wrap { overflow-x: auto; margin-bottom: .75rem; }
  .grp-report-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  .grp-report-table th, .grp-report-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--color-border); text-align: right; white-space: nowrap; }
  .grp-report-table th:first-child, .grp-report-table td:first-child { text-align: left; white-space: normal; min-width: 12rem; }
  .grp-report-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-secondary); }
  .grp-orb-advice { margin-top: .75rem; line-height: 1.6; }
  .grp-member-who > .grp-status { justify-self: start; }
  .grp-facts dt { white-space: nowrap; }
  .grp-intro { color: var(--color-text-secondary); margin: 0 0 var(--spacing-lg, 1.5rem); }
  .grp-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px;
               padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(11,12,12,.05); }
  .grp-form { max-width: 780px; }
  .grp-panel-title { margin: 0 0 .5rem; font-size: 1.15rem; }
  .grp-panel .form-group { margin-bottom: 1.15rem; }
  .grp-panel p.u-text-sm { margin: 0 0 1.25rem; line-height: 1.6; }
  .grp-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }
  .grp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
                 margin-bottom: 1.75rem; padding: 1rem 1.25rem; background: var(--color-surface);
                 border: 1px solid var(--color-border); border-radius: 10px; }
  .grp-toolbar-filters, .grp-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .grp-toolbar-filters .form-control { width: auto; min-width: 12rem; margin: 0; }
  .grp-toolbar-filters input[type=search] { min-width: 16rem; }
  .grp-inline-check { display: inline-flex; align-items: center; gap: .4rem; font-weight: normal; margin: 0; white-space: nowrap; }
  .grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
  .grp-card { display: flex; flex-direction: column; gap: .75rem; background: var(--color-surface); border: 1px solid var(--color-border);
              border-top: 4px solid var(--color-primary); border-radius: 10px; padding: 1.35rem 1.5rem 1.25rem;
              box-shadow: 0 1px 3px rgba(11,12,12,.05); transition: box-shadow var(--transition), transform var(--transition); }
  .grp-card:hover { box-shadow: 0 6px 18px rgba(11,12,12,.08); transform: translateY(-1px); }
  .grp-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
  .grp-card-muted { opacity: .7; }
  .grp-card-top { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
  .grp-desc { margin: 0; color: var(--color-text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3;
              -webkit-box-orient: vertical; overflow: hidden; }
  .grp-facts { display: grid; gap: .5rem; margin: .25rem 0 0; padding: .85rem 0 0; border-top: 1px solid var(--color-border); }
  .grp-facts div { display: flex; justify-content: space-between; gap: 1rem; }
  .grp-facts dt { color: var(--color-text-secondary); font-size: .88rem; }
  .grp-facts dd { margin: 0; text-align: right; font-size: .92rem; font-weight: 600; }
  .grp-facts-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 2rem; }
  .grp-facts-row div { flex-direction: column; justify-content: flex-start; gap: .15rem; }
  .grp-facts-row dd { text-align: left; }
  .grp-card-actions { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: .5rem; }
  .grp-actions-bar { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
  .grp-textbtn { border: 0; background: none; padding: .35rem 0; font: inherit; font-size: .9rem; font-weight: 600;
                 color: var(--color-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .grp-textbtn:hover { text-decoration-thickness: 2px; }
  .grp-textbtn:focus-visible { outline: 3px solid #F6B93B; outline-offset: 2px; border-radius: 2px; }
  .grp-textbtn-danger { color: var(--color-error, #c0392b); }
  .grp-kind { font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: #E8F4F8; color: #09517C; }
  .grp-kind-social { background: #FFF3D6; color: #8a5a00; }
  .grp-status { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: rgba(127,140,141,.16); color: var(--color-text-secondary); }
  .grp-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
  .grp-tag { font-size: .78rem; padding: .15rem .55rem; border-radius: 4px; border: 1px solid var(--color-border); color: var(--color-text-secondary); }
  .grp-about-text { white-space: pre-line; line-height: 1.65; margin: .85rem 0; max-width: 70ch; }
  .grp-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 2rem; align-items: start; }
  @media (max-width: 960px) { .grp-columns { grid-template-columns: 1fr; } }
  .grp-section { margin-bottom: 2rem; }
  .grp-section-title { font-size: 1.05rem; margin: 0 0 .85rem; display: flex; align-items: center; gap: .5rem; }
  .grp-count { font-size: .8rem; font-weight: 700; background: var(--color-primary); color: #fff; border-radius: 999px; padding: .05rem .55rem; }
  .grp-session { display: flex; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center;
                 border: 1px solid var(--color-border); border-left: 4px solid #F6B93B; border-radius: 10px; padding: 1rem 1.25rem;
                 margin-bottom: .75rem; background: var(--color-surface); }
  .grp-session-main { display: grid; gap: .2rem; }
  .grp-session-when { font-weight: 700; }
  .grp-session-group { font-weight: 600; color: var(--color-primary); }
  .grp-session-where { font-size: .9rem; color: var(--color-text-secondary); }
  .grp-session-cancelled { border-left-color: #c0392b; opacity: .7; }
  .grp-session-actions { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; }
  .grp-members { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.25rem 1.4rem; }
  .grp-member { display: grid; gap: .4rem; padding: .9rem 0; border-top: 1px solid var(--color-border); }
  .grp-member:first-of-type { border-top: 0; padding-top: .25rem; }
  .grp-member-who { display: grid; gap: .15rem; }
  .grp-member-actions { display: flex; gap: 0 1rem; flex-wrap: wrap; }
  .grp-message { padding: .85rem 0; border-top: 1px solid var(--color-border); display: grid; gap: .2rem; }
  .grp-message:first-of-type { border-top: 0; padding-top: 0; }
  .grp-message-body { white-space: pre-line; font-size: .92rem; margin-top: .25rem; }
  .grp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem 1.25rem; padding: .25rem 0; }
  .grp-check { font-weight: normal; display: flex; gap: .5rem; align-items: center; margin: 0; }
  .grp-empty { text-align: center; padding: 3rem 1rem; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: 10px; }
  .grp-empty p { margin: .25rem 0; }
  .grp-empty-icon { font-size: 2rem; margin-bottom: .5rem; }
  .grp-games-note { margin-bottom: 1.5rem; }
  .grp-bricks { text-align: center; max-width: 560px; margin: 2rem auto; padding: 2rem 1.25rem; position: relative; }
  .grp-bricks h3 { font-size: 1.5rem; margin: 1rem 0 .5rem; color: var(--color-primary); }
  .grp-bricks-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 280px; margin: 0 auto; }
  .grp-bricks-wall span { grid-column: span 2; height: 26px; border-radius: 3px; background: #c0623c;
                          box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); animation: grpBrick .5s ease both; }
  .grp-bricks-wall span:nth-child(5) { grid-column: 2 / span 2; }
  .grp-bricks-wall span:nth-child(n+8) { animation-delay: .9s; }
  .grp-bricks-wall span:nth-child(n+5):nth-child(-n+7) { animation-delay: .45s; }
  .grp-bricks-wall .grp-bricks-gap { background: transparent; box-shadow: inset 0 0 0 2px rgba(192,98,60,.35); animation: grpPulse 1.6s ease-in-out infinite; }
  .grp-bricks-wall span:nth-child(8) { grid-column: 1 / span 2; }
  .grp-bricks-bee { font-size: 2.2rem; display: inline-block; margin-top: .5rem; animation: grpBuzz 3.5s ease-in-out infinite; }
  @keyframes grpBrick { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  @keyframes grpPulse { 50% { opacity: .35; } }
  @keyframes grpBuzz { 0%, 100% { transform: translate(-40px, 0) rotate(-8deg); } 50% { transform: translate(40px, -10px) rotate(8deg); } }
  @media (prefers-reduced-motion: reduce) { .grp-bricks-wall span, .grp-bricks-bee { animation: none; } }
  body.dark-mode .grp-kind { background: #16303f; color: #c5e0ed; }
  body.dark-mode .grp-kind-social { background: #3a2f12; color: #f6d38b; }
  /* ── The service is closed (Appointments, Management → Service Settings) ── */
  .svc-closed { background: #FFF8E6; border: 1px solid #f0c36a; border-left: 6px solid #e0a100; border-radius: 10px;
                padding: 1.5rem 1.75rem; margin: 0 0 1.75rem; }
  .svc-closed-head { display: flex; gap: 1rem; align-items: flex-start; }
  .svc-closed-head h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
  .svc-closed-head p { margin: 0; line-height: 1.6; }
  .svc-closed-icon { font-size: 2rem; line-height: 1; }
  .svc-closed-label { font-weight: 700; margin: 1.25rem 0 .5rem; }
  .svc-closed-script { margin: 0; padding: 1rem 1.25rem; background: var(--color-surface); border-radius: 8px; border: 1px solid #f0c36a;
                       font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
  .svc-closed-actions { margin: .85rem 0 0; }
  .svc-closed-send { margin-top: 1.25rem; }
  .svc-closed-send label { font-weight: 600; display: block; margin-bottom: .4rem; }
  .svc-closed-send-row { display: flex; flex-wrap: wrap; gap: .6rem; }
  .svc-closed-send-row .form-control { flex: 1 1 14rem; margin: 0; }
  .svc-state-card { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 6px solid var(--color-success, #00b894);
                    border-radius: 10px; padding: 1.5rem 1.75rem; }
  .svc-state-card.svc-state-closed { border-left-color: #e0a100; background: #FFFBF0; }
  .svc-state-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
  .svc-state-head h3 { margin: 0; }
  .svc-state-pill { font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
  .svc-state-pill.is-open { background: rgba(0,184,148,.14); color: #00785f; }
  .svc-state-pill.is-closed { background: #FFE8B3; color: #7a5200; }
  .svc-state-lead { color: var(--color-text-secondary); line-height: 1.6; margin: 0 0 1.25rem; }
  body.dark-mode .svc-closed, body.dark-mode .svc-state-card.svc-state-closed { background: #2b2618; border-color: #6b5520; }
  body.dark-mode .svc-closed-script { border-color: #6b5520; }
  /* Bee Games (Js_BeeGames) follows RELAY's dark mode. */
  body.dark-mode .bg-wrap { --bg-card: #21262b; --bg-text: #e6e6e6; --bg-muted: #b0b0b0; --bg-line: #3a4148; --bg-pale: #2b2618; }

  /* Reports → Attendance */
  .att-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
  .att-tile { border: 1px solid var(--color-border); border-radius: var(--radius); padding: .85rem 1rem; background: var(--color-surface); }
  .att-tile-value { font-size: 1.5rem; font-weight: 700; color: var(--color-text); }
  .att-tile-label { font-weight: 600; font-size: .9rem; color: var(--color-text); }
  .att-tile-note { font-size: .78rem; color: var(--color-text-secondary); margin-top: .2rem; }
  .att-h { margin: 1.25rem 0 .5rem; }
  .att-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
  .att-grid th, .att-grid td { text-align: center; }
  .att-cell { font-weight: 600; color: var(--color-text); }
  .att-cell .att-n { display: block; font-size: .7rem; font-weight: 400; color: var(--color-text-secondary); }
  .att-empty { color: var(--color-text-secondary); font-weight: 400; }
  .att-s0 { background: var(--color-surface); }
  .att-s1 { background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); }
  .att-s2 { background: color-mix(in srgb, var(--color-primary) 24%, var(--color-surface)); }
  .att-s3 { background: color-mix(in srgb, var(--color-primary) 40%, var(--color-surface)); }
  .att-s4 { background: color-mix(in srgb, var(--color-primary) 58%, var(--color-surface)); }
  .att-s4, .att-s4 .att-n { color: #fff; }

  /* Debrief after an appointment */
  .debrief-choices { display: flex; flex-direction: column; gap: .5rem; }
  .debrief-choices .btn { text-align: left; justify-content: flex-start; }

  /* Keyboard shortcuts list */
  .shortcut-table { width: 100%; border-collapse: collapse; }
  .shortcut-table td { padding: .35rem .25rem; border-bottom: 1px solid var(--color-border); }
  .shortcut-table td:first-child { white-space: nowrap; width: 6rem; }
  kbd { display: inline-block; min-width: 1.4em; padding: .1em .4em; border: 1px solid var(--color-border);
        border-bottom-width: 2px; border-radius: 4px; font: 600 .85em/1.4 ui-monospace, monospace; text-align: center;
        background: var(--color-surface); color: var(--color-text); }

  /* Management → DBS */
  .dbs-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
  .dbs-chip { border: 1px solid var(--color-border); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; background: var(--color-surface); }
  .dbs-chip.is-warn { border-color: var(--c-warning); background: var(--c-warning-bg); }
  .dbs-chip.is-info { border-color: var(--color-primary); background: var(--c-info-bg); }
  tr.dbs-missing td { background: var(--c-warning-bg); }

  /* Time Tracking → My hours */
  .time-milestone { border: 1px solid var(--color-border); border-radius: var(--radius); padding: .75rem 1rem; background: var(--color-surface); }
  .time-bar { height: 8px; border-radius: 999px; background: var(--n-100, #eef1f4); margin-top: .5rem; overflow: hidden; }
  .time-bar span { display: block; height: 100%; border-radius: 999px; background: var(--color-primary); }
  .time-source { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px;
                 background: var(--c-info-bg); color: var(--color-text); border: 1px solid var(--color-border); }

  /* Task notes */
  .task-notes { border-top: 1px solid var(--color-border); padding-top: .5rem; }
  .task-notes summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
  .task-notes-list { display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0; }
  .task-note { background: var(--n-50, #f7f9fb); border: 1px solid var(--color-border); border-radius: 6px; padding: .4rem .6rem;
               font-size: .9rem; white-space: pre-wrap; }
  .task-note-meta { display: block; font-size: .75rem; color: var(--color-text-secondary); }
  .task-note-add { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }

  /* Bee Games → HIVE card */
  .hive-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
               border: 2px solid #F6B93B; border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 1rem;
               background: linear-gradient(135deg, color-mix(in srgb, #F6B93B 18%, var(--color-surface)), var(--color-surface)); }
  .hive-card-text { display: flex; flex-direction: column; gap: .25rem; max-width: 640px; }
  .hive-card-text strong { font-size: 1.1rem; }
  .hive-new { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px;
              border-radius: 999px; background: #09517C; color: #fff; vertical-align: 2px; }
  /* ── Learn RELAY with Orb (Js_OrbCourse) ─────────────────────────────── */
  /* Orb in the course: the character (Js_OrbFace, StylesOrb) in a box of its own.
     .oc-speaking is on while Orb is saying a line: StylesOrb pulses the core,
     and here the eyes bob with the words and a ring goes out like a voice. */
  .oc-orb { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
            width: var(--oc-s, 64px); height: var(--oc-s, 64px); }
  .oc-orb::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(42, 168, 224, .6);
                   opacity: 0; pointer-events: none; }
  .oc-orb.oc-speaking::after { animation: ocOrbVoice 1.3s ease-out infinite; }
  .oc-orb.oc-speaking .orbx .orbx-face { animation: ocOrbTalk .38s ease-in-out infinite alternate; }
  .oc-orb.oc-speaking .orbx { filter: drop-shadow(0 0 calc(var(--s) * .12) rgba(62, 224, 197, .45)); }
  @keyframes ocOrbTalk { from { translate: 0 0; } to { translate: 0 calc(var(--s) * -.045); } }
  @keyframes ocOrbVoice { 0% { transform: scale(.94); opacity: .75; } 100% { transform: scale(1.3); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .oc-orb::after, .oc-orb.oc-speaking .orbx .orbx-face { animation: none !important; } }
  body.a11y-reduce-motion .oc-orb::after, body.a11y-reduce-motion .oc-orb.oc-speaking .orbx .orbx-face { animation: none; }
  .oc-orb-hero { cursor: default; margin-top: .25rem; }
  .oc-orb-card { margin: 0 auto 1rem; display: flex; }
  .oc-orb-inline { vertical-align: -6px; margin-right: .15rem; }
  .oc-orb-inline::after { display: none; }
  .oc-voice-intro { display: flex; gap: .75rem; align-items: flex-start; }
  .oc-hero { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; border-radius: 12px;
             background: linear-gradient(135deg, var(--c-info-bg), var(--color-surface, var(--n-0)));
             border: 1px solid var(--n-200); margin-bottom: 1.5rem; }
  .oc-hero-text { flex: 1; min-width: 0; }
  .oc-hero-title { margin: 0 0 .4rem; }
  .oc-hero-lead { margin: 0 0 1rem; max-width: 62ch; }
  .oc-meter { height: 10px; border-radius: 999px; background: var(--n-200); overflow: hidden; max-width: 420px; }
  .oc-meter span { display: block; height: 100%; background: var(--c-success); border-radius: 999px; }
  .oc-meter-text { font-size: .85rem; color: var(--color-text-secondary); margin: .4rem 0 1rem; }
  .oc-cta { font-size: 1rem; padding: .75rem 1.5rem; text-align: left; }
  .oc-cta-sub { display: block; font-size: .75rem; font-weight: 400; opacity: .85; text-transform: none; letter-spacing: 0; }
  .oc-section-title { margin: 0 0 .75rem; }
  .oc-track-lead { margin: -.4rem 0 .9rem; color: var(--color-text-secondary); max-width: 760px; }
  .oc-chapters { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
  .oc-chapter { display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--n-200);
                border-radius: 10px; background: var(--color-surface, var(--n-0)); }
  .oc-chapter-done { border-color: var(--c-success); }
  .oc-chapter-started { border-color: var(--c-brand-strong); box-shadow: 0 0 0 2px var(--c-info-bg); }
  .oc-chapter-num { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
                    background: var(--n-100); color: var(--color-text-primary); }
  .oc-chapter-done .oc-chapter-num { background: var(--c-success); color: #fff; }
  .oc-chapter-started .oc-chapter-num { background: var(--c-brand-strong); color: #fff; }
  .oc-chapter-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
  .oc-chapter-sum { font-size: .875rem; color: var(--color-text-secondary); }
  .oc-chapter-meta { font-size: .75rem; color: var(--color-text-secondary); }
  .oc-chapter-actions { display: flex; flex-direction: column; gap: .35rem; }
  .oc-badge { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: .35rem; vertical-align: 1px; }
  .oc-badge-done { background: var(--c-success-bg); color: var(--c-success); }
  .oc-badge-started { background: var(--c-info-bg); color: var(--c-brand-strong); }
  .oc-done-note { font-weight: 600; }
  .oc-settings { border: 1px solid var(--n-200); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .75rem; background: var(--color-surface, var(--n-0)); }
  .oc-settings > summary { cursor: pointer; font-weight: 600; }
  .oc-settings-grid { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: flex-end; margin-top: .75rem; }
  .oc-check { display: flex; gap: .45rem; align-items: center; font-weight: 400; margin: 0; }
  .oc-field { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; margin: 0; min-width: 12rem; }

  /* Support guides (Js_SupportGuides) */
  .sg-intro { margin-bottom: 1rem; }
  .sg-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
  .sg-chip { border: 1px solid var(--n-300); background: var(--color-surface, var(--n-0)); color: inherit; border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; cursor: pointer; margin: 0 .35rem .35rem 0; }
  .sg-chip.active { background: var(--c-brand-strong, #09517C); border-color: var(--c-brand-strong, #09517C); color: #fff; }
  .sg-card-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
  .sg-badge { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
  .sg-live { background: var(--c-success-bg); color: var(--c-success); }
  .sg-draft { background: var(--c-warning-bg, #fff4d6); color: var(--c-warning, #8a5a00); }
  .sg-review { background: var(--c-info-bg); color: var(--c-brand-strong); }
  .sg-use { font-size: .72rem; color: var(--n-700); }
  .sg-topics { margin-top: 1.5rem; }
  .sg-topics h4 { margin-bottom: .25rem; }
  .sg-notes { margin-top: 2rem; max-width: 760px; }
  .sg-note { border-left: 3px solid var(--n-200); padding: .25rem .75rem; margin-bottom: .75rem; }
  .sg-note p { margin: .2rem 0 0; white-space: pre-wrap; }
  .sg-shortcuts { margin-top: 1rem; }
  .sg-uses { display: flex; gap: 1rem; flex-wrap: wrap; }
  .sg-use-pick { display: flex; gap: .35rem; align-items: center; font-weight: 400; margin: 0; }
  .sg-shortcut-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: .5rem; margin-bottom: .4rem; }
  .sg-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--color-surface, var(--n-0));
    box-shadow: -8px 0 24px rgba(0,0,0,.18); z-index: 1900;   /* above Orb (1800), under modals (2100) */ display: flex; flex-direction: column; gap: .6rem; padding: 1rem;
    transform: translateX(105%); transition: transform .2s ease; }
  .sg-drawer.open { transform: none; }
  .sg-drawer-head { display: flex; justify-content: space-between; align-items: center; }
  #sgDrawerBody { overflow: auto; flex: 1; }
  .sg-drawer-item { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left;
    border: 1px solid var(--n-200); border-radius: 8px; padding: .6rem .75rem; margin-bottom: .5rem; background: none; color: inherit; cursor: pointer; }
  .sg-drawer-item:hover { border-color: var(--c-brand-strong, #09517C); }
  .sg-drawer-title { margin: .75rem 0 .25rem; }
  @media (prefers-reduced-motion: reduce) { .sg-drawer { transition: none; } }

  /* Features (Js_Features): switched off, and Management → Feature Usage */
  .rf-off { display: none !important; }
  .rf-controls { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin: 1rem 0; }
  .rf-controls label { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
  .rf-stats { margin-bottom: 1rem; }
  .rf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
  .rf-two h4 { margin-top: 0; }
  .rf-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
  .rf-list li .btn { margin-left: .35rem; padding: 1px 8px; }
  .rf-area { margin: 1.5rem 0 .5rem; }
  .rf-table td { vertical-align: top; }
  .rf-row-off { opacity: .6; }
  .rf-bar { width: 120px; height: 8px; border-radius: 4px; background: var(--n-100); overflow: hidden; margin: .3rem 0 .2rem; }
  .rf-bar span { display: block; height: 100%; background: var(--c-brand, #1f5f8b); border-radius: 4px; }
  .rf-badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
  .rf-well { background: var(--c-success-bg); color: var(--c-success); }
  .rf-some { background: var(--c-info-bg); color: var(--c-brand-strong); }
  .rf-rare { background: var(--c-warning-bg, #fff4d6); color: var(--c-warning, #8a5a00); }
  .rf-unused { background: var(--n-100); color: var(--n-700); }
  .rf-up { color: var(--c-success); font-weight: 600; }
  .rf-down { color: var(--c-danger, #b42318); font-weight: 600; }
  .rf-foot { margin-top: 1rem; max-width: 860px; }
  .rf-switch-area { display: grid; gap: .35rem; margin: .75rem 0; }
  .rf-switch { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0; }
  .rf-switch input { margin-top: .3rem; }

  /* Management → Orb's Course: the words editor */
  .oce-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin: 1rem 0; }
  .oce-top .oc-field { min-width: min(28rem, 100%); }
  .oce-help { font-size: .85rem; max-width: 34rem; }
  .oce-help summary { cursor: pointer; font-weight: 600; }
  .oce-card { border: 1px solid var(--n-200); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .9rem; background: var(--color-surface, var(--n-0)); display: grid; gap: .6rem; }
  .oce-card.oce-is-hidden { opacity: .65; border-style: dashed; }
  .oce-card-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .oce-edited, .oce-hidden { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--c-info-bg); color: var(--c-brand-strong); }
  .oce-hidden { background: var(--n-100); color: var(--n-700); }
  .oce-slide { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1rem; }
  .oce-pic img { width: 100%; border-radius: 6px; border: 1px solid var(--n-200); display: block; margin-bottom: .25rem; }
  .oce-nopic { border: 1px dashed var(--n-300); border-radius: 6px; padding: 1.25rem .5rem; text-align: center; font-size: .8rem; color: var(--n-600);
               display: flex; flex-direction: column; align-items: center; gap: .5rem; }
  .oce-words { display: grid; gap: .5rem; align-content: start; }
  .oce-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
  .oce-line-side { display: flex; flex-direction: column; gap: .3rem; }
  .oce-line-side label { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
  .oce-answer { display: flex; gap: .5rem; align-items: center; margin-top: .3rem; }
  .oce-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
  .oce-actions .oce-check { margin-right: auto; font-size: .85rem; display: flex; gap: .4rem; align-items: center; }
  .oce-orig { font-size: .85rem; color: var(--n-700); }
  .oce-orig summary { cursor: pointer; }
  @media (max-width: 720px) {
    .oce-slide, .oce-line { grid-template-columns: 1fr; }
    .oce-line-side { flex-direction: row; align-items: flex-end; }
  }

  /* The player */
  .oc-player { border: 1px solid var(--n-200); border-radius: 12px; background: var(--color-surface, var(--n-0));
               padding: 1rem; display: flex; flex-direction: column; gap: .75rem; outline: none; }
  .oc-player:fullscreen, .oc-player.oc-player-max { padding: 1.25rem 2rem; overflow: auto; background: var(--color-background, var(--n-0)); }
  .oc-player.oc-player-max { position: fixed; inset: 0; z-index: 2000; border-radius: 0; }
  .oc-player-head { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .oc-player-title { flex: 1; min-width: 12rem; text-align: center; }
  .oc-dots { display: flex; gap: 4px; }
  .oc-dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--n-200); }
  .oc-dots span.is-past { background: var(--c-success); }
  .oc-dots span.is-now { background: var(--c-brand-strong); }
  .oc-dots span.is-quiz { opacity: .75; }
  .oc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 1rem; align-items: start; }
  .oc-side { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: 1rem; }
  .oc-side .oc-caption-bar { flex-direction: column; align-items: center; }
  .oc-side .oc-caption { max-height: min(48vh, 460px); width: 100%; }
  .oc-keys { text-align: center; margin: 0; }
  .oc-stage { min-height: 12rem; min-width: 0; }
  @media (max-width: 1000px) {
    .oc-body { grid-template-columns: 1fr; }
    .oc-side { position: static; }
    .oc-side .oc-caption-bar { flex-direction: row; align-items: flex-start; }
    .oc-caption-bar .oc-orb { --oc-s: 56px !important; }
    .oc-caption-bar .oc-orb .orbx { --s: 56px !important; }
    .oc-side .oc-caption { max-height: 9.5rem; }
    .oc-keys { display: none; }
  }
  .oc-slide-title { margin: 0 0 .5rem; font-size: 1.05rem; }
  .oc-shot-scroll { max-height: min(70vh, 720px); overflow: auto; border-radius: 8px; border: 1px solid var(--n-200); background: var(--n-50); }
  .oc-player:fullscreen .oc-shot-scroll, .oc-player-max .oc-shot-scroll { max-height: 68vh; }
  .oc-shot { position: relative; width: 100%; }
  .oc-shot img { display: block; width: 100%; height: auto; user-select: none; }
  .oc-spot { position: absolute; border: 3px solid #f5c300; border-radius: 8px; pointer-events: none;
             box-shadow: 0 0 0 9999px rgba(10, 25, 40, .42), 0 0 18px 4px rgba(245, 195, 0, .75);
             transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease; animation: ocSpotPulse 1.6s ease-in-out infinite; }
  @keyframes ocSpotPulse { 0%, 100% { border-color: #f5c300; } 50% { border-color: #fff3b0; } }
  body.a11y-reduce-motion .oc-spot { animation: none; transition: none; }
  .oc-title-card { text-align: center; padding: 2.5rem 1rem; }
  .oc-title-card h4 { font-size: 1.5rem; margin: 0 0 .5rem; }
  .oc-title-card p { max-width: 54ch; margin: .5rem auto; }
  .oc-caption-bar { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 1rem; border-radius: 10px;
                    background: var(--n-50); border: 1px solid var(--n-200); }
  .oc-caption { flex: 1; max-height: 9.5rem; overflow: auto; font-size: 1.02rem; line-height: 1.5; }
  .oc-caption p { margin: 0 0 .35rem; color: var(--color-text-secondary); }
  .oc-caption p.is-now { color: var(--color-text-primary); font-weight: 600; }
  .oc-caption p.is-past { opacity: .75; }
  .oc-caption-off p { font-style: italic; }
  .oc-controls { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: .5rem; }
  .oc-controls .btn { min-width: 0; padding-left: .4rem; padding-right: .4rem; white-space: nowrap; }
  .oc-controls #ocSoundBtn { grid-column: span 1; }
  @media (max-width: 1000px) {
    .oc-controls { grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .oc-controls { grid-template-columns: 1fr 2fr 1fr; }
  }

  /* Questions */
  .oc-quiz { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem; }
  .oc-quiz-head { display: flex; align-items: center; gap: .75rem; }
  .oc-quiz-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-brand-strong); }
  .oc-quiz-q { font-size: 1.25rem; margin: .4rem 0 1rem; }
  .oc-quiz-options { display: grid; gap: .5rem; margin-bottom: 1rem; }
  .oc-quiz-option { display: flex; gap: .75rem; align-items: center; text-align: left; padding: .8rem 1rem; border-radius: 10px;
                    border: 2px solid var(--n-300); background: var(--color-surface, var(--n-0)); color: var(--color-text-primary);
                    font: inherit; cursor: pointer; }
  .oc-quiz-option:hover:not([disabled]) { border-color: var(--c-brand-strong); }
  .oc-quiz-option[disabled] { cursor: default; }
  .oc-quiz-option.is-right { border-color: var(--c-success); background: var(--c-success-bg); }
  .oc-quiz-option.is-wrong { border-color: var(--c-danger); background: var(--c-danger-bg); }
  .oc-quiz-letter { flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
                    background: var(--n-100); }
  .oc-quiz-why { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border-left: 4px solid; }
  .oc-quiz-why.is-right { background: var(--c-success-bg); border-color: var(--c-success); }
  .oc-quiz-why.is-wrong { background: var(--c-warning-bg); border-color: var(--c-warning); }

  @media (max-width: 640px) {
    .oc-hero { flex-direction: column; padding: 1rem; }
    .oc-chapter { flex-wrap: wrap; }
    .oc-chapter-actions { flex-direction: row; width: 100%; }
    .oc-caption-bar .oc-orb .orbx { --s: 48px !important; }
    .oc-caption-bar .oc-orb { --oc-s: 48px !important; }
    .oc-orb-hero .orbx { --s: 96px !important; }
    .oc-orb-hero { --oc-s: 96px !important; align-self: center; }
    .oc-player { padding: .6rem; }
  }
  /* ── Orb's welcome (Js_OrbCourse): full screen, once ─────────────────── */
  body.orb-welcome-open { overflow: hidden; }
  body.orb-welcome-open #orbContainer { visibility: hidden; }
  .orb-welcome { position: fixed; inset: 0; z-index: 10050; overflow: auto; color: #fff;
                 background: radial-gradient(circle at 50% 18%, #0f6a9e 0%, #09517C 38%, #042e52 75%, #021a30 100%); }
  .orb-welcome-inner { min-height: 100%; max-width: 1040px; margin: 0 auto; padding: 1.25rem 1.5rem 2rem;
                       display: flex; flex-direction: column; }
  .orb-welcome-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .orb-welcome-brand { font-weight: 800; letter-spacing: .3em; font-size: .9rem; opacity: .85; }
  .orb-welcome-dots { display: flex; gap: 6px; }
  .orb-welcome-dots span { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
  .orb-welcome-dots span.is-past { background: rgba(255,255,255,.6); }
  .orb-welcome-dots span.is-now { background: #f5c300; }
  .orb-welcome-sound, .orb-welcome-skip { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px;
                                          padding: .3rem .85rem; font: inherit; font-size: .85rem; cursor: pointer; margin-left: .4rem; }
  .orb-welcome-sound:hover, .orb-welcome-skip:hover { background: rgba(255,255,255,.12); }
  .orb-welcome-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
                      padding: 1.5rem 0; }
  .orb-welcome-sphere { width: 132px !important; height: 132px !important; margin-bottom: 1.25rem; }
  .orb-welcome-body h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin: 0 0 1rem; max-width: 22ch; line-height: 1.15; }
  .orb-welcome-content { max-width: 920px; width: 100%; font-size: 1.08rem; line-height: 1.6; }
  .orb-welcome-content p { margin: 0 auto .75rem; max-width: 58ch; color: rgba(255,255,255,.88); }
  .orb-welcome-lead { font-size: 1.25rem; color: #fff !important; }
  .orb-welcome-note { font-size: .95rem; opacity: .9; margin-top: 1rem; }
  .orb-welcome-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: left; }
  .orb-welcome-weeks section { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 1rem 1.1rem; }
  .orb-welcome-weeks h4 { color: #f5c300; margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
  .orb-welcome-weeks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
  .orb-welcome-weeks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
  .orb-welcome-weeks li strong { display: block; color: #fff; }
  .orb-welcome-weeks li small { display: block; color: rgba(255,255,255,.72); font-size: .82rem; margin-top: .1rem; }
  .orb-welcome-weeks li.is-done strong { text-decoration: line-through; opacity: .7; }
  .orb-welcome-tick { flex: 0 0 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
                      display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: .1rem; }
  .orb-welcome-weeks li.is-done .orb-welcome-tick { background: #2fbf71; border-color: #2fbf71; color: #fff; }
  .orb-welcome-find { display: flex; gap: 1.5rem; align-items: center; text-align: left; max-width: 760px; margin: 0 auto; }
  .orb-welcome-find p { margin-left: 0; }
  .orb-welcome-fab { flex: 0 0 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 900;
                     letter-spacing: .2em; color: #fff; animation: orbGlow 3s ease-in-out infinite;
                     background: radial-gradient(circle at 34% 27%, rgba(190,240,255,.95) 0%, rgba(90,195,255,.55) 14%, transparent 36%),
                                 radial-gradient(circle at 50% 50%, #2aa8e0 0%, #1769c0 26%, #09517C 52%, #042e52 76%, #010d1a 100%);
                     box-shadow: 0 0 0 3px #f5c300, 0 0 28px 8px rgba(245,195,0,.35); }
  .orb-welcome-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
  .orb-welcome-actions .btn { min-width: 9rem; }
  .orb-welcome-actions .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
  .orb-welcome-actions .btn-secondary:hover { background: rgba(255,255,255,.12); }
  .orb-welcome-actions .orb-welcome-go, .orb-welcome-actions .orb-welcome-next { background: #f5c300; border-color: #f5c300; color: #05233a; font-size: 1rem; padding: .8rem 1.6rem; }
  .orb-welcome-actions .orb-welcome-go:hover, .orb-welcome-actions .orb-welcome-next:hover { background: #ffd633; }
  body.a11y-reduce-motion .orb-welcome-fab { animation: none; }
  @media (max-width: 820px) {
    .orb-welcome-weeks { grid-template-columns: 1fr; }
    .orb-welcome-find { flex-direction: column; text-align: center; }
    .orb-welcome-sphere { width: 92px !important; height: 92px !important; }
    .orb-welcome-actions .btn { width: 100%; }
  }
  .oc-next-banner { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.25rem 0; }
  .oc-next-banner .oc-orb { margin-top: .15rem; }
  .orb-firstweek-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
  /* Management → Logs: rows open what was sent (Js_Logs). */
  .logs-table tr.logs-row-open { cursor: pointer; }
  .logs-table tr.logs-row-open:hover, .logs-table tr.logs-row-open:focus { background: var(--color-surface-alt, rgba(9,81,124,.06)); outline: none; }
  .logs-email-frame { width: 100%; min-height: 60vh; border: 1px solid var(--color-border, #ddd); border-radius: 8px; background: #fff; }
  .logs-push-preview { max-width: 420px; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--color-border, #ddd);
                       background: var(--color-surface, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  /* Teams (Js_Teams): Directory → Teams and Management → Teams. */
  .team-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  #teamsMgmtList.team-grid { grid-template-columns: 1fr; }
  .team-card { border: 1px solid var(--color-border, #ddd); border-radius: 10px; padding: 1rem 1.25rem; background: var(--color-surface, #fff); min-width: 0; }
  .team-card.is-mine { border-color: var(--c-brand, #09517C); box-shadow: 0 0 0 2px rgba(9,81,124,.15); }
  .team-card.is-archived { opacity: .7; }
  .team-card.is-none { border-style: dashed; }
  .team-card header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
  .team-card header h3 { margin: 0; font-size: 1.05rem; }
  .team-card-title { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
  .team-card-actions { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
  .team-link-btn { background: none; border: 0; padding: .2rem 0; color: var(--c-link, #1d70b8); font: inherit; font-size: .9rem;
                   font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: normal; }
  .team-link-btn:hover { text-decoration: underline; }
  .team-pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px;
               background: rgba(9,81,124,.1); color: var(--c-brand, #09517C); vertical-align: middle; }
  .team-rows { list-style: none; margin: 0; padding: 0; }
  .team-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto 12rem; gap: .25rem 1rem; align-items: center;
              padding: .55rem 0; border-top: 1px solid var(--color-border, #eee); }
  .team-row-who { min-width: 0; overflow-wrap: anywhere; }
  .team-row-who small, .team-member-link small { display: block; color: var(--color-text-secondary); font-size: .78rem; }
  .team-row-role { font-size: .9rem; color: var(--color-text-secondary); }
  .team-row-status { font-size: .85rem; }
  .team-row-status.is-off { color: var(--c-danger, #d4351c); }
  .team-row-menu { font-size: .85rem; padding: .3rem .5rem; height: auto; }
  .team-none-role { margin: .9rem 0 .2rem; font-size: .9rem; }
  .team-none-role:first-of-type { margin-top: .2rem; }
  .team-none-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .team-none-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem 0;
                       border-top: 1px solid var(--color-border, #eee); min-width: 0; }
  .team-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
  .team-members li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .team-member-link { display: flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .2rem; cursor: pointer;
                      text-align: left; color: inherit; font: inherit; border-radius: 6px; }
  .team-member-link:hover { background: rgba(9,81,124,.06); }
  .team-add-list { max-height: 45vh; overflow-y: auto; border: 1px solid var(--color-border, #ddd); border-radius: 8px; padding: .5rem; }
  .team-add-list label { display: block; padding: .25rem 0; }
  @media (max-width: 760px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-row { grid-template-columns: minmax(0, 1fr) auto; }
    .team-row-role { grid-column: 1; }
    .team-row-menu { grid-column: 1 / -1; }
  }
  /* Tasks: giving a task to several people (Js_Tasks). */
  .task-people-picker { border: 1px solid var(--color-border, #ddd); border-radius: 8px; padding: .5rem; margin-top: .25rem; }
  .task-people-list { max-height: 200px; overflow-y: auto; margin-top: .4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .1rem .75rem; }
  .task-people-list label { display: block; padding: .15rem 0; font-size: .9rem; }
  .task-people-chosen { margin-top: .4rem; color: var(--color-text-secondary); }
  /* Management → Support Guides (Js_SupportGuides). */
  .sg-admin-progress { margin-bottom: .75rem; }
  .sg-admin-bar { height: 8px; border-radius: 999px; background: var(--n-200, #e5e7eb); overflow: hidden; margin-top: .35rem; }
  .sg-admin-bar span { display: block; height: 100%; background: var(--c-success, #00703c); }
  .sg-admin-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
  /* Attachments on records (Js_Attachments). */
  .relay-attachments { margin: 1.25rem 0; padding: .85rem 1rem; border: 1px solid var(--color-border, #ddd); border-radius: 8px; background: var(--color-surface, #fff); }
  .relay-attachments-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
  .relay-attachments-head h4 { margin: 0; font-size: .95rem; }
  .relay-attachments-add { margin: 0; cursor: pointer; }
  .relay-attachments-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
  .relay-attachments-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; align-items: center; }
  .relay-attachments-list li small { grid-column: 1; }
  .relay-attachments-list li .relay-attachment-remove { grid-column: 2; grid-row: 1 / span 2; }
  .relay-attachment-open { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--c-link, #1d70b8); font: inherit; }
  .relay-attachment-open:hover .relay-attachment-name { text-decoration: underline; }
  /* A volunteer's record (Js_VolunteerRecord). */
  .vol-rec-tabs button { white-space: nowrap; }
  .vr-perm-table td { vertical-align: middle; padding-top: .45rem; padding-bottom: .45rem; }
  .vr-perm-table td:nth-child(2) { white-space: nowrap; width: 6rem; }
  .vr-perm-table td:last-child { width: 13rem; }
  .vr-perm-table select.vr-perm { min-width: 150px; width: 100%; height: auto; padding: .3rem .5rem; font-size: .85rem; margin: 0; }
  .vr-history { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--n-200, #e5e7eb); }
  .vr-history li { position: relative; padding: .1rem 0 .9rem 1rem; }
  .vr-history li::before { content: ''; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand, #09517C); }
  .vr-history-when { display: block; font-size: .78rem; color: var(--color-text-secondary); }
  .vr-compose { max-width: 640px; }
  .vr-compose-channel { display: flex; gap: 1.25rem; margin-bottom: .75rem; }
  .vr-sent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
  .vr-sent li { border: 1px solid var(--color-border, #ddd); border-radius: 8px; padding: .6rem .8rem; }
  /* Profile as pages (Js_Directory), and its new sections (Js_Profile). */
  #profile .profile-page-hidden { display: none !important; }
  #profileMenu.tabs { border-bottom: 0; }
  #profileMenu .profile-menu-chip.active { background: var(--c-brand, #09517C); border-color: var(--c-brand, #09517C); color: #fff; }
  #profile .profile-section { margin-top: 0; border-top: 0; padding-top: 0; }
  .my-access-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .my-access-list li.is-yes span { color: var(--c-success, #00703c); font-weight: 700; }
  .my-access-list li.is-no { color: var(--color-text-secondary); }
  .my-access-list li.is-no span { color: var(--c-danger, #d4351c); font-weight: 700; }
  .profile-callsoff { margin: 0 0 1.25rem; padding: .85rem 1rem; border: 1px solid var(--color-border, #ddd); border-radius: 8px; }
  .profile-callsoff-toggle { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
  /* After a call (Js_AfterCall). */
  .after-call-actions { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
  .after-call-not summary { list-style: none; cursor: pointer; }
  .after-call-not summary::-webkit-details-marker { display: none; }
  .after-call-not-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
  /* Task details: formatting and checklists (Js_Tasks). */
  .task-detail { font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
  .task-detail p { margin: 0 0 .4rem; }
  .task-detail ul, .task-detail ol { margin: 0 0 .5rem; padding-left: 1.25rem; }
  .task-detail-heading { font-weight: 700; margin: .5rem 0 .25rem; }
  .task-detail ul.task-checklist { list-style: none; padding-left: 0; }
  .task-checklist li label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
  .task-checklist li input { margin-top: .3rem; flex: 0 0 auto; }
  .task-checklist li.is-done span { text-decoration: line-through; color: var(--color-text-secondary); }
  .task-check-progress { height: 6px; border-radius: 999px; background: var(--n-200, #e5e7eb); overflow: hidden; margin: .1rem 0 .2rem; }
  .task-check-progress span { display: block; height: 100%; background: var(--c-success, #00703c); }
  .task-fmt-bar { display: flex; flex-wrap: wrap; gap: .3rem; margin: .25rem 0; }
  .task-fmt-btn { border: 1px solid var(--color-border, #ccc); background: var(--color-surface, #fff); border-radius: 6px;
                  padding: .2rem .55rem; font-size: .82rem; cursor: pointer; color: inherit; }
  .task-fmt-btn:hover { border-color: var(--c-brand, #09517C); color: var(--c-brand, #09517C); }
  .task-detail-input { font-family: inherit; line-height: 1.45; }
