  /* ── Event-specific CSS variables pulled from branding ── */

  /* ─────────────────────────────────────────────
     Hub Content Width / Dashboard Feel
  ───────────────────────────────────────────── */
  .ev-hub-shell,
  .ev-event-shell,
  .ev-page-shell,
  .ev-dashboard-shell {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
  }

  /* ─────────────────────────────────────────────
     Hero
  ───────────────────────────────────────────── */
  

  .ev-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at top right, rgba(255,255,255,0.72), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.42));
    pointer-events: none;
  }

  .ev-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
  }

  .ev-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    max-width: 720px;
  }

  .ev-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    min-width: 220px;
  }

  .ev-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: var(--tapn-radius-lg);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.64);
    border: 1px solid rgba(255,255,255,0.70);
    box-shadow: var(--tapn-shadow-card-hover);
  }

  .ev-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
  }

  .ev-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: var(--tapn-radius-pill);
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--ev-line);
    color: var(--ev-primary-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .ev-hero-title {
    margin: 0;
    color: var(--ev-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
    max-width: 14ch;
  }

  .ev-hero-desc {
    margin: 0.9rem 0 0;
    max-width: 56ch;
    color: var(--ev-muted);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 600;
  }

  .ev-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.45rem;
  }

  .ev-hero-btn-primary,
  .ev-hero-btn-secondary {
    min-height: 48px;
    padding: 0 1.45rem;
    border-radius: var(--tapn-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.18s var(--ev-transition), box-shadow 0.18s var(--ev-transition), background 0.18s var(--ev-transition);
  }

  .ev-hero-btn-primary {
    border: 1px solid var(--ev-primary);
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    box-shadow: var(--tapn-shadow-button-white);
  }

  .ev-hero-btn-primary:hover {
    background: var(--ev-primary-hover);
    transform: translateY(-1px);
  }

  .ev-hero-btn-secondary {
    border: 1px solid var(--ev-line);
    background: rgba(255,255,255,0.92);
    color: var(--ev-ink);
  }

  .ev-hero-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--ev-shadow-sm);
  }
  
  /* COPY BUTTON */
  
  .ev-copy-bar {
  display: flex;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--tapn-radius-pill);
  overflow: hidden;
  background: var(--tapn-surface-1);
  max-width: 380px;
  transition: border-color 0.15s;
}
.ev-copy-bar:focus-within {
  border-color: var(--ev-primary);
}
.ev-copy-bar-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--ev-muted);
  background: transparent;
  min-width: 0;
  cursor: text;
}
.ev-copy-bar-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--tapn-surface-1);
  border: none;
  border-left: 1px solid var(--ev-border);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ev-text);
  cursor: pointer;
  font-family: inherit;
  border-radius: 0 var(--tapn-radius-xxl) var(--tapn-radius-xxl) 0;
  transition: background 0.15s, color 0.15s;
}
.ev-copy-bar-btn:hover {
  background: var(--ev-primary);
  color: var(--tapn-on-primary);
  border-left-color: var(--ev-primary);
}
  
  .ev-copy-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: var(--tapn-radius-pill);
  border: 1px solid var(--ev-border);
  background: transparent;
  color: var(--ev-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ev-copy-link-chip:hover {
  border-color: var(--ev-primary);
  color: var(--ev-primary);
}

  .ev-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 300px;
    min-height: 48px;
    padding: 0.8rem 1.15rem;
    border-radius: var(--tapn-radius-pill);
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--ev-line);
    color: var(--ev-ink);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--tapn-shadow-card);
  }

  .ev-meta-pill.primary {
    background: var(--ev-primary);
    border-color: var(--ev-primary);
    color: var(--tapn-on-primary);
  }

  .ev-meta-pill.secondary {
    background: rgba(255,255,255,0.92);
  }
  .ev-debug-stamp {
  margin-top: 1rem;
  padding-top: 0.35rem;

  color: rgba(100, 116, 139, 0.72);

  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.4;

  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: .7;
  text-transform: lowercase;
}

  /* ─────────────────────────────────────────────
     Stats Row
  ───────────────────────────────────────────── */
  .ev-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .ev-stat-card {
    background: var(--tapn-surface-1);
    /* border removed: shadow carries separation (MASTER_DESIGN §Elevation) */
    border-radius: var(--ev-radius-lg);
    padding: 1.15rem 1.25rem;
    min-height: 112px;
    box-shadow: var(--tapn-shadow-card);
    transition: transform 0.18s var(--ev-transition), box-shadow 0.18s var(--ev-transition), border-color 0.18s var(--ev-transition);
  }

  .ev-stat-card:hover {
    transform: translateY(-1px);
    border-color: var(--ev-line-strong);
    box-shadow: var(--ev-shadow-sm);
  }

  .ev-stat-label {
    color: var(--ev-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }

  .ev-stat-value {
    color: var(--ev-ink);
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .ev-stat-sub {
    margin-top: 0.45rem;
    color: var(--ev-muted);
    font-size: 0.9rem;
    font-weight: 700;
  }

  /* ─────────────────────────────────────────────
     Widgets: every widget after stats gets its own row frame
  ───────────────────────────────────────────── */
  .ev-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .ev-widget {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    background: var(--tapn-surface-1);
    /* border removed: shadow carries separation (MASTER_DESIGN §Elevation) */
    border-radius: var(--ev-radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 0;
    box-shadow: var(--tapn-shadow-card);
    transition: transform 0.18s var(--ev-transition), box-shadow 0.18s var(--ev-transition), border-color 0.18s var(--ev-transition);
    position: relative;
    overflow: hidden;
  }

  .ev-widget-body {
    max-width: 100%;
  }

  .ev-widget:hover {
    border-color: var(--ev-line-strong);
    box-shadow: var(--ev-shadow-sm);
  }

  .ev-widget-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid rgba(15,23,42,0.06);
  }

  .ev-widget-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ev-ink);
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .ev-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 1rem;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-primary-light);
    color: var(--ev-primary-hover);
    font-size: 1.05rem;
    font-weight: 800;
  }

  /* ─────────────────────────────────────────────
     Schedule
  ───────────────────────────────────────────── */
  .ev-schedule-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding: 1.15rem 1.35rem;
    border-radius: var(--tapn-radius-lg);
    background: var(--tapn-surface-2);
    border: 1px solid rgba(15,23,42,.04);
  }

  .ev-schedule-date {
    color: var(--ev-ink);
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 8--;
    letter-spacing: -.02em;
  }

  .ev-schedule-btns {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .ev-schedule-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--tapn-radius-md);
    border: 1px solid var(--ev-line);
    background: var(--tapn-surface-1);
    color: var(--tapn-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 800;
    transition: transform 0.15s var(--ev-transition), box-shadow 0.15s var(--ev-transition);
  }

  .ev-schedule-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--ev-shadow-sm);
  }

  .ev-schedule-slide {
    display: none;
  }

  .ev-schedule-slide.active {
    display: block;
  }

  .ev-timeline {
    position: relative;
    display: grid;
    gap: 1.05rem;
    padding-left: 3.25rem;
  }

  .ev-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ev-primary), rgba(15,187,179,.10));
    opacity: 1;
  }

  .ev-timeline-item {
    position: relative;
    display: block;
    padding: 1.35rem 1.65rem;
    border-radius: var(--tapn-radius-lg);
    background: var(--tapn-surface-2);
    border: 1px solid transparent;
    box-shadow: none;
    transition: transform 0.16s var(--ev-transition), background 0.16s var(--ev-transition), border-color 0.16s var(--ev-transition), box-shadow 0.16s var(--ev-transition);
  }

  .ev-timeline-item::before {
    content: "";
    position: absolute;
    left: -3.6rem;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-primary);
    box-shadow: 0 0 0 5px var(--ev-primary-light);
  }

  .ev-timeline-item:hover,
  .ev-timeline-item.is-active {
    background: var(--tapn-surface-1);
    border-color: rgba(15,187,179,.28);
    box-shadow: var(--tapn-shadow-card-hover);
    transform: translateY(-1px);
  }

  .ev-item-time {
    display: block;
    margin-bottom: .35rem;
    color: var(--ev-primary);
    font-size: .98rem;
    line-height: 1.2;
    font-weight: 800;
  }

  .ev-item-title {
    display: block;
    color: var(--ev-ink);
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
  }

  .ev-item-loc {
    margin-top: 0.35rem;
    color: var(--ev-muted);
    font-size: 0.95rem;
    font-weight: 700;
  }

  /* ─────────────────────────────────────────────
     Speakers
  ───────────────────────────────────────────── */
  .ev-speaker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .ev-speaker-card {
    width: 220px;
    flex: 0 0 220px;
    background: var(--tapn-surface-1);
    /* border removed: shadow carries separation (MASTER_DESIGN §Elevation) */
    border-radius: var(--tapn-radius-xl);
    overflow: hidden;
    box-shadow: var(--tapn-shadow-card);
    transition: transform 0.18s var(--ev-transition), box-shadow 0.18s var(--ev-transition), border-color 0.18s var(--ev-transition);
  }

  .ev-speaker-card:hover {
    transform: translateY(-2px);
    border-color: var(--ev-line-strong);
    box-shadow: var(--ev-shadow-md);
  }

  .ev-speaker-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    background: var(--ev-soft);
  }

  .ev-speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ev-transition);
  }

  .ev-speaker-card:hover .ev-speaker-img {
    transform: scale(1.035);
  }

  .ev-speaker-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .ev-speaker-info {
    padding: 0.9rem;
  }

  .ev-speaker-name {
    margin: 0;
    color: var(--ev-ink);
    font-size: 0.95rem;
    line-height: 1.15;
    font-weight: 800;
  }

  .ev-speaker-role {
    margin-top: 0.35rem;
    color: var(--ev-primary-hover);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .ev-speaker-org {
    margin-top: 0.2rem;
    color: var(--ev-muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .ev-speaker-bio {
    margin-top: 0.55rem;
    color: var(--ev-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 600;
  }

  /* ─────────────────────────────────────────────
     Map / Location
  ───────────────────────────────────────────── */
  .ev-map-wrap {
    position: relative;
    min-height: 360px;
    border-radius: var(--ev-radius-xl);
    overflow: hidden;
    background: var(--ev-soft);
  }

  .ev-map-wrap iframe {
    width: 100%;
    height: 420px;
    display: block;
    border: 0;
  }

  .ev-map-overlay {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    max-width: min(420px, calc(100% - 2rem));
    padding: 1rem 1.1rem;
    border-radius: var(--tapn-radius-lg);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.70);
    box-shadow: var(--ev-shadow-md);
    backdrop-filter: blur(14px);
  }

  .ev-map-title {
    color: var(--ev-ink);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
  }

  .ev-map-addr {
    color: var(--ev-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
  }

  /* ─────────────────────────────────────────────
     Info / Text Widgets
  ───────────────────────────────────────────── */
  .ev-info-list {
    display: grid;
    gap: 0.85rem;
  }

  .ev-info-card {
    padding: 1rem;
    border-radius: var(--tapn-radius-xl);
    background: var(--ev-soft);
    box-shadow: var(--tapn-shadow-card); /* was 1px border: cards separate by shadow (MASTER_DESIGN §Elevation) */
    transition: background 0.16s var(--ev-transition), transform 0.16s var(--ev-transition);
  }

  .ev-info-card:hover {
    background: var(--tapn-surface-1);
    transform: translateY(-1px);
  }

  .ev-info-card h3 {
    margin: 0 0 0.4rem;
    color: var(--ev-ink);
    font-size: 0.95rem;
    font-weight: 800;
  }

  .ev-info-card p {
    margin: 0;
    color: var(--ev-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 600;
  }

  /* ─────────────────────────────────────────────
     Expandable Widgets
  ───────────────────────────────────────────── */
  .ev-expandable .ev-widget-body {
    position: relative;
    max-height: 520px;
    overflow: hidden;
    transition: max-height 0.35s var(--ev-transition);
  }

  .ev-expandable[data-type="schedule"] .ev-widget-body {
    max-height: 560px;
  }

  .ev-expandable[data-type="speakers"] .ev-widget-body {
    max-height: 560px;
  }

  .ev-expandable[data-type="info"] .ev-widget-body {
    max-height: 480px;
  }

  .ev-expandable.is-expanded .ev-widget-body {
    max-height: 3000px;
  }

  .ev-expand-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--tapn-surface-1) 75%);
  }

  .ev-expandable.is-expanded .ev-expand-fade {
    opacity: 0;
  }

  .ev-expand-row {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(15,23,42,0.06);
  }

  .ev-expand-btn {
    min-height: 42px;
    padding: 0 1rem;
    border-radius: var(--tapn-radius-pill);
    border: 1px solid var(--ev-line);
    background: var(--tapn-surface-1);
    color: var(--ev-ink);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.16s var(--ev-transition), box-shadow 0.16s var(--ev-transition);
  }

  .ev-expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--ev-shadow-sm);
  }

  .ev-expand-icon {
    transition: transform 0.2s var(--ev-transition);
  }

  .ev-expandable.is-expanded .ev-expand-icon {
    transform: rotate(180deg);
  }

  .ev-show-less {
    display: none;
  }

  .ev-expandable.is-expanded .ev-show-more {
    display: none;
  }

  .ev-expandable.is-expanded .ev-show-less {
    display: inline;
  }

  /* ─────────────────────────────────────────────
     ACE Chat
  ───────────────────────────────────────────── */
  .ace-chat-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 900;
    min-width: 58px;
    height: 58px;
    border-radius: var(--tapn-radius-pill);
    border: none;
    background: linear-gradient(135deg, var(--ev-primary), var(--ev-secondary));
    color: var(--tapn-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 1.05rem;
    box-shadow: var(--tapn-shadow-card-hover);
    cursor: pointer;
    transition: transform 0.18s var(--ev-transition), box-shadow 0.18s var(--ev-transition);
  }

  .ace-chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: var(--tapn-shadow-card-lifted);
  }

  .ace-chat-fab svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .ace-chat-fab-label {
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .ace-chat-fab.is-open .ace-chat-fab-label,
  .ace-chat-fab.label-hidden .ace-chat-fab-label {
    display: none;
  }

  .ace-chat-fab-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-accent);
    border: 3px solid var(--tapn-surface-1);
  }

  .ace-chat-fab.is-open .ace-chat-fab-badge {
    display: none;
  }

  .ace-chat-window {
    position: fixed;
    right: 1.4rem;
    bottom: 5.5rem;
    z-index: 899;
    width: min(420px, calc(100vw - 2rem));
    height: min(620px, calc(100vh - 7rem));
    border-radius: var(--tapn-radius-xl);
    overflow: hidden;
    background: var(--tapn-surface-1);
    border: 1px solid var(--ev-line);
    box-shadow: var(--tapn-shadow-card-lifted);
    display: none;
    flex-direction: column;
  }

  .ace-chat-window.is-open {
    display: flex;
  }

  .ace-chat-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background:
      radial-gradient(circle at top right, var(--ev-primary-light), transparent 42%),
      linear-gradient(135deg, var(--tapn-surface-1), var(--ev-soft));
    border-bottom: 1px solid var(--ev-line);
  }

  .ace-chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
  }

  .ace-chat-header-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-primary);
    box-shadow: 0 0 0 5px var(--ev-primary-light);
    flex: 0 0 12px;
  }

  .ace-chat-header-title {
    color: var(--ev-ink);
    font-size: 1rem;
    font-weight: 800;
  }

  .ace-chat-header-sub {
    color: var(--ev-muted);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .ace-chat-header-actions {
    display: flex;
    gap: 0.4rem;
  }

  .ace-chat-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--tapn-radius-md);
    border: 1px solid var(--ev-line);
    background: var(--tapn-surface-1);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ev-ink);
  }

  .ace-chat-body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    background: var(--tapn-surface-1);
  }

  .ace-message {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
  }

  .ace-message.user {
    justify-content: flex-end;
  }

  .ace-bubble {
    max-width: 82%;
    padding: 0.8rem 0.9rem;
    border-radius: var(--tapn-radius-lg);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
  }

  .ace-message.assistant .ace-bubble {
    background: var(--ev-soft);
    color: var(--ev-ink);
    border: 1px solid var(--ev-line);
    border-top-left-radius: 8px;
  }

  .ace-message.user .ace-bubble {
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    border-top-right-radius: 8px;
  }

  .ace-chat-footer {
    padding: 0.85rem;
    border-top: 1px solid var(--ev-line);
    background: var(--tapn-surface-1);
  }

  .ace-chat-form {
    display: flex;
    gap: 0.5rem;
  }

  .ace-chat-input {
    flex: 1;
    min-height: 44px;
    border-radius: var(--tapn-radius-pill);
    border: 1px solid var(--ev-line);
    padding: 0 1rem;
    outline: none;
    color: var(--ev-ink);
    font: inherit;
  }

  .ace-chat-input:focus {
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 4px var(--ev-primary-light);
  }

  .ace-chat-send {
    width: 44px;
    height: 44px;
    border-radius: var(--tapn-radius-pill);
    border: none;
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  /* ─────────────────────────────────────────────
     PAYMENT WARNING BANNER
  ───────────────────────────────────────────── */
  .ev-payment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;

  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;

  border-radius: var(--tapn-radius-xl);

  background:
    linear-gradient(
      135deg,
      rgba(255, 247, 247, 0.98),
      rgba(255, 252, 252, 1)
    );

  border: 1px solid rgba(239, 68, 68, 0.14);

  box-shadow:
    var(--tapn-shadow-card-hover);

  position: relative;
  overflow: hidden;
}

.ev-payment-banner::before {
  content: "";
  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 5px;

  background: linear-gradient(
    180deg,
    var(--tapn-semantic-danger),
    var(--tapn-semantic-warning)
  );
}

/* left side */
.ev-payment-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  min-width: 0;
  flex: 1;
}

/* icon */
.ev-payment-banner__icon {
  width: 42px;
  height: 42px;

  border-radius: var(--tapn-radius-md);

  background: rgba(239, 68, 68, 0.10);

  color: var(--tapn-semantic-danger);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  font-weight: 800;

  flex-shrink: 0;
}

/* layout alignment */
.ev-payment-banner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
}

/* heading */
.ev-payment-banner__copy strong {
  color: var(--tapn-semantic-danger);

  font-size: 1rem;
  line-height: 1.2;

  font-weight: 800;
  letter-spacing: -0.02em;
}

/* description */
.ev-payment-banner__copy span {
  color: var(--tapn-semantic-danger);

  font-size: 0.92rem;
  line-height: 1.5;

  font-weight: 700;
}

/* button */
.ev-payment-banner__btn {
  min-height: 46px;

  padding: 0 1.15rem;

  border-radius: var(--tapn-radius-pill);

  background: linear-gradient(
    135deg,
    var(--tapn-semantic-danger),
    var(--tapn-semantic-danger)
  );

  color: var(--tapn-on-primary);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;

  font-size: 0.92rem;
  font-weight: 800;

  box-shadow:
    var(--tapn-shadow-button-white);

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.ev-payment-banner__btn:hover {
  transform: translateY(-1px);

  box-shadow:
    var(--tapn-shadow-button-white);
}

/* mobile */
@media (max-width: 820px) {
  .ev-payment-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ev-payment-banner__icon {
    display: none;
  }

  .ev-payment-banner__btn {
    width: 100%;
  }
}
  /* ─────────────────────────────────────────────
     Payment / Share Lock Modal
  ───────────────────────────────────────────── */
.ev-lock-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.ev-lock-modal-backdrop.show {
  display: flex;
}

.ev-lock-modal {
  width: min(440px, 100%);
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--e360-line, var(--ev-line));
  border-radius: var(--tapn-radius-xl);
  box-shadow: var(--tapn-shadow-card-lifted);
  font-family: var(--e360-font-body, var(--tapn-font-sans));
}

.ev-lock-modal-head {
  padding: 24px 26px 14px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(15,187,179,.12), transparent 62%),
    var(--tapn-surface-1);
}

.ev-lock-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--e360-primary-deep, var(--tapn-primary-ink));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ev-lock-modal-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--tapn-radius-pill);
  background: linear-gradient(135deg, var(--e360-primary, var(--tapn-primary)), var(--e360-primary-2, var(--tapn-primary-hover)));
  box-shadow: 0 0 0 4px rgba(15,187,179,.10);
}

.ev-lock-modal-title {
  margin: 0;
  color: var(--e360-ink, var(--tapn-ink));
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}

.ev-lock-modal-body {
  padding: 0 26px 22px;
}

.ev-lock-modal-body p {
  margin: 0;
  color: var(--e360-muted, var(--tapn-ink-subtle));
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 42ch;
}

.ev-lock-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 26px 26px;
}

.ev-lock-modal-actions a,
.ev-lock-modal-actions button {
  min-height: 46px;
  border-radius: var(--tapn-radius-pill);
  padding: 0 18px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.ev-lock-modal-actions a:hover,
.ev-lock-modal-actions button:hover {
  transform: translateY(-1px);
}

.ev-lock-pay {
  border: 1px solid rgba(15,187,179,.35) !important;
  background: linear-gradient(135deg, var(--e360-primary, var(--tapn-primary)), var(--e360-primary-2, var(--tapn-primary-hover)));
  color: var(--tapn-on-primary);
  box-shadow: var(--tapn-shadow-cta);
}

.ev-lock-cancel {
  border: 1px solid var(--e360-line, var(--tapn-hairline)) !important;
  background: rgba(255,255,255,.92);
  color: var(--e360-ink, var(--tapn-ink));
  box-shadow: var(--tapn-shadow-card);
}


  /* ─────────────────────────────────────────────
     Responsive
  ───────────────────────────────────────────── */
  @media (max-width: 1100px) {
    .ev-hero {
      padding: 2rem;
    }

    .ev-hero-content {
      grid-template-columns: 1fr;
    }

    .ev-hero-right {
      align-items: flex-start;
      min-width: 0;
    }

    .ev-meta-pill {
      max-width: 100%;
    }
  }

  @media (max-width: 820px) {
    .ev-hero {
      min-height: 280px;
      padding: 1.5rem;
    }

    .ev-hero-title {
      font-size: clamp(1.9rem, 10vw, 2.45rem);
    }

    .ev-hero-desc {
      font-size: 0.95rem;
    }

    .ev-stats {
      grid-template-columns: 1fr;
    }

    .ev-widget {
      padding: 1.25rem;
      border-radius: var(--tapn-radius-lg);
    }

    .ev-widget-title {
      font-size: 1.35rem;
    }

    .ev-count-badge {
      min-height: 30px;
      font-size: 0.88rem;
    }

    .ev-schedule-date {
      font-size: 1.25rem;
    }

    .ev-schedule-btn {
      width: 44px;
      height: 44px;
    }

    .ev-timeline {
      padding-left: 2.25rem;
    }

    .ev-timeline-item {
      padding: 1.1rem;
    }

    .ev-timeline-item::before {
      left: -2.55rem;
    }

    .ev-item-time {
      font-size: 1rem;
    }

    .ev-item-title {
      font-size: 1.1rem;
    }

    /* A speaker card is the same size whether there is one of them or twelve.
       The old rule paired `1fr` tracks with `width:auto`, so a lone speaker
       absorbed the whole row and rendered enormous. Capping the track with a
       max instead of `1fr` means tracks never absorb free space, and the card
       keeps its shape at every count. */
    .ev-speaker-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(8rem, 10rem));
      justify-content: center;
    }

    .ev-speaker-card {
      width: 100%;
      flex: initial;
    }

    .ev-map-wrap,
    .ev-map-wrap iframe {
      min-height: 320px;
      height: 320px;
    }

    .ace-chat-fab {
      right: 1rem;
      bottom: 1rem;
    }

    .ace-chat-window {
      right: 1rem;
      left: 1rem;
      bottom: 5rem;
      width: auto;
    }
  }

  @media (max-width: 560px) {
    .ev-hero-actions {
      flex-direction: column;
    }

    .ev-hero-btn-primary,
    .ev-hero-btn-secondary {
      width: 100%;
    }

    .ev-schedule-nav {
      align-items: stretch;
      flex-direction: column;
    }

    .ev-schedule-btns {
      justify-content: flex-end;
    }

    .ev-lock-modal-actions {
      flex-direction: column;
    }

    .ev-lock-modal-actions a,
    .ev-lock-modal-actions button {
      width: 100%;
    }
  }
  
  @media (max-width: 520px) {
  .ev-lock-modal {
    border-radius: var(--tapn-radius-xl);
  }

  .ev-lock-modal-actions {
    flex-direction: column;
  }

  .ev-lock-modal-actions a,
  .ev-lock-modal-actions button {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────
   Guestlist Widget
───────────────────────────────────────────── */
.ev-guestlist-widget {
    cursor: pointer;
    text-align: center;
}
.ev-guestlist-widget:hover {
    border-color: var(--ev-primary) !important;
}
.ev-guestlist-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}
.ev-guestlist-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ev-guestlist-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tapn-on-primary);
    border: 3px solid var(--tapn-surface-1);
    margin-left: -10px;
    flex-shrink: 0;
    box-shadow: var(--tapn-shadow-card);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}
.ev-guestlist-avatar:first-child { margin-left: 0; }
.ev-guestlist-widget:hover .ev-guestlist-avatar { transform: translateY(-3px); }
.ev-guestlist-avatar--overflow {
    background: var(--tapn-surface-3) !important;
    border: 2px dashed var(--ev-primary) !important;
    color: var(--ev-primary) !important;
    font-size: 0.78rem !important;
}
.ev-guestlist-preview-text {
    font-size: 0.95rem;
    color: var(--ev-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0;
}
.ev-guestlist-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.65rem 1.5rem;
    border-radius: var(--tapn-radius-pill);
    border: none;
    pointer-events: none;
    box-shadow: var(--tapn-shadow-card);
    transition: box-shadow 0.2s ease;
}
.ev-guestlist-widget:hover .ev-guestlist-cta {
    box-shadow: var(--tapn-shadow-card-hover);
}

/* ─────────────────────────────────────────────
   Guestlist Overlay
───────────────────────────────────────────── */
.ev-guestlist-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: var(--tapn-surface-1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.3s var(--ev-transition),
                transform 0.3s var(--ev-transition);
    overflow: hidden;
}
.ev-guestlist-overlay.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.ev-guestlist-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--ev-line);
    flex-shrink: 0;
    background: var(--tapn-surface-1);
}
.ev-guestlist-overlay-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ev-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ev-guestlist-overlay-close {
    background: var(--ev-soft);
    border: 1px solid var(--ev-line);
    color: var(--ev-muted);
    width: 44px;
    height: 44px;
    border-radius: var(--tapn-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.ev-guestlist-overlay-close:hover {
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    border-color: var(--ev-primary);
}
.ev-guestlist-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
    -webkit-overflow-scrolling: touch;
}
.ev-guestlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
    color: var(--ev-muted);
    text-align: center;
}
.ev-guestlist-empty-icon { font-size: 3rem; opacity: 0.35; }
.ev-guestlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.ev-guestlist-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    padding: 1rem 0.5rem;
    border-radius: var(--ev-radius-lg);
    border: 1px solid transparent;
    transition: all 0.2s var(--ev-transition);
}
.ev-guestlist-grid-item:hover {
    background: var(--ev-soft);
    border-color: var(--ev-line);
    transform: translateY(-3px);
}
.ev-guestlist-grid-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tapn-on-primary);
    box-shadow: var(--ev-shadow-sm);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ev-guestlist-grid-item:hover .ev-guestlist-grid-avatar {
    transform: scale(1.06);
    box-shadow: var(--ev-shadow-md);
}
.ev-guestlist-grid-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ev-muted);
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}
.ev-guestlist-overlay-body::-webkit-scrollbar { width: 5px; }
.ev-guestlist-overlay-body::-webkit-scrollbar-track { background: transparent; }
.ev-guestlist-overlay-body::-webkit-scrollbar-thumb {
    background: var(--ev-primary);
    border-radius: var(--tapn-radius-xs);
}

@media (min-width: 640px) {
    .ev-guestlist-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
    .ev-guestlist-grid-avatar { width: 80px; height: 80px; font-size: 1.45rem; }
}
@media (min-width: 1024px) {
    .ev-guestlist-grid { grid-template-columns: repeat(5, 1fr); }
    .ev-guestlist-overlay-body { max-width: 860px; margin: 0 auto; width: 100%; }
    .ev-guestlist-overlay-header { max-width: 860px; margin: 0 auto; width: 100%; }
}
/* ═══════════════════════════════════════════════════════════════════════
   PERSONALIZED SCHEDULE
   Tokens per MASTER_DESIGN.md. Press states are supplied by
   tapn-motion.js (scale 0.97 / 100ms), so nothing here sets a transform
   on a button — an inline transform from that library would fight it.
   ═══════════════════════════════════════════════════════════════════════ */

/* .ev-timeline-item declares display:block, which out-specifies the UA
   [hidden] rule. Without this, filtering silently does nothing. */
.ev-timeline-item[hidden],
.ev-sched-empty[hidden],
.ev-sched-day-empty[hidden] {
    display: none !important;
}

/* ── Segmented control ──────────────────────────────────────────────── */
.ev-sched-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--tapn-surface-3);
    border-radius: var(--tapn-radius-pill);
}

.ev-sched-toggle-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--ev-muted);
    font-family: var(--tapn-font-sans);
    font-size: var(--tapn-button-sm-size);
    font-weight: var(--tapn-button-sm-weight);
    letter-spacing: var(--tapn-button-sm-tracking);
    line-height: var(--tapn-button-sm-leading);
    padding: 0.55rem 1.05rem;
    border-radius: var(--tapn-radius-pill);
    transition: background var(--tapn-hover-duration) var(--tapn-hover-easing),
                color      var(--tapn-hover-duration) var(--tapn-hover-easing);
}

.ev-sched-toggle-opt:hover { color: var(--ev-ink); }

.ev-sched-toggle-opt.is-selected {
    background: var(--tapn-surface-1);
    color: var(--ev-ink);
    box-shadow: var(--tapn-shadow-button-white);
}

.ev-sched-toggle-opt:focus-visible {
    outline: 3px solid rgba(13, 164, 157, 0.4);
    outline-offset: 2px;
}

/* Count badge — status-badge component. */
.ev-sched-toggle-count {
    display: inline-block;
    min-width: 1.35rem;
    padding: 0.1rem 0.45rem;
    background: var(--tapn-primary-soft);
    color: var(--tapn-primary-ink);
    border-radius: var(--tapn-radius-pill);
    font-size: var(--tapn-caption-size);
    font-weight: var(--tapn-caption-weight);
    line-height: 1.5;
    text-align: center;
}

.ev-sched-toggle-opt.is-selected .ev-sched-toggle-count {
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
}

/* ── Add / Added button ─────────────────────────────────────────────── */
/* Add Session and Rate sit side by side in .ev-item-actions, so every
   dimension that decides their shape is declared once, here. They previously
   drifted: Save carried its own margin-top on top of the wrapper's (dropping it
   below Rate's baseline) and Rate set a min-height Save did not, so the two
   pills rendered at different heights.

   No margin-top — .ev-item-actions owns the spacing above the row. */
.ev-item-save,
.ev-item-rate,
.ev-item-register {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;              /* 44px touch-target floor, both buttons */
    cursor: pointer;
    background: var(--tapn-surface-1);
    color: var(--ev-ink);
    border: 1px solid var(--ev-line);
    border-radius: var(--tapn-radius-pill);
    box-shadow: var(--tapn-shadow-button-white);
    font-family: var(--tapn-font-sans);
    font-size: var(--tapn-button-sm-size);
    font-weight: var(--tapn-button-sm-weight);
    letter-spacing: var(--tapn-button-sm-tracking);
    padding: 0.5rem 1.05rem;
    transition: background     var(--tapn-hover-duration) var(--tapn-hover-easing),
                border-color   var(--tapn-hover-duration) var(--tapn-hover-easing),
                color          var(--tapn-hover-duration) var(--tapn-hover-easing);
}

.ev-item-save:hover:not(:disabled) {
    border-color: var(--ev-primary);
    color: var(--tapn-primary-ink);
}

.ev-item-save:disabled { opacity: 0.55; cursor: default; }

.ev-item-save:focus-visible {
    outline: 3px solid rgba(13, 164, 157, 0.4);
    outline-offset: 2px;
}

/* The icon is a "+" that becomes a check once saved. */
.ev-item-save-icon {
    width: 1rem;
    height: 1rem;
    position: relative;
    flex: 0 0 auto;
}
.ev-item-save-icon::before,
.ev-item-save-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--tapn-hover-duration) var(--tapn-hover-easing),
                opacity   var(--tapn-hover-duration) var(--tapn-hover-easing);
}
.ev-item-save-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.ev-item-save-icon::after  { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }

/* Saved: teal fill, and the "+" rotates into a check. */
.ev-item-save[aria-pressed="true"] {
    background: var(--tapn-primary-soft);
    border-color: transparent;
    color: var(--tapn-primary-ink);
}
.ev-item-save[aria-pressed="true"] .ev-item-save-icon::before {
    width: 55%;
    left: 5%;
    transform: translateY(-50%) rotate(45deg) scaleX(0.75);
    transform-origin: left center;
}
.ev-item-save[aria-pressed="true"] .ev-item-save-icon::after {
    height: 90%;
    top: -12%;
    left: 62%;
    transform: translateX(-50%) rotate(45deg);
}

/* A saved session gets a teal edge so it reads as yours in the All view. */
.ev-timeline-item.is-saved {
    background: var(--tapn-surface-1);
    border-color: rgba(15,187,179,.32);
}

/* ── "Updated by the organizer" flag ────────────────────────────────── */
.ev-item-changed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(201, 138, 18, 0.10);
    border-radius: var(--tapn-radius-md);
    color: var(--ev-warning);
    font-size: var(--tapn-body-sm-size);
    font-weight: var(--tapn-body-sm-weight);
    line-height: var(--tapn-body-sm-leading);
}

.ev-item-changed-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-warning);
}

.ev-item-changed-ack {
    margin-left: auto;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--ev-warning);
    font-family: var(--tapn-font-sans);
    font-size: var(--tapn-caption-size);
    font-weight: 800;
    text-decoration: underline;
    padding: 0.15rem 0.25rem;
    border-radius: var(--tapn-radius-xs);
}
.ev-item-changed-ack:focus-visible {
    outline: 2px solid var(--ev-warning);
    outline-offset: 2px;
}

/* ── Empty states ───────────────────────────────────────────────────── */
.ev-sched-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.ev-sched-empty-title {
    color: var(--ev-ink);
    font-size: var(--tapn-card-title-size);
    font-weight: var(--tapn-card-title-weight);
    line-height: var(--tapn-card-title-leading);
    margin-bottom: 0.4rem;
}
.ev-sched-empty-body {
    color: var(--ev-muted);
    font-size: var(--tapn-body-size);
    line-height: var(--tapn-body-leading);
    margin-bottom: 1.25rem;
}
.ev-sched-empty-cta {
    cursor: pointer;
    background: var(--ev-primary);
    color: var(--tapn-on-primary);
    border: 0;
    border-radius: var(--tapn-radius-pill);
    box-shadow: var(--tapn-shadow-cta);
    font-family: var(--tapn-font-sans);
    font-size: var(--tapn-button-sm-size);
    font-weight: var(--tapn-button-sm-weight);
    letter-spacing: var(--tapn-button-sm-tracking);
    padding: var(--tapn-button-sm-padding-y) var(--tapn-button-sm-padding-x);
    transition: background var(--tapn-hover-duration) var(--tapn-hover-easing);
}
.ev-sched-empty-cta:hover { background: var(--tapn-primary-hover); }
.ev-sched-empty-cta:focus-visible {
    outline: 3px solid rgba(13, 164, 157, 0.4);
    outline-offset: 2px;
}

.ev-sched-day-empty {
    color: var(--tapn-ink-subtle);
    font-size: var(--tapn-body-sm-size);
    font-style: italic;
    padding: 1.15rem 0;
}

/* The date slides recede while the whole-widget empty state is showing. */
.ev-schedule-slide.is-muted { display: none; }

/* ── Header layout: title left, control right ───────────────────────── */
.ev-widget-header:has(.ev-sched-toggle) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tapn-space-md);
    flex-wrap: wrap;
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ev-sched-toggle-opt,
    .ev-item-save,
    .ev-item-rate,
    .ev-item-rate-star,
    .ev-sched-empty-cta,
    .ev-item-save-icon::before,
    .ev-item-save-icon::after {
        transition: opacity var(--tapn-reduced-motion-fade);
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .ev-widget-header:has(.ev-sched-toggle) { align-items: flex-start; }
    .ev-sched-toggle { width: 100%; justify-content: stretch; }
    .ev-sched-toggle-opt { flex: 1 1 0; justify-content: center; padding: 0.6rem 0.5rem; }
    /* Both buttons go full-width together, or the row reads lopsided. */
    .ev-item-actions { flex-direction: column; align-items: stretch; }
    .ev-item-save,
    .ev-item-rate,
    .ev-item-register { width: 100%; justify-content: center; }
    .ev-item-changed-ack { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RATE SESSION
   MASTER_DESIGN: sheet = rounded.xxl 32px + shadows.sheet +
   spring-sheet (bounce 0.2 / 0.3s). Press = scale 0.97 @100ms
   on pointer-down. Teal is scarce — it fills the active star
   and the submit pill, nothing else here.
   ═══════════════════════════════════════════════════════════ */

/* ── the row holding Add Session + Rate ── */
.ev-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* ── Rate button ──
   Shape, size, type, and shadow all come from the shared
   `.ev-item-save, .ev-item-rate` base above. Only the differences live here,
   so the two pills cannot drift apart again. */

/* Matches .ev-item-save:hover exactly. */
.ev-item-rate:hover {
  border-color: var(--ev-primary);
  color: var(--tapn-primary-ink);
}

.ev-item-rate-star {
  font-size: 1rem;
  line-height: 1;
  color: var(--tapn-ink-tertiary, #a6b3ba);
  transition: color var(--tapn-hover-duration) var(--tapn-hover-easing);
}
.ev-item-rate:hover .ev-item-rate-star { color: var(--tapn-primary-ink); }

/* Already rated: reads as a status badge rather than a call to action —
   primary-soft on primary-ink, the design system's status-badge pairing.
   Mirrors how .ev-item-save[aria-pressed="true"] marks a saved session. */
.ev-item-rate.is-rated {
  background: var(--tapn-primary-soft, #e6f7f6);
  border-color: transparent;
  color: var(--tapn-primary-ink, #0b8f89);
}
.ev-item-rate.is-rated .ev-item-rate-star { color: var(--tapn-primary-ink, #0b8f89); }

/* Level 7 focus, same as the save button. */
.ev-item-rate:focus-visible {
  outline: 3px solid rgba(13, 164, 157, 0.4);
  outline-offset: 2px;
}

/* ── scrim ── */
.ev-rate-scrim {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--tapn-scrim, rgba(14,27,38,0.45));
  opacity: 0;
  transition: opacity 300ms var(--ev-transition);
}
.ev-rate-scrim.is-in { opacity: 1; }

/* ── the sheet ── */
.ev-rate-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 999;
  width: min(520px, 100%);
  padding: 0.75rem 1.75rem 2rem;
  background: var(--ev-card);
  border-radius: 32px 32px 0 0;     /* rounded.xxl */
  box-shadow: var(--tapn-shadow-sheet, 0 -8px 48px rgba(14,27,38,0.12));
  transform: translate(-50%, 100%);
  /* spring-sheet: bounce 0.2 / duration 0.3 */
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.3, 1.12);
  will-change: transform;
}
.ev-rate-sheet.is-in { transform: translate(-50%, 0); }

.ev-rate-grabber {
  width: 44px;
  height: 5px;
  margin: 0 auto 1.15rem;
  border-radius: 9999px;
  background: var(--tapn-hairline-strong, #d4dedd);
  cursor: grab;
  touch-action: none;               /* pointer events own the gesture */
}
.ev-rate-grabber:active { cursor: grabbing; }

.ev-rate-head { text-align: center; margin-bottom: 1.35rem; }

.ev-rate-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tapn-primary-ink, #0b8f89);
}
.ev-rate-heading {
  margin: 0;
  font-size: 1.25rem;               /* card-title */
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ev-ink);
}
.ev-rate-session {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--ev-muted);
}

/* ── stars ── */
.ev-rate-stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.ev-rate-star {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--tapn-surface-3, #eef4f4);
  cursor: pointer;
  transition: color 180ms var(--ev-transition), transform 100ms ease-out;
}
.ev-rate-star:hover  { color: var(--tapn-primary-hover, #3fcfc8); }
.ev-rate-star:active { transform: scale(0.97); }
.ev-rate-star.is-on  { color: var(--ev-primary); }
.ev-rate-star:focus-visible {
  outline: 3px solid rgba(13,164,157,0.4);
  outline-offset: 2px;
}

.ev-rate-stars-hint {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ev-muted);
  min-height: 1.2em;                /* no reflow as the label changes */
}

/* ── comment ── */
.ev-rate-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ev-ink);
}
.ev-rate-label span { font-weight: 400; color: var(--ev-muted); }

.ev-rate-comment {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--ev-line);
  border-radius: var(--tapn-radius-md, 14px);
  background: var(--ev-card);
  color: var(--ev-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 150ms var(--ev-transition), box-shadow 150ms var(--ev-transition);
}
.ev-rate-comment:focus {
  outline: none;
  border-color: var(--tapn-primary-focus, #0da49d);
  box-shadow: 0 0 0 3px rgba(13,164,157,0.4);
}

.ev-rate-privacy {
  margin: 0.85rem 0 1.35rem;
  font-size: 0.75rem;               /* caption */
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--tapn-ink-subtle, #7b8b95);
}
.ev-rate-privacy-warn {
  display: block;
  margin: 0.4rem 0;
  padding: 0.5rem 0.7rem;
  border-radius: var(--tapn-radius-sm, 10px);
  background: rgba(201,138,18,0.10);
  color: var(--tapn-semantic-warning, #c98a12);
  font-weight: 700;
}

/* ── actions ── */
.ev-rate-actions { display: flex; gap: 0.75rem; }

.ev-rate-cancel,
.ev-rate-submit {
  flex: 1;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 9999px;            /* pill */
  font-family: inherit;
  font-size: 1.0625rem;             /* button */
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms var(--ev-transition), transform 100ms ease-out;
}
.ev-rate-cancel {
  border: 1px solid var(--ev-line);
  background: var(--ev-card);
  color: var(--ev-ink);
}
.ev-rate-submit {
  border: 0;
  background: var(--ev-primary);
  color: #fff;
  box-shadow: var(--tapn-shadow-cta, 0 4px 16px rgba(15,187,179,0.24));
}
.ev-rate-submit:hover:not(:disabled) { background: var(--tapn-primary-hover, #3fcfc8); }
.ev-rate-cancel:active,
.ev-rate-submit:active:not(:disabled) { transform: scale(0.97); }
.ev-rate-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── toast ── */
.ev-rate-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 1000;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  background: var(--tapn-inverse-canvas, #0e1b26);
  color: var(--tapn-inverse-ink, #fbfdfd);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: var(--tapn-shadow-card-lifted, 0 16px 48px rgba(14,27,38,0.12));
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 220ms var(--ev-transition), transform 220ms var(--ev-transition);
}
.ev-rate-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .ev-rate-sheet { width: 100%; padding-inline: 1.25rem; }
  .ev-rate-star  { width: 46px; height: 46px; font-size: 1.75rem; }
}

/* Reduced motion: cross-fade in place, no travel, no overshoot. */
@media (prefers-reduced-motion: reduce) {
  .ev-rate-sheet {
    transition: opacity 200ms ease;
    transform: translate(-50%, 0);
    opacity: 0;
  }
  .ev-rate-sheet.is-in { opacity: 1; transform: translate(-50%, 0); }
  .ev-rate-scrim,
  .ev-rate-toast { transition: opacity 200ms ease; }
  .ev-rate-toast { transform: translate(-50%, 0); }
  .ev-rate-star:active,
  .ev-item-rate:active,
  .ev-rate-submit:active:not(:disabled) { transform: none; }
}

/* High contrast: the one place the no-borders rule is suspended. */
@media (prefers-contrast: more) {
  .ev-rate-sheet { border: 1px solid var(--tapn-hairline-strong, #d4dedd); }
  .ev-item-rate  { border-color: var(--tapn-hairline-strong, #d4dedd); }
}

/* ─────────────────────────────────────────────
   Schedule embed export modal
───────────────────────────────────────────── */
.ev-embed-modal {
  width: min(560px, 100%);
}

.ev-embed-modal .ev-lock-modal-body p {
  max-width: 52ch;
}

.ev-embed-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--tapn-radius-md);
  background: rgba(237,137,54,0.12);
  color: var(--tapn-semantic-warning);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.ev-embed-label {
  display: block;
  margin: 18px 0 6px;
  color: var(--tapn-ink-subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ev-embed-code {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border-radius: var(--tapn-radius-md);
  border: 1px solid var(--ev-line);
  background: var(--tapn-surface-2);
  color: var(--tapn-ink);
  font-family: var(--tapn-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.ev-embed-code:focus {
  outline: none;
  border-color: var(--ev-primary);
  box-shadow: 0 0 0 3px var(--ev-primary-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   TIME BLOCKS, TRACKS, PLANS
   Sessions that start at the same minute render as one block with a shared
   time header and a "choose one" pill. A track gets a thin colored rail on
   the left of every session of that kind, with one legend per widget. The
   brand color is reserved for "you are attending this".
   ══════════════════════════════════════════════════════════════════════════ */
.ev-track-legend {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
    margin: 0 0 1.1rem;
    font-size: var(--tapn-body-sm-size);
    font-weight: 600;
    color: var(--ev-muted);
}
.ev-track-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ev-track-swatch {
    width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto;
    background: var(--ev-track, var(--ev-muted));
}

.ev-timeline-block { position: relative; }

.ev-block-head {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
    position: relative;
}
/* The block carries the timeline dot; its options do not. */
.ev-block-head::before {
    content: "";
    position: absolute;
    left: -3.6rem; top: 50%;
    width: 14px; height: 14px; margin-top: -7px;
    border-radius: var(--tapn-radius-pill);
    background: var(--ev-primary);
    box-shadow: 0 0 0 5px var(--ev-primary-light);
}
.ev-block-time {
    color: var(--ev-primary);
    font-size: .98rem; line-height: 1.2; font-weight: 800;
}
.ev-block-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.18rem 0.65rem;
    border-radius: var(--tapn-radius-pill);
    background: var(--tapn-surface-1);
    border: 1px solid var(--ev-line);
    color: var(--ev-muted);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em;
}

.ev-block-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.75rem;
}
.ev-block-options .ev-timeline-item { padding: 1rem 1.15rem; }
.ev-block-options .ev-timeline-item::before { display: none; }
.ev-block-options .ev-item-title { font-size: 1rem; }

/* Track rail — inset so the card's radius survives */
.ev-timeline-item.has-track { box-shadow: inset 4px 0 0 var(--ev-track); }
.ev-timeline-item.has-track:hover,
.ev-timeline-item.has-track.is-active { box-shadow: inset 4px 0 0 var(--ev-track), var(--tapn-shadow-card-hover); }
.ev-item-track {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ev-track, var(--ev-muted));
}

/* Attending: the one place the brand color is used on a session */
.ev-timeline-item.is-saved {
    outline: 2px solid var(--ev-primary);
    outline-offset: -1px;
}
.ev-timeline-item.has-track.is-saved { box-shadow: inset 4px 0 0 var(--ev-track); }

.ev-item-count {
    margin-top: 0.4rem;
    font-size: var(--tapn-body-sm-size);
    color: var(--ev-muted);
    font-weight: 600;
}

/* Two attending sessions overlap — a note, never a block */
.ev-item-conflict {
    display: flex; align-items: flex-start; gap: 0.45rem;
    margin-top: 0.6rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--tapn-radius-md);
    background: rgba(201, 138, 18, 0.10);
    color: var(--ev-warning, #7d560b);
    font-size: var(--tapn-body-sm-size);
    font-weight: 600;
    line-height: 1.35;
}
.ev-item-conflict[hidden] { display: none; }

.ev-timeline-block[hidden] { display: none; }

@media (max-width: 640px) {
    .ev-block-head::before { left: -2.55rem; }
    .ev-block-options { grid-template-columns: 1fr; gap: 0.5rem; }
    .ev-block-options .ev-timeline-item { padding: 0.85rem 1rem; }
    .ev-block-time { font-size: 1rem; }
}

/* Inside a block the options are narrow, so the actions shrink a size */
.ev-block-options .ev-item-actions { gap: 0.4rem; }
.ev-block-options .ev-item-save,
.ev-block-options .ev-item-rate,
.ev-block-options .ev-item-register { min-height: 2.4rem; padding: 0.4rem 0.8rem; }
.ev-block-track {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ev-track, var(--ev-muted));
}
.ev-block-track::before {
    content: ""; width: 10px; height: 10px; border-radius: 3px;
    background: var(--ev-track, var(--ev-muted));
}

/* ══════════════════════════════════════════════════════════════════════════
   ATTENDEE HUB 2.0 — panels, tab bar, slot list, sheet, grouped lists
   Design contract: registration/hub/HUB_DESIGN.md
   Everything here is scoped under .hub2 so the older rules above keep
   applying to anything not yet migrated.
   ══════════════════════════════════════════════════════════════════════════ */
.hub2 .ev-stats { display: none; }

/* Panels */
.hub2 .hub-panel[hidden] { display: none; }
.hub2 .hub-panel { display: flex; flex-direction: column; gap: 1.25rem; }

/* Large-title header */
.hub-head { display: flex; flex-direction: column; gap: 0.6rem; }
.hub-head-brand { display: flex; align-items: center; gap: 0.6rem; }
.hub-logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: var(--tapn-surface-3); flex: none; }
.hub-head-brand b { font-size: 0.95rem; font-weight: 800; color: var(--ev-ink); }
.hub-head-brand span { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--tapn-ink-subtle); }
.hub-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; font-size: 2.125rem; font-weight: 800; letter-spacing: -0.024em; line-height: 1.1; color: var(--ev-ink); }
.hub-title small { font-size: 0.8rem; font-weight: 700; color: var(--ev-primary-ink); letter-spacing: 0; white-space: nowrap; }
.hub-sub { margin: -0.2rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--tapn-ink-subtle); }

/* Segmented control */
.hub-seg { display: flex; position: relative; background: var(--tapn-surface-3); border-radius: 12px; padding: 3px; }
.hub-seg button { flex: 1; appearance: none; border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 0.85rem; color: var(--ev-muted); padding: 0.5rem 0; border-radius: 9px; cursor: pointer; position: relative; z-index: 1; transition: color 180ms var(--tapn-ease-out-standard); }
.hub-seg button small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--tapn-ink-subtle); }
.hub-seg button[aria-selected="true"] { color: var(--ev-ink); }
.hub-seg button[aria-selected="true"] small { color: var(--ev-primary-ink); }
.hub-seg .hub-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; background: var(--tapn-surface-1); border-radius: 9px; box-shadow: var(--tapn-shadow-button-white); transition: transform 350ms var(--tapn-ease-out-standard); }

/* Filter chips */
.hub-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hub-chip { appearance: none; border: 0; font-family: inherit; font-weight: 700; font-size: 0.8rem; padding: 0.45rem 0.9rem; border-radius: var(--tapn-radius-pill); background: var(--tapn-surface-1); color: var(--ev-ink); box-shadow: var(--tapn-shadow-button-white); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.hub-chip[aria-pressed="true"] { background: var(--ev-primary-light); color: var(--ev-primary-ink); box-shadow: none; }
.hub-chip .n { font-size: 0.7rem; padding: 0.05rem 0.45rem; border-radius: var(--tapn-radius-pill); background: var(--tapn-surface-3); color: var(--ev-muted); }
.hub-chip[aria-pressed="true"] .n { background: var(--ev-primary); color: #fff; }

/* Tab bar — bottom on phones, segmented at the top on desktop */
.hub-tabs { display: grid; gap: 0; }
.hub-tabs button { appearance: none; border: 0; background: transparent; font-family: inherit; font-size: 0.66rem; font-weight: 700; color: var(--tapn-ink-subtle); display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.35rem 0; cursor: pointer; min-height: 44px; }
.hub-tabs button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-tabs button[aria-selected="true"] { color: var(--ev-primary-ink); }
.hub-tabs button:focus-visible { outline: 3px solid var(--ev-primary-light); outline-offset: -3px; border-radius: 10px; }
@media (max-width: 980px) {
  .hub-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; grid-template-columns: repeat(var(--hub-tab-count, 5), 1fr); padding: 0.4rem 0.4rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(251,253,253,0.88); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 -1px 0 var(--ev-line); }
  .hub2 { padding-bottom: 5.5rem; }
  .hub2 .ace-chat-fab { bottom: 5.5rem; }
}
@media (min-width: 981px) {
  .hub-tabs { position: sticky; top: 0.75rem; z-index: 20; grid-auto-flow: column; justify-content: start; gap: 0.25rem; background: var(--tapn-surface-3); border-radius: 12px; padding: 3px; width: max-content; }
  .hub-tabs button { flex-direction: row; gap: 0.45rem; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 9px; min-height: 0; }
  .hub-tabs button svg { width: 18px; height: 18px; }
  .hub-tabs button[aria-selected="true"] { background: var(--tapn-surface-1); color: var(--ev-ink); box-shadow: var(--tapn-shadow-button-white); }
}
@media (prefers-reduced-transparency: reduce) { .hub-tabs { background: var(--tapn-surface-1); backdrop-filter: none; } }

/* Brand card (hub home) */
.hub-brand { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 1rem; align-items: start; padding: 1.25rem; background: var(--tapn-surface-1); border-radius: var(--tapn-radius-xl); box-shadow: var(--tapn-shadow-card); }
.hub-brand.no-image { grid-template-columns: 1fr; }
.hub-brand .eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ev-primary-ink); }
.hub-brand h2 { margin: 0.25rem 0 0.4rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ev-ink); text-wrap: balance; }
.hub-brand p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ev-muted); }
.hub-facts { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--ev-muted); }
.hub-facts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hub-facts svg { width: 18px; height: 18px; stroke: var(--ev-primary-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hub-status { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.78rem; font-weight: 800; color: var(--tapn-semantic-success); }
.hub-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hub-status.is-draft { color: var(--tapn-semantic-warning); }
.hub-brand-img { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; background: var(--tapn-surface-3); box-shadow: var(--tapn-shadow-card); }
.hub-brand .ev-hero-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hub-brand .ev-copy-bar { margin-top: 0.6rem; }

/* Up next */
.hub-next { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; background: var(--tapn-surface-1); border-radius: 18px; box-shadow: var(--tapn-shadow-card-hover); cursor: pointer; border: 0; width: 100%; text-align: left; font-family: inherit; }
.hub-next:active { transform: scale(0.99); }
.hub-next .when { text-align: center; min-width: 56px; }
.hub-next .when b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ev-ink); }
.hub-next .when small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tapn-ink-subtle); }
.hub-next .t { font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--ev-ink); }
.hub-next .m { font-size: 0.8rem; color: var(--tapn-ink-subtle); }
.hub-chev { width: 18px; height: 18px; stroke: var(--tapn-ink-subtle); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; flex: none; }

/* Quick actions */
.hub-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 0.5rem; }
.hub-quick button { appearance: none; border: 0; font-family: inherit; background: var(--tapn-surface-1); box-shadow: var(--tapn-shadow-card); border-radius: 16px; padding: 0.75rem 0.4rem 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; color: var(--ev-ink); cursor: pointer; min-height: 44px; }
.hub-quick button:active { transform: scale(0.97); }
.hub-quick svg { width: 22px; height: 22px; stroke: var(--ev-primary-ink); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Section label + inset grouped list */
.hub-sec { display: flex; flex-direction: column; gap: 0.5rem; }
.hub-sec-h { margin: 0 0 0 0.15rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tapn-ink-subtle); display: flex; justify-content: space-between; align-items: baseline; }
.hub-list { background: var(--tapn-surface-1); border-radius: 18px; box-shadow: var(--tapn-shadow-card); overflow: hidden; }
.hub-li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0.9rem; min-height: 56px; position: relative; text-decoration: none; color: inherit; width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.hub-li + .hub-li::before { content: ""; position: absolute; left: 0.9rem; right: 0; top: 0; height: 1px; background: var(--ev-line); }
.hub-li:active { background: var(--tapn-surface-2); }
.hub-li .t { font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--ev-ink); }
.hub-li .m { font-size: 0.8rem; color: var(--tapn-ink-subtle); margin-top: 0.05rem; }
.hub-li .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--ev-primary-light); display: grid; place-items: center; }
.hub-li .ic svg { width: 18px; height: 18px; stroke: var(--ev-primary-ink); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hub-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; }
.hub-about { padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.55; color: var(--ev-muted); }
.hub-about + .hub-about { border-top: 1px solid var(--ev-line); }
.hub-about h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 800; color: var(--ev-ink); }
.hub-about p { margin: 0; }

/* Schedule: all-day band, slots, rows, circle, now line */
.hub-allday { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.9rem; border-radius: 14px; background: var(--tapn-surface-2); }
.hub-allday .lbl { flex: none; width: 3.25rem; padding-top: 0.15rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tapn-ink-subtle); }
.hub-allday .rows { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; font-weight: 700; color: var(--ev-ink); }
.hub-allday .rows span { color: var(--tapn-ink-subtle); font-weight: 600; }

.hub2 .ev-timeline { display: flex; flex-direction: column; gap: 0.85rem; padding-left: 0; }
.hub2 .ev-timeline::before { display: none; }
.hub-slot { display: grid; grid-template-columns: 3.9rem 1fr; gap: 0 0.75rem; }
.hub-slot-time { padding-top: 0.85rem; text-align: right; font-size: 0.8rem; font-weight: 800; line-height: 1.2; color: var(--ev-ink); }
.hub-slot-time small { display: block; margin-top: 0.15rem; font-size: 0.68rem; font-weight: 600; color: var(--tapn-ink-subtle); }
.hub-slot.is-past .hub-slot-time { color: var(--tapn-ink-subtle); }
.hub-group { background: var(--tapn-surface-1); border-radius: 18px; box-shadow: var(--tapn-shadow-card); overflow: hidden; }
.hub-group-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.9rem 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tapn-ink-subtle); }
.hub-group-head .trk { display: inline-flex; align-items: center; gap: 0.4rem; }
.hub-group-head .trk::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--ev-track); }
.hub-group-head .pick { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 0.75rem; color: var(--ev-primary-ink); }

.hub2 .ev-timeline-item { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; padding: 0.75rem 0.5rem 0.75rem 0.9rem; min-height: 60px; position: relative; border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: none; cursor: pointer; outline: none; }
.hub2 .ev-timeline-item::before { display: none; }
.hub2 .ev-timeline-item + .ev-timeline-item::after { content: ""; position: absolute; left: 0.9rem; right: 0; top: 0; height: 1px; background: var(--ev-line); }
.hub2 .ev-timeline-item:hover, .hub2 .ev-timeline-item.is-active { background: var(--tapn-surface-2); box-shadow: none; transform: none; }
.hub2 .ev-timeline-item:active { background: var(--tapn-surface-2); }
.hub2 .ev-timeline-item.is-saved { background: var(--ev-primary-light); outline: none; }
.hub2 .ev-timeline-item.is-saved + .ev-timeline-item::after, .hub2 .ev-timeline-item + .ev-timeline-item.is-saved::after { opacity: 0; }
.hub2 .ev-timeline-item:focus-visible { box-shadow: inset 0 0 0 3px var(--ev-primary-light); }
.hub2 .ev-item-time { display: none; }
.hub2 .ev-item-track { display: none; }
.hub2 .ev-item-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
.hub2 .ev-item-loc { margin-top: 0.1rem; font-size: 0.8rem; font-weight: 600; color: var(--tapn-ink-subtle); display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.hub2 .ev-item-loc .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--ev-track); display: inline-block; }
.hub2 .ev-item-count { margin-top: 0.1rem; font-size: 0.78rem; }
.hub2 .ev-item-conflict { margin-top: 0.35rem; padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.hub2 .ev-item-body { min-width: 0; }
.hub2 .ev-item-side { display: flex; align-items: center; gap: 0.35rem; }
.hub2 .ev-item-actions { display: none; }
.hub-tick { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hub-tick i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ev-line-strong); display: grid; place-items: center; transition: transform 100ms ease-out, background 180ms var(--tapn-ease-out-standard), border-color 180ms var(--tapn-ease-out-standard); }
.hub-tick svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hub-tick[aria-pressed="true"] i { background: var(--ev-primary); border-color: var(--ev-primary); }
.hub-tick[aria-pressed="true"] svg { opacity: 1; }
.hub-tick:active i { transform: scale(0.9); }
.hub-tick:disabled { opacity: 0.55; }
.hub-tick:focus-visible i { box-shadow: 0 0 0 3px var(--ev-primary-light); }
.hub2 .ev-item-changed { margin-top: 0.4rem; padding: 0.35rem 0.6rem; font-size: 0.78rem; }

.hub-now { display: grid; grid-template-columns: 3.9rem 1fr; gap: 0 0.75rem; align-items: center; }
.hub-now .lbl { text-align: right; font-size: 0.7rem; font-weight: 800; color: var(--ev-primary-ink); }
.hub-now .line { height: 2px; border-radius: 2px; background: var(--ev-primary); position: relative; }
.hub-now .line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ev-primary); box-shadow: 0 0 0 4px var(--ev-primary-glow); }

.hub2 .ev-schedule-slide { display: none; }
.hub2 .ev-schedule-slide.active { display: flex; flex-direction: column; gap: 0.75rem; }
.hub2 .ev-schedule-nav { display: none; }
.hub2 .ev-sched-day-empty, .hub2 .ev-sched-empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--ev-muted); }

/* Desktop: options inside a choose-one group sit in a grid, and rows keep their pills */
@media (min-width: 981px) {
  .hub-group.is-choose .hub-group-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; }
  .hub2 .is-choose .ev-timeline-item + .ev-timeline-item::after { display: none; }
  .hub2 .is-choose .ev-timeline-item { box-shadow: inset 1px 0 0 var(--ev-line); }
  .hub2 .is-choose .ev-timeline-item:first-child { box-shadow: none; }
  .hub2 .ev-timeline-item { grid-template-columns: 1fr auto; padding: 0.9rem 0.75rem 0.9rem 1.1rem; }
  .hub2 .ev-item-actions { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
  .hub2 .ev-item-save, .hub2 .ev-item-rate, .hub2 .ev-item-register { min-height: 2.25rem; padding: 0.35rem 0.8rem; font-size: 0.8rem; }
  .hub2 .ev-item-save[aria-pressed="true"] { background: var(--ev-primary-light); color: var(--ev-primary-ink); }
}

/* Speakers */
.hub-spk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 981px) { .hub-spk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hub-spk { appearance: none; border: 0; text-align: left; font-family: inherit; background: var(--tapn-surface-1); border-radius: 18px; box-shadow: var(--tapn-shadow-card); padding: 0.6rem 0.6rem 0.75rem; cursor: pointer; }
.hub-spk:active { transform: scale(0.98); }
.hub-spk .img { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; object-fit: cover; background: linear-gradient(160deg, var(--tapn-surface-3), var(--tapn-surface-2)); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--ev-muted); }
.hub-spk .n { margin: 0.6rem 0.15rem 0; font-weight: 800; font-size: 0.98rem; color: var(--ev-ink); }
.hub-spk .r { margin: 0.05rem 0.15rem 0; font-size: 0.8rem; font-weight: 700; color: var(--ev-primary-ink); }
.hub-spk .s { margin: 0.25rem 0.15rem 0; font-size: 0.75rem; color: var(--tapn-ink-subtle); }
.hub-spk .o { margin: 0.05rem 0.15rem 0; font-size: 0.78rem; color: var(--ev-muted); }
.hub-spk .pic { position: relative; }
.hub-spk .t { position: absolute; left: 0.45rem; top: 0.45rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(14,27,38,0.78); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.hub-spk-group { margin: 0.9rem 0.15rem 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ev-primary-ink); display: flex; align-items: center; gap: 0.5rem; }
.hub-spk-group b { font-weight: 800; color: var(--tapn-ink-subtle); }
.hub-spk-group:first-child { margin-top: 0; }
.hub-sheet .role { margin: -0.5rem 0 0.9rem; font-size: 0.9rem; font-weight: 700; color: var(--ev-primary-ink); }
.hub-sheet .role span { font-weight: 600; color: var(--ev-muted); }

/* Venue */
.hub-map { border-radius: 18px; overflow: hidden; box-shadow: var(--tapn-shadow-card); height: 220px; }
.hub-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Guests */
.hub-search { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--tapn-surface-3); }
.hub-search svg { width: 16px; height: 16px; stroke: var(--tapn-ink-subtle); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.hub-search input { flex: 1; border: 0; background: transparent; font-family: inherit; font-size: 0.95rem; color: var(--ev-ink); outline: none; min-width: 0; }
.hub-search input::placeholder { color: var(--tapn-ink-subtle); }
.hub-empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--ev-muted); background: var(--tapn-surface-1); border-radius: 18px; box-shadow: var(--tapn-shadow-card); }
.hub-empty b { display: block; color: var(--ev-ink); font-size: 1.05rem; margin-bottom: 0.25rem; }

/* Detail sheet — one element, refilled per use */
.hub-scrim { position: fixed; inset: 0; z-index: 1200; background: rgba(14,27,38,0.45); opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.hub-scrim.open { opacity: 1; pointer-events: auto; }
.hub-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1201; background: var(--tapn-surface-1); border-radius: 28px 28px 0 0; box-shadow: var(--tapn-shadow-sheet); padding: 0.6rem 1.4rem calc(2rem + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform 320ms var(--tapn-ease-out-standard); max-height: 86vh; overflow-y: auto; max-width: 40rem; margin: 0 auto; }
.hub-sheet.open { transform: translateY(0); }
.hub-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--tapn-surface-3); margin: 0 auto 1rem; }
.hub-sheet .eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ev-primary-ink); display: flex; align-items: center; gap: 0.5rem; }
.hub-sheet .eyebrow i { width: 9px; height: 9px; border-radius: 3px; background: var(--ev-track, var(--ev-primary)); }
.hub-sheet h2 { margin: 0.5rem 0 0.9rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.014em; line-height: 1.25; color: var(--ev-ink); text-wrap: balance; }
.hub-sheet .bio { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.55; color: var(--ev-muted); }
.hub-sheet .facts { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.1rem; }
.hub-sheet .facts div { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--ev-muted); }
.hub-sheet .facts b { color: var(--ev-ink); font-weight: 700; }
.hub-sheet .facts svg { width: 20px; height: 20px; stroke: var(--ev-primary-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hub-sheet .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.hub-sheet .chips span { font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: var(--tapn-radius-pill); background: var(--tapn-surface-2); color: var(--ev-muted); }
.hub-sheet .sub { display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 1rem; }
.hub-sheet .sub button { appearance: none; border: 0; font-family: inherit; text-align: left; background: var(--tapn-surface-2); border-radius: 12px; padding: 0.6rem 0.8rem; cursor: pointer; }
.hub-sheet .sub .t { font-weight: 700; font-size: 0.9rem; color: var(--ev-ink); }
.hub-sheet .sub .m { font-size: 0.78rem; color: var(--tapn-ink-subtle); }
.hub-btn { appearance: none; border: 0; font-family: inherit; font-weight: 700; font-size: 1.0625rem; border-radius: var(--tapn-radius-pill); padding: 1rem 1.5rem; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; transition: transform 100ms ease-out; }
.hub-btn:active { transform: scale(0.97); }
.hub-btn-brand { background: var(--ev-primary); color: #fff; box-shadow: 0 4px 16px var(--ev-primary-glow); }
.hub-btn-brand[aria-pressed="true"] { background: var(--ev-primary-light); color: var(--ev-primary-ink); box-shadow: none; }
.hub-btn-white { background: var(--tapn-surface-2); color: var(--ev-ink); font-size: 0.95rem; padding: 0.8rem 1rem; }
/* Outlined: same size as the white buttons; brand colour on text and edge (an
   inset shadow, so no border changes the box), no fill. Used for Register. */
.hub-btn-outline { background: var(--tapn-surface-1); color: var(--ev-primary-ink); box-shadow: inset 0 0 0 2px var(--ev-primary); font-size: 0.95rem; padding: 0.8rem 1rem; }
.hub-btn-outline[aria-pressed="true"] { background: var(--ev-primary-light); box-shadow: inset 0 0 0 2px transparent; }
.hub-btn-outline:disabled { color: var(--tapn-ink-subtle); box-shadow: inset 0 0 0 2px var(--ev-line-strong); background: var(--tapn-surface-2); cursor: default; transform: none; }
.hub-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.hub-btn-row > [hidden] { display: none; }
.hub-btn-row:has(> [hidden]) { grid-template-columns: 1fr; }
.hub-sheet .note { margin-top: 0.9rem; padding: 0.6rem 0.75rem; border-radius: 12px; background: rgba(201,138,18,0.12); color: #7d560b; font-size: 0.85rem; font-weight: 700; }
.hub-sheet [hidden] { display: none !important; }

@media (min-width: 981px) {
  .hub-brand { grid-template-columns: minmax(0, 1fr) 200px; padding: 1.75rem 2rem; }
  .hub-brand-img { width: 200px; height: 200px; }
  .hub-brand h2 { font-size: 2.25rem; }
  .hub-quick { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 40rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-seg .hub-seg-thumb, .hub-sheet, .hub-scrim, .hub-tick i { transition: opacity 200ms ease; }
}
@media (prefers-contrast: more) {
  .hub-group, .hub-list, .hub-brand, .hub-spk, .hub-next, .hub-empty, .hub-map, .hub-sheet { box-shadow: none; border: 1px solid var(--ev-line-strong); }
  .hub-panel, .hub2, .hub2 .ev-widget, .hub-tabs, .hub-quick button { border: 0; }
}

/* Brand card on phones: image becomes a banner above the copy; actions stack full width */
@media (max-width: 980px) {
  .hub-brand { grid-template-columns: 1fr; padding: 1rem; }
  .hub-brand-img { order: -1; width: 100%; height: 150px; border-radius: 14px; }
  .hub-brand .ev-hero-actions > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .hub2.card { padding: 1rem 0.9rem 5.5rem !important; }
}
.hub-facts svg, .hub-quick svg, .hub-li .ic svg, .hub-tabs button svg, .hub-sheet .facts svg { display: inline-block; }
.hub2 .ev-widget { padding: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.hub2 .ev-widget:hover { box-shadow: none; }
.hub2 .ev-widget-body { margin-top: 0.9rem; }

/* The assistant button steps aside while a sheet is up */
.hub2.is-sheet-open .ace-chat-fab, .hub2.is-sheet-open .ace-chat-window { display: none; }

.hub-li[hidden], .hub-empty[hidden], .hub-panel [hidden] { display: none !important; }

/* Desktop: the tab control leads the content even though it is rendered last */
@media (min-width: 981px) {
  .hub2.card { display: flex; flex-direction: column; gap: 1.25rem; }
  .hub2.card > .hub-tabs { order: -1; }
  .hub2.card > .ev-payment-banner { order: -2; }
}

/* Desktop rows carry the pills, so the circle steps back */
@media (min-width: 981px) { .hub2 .ev-item-side { display: none; } }

/* Phones: no card chrome around the hub — the panels are the page */
@media (max-width: 980px) {
  .hub2.card { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 0.25rem 0.75rem 5.5rem !important; margin: 0 !important; }
  .hub-panel { gap: 1rem; }
  .hub-brand { padding: 0.9rem; }
  .hub-list, .hub-group, .hub-spk, .hub-next, .hub-empty { border-radius: 16px; }
  .hub-slot { grid-template-columns: 3.6rem 1fr; gap: 0 0.5rem; }
  .hub2 .ev-timeline-item { padding: 0.7rem 0.35rem 0.7rem 0.8rem; }
  .hub2 .ev-timeline-item + .ev-timeline-item::after { left: 0.8rem; }
  .hub-tabs { grid-template-columns: repeat(var(--hub-tab-count, 5), 1fr); }
}

/* Text on brand fills follows --ev-on-primary (white, or ink when white would fail 3:1) */
.hub2 .hub-btn-brand, .hub2 .ev-hero-btn-primary, .hub2 .ev-sched-empty-cta { color: var(--ev-on-primary, #fff); }
.hub2 .hub-chip[aria-pressed="true"] .n { color: var(--ev-on-primary, #fff); }
.hub2 .hub-tick svg { stroke: var(--ev-on-primary, #fff); }

/* Filter chips meet the 44px touch floor on phones */
@media (max-width: 980px) { .hub-chip { min-height: 2.75rem; padding: 0.55rem 1rem; } }
.ev-item-desc { margin-top: 0.2rem; font-size: 0.78rem; line-height: 1.35; color: var(--ev-muted); }

/* ── Session registration button (next to Plan to attend) ─────────────── */
.ev-item-register {
    /* size and type come from the shared Plan/Rate rules; only the colours differ */
    color: var(--tapn-primary-ink);
    border-color: var(--ev-primary);
}
.ev-item-register:hover:not(:disabled) { background: var(--ev-soft); }
.ev-item-register.is-registered { background: var(--ev-primary-light); border-color: transparent; color: var(--ev-primary-ink); }
.ev-item-register:disabled { background: var(--tapn-surface-2); color: var(--tapn-ink-subtle); border-color: var(--ev-line-strong); box-shadow: none; cursor: default; }
.ev-item-register:focus-visible { outline: 3px solid rgba(13, 164, 157, 0.4); outline-offset: 2px; }
.ev-item-spots { font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.ev-item-spots:empty { display: none; }
.ev-timeline-item.is-registered .ev-item-title::after { content: "Registered"; margin-left: 0.5rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tapn-primary-ink); vertical-align: 2px; }

/* ── Tier access: locked and unlocked sessions ────────────────────────── */
.ev-tier-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; margin-right: 0.45rem; vertical-align: -4px; }
.ev-tier-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-tier-badge.is-locked { background: rgba(201, 138, 18, 0.16); color: #9a6b0c; }
.ev-tier-badge.is-unlocked { background: rgba(201, 138, 18, 0.16); color: #9a6b0c; }
.ev-timeline-item.is-tiered { box-shadow: 0 0 0 1px rgba(201, 138, 18, 0.35), 0 0 16px rgba(201, 138, 18, 0.22); animation: evTierGlow 2.6s ease-in-out infinite; }
.ev-timeline-item.is-locked { opacity: 0.92; }
.ev-timeline-item.is-locked .ev-item-title { color: var(--ev-muted); }
.ev-item-locknote { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(201, 138, 18, 0.10); color: #9a6b0c; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; }
.ev-item-locknote svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes evTierGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(201, 138, 18, 0.35), 0 0 10px rgba(201, 138, 18, 0.14); } 50% { box-shadow: 0 0 0 1px rgba(201, 138, 18, 0.55), 0 0 22px rgba(201, 138, 18, 0.34); } }
@media (prefers-reduced-motion: reduce) { .ev-timeline-item.is-tiered { animation: none; } }
