*,
*::before,
*::after {
  box-sizing: border-box;
}

/* DEC-136 · Quiet Folio identity and consent-visible selected/On member context. */
.prototype-invitation-card {
  box-shadow:
    0.38rem 0.42rem 0 -0.08rem var(--theme-color-invitation-underleaf),
    var(--theme-shadow-invitation-paper);
}

.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision)
  > .prototype-invitation-card {
  box-shadow:
    0.38rem 0.42rem 0 -0.08rem var(--theme-color-invitation-underleaf),
    var(--theme-shadow-invitation-paper);
}

.invitation-preview-header h3,
.invitation-preview-note,
.final-confirmation > header h3,
.rich-counterpart-heading h3 {
  font-family: var(--theme-font-invitation);
  font-weight: 500;
  letter-spacing: -0.018em;
}

.final-confirmation {
  border-top: 1px dashed var(--theme-color-invitation-paper-line);
}

.rich-counterpart-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: calc(var(--theme-invitation-paper-radius) * 0.72);
  background: var(--theme-color-invitation-paper-soft);
}

.rich-counterpart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.rich-counterpart-heading p,
.rich-counterpart-heading h3,
.rich-counterpart-card p {
  margin: 0;
}

.rich-counterpart-heading p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-category);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.rich-counterpart-heading h3 {
  margin-top: 0.15rem;
  color: var(--theme-color-ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.identity-receipt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 11rem;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.35;
  text-align: right;
}

.identity-receipt i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  font-style: normal;
}

.rich-counterpart-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rich-counterpart-facts span {
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  color: var(--theme-color-ink-soft);
  background: var(--theme-color-surface);
  font-size: var(--theme-font-size-supporting);
}

.rich-counterpart-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0.42rem;
  min-height: 7.5rem;
}

.rich-counterpart-gallery button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.7rem;
  background: var(--theme-color-surface-control);
  cursor: zoom-in;
}

.rich-counterpart-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
}

.rich-counterpart-view-all {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  color: var(--theme-color-brand-deep);
  background: transparent;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  font-weight: 650;
  cursor: pointer;
}

.rich-counterpart-words {
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: 650;
}

.rich-counterpart-intro,
.rich-counterpart-guidance {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.52;
}

.rich-counterpart-guidance {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-color-line);
}

.rich-counterpart-boundary {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.identity-details-editor {
  background: linear-gradient(145deg, var(--theme-color-surface), var(--theme-color-brand-soft));
}

.identity-details-preview {
  margin-block: 0.8rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--theme-color-line);
}

.identity-details-preview p,
.identity-details-preview small {
  margin: 0.25rem 0 0;
}

@media (max-width: 25rem) {
  .rich-counterpart-heading {
    display: grid;
  }

  .identity-receipt {
    max-width: none;
    text-align: left;
  }

  .rich-counterpart-gallery {
    grid-template-columns: 1.3fr 1fr;
  }

  .rich-counterpart-gallery button:nth-child(3) {
    display: none;
  }
}

html {
  min-width: 256px;
  scroll-padding-top: 6rem;
  background: var(--theme-color-canvas);
  font-family: var(--theme-font-sans);
  font-size: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--theme-color-ink);
  background:
    linear-gradient(var(--theme-color-grid) 1px, transparent 1px),
    var(--theme-color-canvas);
  background-size: 100% 4rem;
  font-size: var(--theme-font-size-body);
  font-weight: var(--theme-font-weight-regular);
  font-kerning: normal;
  font-optical-sizing: auto;
  line-height: var(--theme-line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--theme-color-focus);
}

:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 3px;
}

[id],
[tabindex="-1"] {
  scroll-margin-top: 6rem;
}

.skip-link {
  position: fixed;
  inset: var(--theme-space-3) auto auto var(--theme-space-3);
  z-index: 20;
  min-height: var(--theme-control-min-size);
  transform: translateY(-200%);
  background: var(--theme-color-ink);
  color: var(--theme-color-surface);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  width: min(100%, var(--theme-page-width));
  min-height: 100vh;
  margin-inline: auto;
  border-inline: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  box-shadow: var(--theme-shadow-surface);
}

.app-header,
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4) clamp(var(--theme-space-4), 4vw, var(--theme-space-6));
}

.app-header {
  min-height: 4.5rem;
  border-bottom: 1px solid var(--theme-color-line);
}

.brand {
  display: inline-flex;
  align-items: stretch;
  min-height: var(--theme-control-min-size);
  color: var(--theme-color-ink);
  text-decoration: none;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  margin-right: var(--theme-space-3);
  object-fit: contain;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand strong {
  font-size: 1.35rem;
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand small,
.environment-label {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.brand small {
  margin-top: var(--theme-space-2);
}

.environment-label {
  border: 1px solid var(--theme-color-line-strong);
  display: inline-grid;
  gap: var(--theme-space-1);
  overflow-wrap: anywhere;
  padding: var(--theme-space-2) var(--theme-space-3);
}

.environment-identity {
  text-transform: lowercase;
}

.header-actions,
.action-links {
  display: flex;
  align-items: center;
  gap: var(--theme-space-3);
}

.header-actions form {
  margin: 0;
}

.text-action,
.compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.compact-action {
  border: 1px solid var(--theme-color-brand-deep);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  padding-inline: var(--theme-space-4);
  text-decoration: none;
}

.page-shell {
  min-height: calc(100vh - 10rem);
  padding: clamp(var(--theme-space-6), 7vw, var(--theme-space-7)) clamp(var(--theme-space-4), 5vw, var(--theme-space-7));
}

.page-intro {
  max-width: 47rem;
  margin-bottom: clamp(var(--theme-space-6), 6vw, var(--theme-space-7));
}

.compact-intro {
  margin-bottom: var(--theme-space-6);
}

.eyebrow {
  margin: 0 0 var(--theme-space-3);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: var(--theme-font-weight-strong);
}

h1 {
  max-width: 44rem;
  margin-bottom: var(--theme-space-4);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: var(--theme-space-3);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lede {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--theme-color-ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.foundation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.8fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.landing-hero {
  position: relative;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background:
    linear-gradient(135deg, var(--theme-color-brand-soft) 0%, var(--theme-color-surface) 55%, var(--theme-color-surface-soft) 100%);
  box-shadow: var(--theme-shadow-surface);
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-7));
}

.landing-brand-lockup {
  display: block;
  width: min(100%, 44rem);
  height: auto;
  margin: 0 0 var(--theme-space-5);
  border-radius: var(--theme-radius-surface);
}

.landing-hero p.lede {
  max-width: 58rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-5);
}

.landing-capture {
  margin-top: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 3vw, var(--theme-space-5));
}

.landing-capture-copy {
  color: var(--theme-color-muted);
  margin-bottom: var(--theme-space-4);
}

.landing-capture .form-submit {
  margin-top: var(--theme-space-1);
}

.landing-capture .field-help,
.landing-feature-card p {
  color: var(--theme-color-muted);
  margin-bottom: 0;
}

.landing-feature-grid {
  margin-top: var(--theme-space-6);
  display: grid;
  gap: var(--theme-space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(var(--theme-space-6), 5vw, var(--theme-space-7));
}

.landing-feature-card {
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-5));
}

.landing-feature-card h2 {
  margin-bottom: var(--theme-space-3);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.landing-feature-card .eyebrow {
  color: var(--theme-color-brand-deep);
}

.landing-footer {
  align-items: flex-start;
}

.foundation-footer-checks {
  min-width: min(100%, 18rem);
  text-align: right;
}

.foundation-footer-checks summary {
  min-height: var(--theme-control-min-size);
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  font-weight: var(--theme-font-weight-strong);
  list-style-position: inside;
}

.foundation-footer-checks .status-list {
  margin: var(--theme-space-3) 0 var(--theme-space-2);
  text-align: left;
}

.foundation-footer-checks .quiet-note {
  text-align: left;
}

.theme-proof,
.runtime-card {
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.theme-proof {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  min-height: 19rem;
  overflow: hidden;
}

.theme-proof-accent {
  background: var(--theme-color-brand);
}

.theme-proof-body,
.runtime-card {
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
}

.theme-proof-body > p:not(.eyebrow),
.quiet-note {
  color: var(--theme-color-muted);
}

.message-stack {
  display: grid;
  gap: var(--theme-space-2);
  margin-bottom: var(--theme-space-5);
}

.message {
  margin: 0;
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.message-error {
  border-color: var(--theme-color-error);
  background: var(--theme-color-error-soft);
}

.message-success {
  border-color: var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
}

.access-layout,
.status-layout,
.operations-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  gap: var(--theme-space-6);
  align-items: start;
}

.operations-access-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.npc-act-as-banner {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--theme-space-3) var(--theme-space-5);
  border-bottom: 0.35rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-3) max(var(--theme-space-4), calc((100vw - 80rem) / 2));
  color: var(--theme-color-ink);
  box-shadow: var(--theme-shadow-surface);
}

.npc-act-as-banner > span:first-child {
  display: grid;
  gap: var(--theme-space-1);
}

.npc-act-as-banner form {
  margin: 0;
}

.npc-act-as-operator {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  overflow-wrap: anywhere;
}

.npc-operations-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.npc-profile-list {
  display: grid;
  gap: var(--theme-space-4);
  margin: var(--theme-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.npc-profile-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.65fr);
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
  container-type: inline-size;
  container-name: npc-profile;
}

.npc-profile-list > li:last-child {
  border-bottom: 1px solid var(--theme-color-line);
  padding-bottom: var(--theme-space-4);
}

.npc-profile-heading {
  display: grid;
  justify-items: start;
  gap: var(--theme-space-2);
  min-width: 0;
}

.npc-profile-heading small,
.npc-profile-heading p {
  margin: 0;
  color: var(--theme-color-muted);
  overflow-wrap: anywhere;
}

.npc-internal-badge {
  display: inline-flex;
  border: 1px solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-1) var(--theme-space-2);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.npc-act-as-form {
  display: grid;
  align-content: start;
  gap: var(--theme-space-2);
  margin: 0;
}

.npc-act-as-form .form-field {
  margin: 0;
}

.npc-act-as-form .button {
  width: 100%;
}

.operations-profile-summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 1fr);
  gap: var(--theme-space-5);
  margin-block: var(--theme-space-5);
  border-block: 1px solid var(--theme-color-line-strong);
  padding-block: var(--theme-space-5);
  min-width: 0;
}

.operations-profile-overview {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-content: start;
  align-items: start;
}

.operations-profile-overview h2,
.operations-profile-overview p,
.operations-profile-about p,
.operations-invitation-picture > p {
  margin: 0;
}

.operations-profile-overview > div {
  display: grid;
  justify-items: start;
  gap: var(--theme-space-2);
  min-width: 0;
}

.operations-profile-initial {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--theme-color-brand);
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
  font-family: var(--theme-font-display);
  font-size: 1.35rem;
}

.operations-profile-words,
.operations-profile-area,
.operations-invitation-bucket span,
.operations-invitation-bucket small,
.operations-invitation-empty,
.operations-invitation-more,
.operations-person-about {
  color: var(--theme-color-muted);
}

.operations-profile-about {
  display: grid;
  align-content: start;
  gap: var(--theme-space-3);
  min-width: 0;
  overflow-wrap: anywhere;
}

.operations-profile-about p:not(:first-child) {
  display: grid;
  gap: var(--theme-space-1);
}

.operations-profile-about strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.operations-invitation-picture {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
}

.operations-invitation-buckets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--theme-color-line);
  min-width: 0;
}

.npc-automation-surface,
.npc-builder-disclosure,
.operations-surface,
.history-surface {
  margin-bottom: var(--theme-space-5);
}

.npc-builder-disclosure > summary,
.npc-profile-detail > summary {
  cursor: pointer;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.npc-builder-body,
.npc-profile-detail .operations-profile-summary {
  margin-top: var(--theme-space-4);
}

.npc-regional-run-form,
.npc-registry-filters,
.npc-automation-form {
  display: grid;
  align-items: end;
  gap: var(--theme-space-3);
}

.npc-regional-run-form {
  grid-template-columns: minmax(16rem, 1fr) auto;
  max-width: 48rem;
}

.npc-registry-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.npc-automation-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npc-automation-form .button {
  justify-self: start;
}

.npc-automation-card {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--theme-space-2);
  min-width: 0;
  border-left: 0.2rem solid var(--theme-color-brand);
  padding-left: var(--theme-space-3);
}

.npc-automation-card small {
  color: var(--theme-color-muted);
  overflow-wrap: anywhere;
}

.npc-region-program-grid {
  display: grid;
  gap: var(--theme-space-4);
}

.npc-region-program-card {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  border: 1px solid var(--theme-color-line);
  border-top: 0.25rem solid var(--theme-color-brand);
  border-radius: var(--theme-radius-card);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4);
}

.npc-region-program-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.npc-region-program-card h3,
.npc-region-program-card p {
  margin: 0;
}

.npc-autopilot-panel {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  border: 1px solid var(--theme-color-line-strong);
  border-left: 0.3rem solid var(--theme-color-brand);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-4);
}

.npc-autopilot-panel > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.npc-autopilot-panel h4 {
  margin: 0;
}

.npc-autopilot-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: 0;
}

.npc-autopilot-summary div {
  min-width: 0;
}

.npc-autopilot-summary dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-small);
}

.npc-autopilot-summary dd {
  margin: var(--theme-space-1) 0 0;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-body);
  font-weight: var(--theme-font-weight-strong);
}

.npc-autopilot-area-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.npc-autopilot-area-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 1.2fr) repeat(3, minmax(10rem, 1fr));
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-2) 0;
}

.npc-autopilot-area-list span,
.npc-autopilot-last-run {
  color: var(--theme-color-muted);
}

.npc-exposure-status,
.npc-exposure-enrollment {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.npc-exposure-status > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.npc-exposure-status h5,
.npc-exposure-enrollment h5 {
  margin: 0;
}

.npc-exposure-enrollment form {
  display: grid;
  gap: var(--theme-space-2);
  justify-items: start;
}

.npc-autopilot-exceptions,
.npc-autopilot-all-clear {
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-translucent);
  padding: var(--theme-space-3);
}

.npc-autopilot-exceptions ul {
  margin: var(--theme-space-2) 0 0;
  padding-left: var(--theme-space-4);
}

.npc-autopilot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
}

.npc-autopilot-start-form {
  display: grid;
  justify-items: start;
  gap: var(--theme-space-3);
}

.npc-autopilot-start-form summary,
.npc-advanced-region-tools > summary,
.npc-cohort-workspace > summary,
.npc-registry-disclosure > summary,
.npc-autopilot-history > summary {
  display: flex;
  align-items: center;
  min-height: var(--theme-control-min-size);
  cursor: pointer;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.npc-autopilot-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-3);
}

.npc-advanced-region-body,
.npc-cohort-workspace-body,
.npc-registry-body,
.npc-autopilot-history .receipt-list {
  margin-top: var(--theme-space-3);
}

.npc-advanced-region-body,
.npc-cohort-workspace-body {
  display: grid;
  gap: var(--theme-space-3);
}

.npc-program-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: 0;
}

.npc-program-facts div {
  min-width: 0;
  border-left: 1px solid var(--theme-color-line);
  padding-left: var(--theme-space-3);
}

.npc-program-facts dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-small);
}

.npc-program-facts dd {
  margin: var(--theme-space-1) 0 0;
  overflow-wrap: anywhere;
}

.npc-scheduler-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: var(--theme-space-4) 0;
}

.npc-scheduler-health div {
  min-width: 0;
  border-left: 1px solid var(--theme-color-line);
  padding-left: var(--theme-space-3);
}

.npc-scheduler-health dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-small);
}

.npc-scheduler-health dd {
  margin: var(--theme-space-1) 0 0;
  overflow-wrap: anywhere;
}

.npc-region-transition-form,
.npc-region-configuration-form,
.npc-emergency-pause-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--theme-space-3);
}

.npc-region-transition-form .button,
.npc-region-configuration-form .button,
.npc-emergency-pause-form .button {
  justify-self: start;
}

.npc-region-transition-form select,
.npc-region-configuration-form select {
  height: 3rem;
  min-height: 3rem;
}

.npc-program-configuration > summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  cursor: pointer;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.npc-emergency-pause > summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  cursor: pointer;
  color: var(--theme-color-error);
  font-weight: var(--theme-font-weight-strong);
}

.npc-emergency-pause-form {
  margin-top: var(--theme-space-3);
}

.npc-region-configuration-form {
  margin-top: var(--theme-space-3);
}

.npc-cohort-workspace {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.npc-cohort-workspace > header,
.npc-cohort-row > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.npc-cohort-workspace h4,
.npc-cohort-row p {
  margin: 0;
}

.npc-cohort-list {
  display: grid;
  gap: var(--theme-space-3);
}

.npc-cohort-row {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  border-left: 0.2rem solid var(--theme-color-brand);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
}

.npc-cohort-row header > div {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}

.npc-cohort-row small,
.npc-cohort-coverage span {
  color: var(--theme-color-muted);
}

.npc-cohort-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: 0;
}

.npc-cohort-facts div {
  min-width: 0;
}

.npc-cohort-facts dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-small);
}

.npc-cohort-facts dd {
  margin: var(--theme-space-1) 0 0;
  overflow-wrap: anywhere;
}

.npc-cohort-coverage > summary,
.npc-cohort-generator > summary {
  display: flex;
  align-items: center;
  min-height: var(--theme-control-min-size);
  cursor: pointer;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.npc-cohort-coverage ul {
  display: grid;
  gap: var(--theme-space-2);
  margin: var(--theme-space-3) 0;
  padding: 0;
  list-style: none;
}

.npc-cohort-coverage li {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-2);
}

.npc-cohort-action-form,
.npc-cohort-generation-form {
  display: grid;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-3);
}

.npc-cohort-action-form {
  grid-template-columns: minmax(16rem, 1fr) auto;
  align-items: end;
}

.npc-cohort-action-form .button,
.npc-cohort-generation-form .button {
  justify-self: start;
}

.npc-cohort-generation-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npc-cohort-generation-form .button {
  grid-column: 1 / -1;
}

.npc-automation-form label {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}

.npc-profile-detail {
  grid-column: 1 / -1;
  min-width: 0;
}

@container npc-profile (max-width: 44rem) {
  .operations-profile-summary,
  .operations-invitation-buckets {
    grid-template-columns: 1fr;
  }

  .operations-invitation-bucket + .operations-invitation-bucket {
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
  }
}

.operations-invitation-bucket {
  min-width: 0;
  padding: var(--theme-space-4);
}

.operations-invitation-bucket + .operations-invitation-bucket {
  border-left: 1px solid var(--theme-color-line);
}

.operations-invitation-bucket > header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
}

.operations-invitation-bucket h3,
.operations-invitation-bucket p {
  margin: 0;
}

.operations-invitation-bucket ul {
  display: grid;
  gap: var(--theme-space-3);
  margin: var(--theme-space-3) 0 0;
  padding: 0;
  list-style: none;
}

.operations-invitation-bucket li {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}

.operations-invitation-bucket strong,
.operations-invitation-bucket span,
.operations-invitation-bucket small {
  overflow-wrap: anywhere;
}

.operations-invitation-empty,
.operations-invitation-more {
  margin-top: var(--theme-space-3) !important;
  font-size: var(--theme-font-size-supporting);
}

.operations-person-row {
  grid-template-columns: minmax(16rem, 1.4fr) minmax(10rem, 0.75fr) minmax(10rem, 0.7fr);
  padding-block: var(--theme-space-3);
}

.operations-person-about {
  margin-top: var(--theme-space-1);
  max-width: 48rem;
}

.operations-person-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2) var(--theme-space-3);
}

.operations-person-counts span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  white-space: nowrap;
}

.operations-person-counts strong {
  color: var(--theme-color-ink);
  font-variant-numeric: tabular-nums;
}

.operations-person-state {
  display: grid;
  justify-items: end;
  gap: var(--theme-space-1);
}

@media (max-width: 50rem) {
  .npc-act-as-banner,
  .npc-operations-layout,
  .npc-profile-list > li,
  .operations-profile-summary,
  .operations-invitation-buckets {
    grid-template-columns: 1fr;
  }

  .npc-regional-run-form,
  .npc-registry-filters,
  .npc-automation-form,
  .npc-region-transition-form,
  .npc-region-configuration-form,
  .npc-emergency-pause-form,
  .npc-autopilot-summary,
  .npc-autopilot-settings,
  .npc-cohort-facts,
  .npc-cohort-action-form,
  .npc-cohort-generation-form,
  .npc-program-facts,
  .npc-scheduler-health {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .npc-automation-form .button {
    justify-self: stretch;
  }

  .npc-region-program-card > header {
    align-items: start;
    flex-direction: column;
  }

  .npc-autopilot-panel > header,
  .npc-exposure-status > header,
  .npc-autopilot-area-list li {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .npc-autopilot-panel > header {
    flex-direction: column;
  }

  .npc-exposure-status > header {
    flex-direction: column;
  }

  .npc-autopilot-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .npc-autopilot-controls .button,
  .npc-autopilot-start-form .button {
    width: 100%;
  }

  .npc-cohort-workspace > header,
  .npc-cohort-row > header,
  .npc-cohort-coverage li {
    align-items: start;
    flex-direction: column;
  }

  .npc-cohort-coverage > summary,
  .npc-cohort-generator > summary {
    min-height: 3rem;
  }

  .npc-program-facts div {
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
    padding-top: var(--theme-space-2);
    padding-left: 0;
  }

  .npc-region-transition-form .button,
  .npc-region-configuration-form .button,
  .npc-emergency-pause-form .button,
  .npc-cohort-action-form .button,
  .npc-cohort-generation-form .button {
    justify-self: stretch;
  }

  .npc-act-as-banner {
    top: 0;
  }

  .npc-act-as-banner .button {
    width: 100%;
  }

  .operations-invitation-bucket + .operations-invitation-bucket {
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
  }

  .operations-person-state {
    justify-items: start;
  }
}

.recovery-workspace-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.boundary-list {
  display: grid;
  gap: var(--theme-space-3);
  margin: var(--theme-space-5) 0 0;
  padding-left: var(--theme-space-5);
}

.recovery-request-list {
  display: grid;
  gap: var(--theme-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.recovery-request-list > li {
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-5));
}

.recovery-request-heading,
.recovery-request-heading > div {
  display: flex;
  align-items: center;
  gap: var(--theme-space-3);
}

.recovery-request-heading {
  justify-content: space-between;
  padding-bottom: var(--theme-space-4);
}

.recovery-request-heading strong {
  overflow-wrap: anywhere;
}

.recovery-request-heading time {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-align: right;
}

.recovery-receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
}

.recovery-receipt-grid > div {
  display: grid;
  gap: var(--theme-space-1);
  border-bottom: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3);
}

.recovery-receipt-grid dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.recovery-receipt-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.operations-role-line {
  display: inline-flex;
  gap: var(--theme-space-2);
  margin: var(--theme-space-4) 0 0;
  border-left: 0.25rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.role-assignment-list {
  margin: var(--theme-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.role-assignment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-4);
}

.role-assignment-list li:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.role-assignment-list li > div {
  display: grid;
  justify-items: start;
  gap: var(--theme-space-2);
  min-width: 0;
}

.role-assignment-list strong,
.role-assignment-list small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.role-assignment-list small {
  color: var(--theme-color-muted);
}

.role-badge {
  display: inline-flex;
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-1) var(--theme-space-2);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.access-layout .page-intro {
  position: sticky;
  top: var(--theme-space-6);
}

.form-surface,
.status-surface,
.history-surface,
.operations-surface,
.centered-status,
.application-note {
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.mfa-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.mfa-setup-card {
  text-align: center;
}

.mfa-setup-card .eyebrow,
.mfa-setup-card h2,
.mfa-setup-card .quiet-note {
  text-align: left;
}

.mfa-qr {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  margin: var(--theme-space-5) auto;
  border: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
}

.manual-secret {
  margin-bottom: var(--theme-space-5);
  border-block: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
  text-align: left;
}

.manual-secret summary {
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  font-weight: var(--theme-font-weight-strong);
}

.manual-secret code {
  display: block;
  margin-top: var(--theme-space-3);
  overflow-wrap: anywhere;
  font-size: 1rem;
  letter-spacing: normal;
}

.recovery-code-surface {
  max-width: 46rem;
}

.recovery-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-2) var(--theme-space-5);
  margin: var(--theme-space-5) 0 var(--theme-space-6);
  border-block: 1px solid var(--theme-color-line);
  padding: var(--theme-space-5) var(--theme-space-5) var(--theme-space-5) var(--theme-space-7);
  background: var(--theme-color-surface-soft);
}

.recovery-code-list code {
  color: var(--theme-color-ink);
  font-size: 1rem;
  letter-spacing: normal;
}

.security-history {
  margin-top: 0;
}

.surface-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--theme-space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.category-count {
  display: inline-flex;
  min-width: 2ch;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-start;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-variant-numeric: tabular-nums;
  font-weight: var(--theme-font-weight-regular);
  line-height: 1.2;
  white-space: nowrap;
}

.category-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: var(--theme-space-2);
  row-gap: var(--theme-space-1);
}

.quiet-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
  color: var(--theme-color-confirm);
  padding: var(--theme-space-1) var(--theme-space-3);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  white-space: nowrap;
}

.session-list {
  margin: var(--theme-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.session-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-4);
}

.session-list li:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.session-list li > div {
  display: grid;
  gap: var(--theme-space-1);
}

.session-list span,
.security-action p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.session-list form,
.security-action {
  margin: 0;
}

.security-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  margin-top: var(--theme-space-5);
}

.security-action p {
  max-width: 20rem;
  margin: 0;
  text-align: right;
}

.narrow-surface,
.centered-status {
  max-width: 42rem;
  margin-inline: auto;
}

.form-field {
  margin-bottom: var(--theme-space-5);
}

.form-field > label {
  display: block;
  margin-bottom: var(--theme-space-2);
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.checkbox-field {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.checkbox-field > label {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-items: start;
}

.checkbox-field input {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.15rem 0 0;
}

.field-help,
.field-error,
.form-footnote,
.state-line,
.receipt-list span,
.operations-row small,
.empty-state {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.field-help,
.field-error {
  margin: var(--theme-space-2) 0 0;
}

/* DEC-156 · HereSpark public idea to private Bluedoor gateway. */
.gateway-shell {
  display: grid;
  gap: var(--theme-space-6);
  max-width: 72rem;
  margin: 0 auto;
}

.gateway-intro {
  display: grid;
  gap: 0.8rem;
  max-width: 49rem;
  padding-block: clamp(1rem, 4vw, 3.5rem) 0.5rem;
}

.gateway-intro h1,
.gateway-intro p,
.gateway-door-card h2,
.gateway-door-card p,
.gateway-idea-card h2,
.gateway-idea-card p,
.gateway-area-interest h2,
.gateway-area-interest p,
.gateway-carry-status h2,
.gateway-carry-status p {
  margin: 0;
}

.gateway-intro h1 {
  max-width: 17ch;
  font-family: var(--theme-font-invitation);
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.gateway-dek {
  max-width: 43rem;
  color: var(--theme-color-ink-soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.gateway-provider-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.gateway-provider-line:hover strong,
.gateway-provider-line:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gateway-provider-line p {
  display: grid;
  gap: 0.08rem;
}

.gateway-provider-line span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.gateway-provider-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
}

.gateway-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(19rem, 0.82fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.gateway-idea-card,
.gateway-door-card,
.gateway-area-interest,
.gateway-carry-status {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.gateway-idea-card {
  display: grid;
  gap: 1.35rem;
  box-shadow:
    0.42rem 0.48rem 0 -0.08rem var(--theme-color-invitation-underleaf),
    var(--theme-shadow-invitation-paper);
}

.gateway-idea-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gateway-idea-heading h2,
.gateway-door-card h2,
.gateway-area-interest h2,
.gateway-carry-status h2 {
  margin-top: 0.22rem;
  font-family: var(--theme-font-invitation);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.gateway-current-state,
.gateway-stale-state {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: var(--theme-font-size-supporting);
  font-weight: 700;
}

.gateway-current-state {
  color: var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
}

.gateway-stale-state {
  color: var(--theme-color-important);
  background: var(--theme-color-important-soft);
}

.gateway-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.gateway-facts div {
  min-width: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--theme-color-line);
}

.gateway-facts dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.gateway-facts dd {
  margin: 0.25rem 0 0;
  color: var(--theme-color-ink-soft);
  overflow-wrap: anywhere;
}

.gateway-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.gateway-door-card {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
  border-color: var(--theme-color-door-local-line);
  background: linear-gradient(145deg, var(--theme-color-surface), var(--theme-color-door-local-surface));
}

.gateway-continue-form,
.gateway-application-panel form,
.gateway-area-interest form {
  display: grid;
  gap: 0.85rem;
}

.gateway-continue-form .button,
.gateway-application-panel .button,
.gateway-area-interest .button {
  justify-self: start;
}

.gateway-continue-form span,
.gateway-application-panel > p,
.gateway-boundary-note span,
.gateway-fine-print {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.5;
}

.gateway-application-panel {
  padding-top: 1rem;
  border-top: 1px solid var(--theme-color-line);
}

.gateway-application-panel summary {
  min-height: 2.75rem;
  color: var(--theme-color-brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.gateway-boundary-note {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-important-soft);
}

.gateway-area-interest {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.gateway-interest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gateway-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--theme-color-ink-soft);
  line-height: 1.45;
}

.gateway-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
}

.gateway-fine-print {
  max-width: 58rem;
  margin: 0 auto;
  padding-bottom: 1rem;
  text-align: center;
}

.gateway-carry-status {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
  border-color: var(--theme-color-door-local-line);
}

@media (max-width: 48rem) {
  .gateway-layout,
  .gateway-area-interest {
    grid-template-columns: 1fr;
  }

  .gateway-door-card {
    position: static;
  }
}

@media (max-width: 30rem) {
  .gateway-idea-heading {
    display: grid;
  }

  .gateway-facts,
  .gateway-interest-fields {
    grid-template-columns: 1fr;
  }

  .gateway-continue-form .button,
  .gateway-application-panel .button,
  .gateway-area-interest .button {
    width: 100%;
  }
}

.field-errors {
  margin: var(--theme-space-2) 0 0;
  padding-inline-start: var(--theme-space-5);
  color: var(--theme-color-error);
  font-size: var(--theme-font-size-supporting);
}

.required-marker {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  text-transform: none;
}

.field-error,
.has-error > label {
  color: var(--theme-color-error);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--theme-color-error);
}

.form-errors {
  margin-bottom: var(--theme-space-4);
  border: 1px solid var(--theme-color-error);
  background: var(--theme-color-error-soft);
  color: var(--theme-color-error);
  padding: var(--theme-space-3);
}

.form-errors p,
.form-footnote {
  margin-bottom: 0;
}

.form-error-summary h2 {
  margin-bottom: var(--theme-space-2);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.form-error-summary ul {
  margin: 0;
  padding-inline-start: var(--theme-space-5);
}

.form-error-summary a {
  color: inherit;
  font-weight: var(--theme-font-weight-strong);
}

.form-submit {
  width: 100%;
}

.form-footnote {
  margin-top: var(--theme-space-5);
}

.standalone-action {
  margin-top: var(--theme-space-3);
}

.state-line {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  border-block: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
}

.state-confirmed {
  color: var(--theme-color-confirm);
}

.application-form {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.7fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
  margin-bottom: var(--theme-space-6);
  border-bottom: 1px solid var(--theme-color-line-strong);
}

.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--theme-control-min-size);
  border-bottom: 0.2rem solid transparent;
  color: var(--theme-color-ink-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.account-nav .account-nav-current {
  border-bottom-color: var(--theme-color-brand);
  color: var(--theme-color-brand-deep);
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.7fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.equal-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-5);
}

.equal-choice-actions form,
.equal-choice-actions .button {
  width: 100%;
}

.identity-review-list {
  display: grid;
  margin-top: var(--theme-space-4);
}

.identity-review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-4);
  color: var(--theme-color-ink);
  text-decoration: none;
}

.identity-review-row:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.identity-review-row span {
  display: grid;
  gap: var(--theme-space-1);
}

.identity-review-row small,
.identity-review-row time {
  color: var(--theme-color-muted);
}

.profile-form > .form-errors {
  grid-column: 1 / -1;
}

.profile-form-main {
  display: grid;
  gap: var(--theme-space-5);
}

.profile-section {
  box-shadow: none;
}

.profile-section:first-child {
  border-top: 0.35rem solid var(--theme-color-brand);
}

.section-note {
  margin-bottom: var(--theme-space-5);
  color: var(--theme-color-muted);
}

.availability-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--theme-space-4);
  margin-block: var(--theme-space-4) var(--theme-space-5);
  font-size: var(--theme-font-size-small);
}

.availability-summary p {
  margin: 0;
}

.availability-summary a {
  display: inline-flex;
  align-items: center;
  min-height: var(--theme-control-min-size);
}

.availability-summary .section-note {
  flex-basis: 100%;
}

.compact-in-workspace .availability-summary {
  margin-inline: var(--theme-space-6);
}

#availability {
  scroll-margin-top: var(--theme-space-6);
}

.profile-summary {
  position: sticky;
  top: var(--theme-space-5);
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-brand-soft);
  box-shadow: var(--theme-shadow-surface);
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
}

.privacy-promise {
  margin-block: var(--theme-space-5);
  border-left: 0.35rem solid var(--theme-color-confirm);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4);
}

.short-card-preview {
  margin-block: var(--theme-space-5);
  border-block: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4);
}

.short-card-identity {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-items: center;
  margin-bottom: var(--theme-space-4);
}

.short-card-initial {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  font-size: 1.15rem;
  font-weight: var(--theme-font-weight-strong);
  text-transform: none;
}

.short-card-preview h3,
.short-card-preview p {
  margin-bottom: var(--theme-space-2);
}

.short-card-preview h3 {
  font-size: 1.05rem;
  font-weight: var(--theme-font-weight-strong);
}

.short-card-words,
.short-card-preview small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.short-card-guidance {
  display: grid;
  gap: var(--theme-space-1);
  border-left: 0.2rem solid var(--theme-color-brand);
  padding-left: var(--theme-space-3);
}

.privacy-promise ul {
  margin: var(--theme-space-3) 0 0;
  padding-left: var(--theme-space-5);
}

.profile-history {
  max-width: calc(68% - var(--theme-space-3));
}

/* Invitations workspace: behavior stays in the domain; visual values stay in the theme. */
.invitations-page {
  background: var(--theme-color-invitation-canvas);
}

.invitations-page .app-frame {
  width: min(100%, var(--theme-invitation-page-width));
  background: var(--theme-color-invitation-canvas);
}

.invitations-page .page-shell {
  padding-top: var(--theme-space-5);
}

.invitations-title {
  text-align: center;
}

.invitations-title .eyebrow {
  margin-bottom: var(--theme-space-2);
}

.invitations-title h1 {
  max-width: none;
  margin-bottom: var(--theme-space-4);
  font-size: clamp(2rem, 4vw, 3rem);
}

.invitation-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 25rem;
  margin: 0 auto clamp(var(--theme-space-6), 6vw, var(--theme-space-7));
  border-bottom: 1px solid var(--theme-color-line);
}

.invitation-tabs a {
  position: relative;
  display: grid;
  min-height: var(--theme-control-min-size);
  place-items: center;
  color: var(--theme-color-muted);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.invitation-tabs a[aria-current="page"] {
  color: var(--theme-color-ink);
}

.invitation-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 2px;
  background: var(--theme-color-brand);
  content: "";
}

.invitation-intro {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-5);
  align-items: end;
  margin-bottom: var(--theme-space-6);
}

.invitation-intro h2,
.invitation-intro p {
  margin-bottom: var(--theme-space-2);
}

.invitation-intro > div > p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--theme-color-muted);
}

.access-state {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-2);
  color: var(--theme-color-confirm);
  white-space: nowrap;
}

.access-state i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--theme-color-confirm);
}

.invitation-workspace {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(26rem, 1.2fr);
  gap: clamp(var(--theme-space-4), 3vw, var(--theme-space-6));
  align-items: start;
}

.invitation-section-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--theme-space-4);
}

.invitation-section-head h2,
.collection-section > h2 {
  margin-bottom: var(--theme-space-1);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.invitation-section-head h2 span,
.collection-section > h2 span {
  color: var(--theme-color-muted);
  font-weight: var(--theme-font-weight-regular);
}

.invitation-section-head p {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-card-list {
  display: grid;
  gap: var(--theme-space-3);
}

.invitation-card {
  --invite-signature: var(--theme-color-signature-arch);
  display: grid;
  grid-template-columns: 0.35rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
  color: var(--theme-color-ink);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.signature-wave { --invite-signature: var(--theme-color-signature-wave); }
.signature-spark { --invite-signature: var(--theme-color-signature-spark); }
.signature-path { --invite-signature: var(--theme-color-signature-path); }

.invitation-card:hover,
.invitation-card.is-selected {
  border-color: var(--invite-signature);
  box-shadow: var(--theme-shadow-raised);
  transform: translateY(-1px);
}

.card-signature {
  grid-row: 1 / 3;
  background: var(--invite-signature);
}

.invitation-card-copy {
  display: grid;
  gap: var(--theme-space-1);
  padding: var(--theme-space-4);
}

.invitation-card-copy small,
.invitation-card-copy > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-card-copy strong {
  font-size: 1rem;
  font-weight: var(--theme-font-weight-strong);
}

.invitation-card-copy em {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-2);
  color: var(--invite-signature);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
  font-weight: var(--theme-font-weight-strong);
}

.invitation-card-copy em i,
.last-minute-note span {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.invitation-card-state {
  margin: 0 var(--theme-space-4) var(--theme-space-4);
  color: var(--invite-signature);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.waiting-section {
  margin-top: var(--theme-space-5);
  border-block: 1px solid var(--theme-color-line);
}

.waiting-section summary {
  display: flex;
  min-height: 4.5rem;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.waiting-section summary::-webkit-details-marker { display: none; }

.waiting-section summary > span,
.waiting-section summary strong,
.waiting-section summary small {
  display: block;
}

.waiting-section summary strong b {
  color: var(--theme-color-muted);
  font-weight: var(--theme-font-weight-regular);
}

.waiting-section summary small {
  margin-top: var(--theme-space-1);
  color: var(--theme-color-muted);
}

.waiting-section summary i {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1px solid var(--theme-color-ink);
  border-bottom: 1px solid var(--theme-color-ink);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.waiting-section[open] summary i { transform: rotate(225deg); }

.waiting-list {
  display: grid;
  padding-bottom: var(--theme-space-3);
}

.waiting-list a {
  display: flex;
  min-height: var(--theme-control-min-size);
  justify-content: space-between;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3) 0;
  text-decoration: none;
}

.waiting-list a span:first-child,
.waiting-list a small { display: block; }
.waiting-list a small,
.waiting-list a > span:last-child { color: var(--theme-color-muted); font-size: var(--theme-font-size-supporting); }

.invitation-detail {
  --invite-signature: var(--theme-color-signature-arch);
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-raised);
}

.invitation-scene {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  background: var(--invite-signature);
  color: var(--theme-color-surface);
  padding: clamp(var(--theme-space-5), 5vw, var(--theme-space-7));
}

.scene-signature {
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -3rem;
  bottom: -8rem;
  border: 1px solid var(--theme-color-surface);
  border-radius: 50% 50% 0 0;
  opacity: 0.28;
  transform: rotate(-12deg);
}

.invitation-scene > div { position: relative; }
.invitation-scene p { margin-bottom: var(--theme-space-3); font-size: var(--theme-font-size-supporting); letter-spacing: normal; text-transform: none; }
.invitation-scene h2 { max-width: 28rem; margin-bottom: var(--theme-space-3); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.invitation-scene span { font-size: var(--theme-font-size-supporting); }

.invitation-detail-body {
  padding: clamp(var(--theme-space-5), 5vw, var(--theme-space-6));
}

.invitation-from {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-4);
  align-items: start;
  margin-bottom: var(--theme-space-5);
}

.invitation-from strong,
.invitation-from small { display: block; }
.invitation-from small { margin-top: var(--theme-space-1); color: var(--theme-color-muted); }

.private-response {
  border: 1px solid var(--theme-color-line-strong);
  color: var(--theme-color-muted);
  padding: var(--theme-space-2) var(--theme-space-3);
  font-size: var(--theme-font-size-supporting);
  white-space: nowrap;
}

.invitation-story { color: var(--theme-color-ink-soft); font-size: 1.05rem; }

.invitation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: var(--theme-space-5);
  border: 1px solid var(--theme-color-line);
}

.invitation-facts div { padding: var(--theme-space-4); }
.invitation-facts div:nth-child(odd) { border-right: 1px solid var(--theme-color-line); }
.invitation-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--theme-color-line); }
.invitation-facts dt { color: var(--theme-color-muted); font-size: var(--theme-font-size-supporting); text-transform: none; }
.invitation-facts dd { margin: var(--theme-space-1) 0 0; font-weight: var(--theme-font-weight-strong); }

.last-minute-note {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  color: var(--invite-signature);
  font-weight: var(--theme-font-weight-strong);
}

.response-boundary,
.waiting-receipt {
  border-left: 0.3rem solid var(--invite-signature);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
}

.response-boundary > p { color: var(--theme-color-muted); }
.response-boundary > p strong { color: var(--theme-color-ink); }

.invitation-response-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--theme-space-3);
}

.invitation-response-actions .button { width: 100%; min-height: 52px; }

.waiting-receipt { display: grid; gap: var(--theme-space-1); }
.waiting-receipt span { color: var(--theme-color-muted); }

.collection-section { max-width: 52rem; margin-inline: auto; }
.collection-section > h2 { margin-bottom: var(--theme-space-4); }

.hosted-invitation,
.invitation-empty,
.invitation-detail-empty {
  --invite-signature: var(--theme-color-signature-arch);
  border: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-5), 5vw, var(--theme-space-6));
}

.hosted-invitation { border-left: 0.35rem solid var(--invite-signature); box-shadow: var(--theme-shadow-surface); }
.hosted-invitation p,
.hosted-invitation span { color: var(--theme-color-muted); }
.hosted-invitation h3 { font-size: 1.2rem; font-weight: var(--theme-font-weight-strong); }

.invitation-empty,
.invitation-detail-empty { color: var(--theme-color-muted); text-align: center; }
.invitation-empty h3,
.invitation-detail-empty h2 { color: var(--theme-color-ink); }
.compact-empty { padding: var(--theme-space-4); text-align: left; }
.compact-empty p { margin-bottom: 0; }

.door-threshold {
  display: block;
  width: 2.8rem;
  height: 4rem;
  margin: 0 auto var(--theme-space-4);
  border: 0.25rem solid var(--theme-color-brand);
  border-bottom: 0;
  box-shadow: inset 0.35rem 0 0 var(--theme-color-brand-soft);
}

@media (max-width: 52rem) {
  .invitation-workspace { grid-template-columns: 1fr; }
  .invitation-detail { grid-row: 1; }
  .invitation-inbox { grid-row: 2; }
  .invitation-intro { align-items: start; flex-direction: column; }
}

@media (max-width: 31rem) {
  .invitations-page .page-shell { padding-inline: var(--theme-space-3); }
  .invitations-page .header-actions .text-action {
    padding-inline: var(--theme-space-2);
  }
  .invitation-from { align-items: stretch; flex-direction: column; }
  .private-response { align-self: start; }
  .invitation-facts { grid-template-columns: 1fr; }
  .invitation-facts div:nth-child(odd) { border-right: 0; }
  .invitation-facts div:not(:last-child) { border-bottom: 1px solid var(--theme-color-line); }
  .invitation-response-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 17rem) {
  .invitation-response-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-card,
  .waiting-section summary i { transition: none; }
}

.photo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.7fr);
  gap: var(--theme-space-5);
  align-items: start;
}

.photo-upload-surface {
  border-top: 0.35rem solid var(--theme-color-brand);
  box-shadow: none;
}

.photo-guidance {
  position: sticky;
  top: var(--theme-space-5);
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-brand-soft);
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
}

.photo-guidance ul {
  margin: var(--theme-space-4) 0 0;
  padding-left: var(--theme-space-5);
}

.person-photo-guide {
  position: relative;
  display: grid;
  width: 6rem;
  height: 6rem;
  place-items: end center;
  overflow: hidden;
  margin-block: var(--theme-space-5);
  border: 0.2rem solid var(--theme-color-brand);
  border-radius: 50%;
  background: var(--theme-color-surface);
}

.person-photo-guide::before,
.person-photo-guide span {
  content: "";
  display: block;
  background: var(--theme-color-brand);
}

.primary-photo-preview {
  display: grid;
  justify-items: center;
  gap: var(--theme-space-2);
  margin-block: var(--theme-space-5);
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.primary-photo-preview img {
  width: 9rem;
  height: 9rem;
  border: 0.25rem solid var(--theme-color-brand);
  border-radius: 50%;
  object-fit: cover;
}

.primary-photo-preview span {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
}

.photo-preview-status {
  color: var(--theme-color-muted);
  text-align: center;
}

.person-photo-guide::before {
  position: absolute;
  width: 2.15rem;
  height: 2.15rem;
  align-self: start;
  margin-top: 1rem;
  border-radius: 50%;
}

.person-photo-guide span {
  width: 4.5rem;
  height: 2.8rem;
  border-radius: 2.5rem 2.5rem 0 0;
}

.private-photo-library {
  margin-top: var(--theme-space-6);
}

.photo-card-grid,
.operations-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-4);
}

.photo-card {
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
}

.photo-card-selected {
  border-top: 0.35rem solid var(--theme-color-brand);
}

.photo-preview-control {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.photo-preview-control img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-preview-control span {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  padding: var(--theme-space-2) var(--theme-space-3);
}

.photo-card-body {
  display: grid;
  gap: var(--theme-space-3);
  padding: var(--theme-space-4);
}

.photo-state-line {
  display: grid;
  gap: var(--theme-space-1);
}

.photo-state-line span,
.photo-live-receipt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.photo-live-receipt {
  border-left: 0.25rem solid var(--theme-color-confirm);
  padding-left: var(--theme-space-3);
  color: var(--theme-color-confirm);
  font-weight: var(--theme-font-weight-strong);
}

.photo-confirmation {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--theme-space-2);
  min-height: var(--theme-control-min-size);
  align-items: start;
  font-size: var(--theme-font-size-supporting);
}

.photo-confirmation input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
}

.photo-appeal-form,
.photo-appeal-receipt {
  display: grid;
  gap: var(--theme-space-2);
  border-left: 0.25rem solid var(--theme-color-brand);
  padding: var(--theme-space-3);
  background: var(--theme-color-surface-soft);
}

.photo-appeal-form label,
.photo-appeal-receipt strong {
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.photo-appeal-form select {
  min-height: var(--theme-control-min-size);
  width: 100%;
}

.photo-appeal-form p,
.photo-appeal-receipt span {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.operations-appeal-review {
  margin-top: var(--theme-space-6);
}

.text-button {
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  padding: var(--theme-space-2) 0;
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.destructive-text {
  color: var(--theme-color-error);
}

.photo-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--theme-space-2);
}

.operations-photo-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-items: center;
  border: 1px solid var(--theme-color-line-strong);
  color: var(--theme-color-ink);
  text-decoration: none;
}

.operations-photo-row img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.operations-photo-row span,
.operations-photo-row time {
  display: grid;
  gap: var(--theme-space-1);
  padding-right: var(--theme-space-3);
}

.operations-photo-row small,
.operations-photo-row time {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.operations-photo-row time {
  grid-column: 2;
}

.operations-photo-inspection img {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: contain;
  background: var(--theme-color-surface-soft);
}

.private-photo-dialog {
  width: min(92vw, 48rem);
  max-height: 90vh;
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-raised);
  padding: var(--theme-space-5);
  color: var(--theme-color-ink);
}

.private-photo-dialog::backdrop {
  background: var(--theme-color-overlay);
}

.private-photo-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-4);
  align-items: center;
  margin-bottom: var(--theme-space-4);
}

.private-photo-dialog-head h2 {
  margin: 0;
}

.dialog-close {
  min-width: var(--theme-control-min-size);
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  color: var(--theme-color-ink);
  cursor: pointer;
}

.private-photo-dialog img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: var(--theme-color-surface-soft);
}

.private-photo-dialog p {
  margin: var(--theme-space-4) 0 0;
  color: var(--theme-color-muted);
}

.choice-field {
  min-width: 0;
  margin-inline: 0;
  border: 0;
  padding: 0;
}

.choice-field legend {
  margin-bottom: var(--theme-space-2);
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-list label {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--theme-space-2);
  align-items: start;
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-3);
  cursor: pointer;
}

.choice-list input {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.1rem 0 0;
}

.application-note {
  position: sticky;
  top: var(--theme-space-5);
  background: var(--theme-color-brand-soft);
}

.application-note ol {
  padding-left: var(--theme-space-5);
}

.approval-boundary {
  display: grid;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-5);
  border-left: 0.35rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-4);
}

.history-surface {
  margin-top: var(--theme-space-6);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-5);
}

.offer-card {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: var(--theme-space-5);
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
  padding: clamp(var(--theme-space-5), 4vw, var(--theme-space-6));
}

.offer-card-featured {
  border-top: 0.35rem solid var(--theme-color-brand);
}

.offer-card h2,
.offer-price {
  margin-bottom: var(--theme-space-2);
}

.offer-price {
  color: var(--theme-color-brand-deep);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: -0.04em;
}

.offer-terms {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.offer-terms p,
.offer-unavailable {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.offer-unavailable {
  margin-top: var(--theme-space-2);
}

.membership-boundaries {
  max-width: 54rem;
  margin: var(--theme-space-6) auto 0;
  border-left: 0.35rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-5);
}

.message > span {
  display: block;
  margin-top: var(--theme-space-1);
}

.receipt-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt-list li {
  display: grid;
  gap: var(--theme-space-1);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-4);
}

.receipt-list li:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.receipt-list p {
  margin: var(--theme-space-2) 0 0;
}

.operations-page .app-frame {
  max-width: 84rem;
}

.operations-page .page-intro .lede {
  overflow-wrap: anywhere;
}

.operations-list {
  border-top: 1px solid var(--theme-color-line);
}

.program-row {
  align-items: flex-start;
  gap: var(--theme-space-4);
}

.program-metrics {
  color: var(--theme-color-ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.program-code-row {
  background: var(--theme-color-surface-soft);
}

.program-review-row {
  align-items: flex-start;
  display: flex;
  gap: var(--theme-space-4);
  justify-content: space-between;
}

.enrollment-link input {
  box-sizing: border-box;
  font: inherit;
  margin-top: var(--theme-space-2);
  min-height: var(--theme-control-min-size);
  padding: var(--theme-space-3);
  width: 100%;
}

@media (max-width: 42rem) {
  .program-row,
  .program-review-row {
    align-items: stretch;
    flex-direction: column;
  }

  .program-metrics {
    text-align: left;
  }
}

.operations-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(12rem, 1fr) minmax(9rem, 0.6fr);
  gap: var(--theme-space-4);
  align-items: center;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--theme-color-line);
  color: var(--theme-color-ink);
  text-decoration: none;
}

.operations-row > span:first-child {
  display: grid;
}

.operations-row time {
  color: var(--theme-color-muted);
  text-align: right;
}

.operations-support-row > span:nth-child(2) {
  display: grid;
}

.support-queue-summary {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(8rem, 0.65fr) minmax(14rem, 1.4fr);
  margin-bottom: var(--theme-space-6);
  border-block: 1px solid var(--theme-color-line);
}

.support-queue-summary > div {
  display: grid;
  gap: var(--theme-space-1);
  min-height: 5rem;
  padding: var(--theme-space-4);
}

.support-queue-summary > div + div {
  border-left: 1px solid var(--theme-color-line);
}

.support-queue-summary span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-transform: none;
  letter-spacing: normal;
}

.support-queue-summary strong {
  align-self: end;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.support-queue-summary > div:last-child strong {
  font-size: var(--theme-font-size-supporting);
}

.operations-section-heading,
.support-case-title-row {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-4);
  align-items: flex-start;
}

.operations-section-heading h2,
.support-case-title-row h1 {
  margin-bottom: 0;
}

.support-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  padding: var(--theme-space-1) var(--theme-space-3);
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  white-space: nowrap;
}

.support-state-pill.is-escalated {
  border-color: var(--theme-color-error);
  background: var(--theme-color-error-soft);
  color: var(--theme-color-error);
}

.support-state-pill.is-waiting_member {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
}

.operations-inline-form {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: var(--theme-space-3);
  align-items: end;
}

.operations-inline-form label {
  display: grid;
  gap: var(--theme-space-1);
}

.operations-inline-form input {
  box-sizing: border-box;
  min-height: var(--theme-control-min-size);
}

.support-state-pill.is-closed {
  border-color: var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
  color: var(--theme-color-confirm);
}

.support-empty-state,
.support-emergency-boundary {
  display: flex;
  gap: var(--theme-space-4);
  align-items: flex-start;
}

.support-empty-state {
  padding-block: var(--theme-space-6);
}

.support-empty-state > span {
  color: var(--theme-color-confirm);
  font-size: 1.4rem;
}

.support-empty-state p {
  margin: var(--theme-space-1) 0 0;
}

.support-emergency-boundary {
  margin-bottom: var(--theme-space-6);
  border-left: 0.25rem solid var(--theme-color-error);
  padding: var(--theme-space-4) var(--theme-space-5);
  background: var(--theme-color-error-soft);
}

.support-emergency-boundary strong {
  min-width: 12rem;
  color: var(--theme-color-error);
}

.support-member-note {
  margin-top: var(--theme-space-5);
  border-block: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-4);
}

.support-member-note > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-transform: none;
  letter-spacing: normal;
}

.support-member-note p {
  margin: var(--theme-space-2) 0 0;
  white-space: normal;
}

.support-decision-boundary {
  margin: var(--theme-space-4) 0 0;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.support-decision .form-field > div label {
  display: flex;
  min-height: 2.75rem;
  align-items: flex-start;
  gap: var(--theme-space-3);
}

.support-decision input[type="radio"] {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.1rem;
}

.support-receipt-list li {
  grid-template-columns: minmax(10rem, 0.7fr) minmax(12rem, 1fr);
}

.support-receipt-list li > p {
  grid-column: 1 / -1;
}

.private-record {
  margin: 0;
}

.private-record > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.55fr) minmax(0, 1fr);
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.private-record > div:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.private-record dt {
  color: var(--theme-color-muted);
}

.private-record dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--theme-control-min-size);
  border-radius: var(--theme-radius-control);
  padding: var(--theme-space-3) var(--theme-space-4);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border: 1px solid var(--theme-color-brand-deep);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.button-secondary {
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  color: var(--theme-color-ink);
}

.button-danger {
  border: 1px solid var(--theme-color-error);
  background: var(--theme-color-surface);
  color: var(--theme-color-error);
}

.button:hover {
  box-shadow: var(--theme-shadow-raised);
}

.status-list {
  margin: var(--theme-space-5) 0;
}

.status-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.status-list > div:last-child {
  border-bottom: 1px solid var(--theme-color-line);
}

.status-list dt {
  color: var(--theme-color-muted);
}

.status-list dd {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-2);
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
  text-align: right;
}

.status-mark {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
}

.quiet-note {
  margin-bottom: 0;
  font-size: var(--theme-font-size-supporting);
}

.app-footer {
  min-height: 5.5rem;
  border-top: 1px solid var(--theme-color-line);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.app-footer-info,
.app-release {
  min-width: 0;
  max-width: 100%;
}

.app-version-footer {
  min-height: 0;
  padding-block: var(--theme-space-2);
}

.app-release summary {
  min-height: var(--theme-control-min-size);
  align-content: center;
  cursor: pointer;
}

.app-release dl {
  margin: var(--theme-space-2) 0;
}

.app-release dl > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--theme-space-3);
  padding-block: var(--theme-space-1);
}

.app-release dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 30rem) {
  .app-release dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: var(--theme-space-2);
  }
}

@media (max-width: 46rem) {
  .app-frame {
    border-inline: 0;
  }

  .landing-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
    margin-bottom: var(--theme-space-6);
  }

  .foundation-layout {
    grid-template-columns: 1fr;
  }

  .theme-proof {
    grid-template-columns: 1rem minmax(0, 1fr);
    min-height: auto;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .foundation-footer-checks {
    width: 100%;
    text-align: left;
  }

  .access-layout,
  .status-layout,
  .operations-detail-layout,
  .operations-access-layout,
  .recovery-workspace-layout,
  .application-form,
  .offer-grid,
  .security-layout,
  .mfa-layout {
    grid-template-columns: 1fr;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .identity-layout,
  .equal-choice-actions {
    grid-template-columns: 1fr;
  }

  .identity-review-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-workspace {
    grid-template-columns: 1fr;
  }

  .photo-guidance {
    position: static;
  }

  .photo-card-grid,
  .operations-photo-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    position: static;
  }

  .profile-history {
    max-width: none;
  }

  .recovery-code-list {
    grid-template-columns: 1fr;
  }

  .access-layout .page-intro,
  .application-note {
    position: static;
  }

  .operations-row {
    grid-template-columns: 1fr;
    gap: var(--theme-space-1);
    padding-block: var(--theme-space-4);
  }

  .operations-row time {
    text-align: left;
  }

  .operations-inline-form {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .operations-inline-form .button {
    width: 100%;
  }

  .support-queue-summary {
    grid-template-columns: 1fr 1fr;
  }

  .support-queue-summary > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
  }

  .operations-section-heading,
  .support-case-title-row,
  .support-emergency-boundary {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-emergency-boundary strong {
    min-width: 0;
  }

  .support-receipt-list li {
    grid-template-columns: 1fr;
  }

  .support-receipt-list li > p {
    grid-column: auto;
  }

  .security-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-action p {
    text-align: left;
  }

  .role-assignment-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .role-assignment-list form .button {
    width: 100%;
  }

  .recovery-request-heading,
  .recovery-request-heading > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .recovery-request-heading time {
    text-align: left;
  }

  .recovery-receipt-grid {
    grid-template-columns: 1fr;
  }
}

/* DEC-103: task-first Invitation receipts and calmer creation/application flow. */
.prototype-invitation-card.is-compact {
  border-top: 3px solid var(--invite-signature, var(--theme-color-line-strong));
  padding: 0;
}

.invitation-dashboard-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--theme-space-3) var(--theme-space-4);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4);
}

.invitation-dashboard-receipt > header,
.invitation-dashboard-receipt > dl,
.invitation-dashboard-note,
.invitation-dashboard-receipt > .prototype-business-note {
  grid-column: 1 / -1;
}

.invitation-dashboard-receipt > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-dashboard-receipt > header strong {
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
  text-align: right;
}

.invitation-dashboard-mark {
  width: 2.35rem;
  height: 2.35rem;
  align-self: start;
  border: 2px solid var(--invite-signature, var(--theme-color-line-strong));
  border-radius: 50% 50% 0 0;
  background: color-mix(in srgb, var(--invite-signature, var(--theme-color-brand)) 12%, transparent);
}

.invitation-dashboard-title {
  min-width: 0;
}

.invitation-dashboard-title small {
  display: block;
  margin-bottom: var(--theme-space-1);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.invitation-dashboard-title h3 {
  margin: 0;
  color: var(--theme-color-ink);
  font-family: var(--theme-font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.invitation-dashboard-receipt > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.invitation-dashboard-receipt > dl > div + div {
  border-left: 1px solid var(--theme-color-line);
  padding-left: var(--theme-space-3);
}

.invitation-dashboard-receipt dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.invitation-dashboard-receipt dd {
  margin: var(--theme-space-1) 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.35;
}

.invitation-dashboard-note {
  border-top: 1px solid var(--theme-color-line);
}

.invitation-dashboard-note > summary,
.past-record-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-2);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  list-style: none;
  cursor: pointer;
}

.invitation-dashboard-note > summary::-webkit-details-marker,
.past-record-disclosure > summary::-webkit-details-marker {
  display: none;
}

.invitation-dashboard-note > summary strong {
  color: var(--theme-color-brand-deep);
}

.invitation-dashboard-note > summary i,
.past-record-disclosure > summary .prototype-review-action i {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.invitation-dashboard-note[open] > summary i,
.past-record-disclosure[open] > summary .prototype-review-action i {
  transform: rotate(225deg);
}

.invitation-dashboard-note .when-open,
.invitation-dashboard-note[open] .when-closed,
.past-record-disclosure .when-open,
.past-record-disclosure[open] .when-closed {
  display: none;
}

.invitation-dashboard-note[open] .when-open,
.past-record-disclosure[open] .when-open {
  display: inline;
}

.invitation-dashboard-note > p {
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.5;
}

.prototype-invitation-card.is-compact > .prototype-review-receipt,
.prototype-invitation-card.is-compact > .prototype-last-minute-note,
.prototype-invitation-card.is-compact > .prototype-host-review,
.prototype-invitation-card.is-compact > .prototype-review-disclosure,
.prototype-invitation-card.is-compact > .prototype-rsvp,
.prototype-invitation-card.is-compact > .prototype-waiting-foot,
.prototype-invitation-card.is-compact > .final-confirmation,
.prototype-invitation-card.is-compact > .counterpart-summary,
.prototype-invitation-card.is-compact > .on-plan-disclosure,
.prototype-invitation-card.is-compact > .past-followup,
.prototype-invitation-card.is-compact > .past-record-disclosure,
.prototype-invitation-card.is-compact > .together-seal {
  margin-right: var(--theme-space-3);
  margin-left: var(--theme-space-3);
}

.past-record-disclosure {
  margin-top: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
}

.host-guest-profile-disclosure {
  border-block: 1px solid var(--theme-color-line);
}

.selected-counterpart-disclosure {
  margin: 0 var(--theme-space-4) var(--theme-space-3);
}

.host-selection-disclosure {
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
}

.host-selection-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 4.5rem;
  align-items: center;
  gap: var(--theme-space-3);
  padding: var(--theme-space-3) var(--theme-space-4);
  list-style: none;
  cursor: pointer;
}

.host-selection-disclosure > summary::-webkit-details-marker {
  display: none;
}

.host-selection-disclosure > summary > span:first-child {
  display: grid;
  gap: var(--theme-space-1);
}

.host-selection-disclosure > summary strong {
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.host-selection-disclosure > summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.host-selection-disclosure:not([open]) .when-open,
.host-selection-disclosure[open] .when-closed {
  display: none;
}

.host-selection-disclosure[open] .prototype-review-action i {
  transform: rotate(225deg);
}

.host-selection-disclosure > .host-selection-form {
  border-top: 1px solid var(--theme-color-line);
}

.host-selection-disclosure > summary:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: -3px;
}

.host-guest-profile-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-3);
  padding: var(--theme-space-2) 0;
  list-style: none;
  cursor: pointer;
}

.host-guest-profile-disclosure > summary::-webkit-details-marker {
  display: none;
}

.host-guest-profile-disclosure > summary > span:first-child {
  display: grid;
}

.host-guest-profile-disclosure > summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.host-guest-profile-disclosure[open] .when-closed,
.host-guest-profile-disclosure .when-open {
  display: none;
}

.host-guest-profile-disclosure[open] .when-open {
  display: inline;
}

.host-guest-profile-disclosure > .counterpart-card {
  margin-top: var(--theme-space-3);
}

.host-invitation-note {
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.55;
}

.past-record-disclosure > summary {
  padding: 0 var(--theme-space-2);
}

.past-record-disclosure > summary > span:first-child {
  display: grid;
}

.past-record-disclosure > summary small {
  color: var(--theme-color-muted);
}

.past-record-disclosure-body {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.prototype-out-dashboard {
  display: grid;
  align-content: start;
  gap: var(--theme-space-6);
}

.prototype-out-dashboard > .out-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.prototype-out-stack,
.prototype-out-passive {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: var(--theme-space-6);
}

.prototype-out-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: var(--theme-space-3);
}

.prototype-out-group > header {
  border-bottom: 1px solid var(--theme-color-line);
  padding-bottom: var(--theme-space-2);
}

.prototype-out-group > header h3 {
  margin: 0;
  font-size: 1rem;
}

.prototype-out-group > header p {
  margin: var(--theme-space-1) 0 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-hosted-record {
  display: grid;
  gap: var(--theme-space-3);
}

.prototype-hosted-record > .hosted-card-action,
.prototype-hosted-record > .host-response,
.prototype-hosted-record > .host-response-empty,
.prototype-hosted-record > .prototype-lifecycle-disclosure {
  width: 100%;
  margin: 0;
}

.invitation-title-input,
.fit-response-window label,
.invitation-fit details > summary > span:first-child {
  display: grid;
  gap: var(--theme-space-1);
}

.invitation-title-input {
  margin-top: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.activity-selection-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 4.25rem;
  align-items: center;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-4);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
}

.activity-selection-summary > span {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.activity-selection-summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.activity-selection-summary strong {
  overflow: hidden;
  color: var(--theme-color-ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-selection-summary button {
  min-width: var(--theme-control-min-size);
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  cursor: pointer;
}

.activity-selection-summary button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.invitation-title-input > span,
.fit-response-window label > span {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-title-input em {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  text-transform: none;
}

.invitation-title-input small,
.fit-response-window small,
.invitation-fit details > summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.fit-response-window {
  margin-top: var(--theme-space-3);
}

.invitation-fit details {
  margin-top: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
}

.application-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: var(--theme-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.application-roadmap li {
  display: grid;
  gap: var(--theme-space-1);
  border-top: 2px solid var(--theme-color-brand);
  padding-top: var(--theme-space-3);
}

.application-roadmap strong {
  color: var(--theme-color-ink);
}

.application-roadmap span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

@media (min-width: 50.01rem) {
  .prototype-out-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .prototype-out-passive {
    grid-template-columns: minmax(0, 1fr);
  }

  .prototype-out-stack.is-passive-only > .prototype-out-passive {
    grid-column: 1 / -1;
  }

  .prototype-out-stack.is-passive-only > .prototype-out-passive:has(> .prototype-out-group + .prototype-out-group) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-on-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: var(--theme-space-6);
  }

  .prototype-on-stack .prototype-collection > header,
  .prototype-on-stack .prototype-collection > .prototype-invitation-card,
  .prototype-on-stack .prototype-collection > .prototype-empty-state,
  .prototype-out-dashboard > .out-header-actions,
  .prototype-out-dashboard > .prototype-out-group,
  .prototype-out-dashboard > .prototype-empty-state {
    width: 100%;
    margin-left: 0;
  }
}

/* DEC-109: bounded, Invite-level Guest-to-Host clarifications. */
.invite-clarifications {
  margin: var(--theme-space-2) var(--theme-space-4) 0;
  border-top: 1px solid var(--theme-color-line);
}

.invite-clarification-answers > summary,
.invite-clarification-ask > summary,
.host-clarification-published > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-3);
  list-style: none;
  cursor: pointer;
}

.invite-clarification-answers > summary::-webkit-details-marker,
.invite-clarification-ask > summary::-webkit-details-marker,
.host-clarification-published > summary::-webkit-details-marker {
  display: none;
}

.invite-clarification-answers > summary > span:first-child,
.invite-clarification-ask > summary > span:first-child,
.host-clarification-published > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.invite-clarification-answers > summary strong,
.invite-clarification-ask > summary strong,
.host-clarification-published > summary strong {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invite-clarification-answers > summary small,
.invite-clarification-ask > summary small,
.host-clarification-published > summary small,
.invite-clarification-answer-list > p,
.invite-clarification-ask form > p,
.host-clarification-task form > p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.invite-clarification-answers:not([open]) .when-open,
.invite-clarification-answers[open] .when-closed,
.invite-clarification-ask:not([open]) .when-open,
.invite-clarification-ask[open] .when-closed,
.host-clarification-published:not([open]) .when-open,
.host-clarification-published[open] .when-closed {
  display: none;
}

.invite-clarification-answer-list,
.invite-clarification-ask form {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.invite-clarification-answer {
  display: grid;
  gap: var(--theme-space-2);
  margin: 0;
}

.invite-clarification-answer + .invite-clarification-answer {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.invite-clarification-answer div {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: var(--theme-space-2);
}

.invite-clarification-answer dt,
.host-clarification-task > p strong,
.host-clarification-published form > p strong {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.invite-clarification-answer dd {
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.invite-clarification-waiting {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-2);
  margin: 0;
  padding: var(--theme-space-3) 0;
}

.invite-clarification-waiting > span:first-child,
.host-clarification-task > header > span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  font-family: var(--theme-font-display);
}

.invite-clarification-waiting > span:last-child,
.invite-clarification-ask label > span,
.host-clarification-task > header > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.invite-clarification-waiting strong {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.invite-clarification-waiting small,
.invite-clarification-ask label small,
.host-clarification-task label small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

.invite-clarification-ask fieldset {
  display: grid;
  gap: var(--theme-space-2);
  margin: 0;
  border: 0;
  padding: 0;
}

.invite-clarification-ask legend {
  margin-bottom: var(--theme-space-2);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invite-clarification-ask label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: var(--theme-control-min-size);
  align-items: start;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  padding: var(--theme-space-2) var(--theme-space-3);
  cursor: pointer;
}

.invite-clarification-ask label:has(input:checked) {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
}

.invite-clarification-ask label strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.35;
}

.invite-clarification-ask input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--theme-color-brand);
}

.invite-clarification-ask button,
.host-clarification-task button,
.host-clarification-published button {
  min-height: var(--theme-control-min-size);
  border: 0;
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand);
  padding-inline: var(--theme-space-4);
  color: var(--theme-color-on-brand);
  cursor: pointer;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invite-clarifications :focus-visible,
.host-clarifications :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

.host-clarifications {
  display: grid;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-3);
}

.prototype-invitation-card + .host-clarifications {
  margin-top: 0;
}

.host-clarification-task,
.host-clarification-published {
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.host-clarification-task > header {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-2);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.host-clarification-task > header small {
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.host-clarification-task > header strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
}

.host-clarification-task > p,
.host-clarification-published form > p {
  display: grid;
  gap: var(--theme-space-1);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.host-clarification-task > p span,
.host-clarification-published form > p span {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.host-clarification-task form,
.host-clarification-published form {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
}

.host-clarification-task label,
.host-clarification-published label {
  display: grid;
  gap: var(--theme-space-1);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.host-clarification-task textarea,
.host-clarification-published textarea {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-control);
  padding: var(--theme-space-3);
  color: var(--theme-color-ink);
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.host-clarification-published > summary {
  padding: var(--theme-space-2) var(--theme-space-4);
}

@media (max-width: 25rem) {
  .invite-clarifications {
    margin-inline: var(--theme-space-3);
  }

  .invite-clarification-answer div {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .invite-clarification-ask label:has(input:checked),
  .host-clarification-task,
  .host-clarification-published {
    border: 2px solid CanvasText;
  }
}

/* DEC-113 Packet 2: one shared paper Invitation preview across In, Out, and On. */
.prototype-invitation-card,
.prototype-invitation-card.is-compact {
  overflow: hidden;
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: var(--theme-invitation-paper-radius);
  background: var(--theme-color-invitation-paper);
  padding: 0 0 var(--theme-space-3);
  box-shadow: var(--theme-shadow-invitation-paper);
}

.invitation-preview {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-top: 0.1875rem solid var(--theme-color-invitation-seal);
  background: var(--theme-color-invitation-paper);
}

.invitation-preview-header {
  display: grid;
  grid-template-columns: var(--theme-invitation-seal-size) minmax(0, 1fr);
  gap: var(--theme-space-4);
  align-items: center;
  background: var(--theme-color-invitation-header);
  padding: var(--theme-invitation-paper-inset);
}

.treatment-garden .invitation-preview-header {
  background: var(--theme-color-invitation-treatment-garden-header);
  box-shadow: inset 0 -0.125rem var(--theme-color-invitation-treatment-garden-detail);
}

.treatment-evening .invitation-preview-header {
  background: var(--theme-color-invitation-treatment-evening-header);
  box-shadow: inset 0 -0.125rem var(--theme-color-invitation-treatment-evening-detail);
}

.invitation-preview-header > div {
  min-width: 0;
}

.invitation-seal {
  position: relative;
  display: grid;
  width: var(--theme-invitation-seal-size);
  height: calc(var(--theme-invitation-seal-size) * 1.1428);
  place-items: center;
  color: var(--theme-color-invitation-seal);
}

.invitation-seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.invitation-seal-door {
  fill: currentColor;
}

.invitation-seal-threshold,
.invitation-seal-glyph path,
.invitation-seal-glyph rect,
.invitation-seal-glyph circle {
  fill: none;
  stroke: var(--theme-color-invitation-seal-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.invitation-seal::after {
  position: absolute;
  right: -0.125rem;
  bottom: 0.1875rem;
  width: 0.65rem;
  height: 0.25rem;
  border: 0.125rem solid var(--theme-color-invitation-seal-ink);
  background: var(--theme-color-invitation-seal);
  content: "";
}

.signature-wave .invitation-seal::after {
  border-radius: 999px;
}

.signature-spark .invitation-seal::after {
  width: 0.42rem;
  height: 0.42rem;
  transform: rotate(45deg);
}

.signature-path .invitation-seal::after {
  width: 0.8rem;
  height: 0;
  border-width: 0.125rem 0 0;
  transform: rotate(-18deg);
}

.invitation-preview-category,
.invitation-preview-kind,
.invitation-preview-label,
.invitation-preview-header h3,
.invitation-preview-people p,
.invitation-business-receipt p,
.invitation-business-receipt small,
.invitation-state-receipt span,
.invitation-state-receipt strong,
.invitation-preview-note p {
  margin: 0;
}

.invitation-preview-category {
  color: var(--theme-color-invitation-seal);
  font-size: var(--theme-font-size-invitation-category);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  line-height: 1.25;
  text-transform: none;
}

.invitation-preview-header h3 {
  margin-top: var(--theme-space-1);
  color: var(--theme-color-ink);
  font-family: var(--theme-font-display);
  font-size: var(--theme-font-size-invitation-title);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.invitation-preview-kind {
  margin-top: var(--theme-space-2);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
}

.invitation-preview-people,
.invitation-preview-facts,
.invitation-business-receipt,
.invitation-preview-note {
  margin: 0 var(--theme-invitation-paper-inset);
  border-top: 1px solid var(--theme-color-invitation-paper-line);
}

.invitation-preview-people {
  padding: var(--theme-space-4) 0;
}

.invitation-preview-label,
.invitation-preview-facts dt,
.invitation-preview-note summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: none;
}

.invitation-preview-person {
  display: grid;
  grid-template-columns: var(--theme-invitation-person-size) minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-items: center;
  margin-top: var(--theme-space-2);
}

.invitation-preview-person img,
.invitation-preview-person-initial {
  width: var(--theme-invitation-person-size);
  height: var(--theme-invitation-person-size);
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: 50%;
  background: var(--theme-color-invitation-seal-soft);
  object-fit: cover;
}

.invitation-preview-person .member-photo-trigger {
  position: relative;
  width: var(--theme-invitation-person-size);
  min-height: var(--theme-invitation-person-size);
}

.invitation-preview-person .member-photo-trigger img {
  width: var(--theme-invitation-person-size);
  height: var(--theme-invitation-person-size);
}

.invitation-preview-person .member-photo-zoom-cue {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: 50%;
  background: var(--theme-color-invitation-paper);
}

.invitation-preview-person .member-photo-zoom-cue svg {
  width: 0.8rem;
  height: 0.8rem;
}

.invitation-preview-person .member-photo-zoom-cue > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.invitation-preview-person-initial {
  display: grid;
  place-items: center;
  color: var(--theme-color-invitation-seal);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-preview-person > span:last-child {
  display: grid;
  min-width: 0;
  gap: var(--theme-space-1);
}

.invitation-preview-person strong,
.invitation-preview-private strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-preview-person small,
.invitation-preview-person > span span,
.invitation-preview-private span,
.invitation-preview-person-intro {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
}

.invitation-preview-person-intro {
  margin-top: var(--theme-space-2) !important;
  line-height: 1.4;
}

.invitation-preview-private {
  display: grid;
  gap: var(--theme-space-1);
  margin-top: var(--theme-space-2) !important;
}

.invitation-source-notice {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: var(--theme-space-3);
  margin: var(--theme-space-3) 0 0;
  border-inline-start: 3px solid var(--theme-color-brand);
  padding: var(--theme-space-2) 0 var(--theme-space-2) var(--theme-space-3);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
  line-height: 1.45;
}

.invitation-source-notice strong {
  color: var(--theme-color-brand-deep);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.invitation-preview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--theme-space-4) 0;
}

.invitation-preview-facts > div {
  min-width: 0;
  padding-inline: var(--theme-space-4);
}

.invitation-preview-facts > div:first-child {
  padding-inline-start: 0;
}

.invitation-preview-facts > div + div {
  border-inline-start: 1px solid var(--theme-color-invitation-paper-line);
}

.invitation-preview-facts dd {
  margin: var(--theme-space-1) 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-body);
  font-weight: var(--theme-font-weight-strong);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.invitation-preview-facts small {
  display: block;
  margin-top: var(--theme-space-1);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
  line-height: 1.35;
}

.invitation-business-receipt {
  padding: var(--theme-space-4) 0;
}

.invitation-business-receipt p {
  display: grid;
  gap: var(--theme-space-1);
  margin-top: var(--theme-space-2);
  font-size: var(--theme-font-size-invitation-body);
}

.invitation-business-receipt p span,
.invitation-business-receipt small {
  color: var(--theme-color-muted);
}

.invitation-business-receipt small {
  display: block;
  margin-top: var(--theme-space-2);
  font-size: var(--theme-font-size-invitation-meta);
  line-height: 1.4;
}

.invitation-preview-note > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 0.75rem;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-2);
  padding: var(--theme-space-3) 0;
  list-style: none;
  cursor: pointer;
}

.invitation-preview-note > summary::-webkit-details-marker {
  display: none;
}

.invitation-preview-note > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: var(--theme-space-1);
}

.invitation-preview-note > summary > span span {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-body);
  line-height: 1.4;
}

.invitation-preview-note > summary strong {
  color: var(--theme-color-invitation-seal);
  font-size: var(--theme-font-size-invitation-meta);
  white-space: nowrap;
}

.invitation-preview-note > summary i {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--theme-color-invitation-seal);
  transform: rotate(45deg);
}

.invitation-preview-note[open] > summary i {
  transform: rotate(225deg);
}

.invitation-preview-note:not([open]) .when-open,
.invitation-preview-note[open] .when-closed {
  display: none;
}

.invitation-preview-note > p {
  padding: 0 0 var(--theme-space-4);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-body);
  line-height: 1.55;
}

.invitation-state-receipt {
  display: grid;
  gap: var(--theme-space-1);
  border-top: 1px solid var(--theme-color-invitation-paper-line);
  background: var(--theme-color-invitation-state-surface);
  padding: var(--theme-space-3) var(--theme-invitation-paper-inset);
}

.invitation-state-receipt strong {
  color: var(--theme-color-invitation-seal);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-state-receipt > span:last-child {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-meta);
}

.invitation-state-receipt time {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-meta);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-preview.is-compact .invitation-preview-header {
  grid-template-columns: calc(var(--theme-invitation-seal-size) * 0.8) minmax(0, 1fr);
  gap: var(--theme-space-3);
  padding: var(--theme-space-3) var(--theme-invitation-paper-inset-compact);
}

.invitation-preview.is-compact .invitation-seal {
  width: calc(var(--theme-invitation-seal-size) * 0.8);
  height: calc(var(--theme-invitation-seal-size) * 0.91);
}

.invitation-preview.is-compact .invitation-preview-header h3 {
  font-size: var(--theme-font-size-invitation-title-compact);
}

.invitation-preview.is-compact .invitation-preview-people,
.invitation-preview.is-compact .invitation-preview-facts,
.invitation-preview.is-compact .invitation-business-receipt,
.invitation-preview.is-compact .invitation-preview-note {
  margin-inline: var(--theme-invitation-paper-inset-compact);
}

.invitation-preview.is-compact .invitation-preview-people,
.invitation-preview.is-compact .invitation-preview-facts,
.invitation-preview.is-compact .invitation-business-receipt {
  padding-block: var(--theme-space-2);
}

.invitation-preview.is-compact .invitation-state-receipt > .invitation-preview-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.invitation-preview.is-compact .invitation-preview-person-intro {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.invitation-preview.is-compact .invitation-preview-note > summary {
  min-height: var(--theme-control-min-size);
  padding-block: var(--theme-space-2);
}

.invitation-preview.is-compact .invitation-preview-note > summary > span span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.invitation-preview.is-compact .invitation-preview-note[open] .when-closed {
  display: none;
}

.invitation-preview.is-compact .invitation-state-receipt {
  padding: var(--theme-space-2) var(--theme-invitation-paper-inset-compact);
}

.prototype-invitation-card.is-compact > .prototype-review-receipt {
  display: none;
}

.prototype-invitation-card.is-on .invitation-state-receipt {
  border-top-color: var(--theme-color-confirm);
}

.prototype-invitation-card.is-on .invitation-state-receipt strong {
  color: var(--theme-color-confirm);
}

.invitation-state-receipt.is-on-confirmation {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-1) var(--theme-space-3);
  border-top: 2px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
  padding-block: var(--theme-space-4);
}

.invitation-state-receipt.is-on-confirmation > .invitation-preview-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.on-confirmation-mark {
  grid-row: 1 / span 3;
  color: var(--theme-color-confirm);
}

.on-confirmation-mark svg {
  width: 2.75rem;
  height: 2.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes invitation-threshold-open {
  0% {
    opacity: 0.72;
    transform: scaleX(0.82);
  }
  48% {
    opacity: 1;
    transform: scaleX(1.04);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes invitation-threshold-settle {
  0% {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.prototype-invitation-card.is-causal-confirmation .invitation-seal-door,
.on-upcoming-summary.is-causal-confirmation .invitation-seal-door {
  transform-box: fill-box;
  transform-origin: left bottom;
  animation: invitation-threshold-open var(--theme-motion-confirmation-duration)
    var(--theme-motion-confirmation-ease) both;
}

.prototype-invitation-card.is-causal-confirmation .invitation-state-receipt.is-on-confirmation,
.on-upcoming-summary.is-causal-confirmation .invitation-state-receipt.is-on-confirmation {
  animation: invitation-threshold-settle var(--theme-motion-confirmation-duration)
    var(--theme-motion-confirmation-ease) both;
}

.invitation-state-receipt .on-confirmation-copy {
  display: flex;
  align-items: baseline;
  gap: var(--theme-space-2);
}

.on-confirmation-copy > span {
  color: var(--theme-color-confirm);
  font-size: var(--theme-font-size-on-confirmation);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.on-confirmation-copy > small {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-body);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-state-receipt.is-on-confirmation time,
.invitation-state-receipt.is-on-confirmation > span:last-child {
  grid-column: 2;
}

.prototype-invitation-card.is-history .invitation-preview {
  border-top-color: var(--theme-color-invitation-history-seal);
}

.prototype-invitation-card.is-history .invitation-seal {
  color: var(--theme-color-invitation-history-seal);
}

.prototype-invitation-card.is-history .invitation-preview-category,
.prototype-invitation-card.is-history .invitation-state-receipt strong {
  color: var(--theme-color-muted);
}

.prototype-invitation-card.is-history .invitation-state-receipt {
  background: var(--theme-color-surface-soft);
}

.invitation-people-details {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
}

.invitation-people-details p {
  display: grid;
  gap: var(--theme-space-1);
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-body);
}

.invitation-people-details p span {
  color: var(--theme-color-muted);
}

@media (min-width: 45rem) {
  .invitation-preview-header {
    padding-inline: calc(var(--theme-invitation-paper-inset) + var(--theme-space-1));
  }
}

@media (max-width: 24rem) {
  .invitation-preview-header {
    grid-template-columns: calc(var(--theme-invitation-seal-size) * 0.86) minmax(0, 1fr);
    gap: var(--theme-space-3);
    padding: var(--theme-invitation-paper-inset-compact);
  }

  .invitation-seal {
    width: calc(var(--theme-invitation-seal-size) * 0.86);
    height: calc(var(--theme-invitation-seal-size) * 0.98);
  }

  .invitation-preview-people,
  .invitation-preview-facts,
  .invitation-business-receipt,
  .invitation-preview-note {
    margin-inline: var(--theme-invitation-paper-inset-compact);
  }

  .invitation-state-receipt {
    padding-inline: var(--theme-invitation-paper-inset-compact);
  }
}

@media (max-width: 18.75rem) {
  .invitation-preview-facts {
    grid-template-columns: 1fr;
  }

  .invitation-preview-facts > div {
    padding: var(--theme-space-3) 0 0;
  }

  .invitation-preview-facts > div:first-child {
    padding-top: 0;
  }

  .invitation-preview-facts > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--theme-color-invitation-paper-line);
  }
}

@media (forced-colors: active) {
  .invitation-preview,
  .invitation-preview-header,
  .invitation-state-receipt,
  .prototype-invitation-card.is-history .invitation-state-receipt {
    background: Canvas;
  }

  .invitation-seal-door {
    fill: ButtonText;
  }

  .invitation-seal-threshold,
  .invitation-seal-glyph path,
  .invitation-seal-glyph rect,
  .invitation-seal-glyph circle {
    stroke: ButtonFace;
  }

  .treatment-garden .invitation-preview-header,
  .treatment-evening .invitation-preview-header {
    box-shadow: inset 0 -2px CanvasText;
  }
}

/* DEC-106: focused App settings plus deliberate cross-device workspace overrides. */
.workspace-auto-recovery {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-translucent);
  box-shadow: var(--theme-shadow-raised);
  padding: var(--theme-space-2);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  backdrop-filter: blur(16px);
}

.workspace-auto-recovery button {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-brand-deep);
  border-radius: calc(var(--theme-radius-control) - 2px);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  padding-inline: var(--theme-space-3);
  cursor: pointer;
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
}

html[data-workspace-layout="desktop"],
html[data-workspace-layout="desktop"] body {
  min-width: 70rem;
}

.app-settings-page .page-shell {
  width: min(100%, 66rem);
  margin-inline: auto;
}

.app-settings-form {
  display: grid;
  gap: var(--theme-space-5);
}

.app-settings-section {
  display: grid;
  gap: var(--theme-space-4);
}

.app-settings-section > p,
.app-settings-heading h2 {
  margin-bottom: 0;
}

.app-settings-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-4);
}

.settings-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-3);
}

.settings-language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-3);
  min-height: 6.25rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
  cursor: pointer;
}

.settings-choice:has(input:checked) {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
  box-shadow: inset 0 0 0 1px var(--theme-color-brand-deep);
}

.settings-choice input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--theme-color-brand-deep);
}

.settings-choice span {
  display: grid;
  gap: var(--theme-space-1);
}

.settings-choice strong {
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.settings-choice small,
.app-settings-language-boundary .section-note {
  color: var(--theme-color-muted);
  line-height: 1.45;
}

.app-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  padding-bottom: var(--theme-space-6);
}

.create-language-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4) var(--theme-space-5) 0;
}

.invitation-treatment-picker {
  display: grid;
  gap: var(--theme-space-3);
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4) var(--theme-space-5) 0;
}

.invitation-treatment-picker legend {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-treatment-picker legend span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  text-transform: none;
}

.invitation-treatment-picker > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-2);
}

.invitation-treatment-picker > div > div {
  min-width: 0;
}

.invitation-treatment-picker label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-ink-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
  cursor: pointer;
}

.invitation-treatment-picker label:has(input:checked) {
  border-color: var(--theme-color-brand-deep);
  box-shadow: inset 0 0 0 1px var(--theme-color-brand-deep);
  color: var(--theme-color-ink);
}

.invitation-treatment-picker input {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  accent-color: var(--theme-color-brand-deep);
}

.invitation-treatment-picker > small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

/* DEC-107: private Trips use the Account hierarchy without becoming a workspace mode. */
.trips-page .page-shell {
  width: min(100%, 68rem);
  margin-inline: auto;
}

.trips-page .prototype-account-boundary {
  margin-top: var(--theme-space-5);
}

.trips-layout,
.trips-list {
  display: grid;
  gap: var(--theme-space-5);
}

.trips-list-heading,
.trip-row,
.trip-row-actions,
.trip-editor-actions {
  display: flex;
  align-items: center;
}

.trips-list-heading,
.trip-editor-actions {
  justify-content: space-between;
  gap: var(--theme-space-4);
}

.trips-list-heading h2,
.trip-row h3,
.trip-row p,
.trip-editor header h2 {
  margin-bottom: 0;
}

.trip-row {
  gap: var(--theme-space-4);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
  padding: var(--theme-space-4);
}

.trip-row.is-ended {
  background: var(--theme-color-surface-soft);
}

.trip-row-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
}

.trip-row-mark svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.trip-row-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: var(--theme-space-1);
}

.trip-row-copy > p:not(.eyebrow) {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.trip-row-state {
  color: var(--theme-color-ink-soft) !important;
}

.trip-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--theme-space-2);
}

.trip-row-actions form {
  margin: 0;
}

.trip-row-actions a,
.trip-row-actions button {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.trip-row-actions .trip-delete-action {
  color: var(--theme-color-error);
}

.trip-editor {
  display: grid;
  gap: var(--theme-space-4);
}

.trip-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-4);
}

.trip-date-grid > div,
.trip-repeats > div {
  display: grid;
  gap: var(--theme-space-3);
}

.prototype-trip-context {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  margin: var(--theme-space-3) 0 0;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-trip-context svg,
.prototype-review-trip-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.trip-repeats {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.trip-repeats summary {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.trip-repeats summary span:first-child {
  display: grid;
  gap: var(--theme-space-1);
}

.trip-repeats summary small {
  color: var(--theme-color-muted);
  font-weight: normal;
}

.trip-repeats > div {
  margin-top: var(--theme-space-3);
}

@media (max-width: 48rem) {
  .trips-list-heading,
  .trip-row,
  .trip-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trip-row-actions {
    justify-content: flex-start;
  }

  .trip-date-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.create-language-fields > label,
.create-language-fields fieldset,
.writing-language-field {
  display: grid;
  gap: var(--theme-space-2);
}

.create-language-fields fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.create-language-fields legend {
  margin-bottom: var(--theme-space-2);
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.create-language-fields ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2) var(--theme-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.writing-language-field {
  grid-template-columns: auto minmax(8rem, 12rem);
  align-items: center;
  min-width: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

@media (max-width: 40rem) {
  .writing-language-field {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-workspace-layout="mobile"] .app-frame {
  width: min(100%, 30rem);
  border-inline: 1px solid var(--theme-color-line);
}

html[data-workspace-layout="mobile"] .page-shell {
  padding: var(--theme-space-6) var(--theme-space-4);
}

html[data-workspace-layout="mobile"] .app-header,
html[data-workspace-layout="mobile"] .member-app-header {
  align-items: center;
  flex-wrap: nowrap;
  padding-inline: var(--theme-space-3);
}

html[data-workspace-layout="mobile"] .app-header .brand small,
html[data-workspace-layout="mobile"] .member-app-header .brand small {
  display: none;
}

html[data-workspace-layout="mobile"] .member-app-header .header-actions {
  width: auto;
  align-items: center;
  flex-direction: row;
  gap: var(--theme-space-2);
  margin-left: auto;
}

html[data-workspace-layout="mobile"] :is(
  .access-layout,
  .status-layout,
  .operations-detail-layout,
  .operations-access-layout,
  .recovery-workspace-layout,
  .application-form,
  .offer-grid,
  .security-layout,
  .mfa-layout,
  .profile-form,
  .identity-layout,
  .equal-choice-actions,
  .photo-workspace,
  .photo-card-grid,
  .operations-photo-grid,
  .recovery-code-list,
  .settings-choice-grid,
  .create-field-grid,
  .fit-field-grid,
  .activity-family-options,
  .create-language-fields,
  .prototype-section-body,
  .prototype-filter-body,
  .prototype-review-context
) {
  grid-template-columns: minmax(0, 1fr);
}

html[data-workspace-layout="mobile"] :is(
  .access-layout .page-intro,
  .application-note,
  .photo-guidance,
  .profile-summary
) {
  position: static;
}

html[data-workspace-layout="mobile"] .app-footer,
html[data-workspace-layout="mobile"] .prototype-account-status {
  align-items: flex-start;
  flex-direction: column;
}

html[data-workspace-layout="mobile"] .prototype-account-intro {
  grid-template-columns: 1fr;
}

html[data-workspace-layout="mobile"] .prototype-app-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 0 0.75rem;
}

html[data-workspace-layout="mobile"] .invitations-page .page-shell {
  display: block;
  padding: 0;
}

html[data-workspace-layout="mobile"] .prototype-root-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--theme-color-line);
  padding: 0 0.75rem;
}

html[data-workspace-layout="mobile"] .prototype-root-tabs a {
  min-height: 3.5rem;
}

html[data-workspace-layout="mobile"] :is(
  .prototype-incoming-stack,
  .prototype-collection,
  .prototype-on-stack
) {
  padding: 0.75rem 0.75rem 2rem;
}

html[data-workspace-layout="mobile"] .prototype-on-stack > .prototype-collection {
  padding: 0;
}

html[data-workspace-layout="mobile"] :is(.prototype-incoming-stack) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "action" "waiting" "eligible";
}

html[data-workspace-layout="mobile"] .create-app-nav {
  grid-template-columns: minmax(3.5rem, 1fr) minmax(0, auto) minmax(3.5rem, 1fr);
  gap: var(--theme-space-2);
  padding-inline: 0.75rem;
}

html[data-workspace-layout="mobile"] .create-app-nav h1 {
  min-width: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: normal;
}

html[data-workspace-layout="mobile"] :is(.create-workspace, .create-step-tabs) {
  width: min(calc(100% - 1.5rem), 48rem);
}

html[data-workspace-layout="mobile"] .create-field-grid .is-wide {
  grid-column: auto;
}

html[data-workspace-layout="mobile"] :is(.automatic-routing, .review-routing) {
  grid-template-columns: auto minmax(0, 1fr);
}

html[data-workspace-layout="mobile"] .privacy-receipt {
  grid-template-columns: 1fr;
}

html[data-workspace-layout="mobile"] .app-settings-actions {
  align-items: stretch;
  flex-direction: column-reverse;
}

html[data-workspace-layout="mobile"] .app-settings-actions :is(a, button) {
  width: 100%;
  justify-content: center;
}

@media (max-width: 40rem) {
  .settings-choice-grid,
  .create-language-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .invitation-treatment-picker > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-choice {
    min-height: auto;
  }

  .app-settings-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .app-settings-actions :is(a, button) {
    width: 100%;
    justify-content: center;
  }

  .application-roadmap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 25rem) {
  .invitation-dashboard-receipt {
    gap: var(--theme-space-2) var(--theme-space-3);
    padding: var(--theme-space-3);
  }

  .invitation-dashboard-receipt > dl {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--theme-space-2);
  }

  .invitation-dashboard-receipt > dl > div + div {
    border-left: 0;
    border-top: 1px solid var(--theme-color-line);
    padding: var(--theme-space-2) 0 0;
  }
}

@media (max-width: 25rem) {
  .environment-label {
    max-width: 9rem;
    text-align: right;
  }

  .environment-identity {
    display: none;
  }

  .sample-actions,
  .sample-actions .button,
  .surface-heading .button,
  .security-action .button {
    width: 100%;
  }

  .surface-heading,
  .session-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .session-list form .button {
    width: 100%;
  }

  .app-header {
    align-items: flex-start;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: var(--theme-space-1);
  }

  .private-record > div {
    grid-template-columns: 1fr;
    gap: var(--theme-space-1);
  }

  .choice-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .skip-link {
    transition: box-shadow 160ms ease, transform 160ms ease;
  }
}

/* Production implementation of prototype-20260810-bluedoor24.
   The Django domain owns state; these selectors reproduce its accepted shell. */
.invitations-page {
  background: var(--theme-color-invitation-canvas);
}

.invitations-page .app-frame {
  width: min(100%, 73.75rem);
  border-color: var(--theme-color-line);
  border-radius: var(--theme-radius-surface) var(--theme-radius-surface) 0 0;
  background: var(--theme-color-invitation-canvas);
  box-shadow: var(--theme-shadow-frame);
}

.invitations-page .page-shell {
  min-height: 100vh;
  padding: 0;
}

#invitation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "tabs"
    "receipt"
    "workspace";
  min-height: 100vh;
}

.invitations-page .message-stack {
  position: fixed;
  top: 5.75rem;
  left: 50%;
  z-index: 10;
  width: min(calc(100% - 2rem), 34rem);
  transform: translateX(-50%);
}

.invitations-page .page-shell:has(> .message-stack) .prototype-incoming-stack,
.invitations-page .page-shell:has(> .message-stack) .prototype-collection,
.invitations-page .page-shell:has(> .message-stack) .prototype-on-stack {
  padding-top: 5.75rem;
}

.invitations-page .message {
  border: 1px solid var(--theme-color-line);
  border-radius: 12px;
  background: var(--theme-color-surface-translucent);
  box-shadow: var(--theme-shadow-raised);
  font-size: var(--theme-font-size-supporting);
}

.prototype-app-nav {
  grid-area: appnav;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  min-height: 4.75rem;
  margin: 0.9375rem 3.25rem 0;
  border-bottom: 1px solid var(--theme-color-line);
  background: var(--theme-color-chrome-translucent);
  padding: 1.375rem 1.75rem 0.5rem;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.prototype-app-nav h1 {
  grid-column: 2;
  max-width: none;
  margin: 0;
  font-family: var(--theme-font-display);
  font-size: clamp(1.85rem, 3vw, 2.12rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.prototype-account-actions {
  grid-column: 3;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.5rem;
}

.prototype-create-action {
  grid-column: 1;
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-self: start;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: 999px;
  background: var(--theme-color-invitation-seal-soft);
  color: var(--theme-color-invitation-seal);
  padding: 0 var(--theme-space-3);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.prototype-create-action svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.prototype-insights {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  background: var(--theme-color-surface-translucent);
  color: var(--theme-color-ink);
  padding: 0 0.75rem;
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.prototype-insights svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--theme-color-brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.prototype-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--theme-color-ink);
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
}

.prototype-root-tabs {
  grid-area: tabs;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.625rem 3.25rem 0;
  border-bottom: 1px solid var(--theme-color-line);
}

.prototype-root-tabs a {
  position: relative;
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.prototype-root-tabs a > span {
  display: grid;
  gap: 0.1rem;
}

.prototype-root-tabs a strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-root-tabs a small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-invitation-meta);
}

.prototype-root-tabs a[aria-current="page"] small {
  color: var(--theme-color-ink-soft);
}

.prototype-root-tabs a[aria-current="page"] {
  color: var(--theme-color-ink);
}

.prototype-root-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0;
  left: 0.75rem;
  height: 2px;
  background: var(--theme-color-ink);
  content: "";
}

.prototype-root-tabs svg,
.prototype-section-mark svg,
.prototype-waiting-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.prototype-incoming-stack,
.prototype-collection,
.prototype-on-stack {
  grid-area: workspace;
  min-width: 0;
  padding: 1rem 3.25rem 3rem;
}

.workspace-progress {
  display: none;
  position: fixed;
  top: var(--theme-space-3);
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  border: 1px solid var(--theme-color-invitation-paper-line);
  border-radius: 999px;
  background: var(--theme-color-surface-translucent);
  box-shadow: var(--theme-shadow-raised);
  color: var(--theme-color-ink-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
  font-size: var(--theme-font-size-invitation-meta);
  pointer-events: none;
}

.workspace-progress.htmx-request {
  display: block;
}

.workspace-request-error {
  position: fixed;
  top: 6.5rem;
  left: 50%;
  z-index: 19;
  display: flex;
  width: min(calc(100% - 2rem), 34rem);
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  transform: translateX(-50%);
  border: 1px solid var(--theme-color-error);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-error-soft);
  box-shadow: var(--theme-shadow-raised);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3);
}

.workspace-request-error[hidden] {
  display: none;
}

.workspace-request-error > span {
  display: grid;
  gap: var(--theme-space-1);
}

.workspace-request-error small {
  color: var(--theme-color-ink-soft);
}

.workspace-request-error a {
  min-height: var(--theme-control-min-size);
  align-content: center;
  color: var(--theme-color-error);
  font-weight: var(--theme-font-weight-strong);
  white-space: nowrap;
}

.workspace-mutation-receipts {
  grid-area: receipt;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 6.5rem), 42rem);
  align-self: start;
  gap: var(--theme-space-2);
  justify-self: center;
  margin: var(--theme-space-4) auto 0;
}

.workspace-mutation-receipt {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-3);
  margin: 0;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-soft);
  box-shadow: var(--theme-shadow-card);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.workspace-mutation-receipt.is-success {
  border-color: var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
}

.workspace-mutation-receipt.is-error {
  border-color: var(--theme-color-error);
  background: var(--theme-color-error-soft);
}

.workspace-mutation-receipt > span:last-child {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}

.workspace-mutation-receipt small {
  color: var(--theme-color-ink-soft);
  line-height: 1.45;
}

.workspace-mutation-receipt-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.workspace-mutation-receipt.is-success .workspace-mutation-receipt-mark {
  color: var(--theme-color-confirm);
}

.workspace-mutation-receipt.is-error .workspace-mutation-receipt-mark {
  color: var(--theme-color-error);
}

.invitation-mutation-pending {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-invitation-meta);
  font-weight: var(--theme-font-weight-strong);
}

[data-invitation-workspace] form[aria-busy="true"] button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.prototype-on-stack > .prototype-collection {
  padding: 0;
}

.prototype-incoming-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "action eligible"
    "waiting eligible";
  align-content: start;
  align-items: start;
  gap: 0.75rem 2.75rem;
  padding-top: 3.75rem;
}

.prototype-incoming-section.is-action {
  grid-area: action;
}

.prototype-incoming-section.is-waiting {
  grid-area: waiting;
}

.prototype-incoming-section {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.prototype-incoming-section > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
}

.prototype-incoming-section > summary::-webkit-details-marker {
  display: none;
}

.prototype-incoming-section > summary:hover,
.prototype-incoming-section[open] > summary {
  background: transparent;
}

.prototype-section-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--theme-color-brand-deep);
}

.prototype-section-copy {
  display: grid;
  gap: 0.1rem;
}

.prototype-section-copy strong {
  font-size: 0.94rem;
  font-weight: 500;
}

.prototype-section-copy small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-section-toggle i {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--theme-color-brand-deep);
  border-bottom: 1.5px solid var(--theme-color-brand-deep);
  transform: rotate(45deg);
}

.prototype-incoming-section[open] .prototype-section-toggle i {
  transform: rotate(225deg);
}

.prototype-incoming-section:not([open]) .collapse-copy,
.prototype-incoming-section[open] .expand-copy {
  display: none;
}

.prototype-section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  border-top: 0;
  padding: 0.5rem 0 0;
}

.prototype-waiting-body {
  grid-template-columns: 1fr;
  background: var(--theme-color-invitation-waiting);
}

.prototype-invitation-card {
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 18px;
  background: var(--theme-color-invitation-paper);
  padding: 11px;
  box-shadow: var(--theme-shadow-surface);
}

.prototype-invitation-face {
  position: relative;
  display: grid;
  width: 100%;
  height: 29.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-color-line);
  background: linear-gradient(180deg, var(--theme-color-invitation-paper) 0%, var(--theme-color-invitation-paper-soft) 100%);
  padding: 22px 24px 26px;
  color: var(--theme-color-ink);
}

.prototype-invitation-face::after {
  position: absolute;
  right: -4rem;
  bottom: -6.5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid var(--theme-color-line);
  border-radius: 50%;
  content: "";
  opacity: 0.25;
}

.prototype-invitation-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.prototype-invitation-heading span:last-child {
  letter-spacing: 0;
  text-transform: none;
}

.prototype-category-symbol {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 24px;
  place-items: center;
  color: var(--theme-color-invitation-symbol);
}

.prototype-category-symbol svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.prototype-host-line {
  margin: 14px 0 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-host-line span {
  color: var(--theme-color-ink-soft);
  font-weight: 500;
}

.prototype-invitation-face h3 {
  max-width: 100%;
  margin: 9px 0 0;
  color: var(--theme-color-ink);
  font-family: var(--theme-font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: pretty;
}

.prototype-invitation-category {
  margin: 10px 0 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.prototype-invitation-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 28px 0 0;
}

.prototype-invitation-facts > div {
  min-width: 0;
  padding: 0 1rem;
}

.prototype-invitation-facts > div:first-child {
  padding-left: 0;
}

.prototype-invitation-facts > div + div {
  border-left: 1px solid var(--theme-color-line);
}

.prototype-invitation-facts dt,
.prototype-invitation-note > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.prototype-invitation-facts dd {
  margin: 0.4rem 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  line-height: 1.3;
}

.prototype-invitation-facts small {
  display: block;
  margin-top: 0.25rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.35;
}

.prototype-invitation-note {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  border-top: 1px solid var(--theme-color-line);
  padding-top: 20px;
}

.prototype-invitation-note p {
  margin: 0.5rem 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.48;
}

.prototype-review-receipt {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 0.45rem;
  margin: 7px 0 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 6px 8px;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.prototype-review-receipt small {
  color: var(--theme-color-muted);
}

.prototype-rsvp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 0.5rem;
  margin: 7px 12px 0;
  padding: 14px 0 0;
}

.prototype-rsvp.has-extension {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.72fr) minmax(0, 1.15fr);
}

.prototype-rsvp-action {
  display: block;
  min-width: 0;
  margin: 0;
}

.prototype-rsvp-action button {
  width: 100%;
}

.prototype-last-minute-note {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 7px 0 0;
  border-bottom: 1px solid var(--theme-color-line);
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-last-minute-note > span {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-2);
}

.prototype-last-minute-note strong {
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-last-minute-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.prototype-review-disclosure,
.prototype-host-review {
  margin-top: 6px;
}

.prototype-review-disclosure {
  margin-inline: 14px;
  border-top: 1px solid var(--theme-color-line);
}

.prototype-review-disclosure > summary,
.prototype-host-review > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 55px;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--theme-color-ink-soft);
  cursor: pointer;
}

.prototype-review-disclosure > summary {
  padding: 5px 2px;
}

.prototype-review-disclosure > summary::-webkit-details-marker,
.prototype-host-review > summary::-webkit-details-marker {
  display: none;
}

.prototype-review-disclosure > summary > span:first-child,
.prototype-review-disclosure > summary > span:first-child small {
  display: grid;
}

.prototype-review-disclosure > summary strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.prototype-review-disclosure > summary small {
  margin-top: 2px;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-review-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding-inline: 8px;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.prototype-review-action i,
.prototype-filter-toggle i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.prototype-review-disclosure[open] .prototype-review-action i,
.prototype-host-review[open] .prototype-review-action i,
.prototype-filter-panel[open] .prototype-filter-toggle i {
  transform: rotate(225deg);
}

.prototype-review-disclosure:not([open]) .when-open,
.prototype-review-disclosure[open] .when-closed,
.prototype-host-review:not([open]) .when-open,
.prototype-host-review[open] .when-closed {
  display: none;
}

.prototype-host-review {
  margin-inline: 6px;
  border-bottom: 1px solid var(--theme-color-line);
}

.prototype-host-review > summary {
  min-height: 59px;
  padding: 3px 1px;
}

.prototype-host-context {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.prototype-host-context > span:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.prototype-host-context small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.prototype-host-context strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.prototype-host-context b {
  border-radius: 999px;
  background: var(--theme-color-brand-soft);
  padding: 3px 6px;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.prototype-host-words {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-review-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--theme-color-line);
  padding: 12px 2px 14px;
}

.pre-response-host {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
}

.pre-response-host-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-3);
}

.pre-response-host-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  background: var(--theme-color-surface);
  color: var(--theme-color-muted);
}

.pre-response-host-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.pre-response-host-identity > span:last-child,
.pre-response-host-name {
  display: grid;
  min-width: 0;
}

.pre-response-host-identity small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.pre-response-host-name {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-2);
}

.pre-response-host-name strong {
  color: var(--theme-color-ink);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.pre-response-host-name b {
  width: fit-content;
  border-radius: 999px;
  background: var(--theme-color-brand-soft);
  padding: 0.2rem 0.45rem;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.pre-response-host-words {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
}

.pre-response-host-words span {
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  background: var(--theme-color-surface);
  padding: 0.24rem 0.5rem;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.pre-response-host > p {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

.prototype-review-context div {
  min-width: 0;
}

.prototype-review-context .prototype-discovery-reasons {
  grid-column: 1 / -1;
}

.prototype-review-context strong {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.prototype-review-context p {
  margin: 4px 0 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

.prototype-discovery-reasons ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.prototype-discovery-reasons li {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.prototype-discovery-reasons li span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.prototype-discovery-reasons li b {
  overflow-wrap: anywhere;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-rsvp header {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.15rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-rsvp-restored {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 10px;
  background: var(--theme-color-brand-soft);
  padding: 0.55rem 0.7rem;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-rsvp button {
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--theme-color-surface-control);
  color: var(--theme-color-ink);
  cursor: pointer;
}

.prototype-rsvp button.is-primary {
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.prototype-rsvp button:hover {
  filter: brightness(0.97);
}

.prototype-rsvp button:disabled {
  color: var(--theme-color-muted);
  cursor: default;
  filter: none;
}

.host-extension-form button {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-control);
  padding-inline: var(--theme-space-3);
  color: var(--theme-color-ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.host-extension-form :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

.prototype-waiting-foot {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  font-size: var(--theme-font-size-supporting);
}

.prototype-waiting-foot span {
  color: var(--theme-color-muted);
}

.prototype-waiting-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 3.6rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--theme-color-line);
  border-radius: 14px;
  background: var(--theme-color-invitation-paper);
  color: var(--theme-color-ink);
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.prototype-waiting-receipt:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-color-brand) 35%, transparent);
  outline-offset: 3px;
}

.response-transition-receipt {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 70;
  display: grid;
  width: min(540px, calc(100% - 24px));
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  margin-inline: auto;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 18px;
  background: var(--theme-color-surface-translucent);
  padding: 14px 52px 14px 14px;
  color: var(--theme-color-ink);
  box-shadow: var(--theme-shadow-raised);
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 340ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.response-transition-receipt[hidden] {
  display: none;
}

.response-transition-receipt.is-entering:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  pointer-events: none;
}

.response-transition-receipt.is-dismissing {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.response-transition-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
}

.response-transition-mark svg,
.response-transition-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.response-transition-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.28;
}

.response-transition-copy strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.response-transition-invite {
  overflow: hidden;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-transition-destination {
  margin-top: 4px;
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.response-transition-copy small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.response-transition-actions {
  grid-column: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.response-transition-actions form {
  margin: 0;
}

.response-transition-actions a,
.response-transition-actions button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.response-transition-actions [data-response-transition-view] {
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.response-transition-actions [data-response-transition-undo] {
  background: var(--theme-color-surface-control);
  color: var(--theme-color-ink);
}

.response-transition-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--theme-color-muted);
  cursor: pointer;
}

.prototype-waiting-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--theme-color-muted);
}

.prototype-waiting-receipt span:nth-child(2),
.prototype-waiting-receipt small {
  display: grid;
}

.prototype-waiting-receipt small,
.prototype-waiting-receipt time {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-waiting-receipt .prototype-waiting-trip {
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem;
  color: var(--theme-color-brand-deep);
}

.prototype-waiting-trip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.prototype-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--theme-color-muted);
  padding: 1rem;
  font-size: var(--theme-font-size-supporting);
}

.prototype-eligible-panel {
  grid-area: eligible;
  min-width: 0;
}

.prototype-filter-panel {
  min-width: 0;
  border: 0;
  background: transparent;
}

.prototype-filter-panel > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 12px 4px;
  cursor: pointer;
}

.prototype-filter-panel > summary::-webkit-details-marker {
  display: none;
}

.prototype-filter-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--theme-color-brand-deep);
}

.prototype-filter-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.prototype-filter-copy,
.prototype-filter-copy > span {
  min-width: 0;
  display: grid;
}

.prototype-filter-copy {
  gap: 2px;
}

.prototype-filter-copy > span {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.prototype-filter-copy strong {
  font-size: 0.94rem;
  font-weight: 500;
}

.prototype-filter-copy b {
  width: fit-content;
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: 400;
}

.prototype-filter-copy small {
  overflow: hidden;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-filter-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  color: var(--theme-color-muted);
  padding-inline: 8px;
  font-size: var(--theme-font-size-supporting);
}

.prototype-filter-panel:not([open]) .collapse-copy,
.prototype-filter-panel[open] .expand-copy {
  display: none;
}

.prototype-filter-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--theme-color-line);
  padding: 14px 4px 16px;
}

.prototype-filter-body label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-filter-body select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 10px;
  background: var(--theme-color-surface);
  color: var(--theme-color-ink-soft);
  padding-inline: 10px;
  font: inherit;
}

.prototype-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.prototype-filter-actions a,
.prototype-filter-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.prototype-filter-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--theme-color-muted);
}

.prototype-filter-actions button {
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  cursor: pointer;
}

.prototype-eligible-header {
  display: grid;
  gap: var(--theme-space-4);
  min-height: 64px;
  padding: 13px 16px 8px;
}

.prototype-eligible-header > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.prototype-eligible-header h2,
.prototype-eligible-group > header strong {
  margin: 0;
  color: var(--theme-color-ink);
  font-size: 1.06rem;
  font-weight: var(--theme-font-weight-strong);
}

.prototype-eligible-group > header small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-eligible-group {
  display: grid;
  gap: var(--theme-space-3);
}

.prototype-eligible-group + .prototype-eligible-group {
  margin-top: var(--theme-space-6);
}

.prototype-eligible-group > header {
  display: grid;
  gap: var(--theme-space-1);
  padding: 0 var(--theme-space-4);
}

.prototype-eligible-list {
  display: grid;
  gap: var(--theme-space-3);
}

.prototype-eligible-empty {
  display: grid;
  gap: var(--theme-space-3);
  margin: 0;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: var(--theme-space-5);
  color: var(--theme-color-muted);
}

.prototype-eligible-empty p {
  margin: 0;
}

.prototype-eligible-empty a {
  display: inline-grid;
  width: fit-content;
  min-height: var(--theme-control-min-size);
  place-items: center;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-collection > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.prototype-collection > header p {
  margin-bottom: 0.15rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-collection > header h2 {
  margin: 0;
}

.prototype-collection > .prototype-invitation-card + .prototype-invitation-card {
  margin-top: 0.75rem;
}

@media (min-width: 50.01rem) {
  .prototype-collection > header,
  .prototype-collection > .prototype-invitation-card,
  .prototype-collection > .hosted-card-action,
  .prototype-collection > .host-response,
  .prototype-collection > .host-response-empty,
  .prototype-collection > .prototype-lifecycle-disclosure,
  .prototype-collection > .prototype-empty-state {
    width: min(100%, var(--theme-invitation-card-width));
    margin-left: auto;
  }

  .prototype-collection .prototype-invitation-face {
    height: 28.5rem;
    align-content: start;
  }
}

.prototype-empty-state {
  border: 1px solid var(--theme-color-line);
  border-radius: 18px;
  background: var(--theme-color-invitation-paper);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.prototype-empty-state > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
}

.prototype-empty-state h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.prototype-empty-state p {
  max-width: 28rem;
  margin: auto;
  color: var(--theme-color-muted);
}

/* DEC-130: purposeful empty Out and On workspaces. */
.empty-invitation-journey {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  gap: var(--theme-space-5);
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-7));
  box-shadow: var(--theme-shadow-surface);
}

.empty-out-activation {
  border-top: 4px solid var(--theme-color-brand);
  background:
    linear-gradient(135deg, var(--theme-color-brand-soft), transparent 56%),
    var(--theme-color-surface);
}

.empty-journey-opening {
  position: absolute;
  z-index: -1;
  top: clamp(var(--theme-space-4), 4vw, var(--theme-space-7));
  right: clamp(var(--theme-space-4), 5vw, var(--theme-space-7));
  width: clamp(5rem, 11vw, 8rem);
  height: clamp(6.25rem, 14vw, 10rem);
  border: 2px solid var(--theme-color-brand);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.18;
}

.empty-journey-opening span {
  position: absolute;
  inset: 0.8rem 0.8rem 0;
  border: 1px solid var(--theme-color-brand-deep);
  border-bottom: 0;
  border-radius: inherit;
}

.empty-journey-opening i {
  position: absolute;
  right: 1.1rem;
  bottom: 1.4rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--theme-color-brand-deep);
}

.empty-journey-heading {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(45rem, calc(100% - clamp(4.5rem, 13vw, 9rem)));
  gap: var(--theme-space-2);
}

.empty-journey-heading h2,
.empty-journey-heading h3,
.empty-journey-heading p,
.empty-journey-footer p,
.empty-on-history h3,
.empty-on-history p {
  margin: 0;
}

.empty-journey-heading h2,
.empty-journey-heading h3 {
  color: var(--theme-color-ink);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.empty-journey-heading > p:last-child,
.empty-journey-footer p,
.empty-on-history p {
  color: var(--theme-color-muted);
  line-height: 1.55;
}

.empty-journey-steps,
.empty-on-path {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.empty-journey-steps {
  border-block: 1px solid var(--theme-color-line);
}

.empty-journey-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0 var(--theme-space-3);
  padding: var(--theme-space-4);
}

.empty-journey-steps li + li {
  border-left: 1px solid var(--theme-color-line);
}

.empty-journey-steps li > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--theme-color-brand);
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.empty-journey-steps li > div {
  display: grid;
  min-width: 0;
  gap: var(--theme-space-1);
}

.empty-journey-steps strong,
.empty-on-path strong {
  color: var(--theme-color-ink);
}

.empty-journey-steps small {
  color: var(--theme-color-muted);
  line-height: 1.45;
}

.empty-journey-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
}

.empty-journey-footer p {
  max-width: 30rem;
}

.empty-journey-footer p strong {
  color: var(--theme-color-ink-soft);
}

.empty-journey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--theme-space-2) var(--theme-space-4);
}

.empty-journey-actions a {
  display: inline-flex;
  width: fit-content;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  border-radius: var(--theme-radius-control);
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-underline-offset: 0.16em;
}

.empty-journey-actions .empty-journey-primary {
  border: 1px solid var(--theme-color-brand-deep);
  background: var(--theme-color-brand-deep);
  padding: var(--theme-space-2) var(--theme-space-4);
  color: var(--theme-color-on-brand);
  text-decoration: none;
}

.empty-on-arrival {
  border-top: 4px solid var(--theme-color-confirm);
  background:
    linear-gradient(145deg, var(--theme-color-confirm-soft), transparent 58%),
    var(--theme-color-surface);
}

.empty-on-arrival .empty-journey-heading {
  max-width: 42rem;
}

.empty-on-path {
  align-items: start;
  gap: var(--theme-space-2);
}

.empty-on-path li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--theme-space-2);
  color: var(--theme-color-muted);
  text-align: center;
}

.empty-on-path li:not(:last-child)::after {
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.5rem);
  width: calc(100% - 3rem + var(--theme-space-2));
  height: 1px;
  background: var(--theme-color-line-strong);
  content: "";
}

.empty-on-path span {
  z-index: 1;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  background: var(--theme-color-surface);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.empty-on-path li:last-child span {
  border-color: var(--theme-color-confirm);
  color: var(--theme-color-confirm);
}

.empty-on-arrival > .empty-journey-actions {
  justify-content: flex-start;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.empty-on-history {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line-strong);
  padding: var(--theme-space-5) var(--theme-space-1);
}

.empty-on-history-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  color: var(--theme-color-muted);
}

.empty-on-history > div {
  display: grid;
  gap: var(--theme-space-2);
}

.empty-on-history h3 {
  color: var(--theme-color-ink);
  font-size: 1rem;
}

@media (min-width: 50.01rem) {
  .prototype-on-stack.is-empty {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  }

  .prototype-out-dashboard > .empty-out-activation,
  .prototype-on-stack.is-empty .empty-on-arrival,
  .prototype-on-stack.is-empty .empty-on-history {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 38rem) {
  .empty-journey-heading {
    max-width: calc(100% - 3.5rem);
  }

  .empty-journey-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .empty-journey-steps li + li {
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
  }

  .empty-journey-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .empty-journey-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .empty-journey-actions a {
    width: 100%;
  }
}

@media (max-width: 50rem) {
  .invitations-page .app-frame {
    border-radius: 0;
  }

  .invitations-page .page-shell {
    display: block;
  }

  #invitation-workspace {
    display: block;
  }

  .prototype-app-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0;
    padding: 0 1rem;
  }

  .invitations-page .message-stack {
    top: 8rem;
  }

  .invitations-page .page-shell:has(> .message-stack) .prototype-incoming-stack,
  .invitations-page .page-shell:has(> .message-stack) .prototype-collection,
  .invitations-page .page-shell:has(> .message-stack) .prototype-on-stack {
    padding-top: 5.25rem;
  }

  .prototype-root-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-bottom: 1px solid var(--theme-color-line);
    padding: 0 1rem;
  }

  .prototype-root-tabs a {
    min-height: 3.5rem;
  }

  .prototype-incoming-stack,
  .prototype-collection,
  .prototype-on-stack {
    padding: 0.75rem 1rem 2rem;
  }

  .workspace-mutation-receipts {
    width: calc(100% - 2rem);
    margin-top: var(--theme-space-3);
  }

  .prototype-on-stack > .prototype-collection {
    padding: 0;
  }

  .prototype-incoming-stack {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "action"
      "waiting"
      "eligible";
  }

  .prototype-section-body {
    grid-template-columns: 1fr;
  }

  .prototype-eligible-header {
    min-height: auto;
    padding: var(--theme-space-4) var(--theme-space-1) var(--theme-space-3);
  }

  .prototype-filter-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .prototype-review-context {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 25rem) {
  .prototype-app-nav {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    padding-inline: 0.65rem;
  }

  .prototype-app-nav h1 {
    min-width: 0;
    font-size: 1.55rem;
    overflow-wrap: anywhere;
  }

  .prototype-account-actions {
    gap: 4px;
  }

  .prototype-insights span {
    display: none;
  }

  .prototype-insights {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .prototype-incoming-stack,
  .prototype-collection,
  .prototype-on-stack {
    padding-inline: 0.75rem;
  }

  .prototype-on-stack > .prototype-collection {
    padding-inline: 0;
  }

  .prototype-section-toggle .expand-copy,
  .prototype-section-toggle .collapse-copy {
    display: none;
  }

  .prototype-invitation-face {
    padding-inline: 1.1rem;
  }

  .prototype-invitation-facts > div {
    padding-inline: 0.65rem;
  }

  .prototype-rsvp {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  }

  .prototype-rsvp.has-extension {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.72fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 22rem) {
  .prototype-create-action {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .prototype-create-action span {
    display: none;
  }
}

@media (max-width: 18.75rem) {
  .response-transition-receipt {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    border-radius: 16px;
    padding: 12px 44px 12px 12px;
  }

  .response-transition-mark {
    width: 32px;
    height: 32px;
  }

  .response-transition-invite {
    white-space: normal;
  }

  .response-transition-actions {
    grid-column: 1 / -1;
  }

  .response-transition-actions > * {
    flex: 1 1 0;
  }

  .response-transition-actions a,
  .response-transition-actions button {
    width: 100%;
    padding-inline: 8px;
  }
}


@media (max-width: 18rem) {
  .prototype-app-nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .prototype-insights {
    display: none;
  }
}

@media (max-width: 17rem) {
  .prototype-rsvp,
  .prototype-rsvp.has-extension {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-incoming-section,
  .prototype-rsvp button,
  .response-transition-receipt {
    scroll-behavior: auto;
    transition: none;
  }

  .prototype-invitation-card.is-causal-confirmation .invitation-seal-door,
  .prototype-invitation-card.is-causal-confirmation .invitation-state-receipt.is-on-confirmation {
    animation: none;
  }
}

/* Real member entry and cross-workspace shell, derived from the v24 prototype. */
.member-app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--theme-color-chrome-translucent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.member-header-link {
  display: inline-grid;
  min-height: var(--theme-control-min-size);
  place-items: center;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.member-header-link:hover,
.member-header-link:focus-visible {
  color: var(--theme-color-brand-deep);
}

.workspace-view-switch {
  margin: 0;
}

.workspace-view-switch .member-header-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.member-access-page {
  background: linear-gradient(var(--theme-color-grid) 1px, transparent 1px), var(--theme-color-invitation-canvas);
  background-size: 100% 4rem;
}

.member-access-page .app-frame {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.member-access-page .page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}

.prototype-sign-in {
  display: grid;
  width: min(100%, 30rem);
  gap: 1.25rem;
}

.prototype-sign-in-brand {
  display: grid;
  grid-template-columns: 0.35rem 1fr;
  gap: 0 0.75rem;
  align-items: center;
  justify-self: center;
}

.prototype-sign-in-mark {
  grid-row: 1 / span 2;
  width: 0.35rem;
  height: 2.5rem;
  background: var(--theme-color-brand);
}

.prototype-sign-in-brand strong {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.prototype-sign-in-brand small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.prototype-sign-in-card {
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-invitation-paper);
  box-shadow: var(--theme-shadow-raised);
  padding: clamp(1.4rem, 6vw, 2.25rem);
}

.prototype-sign-in-card::before {
  display: block;
  width: 3.5rem;
  height: 0.2rem;
  margin-bottom: 1.5rem;
  background: var(--theme-color-brand);
  content: "";
}

.prototype-sign-in-copy {
  margin-bottom: 1.75rem;
}

.prototype-sign-in-copy h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.25rem, 10vw, 3.5rem);
}

.prototype-sign-in-copy > p:last-child {
  margin: 0;
  color: var(--theme-color-ink-soft);
}

.prototype-sign-in-card form {
  display: grid;
  gap: 1rem;
}

.prototype-sign-in-card .form-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.prototype-sign-in-card .action-links {
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: var(--theme-font-size-supporting);
}

.prototype-sign-in-boundary {
  max-width: 25rem;
  margin: 0 auto;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-align: center;
}

.member-account-page .page-shell,
.private-updates-page .page-shell {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.prototype-account-layout,
.private-updates-layout {
  display: grid;
  width: min(100%, 48rem);
  margin-inline: auto;
  gap: 1.25rem;
}

.prototype-account-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
}

.prototype-account-intro h1,
.private-updates-intro h1 {
  max-width: none;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.prototype-account-intro p:last-child,
.private-updates-intro > p:last-child {
  max-width: 40rem;
  margin: 0;
  color: var(--theme-color-ink-soft);
}

.prototype-account-monogram {
  display: grid;
  width: clamp(4rem, 12vw, 5.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--theme-color-ink);
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  font-size: 1.4rem;
  font-weight: 600;
}

.prototype-account-status,
.private-updates-surface,
.private-updates-boundary {
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.prototype-account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
}

.prototype-account-status h2 {
  margin: 0;
  font-size: 1.2rem;
}

.prototype-account-status .eyebrow {
  margin-bottom: 0.35rem;
}

.account-context-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.account-context-pills span {
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  background: var(--theme-color-surface-soft);
  padding: 0.35rem 0.55rem;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.prototype-account-index {
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.prototype-account-index > a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  min-height: 4.75rem;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--theme-color-line);
  color: var(--theme-color-ink);
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.prototype-account-index > a:last-child {
  border-bottom: 0;
}

.prototype-account-index > a:hover,
.prototype-account-index > a:focus-visible {
  background: var(--theme-color-brand-soft);
}

.prototype-account-index > a > span:nth-child(2) {
  display: grid;
  gap: 0.12rem;
}

.prototype-account-index strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.prototype-account-index small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-account-index > a > span:last-child {
  color: var(--theme-color-muted);
  font-size: 1.5rem;
}

.prototype-account-symbol {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-brand-deep);
}

.prototype-account-symbol svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.prototype-account-boundary {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-align: center;
}

.private-updates-intro {
  padding: 0.5rem 0 1rem;
}

.private-updates-surface {
  overflow: hidden;
}

.private-updates-surface > header {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--theme-color-line);
  padding: 1rem 1.2rem;
}

.private-updates-surface h2,
.private-updates-surface .eyebrow {
  margin: 0;
}

.private-updates-surface .eyebrow {
  margin-bottom: 0.3rem;
}

.private-update-group + .private-update-group {
  border-top: 1px solid var(--theme-color-line-strong);
}

.private-update-group > header,
.private-update-group > summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-2) 1.2rem;
}

.private-update-group > header h3,
.private-update-group > summary h3 {
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
}

.private-update-group > header > span,
.private-update-group > summary > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-variant-numeric: tabular-nums;
}

.private-update-group > summary {
  cursor: pointer;
  list-style: none;
}

.private-update-group > summary::-webkit-details-marker {
  display: none;
}

.private-update-group > summary h3 {
  margin-right: auto;
}

.private-update-group > summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.private-update-group[open] > summary::after {
  transform: rotate(225deg);
}

.private-update-group > summary:focus-visible {
  outline-offset: -3px;
}

.private-update-group.is-action > header {
  border-left: 3px solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
}

.private-updates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.private-updates-list li {
  border-bottom: 1px solid var(--theme-color-line);
}

.private-updates-list li:last-child {
  border-bottom: 0;
}

.private-updates-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 5.25rem;
  align-items: center;
  gap: 0.9rem;
  color: var(--theme-color-ink);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
}

.private-updates-list a:hover,
.private-updates-list a:focus-visible {
  background: var(--theme-color-brand-soft);
}

.private-update-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--theme-color-brand);
}

.private-update-group.is-action .private-update-mark {
  border-radius: 0.12rem;
  transform: rotate(45deg);
}

.private-updates-list a > span:nth-child(2) {
  display: grid;
  gap: 0.08rem;
}

.private-updates-list small {
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.private-updates-list strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: 500;
}

.private-updates-list a span span,
.private-updates-list time {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.private-updates-list time {
  text-align: right;
  white-space: nowrap;
}

.private-updates-empty,
.private-updates-caught-up {
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem 1.2rem;
}

.private-updates-empty span,
.private-updates-caught-up span {
  color: var(--theme-color-muted);
}

.private-updates-caught-up {
  margin: 0;
}

.private-updates-empty.is-all-clear {
  min-height: 8rem;
  align-content: center;
}

.private-updates-boundary {
  padding: 1rem 1.2rem;
}

.private-updates-boundary p {
  margin: 0.25rem 0 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.familiar-face-choice-list {
  display: grid;
  gap: var(--theme-space-2);
  margin: var(--theme-space-4) 0 0;
  border: 0;
  padding: 0;
}

.familiar-face-choice-list legend {
  margin-bottom: var(--theme-space-3);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.familiar-face-choice-list label {
  display: grid;
  grid-template-columns: auto 3rem 1fr;
  align-items: center;
  gap: var(--theme-space-3);
  min-height: var(--theme-control-min-size);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.familiar-face-choice > img,
.familiar-face-initial {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.familiar-face-initial {
  display: grid;
  place-items: center;
  background: var(--theme-color-invitation-paper);
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.familiar-face-choice > span:last-child > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

.familiar-face-choice-list input,
.support-choice-list input,
.support-acknowledgment input {
  width: 1.25rem;
  min-height: 1.25rem;
}

.familiar-face-choice-list span,
.plan-followup-head div,
.past-feature-action span,
.member-action-result div {
  display: grid;
  gap: var(--theme-space-1);
}

.familiar-face-choice-list small,
.plan-followup small,
.plan-followup-head span,
.plan-followup-boundary,
.confirmed-support-link span {
  color: var(--theme-color-muted);
}

.plan-followup {
  display: grid;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-6));
}

.plan-followup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-4);
}

.plan-followup-head > span,
.completed-private-cue {
  border: 1px solid var(--theme-color-line);
  border-radius: 999px;
  padding: var(--theme-space-1) var(--theme-space-3);
  font-size: var(--theme-font-size-supporting);
}

.completed-private-cue,
.plan-followup-receipt {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-3);
  margin: 0;
}

.plan-followup-featured-actions,
.plan-followup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-3);
}

.plan-followup-featured-actions form,
.plan-followup-actions form {
  height: 100%;
  margin: 0;
}

.plan-followup-actions form {
  display: flex;
}

.plan-followup-actions form button {
  flex: 1;
}

.past-feature-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--theme-space-3);
  width: 100%;
  min-height: 4.5rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3);
  text-align: left;
  text-decoration: none;
}

.past-feature-action svg {
  width: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.past-feature-action.is-selected,
.plan-followup-actions .is-selected {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
}

.plan-followup-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-followup-actions button,
.plan-followup-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-ink);
  padding: var(--theme-space-2);
  text-align: center;
  text-decoration: none;
}

.plan-followup-boundary,
.plan-followup-receipt {
  margin: 0;
  font-size: var(--theme-font-size-supporting);
}

.plan-followup-receipt {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.confirmed-support-link {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-3);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
}

.invitation-more-actions-body {
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-4) var(--theme-space-4);
}

.invitation-more-actions-body a {
  display: grid;
  min-height: var(--theme-control-min-size);
  align-content: center;
  gap: var(--theme-space-1);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3);
  text-decoration: none;
}

.invitation-more-actions-body a span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.confirmed-support-link.is-active-support {
  background: var(--theme-color-brand-soft);
}

.member-action-workspace {
  display: grid;
  gap: var(--theme-space-5);
  width: min(calc(100% - 2rem), 48rem);
  margin-inline: auto;
  padding-block: var(--theme-space-6);
}

.member-action-back {
  justify-self: start;
}

.member-action-invite-header,
.member-action-form,
.member-action-result {
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 5vw, var(--theme-space-6));
}

.member-action-invite-header h1 {
  margin-block: var(--theme-space-2);
}

.member-action-form,
.private-feedback-grid,
.support-choice-list {
  display: grid;
  gap: var(--theme-space-4);
}

.private-feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-feedback-grid label,
.support-note-field {
  display: grid;
  gap: var(--theme-space-2);
}

.support-choice-list {
  border: 0;
  padding: 0;
}

.support-choice-list label,
.support-acknowledgment {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--theme-space-3);
  min-height: var(--theme-control-min-size);
}

.support-choice-list label {
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.support-boundary-note,
.feedback-boundary-note {
  display: grid;
  gap: var(--theme-space-1);
  border-left: 0.2rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-3);
}

.member-action-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--theme-space-3);
}

.member-action-result > span {
  color: var(--theme-color-brand-deep);
  font-size: 1.4rem;
}

.support-member-progress {
  display: grid;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.support-member-progress > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.support-member-progress p,
.support-member-progress form {
  margin: 0;
}

.support-member-action {
  display: grid;
  gap: var(--theme-space-3);
  margin-block: var(--theme-space-2);
  border-left: 0.2rem solid var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-4);
}

.support-member-action form,
.support-member-action label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--theme-space-3);
  align-items: center;
}

.support-member-action button {
  grid-column: 1 / -1;
  justify-self: start;
}

.accommodation-workspace,
.accommodation-operations-workspace {
  gap: var(--theme-space-4);
}

.accommodation-facts,
.accommodation-request,
.accommodation-disclosure,
.operations-case-details {
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(1rem, 3vw, 1.4rem);
}

.accommodation-facts h2,
.accommodation-request h2,
.accommodation-disclosure h2,
.operations-case-details h2 {
  margin: 0 0 var(--theme-space-3);
}

.accommodation-fact-list {
  display: grid;
  gap: var(--theme-space-3);
}

.accommodation-fact-list article {
  border-block-start: 1px solid var(--theme-color-line);
  padding-block-start: var(--theme-space-3);
}

.accommodation-fact-list p,
.accommodation-private-need,
.accommodation-disclosure dl,
.operations-case-details dl {
  margin: var(--theme-space-2) 0 0;
}

.accommodation-private-need {
  display: grid;
  gap: var(--theme-space-2);
  overflow-wrap: anywhere;
}

.accommodation-disclosure dl,
.operations-case-details dl {
  display: grid;
  gap: var(--theme-space-3);
}

.accommodation-disclosure dl div,
.operations-case-details dl div {
  display: grid;
  gap: var(--theme-space-1);
}

.accommodation-disclosure dt,
.operations-case-details dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.accommodation-disclosure dd,
.operations-case-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.accommodation-withdraw {
  border-block-start: 1px solid var(--theme-color-line);
  padding-block-start: var(--theme-space-4);
}

.operations-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-block-end: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.operations-queue-item > div {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}

@media (max-width: 40rem) {
  .operations-queue-item {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-queue-item .button {
    width: 100%;
  }
}

.familiar-connection-list {
  display: grid;
  gap: var(--theme-space-4);
  width: min(calc(100% - 2rem), 62rem);
  margin: 0 auto var(--theme-space-6);
}

.familiar-connection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--theme-space-4);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: var(--theme-space-5);
}

.familiar-connection-initial {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
  font-weight: 700;
}

.familiar-connection-card h2,
.familiar-connection-card p {
  margin-block: 0 var(--theme-space-2);
}

.familiar-connection-card details {
  min-width: 13rem;
}

.familiar-connection-card details[open] {
  grid-column: 1 / -1;
  width: 100%;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.familiar-connection-card summary {
  min-height: var(--theme-control-min-size);
  cursor: pointer;
}

.familiar-connection-card details[open] summary {
  width: fit-content;
  margin-left: auto;
}

.familiar-connection-card form {
  display: grid;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.familiar-connection-card form label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-3);
}

.familiar-connection-card form input[type="checkbox"] {
  width: 1.25rem;
  min-height: 1.25rem;
}

.button-danger {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-error);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-error-soft);
  color: var(--theme-color-error);
}

@media (max-width: 40rem) {
  .operations-page .app-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .operations-page .header-actions {
    width: 100%;
    align-items: flex-start;
    margin-left: 0;
  }

  .operations-page .environment-label {
    max-width: none;
    text-align: left;
  }

  .plan-followup-featured-actions,
  .plan-followup-actions,
  .private-feedback-grid {
    grid-template-columns: 1fr;
  }

  .plan-followup-head,
  .completed-private-cue,
  .plan-followup-receipt,
  .confirmed-support-link {
    align-items: start;
    flex-direction: column;
  }

  .familiar-connection-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .familiar-connection-card details {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .member-app-header {
    align-items: center;
    flex-wrap: nowrap;
  }

  .member-app-header .brand small {
    display: none;
  }

  .member-app-header .header-actions {
    width: auto;
    align-items: center;
    flex-direction: row;
    gap: 0.6rem;
    margin-left: auto;
  }

  .prototype-account-intro {
    grid-template-columns: 1fr;
  }

  .prototype-account-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-context-pills {
    justify-content: flex-start;
  }

  .private-updates-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .private-updates-list time {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 22rem) {
  .member-app-header {
    gap: var(--theme-space-3);
    padding-inline: var(--theme-space-3);
  }

  .member-app-header .brand > span:last-child {
    display: none;
  }

  .member-app-header .brand-mark {
    margin-right: 0;
  }

  .member-app-header .header-actions {
    min-width: 0;
    gap: var(--theme-space-2);
  }
}

@media (max-width: 24rem) {
  .member-header-link {
    font-size: var(--theme-font-size-supporting);
  }

  .prototype-sign-in-card .action-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-account-index > a {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    padding-inline: 0.75rem;
  }
}

/* Guided Invite -> Guests -> Review production workflow. */
.create-invitation-page .app-frame {
  width: min(100%, 74rem);
  background: var(--theme-color-invitation-canvas);
  box-shadow: none;
}

.create-invitation-page .page-shell {
  display: block;
  min-height: 100vh;
  padding: 0 0 5rem;
}

.create-invitation-page .message-stack {
  top: 8.5rem;
}

.create-invitation-page .page-shell:has(> .message-stack) .create-workspace {
  padding-top: calc(clamp(var(--theme-space-5), 5vw, var(--theme-space-7)) + 4rem);
}

.create-app-nav {
  position: sticky;
  top: 0;
  z-index: 6;
}

.create-back {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-1);
  justify-self: start;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.create-back svg,
.create-line-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.create-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 2rem), 48rem);
  margin: 0 auto;
  border-bottom: 1px solid var(--theme-color-line);
}

.create-step-tabs a,
.create-step-tabs span {
  position: relative;
  display: grid;
  min-height: 3.5rem;
  place-items: center;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-decoration: none;
}

.create-step-tabs [aria-current="step"] {
  color: var(--theme-color-ink);
  font-weight: var(--theme-font-weight-strong);
}

.create-step-tabs [aria-current="step"]::after {
  position: absolute;
  right: 1rem;
  bottom: -1px;
  left: 1rem;
  height: 2px;
  background: var(--theme-color-brand-deep);
  content: "";
}

.create-workspace {
  width: min(calc(100% - 2rem), 48rem);
  margin: 0 auto;
  padding-top: clamp(var(--theme-space-5), 5vw, var(--theme-space-7));
}

.create-section-intro {
  max-width: 40rem;
  margin-bottom: var(--theme-space-5);
}

.create-section-intro h2 {
  margin-bottom: var(--theme-space-2);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
}

.create-section-intro > p:last-child,
.create-group-heading p,
.invitation-fit > p,
.automatic-routing p,
.privacy-receipt p,
.review-private-settings p,
.review-decision-note p,
.review-routing p,
.review-timeline p {
  margin-bottom: 0;
  color: var(--theme-color-muted);
}

.create-form {
  display: grid;
  gap: var(--theme-space-4);
}

.create-form > .create-group,
.create-form > .create-actions,
.create-field-grid > *,
.fit-field-grid > * {
  min-width: 0;
}

.create-form > .create-group,
.create-form > .create-actions {
  width: 100%;
}

.activity-chooser,
.invitation-treatment-picker,
.create-language-fields fieldset {
  min-inline-size: 0;
}

.create-group,
.review-preview,
.review-private-settings,
.review-decision-note,
.review-routing,
.review-timeline {
  margin: 0;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-5));
}

.create-group legend {
  padding: 0;
  font-size: 1.15rem;
  font-weight: var(--theme-font-weight-strong);
}

.create-group legend span,
.create-field-grid label > span em,
.decision-context > label:first-child em,
.custom-activity-input em {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  text-transform: none;
}

.activity-search,
.custom-activity-input,
.create-field-grid label,
.fit-field-grid label,
.decision-context {
  display: grid;
  gap: var(--theme-space-2);
}

.activity-search {
  margin-top: var(--theme-space-4);
}

.activity-search > span,
.custom-activity-input > span,
.create-field-grid label > span,
.fit-field-grid label > span,
.decision-context > label:first-child {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.activity-family-list {
  display: grid;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-3);
}

.activity-family {
  border-top: 1px solid var(--theme-color-line);
}

.activity-family > summary,
.create-disclosure > summary,
.familiar-faces > summary,
.invitation-fit details > summary {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  list-style: none;
  cursor: pointer;
}

.activity-family > summary::-webkit-details-marker,
.create-disclosure > summary::-webkit-details-marker,
.familiar-faces > summary::-webkit-details-marker,
.invitation-fit details > summary::-webkit-details-marker {
  display: none;
}

.activity-family > summary span,
.create-disclosure > summary em,
.familiar-faces > summary em {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
}

.activity-family-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-2);
  padding: 0 0 var(--theme-space-3);
}

.activity-family-options label {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  padding: var(--theme-space-2) var(--theme-space-3);
  cursor: pointer;
}

.activity-family-options label:has(input:checked) {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
}

.activity-family-options input {
  width: 1rem;
  min-height: 1rem;
  margin: 0;
}

.custom-activity-input {
  margin-top: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.custom-activity-input[hidden],
details.activity-family[hidden],
label[data-activity-option][hidden],
[data-activity-chooser-controls][hidden],
[data-activity-selection-summary][hidden],
[data-capacity-field][hidden],
[data-update-defaults-row][hidden],
[data-fit-reset][hidden],
[data-creative-applied][hidden],
[data-herespark-applied][hidden],
[data-herespark-applied-link][hidden],
[data-herespark-source-link][hidden],
[data-herespark-schedule-check][hidden],
[data-create-submit-status][hidden] {
  display: none;
}

.custom-activity-input small,
.create-field-grid small,
.decision-context small,
.fit-field-grid small,
.update-defaults small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-regular);
}

.create-group-heading {
  margin-bottom: var(--theme-space-4);
}

.create-group-heading h3,
.automatic-routing h3,
.privacy-receipt h3,
.invitation-fit > h3,
.review-preview > h3,
.review-private-settings h3,
.review-decision-note h3,
.review-routing h3 {
  margin: 0 0 var(--theme-space-1);
  font-size: 1.15rem;
  font-weight: var(--theme-font-weight-strong);
}

.create-field-grid,
.fit-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-4);
}

.create-field-grid .is-wide {
  grid-column: 1 / -1;
}

.create-trip-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: -0.15rem 0 0;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-soft);
  padding: 0.7rem 0.8rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.create-trip-option strong {
  color: var(--theme-color-ink);
}

.create-trip-option a {
  flex: 0 0 auto;
  color: var(--theme-color-brand-deep);
  font-weight: 700;
}

.open-door-studio {
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface);
  padding: 0;
  box-shadow: var(--theme-shadow-surface);
}

.open-door-intro {
  position: relative;
  overflow: hidden;
  padding: var(--theme-space-6) var(--theme-space-5) var(--theme-space-5);
  background: var(--theme-color-brand-deep);
  color: var(--theme-color-on-brand);
}

.open-door-intro::after {
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid currentColor;
  border-radius: 50% 50% 0 0;
  content: "";
  opacity: 0.14;
  transform: rotate(-12deg);
}

.open-door-intro .eyebrow {
  color: inherit;
  opacity: 0.78;
}

.open-door-intro h3 {
  position: relative;
  z-index: 1;
  margin: var(--theme-space-1) 0 0;
  font-family: var(--theme-font-invitation);
  font-size: clamp(2.15rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.open-door-intro > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: var(--theme-space-3) 0 0;
  color: inherit;
  font-size: var(--theme-font-size-supporting);
  opacity: 0.9;
}

.open-door-results {
  padding: var(--theme-space-5);
}

.open-door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--theme-space-3);
}

.open-door {
  min-width: 0;
  border: 1px solid var(--open-door-line);
  border-radius: 7rem 7rem var(--theme-radius-control) var(--theme-radius-control);
  background: var(--open-door-surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.open-door--easy {
  --open-door-surface: var(--theme-color-door-easy-surface);
  --open-door-line: var(--theme-color-door-easy-line);
}

.open-door--local {
  --open-door-surface: var(--theme-color-door-local-surface);
  --open-door-line: var(--theme-color-door-local-line);
}

.open-door--wildcard {
  --open-door-surface: var(--theme-color-door-wildcard-surface);
  --open-door-line: var(--theme-color-door-wildcard-line);
}

.open-door:not([open]):hover {
  box-shadow: var(--theme-shadow-raised);
  transform: translateY(-0.2rem);
}

.open-door[open] {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-invitation-paper);
}

.open-door > summary {
  position: relative;
  display: grid;
  min-height: 17rem;
  align-content: end;
  gap: var(--theme-space-3);
  overflow: hidden;
  border-radius: 7rem 7rem calc(var(--theme-radius-control) - 1px) calc(var(--theme-radius-control) - 1px);
  background: var(--open-door-surface);
  padding: var(--theme-space-6) var(--theme-space-4) var(--theme-space-5);
  color: var(--theme-color-ink);
  cursor: pointer;
  list-style: none;
}

.open-door > summary::-webkit-details-marker {
  display: none;
}

.open-door > summary:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 3px;
}

.open-door[open] > summary {
  min-height: 100%;
  border-radius: calc(var(--theme-radius-surface) - 1px) 0 0 calc(var(--theme-radius-surface) - 1px);
}

.open-door-number {
  position: absolute;
  top: var(--theme-space-4);
  left: 50%;
  color: var(--theme-color-ink-soft);
  font-family: var(--theme-font-invitation);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  opacity: 0.62;
  transform: translateX(-50%);
}

.open-door-summary {
  display: grid;
  gap: var(--theme-space-2);
  min-width: 0;
}

.open-door-summary small,
.open-door-summary em {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
}

.open-door-family {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--open-door-line) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color-surface) 62%, transparent);
  padding: 0.18rem 0.48rem;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  line-height: 1.2;
}

.open-door-summary small {
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.open-door-summary strong {
  font-family: var(--theme-font-invitation);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.12;
}

.open-door-handle {
  position: absolute;
  right: var(--theme-space-4);
  bottom: var(--theme-space-4);
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--open-door-line);
  border-radius: 50%;
  background: var(--theme-color-door-handle);
  box-shadow: 0 0 0 0.2rem var(--open-door-surface);
}

.living-invitation {
  display: grid;
  align-content: start;
  gap: var(--theme-space-4);
  padding: var(--theme-space-6);
}

.living-invitation-author {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.living-invitation-author img {
  border-radius: 0.3rem;
}

.living-invitation h4 {
  max-width: 28ch;
  margin: 0;
  color: var(--theme-color-ink);
  font-family: var(--theme-font-invitation);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.living-invitation-story {
  max-width: 56ch;
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.58;
}

.living-invitation-practical {
  display: flex;
  align-items: flex-start;
  gap: var(--theme-space-2);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.living-invitation-practical span {
  color: var(--open-door-line);
}

.living-invitation-source-links,
.living-invitation-actions,
.living-invitation-remix,
.open-door-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--theme-space-2) var(--theme-space-3);
}

.living-invitation-source-links {
  margin: calc(var(--theme-space-2) * -1) 0 0;
  font-size: var(--theme-font-size-supporting);
}

.living-invitation-source-links a,
.living-invitation-actions a,
.open-door-footer a {
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.living-invitation-actions .button {
  min-width: 10rem;
}

.living-invitation-remix {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.living-invitation-remix > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.living-invitation-remix button,
.open-door-footer button,
.creative-applied-receipt button {
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: underline;
  text-decoration-color: var(--theme-color-line-strong);
  text-underline-offset: 0.2em;
}

.living-invitation-remix button:hover,
.living-invitation-remix button:focus-visible,
.open-door-footer button:hover,
.open-door-footer button:focus-visible {
  text-decoration-color: currentColor;
}

.open-door-footer {
  justify-content: space-between;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-5);
}

.creative-applied-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--theme-space-3);
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
}

.creative-applied-mark {
  color: var(--theme-color-brand-deep);
  font-family: var(--theme-font-invitation);
  font-size: 2rem;
}

.creative-applied-receipt p {
  display: grid;
  gap: 0.1rem;
  margin: 0;
}

.creative-applied-receipt small,
.creative-applied-receipt span:last-child {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.creative-applied-receipt strong {
  color: var(--theme-color-ink);
  font-family: var(--theme-font-invitation);
  font-size: 1.05rem;
}

.create-creative-guide {
  margin-top: var(--theme-space-4);
  border-block: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-2);
}

.create-creative-guide > summary {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  list-style: none;
  cursor: pointer;
}

.create-creative-guide > summary::-webkit-details-marker {
  display: none;
}

.create-creative-guide > summary > span,
.create-creative-guide-body,
.create-creative-guide-body ul,
.create-creative-guide-body li > span,
.create-creative-guide-body li > strong {
  display: grid;
}

.create-creative-guide > summary > span {
  gap: var(--theme-space-1);
}

.create-creative-guide > summary small,
.create-creative-guide > summary em,
.create-creative-guide-body li small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-style: normal;
}

.create-creative-guide-body {
  gap: var(--theme-space-3);
  padding: var(--theme-space-2) 0 var(--theme-space-3);
}

.create-creative-guide-body > p {
  margin: 0;
  color: var(--theme-color-muted);
}

.create-creative-guide-body ul {
  gap: var(--theme-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.create-creative-guide-body li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.55fr) minmax(0, 1.45fr);
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-2);
}

.create-creative-guide-body li small {
  letter-spacing: normal;
  text-transform: none;
}

.create-creative-note {
  border-left: 3px solid var(--theme-color-brand-deep);
  padding-left: var(--theme-space-3);
  color: var(--theme-color-ink-soft);
}

.create-creative-note strong {
  display: block;
  margin-bottom: var(--theme-space-1);
  color: var(--theme-color-ink);
}

.create-creative-truth {
  font-size: var(--theme-font-size-supporting);
}

.create-idea-finder {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand-soft);
}

.create-idea-finder > .button {
  width: 100%;
}

.create-idea-results,
.create-idea-options {
  display: grid;
  gap: var(--theme-space-3);
}

.create-idea-results:not(:empty) {
  margin-top: var(--theme-space-4);
}

.create-idea-options > article {
  display: grid;
  gap: var(--theme-space-2);
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  padding: var(--theme-space-3);
}

.create-idea-options p,
.create-idea-empty,
.applied-idea-receipt p {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.create-idea-option-heading,
.create-idea-option-heading > span,
.applied-idea-heading,
.applied-idea-heading > span,
.schedule-check > span {
  display: flex;
}

.create-idea-option-heading,
.applied-idea-heading {
  align-items: center;
  gap: var(--theme-space-2);
}

.create-idea-option-heading > span,
.applied-idea-heading > span,
.schedule-check > span {
  flex-direction: column;
}

.create-idea-option-heading small,
.applied-idea-heading small,
.schedule-check small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.create-idea-option-heading img,
.applied-idea-heading img {
  border-radius: 0.35rem;
}

.create-idea-options > article > div:last-child,
.applied-idea-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--theme-space-3);
}

.applied-idea-receipt {
  display: grid;
  gap: var(--theme-space-3);
  border-left: 0.3rem solid var(--theme-color-brand);
}

.applied-idea-links a {
  min-height: var(--theme-control-min-size);
  display: inline-flex;
  align-items: center;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.applied-idea-links button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.applied-idea-links button:hover,
.applied-idea-links button:focus-visible {
  color: var(--color-text);
}

.schedule-check {
  display: flex;
  align-items: flex-start;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.schedule-check input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.15rem;
}

html[data-workspace-layout="mobile"] .create-trip-option {
  align-items: flex-start;
  flex-direction: column;
}

html[data-workspace-layout="mobile"] .open-door-results {
  padding: var(--theme-space-4);
}

html[data-workspace-layout="mobile"] .open-door-grid {
  grid-template-columns: minmax(0, 1fr);
}

html[data-workspace-layout="mobile"] .open-door[open] {
  display: block;
  grid-column: auto;
}

html[data-workspace-layout="mobile"] .open-door > summary,
html[data-workspace-layout="mobile"] .open-door[open] > summary {
  min-height: 13rem;
  border-radius: 7rem 7rem calc(var(--theme-radius-control) - 1px) calc(var(--theme-radius-control) - 1px);
}

html[data-workspace-layout="mobile"] .living-invitation {
  padding: var(--theme-space-5) var(--theme-space-4);
}

html[data-workspace-layout="mobile"] .open-door-footer {
  align-items: flex-start;
  flex-direction: column;
  padding-inline: var(--theme-space-4);
}

html[data-workspace-layout="mobile"] .creative-applied-receipt {
  grid-template-columns: auto minmax(0, 1fr);
}

html[data-workspace-layout="mobile"] .creative-applied-receipt button {
  grid-column: 2;
  justify-self: start;
}

html[data-workspace-layout="mobile"] .create-creative-guide-body li {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--theme-space-2);
}

@media (max-width: 520px) {
  .create-trip-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .open-door-results {
    padding: var(--theme-space-4);
  }

  .open-door-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .open-door[open] {
    display: block;
    grid-column: auto;
  }

  .open-door > summary,
  .open-door[open] > summary {
    min-height: 13rem;
    border-radius: 7rem 7rem calc(var(--theme-radius-control) - 1px) calc(var(--theme-radius-control) - 1px);
  }

  .living-invitation {
    padding: var(--theme-space-5) var(--theme-space-4);
  }

  .open-door-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: var(--theme-space-4);
  }

  .creative-applied-receipt {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .creative-applied-receipt button {
    grid-column: 2;
    justify-self: start;
  }

  .create-creative-guide-body li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--theme-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .open-door {
    transition: none;
  }

  .open-door:not([open]):hover {
    transform: none;
  }
}

.create-disclosure {
  padding: 0;
}

.create-disclosure > summary {
  padding: var(--theme-space-4) var(--theme-space-5);
}

.create-disclosure > summary > span,
.familiar-faces > summary > span:nth-child(2) {
  display: grid;
}

.create-disclosure > summary small,
.familiar-faces > summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-regular);
}

.create-disclosure-body {
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4) var(--theme-space-5);
}

.create-policy-rows {
  display: grid;
  border-top: 1px solid var(--theme-color-line);
  padding: 0 var(--theme-space-5) var(--theme-space-4);
}

.create-policy-rows p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--theme-space-2);
  margin: 0;
  border-bottom: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.create-policy-rows p > span {
  grid-row: 1 / 3;
  color: var(--theme-color-confirm);
}

.create-policy-rows small {
  color: var(--theme-color-muted);
}

.field-error {
  color: var(--theme-color-error) !important;
  font-size: var(--theme-font-size-supporting);
}

.create-error-summary {
  margin-bottom: var(--theme-space-4);
  border: 1px solid var(--theme-color-error);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-error-soft);
  padding: var(--theme-space-4);
}

.create-recovery-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-3);
  margin-bottom: var(--theme-space-4);
  border: 1px solid var(--theme-color-brand-deep);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-soft);
  padding: var(--theme-space-4);
}

.create-recovery-receipt > span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-color-brand-deep);
  color: var(--theme-color-on-brand);
  font-weight: var(--theme-font-weight-strong);
}

.create-recovery-receipt > span:last-child {
  display: grid;
  gap: var(--theme-space-1);
}

.create-recovery-receipt small {
  color: var(--theme-color-ink-soft);
}

.create-error-summary h2 {
  font-size: 1rem;
}

.create-error-summary ul {
  margin-bottom: 0;
}

.create-actions {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.create-actions a {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  color: var(--theme-color-brand-deep);
}

.create-actions button,
.create-empty-action,
.out-header-actions a {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  padding: 0 var(--theme-space-5);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
  cursor: pointer;
}

.create-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.create-submit-status {
  margin-left: auto;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.familiar-faces {
  padding-block: var(--theme-space-2);
}

.familiar-faces > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.create-line-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--theme-color-brand-deep);
}

.create-empty-note {
  margin: var(--theme-space-2) 0 0;
  border-top: 1px solid var(--theme-color-line);
  color: var(--theme-color-muted);
  padding: var(--theme-space-4) 0;
}

.automatic-routing,
.privacy-receipt,
.review-routing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--theme-space-3);
}

.privacy-receipt {
  grid-template-columns: minmax(0, 1fr) auto;
}

.automatic-routing > strong,
.privacy-receipt > strong {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  white-space: nowrap;
}

.invitation-fit > p {
  font-size: var(--theme-font-size-supporting);
}

.invitation-fit details {
  margin-top: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
}

.invitation-fit details > summary {
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.fit-field-grid {
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.fit-field-grid label {
  align-content: start;
}

.fit-field-grid button {
  justify-self: start;
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.update-defaults {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.update-defaults input {
  width: 1.25rem;
  min-height: 1.25rem;
}

.update-defaults span {
  display: grid;
}

.review-workspace {
  display: grid;
  gap: var(--theme-space-4);
}

.review-preview > h3 {
  margin-bottom: var(--theme-space-4);
}

.review-preview .prototype-invitation-card {
  box-shadow: none;
}

.review-term-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-3);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.review-term-row span {
  border-right: 1px solid var(--theme-color-line);
  padding-right: var(--theme-space-2);
}

.review-private-settings .eyebrow {
  margin-bottom: var(--theme-space-2);
}

.review-decision-note {
  margin-top: var(--theme-space-5);
}

.review-timeline {
  display: grid;
  gap: var(--theme-space-4);
  list-style: none;
}

.review-timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--theme-space-3);
}

.review-timeline li > span {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.2rem;
  border: 2px solid var(--theme-color-line-strong);
  border-radius: 50%;
}

.review-timeline li.is-complete > span {
  border-color: var(--theme-color-confirm);
  background: var(--theme-color-confirm);
}

.review-timeline li.is-active > span {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
}

.review-timeline strong {
  font-weight: var(--theme-font-weight-strong);
}

.review-timeline p {
  margin-top: var(--theme-space-1);
  font-size: var(--theme-font-size-supporting);
}

.review-submit {
  margin-top: 0;
}

.review-submit > strong {
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.out-header-actions {
  display: flex;
  align-items: center;
  gap: var(--theme-space-3);
}

.out-header-actions a {
  min-height: var(--theme-control-min-size);
  padding-inline: var(--theme-space-4);
  font-size: var(--theme-font-size-supporting);
}

.create-empty-action {
  width: fit-content;
  margin: var(--theme-space-4) auto 0;
}

.hosted-card-action {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-color-line);
  border-top: 0;
  border-radius: 0 0 var(--theme-radius-surface) var(--theme-radius-surface);
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.prototype-invitation-card:has(+ .hosted-card-action) {
  border-radius: var(--theme-radius-surface) var(--theme-radius-surface) 0 0;
}

.prototype-invitation-card:has(+ .host-response) {
  border-bottom: 0;
  border-radius: var(--theme-radius-surface) var(--theme-radius-surface) 0 0;
  padding-bottom: 0;
}

.host-response {
  margin-top: var(--theme-space-3);
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.prototype-invitation-card + .host-response {
  margin-top: 0;
  border-radius: 0 0 var(--theme-radius-surface) var(--theme-radius-surface);
}

.host-response-empty {
  margin: var(--theme-space-3) 0 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.confirmation-counterpart {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  padding: var(--theme-space-4);
}

.host-response > .confirmation-counterpart {
  border-top: 0;
}

.confirmation-counterpart-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-3);
}

.confirmation-counterpart-identity img,
.confirmation-counterpart-initial {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
  font-size: 1.15rem;
  font-weight: var(--theme-font-weight-strong);
}

.confirmation-counterpart-identity img {
  object-fit: cover;
  object-position: center;
}

.on-counterpart-summary {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  min-height: 4.75rem;
  align-items: center;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  padding: 0.7rem var(--theme-space-4);
}

.on-counterpart-photo,
.on-counterpart-initial {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 0.95rem;
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
  font-size: 1rem;
  font-weight: var(--theme-font-weight-strong);
}

.on-counterpart-photo {
  object-fit: cover;
  object-position: center;
}

.on-counterpart-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.on-counterpart-summary small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.on-counterpart-summary strong {
  color: var(--theme-color-ink);
  font-size: 0.94rem;
  font-weight: var(--theme-font-weight-strong);
}

.on-counterpart-summary > span:last-child > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.on-plan-disclosure {
  margin: 0 var(--theme-space-4) var(--theme-space-3);
}

.on-plan-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 3.5rem;
  align-items: center;
  gap: var(--theme-space-3);
  list-style: none;
  cursor: pointer;
}

.on-plan-disclosure > summary::-webkit-details-marker {
  display: none;
}

.on-plan-disclosure > summary > span:first-child,
.on-plan-disclosure > summary small {
  display: grid;
}

.on-plan-disclosure > summary strong {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.on-plan-disclosure > summary small {
  margin-top: 0.1rem;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.on-plan-disclosure[open] > summary {
  border-bottom: 1px solid var(--theme-color-line);
}

.on-plan-disclosure:not([open]) .when-open,
.on-plan-disclosure[open] .when-closed {
  display: none;
}

.on-plan-disclosure[open] .prototype-review-action i {
  transform: rotate(225deg);
}

.on-plan-disclosure-body {
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
}

.on-plan-disclosure-body > .confirmation-counterpart {
  border-top: 0;
}

.on-plan-disclosure-body > .confirmed-plan {
  border-top: 1px solid var(--theme-color-line);
}

.on-plan-disclosure-body > .prototype-lifecycle-disclosure,
.on-plan-disclosure-body > .confirmed-support-link {
  margin-inline: var(--theme-space-4);
}

.confirmation-counterpart-identity p,
.confirmation-counterpart-identity h4,
.confirmation-counterpart-intro,
.confirmation-counterpart-guidance,
.confirmation-identity-receipt,
.host-selection-copy p,
.host-selection-copy h4,
.final-confirmation h4,
.confirmation-rows p,
.confirmation-saved,
.host-confirmed-receipt {
  margin: 0;
}

.confirmation-counterpart-identity p,
.host-selection-copy p,
.final-confirmation header p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.confirmation-counterpart-identity h4,
.host-selection-copy h4,
.final-confirmation h4 {
  color: var(--theme-color-ink);
  font-size: 1rem;
  font-weight: var(--theme-font-weight-strong);
}

.confirmation-counterpart-identity small,
.confirmation-counterpart-intro,
.confirmation-counterpart-guidance,
.confirmation-identity-receipt,
.host-selection-copy span,
.host-confirmed-receipt span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.confirmation-counterpart-guidance {
  display: grid;
  gap: var(--theme-space-1);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-3);
}

.confirmation-counterpart-guidance strong {
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
}

.confirmation-identity-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--theme-space-2);
}

.confirmation-identity-receipt > span {
  grid-row: 1 / 3;
  color: var(--theme-color-confirm);
}

.confirmation-identity-receipt small {
  display: block;
  color: var(--theme-color-muted);
}

.host-selection-copy,
.host-selection-form,
.final-confirmation,
.confirmed-plan,
.host-confirmed-receipt {
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
}

.host-selection-copy {
  display: grid;
  gap: var(--theme-space-1);
}

.host-selection-copy.is-compact-task {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-2) var(--theme-space-3);
  padding: var(--theme-space-2) var(--theme-space-4);
}

.host-selection-copy.is-compact-task .host-response-deadline {
  margin: 0;
  text-align: right;
}

.host-response-deadline {
  display: block;
  margin-top: var(--theme-space-2);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.host-selection-form {
  display: grid;
  gap: var(--theme-space-3);
  background: var(--theme-color-surface-soft);
}

.host-extension-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--theme-space-2) var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  padding: var(--theme-space-3) var(--theme-space-4) var(--theme-space-4);
}

.host-extension-form button:first-of-type {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.host-extension-form small {
  grid-column: 1 / -1;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

@media (max-width: 32rem) {
  .host-extension-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .host-extension-form button {
    width: 100%;
  }
}

.host-decline-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-2) var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-4) var(--theme-space-4);
}

.host-decline-form button {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-control);
  color: var(--theme-color-ink-soft);
  padding-inline: var(--theme-space-4);
  cursor: pointer;
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
}

.host-decline-form small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

.host-decline-form :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

@media (max-width: 32rem) {
  .host-decline-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.host-selection-form label {
  display: grid;
  gap: var(--theme-space-2);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.host-selection-form input,
.host-selection-form textarea {
  width: 100%;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  padding: var(--theme-space-3);
  color: var(--theme-color-ink);
  font: inherit;
  font-weight: var(--theme-font-weight-regular);
}

.host-selection-form input {
  min-height: var(--theme-control-min-size);
}

.host-selection-form small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-regular);
}

.host-selection-form button,
.confirmation-actions button {
  min-height: 52px;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-control);
  color: var(--theme-color-ink);
  padding-inline: var(--theme-space-4);
  cursor: pointer;
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
}

.host-selection-form button,
.confirmation-actions button.is-primary {
  border-color: var(--theme-color-brand);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.host-selection-form :focus-visible,
.final-confirmation-form :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

.final-confirmation-disclosure {
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
}

.final-confirmation-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  gap: var(--theme-space-1) var(--theme-space-3);
  padding: var(--theme-space-2) var(--theme-space-3);
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  list-style: none;
}

.final-confirmation-disclosure > summary::-webkit-details-marker {
  display: none;
}

.final-confirmation-disclosure > summary span,
.final-confirmation-disclosure > summary small {
  display: block;
}

.final-confirmation-disclosure > summary span {
  font-weight: var(--theme-font-weight-strong);
}

.final-confirmation-disclosure > summary small {
  margin-top: var(--theme-space-1);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.final-confirmation-disclosure > summary i {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.final-confirmation-disclosure[open] > summary i {
  transform: rotate(225deg);
}

.final-confirmation-disclosure-body {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-3);
}

.final-confirmation {
  display: grid;
  gap: var(--theme-space-3);
  background: var(--theme-color-surface-soft);
}

.final-confirmation > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.final-confirmation > header time {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  white-space: nowrap;
}

.confirmation-rows,
.confirmation-locked-details {
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
}

.confirmation-rows p,
.confirmation-locked-details > div {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  padding: var(--theme-space-2) var(--theme-space-3);
}

.confirmation-rows p + p,
.confirmation-locked-details > div + div {
  border-top: 1px solid var(--theme-color-line);
}

.confirmation-rows span,
.confirmation-locked-details dt,
.confirmation-locked-details dd {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.confirmation-rows strong {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.confirmation-locked-details {
  margin: 0;
}

.confirmation-locked-details dd {
  margin: 0;
  text-align: right;
}

.final-confirmation-form {
  display: grid;
  gap: var(--theme-space-3);
}

.confirmation-cost-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-3);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.confirmation-cost-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--theme-color-brand-deep);
}

.confirmation-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--theme-space-2);
}

.confirmation-saved {
  display: grid;
  gap: var(--theme-space-1);
  border-left: 3px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
  padding: var(--theme-space-3);
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.confirmation-saved span {
  color: var(--theme-color-muted);
}

.together-seal {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-4);
  color: var(--theme-color-confirm);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-invitation-card > .together-seal {
  display: flex;
  width: auto;
  min-height: 3.5rem;
  margin: 0;
  border-bottom: 1px solid var(--theme-color-line);
  padding: 0 var(--theme-space-4);
}

.together-seal svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.together-seal.is-past {
  color: var(--theme-color-muted);
}

.confirmed-plan {
  display: grid;
  gap: var(--theme-space-3);
  background: var(--theme-color-confirm-soft);
}

.confirmed-plan.is-past {
  background: var(--theme-color-surface-soft);
}

.prototype-past-collection {
  margin-top: clamp(2.5rem, 7vw, 5rem);
  scroll-margin-top: 7rem;
}

.prototype-invitation-card[id] {
  scroll-margin-top: 8rem;
}

.prototype-lifecycle-disclosure {
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
}

.prototype-lifecycle-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-3);
  padding: var(--theme-space-3) var(--theme-space-4);
  color: var(--theme-color-ink-soft);
  cursor: pointer;
  list-style: none;
}

.prototype-lifecycle-disclosure > summary::-webkit-details-marker {
  display: none;
}

.prototype-lifecycle-disclosure > summary span,
.prototype-lifecycle-disclosure > summary small {
  display: block;
}

.prototype-lifecycle-disclosure > summary strong {
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-lifecycle-disclosure > summary small {
  margin-top: var(--theme-space-1);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.prototype-lifecycle-disclosure > summary i {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.prototype-lifecycle-disclosure[open] > summary i {
  transform: rotate(225deg);
}

.prototype-lifecycle-disclosure form {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-error-soft);
  padding: var(--theme-space-4);
}

.prototype-lifecycle-disclosure form p,
.prototype-lifecycle-disclosure form label,
.prototype-cancellation-receipt {
  margin: 0;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.45;
}

.prototype-lifecycle-disclosure form label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-2);
  color: var(--theme-color-ink-soft);
}

.prototype-lifecycle-disclosure form input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--theme-color-error);
}

.prototype-lifecycle-disclosure form button {
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-error);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-error);
  padding-inline: var(--theme-space-4);
  color: var(--theme-color-surface);
  cursor: pointer;
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
}

.prototype-lifecycle-disclosure form.continuity-arrival-form,
.prototype-lifecycle-disclosure form.continuity-material-form {
  background: var(--theme-color-surface-soft);
}

.prototype-lifecycle-disclosure form .continuity-field {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--theme-space-2);
  font-weight: var(--theme-font-weight-strong);
}

.prototype-lifecycle-disclosure form .continuity-field input,
.prototype-lifecycle-disclosure form .continuity-field textarea {
  width: 100%;
  height: auto;
  min-height: var(--theme-control-min-size);
  margin: 0;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface-control);
  color: var(--theme-color-ink);
  padding: var(--theme-space-3);
  font: inherit;
}

.prototype-lifecycle-disclosure form .continuity-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.prototype-lifecycle-disclosure form.continuity-arrival-form button {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
}

.prototype-lifecycle-disclosure form.continuity-material-form button {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.prototype-lifecycle-disclosure :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

.prototype-lifecycle-disclosure.is-host-withdrawal,
.prototype-lifecycle-disclosure.is-guest-withdrawal {
  margin-top: var(--theme-space-3);
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  box-shadow: var(--theme-shadow-surface);
}

/* DEC-119: keep repeated Out decisions compact until a Host opens one review. */
.prototype-invitation-card.is-host-decision .invitation-preview-person-intro,
.prototype-invitation-card.is-host-decision .invitation-preview-note {
  display: none;
}

.prototype-invitation-card.is-host-decision
  .invitation-state-receipt
  > strong
  + span {
  display: none;
}

.prototype-invitation-card.is-host-decision .invitation-state-receipt {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--theme-space-2) var(--theme-space-3);
}

.prototype-invitation-card.is-host-decision .invitation-state-receipt time {
  text-align: right;
}

.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision) {
  gap: 0;
}

.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision)
  > .prototype-invitation-card {
  border-radius: var(--theme-invitation-paper-radius)
    var(--theme-invitation-paper-radius) 0 0;
  padding-bottom: 0;
  box-shadow: var(--theme-shadow-invitation-paper);
}

.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision)
  > .host-response {
  margin: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision)
  > .prototype-lifecycle-disclosure.is-host-withdrawal {
  margin: 0;
  border-top: 0;
  border-radius: 0 0 var(--theme-radius-surface) var(--theme-radius-surface);
  box-shadow: none;
}

.host-decision-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--theme-space-2);
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-surface);
  padding: var(--theme-space-3) var(--theme-space-4);
}

.host-decision-row > .host-selection-disclosure {
  min-width: 0;
  border: 0;
  background: transparent;
}

.host-decision-row > .host-selection-disclosure > summary {
  min-height: 52px;
  border: 1px solid var(--theme-color-brand);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand);
  padding: var(--theme-space-2) var(--theme-space-3);
}

.host-decision-row > .host-selection-disclosure > summary strong,
.host-decision-row > .host-selection-disclosure > summary small,
.host-decision-row > .host-selection-disclosure > summary .prototype-review-action {
  color: var(--theme-color-surface);
}

.host-decision-row > .host-selection-disclosure > summary strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.host-decision-row > .host-selection-disclosure[open] {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
}

.host-decision-row > .host-selection-disclosure[open] > summary {
  border: 0;
  border-bottom: 1px solid var(--theme-color-line);
  border-radius: 0;
}

.host-decision-review {
  display: grid;
  background: var(--theme-color-surface);
}

.host-decision-label,
.host-decision-note h4,
.host-decision-note p,
.host-decision-impact {
  margin: 0;
}

.host-decision-label,
.host-decision-note h4 {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.host-decision-guest > .host-decision-label {
  padding: var(--theme-space-3) var(--theme-space-4) 0;
}

.host-decision-guest > .confirmation-counterpart {
  border-top: 0;
}

.host-decision-note {
  display: grid;
  gap: var(--theme-space-2);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
}

.host-decision-note p {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.5;
}

.host-decision-row > .host-decline-form.is-compact-action {
  display: block;
  border: 0;
  padding: 0;
}

.host-decision-row > .host-decline-form.is-compact-action button {
  width: 100%;
  min-height: 52px;
}

.host-decision-row
  > .host-selection-disclosure[open]
  + .host-decline-form.is-compact-action {
  grid-column: 1 / -1;
  width: fit-content;
}

.host-decision-impact {
  grid-column: 1 / -1;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.4;
}

@media (max-width: 18.75rem) {
  .host-decision-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .host-decision-row > .host-selection-disclosure,
  .host-decision-row > .host-decline-form.is-compact-action,
  .host-decision-impact {
    grid-column: 1;
  }
}

@media (forced-colors: active) {
  .host-decision-row > .host-selection-disclosure > summary {
    border: 2px solid ButtonText;
    background: ButtonFace;
  }

  .host-decision-row > .host-selection-disclosure > summary strong,
  .host-decision-row > .host-selection-disclosure > summary small,
  .host-decision-row > .host-selection-disclosure > summary .prototype-review-action {
    color: ButtonText;
  }
}

.prototype-cancellation-receipt {
  display: grid;
  gap: var(--theme-space-1);
  border-left: 3px solid var(--theme-color-muted);
  background: var(--theme-color-surface);
  padding: var(--theme-space-3);
}

.prototype-cancellation-receipt strong {
  color: var(--theme-color-ink-soft);
}

.confirmed-plan > header,
.confirmed-plan dl > div,
.confirmed-contact {
  display: grid;
  gap: var(--theme-space-1);
}

.confirmed-plan > header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.confirmed-plan > header span,
.confirmed-plan dt,
.confirmed-contact small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.confirmed-plan dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  border-bottom: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.confirmed-plan dd {
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.confirmed-contact a {
  width: fit-content;
  color: var(--theme-color-brand-deep);
  overflow-wrap: anywhere;
}

.confirmed-calendar-link {
  display: grid;
  gap: var(--theme-space-1);
  margin: 0;
  padding-top: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
}

.confirmed-calendar-link a {
  width: fit-content;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.confirmed-calendar-link span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.day-of-open-link {
  display: grid;
  gap: var(--theme-space-1);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
  background: var(--theme-color-confirm-soft);
}

.day-of-open-link a {
  width: fit-content;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.day-of-open-link span,
.day-of-external-note,
.day-of-contact p,
.day-of-access p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.5;
}

/* DEC-117: glanceable On summaries; the focused route owns day-of detail. */
.on-upcoming-summary {
  display: grid;
  min-width: 0;
  overflow: hidden;
  margin-top: var(--theme-space-3);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-invitation-paper);
}

.on-upcoming-summary.is-next {
  border-color: var(--theme-color-invitation-seal);
  box-shadow: var(--theme-shadow-raised);
}

.on-upcoming-summary-header {
  display: grid;
  grid-template-columns: calc(var(--theme-invitation-seal-size) * 0.72) minmax(0, 1fr);
  align-items: start;
  gap: var(--theme-space-3);
  border-top: 0.1875rem solid var(--theme-color-invitation-seal);
  background: var(--theme-color-invitation-header);
  padding: var(--theme-space-4);
}

.treatment-garden .on-upcoming-summary-header {
  background: var(--theme-color-invitation-treatment-garden-header);
  box-shadow: inset 0 -0.125rem var(--theme-color-invitation-treatment-garden-detail);
}

.treatment-evening .on-upcoming-summary-header {
  background: var(--theme-color-invitation-treatment-evening-header);
  box-shadow: inset 0 -0.125rem var(--theme-color-invitation-treatment-evening-detail);
}

.on-upcoming-summary-header .invitation-seal {
  width: calc(var(--theme-invitation-seal-size) * 0.72);
  height: calc(var(--theme-invitation-seal-size) * 0.82);
}

.on-upcoming-summary-header > div,
.on-upcoming-summary-status,
.on-upcoming-summary-facts > div {
  min-width: 0;
}

.on-upcoming-summary-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-2);
  margin: 0 0 var(--theme-space-1);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.on-upcoming-summary-status strong {
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.on-upcoming-summary-status span {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-1);
  color: var(--theme-color-confirm);
  font-weight: var(--theme-font-weight-strong);
}

.on-upcoming-summary-status svg,
.on-upcoming-summary-trip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.on-upcoming-summary-category {
  margin: 0;
  color: var(--theme-color-invitation-seal);
  font-size: var(--theme-font-size-invitation-meta);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.on-upcoming-summary h3 {
  margin: var(--theme-space-1) 0 0;
  color: var(--theme-color-ink);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.on-upcoming-summary-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 var(--theme-space-4);
}

.on-upcoming-summary-facts > div {
  display: grid;
  gap: 0.12rem;
  border-bottom: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.on-upcoming-summary-facts > div:nth-child(2) {
  border-left: 1px solid var(--theme-color-line);
  padding-left: var(--theme-space-3);
}

.on-upcoming-summary-facts > div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.on-upcoming-summary-facts dt {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.on-upcoming-summary-facts dd {
  margin: 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.on-upcoming-summary-trip {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2);
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
  color: var(--theme-color-brand-deep);
  padding: var(--theme-space-3) var(--theme-space-4);
  font-size: var(--theme-font-size-supporting);
}

.on-upcoming-summary-action {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--theme-color-line-strong);
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.on-upcoming-summary.is-next .on-upcoming-summary-action {
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
}

.on-upcoming-summary-action:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.on-upcoming-summary.is-later .on-upcoming-summary-header {
  grid-template-columns: calc(var(--theme-invitation-seal-size) * 0.58) minmax(0, 1fr);
  padding-block: var(--theme-space-3);
}

.on-upcoming-summary.is-later .invitation-seal {
  width: calc(var(--theme-invitation-seal-size) * 0.58);
  height: calc(var(--theme-invitation-seal-size) * 0.66);
}

.on-upcoming-summary.is-later .on-upcoming-summary-status {
  justify-content: flex-end;
}

.on-upcoming-summary.is-later h3 {
  font-size: 1rem;
}

.on-upcoming-summary.is-later .on-upcoming-summary-facts > div {
  padding-block: var(--theme-space-2);
}

.day-of-workspace {
  width: min(100%, 52rem);
}

.prototype-invitation-card.is-day-of {
  overflow: hidden;
}

.day-of-companion {
  display: grid;
}

.day-of-companion > .invitation-people-details,
.day-of-section,
.day-of-companion > .prototype-lifecycle-disclosure,
.day-of-companion > .confirmed-support-link {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--theme-color-line);
  border-radius: 0;
  box-shadow: none;
}

.day-of-section {
  display: grid;
  gap: var(--theme-space-3);
  padding: var(--theme-space-5) var(--theme-space-4);
  background: var(--theme-color-surface);
}

.day-of-section > header {
  display: grid;
  gap: var(--theme-space-1);
}

.day-of-section h2,
.day-of-section p,
.day-of-section header p {
  margin: 0;
}

.day-of-section h2 {
  color: var(--theme-color-ink);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  letter-spacing: -0.025em;
}

.day-of-plan {
  background: var(--theme-color-confirm-soft);
}

.day-of-plan dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--theme-color-line);
}

.day-of-plan dl > div {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
  border-bottom: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) 0;
}

.day-of-plan dl > div:nth-child(odd) {
  padding-right: var(--theme-space-3);
}

.day-of-plan dl > div:nth-child(even) {
  border-left: 1px solid var(--theme-color-line);
  padding-left: var(--theme-space-3);
}

.day-of-plan dt,
.day-of-fact-list small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.day-of-plan dd {
  margin: 0;
  color: var(--theme-color-ink-soft);
  overflow-wrap: anywhere;
}

.day-of-handoffs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2);
}

.day-of-handoffs .button,
.day-of-change-guidance .button {
  min-height: var(--theme-control-min-size);
  align-content: center;
  text-align: center;
}

.day-of-fact-list {
  display: grid;
  gap: var(--theme-space-2);
}

.day-of-fact-list article,
.day-of-accommodation-outcome {
  display: grid;
  gap: var(--theme-space-1);
  border-left: 3px solid var(--theme-color-brand);
  padding: var(--theme-space-2) var(--theme-space-3);
  background: var(--theme-color-surface-soft);
}

.day-of-fact-list span,
.day-of-accommodation-outcome span {
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
}

.day-of-contact > a,
.day-of-access > a {
  width: fit-content;
  color: var(--theme-color-brand-deep);
  overflow-wrap: anywhere;
}

.day-of-change-guidance {
  display: grid;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
  background: var(--theme-color-surface-soft);
}

.day-of-change-guidance p {
  margin: 0;
  color: var(--theme-color-ink-soft);
}

.first-spark {
  position: relative;
  display: grid;
  gap: var(--theme-space-4);
  overflow: hidden;
  border: 1px solid var(--theme-color-line-strong);
  border-top: 4px solid var(--theme-color-brand);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: clamp(var(--theme-space-4), 4vw, var(--theme-space-6));
  box-shadow: var(--theme-shadow-surface);
}

.empty-in-activation {
  isolation: isolate;
  border-color: var(--theme-color-brand);
  background:
    linear-gradient(135deg, var(--theme-color-brand-soft), transparent 52%),
    var(--theme-color-surface);
}

.first-spark-opening {
  position: absolute;
  z-index: -1;
  top: var(--theme-space-4);
  right: clamp(var(--theme-space-4), 5vw, var(--theme-space-7));
  width: clamp(4.5rem, 10vw, 7rem);
  height: clamp(5.75rem, 13vw, 9rem);
  border: 2px solid var(--theme-color-brand);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.18;
}

.first-spark-opening span {
  position: absolute;
  inset: 0.75rem 0.75rem 0;
  border: 1px solid var(--theme-color-brand-deep);
  border-bottom: 0;
  border-radius: inherit;
}

.first-spark-opening i {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--theme-color-brand-deep);
}

.invitation-first-spark,
.profile-first-spark,
.first-spark-staged {
  margin-bottom: var(--theme-space-6);
}

.first-spark-heading {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(48rem, calc(100% - clamp(4rem, 12vw, 8rem)));
  gap: var(--theme-space-2);
}

.first-spark-heading h2,
.first-spark-heading p,
.first-spark-actions h3,
.first-spark-actions p,
.first-spark-selection,
.first-spark-prompt {
  margin: 0;
}

.first-spark-heading h2 {
  color: var(--theme-color-ink);
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.first-spark-heading > p:last-child,
.first-spark-actions section p:not(.eyebrow),
.first-spark-path small,
.first-spark-prompt {
  color: var(--theme-color-muted);
  line-height: 1.5;
}

.first-spark-choices {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.75rem, 1fr));
  gap: var(--theme-space-2);
}

.first-spark-choices a {
  display: grid;
  min-height: var(--theme-control-min-size);
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 999px;
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-ink-soft);
  padding: var(--theme-space-2) var(--theme-space-3);
  text-align: center;
  text-decoration: none;
}

.empty-in-activation .first-spark-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-in-activation .first-spark-choices a {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--theme-space-2);
  justify-items: start;
  border-radius: var(--theme-radius-control);
  background: color-mix(in srgb, var(--theme-color-surface) 88%, transparent);
  text-align: left;
}

.empty-in-activation .first-spark-choices a::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--theme-color-brand);
  border-radius: 50%;
  content: "";
}

.first-spark-choices a:hover,
.first-spark-choices a:focus-visible {
  border-color: var(--theme-color-brand);
  color: var(--theme-color-brand-deep);
}

.first-spark-choices a[aria-current="true"] {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.first-spark-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-block: 1px solid var(--theme-color-line);
}

.first-spark-route-key {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 47rem;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.first-spark-route-key li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--theme-space-2);
  border-block: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3);
}

.first-spark-route-key li + li {
  border-left: 1px solid var(--theme-color-line);
}

.first-spark-route-key span {
  grid-row: 1 / span 2;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.first-spark-route-key strong,
.first-spark-route-key small {
  min-width: 0;
}

.first-spark-route-key strong {
  color: var(--theme-color-ink);
}

.first-spark-route-key small {
  color: var(--theme-color-muted);
}

.first-spark-actions > section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: var(--theme-space-3);
  padding: var(--theme-space-4);
}

.first-spark-actions > section + section {
  border-left: 1px solid var(--theme-color-line);
}

.first-spark-actions section > div {
  display: grid;
  align-content: start;
  gap: var(--theme-space-2);
}

.first-spark-action-mark,
.first-spark-path > li > span,
.first-spark-selection > span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.first-spark-actions h3 {
  color: var(--theme-color-ink);
  font-size: 1rem;
}

.first-spark-actions a,
.first-spark-inline-action,
.empty-state-actions a {
  display: inline-flex;
  width: fit-content;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  border-radius: var(--theme-radius-control);
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-underline-offset: 0.16em;
}

.first-spark-prompt,
.first-spark-selection {
  display: flex;
  align-items: center;
  gap: var(--theme-space-3);
}

.first-spark-start {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-4);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.first-spark-start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--theme-space-2) var(--theme-space-4);
}

.first-spark-start-actions a {
  display: inline-flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
  text-underline-offset: 0.16em;
}

.first-spark-start-actions .first-spark-primary-action {
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand-deep);
  padding: var(--theme-space-2) var(--theme-space-4);
  color: var(--theme-color-on-brand);
  text-decoration: none;
}

.first-spark-selection {
  border-left: 3px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
  padding: var(--theme-space-3) var(--theme-space-4);
  color: var(--theme-color-ink-soft);
}

.first-spark-selection > span:first-child {
  flex: 0 0 auto;
  border-color: var(--theme-color-confirm);
  color: var(--theme-color-confirm);
}

.first-spark-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.first-spark-path li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--theme-space-2) var(--theme-space-3);
}

.first-spark-path strong,
.first-spark-path small {
  grid-column: 2;
}

.first-spark-path > li > span {
  grid-row: 1 / span 2;
}

.first-spark-staged {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-4);
}

.empty-state-actions .create-empty-action {
  margin: 0;
}

@media (max-width: 50rem) {
  .first-spark-actions,
  .first-spark-path,
  .first-spark-staged {
    grid-template-columns: 1fr;
  }

  .first-spark-actions > section + section {
    border-top: 1px solid var(--theme-color-line);
    border-left: 0;
  }

  .first-spark-actions > section {
    padding-inline: 0;
  }

  .first-spark-staged {
    align-items: start;
  }

  .empty-in-activation .first-spark-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .first-spark-start {
    align-items: start;
    flex-direction: column;
  }

  .first-spark-start-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 25rem) {
  .first-spark-selection,
  .first-spark-prompt {
    align-items: start;
  }

  .first-spark-heading {
    max-width: 100%;
    padding-right: var(--theme-space-6);
  }

  .first-spark-opening {
    top: var(--theme-space-3);
    right: var(--theme-space-3);
    width: 3rem;
    height: 4rem;
  }

  .first-spark-route-key,
  .first-spark-route-key {
    grid-template-columns: 1fr;
  }

  .first-spark-route-key li + li {
    border-top: 0;
    border-left: 0;
  }

  .first-spark-start-actions,
  .first-spark-start-actions a {
    width: 100%;
  }
}

.first-invitation-guidance,
.first-invitation-guidance-resume,
.host-readiness {
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.first-invitation-guidance {
  display: grid;
  gap: var(--theme-space-3);
  padding: var(--theme-space-4);
}

.first-invitation-guidance > header,
.first-invitation-guidance-resume,
.host-readiness > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--theme-space-3);
}

.first-invitation-guidance h2,
.first-invitation-guidance p,
.first-invitation-guidance-resume strong,
.first-invitation-guidance-resume small,
.host-readiness h3,
.host-readiness p {
  margin: 0;
}

.first-invitation-guidance h2,
.host-readiness h3 {
  color: var(--theme-color-ink);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  letter-spacing: -0.025em;
}

.first-invitation-guidance > p,
.first-invitation-guidance li p,
.first-invitation-guidance-resume small,
.host-readiness header > p,
.host-readiness li p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  line-height: 1.5;
}

.first-invitation-guidance form,
.first-invitation-guidance-resume form {
  flex: 0 0 auto;
}

.first-invitation-guidance .text-action,
.first-invitation-guidance-resume .text-action {
  min-height: var(--theme-control-min-size);
  border: 0;
  background: transparent;
  color: var(--theme-color-brand-deep);
  cursor: pointer;
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.first-invitation-guidance ol,
.host-readiness ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.first-invitation-guidance li,
.host-readiness li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding-block: var(--theme-space-3);
}

.first-invitation-guidance li > span,
.host-readiness li > span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.first-invitation-guidance li.is-complete > span,
.host-readiness li.is-complete > span {
  border-color: var(--theme-color-confirm);
  color: var(--theme-color-confirm);
}

.first-invitation-guidance li.is-current > span {
  border-color: var(--theme-color-brand-deep);
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-deep);
}

.first-invitation-guidance li div,
.host-readiness li div,
.first-invitation-guidance-resume > span {
  display: grid;
  gap: var(--theme-space-1);
}

.first-invitation-guidance li small,
.host-readiness li > small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  white-space: nowrap;
}

.first-invitation-guidance-resume {
  align-items: center;
  padding: var(--theme-space-3) var(--theme-space-4);
}

.host-readiness {
  overflow: hidden;
}

.host-readiness > header {
  padding: var(--theme-space-4);
  background: var(--theme-color-brand-soft);
}

.host-readiness > header > p {
  max-width: 24rem;
  text-align: right;
}

.host-readiness ul {
  padding-inline: var(--theme-space-4);
}

.host-readiness li > small {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--theme-color-surface-soft);
  color: var(--theme-color-ink-soft);
  font-weight: var(--theme-font-weight-strong);
}

.host-readiness li.is-complete > small {
  background: var(--theme-color-confirm-soft);
  color: var(--theme-color-confirm);
}

@media (max-width: 32rem) {
  .first-invitation-guidance > header,
  .host-readiness > header {
    align-items: stretch;
    flex-direction: column;
  }

  .host-readiness > header > p {
    text-align: left;
  }

  .host-readiness li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .host-readiness li > small {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 25rem) {
  .day-of-plan dl {
    grid-template-columns: 1fr;
  }

  .day-of-plan dl > div:nth-child(odd),
  .day-of-plan dl > div:nth-child(even) {
    border-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .day-of-handoffs {
    display: grid;
  }
}

.prototype-waiting-foot.is-group-confirmed,
.host-confirmed-receipt {
  border-left: 3px solid var(--theme-color-confirm);
  background: var(--theme-color-confirm-soft);
}

.host-confirmed-receipt {
  display: grid;
  gap: var(--theme-space-1);
}

@media (max-width: 25rem) {
  .confirmation-counterpart-identity img,
  .confirmation-counterpart-initial {
    width: 3.75rem;
    height: 3.75rem;
  }

  .confirmation-actions,
  .confirmed-plan dl {
    grid-template-columns: 1fr;
  }

  .confirmation-locked-details > div {
    align-items: start;
    flex-direction: column;
    gap: var(--theme-space-1);
  }

  .confirmation-locked-details dd {
    text-align: left;
  }
}

@media (max-width: 40rem) {
  .create-app-nav {
    grid-template-columns: minmax(3.5rem, 1fr) minmax(0, auto) minmax(3.5rem, 1fr);
    gap: var(--theme-space-2);
    padding-inline: 0.75rem;
  }

  .create-app-nav h1 {
    min-width: 0;
    font-size: clamp(1.28rem, 5.4vw, 1.55rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .first-invitation-guidance-resume {
    align-items: stretch;
    flex-direction: column;
  }

  .create-app-nav .prototype-account-actions,
  .create-app-nav .prototype-avatar {
    min-width: 44px;
  }

  .create-workspace,
  .create-step-tabs {
    width: min(calc(100% - 1.5rem), 48rem);
  }

  .create-field-grid,
  .fit-field-grid,
  .activity-family-options {
    grid-template-columns: 1fr;
  }

  .create-field-grid .is-wide {
    grid-column: auto;
  }

  .automatic-routing,
  .review-routing {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .privacy-receipt {
    grid-template-columns: 1fr;
  }

  .automatic-routing > strong,
  .privacy-receipt > strong {
    grid-column: 2;
  }

  .privacy-receipt > strong {
    grid-column: 1;
    justify-self: start;
  }

  .out-header-actions {
    align-items: end;
    flex-direction: column;
    gap: var(--theme-space-1);
  }
}

@media (max-width: 22rem) {
  .create-app-nav h1 {
    font-size: 1.2rem;
  }

  .create-back span {
    display: none;
  }

  .create-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .create-actions button,
  .create-actions a {
    width: 100%;
    justify-content: center;
  }

  .create-submit-status {
    margin-left: 0;
    text-align: center;
  }
}

/* DEC-057 production parity: bounded Invitation previews and focused collections. */
.collection-overflow-action {
  display: flex;
  width: 100%;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  margin-top: var(--theme-space-3);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-2) 0;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-align: center;
  text-decoration: none;
}

.collection-overflow-action:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.collection-overflow-action:focus-visible,
.invitation-collection-back:focus-visible,
.invitation-collection-pagination a:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 3px;
}

.prototype-past-month {
  width: min(100%, var(--theme-invitation-card-width));
  margin: var(--theme-space-5) 0 var(--theme-space-2) auto;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-view {
  width: min(calc(100% - 2rem), 47.5rem);
  margin: 0 auto;
  padding: var(--theme-space-5) 0 var(--theme-space-7);
}

.invitation-collection-header {
  display: grid;
  gap: var(--theme-space-1);
  margin-bottom: var(--theme-space-5);
}

.invitation-collection-back {
  display: inline-flex;
  width: fit-content;
  min-height: var(--theme-control-min-size);
  align-items: center;
  gap: var(--theme-space-1);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.invitation-collection-back svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.invitation-collection-header p,
.invitation-collection-header h2,
.invitation-collection-header > span,
.invitation-collection-result {
  margin: 0;
}

.invitation-collection-header p {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: normal;
  text-transform: none;
}

.invitation-collection-header h2 {
  color: var(--theme-color-ink);
  font-family: var(--theme-font-display);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: -0.04em;
}

.invitation-collection-header > span,
.invitation-collection-result {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-collection-search {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  gap: var(--theme-space-2);
  margin-bottom: var(--theme-space-4);
  border-bottom: 1px solid var(--theme-color-line);
  background: var(--theme-color-chrome-translucent);
  padding: var(--theme-space-3) 0 var(--theme-space-4);
  backdrop-filter: blur(18px) saturate(1.1);
}

.invitation-collection-search label {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--theme-space-2);
}

.invitation-collection-search input,
.invitation-collection-search button {
  min-height: 3rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  font: inherit;
}

.invitation-collection-search input {
  min-width: 0;
  background: var(--theme-color-surface);
  padding: 0 var(--theme-space-4);
  color: var(--theme-color-ink);
}

.invitation-collection-search button {
  background: var(--theme-color-brand-deep);
  padding: 0 var(--theme-space-4);
  color: var(--theme-color-on-brand);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-search a {
  width: fit-content;
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
}

.invitation-collection-result {
  margin-bottom: var(--theme-space-3);
}

.invitation-collection-list {
  display: grid;
  gap: var(--theme-space-3);
}

.invitation-collection-month {
  margin: var(--theme-space-4) 0 0;
  color: var(--theme-color-ink-soft);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-disclosure {
  overflow: hidden;
  border: 1px solid var(--theme-color-line);
  border-top: 2px solid var(--invite-signature, var(--theme-color-line-strong));
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-surface);
}

.invitation-collection-disclosure > summary {
  display: grid;
  gap: 0.2rem;
  min-height: var(--theme-control-min-size);
  padding: var(--theme-space-4);
  list-style: none;
  cursor: pointer;
}

.invitation-collection-disclosure > summary::-webkit-details-marker {
  display: none;
}

.invitation-collection-disclosure > summary:hover {
  background: var(--theme-color-surface-soft);
}

.invitation-collection-disclosure > summary:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: -3px;
}

.invitation-collection-disclosure > summary > strong {
  color: var(--theme-color-ink);
  font-size: 1rem;
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-disclosure > summary > span:not(.invitation-collection-record-foot) {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-collection-state {
  color: var(--theme-color-ink-soft) !important;
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-record-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: var(--theme-space-2);
  margin-top: var(--theme-space-2);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-2);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.invitation-collection-record-foot strong {
  color: var(--theme-color-brand-deep);
  font-weight: var(--theme-font-weight-strong);
}

.invitation-collection-record-foot .when-open,
.invitation-collection-disclosure[open] .when-closed {
  display: none;
}

.invitation-collection-disclosure[open] .when-open {
  display: inline;
}

.invitation-collection-record-foot i {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.invitation-collection-disclosure[open] .invitation-collection-record-foot i {
  transform: rotate(225deg);
}

.invitation-collection-expanded-card {
  border-top: 1px solid var(--theme-color-line);
  background: var(--theme-color-canvas);
  padding: var(--theme-space-3);
}

.invitation-collection-expanded-card > .prototype-invitation-card {
  margin: 0;
}

.invitation-collection-note {
  color: var(--theme-color-muted);
  font-style: italic;
}

.invitation-collection-expanded-card > .is-expanded-workflow-only {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 34rem) {
  .invitation-source-notice {
    grid-template-columns: 1fr;
    gap: var(--theme-space-1);
  }
}

.invitation-collection-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--theme-space-3);
  margin-top: var(--theme-space-5);
  border-top: 1px solid var(--theme-color-line);
  padding-top: var(--theme-space-4);
}

.invitation-collection-pagination a {
  display: flex;
  min-height: var(--theme-control-min-size);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  text-decoration: none;
}

.invitation-collection-pagination > span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  text-align: center;
}

/* Stage-gated approved-photo viewer. */
.member-photo-trigger {
  display: grid;
  width: 4.75rem;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--theme-color-brand-deep);
  font: inherit;
  cursor: zoom-in;
}

.member-photo-trigger img {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.member-photo-trigger:focus-visible {
  border-radius: var(--theme-radius-control);
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 3px;
}

.member-photo-zoom-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: var(--theme-font-size-supporting);
  font-weight: var(--theme-font-weight-strong);
  line-height: 1.2;
}

.member-photo-zoom-cue svg {
  width: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.member-photo-dialog {
  width: min(calc(100% - 2rem), 48rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-surface);
  background: var(--theme-color-surface);
  padding: 0;
  color: var(--theme-color-ink);
  box-shadow: var(--theme-shadow-frame);
}

.member-photo-dialog::backdrop {
  background: var(--theme-color-overlay);
}

.member-photo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-3);
  border-bottom: 1px solid var(--theme-color-line);
  padding: var(--theme-space-4);
}

.member-photo-dialog-head span {
  display: grid;
  gap: 0.1rem;
}

.member-photo-dialog-head small,
.member-photo-dialog-head h2 {
  margin: 0;
}

.member-photo-dialog-head small {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
  letter-spacing: normal;
  text-transform: none;
}

.member-photo-dialog-head h2 {
  font-size: 1.1rem;
  font-weight: var(--theme-font-weight-strong);
}

.member-photo-dialog-head button,
.member-photo-dialog-stage button,
.member-photo-dialog-thumbnails button {
  min-width: var(--theme-control-min-size);
  min-height: var(--theme-control-min-size);
  border: 1px solid var(--theme-color-line-strong);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  color: var(--theme-color-brand-deep);
  font: inherit;
  font-weight: var(--theme-font-weight-strong);
}

.member-photo-dialog-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--theme-space-3);
  background: var(--theme-color-surface-soft);
  padding: var(--theme-space-4);
}

.member-photo-dialog-stage > img {
  width: 100%;
  max-height: min(62dvh, 40rem);
  border-radius: var(--theme-radius-control);
  object-fit: contain;
}

.member-photo-dialog-stage svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.member-photo-dialog-stage button:disabled {
  visibility: hidden;
}

.member-photo-dialog-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--theme-space-3);
  padding: var(--theme-space-3) var(--theme-space-4);
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}

.member-photo-dialog-thumbnails {
  display: flex;
  justify-content: center;
  gap: var(--theme-space-2);
  border-top: 1px solid var(--theme-color-line);
  padding: var(--theme-space-3) var(--theme-space-4) var(--theme-space-4);
}

.member-photo-dialog-thumbnails button {
  overflow: hidden;
  padding: 0;
}

.member-photo-dialog-thumbnails button[aria-current="true"] {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}

.member-photo-dialog-thumbnails img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
}

@media (max-width: 30rem) {
  .invitation-collection-view {
    width: min(calc(100% - 1.25rem), 47.5rem);
    padding-top: var(--theme-space-3);
  }

  .invitation-collection-search > div {
    grid-template-columns: 1fr;
  }

  .invitation-collection-search button {
    width: 100%;
  }

  .invitation-collection-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .invitation-collection-pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .member-photo-dialog-stage {
    grid-template-columns: 1fr 1fr;
  }

  .member-photo-dialog-stage > img {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .member-photo-dialog-stage button {
    grid-row: 2;
  }

  .member-photo-dialog-meta {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 25rem) {
  .member-photo-trigger {
    width: 4rem;
  }

  .member-photo-trigger img {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .invitation-collection-view *,
  .member-photo-dialog * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  a,
  button,
  input,
  select,
  textarea,
  summary,
  [role="button"] {
    forced-color-adjust: auto;
  }

  .compact-action,
  .message,
  .form-errors,
  .form-surface,
  .status-surface,
  .operations-surface,
  .prototype-invitation-card,
  .on-upcoming-summary {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
}

@media (min-width: 50.01rem) {
  .prototype-on-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    align-items: start;
    gap: var(--theme-space-6);
  }

  .prototype-on-stack > .prototype-collection {
    grid-area: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

.prototype-on-stack > .prototype-past-collection {
    margin-top: 0;
  }
}

/* Keep the DEC-136 folio treatment authoritative over legacy card rules above. */
.prototype-invitation-card {
  box-shadow:
    0.38rem 0.42rem 0 -0.08rem var(--theme-color-invitation-underleaf),
    var(--theme-shadow-invitation-paper);
}

.invitation-preview-header h3,
.invitation-preview-note,
.final-confirmation > header h3,
.rich-counterpart-heading h3 {
  font-family: var(--theme-font-invitation);
  font-weight: 500;
  letter-spacing: -0.018em;
}

.final-confirmation {
  border-top-style: dashed;
}

/* Keep the On milestone as a quiet folio receipt, not a second headline. */
.invitation-state-receipt.is-on-confirmation {
  grid-template-columns:
    calc(var(--theme-size-on-confirmation-mark) + var(--theme-space-1))
    minmax(0, 1fr);
  gap: var(--theme-space-1) var(--theme-space-2);
  border-top-width: 1px;
  border-top-style: dashed;
  padding-block: var(--theme-space-3);
}

.invitation-state-receipt.is-on-confirmation .on-confirmation-mark {
  grid-row: 1 / span 3;
}

.invitation-state-receipt.is-on-confirmation .on-confirmation-mark svg {
  width: var(--theme-size-on-confirmation-mark);
  height: var(--theme-size-on-confirmation-mark);
  stroke-width: 1.65;
}

.invitation-state-receipt.is-on-confirmation .on-confirmation-copy {
  display: grid;
  gap: 0;
}

.invitation-state-receipt.is-on-confirmation .on-confirmation-copy > span {
  font-size: var(--theme-font-size-on-confirmation);
  font-weight: var(--theme-font-weight-strong);
  letter-spacing: 0;
  line-height: 1.25;
}

.invitation-state-receipt.is-on-confirmation .on-confirmation-copy > small {
  font-size: var(--theme-font-size-invitation-meta);
  font-weight: var(--theme-font-weight-regular);
  line-height: 1.35;
}

.invitation-source-notice.is-privacy {
  border-inline-start: 0;
  padding-inline-start: 0;
}

@media (forced-colors: active) {
  .prototype-invitation-card,
  .prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision)
    > .prototype-invitation-card {
    box-shadow: none;
  }
}

/* DEC-158: the approved Warm Invitation reading and task hierarchy. */
body {
  background: var(--theme-color-canvas);
}
small {
  font-size: var(--theme-font-size-supporting);
}
button, input, select, textarea {
  font-size: var(--theme-font-size-body);
}
h1, h2, h3, h4, p, li, dd, label, summary {
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 {
  font-weight: var(--theme-font-weight-strong);
  line-height: var(--theme-line-height-heading);
}
.brand strong {
  font-size: var(--theme-font-size-receipt-title);
  letter-spacing: normal;
}
.prototype-invitation-card,
.prototype-hosted-record:has(> .prototype-invitation-card.is-host-decision) > .prototype-invitation-card {
  box-shadow: var(--theme-shadow-invitation-paper);
}
.invitation-preview-header h3,
.invitation-preview.is-compact .invitation-preview-header h3,
.on-upcoming-summary-header h3,
.prototype-waiting-receipt strong {
  font-family: var(--theme-font-invitation);
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  line-height: var(--theme-line-height-invitation-title);
}
.invitation-preview-header h3 {
  font-size: var(--theme-font-size-invitation-title);
}
.invitation-preview.is-compact .invitation-preview-header h3,
.on-upcoming-summary-header h3 {
  font-size: var(--theme-font-size-invitation-title-compact);
}
.invitation-preview-note,
.final-confirmation > header h4,
.rich-counterpart-heading h3,
.open-door-intro h3 {
  font-family: var(--theme-font-sans);
  letter-spacing: normal;
  line-height: var(--theme-line-height-supporting);
}
.invitation-preview-note {
  font-weight: var(--theme-font-weight-regular);
}
.final-confirmation > header h4,
.rich-counterpart-heading h3 {
  font-size: var(--theme-font-size-task-title);
}
.create-section-intro h2,
.open-door-intro h3,
.create-app-nav h1 {
  font-size: var(--theme-font-size-page-title);
}
.prototype-incoming-stack,
html[data-workspace-layout="mobile"] .prototype-incoming-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "action" "waiting";
  max-width: 44rem;
  margin-inline: auto;
  gap: var(--theme-space-5);
  padding-block: var(--theme-space-5) var(--theme-space-6);
}
.prototype-incoming-section > summary {
  min-height: var(--theme-control-primary-size);
}
.prototype-section-toggle {
  font-size: var(--theme-font-size-supporting);
}
.prototype-section-toggle .expand-copy,
.prototype-section-toggle .collapse-copy {
  display: none;
}
.prototype-incoming-section .prototype-filter-panel {
  margin-bottom: var(--theme-space-4);
}
.prototype-incoming-section .prototype-section-body {
  gap: var(--theme-space-5);
}
.prototype-waiting-receipt {
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--theme-space-3);
  border-radius: var(--theme-invitation-paper-radius);
  border-top: 3px solid var(--theme-color-invitation-seal);
  padding: var(--theme-space-4);
  background: var(--theme-color-invitation-header);
}
.prototype-waiting-receipt strong {
  font-size: var(--theme-font-size-receipt-title);
}
.prototype-waiting-receipt .waiting-identity {
  display: grid;
  gap: var(--theme-space-1);
  min-width: 0;
}
.prototype-waiting-receipt .invitation-seal {
  align-self: start;
}
.prototype-waiting-receipt .waiting-state {
  color: var(--theme-color-ink-soft);
}
.prototype-waiting-receipt:focus-visible {
  outline: 3px solid var(--theme-color-focus);
}
.confirmation-actions {
  flex-wrap: wrap;
}
.final-confirmation > header {
  flex-wrap: wrap;
  gap: var(--theme-space-3);
}
.final-confirmation > header time {
  font-size: var(--theme-font-size-supporting);
}
.final-confirmation-disclosure-body {
  padding-top: 0;
}
.confirmation-cost-check {
  line-height: var(--theme-line-height-body);
}
.prototype-rsvp button,
.confirmation-actions button,
.create-actions button {
  min-height: var(--theme-control-primary-size);
  font-size: var(--theme-font-size-body);
}
.create-group small, .create-group p, .invitation-preview-note {
  max-width: 65ch;
}
.create-app-nav {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--theme-space-5);
}
.create-app-nav h1 {
  text-align: left;
  margin: 0;
}
.create-group > legend {
  max-width: 100%;
}
@media (max-width: 30rem) {
  .invitation-preview-header {
    gap: var(--theme-space-3);
    padding: var(--theme-space-4);
  }
  .confirmation-locked-details > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .confirmation-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .confirmation-actions button {
    width: 100%;
  }
  .create-app-nav {
    column-gap: var(--theme-space-3);
  }
}

.invitation-preview .invitation-source-notice.is-privacy {
  display: block;
}
.invitation-preview .invitation-source-notice.is-privacy > strong {
  margin-inline-end: var(--theme-space-2);
}
.invitation-preview .invitation-source-notice.is-privacy span {
  line-height: var(--theme-line-height-supporting);
}
.prototype-rsvp > header {
  gap: var(--theme-space-2);
}
.prototype-rsvp > header small {
  line-height: var(--theme-line-height-supporting);
}

.first-invitation-guidance > details > summary,
.first-spark-disclosure > summary {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--theme-space-2) var(--theme-space-4);
  min-height: var(--theme-control-primary-size); cursor: pointer;
}
.first-invitation-guidance > details > summary span,
.first-spark-disclosure > summary span {
  color: var(--theme-color-muted);
  font-size: var(--theme-font-size-supporting);
}
.first-invitation-guidance > details > summary::after,
.first-spark-disclosure > summary::after {
  content: "+";
  margin-inline-start: auto;
}
.first-invitation-guidance > details[open] > summary::after,
.first-spark-disclosure[open] > summary::after {
  content: "−";
}
.first-invitation-guidance > details > summary::-webkit-details-marker,
.first-spark-disclosure > summary::-webkit-details-marker {
  display: none;
}
.first-spark-disclosure {
  margin: var(--theme-space-4) auto;
  max-width: 44rem;
}
.first-spark-disclosure > summary {
  padding: var(--theme-space-3) var(--theme-space-4);
}
.first-invitation-guidance {
  padding: var(--theme-space-3) var(--theme-space-4);
}

.first-invitation-guidance > details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--theme-space-1) var(--theme-space-3);
}
.first-invitation-guidance > details > summary > span {
  grid-column: 1;
}
.first-invitation-guidance > details > summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* Keep all readable content below the arched top, even with enlarged text. */
.open-door:not([open]) > summary {
  padding-top: max(5rem, 35%);
}
.open-door-summary strong, .living-invitation h4 {
  font-family: var(--theme-font-invitation);
  font-weight: var(--theme-font-weight-regular);
  letter-spacing: normal;
  line-height: var(--theme-line-height-invitation-title);
}
.open-door-summary strong {
  font-size: var(--theme-font-size-receipt-title);
}
.living-invitation h4 {
  font-size: var(--theme-font-size-invitation-title);
}
.open-door-number {
  opacity: 1;
}
@media (max-width: 32.5rem) {
  .open-door[open] > summary {
    padding-top: max(5rem, 35%);
  }
}
html[data-workspace-layout="mobile"] .open-door[open] > summary {
  padding-top: max(5rem, 35%);
}

/* Reflow for long action labels and 200% text; no clipped consent controls. */
.final-confirmation {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.final-confirmation > *, .final-confirmation-disclosure > *,
.final-confirmation-disclosure-body > *, .confirmation-cost-check > span {
  min-width: 0;
  max-width: 100%;
}
.final-confirmation > header time {
  white-space: normal;
  overflow-wrap: anywhere;
}
.confirmation-locked-details {
  min-width: 0;
  width: 100%;
}
.confirmation-locked-details dd {
  overflow-wrap: anywhere;
}
.app-header,
html[data-workspace-layout="mobile"] .app-header {
  display: flex;
  flex-wrap: wrap;
}
.app-header .brand {
  min-width: 0;
  max-width: 100%;
}
.app-header .brand > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.app-header .header-actions {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: end;
}
/* DEC-158: compact public entry without shrinking reading text or tap targets. */
@media (max-width: 46rem) {
  .public-app-header {
    align-items: center;
    gap: var(--theme-space-2);
    padding: var(--theme-space-3) var(--theme-space-4);
  }
  .public-app-header .brand small {
    display: none;
  }
  .public-app-header .brand-mark {
    margin-right: var(--theme-space-2);
  }
  .public-app-header .header-actions {
    flex-direction: row;
    align-items: center;
    gap: var(--theme-space-3);
    margin-left: auto;
  }
  .public-app-header .compact-action {
    padding-inline: var(--theme-space-3);
  }
  .foundation-page .page-shell {
    padding: var(--theme-space-4);
  }
  .foundation-page .landing-hero {
    padding: var(--theme-space-4);
    margin-bottom: var(--theme-space-5);
  }
  .foundation-page .landing-brand-lockup {
    display: none;
  }
  .foundation-page .landing-hero h1 {
    font-size: var(--theme-font-size-page-title);
    line-height: var(--theme-line-height-heading);
    margin-bottom: var(--theme-space-3);
  }
  .foundation-page .landing-hero-actions {
    margin-top: var(--theme-space-4);
  }
}
html[data-workspace-layout="mobile"] .public-app-header {
  align-items: center;
  gap: var(--theme-space-2);
  padding: var(--theme-space-3) var(--theme-space-4);
}
html[data-workspace-layout="mobile"] .public-app-header .brand small {
  display: none;
}
html[data-workspace-layout="mobile"] .public-app-header .brand-mark {
  margin-right: var(--theme-space-2);
}
html[data-workspace-layout="mobile"] .public-app-header .header-actions {
  flex-direction: row;
  align-items: center;
  gap: var(--theme-space-3);
  margin-left: auto;
}
html[data-workspace-layout="mobile"] .public-app-header .compact-action {
  padding-inline: var(--theme-space-3);
}
html[data-workspace-layout="mobile"] .foundation-page .page-shell {
  padding: var(--theme-space-4);
}
html[data-workspace-layout="mobile"] .foundation-page .landing-hero {
  padding: var(--theme-space-4);
  margin-bottom: var(--theme-space-5);
}
html[data-workspace-layout="mobile"] .foundation-page .landing-brand-lockup {
  display: none;
}
html[data-workspace-layout="mobile"] .foundation-page .landing-hero h1 {
  font-size: var(--theme-font-size-page-title);
  line-height: var(--theme-line-height-heading);
  margin-bottom: var(--theme-space-3);
}
html[data-workspace-layout="mobile"] .foundation-page .landing-hero-actions {
  margin-top: var(--theme-space-4);
}

.app-header .brand-mark {
  width: var(--theme-control-min-size);
  height: var(--theme-control-min-size);
  flex-basis: var(--theme-control-min-size);
}
.member-header-link, .header-actions > a {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}
.prototype-root-tabs a, .prototype-root-tabs a > span,
.create-step-tabs a, .create-step-tabs span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.prototype-root-tabs a {
  flex-wrap: wrap;
  gap: var(--theme-space-1);
}
.create-step-tabs {
  column-gap: var(--theme-space-2);
}
.create-step-tabs a, .create-step-tabs span {
  text-align: center;
}
.create-field-grid, .living-invitation {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.create-field-grid > *, .living-invitation > * {
  min-width: 0;
  max-width: 100%;
}
input, select, textarea {
  min-width: 0;
  max-width: 100%;
}
.create-form button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.on-upcoming-summary-action, button.is-primary, .button.is-primary {
  min-height: var(--theme-control-primary-size);
}
.prototype-account-index > a {
  grid-template-columns: var(--theme-control-min-size) minmax(0, 1fr) auto;
}
.prototype-account-index > a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.prototype-account-symbol {
  width: var(--theme-control-min-size);
  height: var(--theme-control-min-size);
}
.living-invitation-actions .button {
  min-width: 0;
  max-width: 100%;
}

.clear-invitation-filters {
  display: inline-flex;
  align-items: center;
  min-height: var(--theme-control-min-size);
}

.host-selection-form button {
  min-height: var(--theme-control-primary-size);
  font-size: var(--theme-font-size-body);
  white-space: normal;
}

.invitation-preview {
  grid-template-columns: minmax(0, 1fr);
}
.invitation-preview-header, .invitation-state-receipt {
  min-width: 0;
  max-width: 100%;
}
.invitation-state-receipt > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invitation-preview-header {
  display: flex;
  flex-wrap: wrap;
}
.invitation-preview-header > .invitation-seal {
  flex-shrink: 0;
}
.invitation-preview-header > div {
  flex: 1 1 12rem;
}

/* DEC-159: compact In and visible, source-backed next steps. */
.compact-in-workspace .prototype-incoming-stack,
html[data-workspace-layout="mobile"] .compact-in-workspace .prototype-incoming-stack {
  grid-template-areas: "action" "ideas" "waiting";
  gap: var(--theme-space-3);
  padding-block: var(--theme-space-3) var(--theme-space-4);
}
.compact-in-workspace .prototype-incoming-section .prototype-section-body {
  gap: var(--theme-space-3);
}
.compact-in-workspace .prototype-section-body:empty { display: none; }
.compact-in-workspace .prototype-empty { margin-block: var(--theme-space-2); }
.in-next-step { grid-area: ideas; min-width: 0; padding-block: var(--theme-space-2); }
.in-next-step h2 {
  font-family: var(--theme-font-invitation);
  font-size: var(--theme-font-size-page-title);
  line-height: var(--theme-line-height-heading);
  margin: 0 0 var(--theme-space-2);
}
.in-next-step header > p { margin: 0 0 var(--theme-space-3); color: var(--theme-color-muted); }
.in-idea-list { border-top: 1px solid var(--theme-color-line); }
.in-idea-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--theme-space-3);
  padding-block: var(--theme-space-3);
  border-bottom: 1px solid var(--theme-color-line);
}
.in-idea-row h3 { font-size: var(--theme-font-size-body); margin: 0 0 var(--theme-space-1); overflow-wrap: anywhere; }
.in-idea-row p { font-size: var(--theme-font-size-supporting); color: var(--theme-color-muted); margin: 0; }
.in-idea-source { display: inline-flex; align-items: center; gap: var(--theme-space-1); min-height: var(--theme-control-min-size); font-size: var(--theme-font-size-supporting); }
.in-idea-source img { flex: 0 0 20px; }
.in-idea-row > .button { font-size: var(--theme-font-size-supporting); white-space: normal; text-align: center; }
.in-next-step-actions { display: flex; flex-wrap: wrap; gap: var(--theme-space-2) var(--theme-space-4); padding-top: var(--theme-space-2); }
.in-next-step-actions a, .in-ideas-retry { display: inline-flex; align-items: center; min-height: var(--theme-control-min-size); font-size: var(--theme-font-size-supporting); }
.compact-in-workspace .prototype-root-tabs { margin-bottom: var(--theme-space-2); }
@media (max-width: 48rem) {
  .compact-in-workspace .member-app-header { padding-block: var(--theme-space-2); gap: var(--theme-space-2); }
  .compact-in-workspace .member-app-header .brand small { display: none; }
  .compact-in-workspace .member-app-header .header-actions { gap: var(--theme-space-2); }
  .compact-in-workspace .member-app-header .member-header-link { font-size: var(--theme-font-size-supporting); }
  .compact-in-workspace .prototype-root-tabs a { padding-block: var(--theme-space-2); }
}
html[data-workspace-layout="mobile"] .compact-in-workspace .member-app-header { padding-block: var(--theme-space-2); gap: var(--theme-space-2); }
html[data-workspace-layout="mobile"] .compact-in-workspace .member-app-header .brand small { display: none; }
html[data-workspace-layout="mobile"] .compact-in-workspace .member-app-header .header-actions { gap: var(--theme-space-2); }
html[data-workspace-layout="mobile"] .compact-in-workspace .member-app-header .member-header-link { font-size: var(--theme-font-size-supporting); }
html[data-workspace-layout="mobile"] .compact-in-workspace .prototype-root-tabs a { padding-block: var(--theme-space-2); }
.in-idea-list { container: in-ideas / inline-size; }
.in-idea-source { max-width: 100%; overflow-wrap: anywhere; }
.in-idea-row > .button { justify-self: start; }
@container in-ideas (max-width: 22rem) {
  .in-idea-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .compact-in-workspace .member-app-header .header-actions > .member-invitations-link { display: none; }
}
html[data-workspace-layout="mobile"] .compact-in-workspace .member-app-header .header-actions > .member-invitations-link { display: none; }
.compact-in-workspace .prototype-section-body.in-no-actions { display: none; }
.in-idea-row > .button {
  padding: var(--theme-space-2) var(--theme-space-3);
  border: 1px solid var(--theme-color-brand);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-brand);
  color: var(--theme-color-on-brand);
  text-decoration: none;
}

/* DEC-160: legible category labels and explicit incoming controls. */
.compact-in-workspace .prototype-root-tabs a strong {
  font-size: var(--theme-font-size-receipt-title);
  font-weight: var(--theme-font-weight-strong);
  line-height: var(--theme-line-height-heading);
}
/* DEC-168: mobile categories share the Home/header navigation text size. */
@media (max-width: 50rem) {
  .compact-in-workspace .prototype-root-tabs a strong {
    font-size: var(--theme-font-size-supporting);
  }
}
html[data-workspace-layout="mobile"] .compact-in-workspace .prototype-root-tabs a strong {
  font-size: var(--theme-font-size-supporting);
}
.compact-in-workspace .prototype-filter-panel {
  border: 1px solid var(--theme-color-line);
  border-radius: var(--theme-radius-control);
  background: var(--theme-color-surface);
  padding-inline: var(--theme-space-2);
}
.compact-in-workspace .prototype-filter-copy strong { color: var(--theme-color-brand-deep); }
.in-preview-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--theme-space-2);
  font-size: var(--theme-font-size-supporting);
  color: var(--theme-color-ink-soft);
}
.in-preview-notice a { min-height: var(--theme-control-primary-size); }

/* DEC-161/169: fill the shared desktop frame; preserve forced Mobile. */
@media (min-width: 50.01rem) {
  html:not([data-workspace-layout="mobile"]) :is(.member-home-page, .compact-in-workspace, .day-of-page) .app-frame {
    width: min(100%, var(--theme-page-width));
    border-radius: 0;
    box-shadow: var(--theme-shadow-surface);
  }
  html:not([data-workspace-layout="mobile"]) .compact-in-workspace .prototype-collection > :is(header, .prototype-invitation-card, .hosted-card-action, .host-response, .host-response-empty, .prototype-lifecycle-disclosure, .prototype-empty-state, .prototype-past-month) {
    width: 100%;
    margin-inline: 0;
  }
  html:not([data-workspace-layout="mobile"]) :is(.compact-in-workspace, .day-of-page) .rich-counterpart-gallery {
    max-width: var(--theme-invitation-card-width);
  }
  html:not([data-workspace-layout="mobile"]) .compact-in-workspace .prototype-root-tabs {
    margin-inline: var(--theme-space-6);
  }
  html:not([data-workspace-layout="mobile"]) .compact-in-workspace :is(.prototype-incoming-stack, .prototype-collection, .prototype-on-stack) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--theme-space-6);
  }
  html:not([data-workspace-layout="mobile"]) .compact-in-workspace .prototype-on-stack > .prototype-collection {
    padding-inline: 0;
  }
  html:not([data-workspace-layout="mobile"]) .compact-in-workspace :is(.invitation-collection-view, .first-spark-disclosure) {
    width: auto;
    max-width: none;
    margin-inline: var(--theme-space-6);
  }
  html:not([data-workspace-layout="mobile"]) .day-of-page .page-shell {
    padding-inline: var(--theme-space-6);
  }
  html:not([data-workspace-layout="mobile"]) .day-of-page .day-of-workspace {
    width: 100%;
    margin-inline: 0;
  }
}

/* DEC-172: photo words use the existing semantic theme and native help disclosures. */
.photo-story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--theme-space-5); align-items: start; }
.photo-story-preview { margin: 0; min-width: 0; }
.photo-story-preview img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; background: var(--theme-color-surface-soft); }
.photo-story-preview figcaption, .photo-story-status { color: var(--theme-color-muted); font-size: var(--theme-font-size-supporting); margin-block: var(--theme-space-3); }
.photo-story-editor, .photo-story-help { min-width: 0; }
.photo-story-help { margin-block: var(--theme-space-2) var(--theme-space-4); }
.photo-story-help summary { display: flex; align-items: center; gap: var(--theme-space-2); min-height: var(--theme-control-min-size); cursor: pointer; color: var(--theme-color-brand-deep); }
.photo-info-icon { display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 1.25em; height: 1.25em; flex: 0 0 auto; font-family: var(--theme-font-sans); }
.photo-story-help p { margin-block: var(--theme-space-2); }
.photo-story-edit-link { margin-top: var(--theme-space-3); }
.photo-story-title, .member-photo-story h3 { font-family: var(--theme-font-invitation); overflow-wrap: anywhere; }
.photo-story-review, .photo-story-appeal { margin-block: var(--theme-space-4); border-top: 1px solid var(--theme-color-line); padding-top: var(--theme-space-3); }
.member-photo-collections { display: flex; flex-wrap: wrap; gap: var(--theme-space-2); padding: var(--theme-space-3) var(--theme-space-4); }
.member-photo-collections[hidden], .member-photo-story[hidden] { display: none; }
.member-photo-collections button { font: inherit; min-height: var(--theme-control-min-size); padding: var(--theme-space-2) var(--theme-space-3); background: var(--theme-color-surface); border: 1px solid var(--theme-color-line-strong); border-radius: var(--theme-radius-control); color: var(--theme-color-brand-deep); }
.member-photo-collections button[aria-pressed="true"] { background: var(--theme-color-brand-soft); border-color: var(--theme-color-brand-deep); }
.member-photo-story { padding: var(--theme-space-3) var(--theme-space-4); overflow-wrap: anywhere; }
.member-photo-story h3, .member-photo-story p { margin: 0 0 var(--theme-space-2); }
.member-photo-dialog-thumbnails { flex-wrap: wrap; }
.photo-scene-label { display: block; font-size: var(--theme-font-size-supporting); color: var(--theme-color-ink); padding: var(--theme-space-2); background: var(--theme-color-surface); }
@media (max-width: 48rem) { .photo-story-layout { grid-template-columns: minmax(0, 1fr); } .photo-story-preview img { max-height: 45dvh; } }

.member-photo-dialog:has([data-member-photo-story]:not([hidden])) .member-photo-dialog-stage > img { max-height: min(44dvh, 28rem); }
.member-photo-dialog-head { position: sticky; top: 0; z-index: 1; background: var(--theme-color-surface); }
@media (max-width: 30rem) { .member-photo-dialog-stage button:disabled { display: none; } }
