/* ── PRYMIT DESIGN TOKENS ── */
:root {
  --bg:           #0A0118;
  --bg-2:         #1A0B2E;
  --card:         #251040;
  --pink:         #C20B6B;
  --pink-bright:  #FF007F;
  --pink-hover:   #A10957;
  --violet:       #7000FF;
  --magenta:      #B300FF;
  --gold:         #F6C85F;
  --gold-2:       #FFF2B8;
  --gold-glow:    rgba(246,200,95,0.42);
  --fg-1: #FFFFFF;
  --fg-2: rgba(255,255,255,0.70);
  --fg-3: rgba(255,255,255,0.50);
  --fg-4: rgba(255,255,255,0.30);
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.15);
  --pink-glow:        rgba(194,11,107,0.30);
  --pink-glow-strong: rgba(194,11,107,0.50);
  --grad-brand: linear-gradient(90deg, #FF007F 0%, #B300FF 100%);
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.40);
  --shadow-md:   0 20px 60px rgba(255,0,127,0.12);
  --shadow-glow: 0 0 24px rgba(194,11,107,0.45);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg-1);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
#app {
  width: min(980px, 100%);
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + max(16px, env(safe-area-inset-bottom)));
  padding-top: max(0px, env(safe-area-inset-top));
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(10, 1, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-diamond {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: -0.02em;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: var(--pink-glow);
  border: 1px solid rgba(194,11,107,0.35);
  border-radius: var(--r-full);
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #FF90BF;
  letter-spacing: 0.06em;
}

.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--ease) 200ms, color var(--ease) 200ms;
}
.saved-pill:hover { border-color: var(--pink); color: var(--fg-1); }

.saved-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* ── TAB PANELS ── */
.tab-panel { display: none; padding: 0 16px; }
.tab-panel.active { display: block; }

/* ── EYEBROW / HEADINGS ── */
.eyebrow {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--pink);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  line-height: 1.05;
}

/* ── CREWCIAL BANNER ── */
.crewcial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(194,11,107,0.12) 0%, rgba(112,0,255,0.08) 100%);
  border: 1px solid rgba(194,11,107,0.25);
  border-radius: var(--r-xl);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.crewcial-banner:hover {
  border-color: rgba(194,11,107,0.5);
  background: linear-gradient(135deg, rgba(194,11,107,0.18) 0%, rgba(112,0,255,0.12) 100%);
}
.crewcial-banner .eyebrow { margin-bottom: 2px; }
.crewcial-banner p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
}
.crewcial-arrow {
  font-size: 20px;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}
.crewcial-banner:hover .crewcial-arrow { transform: translateX(3px); }

/* ── PULSE STRIP ── */
.pulse-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pulse-cell {
  background: linear-gradient(135deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 12px;
}

.pulse-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.pulse-cell strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SCROLL ROWS (chips/filters) ── */
.scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px 2px;
}
.scroll-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 200ms var(--ease);
}
.chip:hover { border-color: var(--pink); color: var(--fg-1); }
.chip.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 16px var(--pink-glow);
}

/* ── CONTROLS BLOCK ── */
.controls-block {
  position: sticky;
  top: 58px;
  z-index: 20;
  display: grid;
  gap: 10px;
  margin: 0 -16px;
  padding: 12px 16px 14px;
  background: rgba(10, 1, 24, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg-1);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.search-input::placeholder { color: var(--fg-4); }
.search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(194,11,107,0.15);
}

.segmented {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
}

.segment {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-3);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 200ms var(--ease);
}
.segment.active {
  background: var(--bg-2);
  color: var(--fg-1);
  box-shadow: var(--shadow-sm);
}

/* ── RESULT BAR ── */
.result-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}

.result-count {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
}

/* ── GHOST BUTTON ── */
.ghost-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 200ms var(--ease);
}
.ghost-btn:hover { border-color: var(--pink); color: var(--fg-1); }

/* ── PRIMARY BUTTON ── */
.primary-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--pink);
  border: none;
  border-radius: var(--r-full);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px var(--pink-glow);
  transition: all 300ms var(--ease);
}
.primary-btn:hover {
  background: var(--pink-hover);
  box-shadow: 0 0 28px var(--pink-glow-strong);
  transform: translateY(-2px);
}
.primary-btn:active { transform: translateY(0); }

/* ── EVENT LIST ── */
.event-list { display: grid; gap: 10px; }

/* ── EVENT CARD ── */
.event-card {
  position: relative;
  background: linear-gradient(135deg, #25123C 0%, #1A0B2E 62%, #10051F 100%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 400ms var(--ease), transform 400ms var(--ease), box-shadow 400ms var(--ease), background 400ms var(--ease);
}
.event-card:hover {
  border-color: rgba(255,0,127,0.44);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.08);
}
.event-card.live  { border-color: rgba(194,11,107,0.55); }
.event-card.soon  { border-color: rgba(255,200,87,0.55); }
.event-card.saved { border-color: rgba(194,11,107,0.42); }
.event-card.featured {
  border-color: rgba(246,200,95,0.70);
  box-shadow: 0 0 0 1px rgba(246,200,95,0.16), 0 18px 44px rgba(246,200,95,0.12);
  background:
    linear-gradient(135deg, rgba(246,200,95,0.16) 0%, rgba(26,11,46,0.98) 34%, #0D0419 100%);
}
.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.event-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 18px var(--gold-glow);
}

.save-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: rgba(10,1,24,0.60);
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms var(--ease);
}
.save-button.active {
  background: var(--pink);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px var(--pink-glow);
}

.card-open {
  width: 100%;
  min-height: 108px;
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 12px;
  border: none;
  background: transparent;
  color: var(--fg-1);
  padding: 16px 50px 16px 16px;
  text-align: left;
}
.card-open:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.time-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.time-pill .time-val {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1;
}

.time-pill .day-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
}

.event-title {
  margin: 0 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--fg-1);
  overflow-wrap: anywhere;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
}

.chip-tag.food, .chip-tag.drink {
  border-color: rgba(194,11,107,0.25);
  background: rgba(194,11,107,0.08);
  color: #FF90BF;
}

.chip-tag.signup-open {
  border-color: rgba(112,0,255,0.30);
  background: rgba(112,0,255,0.10);
  color: #B490FF;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-badge.live {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 10px var(--pink-glow);
}
.live-badge.soon {
  background: rgba(255,200,87,0.18);
  color: #FFD580;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(255,242,184,0.24), rgba(246,200,95,0.12));
  border: 1px solid rgba(246,200,95,0.52);
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px var(--gold-glow);
}
.gold-badge::before {
  content: "★";
  margin-right: 5px;
  color: var(--gold);
}
.gold-badge.large {
  height: 26px;
  padding: 0 10px;
}
.gold-inline { color: var(--gold); }

/* ── DAY VIEW ── */
.day-section { display: grid; gap: 10px; margin-bottom: 16px; }

.day-heading {
  position: sticky;
  top: 174px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 14px;
  background: rgba(10,1,24,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-1);
}
.day-heading span { font-size: 12px; color: var(--fg-3); font-weight: 500; }

.timeline-period {
  display: grid;
  gap: 8px;
  border-left: 2px solid rgba(194,11,107,0.25);
  padding-left: 12px;
}

.period-label {
  width: max-content;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(194,11,107,0.10);
  border: 1px solid rgba(194,11,107,0.20);
  font-size: 11px;
  font-weight: 700;
  color: #FF90BF;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-row {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 8px;
  align-items: start;
}
.timeline-time {
  position: sticky;
  top: 224px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  padding-top: 16px;
}
.timeline-row .event-card .card-open {
  grid-template-columns: 1fr;
  min-height: 0;
}
.timeline-row .time-pill { display: none; }

/* ── MAP VIEW ── */
.map-board { display: grid; gap: 10px; margin-bottom: 12px; }

.map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.map-summary strong { display: block; font-size: 20px; font-family: 'Sora', sans-serif; }

.cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 200ms var(--ease);
}
.cluster:hover { border-color: var(--pink); }
.cluster.active { border-color: var(--pink); background: rgba(194,11,107,0.10); color: var(--fg-1); }
.cluster-count {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 700;
}
.cluster.active .cluster-count { background: var(--pink); color: #fff; }

.map-list { display: grid; gap: 8px; }

.map-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.map-card.featured {
  border-color: rgba(246,200,95,0.55);
  background: linear-gradient(135deg, rgba(246,200,95,0.12), #0D0419 80%);
}
.map-card-main {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--fg-1);
  text-align: left;
  padding: 0;
}
.map-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(194,11,107,0.15);
}
.map-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246,200,95,0.18), 0 0 18px var(--gold-glow);
}
.map-card h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; font-family: 'Sora', sans-serif; }
.map-card p  { margin: 0; font-size: 12px; color: var(--fg-3); line-height: 1.35; }
.map-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  background: var(--pink);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 12px var(--pink-glow);
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--fg-3);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1A0B2E 0%, #0D0419 100%);
}

/* ── SHEET (EVENT DETAIL) ── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.sheet[aria-hidden="false"] { pointer-events: auto; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10,1,24,0.70);
  opacity: 0;
  transition: opacity 200ms ease;
  backdrop-filter: blur(4px);
}
.sheet[aria-hidden="false"] .sheet-backdrop { opacity: 1; }

.sheet-card {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(84vh, 740px);
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 240ms var(--ease);
  background: linear-gradient(180deg, #1A0B2E 0%, #0A0118 100%);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.50);
  padding: 8px 18px max(24px, env(safe-area-inset-bottom));
}
.sheet[aria-hidden="false"] .sheet-card { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.20);
  margin: 4px auto 14px;
}

.close-button {
  float: right;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
}

.detail-topline {
  clear: both;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 600;
}

.detail-title {
  margin: 12px 0 16px;
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg-1);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.fact {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.fact .label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.fact strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.owner-line {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0 0 14px;
}

.detail-actions, .sheet-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.detail-save {
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 700;
  transition: all 200ms var(--ease);
}
.detail-save.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 16px var(--pink-glow);
}

.detail-map {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: rgba(112,0,255,0.15);
  border: 1px solid rgba(112,0,255,0.30);
  font-size: 13px;
  font-weight: 700;
  color: #C0A0FF;
  transition: all 200ms var(--ease);
}
.detail-map:hover { background: rgba(112,0,255,0.25); }

.sheet-nav button {
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 700;
}

.signup-panel {
  margin-top: 14px;
  padding: 16px;
  background: rgba(194,11,107,0.06);
  border: 1px solid rgba(194,11,107,0.20);
  border-radius: var(--r-lg);
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: var(--r-full);
  background: var(--pink);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px var(--pink-glow);
  transition: all 300ms var(--ease);
}
.action-button:hover {
  background: var(--pink-hover);
  box-shadow: 0 0 28px var(--pink-glow-strong);
  transform: translateY(-2px);
}

.secondary-action {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-2);
  box-shadow: none;
}
.secondary-action:hover { border-color: var(--pink); color: var(--fg-1); transform: none; }

.missing-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--fg-4);
  font-size: 13px;
}

.source-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-4);
  line-height: 1.45;
}

/* ── SECTION HEADER (Deltagare / Kanban) ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
}

/* ── COPY ALL BUTTON ── */
.copy-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms var(--ease);
}
.copy-all-btn:hover { border-color: var(--pink); color: var(--fg-1); }
.copy-all-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.copy-all-btn.copied { border-color: var(--pink); color: var(--pink); }

/* ── PARTICIPANT LIST ── */
.participant-list { display: grid; gap: 10px; }

.participant-card {
  background: linear-gradient(135deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  transition: border-color 300ms var(--ease);
}
.participant-card:hover { border-color: rgba(194,11,107,0.25); }

.participant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.participant-name {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-1);
  margin: 0 0 3px;
  line-height: 1.2;
}

.participant-role {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
}

.participant-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-3);
  font-size: 14px;
  transition: all 200ms var(--ease);
}
.icon-btn:hover { border-color: var(--pink); color: var(--pink); }
.icon-btn.del:hover { border-color: rgba(255,90,90,0.60); color: #FF9090; }

.participant-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.45;
}

.participant-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.participant-field .pf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-4);
}
.participant-field .pf-val { color: var(--fg-2); font-weight: 500; overflow-wrap: anywhere; }

.participant-guest {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(112,0,255,0.07);
  border: 1px solid rgba(112,0,255,0.18);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--fg-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.participant-guest strong { color: #B490FF; font-weight: 700; }
.participant-guest.muted {
  opacity: 0.62;
}
.participant-guest input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--pink);
}
.participant-guest span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  margin-top: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 200ms var(--ease);
}
.copy-btn:hover { border-color: var(--pink); color: var(--fg-1); }
.copy-btn.copied { border-color: var(--pink); color: var(--pink); background: rgba(194,11,107,0.08); }

.no-participants {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}
.no-participants strong { display: block; font-family: 'Sora', sans-serif; font-size: 16px; color: var(--fg-2); margin-bottom: 8px; }

/* ── PARTICIPANT MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.modal[aria-hidden="false"] { pointer-events: auto; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10,1,24,0.80);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms ease;
  cursor: default;
}
.modal[aria-hidden="false"] .modal-backdrop { opacity: 1; }

.modal-card {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 280ms var(--ease);
  background: linear-gradient(180deg, #1A0B2E 0%, #0A0118 100%);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 0 18px max(28px, env(safe-area-inset-bottom));
}
.modal[aria-hidden="false"] .modal-card { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.modal-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-1);
}
.close-modal {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-3);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FORM ── */
.participant-form { display: grid; gap: 14px; }

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-field > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field input[type="url"],
.form-field select {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg-1);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.form-field select {
  appearance: none;
  cursor: pointer;
}
.password-field {
  position: relative;
  width: 100%;
  min-width: 0;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle.active {
  color: var(--fg-1);
  background: rgba(255,255,255,0.06);
}
.eye-icon {
  width: 18px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 999px 999px 999px 999px / 760px 760px 760px 760px;
  display: block;
  position: relative;
}
.eye-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.password-toggle.active .eye-icon::before {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  background: currentColor;
  left: -3px;
  top: 8px;
  transform: rotate(-35deg);
  border-radius: var(--r-full);
}
.form-field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(194,11,107,0.15);
}
.form-field input::placeholder { color: var(--fg-4); }

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  accent-color: var(--pink);
  cursor: pointer;
}
.checkbox-row span { font-size: 14px; font-weight: 600; color: var(--fg-2); text-transform: none; letter-spacing: 0; }

.guest-block {
  padding: 14px;
  background: rgba(112,0,255,0.06);
  border: 1px solid rgba(112,0,255,0.18);
  border-radius: var(--r-lg);
  display: grid;
  gap: 12px;
}
.guest-label {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #B490FF;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

/* ── KANBAN ── */
/* ── KANBAN SEARCH RESULTS ── */
.kanban-search-results {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(194,11,107,0.25) transparent;
}

.ks-result {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 150ms;
}
.ks-result.on-board { border-color: rgba(194,11,107,0.25); background: rgba(194,11,107,0.04); }
.ks-result:hover { border-color: rgba(255,255,255,0.12); }

.ks-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ks-day {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.ks-time {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-1);
}
.ks-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ks-add-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1;
  transition: all 150ms;
}
.ks-add-btn:hover { border-color: var(--pink); color: var(--pink); }
.ks-add-btn.remove { border-color: rgba(194,11,107,0.35); color: var(--pink); background: rgba(194,11,107,0.10); }

.ks-empty {
  text-align: center;
  padding: 24px;
  color: var(--fg-4);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* ── KANBAN CONFLICT ── */
.kanban-event.conflict {
  border-color: rgba(255,140,0,0.55);
  background: rgba(255,140,0,0.06);
}
.conflict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  background: rgba(255,140,0,0.18);
  border: 1px solid rgba(255,140,0,0.40);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  color: #FFB060;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.kanban-hint {
  font-size: 14px;
  color: var(--fg-3);
  margin: 0 0 16px;
  line-height: 1.5;
}

.kanban-timeline {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(37,18,60,0.96), rgba(13,4,25,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.kanban-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.kanban-timeline-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--fg-1);
}
.kanban-timeline-next {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 700;
}
.timeline-track {
  position: relative;
  height: 68px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}
.timeline-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink-glow);
}
.timeline-chip {
  position: absolute;
  top: 12px;
  height: 44px;
  min-width: 72px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  padding: 7px 9px;
  overflow: hidden;
}
.timeline-chip.live {
  border-color: rgba(194,11,107,0.55);
  background: rgba(194,11,107,0.16);
}
.timeline-chip.passed { opacity: 0.48; }
.timeline-chip strong,
.timeline-chip span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-chip strong { font-size: 11px; color: var(--fg-1); }
.timeline-chip span { font-size: 10px; color: var(--fg-3); margin-top: 2px; }

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(194,11,107,0.30) transparent;
}
.kanban-board::-webkit-scrollbar { height: 4px; }
.kanban-board::-webkit-scrollbar-track { background: transparent; }
.kanban-board::-webkit-scrollbar-thumb { background: rgba(194,11,107,0.30); border-radius: 2px; }

.kanban-col {
  background: linear-gradient(180deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.kanban-col-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(194,11,107,0.06);
}
.kanban-day {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-1);
  display: block;
}
.kanban-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.kanban-events { display: grid; gap: 8px; padding: 12px; }

.kanban-event {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  transition: border-color 200ms var(--ease);
}
.kanban-event:hover { border-color: rgba(194,11,107,0.25); }
.kanban-event.has-assignee { border-color: rgba(194,11,107,0.35); background: rgba(194,11,107,0.04); }
.kanban-event.featured {
  border-color: rgba(246,200,95,0.55);
  background: linear-gradient(135deg, rgba(246,200,95,0.10), rgba(255,255,255,0.03));
}

.kanban-event-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.kanban-time-val {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1;
}

.kanban-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.kb-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kb-badge.food  { background: rgba(255,140,50,0.18); border: 1px solid rgba(255,140,50,0.35); color: #FFB070; }
.kb-badge.drink { background: rgba(100,180,255,0.15); border: 1px solid rgba(100,180,255,0.30); color: #90C8FF; }
.kb-badge.gold  { background: rgba(246,200,95,0.18); border: 1px solid rgba(246,200,95,0.48); color: var(--gold-2); }

.kanban-event-title {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-1);
  margin: 0 0 10px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.kanban-assignees {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assignee-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 10px 0 12px;
  background: rgba(194,11,107,0.12);
  border: 1px solid rgba(194,11,107,0.28);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: #FF90BF;
}

.remove-assignee {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255,144,191,0.60);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 150ms;
}
.remove-assignee:hover { color: #FF90BF; }

.add-assignee-select {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-full);
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
  transition: border-color 150ms, color 150ms;
}
.add-assignee-select:hover, .add-assignee-select:focus { border-color: var(--pink); color: var(--fg-1); }
.add-assignee-select option { background: #1A0B2E; color: #fff; }

.kanban-all-assigned, .kanban-empty-hint {
  font-size: 11px;
  color: var(--fg-4);
  padding: 4px 0;
}

.kanban-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--fg-4);
  font-size: 12px;
}

/* ── BOTTOM NAVIGATION ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* total height = content zone + safe area */
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10,1,24,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  /* prevent any child from leaking below safe area */
  overflow: hidden;
}

/* keep app content above nav */
#app { padding-bottom: calc(58px + max(16px, env(safe-area-inset-bottom, 0px))) !important; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--fg-4);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms var(--ease);
  position: relative;
  padding-bottom: 2px;
  /* stay inside the content zone only */
  height: 58px;
  align-self: start;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-item.active { color: var(--pink); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: 0 0 8px var(--pink-glow);
}

/* ── NOTIFICATION BANNER ── */
.notif-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(112,0,255,0.10) 0%, rgba(194,11,107,0.08) 100%);
  border: 1px solid rgba(112,0,255,0.25);
  border-radius: var(--r-xl);
  animation: slideDown 300ms var(--ease) both;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.notif-banner-left { display: flex; align-items: flex-start; gap: 12px; min-width:0; }
.notif-bell { font-size: 22px; flex-shrink:0; line-height:1; margin-top:1px; }
.notif-banner-title {
  margin: 0 0 3px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-1);
}
.notif-banner-sub {
  margin: 0;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.45;
}
.notif-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-top: 2px; }
.notif-enable-btn { height: 36px; padding: 0 16px; font-size: 13px; }
.notif-dismiss-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-4);
  font-size: 13px;
  transition: color 150ms, border-color 150ms;
}
.notif-dismiss-btn:hover { color: var(--fg-1); border-color: var(--fg-3); }

/* ── AUTH OVERLAY ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  /* fully opaque — nothing bleeds through */
  background: var(--bg);
  padding: 16px;
  overflow-y: auto;
}
.auth-overlay[aria-hidden="true"] { display: none; }

/* ensure hidden attribute always wins */
[hidden] { display: none !important; }

.auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #1A0B2E 0%, #0D0419 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 28px 24px 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.60), 0 0 0 1px rgba(194,11,107,0.08);
  margin: auto;
  overflow: hidden;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: -0.02em;
}

.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-3);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all 200ms var(--ease);
}
.auth-tab.active {
  background: var(--bg-2);
  color: var(--fg-1);
  box-shadow: var(--shadow-sm);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-form { display: grid; gap: 12px; }

.auth-submit {
  width: 100%;
  height: 52px;
  font-size: 15px;
  margin-top: 4px;
}

.auth-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color 200ms;
}
.auth-link:hover { color: var(--pink); }
.auth-skip { margin-top: 16px; }

.auth-hint {
  font-size: 14px;
  color: var(--fg-3);
  margin: 0 0 14px;
  line-height: 1.5;
}

.auth-error {
  padding: 12px 14px;
  background: rgba(255,80,80,0.10);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: var(--r-md);
  color: #FF9090;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}
.auth-success {
  padding: 12px 14px;
  background: rgba(50,200,100,0.10);
  border: 1px solid rgba(50,200,100,0.25);
  border-radius: var(--r-md);
  color: #80FFAA;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ── DELETE MODAL ── */
.delete-modal-card { border-color: rgba(255,80,80,0.20); }

.delete-warning {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 16px;
}
.delete-name-highlight {
  color: var(--fg-1);
  font-weight: 700;
}

.danger-btn {
  height: 44px;
  padding: 0 24px;
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.40);
  border-radius: var(--r-full);
  color: #FF9090;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all 200ms var(--ease);
}
.danger-btn:not(:disabled):hover {
  background: rgba(220,50,50,0.30);
  border-color: rgba(220,50,50,0.70);
  color: #FFB0B0;
}
.danger-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── SELF BADGE ── */
.self-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  background: rgba(112,0,255,0.18);
  border: 1px solid rgba(112,0,255,0.35);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  color: #C0A0FF;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  vertical-align: middle;
  margin-left: 6px;
}

/* ── DESKTOP ── */
@media (min-width: 760px) {
  .tab-panel { padding: 0 32px; }
  .controls-block { margin-inline: -32px; padding-inline: 32px; }
  .scroll-row { margin-inline: -32px; padding-inline: 32px; }
  .event-list { grid-template-columns: repeat(2, 1fr); }
  .day-section, .map-list, .map-board { grid-column: 1 / -1; }
  .sheet-card {
    left: 50%;
    right: auto;
    width: min(680px, calc(100% - 32px));
    transform: translate(-50%, 105%);
    border-radius: 24px;
    bottom: 24px;
    border-bottom: 1px solid var(--border-strong);
  }
  .sheet[aria-hidden="false"] .sheet-card { transform: translate(-50%, 0); }
  .modal-card {
    left: 50%;
    right: auto;
    width: min(560px, calc(100% - 32px));
    transform: translate(-50%, 100%);
    border-radius: 24px;
    bottom: 24px;
    border-bottom: 1px solid var(--border-strong);
  }
  .modal[aria-hidden="false"] .modal-card { transform: translate(-50%, 0); }
  .bottom-nav { max-width: 980px; left: 50%; transform: translateX(-50%); }
  .kanban-board { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 390px) {
  .tab-panel { padding: 0 12px; }
  .scroll-row { margin-inline: -12px; padding-inline: 12px; }
  .controls-block { margin-inline: -12px; padding-inline: 12px; }
  .pulse-strip { grid-template-columns: 1fr 1fr; }
  .pulse-strip .pulse-cell:last-child { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  #locationButton { display: none; }
}
