:root {
  --event-ink: #2a3a2e;
  --event-muted: #58665b;
  --event-teal: #2f7777;
  --event-teal-bright: #57b7b7;
  --event-teal-soft: rgba(87, 183, 183, 0.13);
  --event-orange: #e87522;
  --event-orange-soft: rgba(255, 154, 61, 0.14);
  --event-paper: #f5f2ea;
  --event-white: rgba(255, 255, 255, 0.58);
  --event-line: rgba(255, 255, 255, 0.68);
  --event-hairline: rgba(80, 130, 130, 0.16);
  --event-shadow: 0 16px 38px -22px rgba(70, 140, 140, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --event-shadow-soft: 0 9px 24px -17px rgba(70, 140, 140, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  --event-glass: saturate(180%) blur(22px);
  --event-radius: 20px;
  --event-radius-small: 14px;
  --event-radius-control: 12px;
}

#activityView.event-hub-ready > *:not(#eventHubRoot) { display: none !important; }

.event-hub-root,
.event-message-root,
.event-my-events-root {
  color: var(--event-ink);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 96px;
  font-family: inherit;
  letter-spacing: 0;
}

.event-hub-root *,
.event-hub-root *::before,
.event-hub-root *::after,
.event-message-root *,
.event-message-root *::before,
.event-message-root *::after,
.event-my-events-root *,
.event-my-events-root *::before,
.event-my-events-root *::after {
  box-sizing: border-box;
}

.event-hub-root[data-surface="mobile"],
.event-message-root[data-surface="mobile"],
.event-my-events-root[data-surface="mobile"] {
  width: 100%;
  padding: 22px 18px 112px;
}

.event-hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: center;
  gap: 36px;
  padding: 24px 0 26px 24px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--event-hairline);
  border-radius: 0;
  box-shadow: none;
}

.event-hub-hero::before {
  content: "";
  position: absolute;
  inset: 25px auto 27px 0;
  width: 4px;
  border-radius: 4px;
  background: var(--event-teal-bright);
}

.event-hub-kicker,
.event-section-kicker {
  margin: 0 0 9px;
  color: var(--event-teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-hub-hero h1,
.event-message-head h1 {
  margin: 0;
  max-width: 780px;
  color: var(--event-ink);
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.15;
  letter-spacing: 0;
}

.event-hub-brand > p:last-child,
.event-message-head p {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--event-muted);
  font-size: 16px;
  line-height: 1.75;
}

.event-hub-signal {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--event-line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.event-hub-signal-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--event-teal-bright);
  box-shadow: 0 0 0 5px var(--event-teal-soft);
}

.event-hub-signal small,
.event-hub-signal strong,
.event-hub-signal p { display: block; }
.event-hub-signal small { color: var(--event-muted); font-size: 11px; font-weight: 800; }
.event-hub-signal strong { margin-top: 3px; font-size: 16px; line-height: 1.35; }
.event-hub-signal p { margin: 4px 0 0; color: var(--event-muted); font-size: 12px; line-height: 1.45; }

.event-hub-signal-action {
  grid-column: 3;
  align-self: center;
  min-height: 36px;
  padding: 7px 11px;
  white-space: nowrap;
}

.event-hub-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--event-muted);
  font-size: 13px;
  white-space: nowrap;
}

.event-hub-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--event-teal-bright);
  box-shadow: 0 0 0 6px rgba(87, 183, 183, 0.13);
}

/* Desktop encounter hub is an operational workspace, not a marketing hero. */
.event-hub-root[data-surface="desktop"] {
  padding-top: 28px;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero {
  padding-top: 20px;
  padding-bottom: 22px;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker {
  margin-bottom: 6px;
  font-size: 11px;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero h1 {
  font-size: clamp(32px, 2.4vw, 38px);
  line-height: 1.12;
}

.event-hub-root[data-surface="desktop"] .event-hub-brand > p:last-child {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
}

.event-section { padding: 34px 0; border-bottom: 1px solid var(--event-hairline); }
.event-section:last-child { border-bottom: 0; }
.event-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.event-section-heading h2 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: 0; }
.event-section-heading p { margin: 5px 0 0; color: var(--event-muted); font-size: 14px; }

.event-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border-bottom: 1px solid var(--event-hairline);
}

.event-workspace > .event-section {
  min-width: 0;
  padding: 30px 0 36px;
  border-bottom: 0;
}

.event-workspace > .event-start-section {
  padding-right: 32px;
  border-right: 1px solid var(--event-hairline);
}

.event-workspace > .event-recommend-section {
  padding-left: 32px;
}

.event-workspace .event-section-heading {
  align-items: start;
  min-height: 76px;
  margin-bottom: 15px;
}

.event-workspace .event-section-heading h2 { font-size: 23px; }
.event-workspace .event-intent-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.event-workspace .event-intent-entry { min-height: 154px; }
.event-recommend-section .event-recommend-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.event-recommend-section .event-recommend-card .event-actions { justify-content: flex-start; }
.event-recommend-section .event-alternative-grid { grid-template-columns: minmax(0, 1fr); }

.event-next-card,
.event-recommend-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--event-white);
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius);
  box-shadow: var(--event-shadow);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-next-card::before,
.event-recommend-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--event-orange), var(--event-teal-bright)); }
.event-recommend-card::before { background: linear-gradient(180deg, var(--event-teal-bright), var(--event-teal)); }
.event-feedback-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 24px; background: linear-gradient(135deg, rgba(255,245,232,.78), rgba(236,251,249,.72)); border: 1px solid var(--event-line); border-radius: var(--event-radius); box-shadow: var(--event-shadow-soft); backdrop-filter: var(--event-glass); -webkit-backdrop-filter: var(--event-glass); }
.event-feedback-callout h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.event-feedback-callout p:last-child { margin: 8px 0 0; color: var(--event-muted); }
.event-share-note { margin: 18px 0 22px; padding: 15px 17px; border: 1px solid rgba(77, 174, 174, .22); border-radius: 16px; background: rgba(236, 251, 249, .72); color: var(--event-muted); }
.event-share-note strong { display: block; color: var(--event-ink); font-size: 14px; }
.event-share-note p { margin: 6px 0 0; line-height: 1.55; }
.event-card-label { display: inline-flex; color: var(--event-orange); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.event-card-title { margin: 0; font-size: 26px; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: 0; }
.event-card-summary { margin: 9px 0 0; color: var(--event-muted); line-height: 1.65; }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.event-card-meta span,
.event-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--event-teal-soft);
  color: #346f70;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.event-status-chip.warm { background: var(--event-orange-soft); color: var(--event-orange); }
.event-status-chip.neutral { background: rgba(112, 124, 121, .12); color: #65716d; border-color: rgba(112, 124, 121, .2); }
.event-status-chip.success { background: var(--event-teal-soft); color: #2e7f80; }
.event-inline-link {
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--event-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.event-inline-link:hover { color: var(--event-teal); }
.event-countdown {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--event-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.event-countdown-label::after { content: " · "; }
.event-countdown-label,
.event-countdown-value { white-space: nowrap; }
.event-countdown.is-expired { color: var(--event-muted); }
.event-state-header > .event-countdown { margin-top: 0; margin-left: auto; }
.event-official-progress .event-countdown { margin-left: 8px; }

.event-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-btn {
  min-height: 44px;
  min-width: 8.5em;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px 19px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, background 180ms ease;
}
.event-btn.is-loading { min-width: 8.5em; white-space: nowrap; }
.event-btn:hover { transform: translateY(-2px); }
.event-btn:focus-visible { outline: 3px solid rgba(232, 117, 34, 0.28); outline-offset: 2px; }
.event-btn.primary { background: #2f7777; color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 119, 119, 0.5), inset 0 1px 0 rgba(255,255,255,.18); }
.event-btn.primary:hover { background: #296b6b; box-shadow: 0 13px 28px -10px rgba(47, 119, 119, 0.58), inset 0 1px 0 rgba(255,255,255,.18); }
.event-btn.secondary { background: rgba(255,255,255,.56); color: var(--event-teal); border-color: var(--event-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); backdrop-filter: var(--event-glass); -webkit-backdrop-filter: var(--event-glass); }
.event-btn.secondary:hover { background: rgba(255,255,255,.78); }
.event-btn.text { background: transparent; color: var(--event-teal); padding-inline: 8px; }
.event-btn:disabled { opacity: 0.52; cursor: not-allowed; transform: none; box-shadow: none; }

.event-intent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-intent-entry {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  text-align: left;
  color: var(--event-ink);
  background: linear-gradient(135deg, rgba(195, 235, 232, 0.78), rgba(239, 250, 248, 0.54));
  border: 1px solid rgba(87, 183, 183, 0.38);
  border-left: 3px solid var(--event-teal-bright);
  border-radius: 18px;
  box-shadow: 0 18px 38px -28px rgba(42, 142, 144, 0.56), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, box-shadow 180ms ease;
}
.event-intent-entry:hover { transform: translateY(-2px); border-color: rgba(87,183,183,.42); box-shadow: 0 16px 32px -20px rgba(70,140,140,.3), inset 0 1px 0 rgba(255,255,255,.75); }
.event-intent-entry.idea {
  background: linear-gradient(135deg, rgba(247, 223, 168, 0.72), rgba(255, 248, 229, 0.56));
  border-color: rgba(211, 168, 75, 0.42);
  border-left-color: #d3a84b;
  box-shadow: 0 18px 38px -28px rgba(174, 126, 37, 0.5), inset 0 1px 0 rgba(255,255,255,.82);
}
.event-intent-entry.unified {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  background: linear-gradient(135deg, rgba(195, 235, 232, 0.76), rgba(255, 247, 224, 0.58));
  border-color: rgba(87, 183, 183, 0.42);
  border-left-color: var(--event-teal-bright);
  box-shadow: 0 20px 44px -28px rgba(42, 142, 144, 0.5), inset 0 1px 0 rgba(255,255,255,.84);
}
.event-intent-icon-stack { position: relative; display: block; width: 70px; height: 70px; }
.event-intent-icon-stack .event-intent-icon.image { position: absolute; inset: 0 auto auto 0; width: 54px; height: 54px; }
.event-intent-icon-stack .event-intent-icon.companion { inset: auto 0 0 auto; width: 39px; height: 39px; border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(174,126,37,.54), 0 0 0 3px rgba(255,248,229,.82); }
.event-intent-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--event-teal-soft); color: var(--event-teal); font-size: 22px; font-weight: 900; }
.event-intent-icon.image {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 20px -13px rgba(42, 142, 144, 0.62), inset 0 1px 0 rgba(255,255,255,.72);
}
.event-intent-icon.image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.event-intent-entry.idea .event-intent-icon { background: rgba(211, 168, 75, 0.18); color: #a8731f; }
.event-intent-entry strong { display: block; margin-bottom: 6px; font-size: 18px; }
.event-intent-entry small { display: block; color: var(--event-muted); font-size: 13px; line-height: 1.5; }
.event-intent-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #2f7777;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 9px 20px -12px rgba(47, 119, 119, 0.62), inset 0 1px 0 rgba(255,255,255,.2);
}
.event-intent-entry:hover .event-intent-action { background: #296b6b; }

.event-alternative-grid,
.event-official-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.event-compact-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: rgba(255,255,255,.58); border: 1px solid var(--event-line); border-radius: 22px; box-shadow: var(--event-shadow-soft); backdrop-filter: var(--event-glass); -webkit-backdrop-filter: var(--event-glass); }
.event-compact-card h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.event-compact-card p { margin: 0 0 16px; color: var(--event-muted); line-height: 1.55; font-size: 13px; }
.event-compact-card .event-actions { margin-top: auto; }
.event-official-card { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(247,250,244,.5)); }
.event-official-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--event-teal-bright), rgba(211,168,75,.72)); }
.event-official-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-official-card-head .event-status-chip { flex: 0 0 auto; align-self: flex-start; }
.event-official-card-head time { color: var(--event-teal); font-size: 12px; font-weight: 800; white-space: nowrap; }
.event-official-card-main { padding-top: 8px; }
.event-official-card-main h3 { margin-top: 0; }
.event-official-card-main p { margin-bottom: 0; }
.event-official-facts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; margin: 16px 0; padding: 13px 0; border-top: 1px solid var(--event-hairline); border-bottom: 1px solid var(--event-hairline); }
.event-official-facts div { min-width: 0; }
.event-official-facts dt { margin-bottom: 3px; color: var(--event-muted); font-size: 10px; font-weight: 700; }
.event-official-facts dd { margin: 0; color: var(--event-ink); font-size: 13px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.event-official-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.event-official-actions.has-join { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.event-official-actions .event-btn { width: 100%; }

.event-intent-list { display: grid; gap: 10px; }
.event-intent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 10px; padding: 16px 18px; background: rgba(255,255,255,.4); border: 1px solid var(--event-line); border-radius: var(--event-radius-small); box-shadow: inset 0 1px 0 rgba(255,255,255,.66); }
.event-intent-row:first-child { border-top: 0; }
.event-intent-row h3 { margin: 0 0 5px; font-size: 16px; }
.event-intent-row p { margin: 0; color: var(--event-muted); font-size: 13px; line-height: 1.5; }
.event-intent-progress-list { display: grid; gap: 10px; }
.event-intent-progress { position: relative; min-width: 0; padding: 18px; overflow: hidden; border: 1px solid rgba(87,183,183,.34); border-radius: 20px; background: linear-gradient(145deg, rgba(225,247,243,.78), rgba(255,255,255,.62)); box-shadow: var(--event-shadow-soft), inset 0 1px 0 rgba(255,255,255,.78); }
.event-intent-progress::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--event-teal-bright); }
.event-intent-progress.paused { filter: saturate(.72); }
.event-intent-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.event-intent-progress-head small { color: var(--event-muted); font-size: 10px; text-align: right; }
.event-intent-progress h3 { margin: 0; font-size: 17px; line-height: 1.42; overflow-wrap: anywhere; }
.event-intent-progress > p { margin: 7px 0 0; color: var(--event-muted); font-size: 12px; line-height: 1.55; }
.event-intent-progress .event-card-meta { margin-top: 12px; }
.event-intent-progress .event-actions { margin-top: 13px; }
.event-capability-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid rgba(211,168,75,.62); border-radius: 0 12px 12px 0; background: rgba(247,223,168,.22); color: var(--event-muted); font-size: 11px; line-height: 1.55; }
.event-intent-failed { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid rgba(211,168,75,.4); border-radius: 22px; background: linear-gradient(145deg, rgba(255,245,228,.82), rgba(239,249,246,.68)); box-shadow: var(--event-shadow-soft), inset 0 1px 0 rgba(255,255,255,.8); }
.event-intent-failed-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(211,168,75,.18); color: #a56720; font-size: 20px; font-weight: 900; }
.event-intent-failed-body { min-width: 0; }
.event-intent-failed-body .event-status-chip { align-self: flex-start; }
.event-intent-failed h3 { margin: 9px 0 6px; font-size: 21px; line-height: 1.35; }
.event-intent-failed p { margin: 0; color: var(--event-muted); font-size: 13px; line-height: 1.65; }
.event-failed-plan { display: grid; gap: 3px; margin: 14px 0; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.5); }
.event-failed-plan small { color: var(--event-muted); font-size: 10px; }
.event-failed-plan strong { color: var(--event-ink); font-size: 13px; line-height: 1.45; }

.event-empty { padding: 28px; text-align: center; color: var(--event-muted); background: rgba(255,255,255,.48); border: 1px dashed rgba(62,149,149,.28); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.event-empty strong { display: block; color: var(--event-ink); margin-bottom: 6px; }
.event-empty-recommend {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 22px;
  text-align: left;
  border-style: solid;
  border-radius: 18px;
}
.event-empty-recommend > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--event-teal);
  background: var(--event-teal-soft);
  font-weight: 900;
}
.event-error { border-color: rgba(232,117,34,.35); background: var(--event-orange-soft); }
.event-skeleton { min-height: 280px; display: grid; place-items: center; color: var(--event-muted); }
.event-skeleton-copy { display: grid; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.event-skeleton-copy strong { color: var(--event-ink); font-size: 18px; }
.event-skeleton-copy p { max-width: 28em; margin: 0; line-height: 1.6; }
.event-skeleton-copy .event-btn { margin-top: 8px; min-height: 44px; }

.event-message-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 34px; background: rgba(255,255,255,.5); border: 1px solid var(--event-line); border-radius: var(--event-radius); box-shadow: var(--event-shadow); backdrop-filter: var(--event-glass); -webkit-backdrop-filter: var(--event-glass); }
.event-message-head h1 { font-size: clamp(32px, 3.3vw, 44px); }
.event-message-tabs { display: inline-flex; gap: 5px; padding: 5px; margin: 24px 0 14px; background: rgba(255,255,255,.45); border: 1px solid var(--event-line); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.event-message-tab { border: 0; border-radius: 14px; background: transparent; color: var(--event-muted); padding: 10px 17px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.event-message-tab.active { color: var(--event-teal); background: rgba(255,255,255,.8); box-shadow: var(--event-shadow-soft); }
.event-message-list { display: grid; gap: 10px; }
.event-message-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px 18px; background: rgba(255,255,255,.48); border: 1px solid var(--event-line); border-radius: 20px; box-shadow: var(--event-shadow-soft); cursor: pointer; transition: transform 180ms ease, background 180ms ease; }
.event-message-row:hover { transform: translateY(-2px); background: rgba(255,255,255,.7); }
.event-message-row.is-terminal { cursor: default; }
.event-message-row.is-terminal:hover { transform: none; background: rgba(255,255,255,.48); }
.event-message-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--event-teal); background: var(--event-teal-soft); font-weight: 900; }
.event-message-row.progress .event-message-mark { color: #a8551b; background: var(--event-orange-soft); }
.event-message-row h3 { margin: 0 0 4px; font-size: 16px; }
.event-message-row p { margin: 0; color: var(--event-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-message-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--event-orange); color: #fff; font-size: 11px; font-weight: 800; }
.event-nav-badge { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 5px; padding: 0 4px; border-radius: 999px; background: var(--event-orange); color: #fff; font-size: 10px; line-height: 1; }
.event-nav-badge.hidden { display: none !important; }

.event-modal-backdrop { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 24px; background: rgba(29,40,33,.48); backdrop-filter: blur(12px); }
.event-modal-backdrop.hidden { display: none; }
.event-modal { width: min(640px, 100%); max-height: min(780px, calc(100vh - 48px)); overflow: auto; padding: 26px; background: rgba(245,242,234,.88); border: 1px solid rgba(255,255,255,.82); border-radius: 28px; box-shadow: 0 30px 80px rgba(24,34,28,.24), inset 0 1px 0 rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px); }
.event-modal.event-intent-modal { width: min(690px, 100%); }
.event-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.event-modal-head h2 { margin: 0; font-size: 25px; letter-spacing: 0; }
.event-modal-head p { margin: 7px 0 0; color: var(--event-muted); line-height: 1.5; }
.event-modal-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(42,58,46,.12); border-radius: 50%; background: #fff; color: var(--event-ink); font-size: 25px; line-height: 1; cursor: pointer; }
.event-field { display: grid; gap: 7px; margin: 14px 0; }
.event-field > span { font-size: 13px; font-weight: 800; }
.event-field > small { color: var(--event-muted); font-size: 11px; line-height: 1.45; }
.event-field input,
.event-field textarea,
.event-field select { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid var(--event-line); border-radius: 16px; padding: 11px 14px; background: rgba(255,255,255,.76); color: var(--event-ink); font: inherit; font-size: 15px; letter-spacing: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.event-field textarea { min-height: 100px; resize: vertical; }
.event-field input:focus,
.event-field textarea:focus,
.event-field select:focus { outline: 3px solid rgba(87,183,183,.18); border-color: var(--event-teal); }
.event-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-preference-stack { display: grid; gap: 10px; }
.event-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.event-mainline-group { align-items: center; }
.event-adaptive-details {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(87,183,183,.26);
  border-radius: 16px;
  background: rgba(224,247,243,.42);
}
.event-adaptive-details.hidden { display: none; }
.event-adaptive-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.event-adaptive-head strong { color: var(--event-ink); font-size: 12px; }
.event-adaptive-head small { color: var(--event-muted); font-size: 10px; }
.event-venue-validation,
.event-pre-event-reminder {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(211,168,75,.34);
  border-radius: 14px;
  background: rgba(255,246,224,.72);
}
.event-venue-validation strong,
.event-pre-event-reminder strong { color: #9c681f; font-size: 11px; }
.event-venue-validation span,
.event-pre-event-reminder span { color: var(--event-muted); font-size: 11px; line-height: 1.45; }
.event-commitment-summary {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(87,183,183,.34);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(224,247,243,.8), rgba(255,250,240,.78));
}
.event-commitment-title { display: grid; gap: 4px; }
.event-commitment-title span,
.event-commitment-lines span { color: var(--event-muted); font-size: 11px; font-weight: 750; }
.event-commitment-title strong { color: var(--event-ink); font-size: 20px; line-height: 1.3; }
.event-commitment-lines { display: grid; gap: 9px; }
.event-commitment-lines > div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 10px; align-items: start; }
.event-commitment-lines strong { color: var(--event-ink); font-size: 12px; line-height: 1.45; }
.event-commitment-note { margin: 0; color: var(--event-muted); font-size: 11px; line-height: 1.6; }
.event-commitment-actions { margin-top: 14px; }
.event-choice { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid var(--event-line); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--event-muted); padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.event-choice:hover { transform: translateY(-1px); border-color: rgba(87,183,183,.46); }
.event-choice:focus-visible { outline: 3px solid rgba(87,183,183,.18); outline-offset: 2px; }
.event-choice.selected { background: linear-gradient(135deg, rgba(223,246,242,.92), rgba(255,255,255,.78)); border-color: var(--event-teal-bright); color: var(--event-teal); font-weight: 800; box-shadow: 0 7px 18px -12px rgba(62,149,149,.5), inset 0 1px 0 rgba(255,255,255,.82); }
.event-sport-panel {
  display: grid;
  gap: 10px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(87,183,183,.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(225,247,243,.58), rgba(255,255,255,.48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.event-sport-panel.hidden { display: none; }
.event-subchoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.event-subchoice-head strong { color: var(--event-ink); font-size: 12px; }
.event-subchoice-head small { color: var(--event-muted); font-size: 11px; }
.event-sport-check-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.event-sport-check {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.event-sport-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.event-sport-check span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 7px;
  border: 1px solid var(--event-line);
  border-radius: 13px;
  background: rgba(255,255,255,.58);
  color: var(--event-muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.event-sport-check span::before {
  content: "";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  box-sizing: border-box;
  border: 1px solid rgba(62,149,149,.32);
  border-radius: 4px;
  background: rgba(255,255,255,.72);
}
.event-sport-check input:focus-visible + span { outline: 3px solid rgba(87,183,183,.18); outline-offset: 2px; }
.event-sport-check input:checked + span {
  border-color: var(--event-teal-bright);
  background: linear-gradient(145deg, rgba(224,247,243,.96), rgba(255,255,255,.78));
  color: var(--event-teal);
  box-shadow: 0 8px 20px -14px rgba(62,149,149,.55), inset 0 1px 0 rgba(255,255,255,.88);
}
.event-sport-check input:checked + span::before {
  content: "✓";
  border-color: var(--event-teal-bright);
  background: var(--event-teal-bright);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.event-option-group { display: grid; grid-template-columns: repeat(var(--event-option-columns), minmax(0, 1fr)); gap: 7px; }
.event-option { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 8px 7px; border: 1px solid var(--event-line); border-radius: 15px; background: rgba(255,255,255,.58); color: var(--event-muted); font: inherit; text-align: center; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.72); transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.event-option:hover { transform: translateY(-1px); border-color: rgba(87,183,183,.46); }
.event-option:focus-visible { outline: 3px solid rgba(87,183,183,.18); outline-offset: 2px; }
.event-option span { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; font-weight: 750; }
.event-option small { color: var(--event-muted); font-size: 10px; line-height: 1.25; }
.event-option.selected { border-color: var(--event-teal-bright); background: linear-gradient(145deg, rgba(224,247,243,.96), rgba(255,255,255,.8)); color: var(--event-teal); box-shadow: 0 8px 20px -14px rgba(62,149,149,.55), inset 0 1px 0 rgba(255,255,255,.88); }
.event-option.selected::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--event-teal-bright); box-shadow: 0 0 0 3px rgba(87,183,183,.13); }
.event-intent-mode-preview { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; align-items: center; padding: 13px 14px; border: 1px solid rgba(87,183,183,.34); border-radius: 17px; background: linear-gradient(135deg, rgba(205,239,236,.7), rgba(255,255,255,.52)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: background 180ms ease, border-color 180ms ease; }
.event-intent-mode-preview.idea { border-color: rgba(211,168,75,.42); background: linear-gradient(135deg, rgba(247,223,168,.62), rgba(255,255,255,.52)); }
.event-intent-mode-preview img { display: block; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.82); border-radius: 15px; object-fit: contain; box-shadow: 0 8px 18px -12px rgba(42,58,46,.38); }
.event-intent-mode-preview small { display: block; margin-bottom: 3px; color: var(--event-teal); font-size: 11px; font-weight: 900; }
.event-intent-mode-preview.idea small { color: #a8731f; }
.event-intent-mode-preview strong { display: block; font-size: 13px; line-height: 1.45; }
.event-intent-form { display: grid; gap: 14px; }
.event-intent-form.is-reviewing > .event-intent-mode-preview,
.event-intent-form.is-reviewing > .event-form-section,
.event-intent-form.is-reviewing > .event-preference-details { display: none; }
.event-intent-receipt { display: grid; gap: 14px; padding: 20px; border: 1px solid rgba(87,183,183,.4); border-radius: 20px; background: linear-gradient(145deg, rgba(224,247,243,.88), rgba(255,250,240,.82)); box-shadow: 0 18px 42px -30px rgba(42,58,46,.45), inset 0 1px 0 rgba(255,255,255,.86); text-align: left; }
.event-intent-receipt.hidden { display: none; }
.event-intent-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(62,149,149,.16); }
.event-intent-receipt-head span { color: var(--event-muted); font-size: 11px; font-weight: 800; }
.event-intent-receipt-head strong { color: var(--event-teal); font-size: 13px; }
.event-intent-receipt-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.event-intent-receipt-summary span { padding: 8px 10px; border: 1px solid rgba(87,183,183,.22); border-radius: 12px; background: rgba(255,255,255,.62); color: var(--event-ink); font-size: 12px; font-weight: 750; line-height: 1.35; }
.event-intent-receipt-note { margin: 0; color: var(--event-muted); font-size: 12px; line-height: 1.6; }
.event-intent-receipt-note strong { color: var(--event-ink); }
.event-intent-receipt.event-error { border-color: rgba(211,168,75,.48); background: rgba(255,240,224,.78); }
.event-form-section { padding-top: 14px; border-top: 1px solid var(--event-hairline); }
.event-form-section:first-of-type { padding-top: 2px; border-top: 0; }
.event-form-step { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--event-ink); font-size: 13px; font-weight: 900; }
.event-form-step > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--event-teal-soft); color: var(--event-teal); font-size: 11px; }
.event-form-step small { margin-left: auto; color: var(--event-muted); font-size: 11px; font-weight: 650; }
.event-intent-form .event-field { margin: 0; }
.event-time-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.event-idea-field textarea { min-height: 82px; }
.event-size-field .event-option { min-height: 52px; }
.event-fixed-choice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(87,183,183,.34);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(215,242,238,.66), rgba(255,255,255,.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.event-fixed-choice strong { color: var(--event-ink); font-size: 15px; }
.event-fixed-choice small { color: var(--event-muted); font-size: 11px; line-height: 1.45; }
.event-duo-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid rgba(87,183,183,.34);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(215,242,238,.66), rgba(255,255,255,.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.event-duo-preference.hidden { display: none; }
.event-duo-preference .event-option-group {
  width: min(100%, 460px);
  justify-self: center;
}
.event-duo-preference strong,
.event-duo-preference small { display: block; }
.event-duo-preference strong { font-size: 13px; }
.event-duo-preference small { margin-top: 3px; color: var(--event-muted); font-size: 10px; }
.event-form-actions { margin-top: 2px; padding-top: 15px; border-top: 1px solid var(--event-hairline); }
.event-form-actions .primary { min-width: 150px; }
.event-modal.event-intent-modal .event-form-actions {
  position: sticky;
  bottom: -26px;
  z-index: 2;
  margin: 0 -26px -26px;
  padding: 13px 26px 18px;
  background: rgba(245,242,234,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.event-preference-details { margin-top: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.event-preference-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; color: var(--event-teal); font-size: 13px; font-weight: 850; cursor: pointer; list-style: none; }
.event-preference-details summary::-webkit-details-marker { display: none; }
.event-preference-details summary::after { content: "+"; font-size: 19px; line-height: 1; }
.event-preference-details[open] summary::after { content: "−"; }
.event-preference-details summary span { color: var(--event-muted); font-size: 11px; font-weight: 650; }
.event-preference-body { display: grid; gap: 14px; padding: 0; border-top: 0; }
.event-preference-body .event-field { margin: 0; }
.event-preference-body > .event-beta-note { margin: 0; }
.event-room-participants { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 13px; }
.event-room-participant { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 10px 5px 5px; border: 1px solid var(--event-line); border-radius: 999px; background: rgba(255,255,255,.56); color: var(--event-muted); font-size: 12px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.event-room-avatar { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: linear-gradient(135deg, rgba(87,183,183,.24), rgba(255,154,61,.18)); color: var(--event-teal); font-size: 13px; font-weight: 900; box-shadow: 0 6px 14px -8px rgba(42,58,46,.35); }
.event-room-participant .event-room-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
.event-room-member-action,
.event-room-message-action { border: 0; padding: 2px 0; background: transparent; color: var(--event-muted); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; }
.event-room-member-action:hover,
.event-room-member-action:focus-visible,
.event-room-message-action:hover,
.event-room-message-action:focus-visible { color: var(--event-orange); }
.event-room-avatar.system { background: linear-gradient(135deg, var(--event-teal-bright), var(--event-teal)); color: #fff; }
.event-room-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-room-plan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1px; margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(87,183,183,.3); border-radius: 17px; background: rgba(87,183,183,.22); box-shadow: 0 10px 24px -20px rgba(42,58,46,.42), inset 0 1px 0 rgba(255,255,255,.72); }
.event-room-plan-item { min-width: 0; padding: 11px 13px 12px; background: linear-gradient(145deg, rgba(226,247,244,.84), rgba(255,255,255,.66)); }
.event-room-plan-item span,
.event-room-plan-item strong,
.event-room-plan-item small { display: block; }
.event-room-plan-item span { margin-bottom: 4px; color: var(--event-teal); font-size: 10px; font-weight: 900; }
.event-room-plan-item strong { color: var(--event-ink); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.event-room-plan-item small { margin-top: 2px; color: var(--event-muted); font-size: 10px; line-height: 1.4; }
.event-room-messages { display: grid; align-content: start; gap: 14px; min-height: 140px; max-height: 360px; overflow: auto; padding: 8px 2px 14px; }
.event-room-message-row { display: flex; align-items: flex-end; gap: 9px; max-width: 84%; justify-self: start; }
.event-room-message-row.mine { flex-direction: row-reverse; justify-self: end; }
.event-room-sender { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 3px; max-width: 92px; }
.event-room-sender-name { max-width: 92px; overflow: hidden; color: var(--event-muted); font-size: 10px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.event-room-message { min-width: 0; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.8); box-shadow: var(--event-shadow-soft); }
.event-room-message-row.mine .event-room-message { border-radius: 18px 18px 6px 18px; background: rgba(215,242,238,.82); }
.event-room-message-row.system .event-room-message { background: rgba(255,255,255,.62); }
.event-room-messages > .event-room-message { max-width: 78%; justify-self: start; }
.event-room-messages > .event-room-message.mine { justify-self: end; border-radius: 18px 18px 6px 18px; background: rgba(215,242,238,.82); }
.event-room-message p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.event-room-message-action { display: block; margin-top: 6px; }
.event-room-composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border-top: 1px solid var(--event-line); padding-top: 14px; }
.event-room-composer input { min-width: 0; border: 1px solid var(--event-line); border-radius: 16px; padding: 11px 14px; background: rgba(255,255,255,.78); font: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }

@media (max-width: 560px) {
  .event-room-plan { grid-template-columns: minmax(0, 1fr); }
  .event-room-plan-item + .event-room-plan-item { border-top: 1px solid rgba(87,183,183,.22); }
  .event-room-messages { min-height: 120px; max-height: 38vh; }
}

/* The H5 surface can be previewed inside a narrow phone shell while the
 * browser viewport remains desktop-sized. Keep its card layout mobile by
 * surface identity instead of relying only on a viewport media query. */
.event-hub-root[data-surface="mobile"] .event-hub-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 2px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.event-hub-root[data-surface="mobile"] .event-hub-hero::before { display: none; }
.event-hub-root[data-surface="mobile"] {
  width: min(100%, 100vw);
  max-width: 100vw;
  overflow-x: hidden;
  padding: 14px 0 100px;
}
.event-hub-root[data-surface="mobile"] .event-hub-hero .event-hub-kicker {
  margin-bottom: 4px;
  color: var(--event-muted);
  font-size: 11.5px;
  letter-spacing: .17em;
}
.event-hub-root[data-surface="mobile"] .event-section-kicker {
  margin-bottom: 6px;
  font-size: 10px;
}
.event-hub-root[data-surface="mobile"] .event-hub-hero h1 {
  font-size: 30px;
  font-weight: 950;
  line-height: 1.04;
}
.event-hub-root[data-surface="mobile"] .event-hub-brand > p:last-child {
  margin-top: 5px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
}
.event-hub-root[data-surface="mobile"] .event-hub-signal {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 14px;
}
.event-hub-root[data-surface="mobile"] .event-hub-signal-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  box-shadow: 0 0 0 4px var(--event-teal-soft);
}
.event-hub-root[data-surface="mobile"] .event-hub-signal small { font-size: 10px; }
.event-hub-root[data-surface="mobile"] .event-hub-signal strong { font-size: 13px; }
  .event-hub-root[data-surface="mobile"] .event-hub-signal p { display: none; }
  .event-hub-root[data-surface="mobile"] .event-hub-status { white-space: normal; }
  .event-hub-root[data-surface="mobile"] .event-hub-signal-action {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 11px;
  }
.event-hub-root[data-surface="mobile"] .event-workspace {
  grid-template-columns: minmax(0, 1fr);
}
.event-hub-root[data-surface="mobile"] .event-workspace > .event-section {
  min-height: 0;
  padding: 19px 0 21px;
}
.event-hub-root[data-surface="mobile"] .event-workspace > .event-start-section {
  padding-right: 0;
  border-right: 0;
  border-bottom: 1px solid var(--event-hairline);
}
.event-hub-root[data-surface="mobile"] .event-workspace > .event-recommend-section { padding-left: 0; }
.event-hub-root[data-surface="mobile"] .event-workspace .event-section-heading { min-height: 0; }
.event-hub-root[data-surface="mobile"] .event-section {
  padding: 21px 0;
}
.event-hub-root[data-surface="mobile"] .event-section-heading {
  gap: 12px;
  margin-bottom: 11px;
}
.event-hub-root[data-surface="mobile"] .event-section-heading h2 {
  font-size: 20px;
}
.event-hub-root[data-surface="mobile"] .event-section-heading p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}
.event-hub-root[data-surface="mobile"] .event-intent-grid,
.event-hub-root[data-surface="mobile"] .event-alternative-grid,
.event-hub-root[data-surface="mobile"] .event-official-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.event-hub-root[data-surface="mobile"] .event-next-card,
.event-hub-root[data-surface="mobile"] .event-recommend-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: var(--event-shadow-soft);
}
.event-hub-root[data-surface="mobile"] .event-feedback-callout {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 17px;
  box-shadow: none;
}
.event-hub-root[data-surface="mobile"] .event-card-label {
  margin-bottom: 6px;
  font-size: 10px;
}
.event-hub-root[data-surface="mobile"] .event-card-title {
  font-size: 21px;
  line-height: 1.3;
}
.event-hub-root[data-surface="mobile"] .event-card-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}
.event-hub-root[data-surface="mobile"] .event-card-meta {
  gap: 6px;
  margin-top: 11px;
}
.event-hub-root[data-surface="mobile"] .event-card-meta span,
.event-hub-root[data-surface="mobile"] .event-status-chip {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 11px;
}
.event-hub-root[data-surface="mobile"] .event-actions {
  gap: 8px;
}
.event-hub-root[data-surface="mobile"] .event-actions .event-btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
}
.event-hub-root[data-surface="mobile"] .event-intent-entry {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  min-height: 92px;
  padding: 14px;
  border-radius: 20px;
}
.event-hub-root[data-surface="mobile"] .event-intent-entry.unified {
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 134px;
  padding: 13px 14px;
  gap: 10px;
}
.event-hub-root[data-surface="mobile"] .event-intent-icon-stack { width: 54px; height: 54px; }
.event-hub-root[data-surface="mobile"] .event-intent-icon-stack .event-intent-icon.image { width: 43px; height: 43px; border-radius: 13px; }
.event-hub-root[data-surface="mobile"] .event-intent-icon-stack .event-intent-icon.companion { width: 29px; height: 29px; border-radius: 9px; }
.event-hub-root[data-surface="mobile"] .event-intent-icon {
  width: 42px;
  height: 42px;
  font-size: 19px;
}
.event-hub-root[data-surface="mobile"] .event-intent-icon.image {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.event-hub-root[data-surface="mobile"] .event-intent-entry strong {
  margin-bottom: 3px;
  font-size: 15.5px;
}
.event-hub-root[data-surface="mobile"] .event-intent-entry small {
  font-size: 11.5px;
  line-height: 1.42;
}
.event-hub-root[data-surface="mobile"] .event-intent-action {
  grid-column: 2;
  justify-self: start;
  min-height: 31px;
  margin-top: 1px;
  padding: 5px 11px;
  border-radius: 11px;
  font-size: 12px;
}
.event-hub-root[data-surface="mobile"] .event-intent-entry.unified .event-intent-action { grid-column: 2; }
.event-hub-root[data-surface="mobile"] .event-empty-recommend {
  min-height: 104px;
  padding: 16px;
}
.event-hub-root[data-surface="mobile"] .event-compact-card {
  padding: 16px;
  border-radius: 18px;
}
.event-hub-root[data-surface="mobile"] .event-compact-card h3 {
  margin: 5px 0 6px;
  font-size: 16px;
}
.event-hub-root[data-surface="mobile"] .event-compact-card p {
  margin-bottom: 12px;
  font-size: 12px;
}
.event-hub-root[data-surface="mobile"] .event-official-card { padding: 15px; }
.event-hub-root[data-surface="mobile"] .event-official-card-head time { font-size: 11px; }
.event-hub-root[data-surface="mobile"] .event-official-card-main { padding-top: 9px; }
.event-hub-root[data-surface="mobile"] .event-official-card-main h3 { margin-bottom: 5px; font-size: 17px; }
.event-hub-root[data-surface="mobile"] .event-official-card-main p { margin-bottom: 0; line-height: 1.48; }
.event-hub-root[data-surface="mobile"] .event-official-facts { gap: 10px; margin: 13px 0; padding: 11px 0; }
.event-hub-root[data-surface="mobile"] .event-official-facts dt { font-size: 9.5px; }
.event-hub-root[data-surface="mobile"] .event-official-facts dd { font-size: 12px; }
.event-hub-root[data-surface="mobile"] .event-official-actions .event-btn { flex: none; min-height: 38px; }
.event-hub-root[data-surface="mobile"] .event-feedback-callout h2 {
  font-size: 18px;
}
.event-hub-root[data-surface="mobile"] .event-feedback-callout p:last-child {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}
.event-hub-root[data-surface="mobile"] .event-feedback-callout > .event-btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 13px;
  font-size: 12px;
  white-space: nowrap;
}
.event-hub-root[data-surface="mobile"] .event-intent-row {
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
}
.event-hub-root[data-surface="mobile"] .event-intent-progress { padding: 15px; border-radius: 18px; }
.event-hub-root[data-surface="mobile"] .event-intent-progress h3 { font-size: 15px; }
.event-hub-root[data-surface="mobile"] .event-intent-progress > p { font-size: 11.5px; }
.event-hub-root[data-surface="mobile"] .event-capability-note { font-size: 10.5px; }
.event-hub-root[data-surface="mobile"] .event-intent-failed { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 15px; border-radius: 18px; }
.event-hub-root[data-surface="mobile"] .event-intent-failed-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 17px; }
.event-hub-root[data-surface="mobile"] .event-intent-failed h3 { margin-top: 7px; font-size: 17px; }
.event-hub-root[data-surface="mobile"] .event-intent-failed p { font-size: 11.5px; line-height: 1.55; }
.event-hub-root[data-surface="mobile"] .event-failed-plan { margin: 11px 0; padding: 9px 10px; }
.event-hub-root[data-surface="mobile"] .event-failed-plan strong { font-size: 11.5px; }
.event-hub-root[data-surface="mobile"] .event-empty {
  padding: 20px 16px;
  border-radius: 18px;
}
.event-hub-root[data-surface="mobile"] .event-form-grid { grid-template-columns: minmax(0, 1fr); }
.event-hub-root[data-surface="mobile"] .event-option-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.event-message-root[data-surface="mobile"] {
  padding: 22px 0 100px;
}
.event-message-root[data-surface="mobile"] .event-message-head {
  align-items: flex-start;
  flex-direction: row;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.event-message-root[data-surface="mobile"] .event-hub-kicker {
  margin-bottom: 4px;
  color: var(--event-muted);
  font-size: 11.5px;
  letter-spacing: .17em;
}
.event-message-root[data-surface="mobile"] .event-message-head h1 {
  font-size: 31px;
  font-weight: 950;
  line-height: 1.04;
}
.event-message-root[data-surface="mobile"] .event-message-head p {
  margin-top: 7px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
}
.event-message-root[data-surface="mobile"] .event-message-head > .event-btn {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 13px;
  font-size: 12px;
  white-space: nowrap;
}
.event-message-root[data-surface="mobile"] .event-message-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 4px;
  margin: 14px 0 12px;
  padding: 4px;
  border-radius: 15px;
}
.event-message-root[data-surface="mobile"] .event-message-tab {
  padding: 9px 5px;
  border-radius: 11px;
  font-size: 12px;
}
.event-message-root[data-surface="mobile"] .event-message-list {
  gap: 8px;
}
.event-message-root[data-surface="mobile"] .event-message-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 17px;
}
.event-message-root[data-surface="mobile"] .event-message-mark {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.event-message-root[data-surface="mobile"] .event-message-row h3 {
  font-size: 15px;
}
.event-message-root[data-surface="mobile"] .event-message-row p {
  font-size: 12px;
}

/* H5 can sit inside a desktop-width phone preview, so modal sizing follows the
 * originating surface instead of the outer browser viewport. */
.event-modal-backdrop[data-surface="mobile"] {
  align-items: center;
  padding: 14px;
}
.event-modal-backdrop[data-surface="mobile"] .event-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(730px, calc(100vh - 28px));
  padding: 18px;
  border-radius: 24px;
}
.event-modal-backdrop[data-surface="mobile"] .event-modal-head { gap: 12px; margin-bottom: 14px; }
.event-modal-backdrop[data-surface="mobile"] .event-modal-head h2 { font-size: 23px; }
.event-modal-backdrop[data-surface="mobile"] .event-modal-head p { margin-top: 5px; font-size: 12px; }
.event-modal-backdrop[data-surface="mobile"] .event-modal-close { width: 36px; height: 36px; flex-basis: 36px; font-size: 22px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-form { gap: 11px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-receipt { gap: 11px; padding: 15px; border-radius: 17px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-receipt-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-receipt-summary span:first-child { grid-column: 1 / -1; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-receipt-summary span { padding: 7px 8px; font-size: 10.5px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-mode-preview { grid-template-columns: 44px minmax(0,1fr); gap: 10px; padding: 10px 11px; border-radius: 15px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-mode-preview img { width: 44px; height: 44px; border-radius: 13px; }
.event-modal-backdrop[data-surface="mobile"] .event-intent-mode-preview strong { font-size: 12px; }
.event-modal-backdrop[data-surface="mobile"] .event-form-section { padding-top: 11px; }
.event-modal-backdrop[data-surface="mobile"] .event-form-step { margin-bottom: 8px; }
.event-modal-backdrop[data-surface="mobile"] .event-time-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
.event-modal-backdrop[data-surface="mobile"] .event-field > span { font-size: 12px; }
.event-modal-backdrop[data-surface="mobile"] .event-field input,
.event-modal-backdrop[data-surface="mobile"] .event-field textarea { min-height: 42px; border-radius: 14px; padding: 9px 11px; font-size: 13px; }
.event-modal-backdrop[data-surface="mobile"] .event-idea-field textarea { min-height: 70px; }
.event-modal-backdrop[data-surface="mobile"] .event-option { min-height: 43px; border-radius: 13px; padding: 6px 5px; }
.event-modal-backdrop[data-surface="mobile"] .event-option span { font-size: 12px; }
.event-modal-backdrop[data-surface="mobile"] .event-mainline-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.event-modal-backdrop[data-surface="mobile"] .event-choice {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
}
.event-modal-backdrop[data-surface="mobile"] .event-sport-panel {
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}
.event-modal-backdrop[data-surface="mobile"] .event-sport-check-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.event-modal-backdrop[data-surface="mobile"] .event-sport-check span {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
}
.event-modal-backdrop[data-surface="mobile"] .event-duo-preference {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px 11px;
  border-radius: 14px;
}
.event-modal-backdrop[data-surface="mobile"] .event-preference-details { margin-top: 0; border-radius: 14px; }
.event-modal-backdrop[data-surface="mobile"] .event-preference-details summary { padding: 11px 12px; }
.event-modal-backdrop[data-surface="mobile"] .event-form-actions { position: sticky; bottom: -18px; z-index: 2; margin: 0 -18px -18px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(245,242,234,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.event-modal-backdrop[data-surface="mobile"] .event-form-actions .event-btn { flex: 1 1 0; min-width: 0; min-height: 42px; }

@media (min-width: 560px) {
  .event-modal-backdrop[data-surface="mobile"] .event-modal {
    padding: 24px;
    border-radius: 28px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-modal-head {
    margin-bottom: 18px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-modal-head h2 {
    font-size: 26px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-intent-mode-preview {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 12px 14px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-intent-mode-preview img {
    width: 50px;
    height: 50px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-time-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr);
    align-items: end;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-idea-field textarea {
    min-height: 76px;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-duo-preference {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    align-items: center;
  }
  .event-modal-backdrop[data-surface="mobile"] .event-form-actions {
    bottom: -24px;
    margin: 0 -24px -24px;
    padding: 13px 24px 16px;
  }
}

.event-modal-backdrop[data-surface="desktop"] .event-intent-modal {
  padding: 22px;
}
.event-modal-backdrop[data-surface="desktop"] .event-intent-modal .event-modal-head {
  margin-bottom: 16px;
}
.event-modal-backdrop[data-surface="desktop"] .event-intent-modal .event-intent-form {
  gap: 11px;
}
.event-modal-backdrop[data-surface="desktop"] .event-intent-modal .event-form-section {
  padding-top: 11px;
}
.event-modal-backdrop[data-surface="desktop"] .event-intent-modal .event-idea-field textarea {
  min-height: 74px;
}
.event-modal-backdrop[data-surface="desktop"] .event-intent-modal .event-form-actions {
  bottom: -22px;
  margin: 0 -22px -22px;
  padding: 12px 22px 15px;
}

@media (max-width: 820px) {
  .event-hub-root,
  .event-message-root { width: 100%; padding-inline: 18px; }
  .event-hub-hero { grid-template-columns: 1fr; align-items: start; padding: 25px 22px; border-radius: 26px; }
  .event-hub-hero h1 { font-size: 32px; }
  .event-hub-status { white-space: normal; }
  .event-workspace { grid-template-columns: 1fr; }
  .event-workspace > .event-start-section { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--event-hairline); }
  .event-workspace > .event-recommend-section { padding-left: 0; }
  .event-intent-grid,
  .event-alternative-grid,
  .event-official-grid { grid-template-columns: 1fr; }
  .event-next-card,
  .event-recommend-card,
  .event-feedback-callout { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .event-actions .event-btn { flex: 1 1 auto; }
  .event-form-grid { grid-template-columns: 1fr; }
  .event-option-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-message-head { align-items: start; flex-direction: column; }
  .event-message-tabs { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .event-message-tab { padding-inline: 7px; }
  .event-modal-backdrop:not([data-surface="mobile"]) { align-items: end; padding: 0; }
  .event-modal-backdrop:not([data-surface="mobile"]) .event-modal { width: 100%; max-height: 88vh; border-radius: 28px 28px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
}

/* v2.3 event-first cards stay light and compact inside the existing hub. */
.event-v23-section {
  margin: 22px 0 28px;
}

.event-v23-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}

.event-v23-list::-webkit-scrollbar {
  display: none;
}

.event-v23-slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.event-v23-slide .event-v23-card {
  width: 100%;
  min-height: 410px;
}

.event-v23-list.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.event-v23-carousel-footer {
  margin-top: 12px;
}

.event-v23-carousel-position {
  min-width: 48px;
  color: var(--event-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.event-v23-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--event-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 28px rgba(35, 75, 68, .06);
}

.event-v23-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-v23-card-head .event-section-kicker {
  margin: 0 0 7px;
}

.event-v23-card h3 {
  margin: 14px 0 6px;
  color: var(--event-ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
}

.event-v23-detail {
  margin: 0 0 12px;
  color: var(--event-muted);
  line-height: 1.6;
}

.event-v23-facts {
  margin: 12px 0;
}

.event-v23-reasons {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--event-muted);
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
}

.event-v23-reasons li::before {
  margin-right: 7px;
  color: var(--event-teal);
  content: "·";
  font-weight: 900;
}

.event-v23-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--event-muted);
  font-size: 12px;
  text-align: right;
}

.event-v23-countdown .event-countdown-value {
  color: var(--event-orange);
  font-size: 12px;
  font-weight: 800;
}

.event-v23-countdown.is-expired .event-countdown-label {
  color: var(--event-muted);
}

.event-v23-countdown.is-expired .event-countdown-label::after {
  content: "";
}

.event-v23-actions {
  margin-top: 17px;
}

.event-v23-actions .event-btn {
  min-height: 44px;
}

@media (max-width: 820px) {
  .event-v23-slide .event-v23-card {
    min-height: 470px;
  }
}

.profile-encounter-card {
  min-width: 0;
}

.profile-encounter-card > .profile-card-heading-row,
.profile-encounter-card .profile-card-head {
  align-items: center;
}

.profile-encounter-card > strong,
.profile-encounter-card h3 {
  color: var(--event-ink);
}

.profile-card-title-block {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-encounter-card .profile-card-title-block .profile-card-eyebrow {
  margin: 0;
  color: var(--event-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}

.profile-card-title-block > strong {
  color: var(--event-ink);
  font-size: 20px;
  line-height: 1.25;
}

.profile-encounter-note,
.profile-encounter-preview {
  margin: 8px 0 14px;
  color: var(--event-muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-encounter-profile-details {
  display: grid;
  gap: 10px;
}

.profile-encounter-identity-summary {
  display: grid;
  gap: 8px;
}

.profile-identity-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  color: var(--event-muted);
}

.profile-identity-facts strong,
.profile-identity-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.profile-identity-facts strong {
  color: var(--event-ink);
  font-size: 18px;
  font-weight: 850;
}

.profile-identity-facts span {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--event-hairline, rgba(80, 130, 130, 0.16));
  font-size: 14px;
  font-weight: 700;
}

.profile-render-hooks {
  display: none !important;
}

.profile-encounter-details-label {
  color: var(--event-ink);
  font-size: 14px;
  font-weight: 800;
}

.profile-encounter-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--event-hairline, rgba(80, 130, 130, 0.16));
}

.profile-encounter-card .profile-encounter-note {
  max-width: 52ch;
}

.profile-encounter-card .profile-encounter-details-label {
  color: var(--event-teal);
  font-size: 12px;
  letter-spacing: .04em;
}

.profile-encounter-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-encounter-subhead > strong {
  min-width: 0;
  color: var(--event-ink);
  font-size: 14px;
  line-height: 1.4;
}

.profile-encounter-subhead .profile-inline-action,
.profile-encounter-subhead .profile-edit-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 12px;
}

.profile-encounter-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.profile-encounter-topic,
.profile-encounter-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(61, 150, 149, .18);
  border-radius: 12px;
  background: rgba(237, 248, 245, .72);
  color: var(--event-ink);
  font-size: 13px;
  line-height: 1.35;
}

.profile-encounter-empty {
  color: var(--event-muted);
  background: rgba(255, 255, 255, .56);
}

.profile-encounter-suggestion {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(61, 150, 149, .26);
  border-radius: 12px;
  background: rgba(237, 248, 245, .82);
  color: var(--event-teal);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.profile-encounter-suggestion:focus-visible {
  outline: 3px solid rgba(87, 183, 183, .18);
}

.profile-invite-toggle,
.event-v23-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  color: var(--event-ink);
  cursor: pointer;
  font-size: 14px;
}

.profile-invite-toggle input,
.event-v23-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--event-teal);
}

.profile-invite-toggle span {
  display: grid;
  gap: 2px;
}

.profile-invite-toggle small {
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Identity is the first row of the encounter card, not a nested profile card. */
.profile-identity-heading {
  align-items: flex-start !important;
}

#profilePageView .profile-identity-heading .profile-identity-panel,
#profileView .profile-identity-heading .profile-identity-panel {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#profilePageView .profile-identity-heading .profile-identity-copy,
#profileView .profile-identity-heading .profile-identity-copy {
  min-width: 0;
}

#profilePageView .profile-identity-heading .profile-nickname,
#profileView .profile-identity-heading .profile-nickname {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--event-ink);
  font-size: 24px;
  line-height: 1.18;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#profilePageView .profile-identity-heading .profile-identity-meta,
#profileView .profile-identity-heading .profile-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 5px 0 0;
  color: var(--event-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

#profilePageView .profile-identity-heading .profile-identity-meta span,
#profileView .profile-identity-heading .profile-identity-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#profilePageView .profile-identity-heading .profile-identity-meta span + span::before,
#profileView .profile-identity-heading .profile-identity-meta span + span::before {
  margin: 0 7px;
  color: var(--event-hairline, rgba(80, 130, 130, 0.45));
  content: "·";
}

#profilePageView .profile-identity-heading .profile-inline-action,
#profileView .profile-identity-heading .profile-edit-btn {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  #profilePageView .profile-identity-heading .profile-nickname,
  #profileView .profile-identity-heading .profile-nickname {
    font-size: 21px;
  }

  #profilePageView .profile-identity-heading .profile-identity-meta,
  #profileView .profile-identity-heading .profile-identity-meta {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .profile-encounter-card .profile-card-heading-row {
    align-items: flex-start;
  }

  .profile-encounter-card .profile-card-title-block > strong {
    font-size: 19px;
  }

  .profile-encounter-subhead {
    align-items: flex-start;
  }

  .profile-identity-facts strong {
    font-size: 16px;
  }

  .profile-identity-facts span {
    font-size: 13px;
  }
}

/* Identity and shareable topics are one encounter-card flow. Keep the
 * permission decision after the content it controls on narrow screens. */
@media (max-width: 600px) {
  #profilePageView .profile-encounter-content .profile-encounter-subhead,
  #profilePageView .profile-encounter-content .profile-encounter-topics,
  #profilePageView .profile-encounter-content .profile-invite-toggle,
  #profilePageView .profile-encounter-content .profile-encounter-preview {
    order: initial;
  }

  #profilePageView .profile-encounter-content .profile-encounter-topics {
    order: 2;
  }

  #profilePageView .profile-encounter-content .profile-invite-toggle {
    order: 3;
    margin-top: 14px;
  }

  #profilePageView .profile-encounter-content .profile-encounter-preview {
    order: 4;
  }
}

/* The encounter card is a calm, information-dense profile surface: one
 * keyline, clear topic hierarchy, and a visible consent boundary. */
#profilePageView .profile-encounter-card,
#profileView .profile-encounter-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(65, 145, 143, 0.2);
  border-top: 3px solid var(--event-teal, #3e9595);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(68, 108, 101, 0.1);
}

#profilePageView .profile-identity-heading,
#profileView .profile-identity-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(65, 145, 143, 0.16);
}

#profilePageView .profile-identity-heading .profile-nickname,
#profileView .profile-identity-heading .profile-nickname {
  font-size: 25px;
  letter-spacing: 0;
}

#profilePageView .profile-identity-heading .profile-identity-meta,
#profileView .profile-identity-heading .profile-identity-meta {
  color: #6c7b72;
  font-size: 13px;
  font-weight: 750;
}

#profilePageView .profile-encounter-content,
#profileView .profile-encounter-content {
  margin-top: 17px;
  padding-top: 0;
  border-top: 0;
}

#profilePageView .profile-encounter-subhead,
#profileView .profile-encounter-subhead {
  margin-bottom: 13px;
}

#profilePageView .profile-encounter-subhead > strong,
#profileView .profile-encounter-subhead > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
}

#profilePageView .profile-encounter-subhead > strong::before,
#profileView .profile-encounter-subhead > strong::before {
  width: 7px;
  height: 22px;
  border-radius: 6px;
  background: var(--event-teal, #3e9595);
  content: "";
}

#profilePageView .profile-encounter-topics,
#profileView .profile-encounter-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
}

#profilePageView .profile-topic-group,
#profileView .profile-topic-group {
  min-width: 0;
}

#profilePageView .profile-topic-group h4,
#profileView .profile-topic-group h4 {
  margin: 0 0 7px;
  color: #4a918d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

#profilePageView .profile-topic-group[data-topic-group="CURIOUS_ABOUT"] h4,
#profileView .profile-topic-group[data-topic-group="CURIOUS_ABOUT"] h4 {
  color: #b76b2c;
}

#profilePageView .profile-topic-group[data-topic-group="PREFERS_FORMAT"] h4,
#profileView .profile-topic-group[data-topic-group="PREFERS_FORMAT"] h4 {
  color: #557698;
}

#profilePageView .profile-topic-group-list,
#profileView .profile-topic-group-list {
  display: grid;
  gap: 6px;
}

#profilePageView .profile-encounter-topic,
#profileView .profile-encounter-topic {
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 10px;
  border-color: rgba(65, 145, 143, 0.18);
  background: #f2faf8;
  box-shadow: 0 4px 12px rgba(68, 108, 101, 0.05);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#profilePageView .profile-encounter-topic[data-relation-type="CURIOUS_ABOUT"],
#profileView .profile-encounter-topic[data-relation-type="CURIOUS_ABOUT"] {
  border-color: rgba(225, 143, 58, 0.22);
  background: #fff7eb;
}

#profilePageView .profile-encounter-topic[data-relation-type="PREFERS_FORMAT"],
#profileView .profile-encounter-topic[data-relation-type="PREFERS_FORMAT"] {
  border-color: rgba(101, 133, 170, 0.22);
  background: #f3f7fb;
}

#profilePageView .profile-encounter-empty,
#profileView .profile-encounter-empty {
  grid-column: 1 / -1;
  font-size: 12px;
}

#profilePageView .profile-encounter-empty-state,
#profileView .profile-encounter-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px 18px;
  border: 1px dashed rgba(65, 145, 143, 0.28);
  border-radius: 16px;
  background: #f7fbf9;
}

#profilePageView .profile-encounter-empty-copy,
#profileView .profile-encounter-empty-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#profilePageView .profile-encounter-empty-mark,
#profileView .profile-encounter-empty-mark {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e1f0eb;
  color: var(--event-teal, #3e9595);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  place-items: center;
}

#profilePageView .profile-encounter-empty-copy strong,
#profileView .profile-encounter-empty-copy strong {
  display: block;
  color: #315c58;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

#profilePageView .profile-encounter-empty-copy p,
#profileView .profile-encounter-empty-copy p {
  margin: 4px 0 0;
  color: #78857c;
  font-size: 12px;
  line-height: 1.45;
}

#profilePageView .profile-encounter-empty-action,
#profileView .profile-encounter-empty-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(62, 149, 149, 0.46);
  border-radius: 999px;
  background: #ffffff;
  color: var(--event-teal, #3e9595);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

#profilePageView .profile-encounter-empty-action:hover,
#profilePageView .profile-encounter-empty-action:focus-visible,
#profileView .profile-encounter-empty-action:hover,
#profileView .profile-encounter-empty-action:focus-visible {
  border-color: var(--event-teal, #3e9595);
  background: #eaf7f4;
}

#profilePageView .profile-encounter-suggestion,
#profileView .profile-encounter-suggestion {
  grid-column: 1 / -1;
  justify-self: start;
}

#profilePageView .profile-invite-toggle,
#profileView .profile-invite-toggle {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(65, 145, 143, 0.18);
  border-left: 3px solid var(--event-teal, #3e9595);
  border-radius: 15px;
  background: #f6fbf9;
}

#profilePageView .profile-invite-toggle strong,
#profileView .profile-invite-toggle strong {
  font-size: 14px;
  line-height: 1.35;
}

#profilePageView .profile-encounter-preview,
#profileView .profile-encounter-preview {
  margin: 13px 0 2px;
  color: #78857c;
  font-size: 12px;
}

@media (max-width: 600px) {
  #profilePageView .profile-encounter-card,
  #profileView .profile-encounter-card {
    box-shadow: 0 12px 24px rgba(68, 108, 101, 0.08);
  }

  #profilePageView .profile-identity-heading .profile-nickname,
  #profileView .profile-identity-heading .profile-nickname {
    font-size: 22px;
  }

  #profilePageView .profile-encounter-topic,
  #profileView .profile-encounter-topic {
    font-size: 12px;
  }

  #profilePageView .profile-encounter-empty-state,
  #profileView .profile-encounter-empty-state {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  #profilePageView .profile-encounter-empty-action,
  #profileView .profile-encounter-empty-action {
    width: 100%;
  }

  #profilePageView .profile-encounter-topics,
  #profileView .profile-encounter-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px;
  }

  #profilePageView .profile-topic-group h4,
  #profileView .profile-topic-group h4 {
    margin-bottom: 6px;
    font-size: 11px;
  }
}

.event-form textarea {
  min-height: 66px;
}

.event-v23-window-fields {
  display: grid;
  gap: 7px;
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 800;
}

.event-v23-window-fields > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-v23-window-fields input {
  min-width: 0;
}

.event-v23-card-form {
  display: grid;
  gap: 14px;
}

.event-v23-natural-field,
.event-v23-detail-grid > label,
.event-v23-setting-grid > label,
.event-v23-custom-window {
  display: grid;
  gap: 7px;
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 800;
}

.event-v23-natural-field textarea,
.event-v23-natural-field input,
.event-v23-setting-grid input,
.event-v23-detail-grid textarea,
.event-v23-setting-grid select,
.event-v23-custom-window input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--event-line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .76);
  color: var(--event-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.event-v23-natural-field textarea {
  min-height: 88px;
  resize: vertical;
}

.event-v23-natural-field textarea:focus,
.event-v23-natural-field input:focus,
.event-v23-detail-grid textarea:focus,
.event-v23-setting-grid select:focus,
.event-v23-custom-window input:focus {
  outline: 3px solid rgba(87, 183, 183, .18);
  border-color: var(--event-teal);
}

.event-v23-natural-field input,
.event-v23-setting-grid input,
.event-v23-setting-grid select {
  min-height: 44px;
}

.event-v23-basic-profile .event-v23-setting-grid > label {
  min-width: 0;
}

.event-v23-basic-profile .event-v23-setting-grid input,
.event-v23-basic-profile .event-v23-setting-grid select {
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.2;
}

.event-v23-basic-profile .event-v23-setting-grid input {
  appearance: none;
  -webkit-appearance: none;
  font-weight: 650;
}

.event-v23-basic-profile .event-v23-setting-grid input::placeholder {
  color: rgba(94, 111, 103, .58);
  font-weight: 500;
}

.event-v23-basic-profile .event-v23-setting-grid input:focus,
.event-v23-basic-profile .event-v23-setting-grid select:focus {
  outline: 3px solid rgba(87, 183, 183, .18);
  border-color: var(--event-teal);
  box-shadow: 0 0 0 1px rgba(87, 183, 183, .12);
}

.event-v23-basic-profile {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--event-hairline);
}

.event-v23-organize-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-v23-organize-row .event-btn {
  min-height: 44px;
}

.event-v23-organize-row small,
.event-v23-settings-heading small,
.event-v23-toggle small {
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.45;
}

.event-v23-toggle > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-v23-toggle > span > strong,
.event-v23-toggle > span > small {
  display: block;
}

.event-v23-toggle > span > small {
  overflow-wrap: anywhere;
}

.event-v23-suggestions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.event-v23-suggestions-empty {
  margin: 0;
  padding: 13px 14px;
  border: 1px dashed rgba(87, 183, 183, .35);
  border-radius: 14px;
  color: var(--event-muted);
  font-size: 13px;
  line-height: 1.5;
}

.event-v23-suggestion-group {
  display: grid;
  gap: 8px;
}

.event-v23-suggestion-group h3 {
  margin: 0;
  color: var(--event-teal);
  font-size: 13px;
}

.event-v23-suggestion-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.event-v23-suggestion-row.has-relation {
  grid-template-columns: 20px minmax(0, 1fr) minmax(112px, .58fr);
}

.event-v23-suggestion-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--event-teal);
}

.event-v23-suggestion-row input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--event-line);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .76);
  color: var(--event-ink);
  font: inherit;
  font-size: 14px;
}

.event-v23-suggestion-row select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--event-line);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .76);
  color: var(--event-ink);
  font: inherit;
  font-size: 13px;
}

.event-v23-suggestion-review {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--event-hairline);
}

.event-v23-suggestion-review h3 {
  margin: 0;
  color: var(--event-ink);
  font-size: 15px;
}

.event-v23-suggestion-remove {
  width: 44px;
  height: 44px;
  border: 1px solid var(--event-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  color: var(--event-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.event-v23-suggestion-remove:hover,
.event-v23-suggestion-remove:focus-visible {
  border-color: rgba(232, 117, 34, .4);
  color: var(--event-orange);
}

.event-v23-detail-edit {
  border-top: 1px solid var(--event-hairline);
  padding-top: 12px;
}

.event-v23-detail-edit summary {
  min-height: 44px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 44px;
  cursor: pointer;
  list-style: none;
}

.event-v23-detail-edit summary::-webkit-details-marker {
  display: none;
}

.event-v23-detail-edit summary::after {
  float: right;
  content: "+";
  font-size: 19px;
}

.event-v23-detail-edit[open] summary::after {
  content: "−";
}

.event-v23-interview {
  display: grid;
  gap: 14px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--event-hairline);
}

.event-v23-interview-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.event-v23-interview-result-head strong {
  color: var(--event-ink);
  font-size: 15px;
}

.event-v23-interview-result-head small {
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.45;
}

.event-v23-interview-current {
  display: grid;
  gap: 9px;
}

.event-v23-interview-current[hidden] {
  display: none;
}

.event-v23-interview-current h3 {
  margin: 0;
  color: var(--event-ink);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-v23-interview-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-v23-interview-option {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--event-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: var(--event-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.event-v23-interview-option:hover,
.event-v23-interview-option:focus-visible {
  border-color: var(--event-teal-bright);
  color: var(--event-teal);
  background: var(--event-teal-soft);
}

.event-v23-interview-current textarea {
  width: 100%;
  min-height: 82px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--event-line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .76);
  color: var(--event-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.event-v23-interview-current textarea:focus {
  outline: 3px solid rgba(87, 183, 183, .18);
  border-color: var(--event-teal);
}

.event-v23-interview-actions {
  justify-content: flex-start;
}

.event-v23-interview-result {
  display: grid;
  gap: 10px;
}

.event-v23-interview-result[hidden] {
  display: none;
}

.event-v23-detail-grid,
.event-v23-setting-grid,
.event-v23-custom-window {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-v23-custom-window {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--event-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .34);
}

.event-v23-window-list {
  display: grid;
  gap: 10px;
}

.event-v23-window-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.event-v23-window-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--event-muted);
  font-size: 12px;
  font-weight: 750;
}

.event-v23-window-field input {
  min-width: 0;
}

.event-v23-window-remove {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  justify-self: end;
  overflow: hidden;
}

.event-v23-window-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-v23-window-actions .event-btn {
  min-width: 0;
  min-height: 40px;
  padding-inline: 10px;
  white-space: normal;
}

.event-v23-add-window {
  min-height: 40px;
}

.event-v23-detail-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.event-v23-invite-settings {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--event-hairline);
}

.event-v23-settings-heading {
  display: grid;
  gap: 3px;
}

.event-v23-settings-heading strong {
  color: var(--event-ink);
  font-size: 15px;
}

.event-v23-setting-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 800;
}

.event-v23-setting-options > span {
  flex-basis: 100%;
}

.event-v23-setting-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--event-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-weight: 700;
}

.event-v23-setting-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--event-teal);
}

.event-v23-custom-window[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .event-v23-card {
    padding: 16px;
    border-radius: 16px;
  }

  .event-v23-card-head {
    gap: 8px;
  }

  .event-v23-deadline {
    max-width: 42%;
  }

  .event-v23-card h3 {
    font-size: 22px;
  }

  .event-v23-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-v23-actions .event-btn {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .event-v23-detail-grid,
  .event-v23-setting-grid,
  .event-v23-custom-window {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-v23-organize-row {
    align-items: flex-start;
  }

  .event-v23-basic-profile .event-v23-setting-grid input,
  .event-v23-basic-profile .event-v23-setting-grid select {
    min-height: 46px;
  }

  .event-v23-window-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .event-v23-window-field {
    grid-column: 1;
  }

  .event-v23-window-remove {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .event-v23-organize-row .event-btn {
    width: 100%;
  }

  .event-v23-suggestion-row.has-relation {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .event-v23-suggestion-row.has-relation select {
    grid-column: 2;
  }
}

/* Encounter state architecture refinements */
.event-state-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--event-radius);
  box-shadow: var(--event-shadow-soft);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-state-card.event-next-card,
.event-state-card.event-recommend-card {
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto);
  padding: 20px;
  border-radius: var(--event-radius);
  box-shadow: var(--event-shadow-soft);
}

.event-state-card.event-next-card::before,
.event-state-card.event-recommend-card::before {
  width: 4px;
  background: var(--event-teal-bright);
}

.event-state-card.event-next-card::before {
  background: linear-gradient(180deg, var(--event-teal-bright), var(--event-orange));
}

.event-state-card.event-recommend-card.alternative {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.event-state-copy {
  min-width: 0;
}

.event-state-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.event-state-note {
  color: var(--event-muted);
  font-size: 11px;
  font-weight: 760;
}

.event-state-card .event-card-title,
.event-state-card h3 {
  margin: 0;
  color: var(--event-ink);
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.event-state-card .event-card-summary,
.event-state-card > .event-state-copy > p {
  margin: 7px 0 0;
  color: var(--event-muted);
  font-size: 13px;
  line-height: 1.55;
}

.event-action-rail {
  justify-content: flex-end;
  align-self: stretch;
  align-content: center;
  min-width: 0;
}

.event-action-rail .event-btn {
  min-width: 118px;
}

@media (min-width: 761px) {
  .event-room-action-rail {
    align-self: center;
    justify-content: center;
  }
}

.event-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(80, 130, 130, 0.14);
  border-radius: var(--event-radius-small);
  background: rgba(80, 130, 130, 0.12);
}

.event-fact-strip div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.58);
}

.event-fact-strip dt,
.event-fact-strip dd {
  margin: 0;
  min-width: 0;
}

.event-fact-strip dt {
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 760;
}

.event-fact-strip dd {
  margin-top: 3px;
  color: var(--event-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-fact-strip.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.event-fact-strip.compact div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(80, 130, 130, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.event-fact-strip.compact dt {
  font-size: 9.5px;
}

.event-fact-strip.compact dd {
  margin-top: 0;
  font-size: 11px;
}

.event-intent-entry.unified.event-start-card {
  grid-template-columns: 70px minmax(0, 1fr) minmax(136px, auto);
  min-height: 132px;
  padding: 16px 17px;
  border-radius: var(--event-radius);
  background: linear-gradient(135deg, rgba(216, 243, 240, 0.74), rgba(255, 248, 231, 0.5));
  box-shadow: var(--event-shadow-soft);
}

.event-start-copy {
  display: grid;
  min-width: 0;
}

.event-start-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.event-start-quick-facts span {
  padding: 4px 8px;
  border: 1px solid rgba(87, 183, 183, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--event-teal);
  font-size: 11px;
  font-weight: 800;
}

.event-intent-entry.unified.event-start-card .event-intent-action {
  min-height: 40px;
  border-radius: var(--event-radius-control);
}

.event-intent-progress {
  display: block;
  padding: 17px;
  border-color: rgba(87, 183, 183, 0.28);
  background: linear-gradient(145deg, rgba(231, 248, 245, 0.7), rgba(255, 255, 255, 0.54));
}

.event-intent-progress::after {
  display: none;
}

.event-progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.event-progress-steps li {
  position: relative;
  display: grid;
  gap: 5px;
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 820;
}

.event-progress-steps li::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(80, 130, 130, 0.16);
}

.event-progress-steps li.done::before,
.event-progress-steps li.active::before {
  background: var(--event-teal-bright);
}

.event-progress-steps li.active {
  color: var(--event-teal);
}

.event-intent-failed {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-color: rgba(232, 117, 34, 0.26);
  background: linear-gradient(145deg, rgba(255, 246, 232, 0.76), rgba(255, 255, 255, 0.54));
}

.event-intent-failed .event-status-chip {
  background: rgba(232, 117, 34, 0.12);
}

.event-recovery-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.event-recovery-hints span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(232, 117, 34, 0.1);
  color: #a85b20;
  font-size: 11px;
  font-weight: 800;
}

.event-intent-failed .event-action-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  width: 100%;
}

.event-intent-failed .event-action-rail .event-btn {
  width: 100%;
}

.event-official-list {
  display: grid;
  gap: 10px;
}

.event-official-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr) minmax(142px, auto);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius-small);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.event-official-row-status {
  display: grid;
  gap: 6px;
  align-content: center;
}

.event-official-row-status time {
  color: var(--event-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.event-official-row-main {
  min-width: 0;
}

.event-official-row-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-official-row-main p {
  margin: 4px 0 0;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.45;
}

.event-official-row .event-fact-strip.compact {
  margin-top: 8px;
}

.event-official-row .event-official-actions {
  justify-content: flex-end;
}

.event-official-row .event-official-actions.has-join {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  width: 100%;
}

.event-message-row {
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--event-radius-small);
  box-shadow: none;
}

.event-message-mark {
  width: 9px;
  height: 38px;
  border-radius: 999px;
  background: var(--event-teal-soft);
}

.event-message-mark.room {
  background: var(--event-teal-bright);
}

.event-message-mark.progress {
  background: var(--event-orange);
}

.event-message-mark.notice {
  background: rgba(80, 130, 130, 0.22);
}

.event-message-copy {
  min-width: 0;
}

.event-message-cue {
  color: var(--event-muted);
  font-size: 20px;
  line-height: 1;
}

.event-modal,
.event-intent-receipt,
.event-intent-mode-preview,
.event-preference-details,
.event-sport-panel,
.event-duo-preference {
  border-radius: var(--event-radius);
}

.event-duo-preference > .event-option-group,
.event-modal-backdrop[data-surface="mobile"] .event-duo-preference > .event-option-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 430px);
  max-width: 430px;
  justify-self: center;
}

.event-option,
.event-choice,
.event-field input,
.event-field textarea,
.event-field select {
  border-radius: var(--event-radius-control);
}

.event-hub-root[data-surface="mobile"] .event-state-card,
.event-hub-root[data-surface="mobile"] .event-state-card.event-next-card,
.event-hub-root[data-surface="mobile"] .event-state-card.event-recommend-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.event-hub-root[data-surface="mobile"] .event-state-card .event-card-title,
.event-hub-root[data-surface="mobile"] .event-state-card h3 {
  font-size: 17px;
}

.event-hub-root[data-surface="mobile"] .event-fact-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 11px;
  border-radius: 13px;
}

.event-hub-root[data-surface="mobile"] .event-fact-strip div {
  padding: 8px;
}

.event-hub-root[data-surface="mobile"] .event-fact-strip.compact {
  display: flex;
}

.event-hub-root[data-surface="mobile"] .event-action-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.event-hub-root[data-surface="mobile"] .event-action-rail .event-btn {
  width: 100%;
  min-width: 0;
}

.event-hub-root[data-surface="mobile"] .event-intent-failed .event-action-rail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}

.event-hub-root[data-surface="mobile"] .event-intent-entry.unified.event-start-card {
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 0;
  padding: 13px;
  border-radius: 16px;
}

.event-hub-root[data-surface="mobile"] .event-start-card .event-intent-action {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin-top: 2px;
}

.event-hub-root[data-surface="mobile"] .event-start-quick-facts {
  margin-top: 8px;
}

.event-hub-root[data-surface="mobile"] .event-progress-steps {
  gap: 5px;
  margin-bottom: 10px;
}

.event-hub-root[data-surface="mobile"] .event-progress-steps li {
  font-size: 9.5px;
}

.event-hub-root[data-surface="mobile"] .event-official-list {
  gap: 8px;
}

.event-hub-root[data-surface="mobile"] .event-official-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
}

.event-hub-root[data-surface="mobile"] .event-official-row-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-hub-root[data-surface="mobile"] .event-official-row-main h3 {
  font-size: 15px;
}

.event-hub-root[data-surface="mobile"] .event-official-row-main p {
  font-size: 11.5px;
}

.event-hub-root[data-surface="mobile"] .event-official-row .event-official-actions.has-join {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.event-message-root[data-surface="mobile"] .event-message-row {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 14px;
}

.event-message-root[data-surface="mobile"] .event-message-mark {
  width: 8px;
  height: 34px;
  font-size: 0;
}

/* Desktop encounter workspace: quieter surfaces, stronger information rails. */
.event-hub-root[data-surface="desktop"],
.event-message-root[data-surface="desktop"],
.event-modal-backdrop[data-surface="desktop"] {
  --event-ink: #18312b;
  --event-muted: #5f6f6b;
  --event-teal: #247f7c;
  --event-teal-bright: #42aaa6;
  --event-teal-soft: rgba(66, 170, 166, 0.12);
  --event-orange: #cc6b32;
  --event-orange-soft: rgba(204, 107, 50, 0.12);
  --event-paper: #f2f5f1;
  --event-white: rgba(255, 255, 255, 0.88);
  --event-line: rgba(31, 72, 63, 0.14);
  --event-hairline: rgba(31, 72, 63, 0.12);
  --event-shadow: 0 18px 42px -30px rgba(25, 62, 54, 0.35);
  --event-shadow-soft: 0 12px 28px -24px rgba(25, 62, 54, 0.3);
  --event-glass: none;
  --event-radius: 16px;
  --event-radius-small: 12px;
  --event-radius-control: 10px;
}

#activityView.event-hub-ready:has(> .event-hub-root[data-surface="desktop"]),
#messageView:has(> .event-message-root[data-surface="desktop"]) {
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(180deg, rgba(232, 242, 238, 0.72), rgba(248, 246, 239, 0.82) 46%, rgba(239, 245, 242, 0.9)),
    #f3f5f1;
}

.event-hub-root[data-surface="desktop"],
.event-message-root[data-surface="desktop"] {
  width: min(1120px, calc(100% - 48px));
  padding: 26px 0 72px;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  gap: 32px;
  padding: 20px 0 22px 20px;
  border-top: 1px solid var(--event-hairline);
  border-bottom-color: rgba(31, 72, 63, 0.18);
}

.event-hub-root[data-surface="desktop"] .event-hub-hero::before {
  inset: 20px auto 22px 0;
  width: 3px;
  background: linear-gradient(180deg, var(--event-teal-bright) 0 72%, var(--event-orange) 72% 100%);
}

.event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker,
.event-message-root[data-surface="desktop"] .event-hub-kicker,
.event-hub-root[data-surface="desktop"] .event-section-kicker {
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero h1 {
  font-size: 35px;
}

.event-hub-root[data-surface="desktop"] .event-hub-brand > p:last-child {
  margin-top: 6px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 750;
}

.event-hub-root[data-surface="desktop"] .event-hub-signal {
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-color: var(--event-line);
  border-radius: var(--event-radius-small);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--event-shadow-soft);
}

.event-hub-root[data-surface="desktop"] .event-hub-signal-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px var(--event-teal-soft);
}

.event-hub-root[data-surface="desktop"] .event-hub-signal strong {
  font-size: 15px;
}

.event-hub-root[data-surface="desktop"] .event-section {
  padding: 27px 0;
}

.event-hub-root[data-surface="desktop"] .event-section-heading {
  align-items: start;
  margin-bottom: 14px;
}

.event-hub-root[data-surface="desktop"] .event-section-heading h2 {
  font-size: 21px;
  line-height: 1.24;
}

.event-hub-root[data-surface="desktop"] .event-section-heading p {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.55;
}

.event-hub-root[data-surface="desktop"] .event-status-chip {
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid rgba(36, 127, 124, 0.12);
  border-radius: 8px;
  background: var(--event-teal-soft);
  color: #276d6b;
  font-size: 11px;
}

.event-hub-root[data-surface="desktop"] .event-status-chip.warm,
.event-hub-root[data-surface="desktop"] .event-intent-failed .event-status-chip {
  border-color: rgba(204, 107, 50, 0.14);
  background: var(--event-orange-soft);
  color: #a75325;
}

.event-hub-root[data-surface="desktop"] .event-status-chip.neutral {
  border-color: rgba(112, 124, 121, 0.2);
  background: rgba(112, 124, 121, 0.12);
  color: #65716d;
}

.event-hub-root[data-surface="desktop"] .event-state-card,
.event-hub-root[data-surface="desktop"] .event-intent-entry,
.event-message-root[data-surface="desktop"] .event-message-row {
  border-color: var(--event-line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--event-shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-hub-root[data-surface="desktop"] .event-state-card.event-next-card,
.event-hub-root[data-surface="desktop"] .event-state-card.event-recommend-card {
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  gap: 18px;
  padding: 18px;
}

.event-hub-root[data-surface="desktop"] .event-state-card.event-next-card::before,
.event-hub-root[data-surface="desktop"] .event-state-card.event-recommend-card::before {
  width: 3px;
}

.event-hub-root[data-surface="desktop"] .event-state-card .event-card-title,
.event-hub-root[data-surface="desktop"] .event-state-card h3 {
  font-size: 19px;
}

.event-hub-root[data-surface="desktop"] .event-fact-strip {
  border-color: var(--event-line);
  background: var(--event-line);
}

.event-hub-root[data-surface="desktop"] .event-fact-strip div {
  background: rgba(247, 250, 247, 0.96);
}

.event-hub-root[data-surface="desktop"] .event-fact-strip.compact {
  background: transparent;
}

.event-hub-root[data-surface="desktop"] .event-action-rail .event-btn {
  min-width: 132px;
}

.event-hub-root[data-surface="desktop"] .event-btn,
.event-message-root[data-surface="desktop"] .event-btn,
.event-modal-backdrop[data-surface="desktop"] .event-btn {
  min-height: 42px;
  border-radius: var(--event-radius-control);
}

.event-hub-root[data-surface="desktop"] .event-btn.primary,
.event-message-root[data-surface="desktop"] .event-btn.primary,
.event-modal-backdrop[data-surface="desktop"] .event-btn.primary {
  background: #276f6d;
  box-shadow: 0 11px 22px -14px rgba(39, 111, 109, 0.65);
}

.event-hub-root[data-surface="desktop"] .event-btn.primary:hover,
.event-message-root[data-surface="desktop"] .event-btn.primary:hover,
.event-modal-backdrop[data-surface="desktop"] .event-btn.primary:hover {
  background: #205f5d;
}

.event-hub-root[data-surface="desktop"] .event-intent-entry.unified.event-start-card {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  min-height: 0;
  padding: 16px;
  border-left-color: var(--event-teal-bright);
  background: rgba(248, 252, 249, 0.9);
}

.event-hub-root[data-surface="desktop"] .event-start-card .event-intent-icon-stack {
  width: 62px;
  height: 62px;
}

.event-hub-root[data-surface="desktop"] .event-start-card .event-intent-icon-stack .event-intent-icon.image {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.event-hub-root[data-surface="desktop"] .event-start-card .event-intent-icon-stack .event-intent-icon.companion {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.event-hub-root[data-surface="desktop"] .event-start-card .event-intent-action {
  grid-column: 2;
  justify-self: start;
  min-height: 38px;
  margin-top: 2px;
  border-radius: var(--event-radius-control);
}

.event-hub-root[data-surface="desktop"] .event-start-quick-facts span,
.event-hub-root[data-surface="desktop"] .event-recovery-hints span,
.event-hub-root[data-surface="desktop"] .event-fact-strip.compact div {
  border-radius: 7px;
}

.event-hub-root[data-surface="desktop"] .event-intent-progress {
  border-color: rgba(36, 127, 124, 0.2);
  background: rgba(244, 250, 248, 0.94);
}

.event-hub-root[data-surface="desktop"] .event-intent-progress .event-action-rail {
  justify-content: flex-start;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--event-hairline);
}

.event-hub-root[data-surface="desktop"] .event-intent-failed {
  border-color: rgba(204, 107, 50, 0.24);
  background: #fff9f0;
}

.event-hub-root[data-surface="desktop"] .event-official-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--event-shadow-soft);
}

.event-hub-root[data-surface="desktop"] .event-official-row {
  grid-template-columns: minmax(104px, 0.28fr) minmax(0, 1fr) minmax(126px, auto);
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--event-hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-hub-root[data-surface="desktop"] .event-official-row:last-child {
  border-bottom: 0;
}

.event-hub-root[data-surface="desktop"] .event-official-row:hover,
.event-message-root[data-surface="desktop"] .event-message-row:hover {
  background: rgba(235, 245, 241, 0.72);
}

.event-hub-root[data-surface="desktop"] .event-official-row-main h3 {
  font-size: 15px;
}

.event-hub-root[data-surface="desktop"] .event-official-row-main p {
  max-width: 64ch;
}

.event-message-root[data-surface="desktop"] {
  width: min(960px, calc(100% - 48px));
}

.event-message-root[data-surface="desktop"] .event-message-head {
  padding: 22px 0 24px 20px;
  border: 0;
  border-top: 1px solid var(--event-hairline);
  border-bottom: 1px solid rgba(31, 72, 63, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-message-root[data-surface="desktop"] .event-message-head h1 {
  font-size: 34px;
}

.event-message-root[data-surface="desktop"] .event-message-head p {
  margin-top: 6px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 750;
}

.event-message-root[data-surface="desktop"] .event-message-tabs {
  margin: 20px 0 12px;
  padding: 4px;
  border-color: var(--event-line);
  border-radius: var(--event-radius-small);
  background: rgba(224, 234, 230, 0.72);
}

.event-message-root[data-surface="desktop"] .event-message-tab {
  border-radius: 8px;
  padding: 9px 15px;
}

.event-message-root[data-surface="desktop"] .event-message-tab.active {
  background: #fff;
  box-shadow: var(--event-shadow-soft);
}

.event-message-root[data-surface="desktop"] .event-message-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--event-shadow-soft);
}

.event-message-root[data-surface="desktop"] .event-message-row {
  border: 0;
  border-bottom: 1px solid var(--event-hairline);
  border-radius: 0;
  box-shadow: none;
}

.event-message-root[data-surface="desktop"] .event-message-row:last-child {
  border-bottom: 0;
}

.event-message-root[data-surface="desktop"] .event-message-mark {
  width: 7px;
  height: 36px;
}

.event-modal-backdrop[data-surface="desktop"] {
  background: rgba(20, 39, 34, 0.56);
}

.event-modal-backdrop[data-surface="desktop"] .event-modal {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: #f6f8f4;
  box-shadow: 0 32px 72px -28px rgba(10, 30, 25, 0.52);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-modal-backdrop[data-surface="desktop"] .event-intent-mode-preview,
.event-modal-backdrop[data-surface="desktop"] .event-preference-details,
.event-modal-backdrop[data-surface="desktop"] .event-sport-panel,
.event-modal-backdrop[data-surface="desktop"] .event-duo-preference,
.event-modal-backdrop[data-surface="desktop"] .event-intent-receipt {
  border-color: var(--event-line);
  border-radius: var(--event-radius-small);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.event-modal-backdrop[data-surface="desktop"] .event-option,
.event-modal-backdrop[data-surface="desktop"] .event-choice,
.event-modal-backdrop[data-surface="desktop"] .event-field input,
.event-modal-backdrop[data-surface="desktop"] .event-field textarea,
.event-modal-backdrop[data-surface="desktop"] .event-field select {
  border-color: var(--event-line);
  background: #fff;
  box-shadow: none;
}

.event-modal-backdrop[data-surface="desktop"] .event-option.selected,
.event-modal-backdrop[data-surface="desktop"] .event-choice.selected {
  border-color: rgba(36, 127, 124, 0.5);
  background: #eaf6f2;
}

@media (min-width: 981px) {
  .event-hub-root[data-surface="desktop"] > .event-next-section,
  .event-hub-root[data-surface="desktop"] > .event-feedback-section,
  .event-hub-root[data-surface="desktop"] > .event-section:last-child {
    display: grid;
    grid-template-columns: minmax(170px, 0.23fr) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }

  .event-hub-root[data-surface="desktop"] > .event-next-section > .event-section-heading,
  .event-hub-root[data-surface="desktop"] > .event-feedback-section > .event-section-heading,
  .event-hub-root[data-surface="desktop"] > .event-section:last-child > .event-section-heading {
    margin: 0;
  }

  .event-hub-root[data-surface="desktop"] > .event-next-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-feedback-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-section:last-child > :not(.event-section-heading) {
    grid-column: 2;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace {
    grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1.16fr);
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-start-section {
    padding-right: 28px;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-recommend-section {
    padding-left: 28px;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .event-hub-root[data-surface="desktop"] .event-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section,
  .event-hub-root[data-surface="desktop"] > .event-next-section,
  .event-hub-root[data-surface="desktop"] > .event-feedback-section,
  .event-hub-root[data-surface="desktop"] > .event-section:last-child {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section > .event-section-heading,
  .event-hub-root[data-surface="desktop"] > .event-next-section > .event-section-heading,
  .event-hub-root[data-surface="desktop"] > .event-feedback-section > .event-section-heading,
  .event-hub-root[data-surface="desktop"] > .event-section:last-child > .event-section-heading {
    min-height: 0;
    margin: 0;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-next-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-feedback-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-section:last-child > :not(.event-section-heading) {
    grid-column: 2;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-start-section {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--event-hairline);
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-recommend-section {
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  .event-hub-root[data-surface="desktop"] .event-hub-hero {
    padding: 20px 0 22px 18px;
    border-top: 1px solid var(--event-hairline);
    border-bottom: 1px solid var(--event-hairline);
    border-radius: 0;
    background: transparent;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section,
  .event-hub-root[data-surface="desktop"] > .event-next-section,
  .event-hub-root[data-surface="desktop"] > .event-feedback-section,
  .event-hub-root[data-surface="desktop"] > .event-section:last-child {
    display: block;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-next-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-feedback-section > :not(.event-section-heading),
  .event-hub-root[data-surface="desktop"] > .event-section:last-child > :not(.event-section-heading) {
    grid-column: auto;
  }
}

/* Desktop consistency pass: reuse the visual language of the existing web app. */
.event-hub-root[data-surface="desktop"],
.event-message-root[data-surface="desktop"],
.event-modal-backdrop[data-surface="desktop"] {
  --event-ink: var(--ink, #2a3a2e);
  --event-muted: var(--muted, #6f7a70);
  --event-teal: var(--brand-deep, #3e9595);
  --event-teal-bright: var(--brand, #57b7b7);
  --event-teal-soft: var(--brand-soft, rgba(87, 183, 183, 0.13));
  --event-orange: var(--warm-deep, #e87522);
  --event-orange-soft: var(--warm-soft, rgba(255, 154, 61, 0.14));
  --event-paper: var(--bg, #f5f2ea);
  --event-white: var(--card, rgba(255, 255, 255, 0.55));
  --event-line: var(--line, rgba(255, 255, 255, 0.6));
  --event-hairline: var(--hairline, rgba(80, 130, 130, 0.16));
  --event-shadow: var(--shadow, 0 20px 50px -16px rgba(70, 140, 140, 0.2));
  --event-shadow-soft: var(--shadow-soft, 0 10px 30px -12px rgba(70, 140, 140, 0.16));
  --event-glass: var(--glass-blur, saturate(180%) blur(22px));
  --event-radius: var(--radius, 26px);
  --event-radius-small: 18px;
  --event-radius-control: 16px;
}

#activityView.event-hub-ready:has(> .event-hub-root[data-surface="desktop"]),
#messageView:has(> .event-message-root[data-surface="desktop"]) {
  background: transparent;
}

.event-hub-root[data-surface="desktop"],
.event-message-root[data-surface="desktop"] {
  width: min(100%, 1240px);
  padding: 42px 40px 84px;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  padding: 0 0 30px;
  border: 0;
  text-align: center;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero::before {
  display: none;
}

.event-hub-root[data-surface="desktop"] .event-hub-brand {
  width: min(100%, 760px);
}

.event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker,
.event-message-root[data-surface="desktop"] .event-message-head .event-hub-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  margin: 0 auto;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(87, 183, 183, 0.2);
  border-radius: 999px;
  background: var(--event-teal-soft);
  color: var(--event-teal);
  font-family: "Fraunces", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker::before,
.event-message-root[data-surface="desktop"] .event-message-head .event-hub-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--event-teal-bright);
}

.event-hub-root[data-surface="desktop"] .event-hub-hero h1,
.event-message-root[data-surface="desktop"] .event-message-head h1 {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.event-hub-root[data-surface="desktop"] .event-hub-brand > p:last-child,
.event-message-root[data-surface="desktop"] .event-message-head p {
  margin: 12px auto 0;
  color: var(--event-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.event-hub-root[data-surface="desktop"] .event-hub-signal {
  width: min(100%, 560px);
  justify-self: center;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius-small);
  background: var(--event-white);
  box-shadow: var(--event-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
  text-align: left;
}

.event-hub-root[data-surface="desktop"] .event-hub-signal-dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 5px var(--event-teal-soft);
}

.event-hub-root[data-surface="desktop"] .event-hub-signal strong {
  font-size: 16px;
}

.event-hub-root[data-surface="desktop"] .event-section {
  padding: 34px 0;
}

.event-hub-root[data-surface="desktop"] .event-section-heading {
  align-items: end;
  margin-bottom: 18px;
}

.event-hub-root[data-surface="desktop"] .event-section-kicker {
  margin-bottom: 7px;
  color: var(--event-teal);
  font-size: 11px;
  font-weight: 800;
}

.event-hub-root[data-surface="desktop"] .event-section-heading h2 {
  font-size: 26px;
  line-height: 1.3;
}

.event-hub-root[data-surface="desktop"] .event-section-heading p {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.7;
}

.event-hub-root[data-surface="desktop"] > .event-next-section,
.event-hub-root[data-surface="desktop"] > .event-feedback-section,
.event-hub-root[data-surface="desktop"] > .event-section:last-child {
  display: block;
}

.event-hub-root[data-surface="desktop"] > .event-next-section > :not(.event-section-heading),
.event-hub-root[data-surface="desktop"] > .event-feedback-section > :not(.event-section-heading),
.event-hub-root[data-surface="desktop"] > .event-section:last-child > :not(.event-section-heading) {
  grid-column: auto;
}

.event-hub-root[data-surface="desktop"] .event-workspace {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  border-bottom: 1px solid var(--event-hairline);
}

.event-hub-root[data-surface="desktop"] .event-workspace > .event-section {
  padding: 34px 0 38px;
}

.event-hub-root[data-surface="desktop"] .event-workspace > .event-start-section,
.event-hub-root[data-surface="desktop"] .event-workspace > .event-recommend-section {
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
}

.event-hub-root[data-surface="desktop"] .event-workspace .event-section-heading {
  min-height: 106px;
  margin-bottom: 16px;
}

.event-hub-root[data-surface="desktop"] .event-state-card,
.event-hub-root[data-surface="desktop"] .event-intent-entry,
.event-message-root[data-surface="desktop"] .event-message-row {
  border-color: var(--event-line);
  background: var(--event-white);
  box-shadow: var(--event-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-hub-root[data-surface="desktop"] .event-state-card,
.event-hub-root[data-surface="desktop"] .event-state-card.event-next-card,
.event-hub-root[data-surface="desktop"] .event-state-card.event-recommend-card,
.event-hub-root[data-surface="desktop"] .event-intent-entry.unified.event-start-card {
  border-radius: var(--event-radius);
}

.event-hub-root[data-surface="desktop"] .event-state-card.event-next-card,
.event-hub-root[data-surface="desktop"] .event-state-card.event-recommend-card {
  padding: 22px;
}

.event-hub-root[data-surface="desktop"] .event-state-card .event-card-title,
.event-hub-root[data-surface="desktop"] .event-state-card h3 {
  font-size: 21px;
}

.event-hub-root[data-surface="desktop"] .event-status-chip {
  min-height: 30px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--event-teal-soft);
  color: var(--event-teal);
  font-size: 12px;
}

.event-hub-root[data-surface="desktop"] .event-status-chip.warm,
.event-hub-root[data-surface="desktop"] .event-intent-failed .event-status-chip {
  border: 0;
  background: var(--event-orange-soft);
  color: var(--event-orange);
}

.event-hub-root[data-surface="desktop"] .event-fact-strip {
  border-color: var(--event-hairline);
  border-radius: var(--event-radius-small);
  background: var(--event-hairline);
}

.event-hub-root[data-surface="desktop"] .event-fact-strip div {
  background: rgba(255, 255, 255, 0.66);
}

.event-hub-root[data-surface="desktop"] .event-fact-strip.compact {
  background: transparent;
}

.event-hub-root[data-surface="desktop"] .event-start-quick-facts span,
.event-hub-root[data-surface="desktop"] .event-recovery-hints span,
.event-hub-root[data-surface="desktop"] .event-fact-strip.compact div {
  border-radius: 999px;
}

.event-hub-root[data-surface="desktop"] .event-btn,
.event-message-root[data-surface="desktop"] .event-btn,
.event-modal-backdrop[data-surface="desktop"] .event-btn {
  min-height: 44px;
  border-radius: var(--event-radius-control);
  font-size: 14px;
}

.event-hub-root[data-surface="desktop"] .event-btn.primary,
.event-message-root[data-surface="desktop"] .event-btn.primary,
.event-modal-backdrop[data-surface="desktop"] .event-btn.primary,
.event-hub-root[data-surface="desktop"] .event-intent-action {
  background: linear-gradient(135deg, var(--event-teal-bright), var(--event-teal));
  box-shadow: 0 10px 26px -8px rgba(87, 183, 183, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.event-hub-root[data-surface="desktop"] .event-btn.primary:hover,
.event-message-root[data-surface="desktop"] .event-btn.primary:hover,
.event-modal-backdrop[data-surface="desktop"] .event-btn.primary:hover,
.event-hub-root[data-surface="desktop"] .event-intent-entry:hover .event-intent-action {
  background: linear-gradient(135deg, #65c2be, var(--event-teal));
}

.event-hub-root[data-surface="desktop"] .event-intent-entry.unified.event-start-card {
  padding: 18px;
  border-color: rgba(87, 183, 183, 0.32);
  border-left-color: var(--event-teal-bright);
  background:
    radial-gradient(circle at 96% 4%, rgba(255, 154, 61, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(224, 247, 243, 0.78), rgba(255, 255, 255, 0.58));
}

.event-hub-root[data-surface="desktop"] .event-start-card .event-intent-action {
  border-radius: var(--event-radius-control);
}

.event-hub-root[data-surface="desktop"] .event-intent-progress {
  border-color: rgba(87, 183, 183, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(87, 183, 183, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.62);
}

.event-hub-root[data-surface="desktop"] .event-intent-failed {
  border-color: rgba(232, 117, 34, 0.25);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 154, 61, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.64);
}

.event-hub-root[data-surface="desktop"] .event-official-list,
.event-message-root[data-surface="desktop"] .event-message-list {
  border-color: var(--event-line);
  border-radius: var(--event-radius);
  background: var(--event-white);
  box-shadow: var(--event-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-hub-root[data-surface="desktop"] .event-official-row {
  padding: 16px 18px;
  border-bottom-color: var(--event-hairline);
}

.event-hub-root[data-surface="desktop"] .event-official-row:hover,
.event-message-root[data-surface="desktop"] .event-message-row:hover {
  background: var(--event-teal-soft);
}

.event-message-root[data-surface="desktop"] .event-message-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0 0 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.event-message-root[data-surface="desktop"] .event-message-head > div {
  width: min(100%, 760px);
  text-align: center;
}

.event-message-root[data-surface="desktop"] .event-message-head > .event-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.event-message-root[data-surface="desktop"] .event-message-head > .event-btn:hover {
  transform: translateY(calc(-50% - 2px));
}

.event-message-root[data-surface="desktop"] .event-message-tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 5px;
  border-color: var(--event-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-message-root[data-surface="desktop"] .event-message-tab {
  min-width: 98px;
  border-radius: 14px;
  padding: 10px 16px;
}

.event-message-root[data-surface="desktop"] .event-message-tab.active {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--event-shadow-soft);
}

.event-message-root[data-surface="desktop"] .event-message-row {
  padding: 17px 18px;
  border-bottom-color: var(--event-hairline);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-modal-backdrop[data-surface="desktop"] {
  background: rgba(42, 58, 46, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.event-modal-backdrop[data-surface="desktop"] .event-modal {
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: var(--event-radius);
  background: rgba(245, 242, 234, 0.9);
  box-shadow: 0 30px 80px rgba(24, 34, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}

.event-modal-backdrop[data-surface="desktop"] .event-intent-mode-preview,
.event-modal-backdrop[data-surface="desktop"] .event-preference-details,
.event-modal-backdrop[data-surface="desktop"] .event-sport-panel,
.event-modal-backdrop[data-surface="desktop"] .event-duo-preference,
.event-modal-backdrop[data-surface="desktop"] .event-intent-receipt {
  border-color: var(--event-line);
  border-radius: var(--event-radius-small);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.event-modal-backdrop[data-surface="desktop"] .event-option,
.event-modal-backdrop[data-surface="desktop"] .event-choice,
.event-modal-backdrop[data-surface="desktop"] .event-field input,
.event-modal-backdrop[data-surface="desktop"] .event-field textarea,
.event-modal-backdrop[data-surface="desktop"] .event-field select {
  border-color: var(--event-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.event-modal-backdrop[data-surface="desktop"] .event-option.selected,
.event-modal-backdrop[data-surface="desktop"] .event-choice.selected {
  border-color: var(--event-teal-bright);
  background: linear-gradient(145deg, rgba(224, 247, 243, 0.96), rgba(255, 255, 255, 0.8));
}

@media (max-width: 980px) {
  .event-hub-root[data-surface="desktop"],
  .event-message-root[data-surface="desktop"] {
    padding-right: 30px;
    padding-left: 30px;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section {
    display: block;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-section > :not(.event-section-heading) {
    grid-column: auto;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace .event-section-heading {
    min-height: 0;
  }

  .event-hub-root[data-surface="desktop"] .event-workspace > .event-start-section {
    border-bottom: 1px solid var(--event-hairline);
  }
}

@media (max-width: 720px) {
  .event-hub-root[data-surface="desktop"],
  .event-message-root[data-surface="desktop"] {
    padding: 28px 20px 64px;
  }

  .event-hub-root[data-surface="desktop"] .event-hub-hero h1,
  .event-message-root[data-surface="desktop"] .event-message-head h1 {
    font-size: 32px;
  }

  .event-message-root[data-surface="desktop"] .event-message-head > .event-btn {
    position: static;
    margin-top: 16px;
    transform: none;
  }

  .event-message-root[data-surface="desktop"] .event-message-head > .event-btn:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-btn { transition: none; }
  .event-btn:hover { transform: none; }
}

/* State actions stay explicit without letting secondary recovery actions compete with the CTA. */
.event-preview-note,
.event-quick-submit-note {
  display: block;
  margin-top: 7px;
  color: var(--event-muted);
  font-size: 11px;
  line-height: 1.45;
}

.event-modal:focus-visible {
  outline: 3px solid rgba(47,119,119,.32);
  outline-offset: -5px;
}

@media (max-width: 760px) {
  .event-preview-note,
  .event-quick-submit-note { margin-top: 5px; }
}

/* Event-first unified entry and My Events IA. */
.event-hub-kicker,
.event-section-kicker { letter-spacing: 0; }

.event-hub-brand .event-hub-slogan {
  margin: 10px 0 0;
  color: var(--event-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.5;
}

.event-hub-brand .event-hub-slogan + p {
  margin: 7px 0 0;
  max-width: 720px;
  color: var(--event-muted);
  font-size: 14px;
  line-height: 1.65;
}

.event-hub-signal { grid-template-columns: 12px minmax(0, 1fr) auto; }
.event-notification-btn {
  position: relative;
  align-self: center;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(62, 149, 149, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--event-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.event-composer-section {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 18px 34px;
  align-items: start;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid rgba(62, 149, 149, .27);
  border-left: 5px solid var(--event-teal-bright);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 18px 38px -30px rgba(42, 58, 46, .35);
}

.event-composer-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; grid-row: span 2; align-items: start; padding-top: 2px; }
.event-composer-heading-main { min-width: 0; }
.event-composer-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.event-composer-heading h2 { margin: 0; max-width: 360px; color: var(--event-ink); font-size: 28px; line-height: 1.25; }
.event-calibration-control { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; min-width: max-content; }
.event-calibration-trigger {
  flex: 0 0 auto;
  min-height: 36px;
  margin-top: 1px;
  padding: 7px 12px;
  border: 1px solid rgba(62, 149, 149, .28);
  border-radius: 999px;
  background: rgba(238, 247, 244, .82);
  color: var(--event-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.event-calibration-trigger:hover { border-color: var(--event-teal-bright); background: #fff; transform: translateY(-1px); }
.event-calibration-trigger:focus-visible { outline: 2px solid var(--hz-teal-500, #57b7b7); outline-offset: 2px; }
.event-calibration-hint { color: var(--event-muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.event-composer-description { margin: 4px 0 0; max-width: 340px; color: var(--event-muted); font-size: 14px; line-height: 1.6; }
.event-beta-note { margin: 14px 0 0; max-width: 340px; color: var(--event-teal); font-size: 12px; font-weight: 750; line-height: 1.5; }
.event-preference-body > .event-beta-note { margin: 0; }
.event-quick-form { min-width: 0; }
.event-quick-form > label { display: block; margin-bottom: 8px; color: var(--event-ink); font-size: 13px; font-weight: 850; }
.event-quick-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.event-quick-input textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(80, 130, 130, .28);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, .86);
  color: var(--event-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(42, 58, 46, .05);
}
.event-quick-input textarea:focus { border-color: var(--event-teal-bright); box-shadow: 0 0 0 3px rgba(87, 183, 183, .14); }
.event-quick-input .event-btn { min-width: 132px; min-height: 82px; border-radius: 8px; }
.event-quick-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.event-quick-examples button,
.event-quick-options button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(62, 149, 149, .22);
  border-radius: 999px;
  background: rgba(238, 247, 244, .76);
  color: var(--event-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.event-quick-examples button:hover,
.event-quick-options button:hover { border-color: var(--event-teal-bright); background: #fff; }
.event-quick-result { grid-column: 2; min-width: 0; }
.event-quick-state {
  min-height: 74px;
  padding: 15px 16px;
  border: 1px solid rgba(62, 149, 149, .2);
  border-radius: 8px;
  background: rgba(238, 247, 244, .62);
}
.event-quick-state p { margin: 0; color: var(--event-muted); font-size: 12px; line-height: 1.55; }
.event-quick-state p strong { color: var(--event-ink); }
.event-quick-state.loading { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.event-signal-wave { position: relative; display: block; width: 10px; height: 10px; margin-left: 14px; border-radius: 50%; background: var(--event-teal); }
.event-signal-wave::before,
.event-signal-wave::after { content: ""; position: absolute; inset: 50% auto auto 50%; border: 1px solid var(--event-teal-bright); border-radius: 50%; transform: translate(-50%, -50%); animation: event-signal-pulse 1.6s ease-out infinite; }
.event-signal-wave::before { width: 24px; height: 24px; }
.event-signal-wave::after { width: 40px; height: 40px; animation-delay: .45s; }
@keyframes event-signal-pulse { 0% { opacity: .8; transform: translate(-50%, -50%) scale(.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); } }
.event-quick-state.loading strong,
.event-quick-state.needs-info strong { display: block; margin-bottom: 4px; color: var(--event-ink); font-size: 14px; }
.event-quick-state.needs-info small { display: block; margin-bottom: 3px; color: var(--event-orange); font-size: 10px; font-weight: 900; }
.event-quick-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.event-quick-state.parsed { border-color: rgba(62, 149, 149, .38); background: rgba(231, 247, 243, .78); }
.event-quick-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.event-quick-receipt-head span { color: var(--event-muted); font-size: 11px; font-weight: 750; }
.event-quick-receipt-head strong { color: var(--event-teal); font-size: 13px; }
.event-quick-facts { display: flex; flex-wrap: wrap; gap: 7px; }
.event-quick-facts span { padding: 6px 8px; border: 1px solid rgba(62, 149, 149, .18); border-radius: 6px; background: rgba(255, 255, 255, .76); color: var(--event-ink); font-size: 11.5px; font-weight: 750; }
.event-quick-state.parsed > p { margin-top: 10px; }
.event-quick-state.parsed .event-actions { margin-top: 12px; justify-content: flex-start; }
.event-quick-state.error { border-color: rgba(232, 117, 34, .34); background: rgba(255, 240, 224, .72); }
.event-quick-state.review { border-color: rgba(232, 117, 34, .34); background: rgba(255, 247, 232, .82); }
.event-quick-state.review small { color: var(--event-orange); font-weight: 800; }
.event-quick-state.care { border-color: rgba(179, 77, 77, .34); background: rgba(249, 231, 231, .72); }
.event-quick-state.care strong { display: block; margin-bottom: 4px; color: var(--event-ink); font-size: 14px; }
.event-composer-trust { grid-column: 2; margin: -8px 0 0; color: var(--event-muted); font-size: 11px; line-height: 1.5; }

.event-persona-test-slot {
  width: min(100%, 980px);
  min-width: 0;
  margin: 18px auto 0;
}
.event-persona-test-slot > #portraitHeroCard,
.event-persona-test-slot > #matchPortraitCard {
  width: 100%;
  margin-top: 0;
}
.event-persona-test-slot > #portraitHeroCard {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: var(--hz-radius-card, 22px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 253, 246, .68));
  box-shadow: var(--hz-shadow-card, 0 18px 36px rgba(42, 58, 46, .12));
}
.event-persona-test-slot > #portraitHeroCard #portraitAvatar {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 22%;
  background: rgba(255, 255, 255, .72);
}
.event-persona-test-slot > #portraitHeroCard #portraitAvatar .portrait-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-info { min-width: 0; }
.event-persona-test-slot > #portraitHeroCard .mobile-persona-title-btn {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  line-height: 1.16;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-title-btn::after { content: none; }
.event-persona-test-slot > #portraitHeroCard .mobile-persona-copy {
  margin: 7px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-tags span {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224, 245, 242, .86);
  color: var(--hz-teal-700, #347e79);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.event-persona-test-slot > #portraitHeroCard .mobile-persona-actions .portrait-retake-btn {
  min-height: 34px;
  margin-top: 0;
  padding: 0 14px;
  white-space: nowrap;
}
.event-hub-root[data-surface="desktop"] .event-persona-test-slot > #matchPortraitCard {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px 22px;
  min-height: 0;
  padding: 26px 28px;
}
.event-hub-root[data-surface="desktop"] .event-persona-test-slot > #matchPortraitCard:not(.mpc-empty-card) .mpc-avatar {
  grid-row: 1 / span 2;
  width: 132px;
  height: 132px;
  border-radius: 22px;
}
.event-hub-root[data-surface="desktop"] .event-persona-test-slot > #matchPortraitCard:not(.mpc-empty-card) .mpc-actions {
  grid-column: 2;
  justify-self: start;
  display: flex;
  gap: 10px;
}
.event-hub-root[data-surface="desktop"] .event-persona-test-slot > #matchPortraitCard:not(.mpc-empty-card) .btn { min-width: 176px; }
.event-hub-root[data-surface="desktop"] .event-persona-test-slot > #matchPortraitCard .mpc-info h3 { font-size: 21px; }

/* Mobile is a distinct product surface and may be rendered inside a wide
 * preview shell. Keep the intent flow mobile-first regardless of viewport. */
.event-hub-root[data-surface="mobile"] .event-composer-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 15px 14px 14px;
  border-left-width: 4px;
}
.event-hub-root[data-surface="mobile"] .event-composer-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  grid-row: auto;
  min-width: 0;
  padding-top: 0;
}
.event-hub-root[data-surface="mobile"] .event-composer-heading-main { min-width: 0; }
.event-hub-root[data-surface="mobile"] .event-composer-heading-row { gap: 8px; }
.event-hub-root[data-surface="mobile"] .event-composer-heading h2 {
  max-width: none;
  font-size: 21px;
  line-height: 1.3;
}
.event-hub-root[data-surface="mobile"] .event-calibration-trigger {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 11px;
}
.event-hub-root[data-surface="mobile"] .event-calibration-control { min-width: 0; }
.event-hub-root[data-surface="mobile"] .event-calibration-hint { font-size: 9px; }
.event-hub-root[data-surface="mobile"] .event-composer-description {
  max-width: none;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
}
.event-hub-root[data-surface="mobile"] .event-composer-heading-main > .event-beta-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(238, 247, 244, .74);
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}
.event-hub-root[data-surface="mobile"] .event-quick-form > label {
  margin-bottom: 7px;
  font-size: 12.5px;
}
.event-hub-root[data-surface="mobile"] .event-quick-input {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.event-hub-root[data-surface="mobile"] .event-quick-input textarea {
  min-height: 80px;
  max-height: 120px;
  resize: none;
  padding: 11px 12px;
  font-size: 16px;
}
.event-hub-root[data-surface="mobile"] .event-quick-input .event-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}
.event-hub-root[data-surface="mobile"] .event-quick-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}
.event-hub-root[data-surface="mobile"] .event-quick-examples button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  line-height: 1.35;
  white-space: normal;
}
.event-hub-root[data-surface="mobile"] .event-composer-section.has-quick-result .event-quick-examples {
  display: none;
}
.event-hub-root[data-surface="mobile"] .event-quick-result,
.event-hub-root[data-surface="mobile"] .event-composer-trust {
  grid-column: 1;
  min-width: 0;
}
.event-hub-root[data-surface="mobile"] .event-quick-state {
  min-height: 0;
  padding: 13px;
}
.event-hub-root[data-surface="mobile"] .event-quick-state.parsed .event-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.event-hub-root[data-surface="mobile"] .event-quick-state.parsed .event-btn {
  width: 100%;
  min-height: 44px;
}
.event-hub-root[data-surface="mobile"] .event-composer-trust {
  margin: -4px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
}
.event-hub-root[data-surface="mobile"] .event-persona-test-slot {
  width: auto;
  margin: 12px 0 0;
}
.event-hub-root[data-surface="mobile"] .event-persona-test-slot > #portraitHeroCard {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 14px;
}
.event-hub-root[data-surface="mobile"] .event-persona-test-slot > #portraitHeroCard #portraitAvatar {
  width: 104px;
  height: 104px;
}
.event-hub-root[data-surface="mobile"] .event-persona-test-slot > #portraitHeroCard .mobile-persona-actions .portrait-retake-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.event-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--event-hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
  color: var(--event-muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
}
.event-fee-row strong {
  color: var(--event-orange);
  font-size: 12px;
  font-weight: 850;
}
.event-pool-copy { margin-top: 10px !important; padding: 10px 12px; border-left: 3px solid var(--event-orange); background: rgba(255, 244, 229, .58); }
.event-pool-copy strong { display: block; margin-bottom: 2px; color: var(--event-ink); }
.event-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.event-detail-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--event-hairline); border-radius: 8px; background: rgba(255, 255, 255, .52); }
.event-detail-grid span,
.event-detail-grid strong,
.event-detail-grid small { display: block; }
.event-detail-grid span { margin-bottom: 4px; color: var(--event-muted); font-size: 10px; font-weight: 800; }
.event-detail-grid strong { color: var(--event-ink); font-size: 12px; line-height: 1.5; }
.event-detail-grid small { margin-top: 3px; color: var(--event-muted); font-size: 10px; line-height: 1.45; }

.event-my-events-root { color: var(--event-ink); width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 96px; font-family: inherit; letter-spacing: 0; }
.event-my-head { border-bottom: 1px solid var(--event-hairline); }
.event-my-section { padding: 28px 0; border-bottom: 1px solid var(--event-hairline); }
.event-my-list,
.event-my-candidates { display: grid; gap: 12px; }
.event-my-candidates { margin-top: 10px; }
.event-my-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; }

.event-hub-root[data-surface="desktop"] .event-hub-hero h1 { font-size: 40px; }
.event-hub-root[data-surface="desktop"] .event-recommend-section { padding-left: 0; }

.event-official-progress {
  margin: 9px 0 0;
  color: var(--event-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .event-my-events-root[data-surface="mobile"],
  .event-message-root[data-surface="mobile"] { width: 100%; padding: 18px 18px calc(124px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .event-hub-root[data-surface="mobile"] .event-hub-hero h1 { font-size: 30px; }
  .event-hub-root[data-surface="mobile"] .event-hub-slogan { margin-top: 7px; font-size: 15px; }
  .event-hub-root[data-surface="mobile"] .event-hub-slogan + p { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.55; }
  .event-hub-root[data-surface="mobile"] .event-hub-signal { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .event-state-header > .event-countdown { width: 100%; margin-left: 0; margin-top: 2px; }
  .event-official-progress .event-countdown { display: block; margin-left: 0; margin-top: 4px; }
  .event-notification-btn { min-width: 48px; }
  .event-composer-section { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; padding: 18px 14px; border-left-width: 4px; }
  .event-composer-heading { grid-row: auto; }
  .event-composer-heading h2 { font-size: 22px; }
  .event-composer-description { font-size: 12px; }
  .event-quick-input { grid-template-columns: minmax(0, 1fr); }
  .event-quick-input textarea { min-height: 88px; font-size: 16px; }
  .event-quick-input .event-btn { width: 100%; min-height: 46px; }
  .event-quick-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-quick-examples button { min-width: 0; min-height: 42px; white-space: normal; }
  .event-quick-result,
  .event-composer-trust { grid-column: 1; }
  .event-quick-state.parsed .event-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .event-quick-state.parsed .event-btn { width: 100%; min-height: 44px; }
  .event-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .event-my-card { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .event-my-card .event-action-rail { width: 100%; }
  .event-my-card .event-btn { min-height: 44px; }
  .event-modal.event-intent-modal .event-form-actions { bottom: calc(-26px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .event-hub-root[data-surface="mobile"],
  .event-my-events-root[data-surface="mobile"],
  .event-message-root[data-surface="mobile"] { padding-left: 14px; padding-right: 14px; }
  .event-quick-facts span { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 767px) {
  .event-hub-root[data-surface="mobile"] .event-btn,
  .event-hub-root[data-surface="mobile"] .event-actions .event-btn,
  .event-hub-root[data-surface="mobile"] .event-official-actions .event-btn,
  .event-hub-root[data-surface="mobile"] .event-action-rail .event-btn,
  .event-hub-root[data-surface="mobile"] .event-notification-btn,
  .event-hub-root[data-surface="mobile"] .event-quick-examples button,
  .event-hub-root[data-surface="mobile"] .event-quick-options button,
  .event-hub-root[data-surface="mobile"] .event-choice,
  .event-modal-backdrop[data-surface="mobile"] .event-option,
  .event-modal-backdrop[data-surface="mobile"] .event-sport-check span,
  .event-modal-backdrop[data-surface="mobile"] .event-form-actions .event-btn {
    min-height: 44px;
  }
}

/* Terminal encounter cards are content-driven; pending cards keep the stable
 * minimum height needed for deadlines, reasons and confirmation actions. */
.event-v23-list .event-v23-slide-terminal {
  align-self: flex-start;
}

.event-v23-list .event-v23-card-terminal {
  align-self: flex-start;
  height: auto;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .event-signal-wave::before,
  .event-signal-wave::after { animation: none; opacity: .35; }
}

/* Keep secondary activity lists available without making the home surface feel endless. */
.event-collapsed-list {
  margin-top: 12px;
  border: 1px solid var(--event-hairline);
  border-radius: var(--event-radius-small);
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66);
}
.event-collapsed-list > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.event-collapsed-list > summary::-webkit-details-marker { display: none; }
.event-collapsed-list > summary::after {
  content: "+";
  color: var(--event-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.event-collapsed-list[open] > summary::after { content: "-"; }
.event-collapsed-list[open] > .event-intent-progress-list,
.event-collapsed-list[open] > .event-official-list-more { padding: 0 10px 10px; }
.event-collapsed-list .event-intent-progress-list { margin-top: 0; }
.event-collapsed-list .event-official-list-more {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.event-collapsed-list .event-official-list-more .event-official-row { border-top: 1px solid var(--event-hairline); }
.event-next-card-compact { gap: 16px; padding: 18px 20px; }
.event-next-card-compact .event-card-title { font-size: 22px; }
.event-next-card-compact .event-card-summary { margin-top: 6px; }
.event-next-card-compact .event-fact-strip.compact { margin-top: 12px; }
.event-next-card-compact .event-action-rail { gap: 8px; }

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-next-card-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }
  .event-hub-root[data-surface="mobile"] .event-next-card-compact .event-card-title { font-size: 20px; }
  .event-hub-root[data-surface="mobile"] .event-next-card-compact .event-action-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .event-hub-root[data-surface="mobile"] .event-collapsed-list { margin-top: 10px; }
  .event-hub-root[data-surface="mobile"] .event-collapsed-list > summary { padding: 10px 12px; }
}

/* The hero only surfaces meaningful progress. Notifications stay available
 * independently, so the idle state can lead directly into the composer. */
.event-hub-hero {
  grid-template-areas:
    "brand actions"
    "brand status";
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  grid-template-rows: auto auto;
  row-gap: 10px;
  align-items: start;
}
.event-hub-brand { grid-area: brand; min-width: 0; }
.event-hub-hero-actions {
  grid-area: actions;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
}
.event-hub-hero > .event-hub-signal {
  grid-area: status;
  grid-template-columns: 10px minmax(0, 1fr);
  width: 100%;
}
.event-hub-hero:not(.has-status) .event-hub-brand {
  align-self: center;
}

.event-hub-root[data-surface="mobile"] .event-hub-hero {
  grid-template-areas:
    "brand actions"
    "status status";
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 12px;
}
.event-hub-root[data-surface="mobile"] .event-hub-hero-actions {
  align-items: flex-start;
  min-height: 40px;
}
.event-hub-root[data-surface="mobile"] .event-notification-btn {
  min-width: 44px;
  min-height: 40px;
  padding: 7px 9px;
}
.event-hub-root[data-surface="mobile"] .event-hub-hero > .event-hub-signal {
  grid-template-columns: 8px minmax(0, 1fr);
  margin-top: 0;
}

.event-primary-workspace {
  min-width: 0;
}

/* Desktop keeps the intent composer and current progress as the two primary
 * actions; the mobile surface naturally stacks them. */
.event-hub-root[data-surface="desktop"] .event-primary-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-composer-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 0;
  padding: 24px;
}

/* Keep the preview CTA visible without letting it overpower the sentence input. */
.event-hub-root[data-surface="desktop"] .event-composer-section .event-quick-input {
  align-items: center;
}

.event-hub-root[data-surface="desktop"] .event-composer-section .event-quick-input .event-btn {
  min-width: 126px;
  min-height: 56px;
  padding-inline: 16px;
  border-radius: 14px;
  white-space: nowrap;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-heading {
  grid-row: auto;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace .event-quick-result {
  grid-column: 1;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-hub-signal {
  grid-column: 2;
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .58);
  box-shadow: var(--event-card-shadow-consistent);
}

.event-hub-root[data-surface="mobile"] .event-primary-workspace > .event-hub-signal {
  margin-top: 12px;
}

.event-hub-root .event-hub-hero:not(.has-status) {
  grid-template-areas: "brand actions";
  grid-template-rows: auto;
}

/* Keep Event Hub page titles aligned with the Treehole title hierarchy. */
.event-hub-root[data-surface="mobile"],
.event-message-root[data-surface="mobile"],
.event-my-events-root[data-surface="mobile"] {
  padding: 22px 0 calc(124px + env(safe-area-inset-bottom));
}

.event-hub-root[data-surface="mobile"] .event-hub-hero {
  align-items: start;
  gap: 0;
  padding: 0 0 18px;
  text-align: left;
}

.event-hub-root[data-surface="mobile"] .event-hub-brand {
  min-width: 0;
  text-align: left;
}

.event-hub-root[data-surface="mobile"] .event-hub-kicker,
.event-message-root[data-surface="mobile"] .event-hub-kicker {
  margin: 0 0 4px;
  color: var(--event-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .17em;
}

.event-hub-root[data-surface="mobile"] .event-hub-hero h1,
.event-message-root[data-surface="mobile"] .event-message-head h1 {
  font-size: 31px;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.event-hub-root[data-surface="mobile"] .event-hub-slogan,
.event-message-root[data-surface="mobile"] .event-message-head p {
  margin-top: 7px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
}

.event-hub-root[data-surface="mobile"] .event-hub-slogan + p {
  margin-top: 7px;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.55;
}

.event-hub-root[data-surface="mobile"] .event-hub-brand > p:last-child {
  margin-top: 7px;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.55;
}

.event-message-root[data-surface="mobile"] .event-message-head {
  align-items: flex-start;
}

.event-my-events-root .event-my-head {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-my-events-root[data-surface="mobile"] .event-message-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-my-events-root[data-surface="mobile"] .event-hub-kicker {
  margin: 0 0 4px;
  color: var(--event-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .17em;
}

.event-my-events-root[data-surface="mobile"] .event-message-head h1 {
  margin-top: 0;
  font-size: 31px;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.event-my-events-root[data-surface="mobile"] .event-message-head > div > p:last-child {
  margin-top: 7px;
  color: var(--event-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
}

.event-my-events-root[data-surface="mobile"] .event-message-head > .event-btn {
  min-width: 52px;
  min-height: 44px;
  width: auto;
  flex: 0 0 auto;
  padding: 8px 12px;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .event-my-events-root[data-surface="mobile"] .event-message-head h1 {
    font-size: 29px;
  }
}

.event-message-root[data-surface="mobile"] .event-message-head > div {
  min-width: 0;
}

.event-message-root[data-surface="mobile"] .event-message-head > .event-btn {
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 10px;
}

@media (max-width: 380px) {
  .event-hub-root[data-surface="mobile"] .event-hub-hero h1,
  .event-message-root[data-surface="mobile"] .event-message-head h1 {
    font-size: 29px;
  }
}

.event-hub-root[data-surface="desktop"] .event-hub-slogan {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.event-hub-root[data-surface="desktop"] .event-hub-slogan + p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
}

.event-hub-root[data-surface="desktop"] .event-hub-brand > p:last-child {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
}

.event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker,
.event-message-root[data-surface="desktop"] .event-message-head .event-hub-kicker,
.event-my-events-root[data-surface="desktop"] .event-message-head .event-hub-kicker {
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: .22em;
  font-weight: 600;
}

.event-message-root[data-surface="desktop"] .event-message-head > div > p:last-child {
  margin: 18px auto 0;
  color: var(--event-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.event-my-events-root[data-surface="desktop"] .event-message-head > div > p:last-child {
  margin: 18px auto 0;
  color: var(--event-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

/* Match the Community/Profile page-entry motion when switching Event Hub tabs. */
#activityView.active .event-hub-root,
#activityView.active .activity-page-header,
#myEventsView.active .event-my-events-root,
#messageView.active .event-message-root {
  animation: event-page-enter 380ms var(--event-ease, cubic-bezier(.2, .8, .2, 1)) both;
}

@keyframes event-page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #activityView.active .event-hub-root,
  #activityView.active .activity-page-header,
  #myEventsView.active .event-my-events-root,
  #messageView.active .event-message-root {
    animation: none;
  }
}

.event-hub-root[data-surface="desktop"] .event-hub-hero h1,
.event-message-root[data-surface="desktop"] .event-message-head h1,
.event-my-events-root[data-surface="desktop"] .event-message-head h1 {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.6px;
}

@media (min-width: 1024px) {
  .event-hub-root[data-surface="desktop"] .event-primary-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 26px;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-composer-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    margin-top: 0;
    padding: 24px;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-heading {
    grid-row: auto;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-heading h2,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-description {
    max-width: none;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-quick-result,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-trust {
    grid-column: 1;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section {
    min-width: 0;
    height: 100%;
    padding: 24px;
    border: 1px solid rgba(62, 149, 149, .27);
    border-left: 5px solid var(--event-teal-bright);
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 18px 38px -30px rgba(42, 58, 46, .35);
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section .event-section-heading {
    min-height: 0;
    margin-bottom: 16px;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section .event-section-heading h2 {
    font-size: 22px;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-state-card,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-empty,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-intent-progress-list > .event-state-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-state-card::before {
    display: none;
  }
}

/* Keep the recommendation panel itself at the same radius as the other
 * top-level cards; only its nested state content stays flat on desktop. */
.event-hub-root[data-surface="mobile"] .event-workspace > .event-recommend-section,
.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section {
  border-radius: 24px;
  box-shadow: var(--event-card-shadow-consistent);
}

/* Secondary actions should remain visible as deliberate controls instead of
 * reading like unframed links. */
.event-btn.text {
  border-color: rgba(62, 149, 149, .26);
  background: rgba(255, 255, 255, .56);
  padding-inline: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: var(--event-glass);
  -webkit-backdrop-filter: var(--event-glass);
}
.event-btn.text:hover {
  border-color: rgba(62, 149, 149, .42);
  background: rgba(255, 255, 255, .78);
}

/* The two-action mobile rail is intentionally horizontal. A lone action
 * keeps the full row so it does not become an oddly narrow control. */
.event-hub-root[data-surface="mobile"] .event-action-rail,
.event-my-events-root[data-surface="mobile"] .event-action-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.event-hub-root[data-surface="mobile"] .event-action-rail .event-btn,
.event-my-events-root[data-surface="mobile"] .event-action-rail .event-btn {
  width: 100%;
  min-width: 0;
}
.event-hub-root[data-surface="mobile"] .event-action-rail .event-btn:only-child,
.event-my-events-root[data-surface="mobile"] .event-action-rail .event-btn:only-child {
  grid-column: 1 / -1;
}

/* Keep the My Events notification beside the title block at narrow widths. */
.event-my-events-root[data-surface="mobile"] .event-my-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
}
.event-my-events-root[data-surface="mobile"] .event-my-head > div {
  min-width: 0;
}
.event-my-events-root[data-surface="mobile"] .event-my-head > .event-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: 0;
}

/* The My Events notification uses the same surface language as its cards. */
.event-my-events-root .event-my-head > .event-btn {
  border-color: rgba(255, 255, 255, .74);
  border-radius: 22px;
  background: rgba(255, 255, 255, .54);
  box-shadow: var(--event-card-shadow-consistent);
}
.event-my-events-root .event-my-head > .event-btn:hover {
  background: rgba(255, 255, 255, .72);
}

/* Encounter and My Events use the same notification control language. */
.event-hub-root .event-notification-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, .74);
  border-radius: 22px;
  background: rgba(255, 255, 255, .54);
  font-size: 14px;
  box-shadow: var(--event-card-shadow-consistent);
}
.event-hub-root .event-notification-btn:hover {
  background: rgba(255, 255, 255, .72);
}
.event-hub-root[data-surface="mobile"] .event-notification-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 12px;
}

/* Align primary Event Hub cards with the Community/Profile card language. */
:root {
  --event-card-shadow-consistent: 0 20px 40px rgba(68, 120, 113, .1),
    0 8px 18px rgba(255, 154, 61, .05),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.event-hub-root[data-surface="mobile"] .event-composer-section,
.event-hub-root[data-surface="mobile"] .event-recommend-section,
.event-hub-root[data-surface="mobile"] .event-state-card,
.event-hub-root[data-surface="mobile"] .event-intent-entry,
.event-hub-root[data-surface="mobile"] .event-compact-card,
.event-hub-root[data-surface="mobile"] .event-official-card,
.event-hub-root[data-surface="mobile"] .event-intent-failed,
.event-hub-root[data-surface="mobile"] .event-empty,
.event-hub-root[data-surface="mobile"] .event-official-list,
.event-my-events-root[data-surface="mobile"] .event-my-card,
.event-my-events-root[data-surface="mobile"] .event-intent-failed {
  border-radius: 22px;
  box-shadow: var(--event-card-shadow-consistent);
}

.event-hub-root[data-surface="desktop"] .event-composer-section,
.event-hub-root[data-surface="desktop"] .event-recommend-section,
.event-hub-root[data-surface="desktop"] .event-state-card,
.event-hub-root[data-surface="desktop"] .event-intent-entry,
.event-hub-root[data-surface="desktop"] .event-compact-card,
.event-hub-root[data-surface="desktop"] .event-official-card,
.event-hub-root[data-surface="desktop"] .event-intent-failed,
.event-hub-root[data-surface="desktop"] .event-empty,
.event-hub-root[data-surface="desktop"] .event-official-list,
.event-message-root[data-surface="desktop"] .event-message-list,
.event-my-events-root[data-surface="desktop"] .event-my-card,
.event-my-events-root[data-surface="desktop"] .event-intent-failed {
  border-radius: 24px;
  box-shadow: var(--event-card-shadow-consistent);
}

/* The desktop recommendation column is a layout panel; its nested states stay flat. */
@media (min-width: 1024px) {
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-state-card,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-empty,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section > .event-intent-progress-list > .event-state-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* Keep the two desktop workspace panels independent when a secondary
 * arrangement expands. The composer should keep its own content height. */
@media (min-width: 1024px) {
  .event-hub-root[data-surface="desktop"] .event-primary-workspace {
    align-items: start;
  }
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-composer-section,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section {
    align-self: start;
    height: auto;
  }
}

/* Use the Profile-style section head across desktop Event Hub pages. */
@media (min-width: 821px) {
  .event-hub-root[data-surface="desktop"] .event-hub-hero {
    justify-items: start;
    text-align: left;
  }
  .event-hub-root[data-surface="desktop"] .event-hub-brand {
    width: 100%;
    text-align: left;
  }
  .event-hub-root[data-surface="desktop"] .event-hub-hero .event-hub-kicker,
  .event-message-root[data-surface="desktop"] .event-message-head .event-hub-kicker,
  .event-my-events-root[data-surface="desktop"] .event-message-head .event-hub-kicker {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
  .event-message-root[data-surface="desktop"] .event-message-head,
  .event-my-events-root[data-surface="desktop"] .event-message-head {
    justify-items: start;
    text-align: left;
  }
  .event-message-root[data-surface="desktop"] .event-message-head > div,
  .event-my-events-root[data-surface="desktop"] .event-message-head > div {
    width: 100%;
    text-align: left;
  }
  .event-message-root[data-surface="desktop"] .event-message-head p,
  .event-my-events-root[data-surface="desktop"] .event-message-head > div > p:last-child,
  .event-hub-root[data-surface="desktop"] .event-hub-brand > p:last-child {
    margin-left: 0;
    margin-right: 0;
  }
  .event-my-events-root[data-surface="desktop"] .event-message-head {
    position: relative;
    display: grid;
    gap: 0;
    padding: 0 0 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .event-my-events-root[data-surface="desktop"] .event-message-head > .event-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
  .event-my-events-root[data-surface="desktop"] .event-message-head > .event-btn:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .event-my-events-root[data-surface="desktop"] .event-message-head .event-hub-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    min-height: 28px;
    margin: 0;
    padding: 6px 14px 6px 12px;
    border: 1px solid rgba(87, 183, 183, .2);
    border-radius: 999px;
    background: var(--event-teal-soft);
    color: var(--event-teal);
    font-family: "Fraunces", Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.6;
  }
  .event-my-events-root[data-surface="desktop"] .event-message-head .event-hub-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--event-teal-bright);
  }
}

/* Keep My Events hierarchy quiet: the page title leads, sections organize,
 * and event cards carry the actual decision-making content. */
.event-my-events-root .event-my-section {
  padding: 22px 0;
}

.event-my-events-root .event-section-heading {
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.event-my-events-root .event-section-heading h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.event-my-events-root .event-section-heading p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.event-my-events-root .event-my-card .event-card-title,
.event-my-events-root .event-my-card h3 {
  font-size: 20px;
  line-height: 1.32;
}

.event-my-events-root .event-my-card .event-card-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

/* All My Events cards follow the same single-column reading order as the
 * recovery card: status, title, facts, trust, then one centered action row. */
.event-my-events-root .event-my-card {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 18px !important;
}

.event-my-events-root .event-my-card .event-action-rail {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
}

.event-my-events-root .event-my-card .event-action-rail .event-btn {
  width: 100% !important;
  min-width: 0;
}

/* The desktop carousel makes direct children flex items for sizing. Activity
 * cards need their own grid back so the action row can span the card bottom. */
.event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-card {
  display: grid !important;
  flex: 0 0 100%;
  align-items: stretch;
}

@media (max-width: 760px) {
  .event-my-events-root[data-surface="mobile"] .event-my-section {
    padding: 18px 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-section-heading {
    gap: 10px;
    margin-bottom: 10px;
  }

  .event-my-events-root[data-surface="mobile"] .event-section-heading h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  .event-my-events-root[data-surface="mobile"] .event-section-heading p {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-card-title,
  .event-my-events-root[data-surface="mobile"] .event-my-card h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-card-summary {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-status-chip {
    min-height: 26px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* Keep the activity name primary while the signal state stays visible on its right. */
.event-state-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.event-state-title-row > .event-card-title,
.event-state-title-row > h3 {
  min-width: 0;
  flex: 1 1 auto;
}

.event-state-title-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.event-state-title-status .event-state-note {
  white-space: nowrap;
}

.event-my-card .event-state-title-status {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.event-my-card .event-state-title-status .event-state-note {
  line-height: 1.3;
  text-align: right;
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-state-title-row,
  .event-my-events-root[data-surface="mobile"] .event-state-title-row {
    align-items: flex-start;
    gap: 8px;
  }

  .event-hub-root[data-surface="mobile"] .event-state-title-status,
  .event-my-events-root[data-surface="mobile"] .event-state-title-status {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 52%;
  }

  .event-hub-root[data-surface="mobile"] .event-state-title-status .event-state-note,
  .event-my-events-root[data-surface="mobile"] .event-state-title-status .event-state-note {
    font-size: 10px;
    line-height: 1.3;
    white-space: normal;
    text-align: right;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-state-title-status {
    max-width: 48%;
  }
}

/* Keep official activity rows in the same title/status rhythm. */
.event-official-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.event-official-title-row h3 {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.25;
}

.event-official-title-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 48px;
  gap: 5px;
}

.event-official-title-side time {
  color: var(--event-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.event-participant-note {
  margin: 7px 0 0;
  color: var(--event-teal);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-official-title-row {
    gap: 8px;
  }

  .event-hub-root[data-surface="mobile"] .event-official-title-side {
    max-width: 48%;
    gap: 4px;
  }

  .event-hub-root[data-surface="mobile"] .event-official-title-row h3 {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 18px;
  }

  .event-hub-root[data-surface="mobile"] .event-official-title-side time {
    font-size: 10px;
    white-space: normal;
    text-align: right;
  }

  .event-hub-root[data-surface="mobile"] .event-participant-note {
    margin-top: 6px;
    font-size: 11.5px;
  }
}

/* The status now lives beside the title, so the row only needs content and actions columns. */
.event-official-row {
  grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
}

.event-hub-root[data-surface="desktop"] .event-official-row {
  grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
}

.event-hub-root[data-surface="desktop"] .event-official-title-row h3 {
  font-size: 20px;
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-official-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Desktop My Events uses a contained editorial card instead of a full-width
 * strip: facts stay readable and actions get their own quiet rail. */
.event-my-events-root[data-surface="desktop"] .event-my-section,
.event-my-events-root[data-surface="desktop"] .event-empty {
  width: min(100%, 980px);
  max-width: 980px;
  margin-inline: auto;
}

.event-my-events-root[data-surface="desktop"] .event-my-card {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
  padding: 26px;
}

.event-my-events-root[data-surface="desktop"] .event-my-card .event-fact-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding-left: 22px;
  border-left: 1px solid var(--event-hairline);
}

.event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail .event-btn {
  width: 100%;
  min-width: 0;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  width: min(100%, 980px);
  margin-inline: auto;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Half-width columns need the card actions below the facts, otherwise the
 * right rail would consume too much room and make the event unreadable. */
.event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-action-rail {
  min-height: 0;
  padding-top: 16px;
  padding-left: 0;
  border-top: 1px solid var(--event-hairline);
  border-left: 0;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Each section is a fixed-height viewport: one event stays in view while
 * additional events remain available through the section's own scroll rail. */
.event-my-events-root .event-my-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.event-my-events-root .event-my-list {
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 0;
  padding-bottom: 8px;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  scrollbar-color: rgba(62, 149, 149, .55) rgba(62, 149, 149, .08);
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.event-my-events-root .event-my-list > * {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.event-my-events-root .event-my-list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.event-my-events-root .event-carousel-footer {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 6px;
}

.event-my-events-root .event-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.event-my-events-root .event-carousel-dot {
  width: 7px;
  min-width: 7px;
  height: 7px;
  min-height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(62, 149, 149, .24);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.event-my-events-root .event-carousel-dot.active {
  width: 20px;
  background: var(--event-teal);
}

.event-my-events-root .event-scroll-hint {
  flex: 0 0 auto;
  margin: 0;
  color: var(--event-teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.event-my-events-root .event-my-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.event-my-events-root .event-my-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(62, 149, 149, .08);
}

.event-my-events-root .event-my-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(62, 149, 149, .48);
  background-clip: padding-box;
}

@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-section,
  .event-my-events-root[data-surface="desktop"] .event-my-history-section {
    height: auto;
    min-height: 620px;
  }
}

/* Keep the synced official activity as one contained grid tile beside the
 * user's encounter sections. Its content still comes from activityCard(), so
 * title, status, facts and actions stay identical to the homepage. */
.event-my-events-root .event-my-official-section .event-official-list {
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-my-events-root .event-my-official-section .event-official-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius);
  background: var(--event-white);
  box-shadow: var(--event-shadow), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.event-my-events-root .event-my-official-section .event-official-row-main {
  min-width: 0;
}

.event-my-events-root .event-my-official-section .event-official-row-main h3 {
  font-size: 20px;
}

.event-my-events-root .event-my-official-section .event-official-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
}

.event-my-events-root .event-my-official-section .event-official-actions .event-btn {
  width: 100%;
  min-width: 0;
}

@media (max-width: 760px) {
  .event-my-events-root .event-my-official-section .event-official-list {
    height: auto;
  }

  .event-my-events-root .event-my-official-section .event-official-row {
    height: auto;
    padding: 16px;
  }
}

/* Keep deadline attention in the card's upper-right corner. The left side
 * remains the status/action pair so the activity title keeps a clean reading
 * start on both surfaces. */
.event-state-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
}

.event-state-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-state-header > .event-countdown {
  display: grid;
  justify-items: end;
  gap: 2px;
  justify-self: end;
  min-width: max-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(240, 113, 24, 0.2);
  border-radius: 10px;
  background: rgba(255, 241, 226, 0.78);
  text-align: right;
  white-space: nowrap;
}

.event-state-header > .event-countdown .event-countdown-label,
.event-state-header > .event-countdown .event-countdown-value {
  display: block;
}

.event-state-header > .event-countdown .event-countdown-label {
  color: #a76532;
  font-size: 9px;
  font-weight: 750;
}

.event-state-header > .event-countdown .event-countdown-value {
  color: var(--event-orange);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.event-state-header > .event-countdown.is-expired {
  border-color: rgba(112, 126, 118, 0.18);
  background: rgba(239, 242, 238, 0.78);
}

.event-state-header > .event-countdown.is-expired .event-countdown-label,
.event-state-header > .event-countdown.is-expired .event-countdown-value {
  color: var(--event-muted);
}

.event-state-header > .event-countdown .event-countdown-label::after {
  content: "";
}

.event-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.event-card-top-main {
  min-width: 0;
}

.event-card-top-main > .event-card-title {
  min-width: 0;
  margin: 12px 0 0;
}

.event-card-top-aside {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  min-width: max-content;
}

.event-card-top-aside > .event-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 96px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(240, 113, 24, 0.2);
  border-radius: 10px;
  background: rgba(255, 241, 226, 0.78);
  white-space: nowrap;
}

.event-card-top-aside > .event-countdown .event-countdown-label,
.event-card-top-aside > .event-countdown .event-countdown-value {
  display: block;
  white-space: nowrap;
}

.event-card-top-aside > .event-countdown .event-countdown-label {
  color: #a76532;
  font-size: 9px;
  font-weight: 750;
}

.event-card-top-aside > .event-countdown .event-countdown-label::after {
  content: "";
}

.event-card-top-aside > .event-countdown .event-countdown-value {
  color: var(--event-orange);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.event-card-top-aside > .event-countdown.is-expired {
  border-color: rgba(112, 126, 118, 0.18);
  background: rgba(239, 242, 238, 0.78);
}

.event-card-top-aside > .event-countdown.is-expired .event-countdown-label,
.event-card-top-aside > .event-countdown.is-expired .event-countdown-value {
  color: var(--event-muted);
}

.event-card-top-aside > .event-decision-fee {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 96px;
  padding: 6px 9px;
  border: 1px solid rgba(80, 130, 130, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--event-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.event-card-top-aside > .event-decision-fee strong {
  color: var(--event-orange);
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

.event-venue-benefit,
.event-card-note {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(62, 149, 149, 0.2);
  border-radius: 10px;
  background: rgba(238, 248, 246, 0.7);
}

.event-venue-benefit {
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-card-note {
  grid-template-columns: auto minmax(0, 1fr);
}

.event-card-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 238, 220, 0.88);
  color: var(--event-orange);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.event-card-note > p {
  margin: 0;
  color: var(--event-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.event-venue-benefit-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 10px;
  min-width: 0;
}

.event-venue-benefit-copy > span {
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 750;
}

.event-venue-benefit-copy > strong {
  min-width: 0;
  color: var(--event-ink);
  font-size: 13px;
  line-height: 1.35;
}

.event-venue-benefit-copy > small {
  grid-column: 1 / -1;
  color: var(--event-muted);
  font-size: 10px;
  line-height: 1.45;
}

.event-venue-coupon {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 104px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(240, 113, 24, 0.32);
  border-radius: 9px;
  background: rgba(255, 241, 226, 0.92);
  color: var(--event-orange);
  cursor: pointer;
}

.event-venue-coupon > span {
  font-size: 10px;
  font-weight: 750;
}

.event-venue-coupon > strong {
  font-size: 12px;
  line-height: 1.25;
}

.event-venue-coupon:hover,
.event-venue-coupon:focus-visible {
  border-color: rgba(240, 113, 24, 0.58);
  background: rgba(255, 232, 207, 0.98);
  outline: none;
}

@media (max-width: 760px) {
  .event-venue-benefit,
  .event-card-note {
    gap: 8px;
    min-height: 72px;
    margin-top: 10px;
    padding: 10px;
  }

  .event-venue-benefit-copy {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .event-venue-benefit-copy > small {
    grid-column: auto;
  }

  .event-venue-coupon {
    min-width: 96px;
    padding-inline: 10px;
  }

  .event-card-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .event-card-note > span {
    padding-inline: 8px;
  }

  .event-card-note > p {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .event-state-header {
    column-gap: 8px;
  }

  .event-state-header > .event-countdown {
    width: auto;
    min-width: max-content;
    max-width: none;
    margin: 0;
    padding: 6px 9px;
    white-space: nowrap;
  }

  .event-card-top {
    gap: 8px;
  }

  .event-card-top-main > .event-card-title {
    margin-top: 9px;
  }

  .event-card-top-aside > .event-countdown {
    min-width: 90px;
    padding: 6px 8px;
  }

  .event-card-top-aside > .event-decision-fee {
    min-width: 90px;
    padding: 6px 8px;
  }
}

/* Show one complete activity card per carousel position. Keep the existing
 * arrows, dots and drag behavior, while preventing multiple items from
 * sharing the visible row. */
.event-my-events-root .event-my-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.event-my-events-root .event-my-list > .event-my-card,
.event-my-events-root .event-my-list > .event-my-item {
  box-sizing: border-box;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.event-my-events-root .event-my-list > .event-my-item {
  display: flex;
  flex-direction: column;
}

/* Final activity-card override: registered cards must use the same bottom
 * action row as forming cards, even when the desktop surface is shown in a
 * narrower preview viewport. */
.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card,
.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card-upcoming {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 16px !important;
}

.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card .event-action-rail,
.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card-upcoming .event-action-rail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 500px) !important;
  margin-inline: auto !important;
  min-height: 0 !important;
  padding-top: 16px;
  padding-left: 0 !important;
  border-top: 1px solid var(--event-hairline);
  border-left: 0 !important;
}

.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card .event-action-rail .event-btn,
.event-my-events-root[data-surface="desktop"] .event-state-card.event-my-card-upcoming .event-action-rail .event-btn {
  width: 100% !important;
  min-width: 0;
}

@media (max-width: 760px) {
  .event-my-events-root[data-surface="mobile"] .event-my-card .event-action-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--event-hairline);
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-action-rail .event-btn {
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-card .event-action-rail .event-btn:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 240px);
  }
}

@media (max-width: 760px) {
  .event-my-events-root[data-surface="desktop"] .event-my-section,
  .event-my-events-root[data-surface="desktop"] .event-empty {
    max-width: none;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card .event-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail {
    min-height: 0;
    padding-left: 0;
    border-left: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-section {
    width: 100%;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-section,
  .event-my-events-root[data-surface="desktop"] .event-my-section {
    height: auto;
    min-height: 620px;
  }

  .event-my-events-root .event-my-list {
    padding-right: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-section {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .event-my-events-root[data-surface="mobile"] .event-section-heading {
    margin-bottom: 10px;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-list {
    gap: 10px;
    padding-bottom: 4px;
  }

  .event-my-events-root[data-surface="mobile"] .event-carousel-footer {
    margin-top: 4px;
  }
}

/* Keep Encounter's working surfaces on the same centered content column as
 * My Events; the page heading remains on the wider editorial grid. */
.event-hub-root[data-surface="desktop"] .event-primary-workspace,
.event-hub-root[data-surface="desktop"] > .event-section,
.event-hub-root[data-surface="desktop"] > .event-v23-section {
  width: min(100%, 980px);
  margin-inline: auto;
}

/* Keep the desktop Intent and progress panels on one visual baseline. */
.event-hub-root[data-surface="desktop"] .event-primary-workspace {
  align-items: stretch;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-composer-section,
.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-hub-progress-deck {
  align-self: stretch;
  height: auto;
}

/* Keep the companion progress card at the same height as the intent card.
 * The shared signal rule above originally pinned it to its content height. */
.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-hub-signal {
  align-self: stretch;
  height: auto;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  padding: 24px;
}

.event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-hub-signal .event-hub-signal-action {
  align-self: start;
  margin-top: 0;
}

/* Progress is the live handoff into My Events, so it uses the warm accent
 * to stand apart from the teal Intent composer without changing card anatomy. */
.event-hub-root .event-hub-progress-card {
  background: linear-gradient(135deg, rgba(255, 244, 229, .96), rgba(255, 255, 255, .72));
  border-color: rgba(232, 117, 34, .34);
  border-left: 4px solid var(--event-orange);
  box-shadow: 0 18px 38px -30px rgba(232, 117, 34, .56), inset 0 1px 0 rgba(255, 255, 255, .78);
}

.event-hub-root .event-hub-progress-card .event-hub-signal-dot {
  background: var(--event-orange);
  box-shadow: 0 0 0 5px var(--event-orange-soft);
}

.event-hub-root .event-hub-progress-card small {
  color: var(--event-orange);
}

.event-hub-root .event-hub-progress-card .event-hub-signal-action {
  color: #fff;
  background: var(--event-orange);
  border-color: var(--event-orange);
  box-shadow: 0 10px 22px -14px rgba(232, 117, 34, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.event-renewal-slot:empty {
  display: none;
}

.event-renewal-slot {
  width: min(760px, calc(100% - 24px));
  margin: 12px auto 0;
}

.event-renewal-guide {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(232, 117, 34, .3);
  border-left: 4px solid var(--event-orange);
  border-radius: var(--event-radius-small);
  background: linear-gradient(110deg, #fff6eb, #fffdfb);
}

.event-renewal-dot {
  width: 8px;
  height: 8px;
  align-self: start;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--event-orange);
  box-shadow: 0 0 0 5px var(--event-orange-soft);
}

.event-renewal-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-renewal-copy strong {
  color: #b5500a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.event-renewal-copy p {
  margin: 3px 0 0;
  color: var(--event-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.event-renewal-guide .event-renewal-action {
  min-width: 0;
  min-height: 44px;
  max-width: 112px;
  padding: 9px 12px;
  border: 1px solid var(--event-hairline);
  color: var(--event-teal);
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}

.event-renewal-guide .event-renewal-action:focus-visible {
  outline: 2px solid var(--event-teal);
  outline-offset: 3px;
}

/* The heartbeat entry mirrors the community entry and stays above the AI
 * composer, so the two surfaces have one consistent way into the plan. */
.event-renewal-guide {
  --event-heartbeat: #c45d6b;
  --event-heartbeat-deep: #a84b5b;
  --event-heartbeat-soft: rgba(196, 93, 107, .14);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 136px;
  align-items: center;
  column-gap: 14px;
  min-height: 132px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(196, 93, 107, .32);
  border-left: 4px solid var(--event-heartbeat);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255, 242, 239, .94), rgba(255, 250, 247, .96) 56%, rgba(255, 238, 241, .9));
  box-shadow: 0 14px 30px -24px rgba(168, 75, 91, .34), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.event-hub-root[data-surface] .event-renewal-slot {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 12px auto 0;
}

.event-renewal-guide .event-renewal-dot {
  flex: 0 0 10px;
  align-self: center;
  width: 10px;
  height: 10px;
  margin: 0;
  background: var(--event-heartbeat);
  box-shadow: 0 0 0 6px var(--event-heartbeat-soft);
}

.event-renewal-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.event-renewal-kicker-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.event-renewal-kicker {
  display: block;
  color: var(--event-heartbeat-deep);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .01em;
  line-height: 1.2;
}

.event-renewal-period {
  padding: 2px 8px;
  border: 1px solid rgba(196, 93, 107, .18);
  border-radius: 999px;
  background: rgba(196, 93, 107, .08);
  color: var(--event-heartbeat-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.event-renewal-copy h2 {
  margin: 0;
  color: var(--event-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.event-renewal-copy p {
  margin-top: 5px;
  color: var(--event-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.event-renewal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 8px;
  color: #8f7c78;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.event-renewal-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(168, 75, 91, .45);
}

.event-renewal-actions {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-renewal-status {
  margin: 0;
  color: var(--event-heartbeat-deep);
  padding: 4px 9px;
  border: 1px solid rgba(196, 93, 107, .18);
  border-radius: 999px;
  background: rgba(196, 93, 107, .07);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.event-renewal-waiting-status,
.event-renewal-waiting-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(196, 93, 107, .2);
  border-radius: 15px;
  background: rgba(255, 246, 243, .78);
  color: var(--event-muted);
}

.event-renewal-waiting-fact {
  margin-top: 10px;
  background: rgba(255, 255, 255, .68);
}

.event-renewal-waiting-status strong,
.event-renewal-waiting-fact strong {
  color: var(--event-heartbeat-deep, #a84b5b);
  text-align: right;
}

/* The waiting state is a focused status dialog, not a bottom action sheet. */
.event-modal-backdrop.event-heartbeat-waiting-open {
  align-items: center !important;
  padding: 14px !important;
}

.event-modal-backdrop.event-heartbeat-waiting-open .event-modal {
  width: min(640px, calc(100vw - 28px)) !important;
  max-height: min(650px, calc(100dvh - 28px)) !important;
  padding: 22px !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 64px rgba(42, 58, 46, .24);
}

.event-modal-backdrop.event-heartbeat-waiting-open .event-btn.primary {
  border-color: #a84b5b;
  background: #c45d6b;
}

.event-modal-backdrop.event-heartbeat-waiting-open .event-btn.primary:hover {
  border-color: #963f50;
  background: #a84b5b;
}

.event-modal-backdrop.event-heartbeat-waiting-open .event-modal-close {
  border-color: #e7c1c7;
  color: #a84b5b;
}

.event-modal-backdrop.event-heartbeat-waiting-open .event-btn.secondary {
  border-color: #e7c1c7;
  color: #a84b5b;
}

.event-renewal-guide .event-renewal-action {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 136px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #d87582, var(--event-heartbeat-deep));
  box-shadow: 0 10px 24px -12px rgba(168, 75, 91, .58), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.event-renewal-guide .event-renewal-action:hover {
  background: linear-gradient(135deg, #e0838e, #984252);
}

.event-renewal-guide .event-renewal-action:focus-visible {
  outline-color: var(--event-heartbeat);
}

@media (max-width: 480px) {
  .event-renewal-guide {
    grid-template-columns: 8px minmax(0, 1fr);
    row-gap: 7px;
    column-gap: 11px;
    min-height: 0;
    padding: 14px 14px 15px 15px;
  }

  .event-renewal-guide .event-renewal-dot { align-self: start; flex-basis: 8px; width: 8px; height: 8px; margin-top: 8px; }
  .event-renewal-kicker-row { gap: 6px; margin-bottom: 5px; }
  .event-renewal-kicker { font-size: 16px; }
  .event-renewal-period { padding: 2px 7px; font-size: 10px; }
  .event-renewal-copy h2 { font-size: 13px; line-height: 1.4; }
  .event-renewal-copy p { margin-top: 4px; font-size: 12px; }
  .event-renewal-meta { margin-top: 7px; font-size: 10px; }
  .event-renewal-meta span + span::before { margin-right: 6px; }
  .event-renewal-actions { grid-column: 2; justify-self: center; width: min(100%, 240px); }
  .event-renewal-status { padding: 3px 8px; font-size: 11px; }
  .event-renewal-guide .event-renewal-action { max-width: 240px; min-height: 42px; padding: 8px 10px; border-radius: 13px; font-size: 12px; }
}

.event-hub-root[data-surface="desktop"] .event-hub-progress-deck {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.event-hub-root[data-surface="desktop"] .event-progress-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.event-progress-panel-kicker {
  margin: 0;
  color: var(--event-orange);
  font-size: 12px;
  font-weight: 900;
}

.event-hub-root[data-surface="desktop"] .event-progress-panel-head h2 {
  margin: 4px 0 0;
  color: var(--event-ink);
  font-size: 20px;
  line-height: 1.25;
}

.event-progress-panel-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--event-orange-soft);
  color: var(--event-orange);
  font-size: 11px;
  font-weight: 850;
}

.event-progress-mini-list {
  display: grid;
  gap: 9px;
}

.event-progress-mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(232, 117, 34, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .64);
}

.event-progress-mini-card[data-progress-action] {
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.event-progress-mini-card[data-progress-action]:hover {
  border-color: rgba(232, 117, 34, .42);
  background: rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}

.event-progress-mini-card[data-progress-action]:focus-visible {
  outline: 3px solid rgba(232, 117, 34, .26);
  outline-offset: 3px;
  border-color: rgba(232, 117, 34, .58);
}

.event-progress-mini-card small,
.event-progress-mini-card strong,
.event-progress-mini-card p { display: block; }
.event-progress-mini-card small { color: var(--event-orange); font-size: 10px; font-weight: 850; }
.event-progress-mini-card strong { margin-top: 3px; color: var(--event-ink); font-size: 14px; line-height: 1.35; }
.event-progress-mini-card p { margin: 3px 0 0; color: var(--event-muted); font-size: 11px; line-height: 1.4; }
.event-progress-mini-arrow { color: var(--event-orange); font-size: 24px; line-height: 1; }

.event-progress-empty {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 18px;
  border: 1px dashed rgba(232, 117, 34, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .52);
  text-align: center;
}

.event-progress-empty strong {
  color: var(--event-ink);
  font-size: 15px;
}

.event-progress-empty p {
  margin: 0;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.5;
}

.event-hub-root[data-surface="desktop"] .event-hub-progress-deck .event-hub-signal-action {
  grid-column: 1;
  width: 100%;
}

/* Desktop activity columns share one visual baseline: equal-height sections,
 * full-height cards, and a centered action group at the bottom of each card. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 500px);
    margin-inline: auto;
    min-height: 0;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--event-hairline);
    border-left: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail .event-btn {
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-card .event-action-rail .event-btn:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 240px);
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    align-items: stretch;
    grid-auto-rows: minmax(0, 1fr);
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-section {
    height: 100%;
    min-height: 620px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list {
    flex: 1 1 auto;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > *,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item {
    display: flex;
    flex: 1 1 100%;
    min-height: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-state-card {
    width: 100%;
    min-height: 100%;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-action-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-action-rail .event-btn {
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-action-rail .event-btn:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 240px);
  }
}

/* Mobile needs-action items use the same readable vertical composition as
 * desktop: the submitted signal comes first and the event proposal follows
 * at full width instead of being squeezed beside it. */
@media (max-width: 760px) {
  .event-my-events-root[data-surface="mobile"] .event-my-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-item > .event-intent-progress,
  .event-my-events-root[data-surface="mobile"] .event-my-item > .event-my-candidates {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-item > .event-my-candidates {
    display: grid;
    gap: 10px;
    margin-top: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-state-card.event-recommend-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 16px !important;
    border-radius: 16px;
  }

  .event-my-events-root[data-surface="mobile"] .event-recommend-card .event-state-copy {
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-recommend-card .event-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-my-events-root[data-surface="mobile"] .event-recommend-card .event-action-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-recommend-card .event-action-rail .event-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Keep the two activity columns equal without reserving a full-screen
 * viewport for a single card. The carousel still owns overflow; the card
 * itself stays compact and both columns share the same baseline. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    grid-auto-rows: auto;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-section {
    height: auto !important;
    min-height: 0 !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > *,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item {
    min-height: 0;
    height: auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-state-card {
    min-height: 0 !important;
    height: auto;
  }
}

/* Activity decisions stay to four facts; fee and trust use separate compact rails. */
.event-activity-fact-strip:not(.compact) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-activity-fact-strip:not(.compact),
  .event-my-events-root[data-surface="mobile"] .event-activity-fact-strip:not(.compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-hub-root[data-surface="mobile"] .event-fee-row,
  .event-my-events-root[data-surface="mobile"] .event-fee-row {
    margin-top: 8px;
    padding: 9px 11px;
  }
}

@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-card .event-activity-fact-strip:not(.compact) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A needs-action item can contain both the submitted signal and its event
 * proposal. Keep that pair in one readable column; the section carousel
 * should scroll complete items, not squeeze the proposal into a side rail. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item > .event-intent-progress,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item > .event-my-candidates {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item > .event-my-candidates {
    display: grid;
    gap: 12px;
    margin-top: 0;
  }
}

/* Activity layout v3: keep each status group readable, let a single group
 * use the available width, and make multi-card shelves discoverable without
 * changing the established activity card treatment. */
.event-my-events-root .event-my-sections-grid > .event-my-section {
  min-width: 0;
}

.event-my-events-root .event-my-sections-grid.is-single-section > .event-my-section {
  grid-column: 1 / -1;
}

.event-my-events-root .event-carousel-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 8px;
}

.event-my-events-root .event-carousel-controls {
  display: grid;
  grid-template-columns: 34px auto 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.event-my-events-root .event-carousel-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(62, 149, 149, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--event-teal);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.event-my-events-root .event-carousel-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .88);
}

.event-my-events-root .event-carousel-arrow:focus-visible {
  outline: 3px solid rgba(232, 117, 34, .24);
  outline-offset: 2px;
}

.event-my-events-root .event-carousel-arrow:disabled {
  opacity: .28;
  cursor: default;
  transform: none;
}

@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] {
    width: min(1120px, calc(100% - 48px));
    padding-top: 30px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 28px;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    margin: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list {
    flex: 1 1 auto;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-card {
    height: 100%;
    min-height: 0 !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-item {
    height: auto;
    min-height: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-action-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-history-section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 760px) {
  .event-my-events-root[data-surface="mobile"] .event-my-sections-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-sections-grid > .event-my-section {
    grid-column: 1;
    width: 100%;
    min-height: 0;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-list > * {
    min-width: 100%;
  }

  .event-my-events-root .event-carousel-controls {
    grid-template-columns: 38px auto 38px;
    gap: 12px;
  }

  .event-my-events-root .event-carousel-arrow {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* The web My Events cards intentionally keep the mobile reading order:
 * status and deadline first, then progress, facts, actions and more. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto;
    padding: 15px !important;
    border-radius: 18px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-card-top {
    gap: 8px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-card-top-main > .event-card-title,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card h3 {
    margin-top: 9px;
    font-size: 17px;
    line-height: 1.35;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-card-summary {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-card-top-aside > .event-countdown,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-card-top-aside > .event-decision-fee {
    min-width: 90px;
    padding: 6px 8px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-activity-fact-strip:not(.compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 11px;
    border-radius: 13px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-activity-fact-strip:not(.compact) div {
    padding: 8px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-action-rail,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress .event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 0;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-action-rail .event-btn,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress .event-actions .event-btn {
    width: 100%;
    min-width: 0;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress h3 {
    font-size: 15px;
    line-height: 1.42;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress > p {
    font-size: 11.5px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress .event-fact-strip.compact {
    gap: 7px;
    margin-top: 11px;
  }

}

/* Keep the two desktop activity columns on the same row height. The right
 * column uses an item wrapper for its signal card, so stretching only the
 * card element leaves that wrapper at its intrinsic height. Stretch both
 * levels while leaving the mobile carousel content-driven. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0 !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list {
    flex: 1 1 auto;
    align-items: stretch;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-item {
    height: 100%;
    min-height: 0;
    flex: 1 1 100%;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-item {
    display: flex;
    flex-direction: column;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-item:not(:has(> .event-my-candidates)) > .event-intent-progress {
    height: 100%;
    flex: 1 1 auto;
  }
}

/* Searching cards use calm fact tiles rather than filter-like pills. */
.event-intent-progress .event-fact-strip.compact {
  gap: 7px;
  margin-top: 14px;
}

.event-intent-progress .event-fact-strip.compact div,
.event-hub-root[data-surface="desktop"] .event-intent-progress .event-fact-strip.compact div {
  min-height: 36px;
  padding: 7px 10px;
  gap: 6px;
  border-color: rgba(69, 132, 130, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.event-intent-progress .event-fact-strip.compact dt {
  color: rgba(75, 93, 87, 0.72);
  font-size: 9.5px;
  font-weight: 700;
}

.event-intent-progress .event-fact-strip.compact dd {
  color: var(--event-ink);
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .event-hub-root[data-surface="mobile"] .event-intent-progress .event-fact-strip.compact {
    row-gap: 7px;
  }

  .event-hub-root[data-surface="mobile"] .event-intent-progress .event-fact-strip.compact div {
    min-height: 38px;
    padding: 8px 10px;
  }
}

/* Desktop activity cards keep the mobile information model without inheriting
 * its tall, single-column proportions. Each grid row follows its real content
 * height, while the two cards in that row still share one visual baseline. */
@media (min-width: 761px) {
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
    grid-auto-rows: auto;
    align-items: stretch;
    row-gap: 22px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-self: stretch;
    height: auto !important;
    min-height: 0 !important;
    padding-block: 18px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-section-heading {
    margin-bottom: 12px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    flex: none;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-list > .event-my-item {
    height: 100%;
    min-height: 0 !important;
    flex: 0 0 100% !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item {
    justify-content: flex-start;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-item:not(:has(> .event-my-candidates)) > .event-intent-progress {
    height: 100%;
    min-height: 0 !important;
    flex: 1 1 auto;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress {
    padding: 20px !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card {
    grid-template-rows: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-card-summary {
    margin-top: 6px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-activity-fact-strip,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress .event-fact-strip.compact {
    margin-top: 12px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-venue-benefit,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-card-note {
    min-height: 68px;
    margin-top: 10px;
    padding-block: 9px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-my-card .event-action-rail,
  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-intent-progress .event-actions {
    margin-top: 0;
    padding-top: 12px;
  }

  .event-my-events-root[data-surface="desktop"] .event-my-sections-grid .event-carousel-footer {
    align-self: end;
    margin-top: 6px;
  }
}

/* Activity detail is a decision surface: core facts stay visible while rules
 * collapse into one disclosure and the current action remains within reach. */
.event-modal.event-detail-modal {
  width: min(720px, 100%);
  padding: 0;
  overflow-x: hidden;
  background: rgba(246, 244, 237, 0.97);
}

.event-detail-view {
  min-width: 0;
  padding: 24px 24px 0;
}

.event-detail-hero {
  position: relative;
  padding-right: 52px;
}

.event-detail-hero .event-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.event-detail-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding-right: 4px;
}

.event-detail-status-row .event-status-chip {
  max-width: calc(100% - 128px);
  border-radius: 999px;
}

.event-detail-status-row .event-status-chip.muted {
  color: var(--event-muted);
  background: rgba(103, 117, 112, 0.1);
}

.event-detail-status-row .event-countdown {
  display: grid;
  justify-items: end;
  gap: 1px;
  min-width: 96px;
  margin: 0;
  padding-top: 2px;
  line-height: 1.25;
}

.event-detail-status-row .event-countdown-label::after {
  content: "";
}

.event-detail-hero h2 {
  margin: 15px 0 0;
  color: var(--event-ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.event-detail-hero > p:last-child {
  margin: 8px 0 0;
  color: var(--event-muted);
  font-size: 13px;
  line-height: 1.55;
}

.event-detail-decision {
  margin-top: 17px;
}

.event-detail-decision .event-fact-strip {
  margin-top: 0;
}

.event-detail-decision .event-fact-strip div {
  min-height: 56px;
  padding: 10px 12px;
}

.event-detail-decision .event-fact-strip dt {
  font-size: 10px;
}

.event-detail-decision .event-fact-strip dd {
  font-size: 13px;
}

.event-detail-decision .event-fee-row {
  margin-top: 8px;
  padding: 9px 12px;
}

.event-detail-view > .event-venue-benefit {
  margin-top: 12px;
  border-radius: 8px;
}

.event-detail-rules {
  margin-top: 14px;
  border-top: 1px solid var(--event-hairline);
}

.event-detail-rules h3 {
  margin: 0;
  padding: 13px 2px 9px;
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 800;
}

.event-detail-rules dl {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--event-hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.event-detail-rules dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px;
}

.event-detail-rules dl > div + div {
  border-top: 1px solid var(--event-hairline);
}

.event-detail-rules dt,
.event-detail-rules dd {
  margin: 0;
}

.event-detail-rules dt {
  color: var(--event-muted);
  font-size: 10px;
  font-weight: 800;
}

.event-detail-rules dd {
  color: var(--event-ink);
  font-size: 11px;
  line-height: 1.5;
}

.event-detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 -24px;
  padding: 13px 24px 18px;
  border-top: 1px solid rgba(31, 72, 63, 0.1);
  background: rgba(246, 244, 237, 0.96);
  box-shadow: 0 -12px 24px -24px rgba(25, 62, 54, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.event-detail-actions .event-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 8px;
}

.event-detail-actions .event-btn:only-child {
  grid-column: 1 / -1;
}

.event-detail-actions .event-btn-exit {
  border-color: rgba(204, 107, 50, 0.34);
  color: #b85b23;
}

.event-detail-actions .event-btn-exit:hover,
.event-detail-actions .event-btn-exit:focus-visible {
  border-color: rgba(204, 107, 50, 0.58);
  background: rgba(255, 241, 227, 0.92);
}

@media (max-width: 760px) {
  .event-modal-backdrop[data-surface="mobile"] {
    padding: 10px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-modal.event-detail-modal {
    width: min(680px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 0;
    border-radius: 22px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-view {
    padding: 18px 16px 0;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-hero {
    padding-right: 44px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-status-row {
    min-height: 36px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-status-row .event-status-chip {
    max-width: calc(100% - 104px);
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-status-row .event-countdown {
    min-width: 82px;
    font-size: 9.5px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-hero h2 {
    margin-top: 12px;
    font-size: 23px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-hero > p:last-child {
    margin-top: 6px;
    font-size: 11px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-decision {
    margin-top: 13px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-decision .event-activity-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-decision .event-fact-strip div {
    min-height: 52px;
    padding: 8px 10px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-decision .event-fact-strip dd {
    font-size: 12px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-view > .event-venue-benefit {
    min-height: 64px;
    margin-top: 10px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-rules {
    margin-top: 10px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-rules h3 {
    padding-top: 11px;
    padding-bottom: 8px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-rules dl > div {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-actions {
    margin: 0 -16px;
    padding: 11px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-actions .event-btn {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  .event-modal-backdrop[data-surface="mobile"] .event-detail-view {
    padding-inline: 14px;
  }

  .event-modal-backdrop[data-surface="mobile"] .event-detail-actions {
    margin-inline: -14px;
    padding-inline: 14px;
  }
}

/* Approved visual consolidation: keep the existing Home section order while
 * giving every Event Hub surface the same quiet, decision-first system. */
:root {
  --event-ink: var(--hz-ink, #2a3a2e);
  --event-muted: var(--hz-muted, #6f7a70);
  --event-teal: var(--hz-teal-600, #3e9595);
  --event-teal-bright: var(--hz-teal-500, #57b7b7);
  --event-teal-soft: var(--hz-teal-100, #e6f3f1);
  --event-orange: var(--hz-coral-600, #e87522);
  --event-orange-soft: var(--hz-coral-100, #fdebd8);
  --event-paper: var(--hz-cream-0, #f5f2ea);
  --event-line: rgba(80, 130, 130, .18);
  --event-hairline: rgba(80, 130, 130, .14);
  --event-radius: 20px;
  --event-radius-small: 16px;
  --event-radius-control: 8px;
  --event-shadow: 0 12px 28px rgba(42, 58, 46, .10);
  --event-shadow-soft: 0 4px 16px rgba(42, 58, 46, .06);
  --event-glass: none;
}

.event-hub-root,
.event-message-root,
.event-my-events-root {
  color: var(--hz-ink, #2a3a2e);
}

.event-hub-root .event-state-card,
.event-hub-root .event-official-row,
.event-hub-root .event-empty,
.event-hub-root .event-composer-section,
.event-message-root .event-message-head,
.event-message-root .event-message-list,
.event-my-events-root .event-state-card {
  background: rgba(255, 255, 255, .88);
  border-color: var(--event-line);
  border-radius: var(--event-radius);
  box-shadow: var(--event-shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-hub-root .event-state-card::before,
.event-hub-root .event-state-card::after {
  background: var(--event-teal-500, #57b7b7);
}

.event-hub-root .event-btn,
.event-message-root .event-btn,
.event-my-events-root .event-btn,
.event-modal-backdrop .event-btn {
  min-height: 44px;
  border-radius: var(--event-radius-control);
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.event-hub-root .event-btn.primary,
.event-message-root .event-btn.primary,
.event-my-events-root .event-btn.primary,
.event-modal-backdrop .event-btn.primary {
  background: var(--hz-teal-700, #347e79);
  box-shadow: 0 4px 12px rgba(52, 126, 121, .16);
}

.event-hub-root .event-btn.primary:hover,
.event-message-root .event-btn.primary:hover,
.event-my-events-root .event-btn.primary:hover,
.event-modal-backdrop .event-btn.primary:hover {
  background: #2f716c;
}

.event-hub-root .event-btn.secondary,
.event-message-root .event-btn.secondary,
.event-my-events-root .event-btn.secondary,
.event-modal-backdrop .event-btn.secondary {
  background: #fff;
  border-color: var(--event-line);
  color: var(--event-teal);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-hub-root .event-btn.text,
.event-message-root .event-btn.text,
.event-my-events-root .event-btn.text {
  background: transparent;
  border-color: transparent;
  color: var(--event-teal);
  box-shadow: none;
  padding-inline: 12px;
}

.event-hub-root .event-btn:focus-visible,
.event-message-root .event-btn:focus-visible,
.event-my-events-root .event-btn:focus-visible,
.event-modal-backdrop .event-btn:focus-visible,
.event-hub-root .event-choice:focus-visible,
.event-modal-backdrop .event-option:focus-visible {
  outline: 2px solid var(--hz-teal-500, #57b7b7);
  outline-offset: 2px;
}

.event-hub-root .event-quick-input textarea,
.event-modal-backdrop .event-field input,
.event-modal-backdrop .event-field textarea,
.event-modal-backdrop .event-field select {
  border-radius: var(--event-radius-control);
  border-color: var(--event-line);
  background: #fff;
  box-shadow: none;
}

.event-hub-root .event-quick-input textarea:focus,
.event-modal-backdrop .event-field input:focus,
.event-modal-backdrop .event-field textarea:focus,
.event-modal-backdrop .event-field select:focus {
  border-color: var(--hz-teal-500, #57b7b7);
  box-shadow: 0 0 0 2px rgba(87, 183, 183, .18);
}

/* Keep the desktop primary prompt visibly ready before the first click. */
.event-hub-root[data-surface="desktop"] .event-quick-input textarea,
.event-hub-root[data-surface="desktop"] .event-quick-input textarea:focus {
  border-color: var(--hz-teal-500, #57b7b7);
  box-shadow: 0 0 0 2px rgba(87, 183, 183, .42), 0 10px 24px -18px rgba(39, 111, 109, .28);
}

.event-hub-root .event-quick-examples button,
.event-hub-root .event-quick-options button,
.event-hub-root .event-choice,
.event-modal-backdrop .event-option {
  border-radius: var(--event-radius-control);
  border-color: var(--event-line);
  background: var(--hz-color-surface-soft, #f7faf7);
  color: var(--event-muted);
  box-shadow: none;
}

.event-hub-root .event-quick-examples button:hover,
.event-hub-root .event-quick-options button:hover,
.event-hub-root .event-choice:hover,
.event-modal-backdrop .event-option:hover {
  border-color: var(--hz-teal-500, #57b7b7);
  background: #fff;
}

.event-hub-root .event-choice.selected,
.event-modal-backdrop .event-option.selected {
  border-color: var(--hz-teal-500, #57b7b7);
  background: var(--hz-teal-100, #e6f3f1);
  color: var(--event-teal);
  box-shadow: none;
}

.event-hub-root .event-quick-state,
.event-hub-root .event-intent-receipt,
.event-hub-root .event-intent-progress,
.event-hub-root .event-intent-failed {
  border-radius: var(--event-radius-small);
  background: var(--hz-teal-100, #e6f3f1);
  box-shadow: none;
}

.event-hub-root .event-quick-state.error,
.event-hub-root .event-intent-failed {
  background: var(--hz-coral-100, #fdebd8);
}

.event-hub-root .event-quick-facts span,
.event-hub-root .event-start-quick-facts span,
.event-hub-root .event-fact-strip.compact div {
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.event-fact-strip dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-fact-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--event-teal);
  font-size: 14px;
  line-height: 1;
}

.event-fact-icon::before { content: "•"; }
.event-fact-icon[data-fact-icon="clock"]::before { content: "◷"; }
.event-fact-icon[data-fact-icon="location"]::before { content: "⌖"; }
.event-fact-icon[data-fact-icon="people"]::before { content: "♧"; }
.event-fact-icon[data-fact-icon="duration"]::before { content: "◴"; }
.event-fact-icon[data-fact-icon="fee"]::before { content: "¥"; }
.event-fact-icon[data-fact-icon="activity"]::before { content: "•"; }

.event-official-row {
  grid-template-columns: minmax(112px, .26fr) minmax(0, 1fr) minmax(142px, .26fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.event-official-row-status {
  align-content: start;
  gap: 9px;
  padding-top: 2px;
}

.event-official-row-status time {
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.event-official-title-row > div {
  display: flex;
  align-items: start;
  gap: 9px;
}

.event-official-row-main h3 {
  font-size: 19px;
  line-height: 1.3;
}

.event-official-row-main p {
  max-width: 48em;
  font-size: 13px;
  line-height: 1.55;
}

.event-official-row .event-official-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: start;
}

.event-official-row .event-official-actions.has-join {
  grid-template-columns: minmax(0, 1fr);
}

.event-official-progress {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid var(--event-hairline);
}

.event-persona-test-slot {
  margin-top: 16px;
}

.event-persona-test-slot > #portraitHeroCard {
  max-width: 760px;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: var(--event-radius);
  background: #fff;
  box-shadow: var(--event-shadow-soft);
}

.event-persona-test-slot > #portraitHeroCard #portraitAvatar {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

.event-persona-test-slot > #portraitHeroCard .mobile-persona-actions .portrait-retake-btn {
  min-height: 40px;
  border-radius: var(--event-radius-control);
  box-shadow: none;
}

.event-modal-backdrop[data-surface="mobile"] {
  align-items: end;
  padding: 0;
  background: rgba(29, 40, 33, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-modal-backdrop[data-surface="mobile"] .event-modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - 8px);
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--hz-cream-0, #f5f2ea);
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0 -12px 36px rgba(42, 58, 46, .14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-modal-backdrop[data-surface="mobile"].event-room-open {
  align-items: center;
  padding: 14px;
}

.event-modal-backdrop[data-surface="mobile"].event-room-open .event-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(730px, calc(100dvh - 28px));
  padding: 18px;
  border-radius: 24px;
}

.event-modal-backdrop[data-surface="mobile"] .event-modal.event-detail-modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - 8px);
  padding: 0;
  border-radius: 24px 24px 0 0;
}

.event-modal-backdrop[data-surface="mobile"] .event-modal-head,
.event-modal-backdrop[data-surface="mobile"] .event-detail-hero {
  position: sticky;
  top: -18px;
  z-index: 3;
  padding-top: 4px;
  background: var(--hz-cream-0, #f5f2ea);
}

.event-modal-backdrop[data-surface="mobile"] .event-form-actions,
.event-modal-backdrop[data-surface="mobile"] .event-detail-actions {
  background: var(--hz-cream-0, #f5f2ea);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-modal-backdrop .event-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-color: var(--event-line);
  background: #fff;
  box-shadow: none;
}

.event-hub-root[data-surface="mobile"] .event-quick-input {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.event-hub-root[data-surface="mobile"] .event-quick-input textarea {
  min-height: 96px;
}

.event-hub-root[data-surface="mobile"] .event-quick-input .event-btn {
  min-height: 44px;
}

.event-hub-root[data-surface="mobile"] .event-quick-examples {
  gap: 8px;
}

.event-hub-root[data-surface="mobile"] .event-quick-examples button {
  min-height: 40px;
  padding-inline: 12px;
}

#activityView .tab-bar {
  bottom: 10px;
  width: min(calc(100% - 28px), 402px);
  padding: 4px;
  border-radius: 16px;
  border-color: var(--event-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--event-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#activityView .tab-bar .tab {
  min-height: 44px;
  border-radius: 8px;
  color: var(--event-muted);
  font-size: 12px;
  font-weight: 700;
}

#activityView .tab-bar .tab.active {
  color: var(--hz-teal-700, #347e79);
  background: var(--hz-teal-100, #e6f3f1);
}

@media (max-width: 760px) {
  .event-official-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .event-official-row-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .event-official-row-main h3 { font-size: 18px; }

  .event-official-row .event-official-actions.has-join {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-persona-test-slot > #portraitHeroCard {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .event-persona-test-slot > #portraitHeroCard #portraitAvatar {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 375px) {
  .event-hub-root[data-surface="mobile"] .event-persona-test-slot > #portraitHeroCard {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .event-persona-test-slot > #portraitHeroCard #portraitAvatar {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-hub-root .event-btn,
  .event-message-root .event-btn,
  .event-my-events-root .event-btn,
  .event-modal-backdrop .event-btn {
    transition: none;
  }
}

/* My Events is organized as four large work areas. Official activities stay
 * inside one section card and use the existing horizontal activity rail. */
.event-my-events-root[data-surface="desktop"] .event-my-sections-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section {
  display: flex;
  min-height: 560px;
  height: 100% !important;
  padding: 22px;
  border: 1px solid var(--event-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--event-card-shadow-consistent);
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section .event-section-heading {
  margin-bottom: 16px;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section .event-my-list {
  width: 100%;
  flex: 1 1 auto;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section .event-section-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--event-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .48);
  text-align: center;
}

.event-my-events-root[data-surface="desktop"] .event-my-sections-grid > .event-my-section .event-section-empty p {
  margin: 0 0 8px;
  color: var(--event-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Homepage official activities retain the desktop four-tile presentation;
 * My Events intentionally uses the four-section layout above. */
.event-hub-root[data-surface="desktop"] .event-official-grid.event-official-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-hub-root[data-surface="desktop"] .event-official-grid .event-official-row {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--event-line);
  border-radius: var(--event-radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--event-card-shadow-consistent);
}

.event-official-grid .event-official-row-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-official-grid .event-official-row-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.event-official-grid .event-official-row-main h3 {
  font-size: 20px;
}

.event-official-grid .event-official-row-main .event-official-progress {
  margin-top: auto;
}

.event-official-grid .event-official-row .event-official-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}

.event-official-grid .event-official-row .event-official-actions .event-btn {
  width: 100%;
  min-width: 0;
}

.event-hub-root[data-surface="mobile"] .event-official-grid.event-official-list {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
}

.event-hub-root[data-surface="mobile"] .event-official-grid .event-official-row {
  height: auto;
  min-height: 0;
  padding: 16px;
}

@media (max-width: 760px) {
  .event-my-events-root[data-surface="mobile"] .event-my-sections-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .event-my-events-root[data-surface="mobile"] .event-my-sections-grid > .event-my-section {
    min-height: 0;
    height: auto !important;
    padding: 18px 16px;
    border-radius: 22px;
    border: 1px solid var(--event-line);
    background: rgba(255, 255, 255, .68);
    box-shadow: var(--event-card-shadow-consistent);
  }

  .event-my-events-root[data-surface="mobile"] .event-my-sections-grid > .event-my-section .event-section-empty {
    min-height: 180px;
  }
}

/* Official cards must never inherit the legacy narrow status column. Keep
 * their reading order consistent with the mobile card: status/date, title,
 * facts, reminder and actions. */
.event-hub-root .event-official-grid .event-official-row {
  display: flex;
  grid-template-columns: none;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.event-hub-root .event-official-grid .event-official-row-status {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-hub-root .event-official-grid .event-official-row-status .event-status-chip {
  max-width: 100%;
  white-space: nowrap;
}

.event-hub-root .event-official-grid .event-official-row-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.event-hub-root .event-official-grid .event-official-row-main .event-official-progress {
  margin-top: auto;
}

.event-hub-root .event-official-grid .event-official-row .event-official-actions {
  width: 100%;
  margin-top: 0;
}

.event-hub-root .event-official-grid .event-official-row .event-official-actions.single-action,
.event-hub-root .event-official-row .event-official-actions.single-action,
.event-my-events-root .event-official-row .event-official-actions.single-action {
  display: flex;
  grid-template-columns: none;
  justify-content: center;
}

.event-hub-root .event-official-grid .event-official-row .event-official-actions.single-action > .event-btn,
.event-hub-root .event-official-row .event-official-actions.single-action > .event-btn,
.event-my-events-root .event-official-row .event-official-actions.single-action > .event-btn {
  width: min(100%, 320px);
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-actions.single-action {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: center;
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-actions.single-action > .event-btn {
  width: min(100%, 320px) !important;
  flex: 0 1 320px;
}

/* Official activities use one contained card per viewport. The legacy grid
 * rules remain available for other lists, but must not make this carousel
 * render every activity at once. */
.event-hub-root .event-official-carousel-shell {
  width: 100%;
  min-width: 0;
}

.event-hub-root .event-official-carousel,
.event-hub-root[data-surface="desktop"] .event-official-grid.event-official-list.event-official-carousel,
.event-hub-root[data-surface="mobile"] .event-official-grid.event-official-list.event-official-carousel,
.event-my-events-root .event-official-carousel,
.event-my-events-root .event-my-official-section .event-official-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.event-hub-root .event-official-carousel::-webkit-scrollbar,
.event-my-events-root .event-official-carousel::-webkit-scrollbar,
.event-my-events-root .event-my-official-section .event-official-grid::-webkit-scrollbar {
  display: none;
}

.event-hub-root .event-official-carousel > .event-official-row,
.event-my-events-root .event-official-carousel > .event-official-row,
.event-my-events-root .event-my-official-section .event-official-grid > .event-official-row {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 0;
  height: auto !important;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.event-my-events-root .event-my-official-section .event-official-carousel > .event-official-row {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px !important;
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-row-status {
  display: flex !important;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-row-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-row-main .event-official-progress {
  margin-top: auto;
}

.event-my-events-root .event-my-official-section .event-official-carousel .event-official-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.event-hub-root .event-official-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.event-hub-root .event-official-carousel-footer .event-carousel-controls,
.event-my-events-root .event-my-official-section .event-carousel-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.event-hub-root .event-official-carousel-footer .event-carousel-arrow,
.event-my-events-root .event-my-official-section .event-carousel-arrow {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--event-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--event-teal);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.event-hub-root .event-official-carousel-footer .event-carousel-arrow:hover:not(:disabled),
.event-my-events-root .event-my-official-section .event-carousel-arrow:hover:not(:disabled) {
  background: var(--event-teal-soft);
}

.event-hub-root .event-official-carousel-footer .event-carousel-arrow:disabled,
.event-my-events-root .event-my-official-section .event-carousel-arrow:disabled {
  cursor: default;
  opacity: .38;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dots,
.event-my-events-root .event-my-official-section .event-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dot,
.event-my-events-root .event-my-official-section .event-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--event-line);
  cursor: pointer;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dot.active,
.event-my-events-root .event-my-official-section .event-carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--event-teal);
}

.event-hub-root .event-official-carousel-footer .event-scroll-hint {
  margin: 0;
  color: var(--event-muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .event-hub-root .event-official-carousel-footer .event-scroll-hint {
    display: none;
  }

  .event-my-events-root .event-my-official-section .event-official-carousel > .event-official-row {
    padding: 14px !important;
  }
}

/* The four My Events areas are organizers, not cards themselves. Remove the
 * outer frame so the section title leads directly into its activity card. */
.event-my-events-root .event-my-sections-grid > .event-my-section {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.event-my-events-root .event-my-sections-grid > .event-my-section .event-section-heading {
  margin-bottom: 14px;
}

/* Keep the carousel rail centered inside the full card width. Both arrows
 * stay actionable because the carousel wraps from the first item to the last
 * and from the last item back to the first. */
.event-hub-root .event-official-carousel-footer,
.event-my-events-root .event-carousel-footer {
  width: 100% !important;
  align-self: stretch !important;
  display: grid !important;
  justify-items: center !important;
  justify-content: center !important;
  text-align: center;
}

.event-hub-root .event-official-carousel-footer .event-carousel-controls,
.event-my-events-root .event-carousel-footer .event-carousel-controls {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center !important;
  justify-self: center !important;
  width: max-content;
  margin-inline: auto;
}

/* Keep carousel navigation in a stable rail below the card. The pagination
 * buttons use large hit areas on wide surfaces, but the rail must still fit
 * inside the card when several activities are available. */
.event-hub-root .event-official-carousel-footer .event-carousel-controls,
.event-my-events-root .event-my-official-section .event-carousel-controls {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  width: min(100%, 420px) !important;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dots,
.event-my-events-root .event-my-official-section .event-carousel-dots {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 760px) {
  .event-hub-root .event-official-carousel-footer .event-carousel-controls,
  .event-my-events-root .event-my-official-section .event-carousel-controls {
    width: min(100%, 360px) !important;
    gap: 8px;
  }

  .event-hub-root .event-official-carousel-footer .event-carousel-dot,
  .event-my-events-root .event-my-official-section .event-carousel-dot,
  .event-hub-root .event-official-carousel-footer .event-carousel-dot.active,
  .event-my-events-root .event-my-official-section .event-carousel-dot.active {
    width: 24px !important;
    min-width: 24px;
    height: 44px;
    min-height: 44px;
  }
}

.event-hub-root .event-official-carousel-footer .event-carousel-arrow,
.event-my-events-root .event-carousel-footer .event-carousel-arrow {
  opacity: 1;
  cursor: pointer;
}

/* Keep the established compact visual language while making the controls
 * reliable on touch screens and easier to use with a mouse or keyboard. */
.event-hub-root .event-calibration-trigger,
.event-hub-root .event-quick-examples button,
.event-hub-root .event-quick-options button {
  min-height: 44px;
}

.event-hub-root[data-surface="mobile"] .event-calibration-trigger,
.event-hub-root[data-surface="mobile"] .event-quick-examples button,
.event-hub-root[data-surface="mobile"] .event-quick-options button {
  min-height: 44px !important;
}

.event-hub-root .event-keep-intent {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--event-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.event-hub-root .event-keep-intent:hover,
.event-hub-root .event-keep-intent:focus-visible {
  color: var(--event-ink);
  text-decoration: underline;
}

.event-hub-root .event-keep-intent-note {
  display: block;
  margin-top: 4px;
  color: var(--event-muted);
  font-size: 11px;
  line-height: 1.5;
}

.event-hub-root .event-official-carousel-footer .event-carousel-arrow,
.event-my-events-root .event-carousel-footer .event-carousel-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dot,
.event-my-events-root .event-carousel-footer .event-carousel-dot,
.event-hub-root .event-official-carousel-footer .event-carousel-dot.active,
.event-my-events-root .event-carousel-footer .event-carousel-dot.active {
  display: inline-grid;
  width: 44px !important;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  place-items: center;
}

.event-hub-root .event-official-carousel-footer .event-carousel-dot::before,
.event-my-events-root .event-carousel-footer .event-carousel-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--event-line);
}

.event-hub-root .event-official-carousel-footer .event-carousel-dot.active::before,
.event-my-events-root .event-carousel-footer .event-carousel-dot.active::before {
  width: 24px;
  height: 9px;
  border-radius: 999px;
  background: var(--event-teal);
}

/* A desktop URL can still be opened in a narrow browser. Collapse its
 * two-column workspace at the same breakpoint as the mobile surface so the
 * input and actions never shrink into vertical text. */
@media (max-width: 820px) {
  .event-hub-root[data-surface="desktop"] {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 22px 14px calc(124px + env(safe-area-inset-bottom));
  }

  .event-hub-root[data-surface="desktop"] .event-hub-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0 18px;
    border: 0;
    text-align: left;
  }

  .event-hub-root[data-surface="desktop"] .event-hub-brand {
    width: 100%;
    text-align: left;
  }

  .event-hub-root[data-surface="desktop"] .event-hub-hero h1 {
    max-width: none;
    font-size: 30px;
    line-height: 1.12;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-composer-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 0;
    padding: 15px 14px 14px;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-row: auto;
    gap: 10px;
    min-width: 0;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-heading h2 {
    max-width: none;
    font-size: 21px;
    line-height: 1.3;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-description {
    max-width: none;
    font-size: 11.5px;
    line-height: 1.5;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-input {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-input textarea {
    min-height: 80px;
    max-height: 120px;
    resize: none;
    font-size: 16px;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-input .event-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-examples button {
    min-width: 0;
    min-height: 42px;
    padding: 7px 8px;
    white-space: normal;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-quick-result,
  .event-hub-root[data-surface="desktop"] .event-primary-workspace .event-composer-trust {
    grid-column: 1;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-hub-signal {
    grid-column: 1;
    margin-top: 12px;
  }

  .event-hub-root[data-surface="desktop"] .event-quick-state.parsed .event-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .event-hub-root[data-surface="desktop"] .event-quick-state.parsed .event-btn {
    width: 100%;
    min-height: 44px;
  }

  .event-hub-root[data-surface="desktop"] .event-primary-workspace > .event-recommend-section {
    width: 100%;
    min-width: 0;
    padding: 18px 14px;
  }
}

/* Final narrow-screen override: keep the fixed rail inside the card after
 * the shared 44px touch-target rules are applied earlier in this stylesheet. */
@media (max-width: 760px) {
  html body .event-hub-root .event-official-carousel-footer .event-carousel-dot,
  html body .event-hub-root .event-official-carousel-footer .event-carousel-dot.active,
  html body .event-my-events-root .event-my-official-section .event-carousel-dot,
  html body .event-my-events-root .event-my-official-section .event-carousel-dot.active {
    width: 24px !important;
    min-width: 24px !important;
    height: 44px;
    min-height: 44px;
  }
}

/* The personal encounter carousel uses a position label instead of dots.
 * Give it the same contained navigation treatment as official activities so
 * it never falls back to browser-default buttons or escapes the card. */
.event-v23-section .event-v23-carousel-footer {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-controls {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(48px, auto) 44px;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  gap: 12px;
  margin-inline: auto;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-arrow {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(62, 149, 149, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--event-teal);
  font: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .94);
}

.event-v23-section .event-v23-carousel-footer .event-carousel-arrow:focus-visible {
  outline: 3px solid rgba(232, 117, 34, .24);
  outline-offset: 2px;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-arrow:disabled {
  cursor: default;
  opacity: .3;
  transform: none;
}

.event-v23-section .event-v23-carousel-position {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  min-width: 48px;
  height: 44px;
  color: var(--event-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.event-v23-section .event-v23-carousel-footer .event-scroll-hint {
  margin: 0;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .event-v23-section .event-v23-carousel-footer .event-carousel-controls {
    width: min(100%, 220px);
    gap: 8px;
  }
}

/* Match the official activity carousel: arrows, compact pagination dots and
 * the same hint text share one responsive navigation format. */
.event-v23-section .event-v23-carousel-footer .event-carousel-controls {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  width: min(100%, 420px);
  max-width: 100%;
  overflow: hidden;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-dots {
  display: inline-flex;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-dot {
  display: inline-grid;
  flex: 0 0 44px;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

.event-v23-section .event-v23-carousel-footer .event-carousel-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--event-line);
}

.event-v23-section .event-v23-carousel-footer .event-carousel-dot.active::before {
  width: 24px;
  border-radius: 999px;
  background: var(--event-teal);
}

@media (max-width: 760px) {
  .event-v23-section .event-v23-carousel-footer .event-carousel-controls {
    width: min(100%, 360px);
  }

  .event-v23-section .event-v23-carousel-footer .event-carousel-dot,
  .event-v23-section .event-v23-carousel-footer .event-carousel-dot.active {
    flex-basis: 24px;
    width: 24px;
    min-width: 24px;
  }
}

/* Keep every carousel on one fixed navigation rail. The rail width must not
 * be derived from the number of pagination dots, otherwise the arrows move
 * as activities are added or removed. */
.event-hub-root .event-carousel-footer,
.event-my-events-root .event-carousel-footer,
.event-v23-section .event-v23-carousel-footer {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  gap: 8px !important;
  margin-top: 12px !important;
  justify-content: center !important;
  grid-template-columns: min(100%, 420px) !important;
}

.event-hub-root .event-carousel-footer .event-carousel-controls,
.event-my-events-root .event-carousel-footer .event-carousel-controls,
.event-v23-section .event-v23-carousel-footer .event-carousel-controls {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none;
  height: 48px !important;
  min-height: 48px !important;
  gap: 12px !important;
  align-items: center;
  justify-content: center;
}

.event-hub-root .event-carousel-footer .event-carousel-arrow,
.event-my-events-root .event-carousel-footer .event-carousel-arrow,
.event-v23-section .event-v23-carousel-footer .event-carousel-arrow {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

.event-hub-root .event-carousel-footer .event-carousel-dots,
.event-my-events-root .event-carousel-footer .event-carousel-dots,
.event-v23-section .event-v23-carousel-footer .event-carousel-dots {
  display: inline-flex !important;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  overflow: hidden;
}

.event-hub-root .event-carousel-footer .event-carousel-dot,
.event-my-events-root .event-carousel-footer .event-carousel-dot,
.event-v23-section .event-v23-carousel-footer .event-carousel-dot {
  display: inline-grid !important;
  flex: 0 0 44px;
  box-sizing: border-box;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  place-items: center;
}

.event-hub-root .event-carousel-footer .event-carousel-dot::before,
.event-my-events-root .event-carousel-footer .event-carousel-dot::before,
.event-v23-section .event-v23-carousel-footer .event-carousel-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--event-line);
}

.event-hub-root .event-carousel-footer .event-carousel-dot.active::before,
.event-my-events-root .event-carousel-footer .event-carousel-dot.active::before,
.event-v23-section .event-v23-carousel-footer .event-carousel-dot.active::before {
  width: 24px;
  height: 9px;
  border-radius: 999px;
  background: var(--event-teal);
}

.event-hub-root .event-carousel-footer .event-scroll-hint,
.event-my-events-root .event-carousel-footer .event-scroll-hint,
.event-v23-section .event-v23-carousel-footer .event-scroll-hint {
  display: block !important;
  margin: 0;
  color: var(--event-teal) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  text-align: center;
}

@media (max-width: 760px) {
  .event-hub-root .event-carousel-footer,
  .event-my-events-root .event-carousel-footer,
  .event-v23-section .event-v23-carousel-footer {
    grid-template-columns: min(100%, 283px) !important;
  }

  .event-hub-root .event-carousel-footer .event-carousel-controls,
  .event-my-events-root .event-carousel-footer .event-carousel-controls,
  .event-v23-section .event-v23-carousel-footer .event-carousel-controls {
    gap: 8px !important;
  }

  .event-hub-root .event-carousel-footer .event-carousel-dot,
  .event-my-events-root .event-carousel-footer .event-carousel-dot,
  .event-v23-section .event-v23-carousel-footer .event-carousel-dot,
  .event-hub-root .event-carousel-footer .event-carousel-dot.active,
  .event-my-events-root .event-carousel-footer .event-carousel-dot.active,
  .event-v23-section .event-v23-carousel-footer .event-carousel-dot.active {
    flex-basis: 24px;
    width: 24px !important;
    min-width: 24px !important;
  }
}

/* Profile topics use the same calm, scan-friendly rows as the reference card. */
#profilePageView .profile-encounter-topics,
#profileView .profile-encounter-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
}

#profilePageView .profile-topic-group,
#profileView .profile-topic-group {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(80, 130, 130, 0.14);
}

#profilePageView .profile-topic-group-label,
#profileView .profile-topic-group-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#profilePageView .profile-topic-group-icon,
#profileView .profile-topic-group-icon {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef5e9;
  color: #50846a;
  font-family: "Apple Color Emoji", "Segoe UI Symbol", sans-serif;
  font-size: 20px;
  line-height: 1;
  place-items: center;
}

#profilePageView .profile-topic-group--likes .profile-topic-group-icon,
#profileView .profile-topic-group--likes .profile-topic-group-icon {
  background: #fff0ec;
  color: #df765f;
  font-family: Georgia, serif;
  font-size: 24px;
}

#profilePageView .profile-topic-group--curious-about .profile-topic-group-icon,
#profileView .profile-topic-group--curious-about .profile-topic-group-icon {
  background: #fff6de;
  color: #c48738;
}

#profilePageView .profile-topic-group--prefers-format .profile-topic-group-icon,
#profileView .profile-topic-group--prefers-format .profile-topic-group-icon {
  background: #edf3fb;
  color: #557698;
}

#profilePageView .profile-topic-group h4,
#profileView .profile-topic-group h4 {
  margin: 0;
  color: #315c58;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

#profilePageView .profile-topic-group--likes h4,
#profileView .profile-topic-group--likes h4 {
  color: #c66e5b;
}

#profilePageView .profile-topic-group--curious-about h4,
#profileView .profile-topic-group--curious-about h4 {
  color: #b76b2c;
}

#profilePageView .profile-topic-group--prefers-format h4,
#profileView .profile-topic-group--prefers-format h4 {
  color: #557698;
}

#profilePageView .profile-topic-group-list,
#profileView .profile-topic-group-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#profilePageView .profile-encounter-topic,
#profileView .profile-encounter-topic {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(65, 145, 143, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 12px rgba(68, 108, 101, 0.04);
  color: #2c3d34;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#profilePageView .profile-encounter-topic[data-relation-type="CURIOUS_ABOUT"],
#profileView .profile-encounter-topic[data-relation-type="CURIOUS_ABOUT"] {
  border-color: rgba(225, 143, 58, 0.22);
  background: #fff8ed;
}

#profilePageView .profile-encounter-topic[data-relation-type="PREFERS_FORMAT"],
#profileView .profile-encounter-topic[data-relation-type="PREFERS_FORMAT"] {
  border-color: rgba(101, 133, 170, 0.22);
  background: #f3f7fb;
}

#profilePageView .profile-encounter-auto-update,
#profileView .profile-encounter-auto-update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 2px;
  color: #78857c;
  font-size: 12px;
  line-height: 1.45;
}

#profilePageView .profile-encounter-update-action,
#profileView .profile-encounter-update-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--event-teal, #3e9595);
  border-radius: 999px;
  background: transparent;
  color: var(--event-teal, #3e9595);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#profilePageView .profile-encounter-update-action:hover,
#profileView .profile-encounter-update-action:hover {
  background: rgba(62, 149, 149, 0.08);
}

@media (max-width: 600px) {
  #profilePageView .profile-topic-group,
  #profileView .profile-topic-group {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 10px 0;
  }

  #profilePageView .profile-topic-group-label,
  #profileView .profile-topic-group-label {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  #profilePageView .profile-topic-group-icon,
  #profileView .profile-topic-group-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  #profilePageView .profile-topic-group--likes .profile-topic-group-icon,
  #profileView .profile-topic-group--likes .profile-topic-group-icon {
    font-size: 18px;
  }

  #profilePageView .profile-topic-group h4,
  #profileView .profile-topic-group h4 {
    font-size: 12px;
    white-space: normal;
  }

  #profilePageView .profile-topic-group-list,
  #profileView .profile-topic-group-list {
    gap: 7px;
  }

  #profilePageView .profile-encounter-topic,
  #profileView .profile-encounter-topic {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 12px;
  }

  #profilePageView .profile-encounter-auto-update,
  #profileView .profile-encounter-auto-update {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 11px;
  }

  #profilePageView .profile-encounter-update-action,
  #profileView .profile-encounter-update-action {
    width: 100%;
  }
}

/* Activity preferences stay compact while keeping the native checkbox semantics. */
.event-v23-setting-options {
  display: grid;
  gap: 9px;
  align-items: stretch;
}

.event-v23-activity-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.event-v23-activity-heading strong {
  color: var(--event-ink);
  font-size: 14px;
  font-weight: 850;
}

.event-v23-activity-heading small {
  color: var(--event-muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.event-v23-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.event-v23-activity-list label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid rgba(80, 130, 130, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--event-ink);
  font-size: 13px;
  font-weight: 750;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.event-v23-activity-list label:has(input:checked) {
  border-color: rgba(62, 149, 149, 0.42);
  background: #eef8f5;
  box-shadow: inset 0 0 0 1px rgba(62, 149, 149, 0.08);
  color: #2d7472;
}

.event-v23-activity-list label:has(input:focus-visible) {
  outline: 3px solid rgba(87, 183, 183, 0.18);
  outline-offset: 1px;
}

.event-v23-activity-list input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  min-width: 17px;
  max-width: 17px;
  padding: 0;
  box-sizing: border-box;
  border: 1.5px solid #77827b;
  border-radius: 3px;
  background: #fff;
  color: #fff;
  cursor: pointer;
}

.event-v23-activity-list input::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 140ms ease;
}

.event-v23-activity-list input:checked {
  border-color: var(--event-teal);
  background: var(--event-teal);
}

.event-v23-activity-list input:checked::before {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.event-v23-activity-list input:focus,
.event-v23-activity-list input:focus-visible {
  outline: none;
  box-shadow: none;
}

.event-v23-activity-list label:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 4px);
}

@media (max-width: 560px) {
  .event-v23-activity-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .event-v23-activity-heading small {
    white-space: normal;
  }

  .event-v23-activity-list {
    gap: 7px;
  }

  .event-v23-activity-list label {
    min-height: 39px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* AI topic suggestions use a lighter editor row than the surrounding form fields. */
.event-v23-suggestion-group {
  gap: 7px;
}

.event-v23-suggestion-group h3 {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  padding-left: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.event-v23-suggestion-row {
  grid-template-columns: 18px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.event-v23-suggestion-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.event-v23-suggestion-row input[type="text"],
.event-v23-suggestion-row select {
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 252, 250, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.event-v23-suggestion-row input[type="text"]:focus,
.event-v23-suggestion-row select:focus {
  outline: 3px solid rgba(87, 183, 183, 0.16);
  border-color: var(--event-teal);
}

.event-v23-suggestion-remove {
  display: inline-grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  place-items: center;
}

@media (max-width: 560px) {
  .event-v23-suggestion-row {
    grid-template-columns: 18px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .event-v23-suggestion-row input[type="text"],
  .event-v23-suggestion-row select {
    height: 38px;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .event-v23-suggestion-remove {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
}

/* Shared v2.3 type scale: titles lead, facts stay readable, and supporting
 * copy does not compete with the next action. Keep this hierarchy stable on
 * the encounter, activity, message, profile, and modal surfaces. */
:root {
  --event-type-display-size: 32px;
  --event-type-display-line: 1.2;
  --event-type-display-weight: 700;
  --event-type-section-size: 20px;
  --event-type-section-line: 1.3;
  --event-type-section-weight: 700;
  --event-type-card-size: 20px;
  --event-type-card-line: 1.35;
  --event-type-card-weight: 700;
  --event-type-body-size: 14px;
  --event-type-body-line: 1.55;
  --event-type-body-weight: 400;
  --event-type-label-size: 12px;
  --event-type-label-line: 1.4;
  --event-type-label-weight: 600;
  --event-type-meta-size: 12px;
  --event-type-meta-line: 1.45;
  --event-type-meta-weight: 500;
  --event-type-action-size: 14px;
  --event-type-action-weight: 600;
}

.event-hub-root,
.event-message-root,
.event-my-events-root {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-hub-root .event-hub-kicker,
.event-hub-root .event-section-kicker,
.event-message-root .event-hub-kicker,
.event-message-root .event-section-kicker,
.event-my-events-root .event-hub-kicker,
.event-my-events-root .event-section-kicker {
  font-size: var(--event-type-label-size);
  font-weight: var(--event-type-label-weight);
  line-height: var(--event-type-label-line);
  letter-spacing: .04em;
}

.event-hub-root .event-hub-hero h1,
.event-message-root .event-message-head h1,
.event-my-events-root .event-message-head h1 {
  font-size: var(--event-type-display-size);
  font-weight: var(--event-type-display-weight);
  line-height: var(--event-type-display-line);
}

.event-hub-root .event-hub-brand > p:last-child,
.event-message-root .event-message-head p,
.event-my-events-root .event-message-head > div > p:last-child {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-hub-root .event-hub-signal small,
.event-hub-root .event-hub-signal strong,
.event-hub-root .event-hub-signal p {
  font-weight: var(--event-type-body-weight);
}

.event-hub-root .event-hub-signal small {
  font-size: var(--event-type-label-size);
  font-weight: var(--event-type-label-weight);
}

.event-hub-root .event-hub-signal strong {
  font-size: 16px;
  font-weight: var(--event-type-card-weight);
}

.event-hub-root .event-hub-signal p {
  font-size: 13px;
  line-height: var(--event-type-body-line);
}

.event-hub-root .event-section-heading h2,
.event-my-events-root .event-section-heading h2,
.event-v23-section .event-section-heading h2,
.event-feedback-callout h2 {
  font-size: var(--event-type-section-size);
  font-weight: var(--event-type-section-weight);
  line-height: var(--event-type-section-line);
}

.event-hub-root .event-section-heading p,
.event-my-events-root .event-section-heading p,
.event-v23-section .event-section-heading p {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-hub-root .event-card-label,
.event-hub-root .event-status-chip,
.event-my-events-root .event-status-chip,
.event-message-root .event-message-count {
  font-size: var(--event-type-label-size);
  font-weight: var(--event-type-label-weight);
  line-height: var(--event-type-label-line);
}

.event-hub-root .event-card-title,
.event-my-events-root .event-card-title,
.event-my-events-root .event-my-card h3,
.event-hub-root .event-state-card > .event-state-copy > h3,
.event-hub-root .event-official-row-main h3 {
  font-size: var(--event-type-card-size);
  font-weight: var(--event-type-card-weight);
  line-height: var(--event-type-card-line);
}

.event-hub-root .event-card-summary,
.event-hub-root .event-state-card p,
.event-hub-root .event-official-row-main p,
.event-my-events-root .event-card-summary,
.event-my-events-root .event-state-card p,
.event-my-events-root .event-official-row-main p {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-hub-root .event-participant-note,
.event-hub-root .event-pool-copy,
.event-hub-root .event-official-progress,
.event-my-events-root .event-official-progress {
  font-size: var(--event-type-meta-size);
  font-weight: var(--event-type-meta-weight);
  line-height: var(--event-type-meta-line);
}

.event-hub-root .event-card-meta span,
.event-hub-root .event-fact-strip dt,
.event-hub-root .event-fact-strip dd,
.event-my-events-root .event-card-meta span,
.event-my-events-root .event-fact-strip dt,
.event-my-events-root .event-fact-strip dd,
.event-official-row-status time {
  font-size: var(--event-type-meta-size);
  line-height: var(--event-type-meta-line);
}

.event-hub-root .event-fact-strip dt,
.event-my-events-root .event-fact-strip dt {
  color: var(--event-muted);
  font-weight: var(--event-type-meta-weight);
}

.event-hub-root .event-fact-strip dd,
.event-my-events-root .event-fact-strip dd,
.event-official-row-status time {
  font-weight: var(--event-type-label-weight);
}

.event-hub-root .event-progress-steps span,
.event-my-events-root .event-progress-steps span {
  font-size: var(--event-type-meta-size);
  font-weight: var(--event-type-meta-weight);
  line-height: var(--event-type-meta-line);
}

.event-hub-root .event-btn,
.event-message-root .event-btn,
.event-my-events-root .event-btn,
.event-modal-backdrop .event-btn {
  font-size: var(--event-type-action-size);
  font-weight: var(--event-type-action-weight);
  line-height: 1.35;
}

.event-hub-root .event-empty strong,
.event-message-root .event-empty strong,
.event-my-events-root .event-empty strong {
  font-size: var(--event-type-card-size);
  font-weight: var(--event-type-card-weight);
  line-height: var(--event-type-card-line);
}

.event-hub-root .event-empty,
.event-message-root .event-empty,
.event-my-events-root .event-empty,
.event-hub-root .event-empty p,
.event-message-root .event-empty p,
.event-my-events-root .event-empty p {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-modal-backdrop .event-modal-head h2,
.event-modal-backdrop .event-detail-hero h2 {
  font-size: 24px;
  font-weight: var(--event-type-display-weight);
  line-height: 1.25;
}

.event-modal-backdrop .event-modal-head p,
.event-modal-backdrop .event-detail-hero > p:last-child,
.event-modal-backdrop .event-share-note p {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-modal-backdrop .event-field > span,
.event-modal-backdrop .event-field > small,
.event-modal-backdrop .event-option span,
.event-modal-backdrop .event-option small {
  font-weight: var(--event-type-label-weight);
}

.event-modal-backdrop .event-field > span {
  font-size: 13px;
  line-height: var(--event-type-label-line);
}

.event-modal-backdrop .event-field > small,
.event-modal-backdrop .event-option small {
  font-size: var(--event-type-meta-size);
  line-height: var(--event-type-meta-line);
}

.event-modal-backdrop .event-field input,
.event-modal-backdrop .event-field textarea,
.event-modal-backdrop .event-field select {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

.event-modal-backdrop .event-option span,
.event-modal-backdrop .event-choice {
  font-size: 13px;
  line-height: 1.4;
}

#profilePageView,
#profileView {
  color: var(--event-ink);
}

#profilePageView .match-heading,
#profileView .match-heading {
  font-size: var(--event-type-display-size);
  font-weight: var(--event-type-display-weight);
  line-height: var(--event-type-display-line);
}

#profilePageView .page-subtitle,
#profileView .page-subtitle {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-body-weight);
  line-height: var(--event-type-body-line);
}

#profilePageView .profile-identity-heading .profile-nickname,
#profileView .profile-identity-heading .profile-nickname {
  font-size: 22px;
  font-weight: var(--event-type-display-weight);
  line-height: 1.25;
}

#profilePageView .profile-identity-heading .profile-identity-meta,
#profileView .profile-identity-heading .profile-identity-meta,
#profilePageView .profile-encounter-preview,
#profileView .profile-encounter-preview,
#profilePageView .profile-invite-toggle small,
#profileView .profile-invite-toggle small {
  font-size: var(--event-type-meta-size);
  font-weight: var(--event-type-meta-weight);
  line-height: var(--event-type-meta-line);
}

#profilePageView .profile-encounter-subhead > strong,
#profileView .profile-encounter-subhead > strong {
  font-size: 17px;
  font-weight: var(--event-type-section-weight);
  line-height: var(--event-type-section-line);
}

#profilePageView .profile-topic-group h4,
#profileView .profile-topic-group h4 {
  font-size: 13px;
  font-weight: var(--event-type-label-weight);
  line-height: var(--event-type-label-line);
}

#profilePageView .profile-encounter-topic,
#profileView .profile-encounter-topic {
  font-size: 13px;
  font-weight: var(--event-type-meta-weight);
  line-height: var(--event-type-meta-line);
}

#profilePageView .profile-invite-toggle strong,
#profileView .profile-invite-toggle strong {
  font-size: var(--event-type-body-size);
  font-weight: var(--event-type-label-weight);
  line-height: var(--event-type-body-line);
}

#profilePageView .profile-encounter-update-action,
#profileView .profile-encounter-update-action {
  font-size: var(--event-type-action-size);
  font-weight: var(--event-type-action-weight);
  line-height: 1.35;
}

@media (max-width: 760px) {
  :root {
    --event-type-display-size: 26px;
    --event-type-section-size: 18px;
    --event-type-card-size: 18px;
    --event-type-body-size: 13px;
    --event-type-label-size: 11px;
    --event-type-meta-size: 11px;
    --event-type-action-size: 14px;
  }

  .event-hub-root .event-hub-hero h1,
  .event-message-root .event-message-head h1,
  .event-my-events-root .event-message-head h1,
  #profilePageView .match-heading,
  #profileView .match-heading {
    line-height: 1.25;
  }

  .event-modal-backdrop .event-modal-head h2,
  .event-modal-backdrop .event-detail-hero h2 {
    font-size: 21px;
  }

  #profilePageView .profile-identity-heading .profile-nickname,
  #profileView .profile-identity-heading .profile-nickname {
    font-size: 20px;
  }

  #profilePageView .profile-encounter-subhead > strong,
  #profileView .profile-encounter-subhead > strong {
    font-size: 16px;
  }

  #profilePageView .profile-encounter-topic,
  #profileView .profile-encounter-topic {
    font-size: 12px;
  }
}

/* Surface-specific legacy rules are intentionally overridden here so the
 * shared type scale remains the source of truth on both breakpoints. */
.event-hub-root[data-surface="mobile"] .event-hub-hero h1,
.event-hub-root[data-surface="desktop"] .event-hub-hero h1,
.event-message-root[data-surface="mobile"] .event-message-head h1,
.event-message-root[data-surface="desktop"] .event-message-head h1,
.event-my-events-root[data-surface="mobile"] .event-message-head h1,
.event-my-events-root[data-surface="desktop"] .event-message-head h1 {
  font-size: var(--event-type-display-size) !important;
  font-weight: var(--event-type-display-weight) !important;
  line-height: var(--event-type-display-line) !important;
}

.event-hub-root[data-surface="mobile"] .event-section-heading h2,
.event-hub-root[data-surface="desktop"] .event-section-heading h2,
.event-my-events-root[data-surface="mobile"] .event-section-heading h2,
.event-my-events-root[data-surface="desktop"] .event-section-heading h2,
.event-v23-section .event-section-heading h2 {
  font-size: var(--event-type-section-size) !important;
  font-weight: var(--event-type-section-weight) !important;
  line-height: var(--event-type-section-line) !important;
}

.event-hub-root[data-surface="mobile"] .event-section-heading p,
.event-hub-root[data-surface="desktop"] .event-section-heading p,
.event-my-events-root[data-surface="mobile"] .event-section-heading p,
.event-my-events-root[data-surface="desktop"] .event-section-heading p,
.event-v23-section .event-section-heading p {
  font-size: var(--event-type-body-size) !important;
  font-weight: var(--event-type-body-weight) !important;
  line-height: var(--event-type-body-line) !important;
}

.event-hub-root[data-surface="mobile"] .event-card-title,
.event-hub-root[data-surface="desktop"] .event-card-title,
.event-my-events-root[data-surface="mobile"] .event-card-title,
.event-my-events-root[data-surface="desktop"] .event-card-title,
.event-hub-root[data-surface="mobile"] .event-state-card > .event-state-copy > h3,
.event-hub-root[data-surface="desktop"] .event-state-card > .event-state-copy > h3,
.event-official-row-main h3 {
  font-size: var(--event-type-card-size) !important;
  font-weight: var(--event-type-card-weight) !important;
  line-height: var(--event-type-card-line) !important;
}

.event-hub-root[data-surface="mobile"] .event-card-summary,
.event-hub-root[data-surface="desktop"] .event-card-summary,
.event-my-events-root[data-surface="mobile"] .event-card-summary,
.event-my-events-root[data-surface="desktop"] .event-card-summary,
.event-official-row-main p {
  font-size: var(--event-type-body-size) !important;
  font-weight: var(--event-type-body-weight) !important;
  line-height: var(--event-type-body-line) !important;
}

.event-hub-root[data-surface="mobile"] .event-btn,
.event-hub-root[data-surface="desktop"] .event-btn,
.event-message-root[data-surface="mobile"] .event-btn,
.event-message-root[data-surface="desktop"] .event-btn,
.event-my-events-root[data-surface="mobile"] .event-btn,
.event-my-events-root[data-surface="desktop"] .event-btn,
.event-modal-backdrop .event-btn {
  font-size: var(--event-type-action-size) !important;
  font-weight: var(--event-type-action-weight) !important;
  line-height: 1.35 !important;
}

#profilePageView .match-heading,
#profileView .match-heading,
#profilePageView .profile-identity-heading .profile-nickname,
#profileView .profile-identity-heading .profile-nickname,
#profilePageView .profile-encounter-subhead > strong,
#profileView .profile-encounter-subhead > strong {
  font-weight: var(--event-type-display-weight) !important;
}

#profilePageView .profile-identity-heading .profile-identity-meta,
#profileView .profile-identity-heading .profile-identity-meta,
#profilePageView .profile-encounter-preview,
#profileView .profile-encounter-preview,
#profilePageView .profile-invite-toggle small,
#profileView .profile-invite-toggle small {
  font-weight: var(--event-type-meta-weight) !important;
}

/* Details are a focused read surface; keep long forms as sheets, but center
 * every activity detail opened from a "查看详情" action. */
.event-modal-backdrop[data-surface="mobile"].event-detail-open {
  align-items: center;
  padding: 14px;
}

.event-modal-backdrop[data-surface="mobile"].event-detail-open .event-modal,
.event-modal-backdrop[data-surface="mobile"] .event-modal.event-detail-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(730px, calc(100dvh - 28px));
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(42, 58, 46, .22);
}

/* A lone action uses a single, centered track across every card and detail
 * surface. Two or more actions keep their existing comparison layout. */
.event-actions:has(> .event-btn:only-child),
.event-detail-actions:has(> .event-btn:only-child) {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: center;
  align-items: center;
}

.event-actions:has(> .event-btn:only-child) > .event-btn,
.event-detail-actions:has(> .event-btn:only-child) > .event-btn {
  width: min(100%, 320px) !important;
  flex: 0 1 320px;
  justify-self: center;
}

/* The intent form already lives in a modal surface. Keep its preference
 * content unframed so adaptive controls do not become cards inside a card. */
.event-modal-backdrop .event-modal.event-intent-modal .event-preference-details {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-modal-backdrop .event-modal.event-intent-modal .event-form-actions {
  justify-content: center;
}

.event-modal-backdrop[data-surface="desktop"] .event-modal.event-intent-modal .event-form-actions .event-btn {
  flex: 0 1 200px;
  min-width: 0;
}

/* Keep native select semantics, but use one quiet chevron across encounter
 * settings and suggestion review. */
.event-v23-setting-grid select,
.event-v23-suggestion-row select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color-scheme: light;
  padding-right: 42px;
  background-color: rgba(255, 255, 255, .76);
  background-image: none;
}

.event-v23-setting-grid select:focus,
.event-v23-suggestion-row select:focus {
  background-color: #fff;
}

.event-v23-setting-grid > label,
.event-v23-suggestion-row.has-relation {
  position: relative;
}

.event-v23-setting-grid > label::after,
.event-v23-suggestion-row.has-relation::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--event-ink);
  border-bottom: 1.8px solid var(--event-ink);
  pointer-events: none;
  transition: border-color .18s ease, transform .18s ease;
}

.event-v23-setting-grid > label::after {
  right: 17px;
  bottom: 17px;
  transform: translateY(-65%) rotate(45deg);
}

.event-v23-suggestion-row.has-relation::after {
  top: 50%;
  right: 13px;
  transform: translateY(-65%) rotate(45deg);
}

.event-v23-setting-grid > label:focus-within::after,
.event-v23-suggestion-row.has-relation:focus-within::after {
  border-color: var(--event-teal);
  transform: translateY(-35%) rotate(225deg);
}

.event-v23-setting-grid select option,
.event-v23-suggestion-row select option {
  color: var(--event-ink);
  background: #fff;
}

.event-v23-setting-grid select option:checked,
.event-v23-suggestion-row select option:checked {
  color: var(--event-ink);
  background: #e8f5f1;
}

/* Keep the heartbeat CTA distinct from the encounter system's teal actions.
 * This rule intentionally comes last because the shared button theme is
 * refined in several compatibility layers above. */
.event-hub-root[data-surface] .event-renewal-guide .event-renewal-action {
  background: linear-gradient(135deg, #d87582, #a84b5b);
  box-shadow: 0 10px 24px -12px rgba(168, 75, 91, .58), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.event-hub-root[data-surface] .event-renewal-guide .event-renewal-action:hover {
  background: linear-gradient(135deg, #e0838e, #984252);
}

.event-hub-root[data-surface] .event-renewal-guide .event-renewal-action:focus-visible {
  outline: 2px solid #c45d6b;
  outline-offset: 3px;
}

/* Profile coupons stay a single information surface: rows are separated by
 * hairlines so the section does not become a stack of nested cards. */
.profile-coupons-panel {
  min-width: 0;
  margin-top: 20px;
  padding: 18px 0 2px;
  border-top: 1px solid rgba(65, 145, 143, .16);
  color: var(--event-ink, #294238);
}

.profile-coupons-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.profile-coupons-heading > div {
  display: grid !important;
  gap: 3px;
  min-width: 0;
}

.profile-coupons-heading h3 {
  margin: 0;
  color: var(--event-ink, #294238);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

.profile-coupons-count,
.profile-coupon-history summary > span:last-child {
  color: var(--event-teal, #3e9595);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-coupons-count {
  align-self: end;
  padding-bottom: 1px;
}

.profile-coupon-list {
  display: grid;
}

.profile-coupon-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(65, 145, 143, .13);
}

.profile-coupon-main {
  display: block !important;
  min-width: 0;
}

.profile-coupon-title {
  display: block !important;
  min-width: 0;
}

.profile-coupon-title strong {
  display: block;
  margin-top: 3px;
  color: var(--event-ink, #294238);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-coupon-source {
  color: var(--event-teal, #3e9595);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-coupon-main p {
  margin: 4px 0 0;
  color: var(--event-muted, #718078);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-coupon-discount {
  color: var(--event-orange, #c56e2b);
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.profile-coupon-action,
.profile-coupon-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-coupon-action {
  border: 1px solid rgba(62, 149, 149, .54);
  background: #fff;
  color: var(--event-teal, #3e9595);
  cursor: pointer;
}

.profile-coupon-action:hover,
.profile-coupon-action:focus-visible {
  background: #eaf7f4;
}

.profile-coupon-status {
  color: var(--event-muted, #718078);
  background: rgba(116, 132, 123, .09);
}

.profile-coupon-status--pending {
  color: #b26b2c;
  background: #fff4e5;
}

.profile-coupon-status--used,
.profile-coupon-status--refunded,
.profile-coupon-status--expired,
.profile-coupon-status--revoked {
  color: #7c8780;
}

.profile-coupon-history {
  margin-top: 8px;
}

.profile-coupon-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: var(--event-muted, #718078);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.profile-coupon-history summary::-webkit-details-marker {
  display: none;
}

.profile-coupon-history summary::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.profile-coupon-history[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.profile-coupon-empty {
  margin: 13px 0 4px;
  color: var(--event-muted, #718078);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .profile-coupons-panel {
    margin-top: 18px;
    padding-top: 16px;
  }

  .profile-coupons-heading h3 {
    font-size: 17px;
  }

  .profile-coupon-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    padding: 12px 0;
  }

  .profile-coupon-main {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .profile-coupon-discount {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-coupon-action,
  .profile-coupon-status {
    grid-column: 2;
    grid-row: 2;
  }

  .profile-coupon-discount {
    align-self: start;
    font-size: 15px;
  }

  .profile-coupon-action,
  .profile-coupon-status {
    align-self: end;
    justify-self: end;
    min-width: 64px;
    min-height: 32px;
    padding-inline: 9px;
  }
}
