
    /* ===== CSS Variables ===== */
    :root {
      /* Palette: Slate & Blue (matching RSS Reader) */
      --bg: #0f172a;           /* Slate 900 */
      --card: #1e293b;         /* Slate 800 */
      --surface-hover: #334155; /* Slate 700 */
      --border: #334155;       /* Slate 700 */

      --accent: #3b82f6;       /* Blue 500 (Primary) */
      --accent-hover: #2563eb; /* Blue 600 */

      --highlight: #f43f5e;    /* Rose 500 (Actions/Highlights) */

      --text: #f1f5f9;         /* Slate 100 */
      --text-muted: #94a3b8;   /* Slate 400 */

      --success: #10b981;      /* Emerald 500 - Going */
      --warning: #f59e0b;      /* Amber 500 - Maybe */
      --error: #ef4444;        /* Red 500 */
      --info: #3b82f6;         /* Blue 500 */

      --nav-height: 64px;
      --nav-height-mobile: 60px;
    }

    /* ===== Reset & Base ===== */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: var(--accent);
      text-decoration: none;
      transition: color 0.2s;
    }

    a:hover {
      color: var(--accent-hover);
    }

    /* The hidden attribute must win over component display rules (a .btn-block
       button stayed visible with hidden set). */
    [hidden] {
      display: none !important;
    }

    /* Form controls use the page font (browsers default textareas to monospace). */
    input,
    select,
    textarea,
    button {
      font-family: inherit;
    }

    :where(a, button, input, select, textarea, summary):focus-visible {
      outline: 3px solid rgba(96, 165, 250, 0.9);
      outline-offset: 2px;
    }

    .skip-link {
      position: fixed;
      top: 8px;
      left: 8px;
      z-index: 2000;
      padding: 10px 14px;
      border-radius: 8px;
      background: var(--text);
      color: var(--bg);
      font-weight: 700;
      transform: translateY(-160%);
      transition: transform 0.15s ease;
    }

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

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 20px;
      padding-top: calc(var(--nav-height) + 20px);
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
      color: var(--text);
      line-height: 1.3;
      font-weight: 600;
    }

    h1 { font-size: 1.8em; margin-bottom: 20px; }
    h2 { font-size: 1.5em; margin-bottom: 15px; }
    h3 { font-size: 1.25em; margin-bottom: 10px; }

    p { margin-bottom: 1em; }

    /* ===== Navigation Bar ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-height);
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      z-index: 1000;
      display: flex;
      align-items: center;
      padding: 0 20px;
    }

    .navbar-container {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100%;
    }

    .navbar-start {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
      font-weight: 700;
      font-size: 1.2em;
      text-decoration: none;
    }

    .navbar-brand-icon {
      color: var(--accent);
      font-size: 1.2em;
    }

    .navbar-subtitle {
      color: var(--text-muted);
      font-weight: 400;
      font-size: 0.8em;
      margin-left: 8px;
      padding-left: 10px;
      border-left: 1px solid var(--border);
      display: none;
    }

    @media (min-width: 768px) {
      .navbar-subtitle { display: inline-block; }
    }

    .navbar-menu {
      display: none;
      gap: 6px;
    }

    @media (min-width: 768px) {
      .navbar-menu { display: flex; }
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      color: var(--text-muted);
      font-size: 0.95em;
      font-weight: 500;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .nav-item:hover {
      color: var(--text);
      background: var(--surface-hover);
    }

    .nav-item.active {
      color: var(--accent);
      background: rgba(59, 130, 246, 0.1);
    }

    .navbar-end {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .user-menu {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }

    .user-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      color: white;
      border: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.9em;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .user-avatar:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .user-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      min-width: 180px;
      box-shadow: 0 10px 30px -5px rgba(0,0,0,0.4);
      z-index: 1000;
      display: none;
      overflow: hidden;
    }

    .user-dropdown.show { display: block; }

    .user-dropdown-header {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-weight: 600;
      color: var(--text);
      font-size: 0.9em;
    }

    .user-dropdown-item {
      min-height: 44px;
      display: flex;
      align-items: center;
      padding: 10px 16px;
      color: var(--text);
      text-decoration: none;
      transition: background 0.15s;
      font-size: 0.9em;
    }

    .user-dropdown-item:hover {
      background: var(--surface-hover);
    }

    .user-dropdown-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    .user-dropdown-section {
      padding: 6px 16px 4px;
      font-size: 0.7em;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      opacity: 0.7;
    }

    .user-dropdown-item.logout {
      color: var(--error);
    }

    .login-btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      padding: 6px 16px;
      background: var(--accent);
      color: white;
      border-radius: 6px;
      font-weight: 600;
      font-size: 0.9em;
    }

    .login-btn:hover {
      background: var(--accent-hover);
      color: white;
    }

    .admin-badge {
      display: inline-block;
      background: #c2410c;
      color: white;
      font-size: 0.7em;
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 8px;
      font-weight: 700;
      text-transform: uppercase;
      vertical-align: middle;
    }

    /* ===== Mobile Bottom Navigation ===== */
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(15, 23, 42, 0.95);
      border-top: 1px solid var(--border);
      padding-bottom: max(10px, env(safe-area-inset-bottom));
      padding-top: 10px;
      z-index: 1000;
      backdrop-filter: blur(10px);
    }

    .bottom-nav-inner {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 600px;
      margin: 0 auto;
    }

    .bottom-nav-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 2px 6px;
      color: var(--text-muted);
      background: transparent;
      border: 0;
      text-decoration: none;
      font-size: 0.75em;
      font-family: inherit;
      transition: color 0.2s;
      min-width: 0;
      min-height: 44px;
      flex: 1 1 0;
      cursor: pointer;
    }

    .bottom-nav-link:hover,
    .bottom-nav-link.active {
      color: var(--accent);
    }

    .bottom-nav-link .nav-icon {
      font-size: 1.4em;
      font-weight: 400;
    }

    /* ===== Event-Specific Bottom Nav ===== */
    .event-nav-inner {
      position: relative;
    }

    .event-nav-rsvp-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 56px;
      height: 56px;
      margin-top: -20px;
      cursor: pointer;
      font-size: 0.65em;
      font-weight: 600;
      box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
      transition: transform 0.2s, box-shadow 0.2s;
      justify-content: center;
    }

    .event-nav-rsvp-btn:active {
      transform: scale(0.95);
    }

    .event-nav-rsvp-btn.rsvp-active {
      background: var(--success);
      box-shadow: 0 2px 12px rgba(34, 197, 94, 0.4);
    }

    .event-nav-manage-btn {
      background: var(--highlight);
      box-shadow: 0 2px 12px rgba(244, 63, 94, 0.35);
    }

    .event-nav-rsvp-icon {
      font-size: 1.6em;
      line-height: 1;
    }

    @media (max-width: 768px) {
      .bottom-nav { display: block; }
      .navbar { height: var(--nav-height-mobile); padding: 0 15px; }
      .navbar-subtitle { display: none; }
      .navbar-menu { display: none !important; }
      .navbar-end .user-menu > .btn { display: none; }
      .container { padding-bottom: 80px; }
      footer { margin-bottom: 60px; }
    }

    /* ===== Cards ===== */
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
      border-color: var(--surface-hover);
    }

    .card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .card-link:hover { text-decoration: none; }

    /* ===== Event Cards ===== */
    .event-card {
      display: flex;
      gap: 20px;
    }

    .event-card-image {
      flex-shrink: 0;
      width: 120px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
      background: var(--surface-hover);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .event-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .event-card-image .placeholder-icon {
      font-size: 2.5em;
      color: var(--text-muted);
    }

    .event-card-content {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .event-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .event-card-title {
      font-weight: 700;
      font-size: 1.15em;
      color: var(--text);
      line-height: 1.4;
      margin: 0;
    }

    .event-card-badges {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .event-card-datetime {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--accent);
      font-weight: 600;
      font-size: 0.95em;
      margin-bottom: 6px;
    }

    .event-card-location {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--text-muted);
      font-size: 0.9em;
      margin-bottom: 10px;
    }

    .event-card-description {
      color: var(--text-muted);
      font-size: 0.9em;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.5;
    }

    .event-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
    }

    .event-card-rsvps {
      display: flex;
      gap: 12px;
      font-size: 0.85em;
    }

    .rsvp-count {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .rsvp-count.going { color: var(--success); }
    .rsvp-count.maybe { color: var(--warning); }

    .event-card-creator {
      font-size: 0.8em;
      color: var(--text-muted);
    }

    /* ===== Badges ===== */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 99px;
      font-size: 0.75em;
      font-weight: 600;
      white-space: nowrap;
    }

    .badge-primary { background: var(--accent); color: white; }
    .badge-success { background: var(--success); color: #000; }
    .badge-warning { background: var(--warning); color: #000; }
    .badge-error { background: var(--error); color: white; }
    .badge-muted { background: var(--surface-hover); color: var(--text-muted); }

    /* Status badges */
    .badge-published { background: var(--success); color: #000; }
    .badge-draft { background: var(--surface-hover); color: var(--text-muted); }
    .badge-cancelled { background: var(--error); color: white; }
    .badge-completed { background: var(--text-muted); color: var(--bg); }

    /* Visibility badges */
    .badge-public { background: var(--accent); color: white; }
    .badge-private { background: var(--warning); color: #000; }
    .badge-unlisted { background: var(--surface-hover); color: var(--text-muted); }

    /* Category + audience badges */
    .badge-category { background: var(--accent); color: #fff; text-transform: none; }
    .badge-audience {
      background: var(--surface-hover);
      color: var(--text);
      border: 1px solid var(--border);
    }

    /* ===== Class / workshop / convention detail ===== */
    .event-host-org {
      font-size: 1.05em;
      font-weight: 600;
      color: var(--text);
      margin: 0 0 2px;
      /* Never truncate — the org name shows in full. */
      overflow-wrap: anywhere;
    }
    .event-creator {
      margin: 2px 0 0;
      font-size: 0.9em;
      color: var(--text-muted);
    }
    .event-class-details .detail-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px;
      padding: 6px 0;
      border-bottom: 1px solid var(--border);
    }
    .event-class-details .detail-row:last-child { border-bottom: none; }
    .detail-label {
      flex: 0 0 auto;
      min-width: 110px;
      color: var(--text-muted);
      font-size: 0.85em;
      font-weight: 600;
    }
    .price-amount { font-weight: 700; font-size: 1.05em; }
    .price-note { color: var(--text-muted); font-size: 0.85em; }
    .audience-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
    .member-access-note { color: var(--text); }

    /* At-a-glance facts strip (scannable summary above the card grid) */
    .event-facts {
      display: flex;
      flex-wrap: wrap;
      margin: 0 0 24px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      overflow: hidden;
    }
    .event-facts .fact {
      flex: 1 1 auto;
      min-width: 150px;
      padding: 12px 18px;
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .event-facts .fact:last-child { border-right: none; }
    .event-facts .fact-label {
      font-size: 0.75em;
      color: var(--text-muted);
      font-weight: 500;
    }
    .event-facts .fact-value {
      font-weight: 600;
      font-size: 0.98em;
      line-height: 1.3;
      overflow-wrap: anywhere;
    }
    .fact-chip {
      display: inline-block;
      margin-left: 4px;
      padding: 1px 7px;
      border-radius: 99px;
      font-size: 0.72em;
      font-weight: 600;
      vertical-align: middle;
      background: color-mix(in oklab, var(--success) 18%, var(--card));
      color: var(--success);
      border: 1px solid color-mix(in oklab, var(--success) 40%, transparent);
    }
    @media (max-width: 560px) {
      .event-facts .fact {
        flex-basis: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
      .event-facts .fact:nth-last-child(-n+1) { border-bottom: none; }
    }

    /* Hero image near the top of the event page */
    .event-hero {
      margin: 0 0 20px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--card);
      line-height: 0;
    }
    .event-hero img {
      display: block;
      width: 100%;
      max-height: 380px;
      object-fit: cover;
    }

    /* Monospace identifier values (CAGE / UEI) */
    .mono-value {
      font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.02em;
      overflow-wrap: anywhere;
    }

    /* Purchasing / GPC info callout inside Details */
    .event-class-details .gpc-note {
      border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--border));
      background: color-mix(in oklab, var(--accent) 8%, var(--card));
      border-radius: 8px;
      padding: 10px 12px;
      margin-top: 8px;
    }
    .event-class-details .gpc-note span:not(.detail-label) {
      font-size: 0.9em;
      line-height: 1.55;
    }

    /* "Brief your leadership" card — the key CTA for the service-member persona */
    .leadership-brief {
      border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
      background: color-mix(in oklab, var(--accent) 6%, var(--card));
    }
    .lb-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .lb-head h3 { margin: 0; }
    .lb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .lb-intro { color: var(--text-muted); font-size: 0.9em; margin: 8px 0 14px; line-height: 1.5; }
    .lb-bluf { margin: 0 0 10px; line-height: 1.6; }
    .lb-why { margin-top: 12px; }
    .lb-why .detail-label { display: block; margin-bottom: 4px; }
    .lb-why p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
    .lb-questions { margin-top: 14px; }
    .lb-questions .detail-label { display: block; margin-bottom: 6px; }
    .lb-questions ul {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .lb-questions li {
      position: relative;
      padding-left: 18px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }
    .lb-questions li::before {
      content: "?";
      position: absolute;
      left: 0;
      top: 0;
      font-weight: 700;
      color: var(--accent);
    }
    .lb-foot { color: var(--text-muted); font-size: 0.8em; margin: 14px 0 0; }

    /* Print: drop the copy/print buttons so a printed page reads clean */
    @media print {
      .lb-actions { display: none; }
    }

    /* Contractor identifiers (CAGE / UEI) under the host org */
    .event-credentials {
      margin: 0 0 2px;
      font-size: 0.8em;
      color: var(--text-muted);
      letter-spacing: 0.02em;
    }
    .event-credentials span {
      color: var(--text);
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
    }

    /* Stacked detail block (label above a list/long value) */
    .event-class-details .detail-block {
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }
    .event-class-details .detail-block:last-child { border-bottom: none; }
    .event-class-details .detail-block .detail-label { display: block; margin-bottom: 6px; }
    .kit-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 4px 16px;
    }
    .kit-list li {
      position: relative;
      padding-left: 16px;
      font-size: 0.92em;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }
    .kit-list li::before {
      content: "";
      position: absolute;
      left: 2px;
      top: 0.62em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
    }

    /* ===== Agenda ===== */
    .agenda-day { margin-bottom: 16px; }
    .agenda-day:last-child { margin-bottom: 0; }
    .agenda-day-heading {
      font-size: 0.95em;
      font-weight: 700;
      color: var(--text);
      margin: 0 0 8px;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--border);
    }
    .agenda-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .agenda-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 6px 0;
    }
    .agenda-item-time {
      flex: 0 0 auto;
      min-width: 96px;
      color: var(--text-muted);
      font-size: 0.85em;
      font-variant-numeric: tabular-nums;
      padding-top: 1px;
    }
    .agenda-item-body { flex: 1 1 auto; min-width: 0; }
    .agenda-item-title { font-weight: 600; overflow-wrap: anywhere; }
    .agenda-item-loc,
    .agenda-item-desc {
      font-size: 0.85em;
      color: var(--text-muted);
      margin-top: 2px;
      overflow-wrap: anywhere;
    }
    .agenda-item-actions { flex: 0 0 auto; display: flex; gap: 6px; }
    .agenda-section .text-muted,
    .text-muted { color: var(--text-muted); }

    /* Agenda editor: event-aware scheduling and quick-start templates */
    .agenda-event-window {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin: 0 0 20px;
      padding: 13px 14px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: var(--bg);
    }

    .agenda-event-window__copy {
      min-width: 0;
      display: grid;
      gap: 1px;
      color: var(--text-muted);
      font-size: 0.86rem;
      line-height: 1.45;
    }

    .agenda-event-window__copy strong {
      color: var(--text);
      font-size: 0.94rem;
      font-weight: 650;
      overflow-wrap: anywhere;
    }

    .agenda-event-window__label {
      color: var(--text-muted);
      font-size: 0.76rem;
      font-weight: 700;
    }

    .agenda-event-window__timezone {
      flex: 0 1 auto;
      max-width: 44%;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--surface-hover);
      color: var(--text-muted);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .agenda-template-picker {
      min-width: 0;
      margin: 0 0 20px;
      padding: 0;
      border: 0;
    }

    .agenda-template-picker legend {
      margin: 0 0 2px;
      color: var(--text);
      font-size: 0.9rem;
      font-weight: 600;
    }

    .agenda-template-picker > .form-help {
      margin-top: 0;
    }

    .agenda-template-list {
      min-width: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .agenda-template {
      min-width: 0;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 11px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 0.84rem;
      font-weight: 600;
      line-height: 1.25;
      text-align: left;
      cursor: pointer;
      transition: border-color 160ms ease-out, background-color 160ms ease-out;
    }

    .agenda-template span:last-child {
      color: var(--text-muted);
      font-size: 0.76rem;
      font-variant-numeric: tabular-nums;
      font-weight: 500;
      white-space: nowrap;
    }

    .agenda-template:hover {
      border-color: var(--accent);
      background: var(--surface-hover);
    }

    .content-modal__grid.agenda-schedule-grid {
      grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
    }

    .agenda-schedule-status {
      min-height: 44px;
      display: flex;
      align-items: center;
      margin: -2px 0 18px;
      padding: 9px 11px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg);
      color: var(--text-muted);
      font-size: 0.84rem;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .agenda-schedule-status[data-state="ok"] {
      border-color: rgba(16, 185, 129, 0.48);
      color: #a7f3d0;
    }

    .agenda-schedule-status[data-state="warning"] {
      border-color: rgba(245, 158, 11, 0.55);
      color: #fde68a;
    }

    .agenda-schedule-status[data-state="error"] {
      border-color: rgba(239, 68, 68, 0.62);
      color: #fecaca;
    }

    .agenda-derived-field .form-control[readonly] {
      color: var(--text-muted);
      cursor: default;
    }

    /* ===== Slides & documents ===== */
    .badge-doc { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); }
    .doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .doc-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
    .doc-item-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .doc-item-info { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
    .doc-item-title { font-weight: 600; overflow-wrap: anywhere; }
    .doc-item-size { color: var(--text-muted); font-size: 0.8em; }
    .doc-item-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
    .doc-preview {
      margin-top: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--bg);
    }
    .doc-preview iframe {
      display: block;
      width: 100%;
      height: min(75vh, 640px);
      border: 0;
    }

    /* Multi-select checkbox grid (forms) */
    .checkbox-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 6px 12px;
      margin-top: 4px;
    }
    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.9em;
      cursor: pointer;
    }
    .checkbox-label input { width: auto; }

    /* ===== RSVP Buttons ===== */
    .rsvp-buttons {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .rsvp-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 16px;
      border: 2px solid var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.9em;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
    }

    .rsvp-btn:hover {
      border-color: var(--text-muted);
      color: var(--text);
    }

    .rsvp-btn.active {
      border-width: 2px;
    }

    .rsvp-btn.going.active {
      background: var(--success);
      border-color: var(--success);
      color: #000;
    }

    .rsvp-btn.going:hover:not(.active) {
      border-color: var(--success);
      color: var(--success);
    }

    .rsvp-btn.maybe.active {
      background: var(--warning);
      border-color: var(--warning);
      color: #000;
    }

    .rsvp-btn.maybe:hover:not(.active) {
      border-color: var(--warning);
      color: var(--warning);
    }

    .rsvp-btn.not-going.active {
      background: var(--surface-hover);
      border-color: var(--text-muted);
      color: var(--text-muted);
    }

    .rsvp-btn.not-going:hover:not(.active) {
      border-color: var(--text-muted);
    }

    /* ===== Buttons ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 20px;
      border: 1px solid transparent;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.95em;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.2s;
      min-height: 44px;
    }

    .btn-primary {
      background: var(--accent);
      color: white;
    }

    .btn-primary:hover {
      background: var(--accent-hover);
      color: white;
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: transparent;
      border-color: var(--border);
      color: var(--text);
    }

    .btn-secondary:hover {
      background: var(--surface-hover);
      border-color: var(--text-muted);
    }

    .btn-danger {
      background: var(--error);
      color: white;
    }

    .btn-danger:hover {
      background: #dc2626;
      color: white;
    }

    .btn-sm {
      padding: 6px 12px;
      font-size: 0.85em;
      min-height: 32px;
    }

    .navbar-end .btn-sm {
      min-height: 44px;
    }

    .btn-lg {
      padding: 14px 28px;
      font-size: 1.1em;
      min-height: 48px;
    }

    /* ===== Forms ===== */
    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      font-size: 0.95em;
      color: var(--text);
    }

    .form-label.required::after {
      content: ' *';
      color: var(--error);
    }

    .form-control {
      width: 100%;
      padding: 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-size: 1em;
      transition: all 0.2s;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .form-control::placeholder {
      color: var(--text-muted);
    }

    textarea.form-control {
      min-height: 120px;
      resize: vertical;
    }

    .form-text {
      font-size: 0.85em;
      color: var(--text-muted);
      margin-top: 6px;
    }

    .form-error {
      font-size: 0.85em;
      color: var(--error);
      margin-top: 6px;
    }

    /* Date/Time inputs */
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"] {
      color-scheme: dark;
    }

    /* Form row for date/time pairs */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    @media (max-width: 480px) {
      .form-row { grid-template-columns: 1fr; }
    }

    /* Select styling */
    select.form-control {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
      padding-right: 40px;
    }

    /* ===== Grid Layouts ===== */
    .events-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 768px) {
      .events-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .events-grid.wide {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    @media (max-width: 768px) {
      .grid-2, .grid-3 { grid-template-columns: 1fr; }
    }

    /* ===== Stats Row ===== */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 30px;
    }

    @media (max-width: 768px) {
      .stats-row { grid-template-columns: repeat(2, 1fr); }
    }

    .stat-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
    }

    .stat-value {
      font-size: 2em;
      font-weight: 700;
      color: var(--accent);
      line-height: 1.2;
    }

    .stat-label {
      font-size: 0.9em;
      color: var(--text-muted);
      margin-top: 5px;
    }

    /* ===== Section Styling ===== */
    .section {
      margin-bottom: 40px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .section-title {
      font-size: 1.4em;
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 0;
    }

    .section-icon {
      color: var(--accent);
    }

    /* ===== Page Header ===== */
    .page-header {
      margin-bottom: 30px;
    }

    .page-header-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      flex-wrap: wrap;
    }

    .page-title {
      font-size: 1.8em;
      margin: 0;
    }

    .page-subtitle {
      color: var(--text-muted);
      margin-top: 8px;
    }

    /* ===== Filter Bar ===== */
    .filter-bar {
      display: flex;
      gap: 12px;
      margin-bottom: 25px;
      flex-wrap: wrap;
      align-items: center;
    }

    .filter-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .filter-tab {
      padding: 6px 16px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 99px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9em;
      transition: all 0.2s;
    }

    .filter-tab:hover {
      border-color: var(--text-muted);
      color: var(--text);
    }

    .filter-tab.active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

    /* ===== Tags ===== */
    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      display: inline-block;
      padding: 2px 8px;
      background: rgba(148, 163, 184, 0.1);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 0.75em;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .tag:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

    /* ===== Empty State ===== */
    .empty-state {
      text-align: center;
      padding: 80px 20px;
      color: var(--text-muted);
    }

    .empty-state-icon {
      font-size: 4em;
      margin-bottom: 20px;
      opacity: 0.3;
    }

    .empty-state h3 {
      color: var(--text);
      margin-bottom: 10px;
    }

    /* ===== Error State ===== */
    .error-message {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid var(--error);
      color: var(--error);
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .success-message {
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid var(--success);
      color: var(--success);
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    /* ===== Modal ===== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(4px);
      z-index: 1100;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      max-height: 85vh;
      overflow-y: auto;
      box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    }

    .modal-header {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title { margin: 0; font-size: 1.25em; }
    .modal-close { background: none; border: none; font-size: 1.5em; color: var(--text-muted); cursor: pointer; }
    .modal-close:hover { color: var(--text); }
    .modal-body { padding: 20px; }
    .modal-footer { padding: 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

    /* ===== Event content management dialogs ===== */
    body.content-modal-open {
      overflow: hidden;
    }

    .content-modal {
      position: fixed;
      inset: 0;
      z-index: 1100;
      display: grid;
      place-items: center;
      padding: clamp(12px, 3vw, 28px);
      background: rgba(2, 6, 23, 0.84);
    }

    .content-modal.hidden {
      display: none !important;
    }

    /* A transformed ancestor becomes the containing block for fixed children.
       Event cards lift on hover, so suppress that lift while their dialog is open. */
    .card:has(.content-modal:not(.hidden)) {
      transform: none;
    }

    .content-modal__panel {
      width: min(100%, 680px);
      max-height: calc(100dvh - clamp(24px, 6vw, 56px));
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.75);
    }

    .content-modal__header {
      flex: 0 0 auto;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      padding: 22px 24px 18px;
      border-bottom: 1px solid var(--border);
    }

    .content-modal__heading {
      margin: 0;
      font-size: 1.25rem;
      text-wrap: balance;
    }

    .content-modal__close {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: -10px -10px 0 0;
      padding: 0;
      border: 1px solid transparent;
      border-radius: 9px;
      background: transparent;
      color: var(--text-muted);
      font: inherit;
      font-size: 1.65rem;
      line-height: 1;
      cursor: pointer;
      transition: background-color 160ms ease-out, color 160ms ease-out;
    }

    .content-modal__close:hover {
      background: var(--surface-hover);
      color: var(--text);
    }

    .content-modal__form {
      min-height: 0;
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
    }

    .content-modal__body {
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 20px 24px 24px;
      scrollbar-gutter: stable;
    }

    .content-modal__intro {
      max-width: 62ch;
      margin: 0 0 20px;
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.55;
      text-wrap: pretty;
    }

    .content-modal__grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 16px;
    }

    .content-modal .form-group {
      min-width: 0;
      margin-bottom: 18px;
    }

    .content-modal .form-label,
    .content-modal label {
      display: block;
      margin-bottom: 7px;
      color: var(--text);
      font-size: 0.9rem;
      font-weight: 600;
    }

    .content-modal .form-control {
      min-width: 0;
      min-height: 44px;
      font-family: inherit;
      font-size: 1rem;
      color-scheme: dark;
    }

    .content-modal textarea.form-control {
      min-height: 104px;
    }

    .content-modal input[type="file"].form-control {
      padding: 6px;
      cursor: pointer;
    }

    .content-modal input[type="file"].form-control::file-selector-button {
      min-height: 44px;
      margin-right: 12px;
      padding: 8px 14px;
      border: 0;
      border-radius: 7px;
      background: var(--surface-hover);
      color: var(--text);
      font: inherit;
      font-weight: 600;
      cursor: pointer;
    }

    .content-modal .form-help {
      margin: 7px 0 0;
      color: var(--text-muted);
      font-size: 0.82rem;
      line-height: 1.45;
      text-wrap: pretty;
    }

    .content-modal__advanced {
      margin: 2px 0 18px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .content-modal__advanced summary {
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
    }

    .content-modal__advanced summary::-webkit-details-marker {
      display: none;
    }

    .content-modal__advanced summary::after {
      content: "+";
      color: var(--accent);
      font-size: 1.15rem;
      font-weight: 500;
    }

    .content-modal__advanced[open] summary::after {
      content: "−";
    }

    .content-modal__advanced-content {
      padding: 2px 0 4px;
    }

    .content-modal__status:not(:empty) {
      display: block;
      margin: 0 0 16px;
      padding: 10px 12px;
      border: 1px solid var(--error);
      border-radius: 8px;
      background: rgba(239, 68, 68, 0.1);
      color: #fecaca;
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .content-modal__footer {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      padding: 16px 24px;
      padding-bottom: max(16px, env(safe-area-inset-bottom));
      border-top: 1px solid var(--border);
      background: var(--card);
    }

    .content-modal__footer .btn,
    .content-modal__trigger {
      min-height: 44px;
    }

    .content-modal__trigger.btn-primary {
      background: var(--accent-hover);
    }

    .content-modal__trigger.btn-primary:hover {
      background: #1d4ed8;
    }

    .content-modal__footer .btn-primary {
      background: var(--accent-hover);
    }

    .content-modal__footer .btn-primary:hover {
      background: #1d4ed8;
    }

    .content-modal .btn[aria-disabled="true"] {
      cursor: wait;
      opacity: 0.72;
    }

    .content-modal :is(button, input, select, textarea, summary):focus-visible {
      outline: 3px solid rgba(96, 165, 250, 0.85);
      outline-offset: 2px;
    }

    @media (max-width: 600px) {
      .content-modal {
        place-items: end center;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
      }

      .content-modal__panel {
        width: 100%;
        max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 14px 14px 0 0;
      }

      .content-modal__header {
        padding: 18px 16px 14px;
      }

      .content-modal__body {
        padding: 18px 16px 20px;
        scrollbar-gutter: auto;
      }

      .content-modal__grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .content-modal__grid.agenda-schedule-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .agenda-event-window {
        gap: 10px;
      }

      .agenda-event-window__timezone {
        max-width: 42%;
      }

      .agenda-template-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
      }

      .agenda-template {
        width: 100%;
        justify-content: space-between;
      }

      .content-modal__footer {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
      }

      .content-modal__footer .btn {
        flex: 1 1 0;
        padding-inline: 12px;
      }

      .agenda-item-actions .btn,
      .doc-item-actions .btn {
        min-height: 44px;
      }
    }

    @media (max-width: 390px) {
      .agenda-event-window {
        flex-direction: column;
      }

      .agenda-event-window__timezone {
        max-width: 100%;
      }

    }

    .guest-policy {
      margin: 20px 0 0;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 10px;
    }

    .guest-policy legend {
      padding: 0 8px;
      font-weight: 700;
      color: var(--text);
    }

    .guest-policy-config {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px 16px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .guest-policy-config[hidden] {
      display: none;
    }

    .guest-policy-message,
    .guest-policy-summary {
      grid-column: 1 / -1;
    }

    .guest-policy-summary {
      margin: 0;
      padding: 12px 14px;
      border-radius: 8px;
      background: var(--bg);
      color: var(--text-muted);
      line-height: 1.5;
    }

    .guest-policy select,
    .guest-policy textarea,
    #share-preview-mode,
    .plus-one-editor select,
    .plus-one-editor input {
      min-height: 44px;
    }

    .plus-ones-inline {
      margin-bottom: 12px;
    }
    .plus-one-editor {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .plus-one-editor .form-label {
      margin: 0;
    }

    .plus-one-editor .btn {
      min-height: 44px;
    }

    .attendee-guest-names {
      display: block;
      margin-top: 3px;
      color: var(--text-muted);
      font-size: 0.82em;
    }

    .locked-event-preview {
      max-width: 720px;
      margin: clamp(32px, 9vh, 96px) auto;
      padding: clamp(24px, 5vw, 48px);
    }

    .locked-event-kicker {
      margin: 0 0 8px;
      color: var(--text-muted);
      font-weight: 700;
    }

    .locked-event-preview h1 {
      margin-top: 0;
    }

    .locked-event-date,
    .locked-event-location {
      margin: 6px 0;
      color: var(--text-muted);
    }

    .locked-event-notice {
      display: grid;
      gap: 4px;
      margin: 24px 0;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg);
    }

    .locked-event-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
    }

    @media (max-width: 640px) {
      .guest-policy-config {
        grid-template-columns: 1fr;
      }

      .locked-event-actions .btn {
        width: 100%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .content-modal__trigger {
        transition: none !important;
        transform: none !important;
      }

      .content-modal *,
      .content-modal *::before,
      .content-modal *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
      }

      .content-modal .btn:hover {
        transform: none;
      }

      .toast {
        animation: none !important;
      }
    }

    /* ===== Toast Notifications ===== */
    .toast-container {
      position: fixed;
      top: calc(var(--nav-height) + 20px);
      right: 20px;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast {
      background: var(--card);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 12px 16px;
      border-radius: 8px;
      box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 300px;
      animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    /* Status = full colored border + subtle same-hue tint (not a side stripe). */
    .toast-success { border-color: var(--success); background: color-mix(in oklab, var(--success) 12%, var(--card)); }
    .toast-error { border-color: var(--error); background: color-mix(in oklab, var(--error) 12%, var(--card)); }
    .toast-warning { border-color: var(--warning); background: color-mix(in oklab, var(--warning) 14%, var(--card)); }
    .toast-info { border-color: var(--info); background: color-mix(in oklab, var(--info) 12%, var(--card)); }

    @media (max-width: 768px) {
      .toast-container {
        top: auto;
        bottom: 90px;
        left: 15px;
        right: 15px;
      }
      .toast { min-width: auto; }
    }

    /* ===== Attendee List ===== */
    .attendee-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .attendee-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      background: var(--bg);
      border-radius: 6px;
    }

    .attendee-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .attendee-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--surface-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8em;
      font-weight: 600;
      color: var(--text-muted);
    }

    .attendee-name {
      font-weight: 500;
    }

    .attendee-status {
      font-size: 0.85em;
      padding: 2px 8px;
      border-radius: 4px;
    }

    .attendee-status.going {
      background: rgba(16, 185, 129, 0.2);
      color: var(--success);
    }

    .attendee-status.maybe {
      background: rgba(245, 158, 11, 0.2);
      color: var(--warning);
    }

    /* ===== Poll Styles ===== */
    .poll-container {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 20px;
    }

    .poll-title {
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .poll-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .poll-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .poll-option:hover {
      border-color: var(--accent);
    }

    .poll-option.selected {
      border-color: var(--accent);
      background: rgba(59, 130, 246, 0.1);
    }

    .poll-votes {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9em;
      color: var(--text-muted);
    }

    /* ===== Footer ===== */
    footer {
      text-align: center;
      padding: 40px 0;
      color: var(--text-muted);
      font-size: 0.9em;
      border-top: 1px solid var(--border);
      margin-top: 60px;
    }

    footer a {
      color: var(--text-muted);
      text-decoration: underline;
    }

    footer a:hover {
      color: var(--accent);
    }

    /* ===== Utility Classes ===== */
    .text-muted { color: var(--text-muted); }
    .text-center { text-align: center; }
    .text-right { text-align: right; }
    .text-success { color: var(--success); }
    .text-warning { color: var(--warning); }
    .text-error { color: var(--error); }

    .hidden { display: none !important; }
    .mt-2 { margin-top: 8px; }
    .mt-4 { margin-top: 16px; }
    .mb-2 { margin-bottom: 8px; }
    .mb-4 { margin-bottom: 16px; }

    /* ===== Mobile Responsive ===== */
    @media (max-width: 768px) {
      .event-card {
        flex-direction: column;
        gap: 12px;
      }

      .event-card-image {
        width: 100%;
        height: 180px;
      }

      .event-card-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .event-card-badges {
        order: -1;
        margin-bottom: 8px;
      }

      .rsvp-buttons {
        width: 100%;
      }

      .rsvp-btn {
        flex: 1;
        min-width: 0;
      }

      .page-header-row {
        flex-direction: column;
        align-items: stretch;
      }

      .page-header-row .btn {
        width: 100%;
      }

      .filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 8px;
      }

      .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
      }
    }

    @media (max-width: 480px) {
      .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .stat-card {
        padding: 15px 10px;
      }

      .stat-value {
        font-size: 1.5em;
      }

      .rsvp-buttons {
        flex-direction: column;
      }

      .rsvp-btn {
        width: 100%;
      }
    }

    /* ===== Guest RSVP Styles ===== */
    .guest-rsvp-section {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
    }

    .guest-rsvp-section h4 {
      font-size: 1em;
      color: var(--text);
      margin-bottom: 12px;
    }

    .guest-rsvp-section .form-group {
      margin-bottom: 10px;
    }

    .guest-rsvp-section .form-control {
      width: 100%;
      padding: 10px 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 0.9em;
    }

    .guest-rsvp-section .form-control:focus {
      outline: none;
      border-color: var(--accent);
    }

    .guest-rsvp-section .form-control::placeholder {
      color: var(--text-muted);
    }

    .guest-rsvp-section textarea.form-control {
      resize: vertical;
      min-height: 60px;
    }

    .guest-rsvp-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .guest-rsvp-buttons .rsvp-btn {
      flex: 1;
      padding: 8px 12px;
      font-size: 0.85em;
    }

    .guest-rsvp-note {
      font-size: 0.75em;
      color: var(--text-muted);
      margin-top: 8px;
      text-align: center;
    }

    .guest-rsvp-message {
      padding: 10px 12px;
      border-radius: 6px;
      margin-top: 10px;
      font-size: 0.85em;
      text-align: center;
    }

    .guest-rsvp-message.success {
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid var(--success);
      color: var(--success);
    }

    .guest-rsvp-message.error {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid var(--error);
      color: var(--error);
    }

    .or-login {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
      justify-content: center;
      font-size: 0.85em;
    }

    .or-login span {
      color: var(--text-muted);
    }

    .or-login a {
      color: var(--accent);
    }

    @media (max-width: 768px) {
      .guest-rsvp-buttons {
        flex-direction: row;
      }

      .guest-rsvp-buttons .rsvp-btn {
        flex: 1;
        min-width: 0;
      }
    }

    /* Service Switcher Panel */
    .service-switcher-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: none;
    }
    .service-switcher-backdrop.show { display: block; }

    .service-switcher-panel {
      position: fixed;
      bottom: calc(60px + max(10px, env(safe-area-inset-bottom)) + 8px);
      left: 12px;
      right: 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      z-index: 1001;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
      display: none;
    }
    .service-switcher-panel.show { display: block; }

    .service-switcher-title {
      margin: 0 0 10px;
      font-size: 0.95em;
    }

    .service-switcher-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .switcher-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 12px 8px;
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 0.75em;
      text-decoration: none;
      transition: all 0.2s;
    }

    .switcher-item:hover {
      background: var(--surface-hover);
      color: var(--text);
    }

    .switcher-item.current {
      opacity: 0.5;
      pointer-events: none;
    }

    .switcher-icon {
      font-size: 1.6em;
    }

    /* Footer Services */
    .footer-services {
      margin-bottom: 8px;
      font-size: 0.85em;
    }
    .footer-services a {
      display: inline-block;
      padding: 10px 4px;
      color: var(--text-muted);
      text-decoration: none;
    }
    .footer-services a:hover { color: var(--accent); }
    .footer-sep { margin: 0 6px; opacity: 0.3; }

    /* ===== Event Detail Page Layout ===== */
    .event-detail {
      max-width: 1100px;
      margin: 0 auto;
    }

    .event-detail-header {
      margin-bottom: 24px;
    }

    .event-detail-header h1 {
      font-size: 1.8em;
      margin: 8px 0 2px;
      line-height: 1.15;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }

    .event-detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 4px;
    }

    .event-detail-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
      gap: 24px;
      align-items: start;
    }

    .event-detail-main {
      min-width: 0;
    }

    .event-detail-main,
    #agenda-section,
    #photo-gallery-section,
    #qa-section,
    .rsvp-card,
    .attendees-card,
    .admin-actions {
      scroll-margin-top: calc(var(--nav-height) + 16px);
    }

    .event-detail-sidebar {
      display: flex;
      min-width: 0;
      flex-direction: column;
      gap: 16px;
    }

    .event-detail-sidebar > * {
      min-width: 0;
    }

    .event-detail-sidebar > .card {
      margin-bottom: 0;
    }

    /* Structured event description */
    .event-description {
      color: var(--text);
      line-height: 1.6;
    }

    .event-description .event-desc-p {
      margin: 0 0 14px;
      font-size: 0.97em;
    }

    .event-description .event-desc-p:last-child {
      margin-bottom: 0;
    }

    .event-description .event-desc-head {
      font-size: 0.78em;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin: 20px 0 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border);
    }

    .event-description .event-desc-head:first-child {
      margin-top: 0;
    }

    .event-description .event-desc-list {
      margin: 0 0 14px;
      padding-left: 0;
      list-style: none;
    }

    .event-description .event-desc-list li {
      position: relative;
      padding: 4px 0 4px 18px;
      font-size: 0.95em;
    }

    .event-description .event-desc-list li::before {
      content: '';
      position: absolute;
      left: 4px;
      top: 0.85em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent, currentColor);
      opacity: 0.7;
    }

    .event-description strong {
      color: var(--text);
      font-weight: 600;
    }

    /* "When" detail block */
    .event-when {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 4px 0 12px;
    }

    .event-when-date {
      font-size: 1.15em;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
    }

    .event-when-time {
      font-size: 1.45em;
      font-weight: 700;
      color: var(--accent, var(--text));
      letter-spacing: 0.01em;
      line-height: 1.2;
      font-variant-numeric: tabular-nums;
    }

    /* Tickets CTA — used in both the main column and the RSVP sidebar */
    .btn-tickets {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: #fff;
      border: 1px solid #b45309;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1em;
      text-decoration: none;
      box-shadow: 0 1px 2px rgba(0,0,0,0.08);
      transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

    .btn-tickets:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
      color: #fff;
      text-decoration: none;
    }

    .btn-tickets:active {
      transform: translateY(0);
    }

    .btn-tickets.btn-block,
    .btn-block.btn-tickets {
      width: 100%;
    }

    .rsvp-tickets-cta {
      margin: -4px 0 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }

    .rsvp-tickets-note {
      font-size: 0.8em;
      color: var(--text-muted);
      margin: 8px 0 0;
      line-height: 1.4;
      text-align: center;
    }

    /*
     * Keep the RSVP card in normal document flow. Its height changes by role:
     * guests see verification fields, attendees may see party controls, and
     * organizers can expand manual RSVP management. Sticky positioning on the
     * card caused those taller states to cover the sidebar content below it.
     */
    .rsvp-card {
      position: static;
    }

    .rsvp-counts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      margin-bottom: 12px;
    }

    .rsvp-count {
      display: flex;
      min-width: 0;
      flex-direction: column;
    }

    .rsvp-count + .rsvp-count {
      margin-left: 20px;
      padding-left: 20px;
      border-left: 1px solid var(--border);
    }

    .rsvp-counts .count {
      order: -1;
      font-size: 1.5em;
      font-weight: 700;
      line-height: 1.2;
      font-variant-numeric: tabular-nums;
    }

    .rsvp-counts .label {
      font-size: 0.85em;
      color: var(--text-muted);
    }

    .rsvp-summary {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .rsvp-card > .rsvp-buttons {
      margin-top: 16px;
    }

    .capacity-info {
      font-size: 0.85em;
      color: var(--text-muted);
      margin: 0;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .rsvp-view-count {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* Creator/admin manual RSVP controls */
    .manual-rsvp-manager {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .manual-rsvp-form[hidden],
    .manual-rsvp-feedback[hidden] {
      display: none;
    }

    .manual-rsvp-form {
      margin-top: 14px;
    }

    .manual-rsvp-form__header {
      margin-bottom: 14px;
    }

    .manual-rsvp-form__header h4 {
      margin: 0 0 4px;
      font-size: 1rem;
    }

    .manual-rsvp-form__header p,
    .manual-rsvp-form .form-help {
      margin: 0;
      color: var(--text-muted);
      font-size: 0.82em;
      line-height: 1.45;
    }

    .manual-rsvp-form .form-group {
      margin-bottom: 16px;
    }

    .manual-rsvp-form .form-control {
      min-height: 44px;
    }

    .manual-rsvp-form .form-help {
      margin-top: 6px;
    }

    .manual-rsvp-status {
      margin: 0 0 16px;
      padding: 0;
      border: 0;
    }

    .manual-rsvp-status legend {
      margin-bottom: 8px;
      color: var(--text);
      font-size: 0.95em;
      font-weight: 500;
    }

    .manual-rsvp-status__options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .manual-rsvp-status__options label {
      display: flex;
      min-width: 0;
      min-height: 44px;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      cursor: pointer;
    }

    .manual-rsvp-status__options label:hover {
      background: var(--surface-hover);
    }

    .manual-rsvp-status__options label:has(input:checked) {
      border-color: var(--accent);
      background: color-mix(in oklab, var(--accent) 12%, var(--card));
    }

    .manual-rsvp-status__options input {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      accent-color: var(--accent);
    }

    .manual-rsvp-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .manual-rsvp-actions .btn {
      min-width: 0;
      min-height: 44px;
    }

    .manual-rsvp-form[aria-busy="true"] :is(input, button) {
      cursor: wait;
      opacity: 0.72;
    }

    .manual-rsvp-feedback {
      margin: 12px 0 0;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 0.85em;
      line-height: 1.45;
    }

    .manual-rsvp-feedback--error {
      border-color: var(--error);
      background: color-mix(in oklab, var(--error) 10%, var(--card));
      color: #fecaca;
    }

    .manual-rsvp-feedback--success {
      border-color: var(--success);
      background: color-mix(in oklab, var(--success) 10%, var(--card));
      color: #a7f3d0;
    }

    /* Attendee list in sidebar */
    .attendee-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .attendee-list li {
      padding: 6px 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.9em;
    }

    .attendee-list li:last-child {
      border-bottom: none;
    }

    .attendee-list .more {
      color: var(--text-muted);
      font-style: italic;
    }

    .attendee-list .attendee-entry {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .attendee-entry__identity {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .attendee-plus-ones {
      margin-left: 4px;
      color: var(--text-muted);
      font-size: 0.85em;
    }

    .attendee-entry__management {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
    }

    .manual-rsvp-badge {
      color: var(--text-muted);
      font-size: 0.78em;
      white-space: nowrap;
    }

    .manual-rsvp-remove.btn {
      min-width: 44px;
      min-height: 44px;
      padding: 6px 10px;
    }

    /* Calendar add buttons */
    .add-to-calendar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .cal-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.82em;
      text-decoration: none;
      color: var(--text);
      background: var(--bg);
      border: 1px solid var(--border);
      transition: border-color 0.2s;
    }

    .cal-btn:hover {
      border-color: var(--accent);
    }

    /* Directions buttons */
    .directions-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .btn-directions {
      font-size: 0.82em;
      padding: 6px 12px;
    }

    /* ===== Photo Gallery Responsive ===== */
    #photo-gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 8px;
    }

    #photo-gallery-grid img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 8px;
    }

    /* ===== Event Filter Tabs ===== */
    .event-filter-tab {
      padding: 10px 20px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9em;
      font-weight: 500;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: color 0.2s, border-color 0.2s;
    }

    .event-filter-tab:hover {
      color: var(--text);
    }

    .event-filter-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* ===== Q&A Section ===== */
    .qa-vote-btn:hover {
      color: var(--accent) !important;
      transform: scale(1.15);
      transition: all 0.15s;
    }

    .qa-question:last-child {
      border-bottom: none !important;
    }

    /* ===== Share Overlay Mobile ===== */
    .share-overlay-card {
      max-height: 90vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* ===== Mobile Responsive ===== */
    @media (max-width: 900px) {
      .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      /* One column: RSVP comes first, the rest of the sidebar after the details. */
      .event-detail-sidebar {
        display: contents;
      }
      .event-detail-sidebar > .rsvp-card {
        order: -1;
      }
      .event-detail-sidebar > :not(.rsvp-card) {
        order: 1;
      }
    }

    /* Create form: optional groups show a one-line hint under the title. */
    .create-group > summary,
    .create-optional-section > summary {
      position: relative;
      padding-right: 48px;
    }
    .create-group > summary::after,
    .create-optional-section > summary::after {
      position: absolute;
      top: 16px;
      right: 20px;
      float: none;
    }
    .create-group-hint {
      display: block;
      margin-top: 2px;
      color: var(--text-muted);
      font-size: 0.85em;
      font-weight: 400;
    }
    .create-essentials-note {
      margin: 8px 0 12px;
    }

    .my-rsvps-past-heading {
      margin: 32px 0 12px;
      font-size: 1.1rem;
      color: var(--text-muted);
    }

    /* "You're going" line at the top of the RSVP card. */
    .rsvp-you {
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 8px;
      background: rgba(16, 185, 129, 0.12);
      color: var(--text);
    }

    /* /events search */
    .event-search {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 20px;
    }
    .event-search input[type='search'] {
      flex: 1 1 220px;
      min-height: 44px;
    }
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    /* Next steps after creating an event. */
    .next-steps {
      border-color: var(--accent);
      margin-bottom: 16px;
    }
    .next-steps__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .next-steps__head h2 {
      margin: 0;
      font-size: 1.15rem;
    }
    .next-steps__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    /* "Create similar" notice on the create page. */
    .copy-banner {
      margin: 0 0 16px;
      padding: 12px 16px;
      border: 1px solid var(--accent);
      border-radius: 10px;
      background: rgba(59, 130, 246, 0.1);
      color: var(--text);
      line-height: 1.5;
    }

    /* When/where at a glance under the title. */
    .event-summary-line {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 16px;
      margin: 6px 0 0;
      color: var(--text-muted);
      font-size: 0.95em;
    }

    /* Compact "Add to calendar" / "Directions" menus (were rows of buttons). */
    .action-menu {
      position: relative;
      display: inline-block;
      margin-top: 12px;
    }
    .action-menu + .action-menu {
      margin-left: 8px;
    }
    .action-menu__list button {
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .action-menu__list button[hidden] {
      display: none;
    }
    .event-share-menu {
      margin-top: 10px;
    }
    .action-menu__toggle {
      list-style: none;
      cursor: pointer;
      min-height: 40px;
      display: inline-flex;
      align-items: center;
    }
    .action-menu__toggle::-webkit-details-marker {
      display: none;
    }
    .action-menu__toggle::after {
      content: '▾';
      margin-left: 6px;
      font-size: 0.85em;
    }
    .action-menu__list {
      position: absolute;
      z-index: 20;
      top: calc(100% + 4px);
      left: 0;
      min-width: 220px;
      display: flex;
      flex-direction: column;
      padding: 6px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .action-menu__list a,
    .action-menu__list button {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 8px 12px;
      border: 0;
      border-radius: 8px;
      background: none;
      color: var(--text);
      text-decoration: none;
      justify-content: flex-start;
      width: 100%;
    }
    .action-menu__list a:hover,
    .action-menu__list a:focus-visible,
    .action-menu__list button:hover,
    .action-menu__list button:focus-visible {
      background: var(--surface-hover);
    }

    @media (max-width: 768px) {
      .event-detail-header h1 {
        font-size: 1.4em;
      }

      #photo-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
      }

      .add-to-calendar {
        flex-direction: column;
      }

      .cal-btn {
        justify-content: center;
        padding: 10px 12px;
        min-height: 44px;
      }

      .directions-buttons {
        flex-direction: column;
      }

      .btn-directions {
        text-align: center;
        padding: 10px 12px;
        min-height: 44px;
      }

      /* Guest RSVP form full width */
      .guest-rsvp-section input,
      .guest-rsvp-section textarea {
        font-size: 16px;
      }

      /* Tags wrap */
      .tags {
        flex-wrap: wrap;
      }
    }

    @media (max-width: 480px) {
      #photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
      }

      .event-detail-header h1 {
        font-size: 1.2em;
      }

      .rsvp-counts .count {
        font-size: 1.2em;
      }

      .manual-rsvp-actions {
        flex-direction: column-reverse;
      }

      .manual-rsvp-actions .btn {
        width: 100%;
      }

      .attendee-list .attendee-entry {
        align-items: flex-start;
        flex-direction: column;
      }

      .attendee-entry__management {
        width: 100%;
        justify-content: space-between;
      }

      .manual-rsvp-remove.btn {
        min-width: 88px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .skip-link,
      .user-avatar,
      .bottom-nav-link,
      .event-nav-rsvp-btn {
        transition: none;
      }
    }
  