@layer components {
  /* On-paper form row: tracked uppercase label · ink value · quiet edit affordance. */
  .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: var(--space-4);
  }
  .row:last-child { border-bottom: none; }
  .row .lbl {
    font-size: var(--cap-lg);
    letter-spacing: var(--tracking-cap-tight);
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: var(--weight-semibold);
    flex-shrink: 0;
    min-width: 130px;
  }
  .row .val {
    font-size: 15px;
    color: var(--ink);
    flex: 1;
  }
  .row .val.empty { color: var(--ink-faint); font-style: normal; }
  .row .edit {
    font-size: 12px;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--ink-faint);
    padding-bottom: 1px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
  }
  .row .edit:hover { color: var(--ink); border-bottom-color: var(--ink); text-decoration: none; }

  .row-required .lbl::after { content: ' *'; color: var(--ink-soft); }

  /* Stacked form fields (used in multi-step solo + first-timer gate). */
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
  .field label {
    font-size: var(--cap-lg);
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: var(--tracking-cap-tight);
    font-weight: var(--weight-semibold);
  }
  .input, .textarea, .select {
    font-family: inherit;
    font-size: 15px;
    border: 1px solid rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.5);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    width: 100%;
  }
  .textarea { min-height: 120px; resize: vertical; }
  .input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
  }

  /* "−  n  +" number stepper (party size). One bordered pill: two ghost
     buttons flanking a plain centred number field with its native spinners
     hidden — typing still works, the buttons just nudge within [min, max]. */
  .stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    width: max-content;
  }
  .stepper:focus-within { border-color: var(--ink); background: #fff; }
  .stepper-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 17px;
    line-height: 1;
    width: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.12s ease, color 0.12s ease;
  }
  .stepper-btn:hover:not(:disabled) { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
  .stepper-btn:active:not(:disabled) { background: rgba(0, 0, 0, 0.10); }
  .stepper-btn:disabled { color: rgba(0, 0, 0, 0.18); cursor: default; }
  .stepper-btn--down { border-right: 1px solid rgba(0, 0, 0, 0.10); }
  .stepper-btn--up   { border-left:  1px solid rgba(0, 0, 0, 0.10); }
  .stepper-input {
    appearance: textfield;
    -moz-appearance: textfield;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    text-align: center;
    width: 2.6em;
    padding: 8px 0;
  }
  .stepper-input::-webkit-outer-spin-button,
  .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .stepper-input:focus { outline: none; }

  /* Ruled paper-style textarea (used in decline letter). */
  .textarea-ruled {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: var(--ink);
    line-height: 1.6;
    padding: 14px 16px;
  }

  /* Steps (multi-step indicator) — ink rule with done/active marks. */
  .steps { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
  .step { flex: 1; height: 2px; background: rgba(0,0,0,0.12); }
  .step.done   { background: var(--ink); }
  .step.active { background: var(--ink-soft); }

  /* ── Nominate-form fields (ported from Circle).
     Display label above an underline-only input. Required star in slate.
     Pairs cleanly with the paper sheet — no boxes, just hairlines. */
  .nom-field { margin-bottom: var(--space-4); }
  .nom-field:last-child { margin-bottom: 0; }

  .nom-label {
    display: block;
    font-family: var(--display);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--ink-soft);
    margin-bottom: 6px;
  }
  .nom-required { color: var(--required); font-weight: var(--weight-bold); margin-left: 2px; }

  .nom-input,
  .nom-select {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.18);
    border-radius: 0;
    padding: 10px 2px;
    background: transparent;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s ease;
  }
  .nom-input::placeholder { color: var(--ink-faint); font-style: normal; }
  .nom-input:focus,
  .nom-select:focus {
    outline: none;
    border-bottom-color: var(--ink);
  }
  .nom-textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: var(--radius-xs, 3px);
    padding: 10px 12px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    resize: vertical;
    min-height: 60px;
  }
  .nom-textarea::placeholder { color: var(--ink-faint); font-style: normal; }
  .nom-textarea:focus { outline: none; border-color: var(--ink); background: #fff; }

  /* Native <select> reset to match the underline aesthetic. */
  .nom-select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
      linear-gradient(-45deg, transparent 50%, var(--ink-soft) 50%);
    background-position:
      calc(100% - 12px) center,
      calc(100% - 6px) center;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 26px;
    cursor: pointer;
  }

  /* Identity row — photo left, name + pronouns right. */
  .nom-identity {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
  }
  .nom-identity-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Two-up grid for short fields (dietary | allergies, etc.). */
  .nom-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
  }
  @media (max-width: 768px) {
    .nom-grid-2 { grid-template-columns: 1fr; gap: var(--space-5); }
  }

  /* ── Segmented mode toggle (Flying / Driving) — radio inputs styled
     as a single pill control. The checked input's adjacent label
     gets the "selected" treatment. ── */
  .mode-toggle {
    display: inline-flex;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
  }
  .mode-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .mode-toggle label {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    cursor: pointer;
    border-radius: 999px;
    color: var(--ink-soft);
    transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
    user-select: none;
    line-height: 1;
  }
  .mode-toggle input[type="radio"]:checked + label {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  }
  .mode-toggle input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .mode-toggle--small label {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hide the inactive mode-only block based on the controller's mode. */
  [data-mode="flying"]  [data-mode-only="driving"],
  [data-mode="driving"] [data-mode-only="flying"]  { display: none; }

  /* Photo upload — circular crop + dashed empty state. */
  .nom-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--paper-edge);
    border: 1px dashed rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: var(--cap-md);
    letter-spacing: var(--tracking-cap-tight);
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
  }
  .nom-photo:hover { border-style: solid; color: var(--ink); }

  /* ── First-time welcome on the profile edit page ───────────────────
     Shown only when the user has arrived via an onboarding redirect
     (params[:next] set) AND hasn't filled in any bio answers yet —
     i.e., immediately after their first invite acceptance.

     Sits BELOW the page title. Copy on top, "Skip for now" button on
     its own line beneath, left-aligned. The skip option lives ONLY
     here — once a returning user is past onboarding, there's no skip
     on the regular edit page. */
  .profile-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 32px;
    padding: 18px 22px;
    background: rgba(79, 109, 122, 0.10);
    border: 1px solid rgba(79, 109, 122, 0.25);
    border-radius: 6px;
  }
  .profile-welcome-body-col { min-width: 0; width: 100%; }
  .profile-welcome-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: var(--tracking-cap-wide);
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--slate);
    margin: 0 0 6px;
  }
  .profile-welcome-body {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
  }
  .profile-welcome-skip { flex-shrink: 0; }

  /* Page title — centered, italic display face, title-cased. */
  .profile-title {
    font-style: normal;
    text-align: center;
    margin: 8px 0 12px;
  }
  /* "You're signed in as …" — quiet account line under the title. */
  .profile-signed-in {
    text-align: center;
    margin: 0 0 28px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
  }
  .profile-signed-in strong { font-weight: var(--weight-semibold); color: var(--ink); }
  .profile-signed-in a { color: var(--slate); }
  .profile-signed-in a:hover { color: var(--slate-hover); }

  /* Profile form row spacing — formerly inline styles on /profile; classed
     so the shared partial can render condensed inside the "About you" modal. */
  .profile-form-row { margin-bottom: 20px; }
  .profile-form-row--bio { margin-bottom: 16px; }
  .profile-form-actions { margin-top: 24px; justify-content: flex-end; }

  /* Empty required fields — lightweight red underline + note so it's clear
     what's left to fill before the profile counts as complete. */
  .nom-field--missing .nom-input,
  .nom-field--missing .nom-select { border-bottom-color: var(--required); }
  .nom-field--missing .nom-textarea { border-color: var(--required); }
  .nom-required {
    font-size: 11px;
    color: var(--required);
    letter-spacing: 0.04em;
    margin: 5px 0 0;
  }
  .profile-avatar-prompt--required { color: var(--required); }

  /* Condensed profile editor inside the "About you" to-do modal — tighter
     rhythm and a smaller avatar so the full form fits the card. */
  .profile-modal .profile-avatar-section { margin-bottom: 18px; }
  .profile-modal .profile-avatar-circle { width: 96px; height: 96px; }
  .profile-modal .profile-form-row { margin-bottom: 12px; }
  .profile-modal .profile-form-row--bio { margin-bottom: 10px; }
  .profile-modal .profile-bio-section { margin-top: 18px; padding: 16px 18px 4px; }
  .profile-modal .profile-subsection-h { margin-bottom: 12px; }
  .profile-modal .profile-form-actions { margin-top: 16px; }

  /* Bio sub-section — low-opacity slate band so the community-facing
     prompts read as a separate, softer band from the practical fields
     above (name, dietary, accessibility). */
  .profile-bio-section {
    margin-top: 32px;
    padding: 22px 24px 6px;
    background: rgba(79, 109, 122, 0.08);
    border: 1px solid rgba(79, 109, 122, 0.18);
    border-radius: 6px;
  }
  .profile-subsection-h {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: var(--tracking-cap-wide);
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--slate);
    margin: 0 0 18px;
  }

  /* ── Profile avatar (Circle-style upload) ──────────────────────────
     Big circular avatar with hover overlay, AJAX-uploaded by the
     profile-photo Stimulus controller. Mirrors the Circle profile
     pattern, mapped onto gather's ink/paper tokens. */
  .profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
  }
  .profile-avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--paper-edge);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    color: var(--ink);
  }
  .profile-avatar-circle--empty {
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(0, 0, 0, 0.22);
  }
  .profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .profile-avatar-initials {
    font-family: var(--display);
    font-size: 40px;
    font-weight: var(--weight-semibold);
    color: var(--ink-soft);
    letter-spacing: 0.04em;
  }

  /* Hover overlay — darkens the photo and reveals Change/Remove. */
  .profile-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.16s ease;
    padding: 12px;
  }
  .profile-avatar-overlay-btn,
  .profile-avatar-overlay-remove {
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
  }
  .profile-avatar-overlay-btn {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: var(--weight-semibold);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
  }
  .profile-avatar-overlay-remove {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    cursor: pointer;
  }
  .profile-avatar-overlay-remove:hover { color: #fff; }
  .profile-avatar-circle:hover .profile-avatar-overlay { background: rgba(0, 0, 0, 0.45); }
  .profile-avatar-circle:hover .profile-avatar-overlay-btn,
  .profile-avatar-circle:hover .profile-avatar-overlay-remove {
    opacity: 1;
    pointer-events: auto;
  }

  .profile-avatar-prompt {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-soft);
    cursor: pointer;
    letter-spacing: 0.04em;
  }
  .profile-avatar-prompt:hover { color: var(--ink); }

  /* Upload shimmer — applied during the background AJAX upload. The circle
     dims to a dark slate so a bright band sweeping across it actually reads
     as movement (a pale sweep on a pale photo was nearly invisible). */
  @keyframes profile-shimmer-sweep {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
  }
  .profile-avatar-circle.is-uploading { pointer-events: none; }
  .profile-avatar-circle.is-uploading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 50%;
    background: rgba(18, 22, 24, 0.62);
  }
  .profile-avatar-circle.is-uploading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(
      100deg,
      transparent 38%,
      rgba(255, 255, 255, 0.95) 50%,
      transparent 62%
    );
    animation: profile-shimmer-sweep 1.05s ease-in-out infinite;
  }

  /* ── Invite-people panel ──────────────────────────────────────────
     Steward-only "add new people to Corkins" form. Inline reveal panel on
     the host folder's People tab and on /manage Members. No eyebrow, no
     heading — just a table of name · email · role rows (a fresh empty row
     appears as soon as you start filling the last one) and the buttons.
     Reuses .nom-input / .nom-select, .manage-form-actions, .btn / .btn-paper. */
  .invite-panel {
    margin: 14px 0 24px;
    padding: 18px 20px;
    background-color: var(--paper-warm, #f6f1e6);
    background-image: var(--paper-texture);
    background-repeat: repeat;
    background-size: 360px auto;
    border: 1px solid var(--paper-edge);
    border-radius: 6px;
    box-shadow: var(--shadow-card);
  }

  .invite-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .invite-row {
    display: grid;
    grid-template-columns: 1fr 1fr 132px 22px;
    gap: 14px;
    align-items: center;
  }
  .invite-row .nom-input,
  .invite-row .nom-select { font-size: 15px; }
  .invite-row--head span {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--ink-faint);
  }
  .invite-row-remove {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: var(--ink-faint);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    justify-self: center;
  }
  .invite-row-remove:hover {
    color: var(--required);
    background: rgba(185, 74, 74, 0.10);
  }

  /* Two zones in one panel: "Invite people already on Corkins" (the chip
     picker + group pills) and "New to Corkins" (the name/email rows for
     stewards, or a "ask jim@corkins.exchange" note for everyone else). */
  .invite-zone + .invite-zone {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .invite-zone-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--ink-faint);
    margin: 0 0 12px;
  }
  .invite-zone-actions { margin-top: 16px; }
  /* "Invite" on the left, the outline "+ Add new people" toggle on the right. */
  .invite-zone-actions--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Panel head — the zone label + a quiet Cancel up in the top-right corner. */
  .invite-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .invite-panel-head .invite-zone-label { margin: 0; }
  .invite-panel-cancel { flex-shrink: 0; }

  /* The "New to Corkins" zone unfolds in place when "+ Add new people" is clicked. */
  .invite-new-zone .invite-zone-actions { margin-top: 16px; }

  /* Picker chips here are slate-shaded (the group pills lean a touch heavier). */
  .invite-existing-picker .host-chip {
    background: rgba(79, 109, 122, 0.12);
    border: 1px solid rgba(79, 109, 122, 0.28);
    color: var(--slate);
  }
  .invite-existing-picker .host-chip--cluster {
    background: rgba(79, 109, 122, 0.18);
    border-color: rgba(79, 109, 122, 0.34);
  }
  .invite-existing-picker .host-chip-remove { color: var(--slate); }
  .invite-existing-picker .host-chip-remove:hover {
    background: rgba(79, 109, 122, 0.18);
    color: var(--slate-hover);
  }

  /* Group shortcuts under the picker — clicking one drops an "All hosts (8)"
     pill that the server expands on submit; the button disables while it's up. */
  .invite-clusters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .invite-clusters-label { font-size: 12px; color: var(--ink-soft); }
  .invite-cluster-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(79, 109, 122, 0.10);
    border: 1px solid rgba(79, 109, 122, 0.28);
    color: var(--slate);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .invite-cluster-btn:hover { background: rgba(79, 109, 122, 0.18); color: var(--slate-hover); }
  .invite-cluster-btn:disabled { opacity: 0.4; cursor: not-allowed; }
  /* Cluster pill in the chip row — a group, so no avatar; slate-tinted. */
  .host-chip--cluster {
    background: rgba(79, 109, 122, 0.14);
    border: 1px solid rgba(79, 109, 122, 0.30);
    font-weight: var(--weight-semibold);
    color: var(--slate);
  }

  /* Non-steward "New to Corkins" line — just a pointer to a steward. */
  .invite-ask-steward {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
  }
  .invite-ask-steward a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.22);
    padding-bottom: 1px;
  }
  .invite-ask-steward a:hover { color: var(--ink); border-bottom-color: var(--ink); }

  /* "Invite this batch to" — a slate-tinted slip laid into the paper panel,
     so it reads as a distinct choice rather than another form row. Uses the
     todo-list checkbox (.prep-todo-check) with the native input hidden
     behind it. No divider above or below it. */
  .invite-gathering-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 13px 16px;
    background: rgba(79, 109, 122, 0.12);
    border: 1px solid rgba(79, 109, 122, 0.24);
    border-radius: 6px;
  }
  .invite-gathering-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
  }
  .invite-gathering-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }
  .invite-gathering-toggle input:checked + .prep-todo-check::before { content: "✓"; }
  .invite-gathering-toggle input:focus-visible + .prep-todo-check {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .invite-gathering-label { font-size: 13px; color: var(--ink); white-space: nowrap; }
  .invite-gathering-box .nom-select { flex: 1; min-width: 0; max-width: 340px; font-size: 14px; }
  /* Disabled until the box is ticked — stay legible, never wash out to white
     (no opacity fade; Safari uses -webkit-text-fill-color on disabled inputs). */
  .invite-gathering-box .nom-select:disabled {
    opacity: 1;
    background-color: transparent;
    color: var(--ink-soft);
    -webkit-text-fill-color: var(--ink-soft);
    cursor: not-allowed;
  }

  /* Folder context — names what the batch does: add new ones to the
     platform, invite everyone to this gathering. */
  .invite-context-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
  }
  .invite-context-note strong { color: var(--ink); font-weight: var(--weight-semibold); }

  /* Preamble at the top of the panel — nothing is emailed; you share the
     links; people already on Corkins also see it on their home page. */
  .invite-form-note {
    margin: 0 0 18px;
    font-size: 13px;
    font-style: normal;
    color: var(--ink-soft);
    line-height: 1.5;
  }

  /* Drop the shared .manage-form-actions divider inside the panel — just space. */
  .invite-panel .invite-panel-actions {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
  }

  /* ── Invite result — link list shown after a batch ──────────────── */
  .invite-result {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: rgba(79, 109, 122, 0.06);
    border: 1px solid rgba(79, 109, 122, 0.22);
    border-radius: 6px;
  }
  .invite-result-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--slate);
    margin: 0 0 4px;
  }
  .invite-result-lede {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 12px;
  }
  /* .invite-result-list also carries .manage-tokens for the row chrome. */
  .invite-result-name {
    font-family: var(--display);
    font-size: 15px;
    color: var(--ink);
    flex-shrink: 0;
    min-width: 130px;
  }
  /* The link can be long — truncate it rather than overrun the Copy button. */
  .invite-result-link {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12px;
    color: var(--ink-soft);
    background: rgba(0, 0, 0, 0.04);
    padding: 5px 8px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .invite-result .btn-text { flex-shrink: 0; }

  @media (max-width: 768px) {
    .invite-row--head { display: none; }
    .invite-row {
      grid-template-columns: 1fr;
      gap: 8px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .invite-row:last-of-type { border-bottom: none; }
    .invite-row-remove { justify-self: end; margin-top: -2px; }
    .invite-gathering-box .nom-select { max-width: none; flex: 1 1 100%; }
    .invite-result-name { min-width: 0; }
    .invite-result-list.manage-tokens li { flex-wrap: wrap; gap: 6px 10px; }
    .invite-result-link { flex: 1 1 100%; }
  }
}
