/* Saitas — components */

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

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* selection */
::selection { background: var(--plum); color: var(--surface); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type ---------- */
.display-1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(40px, 8vw, 72px); line-height: 1.02;
  letter-spacing: -0.025em;
}
.display-2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(28px, 5vw, 44px); line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 3.5vw, 30px); line-height: 1.2;
  letter-spacing: -0.015em;
}
.h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.body { font-size: 15px; line-height: 1.55; }
.small { font-size: 13px; line-height: 1.5; }
.micro {
  font-size: 11px; line-height: 1.4;
  font-family: var(--f-mono); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.italic-em { font-style: italic; color: var(--accent); font-weight: 400; }

.eyebrow {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }
.soft  { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  height: 44px;
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-fast) ease,
              filter var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: var(--sh-md); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-glow); }

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FBF5EA;
}
.btn--gold {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--surface); }

.btn--soft {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--soft:hover { background: var(--surface-deep); filter: none; }

.btn--danger {
  background: transparent;
  color: var(--coral);
  border: 1.5px solid var(--coral);
}
.btn--danger:hover { background: var(--coral); color: #FBF5EA; }

.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn--full { width: 100%; }

.btn--icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  padding: var(--sp-5);
}
.card--flush { padding: 0; overflow: hidden; }
.card--padded { padding: var(--sp-5); }
.card--lg-padded { padding: var(--sp-6); }
.card--interactive {
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}
.card--interactive:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}
.chip:hover { background: var(--surface-alt); color: var(--ink); }
.chip.is-active {
  background: var(--ink); color: var(--surface);
  border-color: var(--ink);
}
.chip--gold      { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip--plum      { background: var(--plum); border-color: var(--plum); color: var(--surface); }
.chip--rose      { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--plum-deep); }
.chip--mint      { background: var(--mint); border-color: var(--mint); color: var(--surface); }
.chip--soft      { background: var(--surface-alt); border-color: transparent; color: var(--ink-soft); }
.chip__count {
  font-family: var(--f-mono); font-size: 11px;
  margin-left: 4px; opacity: 0.7;
}
.chip.is-active .chip__count { opacity: 0.85; }

/* ---------- Badge ---------- */
.badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #FBF5EA;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

/* ---------- Avatar ---------- */
.avatar {
  position: relative;
  display: inline-block; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.size-sm { width: 32px; height: 32px; }
.avatar.size-md { width: 56px; height: 56px; }
.avatar.size-lg { width: 72px; height: 72px; }
.avatar.size-xl { width: 168px; height: 168px; }

.avatar--vip { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--surface); }

.online-dot {
  position: absolute; bottom: 4%; right: 4%;
  width: 22%; height: 22%; min-width: 8px; min-height: 8px;
  background: var(--mint); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
}

/* avatar placeholder gradient initials */
.avatar--initials {
  display: grid; place-items: center;
  background: var(--g-warm);
  color: var(--surface);
  font-family: var(--f-display);
  font-weight: 500; font-size: 1.2em;
  letter-spacing: 0.02em;
}
.avatar.size-sm.avatar--initials { font-size: 13px; }
.avatar.size-md.avatar--initials { font-size: 22px; }
.avatar.size-lg.avatar--initials { font-size: 30px; }
.avatar.size-xl.avatar--initials { font-size: 64px; }

/* ---------- Photo placeholder ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,0.025) 0 8px,
      transparent 8px 16px
    ),
    var(--surface-alt);
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  padding: 4px 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
}
[data-theme="dark"] .ph::after { background: rgba(255,255,255,0.08); color: var(--ink-soft); }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square   { aspect-ratio: 1 / 1; }
.ph--wide     { aspect-ratio: 16 / 9; }

/* warm gradient placeholder variants */
.ph--g1 { background: linear-gradient(160deg, #BC8E50 0%, #5C2340 100%); }
.ph--g2 { background: linear-gradient(160deg, #B0667D 0%, #3F1729 100%); }
.ph--g3 { background: linear-gradient(160deg, #E5C0CC 0%, #BC8E50 100%); }
.ph--g4 { background: linear-gradient(160deg, #5C2340 0%, #1F0E1B 100%); }
.ph--g5 { background: linear-gradient(160deg, #D4A88F 0%, #8B4A66 100%); }
.ph--g6 { background: linear-gradient(160deg, #2C5947 0%, #1F0E1B 100%); }
.ph--g7 { background: linear-gradient(160deg, #8E6633 0%, #2A1B2A 100%); }
.ph--g8 { background: linear-gradient(160deg, #C99CAC 0%, #4A2D3F 100%); }
.ph--g1::after, .ph--g2::after, .ph--g3::after, .ph--g4::after,
.ph--g5::after, .ph--g6::after, .ph--g7::after, .ph--g8::after {
  background: rgba(0,0,0,0.18); color: rgba(255,255,255,0.85);
}

/* ---------- Form ---------- */
.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.textarea { height: auto; padding: 12px 14px; min-height: 88px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--sh-glow);
}
.label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink-soft);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--accent); }
.brand-mark {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
}

/* ---------- Section header ---------- */
.section-head { display: grid; gap: 6px; margin-bottom: var(--sp-5); }
.section-head__sub { color: var(--ink-soft); font-size: 15px; max-width: 600px; }

/* ---------- Layout ---------- */
.app {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
}

.topnav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-5);
  background: rgba(251, 245, 234, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="dark"] .topnav { background: rgba(31, 18, 30, 0.82); }
.topnav__nav {
  display: flex; align-items: center; gap: 4px;
}
.topnav__nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.topnav__nav a:hover { background: var(--surface-alt); color: var(--ink); }
.topnav__nav a.is-active {
  background: var(--ink); color: var(--surface);
}
.topnav__actions { display: flex; align-items: center; gap: 8px; }
.topnav__locale {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.topnav__karma {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  color: var(--gold-deep);
}
[data-theme="dark"] .topnav__karma { color: var(--gold); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  position: relative;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.icon-btn:hover { background: var(--ink); color: var(--surface); }
.icon-btn--ghost { background: transparent; border-color: transparent; }

/* ---------- Sidebar ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; gap: 0; flex: 1; }
.sidebar {
  border-right: 1px solid var(--line-soft);
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg);
  position: sticky; top: 64px; align-self: start;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar__group + .sidebar__group { margin-top: var(--sp-5); }
.sidebar__head {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-2);
}
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  position: relative;
}
.sidebar__link:hover { background: var(--surface-alt); color: var(--ink); }
.sidebar__link.is-active {
  color: var(--ink);
  background: var(--surface);
}
.sidebar__link.is-active::before {
  content: ""; position: absolute; right: -10px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 3px;
  background: var(--accent);
}
.sidebar__link svg { flex-shrink: 0; }

.main-pane { padding: var(--sp-6) var(--sp-6); min-width: 0; }

/* ---------- Tabbar (mobile) ---------- */
.tabbar {
  position: fixed; bottom: 14px; left: 14px; right: 14px;
  height: 64px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(251, 245, 234, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  z-index: 40;
}
[data-theme="dark"] .tabbar { background: rgba(31, 18, 30, 0.85); }
.tabbar a {
  display: grid; place-items: center; gap: 2px;
  padding: 8px 10px;
  font-size: 10px; color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active::after {
  content: ""; position: absolute; top: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.tabbar__center {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--g-primary);
  color: var(--surface) !important;
  margin-top: -22px;
  box-shadow: 0 8px 22px rgba(92, 35, 64, 0.4);
}
.tabbar__center::after { display: none !important; }

/* ---------- Misc ---------- */
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--sp-3); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

.divider-label {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--ink-muted);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: var(--sp-5) 0;
}
.divider-label::before, .divider-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* user grid */
.user-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.user-card {
  display: block; background: var(--surface);
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}
.user-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.user-card__media {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden;
}
.user-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-card__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(20,8,18,0.85), transparent);
  color: #FBF5EA;
}
.user-card__name { font-family: var(--f-display); font-size: 18px; font-weight: 500; }
.user-card__meta { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.user-card__top {
  position: absolute; top: var(--sp-3); left: var(--sp-3); right: var(--sp-3);
  display: flex; align-items: flex-start; justify-content: space-between;
  z-index: 1;
}
.user-card__pin {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(251,245,234,0.85);
  backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 500; color: var(--ink);
}

/* glassmorphism over photo */
.glass {
  background: rgba(251, 245, 234, 0.78);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.4);
}
[data-theme="dark"] .glass { background: rgba(31,18,30,0.7); border-color: rgba(255,255,255,0.06); }

/* ---------- Confirm modal (replaces window.confirm()) ---------- */
.confirm-modal {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg, 14px);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-lg, 0 12px 32px rgba(0,0,0,0.18));
  max-width: 360px;
  width: calc(100% - 32px);
}
.confirm-modal::backdrop { background: rgba(31, 18, 30, 0.45); backdrop-filter: blur(2px); }
.confirm-modal__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.confirm-modal__msg { margin: 0; font-size: 15px; line-height: 1.45; }
.confirm-modal__actions { display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* ---------- User card quick actions (hover overlay) ---------- */
.user-card-wrap { position: relative; }
.user-card-wrap.is-birthday .user-card { /* allow legacy is-birthday styling to inherit */ }
.user-card__presence {
  position: absolute; top: 8px; left: 8px; z-index: 2;
}
.user-card__vip {
  position: absolute; top: 8px; right: 8px; z-index: 2;
}
.user-card__cake {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-size: 18px; background: #fff; border-radius: 50%;
  width: 28px; height: 28px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.user-card__quick-actions {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur-fast, 150ms) ease, transform var(--dur-fast, 150ms) ease;
  pointer-events: none;
}
.user-card-wrap:hover .user-card__quick-actions,
.user-card-wrap:focus-within .user-card__quick-actions {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
/* If VIP chip is visible, push quick actions below it on hover. */
.user-card-wrap:hover .user-card__vip { opacity: 0; transition: opacity var(--dur-fast) ease; }
.user-card__qa-form { margin: 0; }
.user-card__qa-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink); border: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1;
  cursor: pointer; text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast, 150ms) ease, transform var(--dur-fast, 150ms) ease;
}
.user-card__qa-btn:hover { background: #fff; transform: scale(1.06); }
.user-card__qa-btn--danger:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
/* Hide on mobile/touch — there's no hover trigger and the icons crowd
   the photo. Mobile users can report/block from the user-profile page
   instead, which has full-size buttons. */
@media (hover: none) {
  .user-card__quick-actions { display: none; }
}

/* ---------- Presence chip (online / last-seen) ---------- */
.presence {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
}
.presence__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.presence--online {
  color: #2C8A5A;
  background: rgba(91, 142, 114, 0.12);
  border-color: rgba(91, 142, 114, 0.3);
}
.presence--online .presence__dot {
  background: #2C8A5A;
  box-shadow: 0 0 0 3px rgba(91, 142, 114, 0.18);
}

/* ---------- Profile completion meter ---------- */
.profile-meter { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.profile-meter__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}
.profile-meter__title { margin: 0; font-size: 16px; }
.profile-meter__sub { margin: 2px 0 0; font-size: 13px; }
.profile-meter__percent {
  font-family: var(--f-mono); font-size: 20px; font-weight: 600;
  color: var(--primary);
}
.profile-meter__track {
  height: 8px; border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}
.profile-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s var(--ease-out, ease);
}
.profile-meter__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 2px;
}
.profile-meter__link {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px var(--sp-2);
  border-radius: 8px;
  text-decoration: none; color: var(--ink);
  transition: background var(--dur-fast, 150ms) ease;
}
.profile-meter__link:hover { background: var(--surface-alt); }
.profile-meter__bullet { color: var(--ink-muted); }
.profile-meter__label { flex: 1; font-size: 14px; }
.profile-meter__chevron { color: var(--ink-muted); transition: transform var(--dur-fast, 150ms) ease; }
.profile-meter__link:hover .profile-meter__chevron { transform: translateX(2px); color: var(--primary); }

/* ---------- Email-confirmed landing ---------- */
.confirm-success {
  max-width: 480px; margin: var(--sp-7) auto;
  text-align: center;
  display: grid; gap: var(--sp-6);
}
.confirm-success__hero { display: grid; gap: var(--sp-3); }
.confirm-success__check {
  width: 72px; height: 72px; margin: 0 auto;
  border-radius: 50%;
  background: var(--mint); color: #fff;
  font-size: 36px; line-height: 72px;
  font-weight: 700;
}
.confirm-success__title { margin: 0; font-size: clamp(24px, 5vw, 32px); }
.confirm-success__lede { margin: 0; }
.confirm-success__cta { display: grid; gap: var(--sp-2); }

/* ---------- Permissions page ---------- */
.permissions-page { max-width: 680px; margin: 0 auto; }
.permissions-page__title { margin: 0 0 var(--sp-2); }
.permissions-page__lede { margin: 0 0 var(--sp-5); }
.permissions-page__section-title { font-size: 18px; margin: 0 0 var(--sp-3); }
.permissions-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.permissions-list--pending { margin-bottom: var(--sp-6); }
.permissions-row {
  display: flex; gap: 12px; align-items: center;
}
.permissions-row__avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}
.permissions-row__body { flex: 1; min-width: 0; }
.permissions-row__name { font-weight: 600; }
.permissions-row__sub { font-size: 12px; }
.permissions-row__actions { margin: 0; display: flex; gap: 6px; }

/* ---------- Chat list rail empty state ---------- */
.chat-list-rail__empty {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
}
.chat-list-rail__empty-icon { font-size: 32px; margin-bottom: var(--sp-2); }

/* ---------- Flash close button + leave animation ---------- */
.flash { position: relative; }
.flash__close {
  position: absolute; top: 4px; right: 6px;
  width: 24px; height: 24px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: inherit; opacity: 0.6;
  border-radius: 50%;
}
.flash__close:hover { opacity: 1; background: rgba(0,0,0,0.06); }
.flash.is-leaving {
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
