/* Elternsprechtag — final stylesheet (Variant C polished) */
:root {
  --paper: #fefcf7;
  --paper-2: #fdf6e5;
  --ink: #1f1b16;
  --ink-2: #4a4137;
  --muted: #6b6256;
  --muted-2: #8a7d6c;
  --line: #efe5d2;
  --line-2: #e6dccb;
  --amber: #f59e0b;
  --amber-shadow: #c97c00;
  --teal: #0f766e;
  --teal-soft: #ecfdf5;
  --teal-line: #bbf7d0;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-line: #fecaca;
}

html, body, #root { width: 100%; min-height: 100%; margin: 0; }
body {
  background: #f3ebd7;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(31,27,22,0.18); border-radius: 999px; }

/* ── Page layout ─────────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding: 32px 20px 60px;
  display: flex;
  justify-content: center;
  position: relative;
}
.pageBackdrop {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(245,158,11,0.10), transparent 40%),
    radial-gradient(circle at 88% 90%, rgba(15,118,110,0.08), transparent 45%);
}

.card {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 760px;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 24px 60px -20px rgba(31, 27, 22, 0.22),
    0 4px 14px -8px rgba(31, 27, 22, 0.18);
  overflow: visible;
  padding-bottom: 8px;
  /* Subtle ruled-paper background */
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 36px;
  background-position: 0 92px;
}

/* Washi tape */
.tape {
  position: absolute; top: -10px; width: 88px; height: 22px;
  opacity: 0.85; box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  z-index: 4;
}
.tape::before, .tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 6px;
  background: inherit;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 2px, #000 2.2px);
          mask: radial-gradient(circle at 50% 50%, transparent 2px, #000 2.2px);
  -webkit-mask-size: 6px 6px;
          mask-size: 6px 6px;
}
.tape-tl { left: 38px; transform: rotate(-4deg); background: #fcd34d; }
.tape-tr { right: 70px; transform: rotate(3deg); background: #86efac; }

/* ── Header ──────────────────────────────────────────────── */
.header {
  padding: 26px 28px 18px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  position: relative; z-index: 2;
}
.headerLeft { display: flex; align-items: center; gap: 16px; }
.headerRight { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.headerActions { display: flex; gap: 8px; }

.dateChip {
  width: 64px; padding: 8px 0;
  border-radius: 12px;
  background: linear-gradient(160deg, #2c2722 0%, #1f1b16 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(31,27,22,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  transform: rotate(-2deg);
}
.dateChipDow {
  font-size: 9px; font-weight: 800; letter-spacing: 1.4px;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
}
.dateChipNum {
  font-family: "Fraunces", serif; font-size: 26px; font-weight: 700;
  color: #fff; line-height: 1; margin-top: 2px;
}
.dateChipMonth {
  font-size: 10px; color: rgba(255,255,255,0.85); margin-top: 2px;
}

.title {
  font-family: "Fraunces", serif; font-size: 28px; font-weight: 600;
  color: var(--ink); line-height: 1.1; margin: 0;
}
.subtitle {
  font-size: 13px; color: var(--muted); margin-top: 4px;
}

.iconBtn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--paper);
  cursor: pointer; color: var(--muted-2);
  display: flex; align-items: center; justify-content: center;
  transition: all 120ms ease;
}
.iconBtn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ── Day picker ──────────────────────────────────────────── */
.dayBar {
  padding: 12px 28px 14px; background: var(--paper);
  border-bottom: 1px solid var(--line); position: relative; z-index: 2;
}
.dayChips { display: flex; gap: 8px; flex-wrap: wrap; }
.dayChip {
  flex: 1; min-width: 180px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 14px; cursor: pointer;
  text-align: left; transition: all 120ms ease;
}
.dayChip:hover { border-color: var(--muted-2); }
.dayChip.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.35);
}
.dayChipMain {
  font-family: "Fraunces", serif; font-size: 15px; font-weight: 600;
}
.dayChipMeta {
  font-size: 11px; color: var(--muted-2); margin-top: 2px;
}
.dayChip.active .dayChipMeta { color: rgba(255,255,255,0.7); }

/* ── Live status banner ──────────────────────────────────── */
.liveBanner {
  margin: 16px 28px 0; padding: 12px 16px;
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.liveBanner.ontime { background: var(--teal-soft); border: 1.5px dashed var(--teal); }
.liveBanner.delayed { background: var(--red-soft); border: 1.5px dashed var(--red); }
.liveBannerLeft { display: flex; align-items: center; gap: 12px; }
.livePulse {
  width: 12px; height: 12px; border-radius: 999px;
  display: inline-block;
}
.liveBanner.ontime .livePulse {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(15,118,110,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.liveBanner.delayed .livePulse {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(220,38,38,0.18);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.liveTitle { font-size: 14px; font-weight: 800; color: var(--ink); }
.liveMeta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.liveBannerRight { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 200px; }
.liveProgressLabel { font-size: 11px; color: var(--muted); font-weight: 700; }
.liveProgress {
  width: 200px; height: 8px; background: rgba(255,255,255,0.6);
  border-radius: 999px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06);
}
.liveProgressFill { height: 100%; transition: width 200ms ease; }
.liveNow {
  font-family: "Fraunces", serif; font-style: italic; font-size: 11px; color: var(--muted-2);
}

/* ── Privacy notice ──────────────────────────────────────── */
.privacyNotice {
  margin: 16px 28px 0; padding: 10px 14px;
  background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #78350f; line-height: 1.5;
  position: relative; z-index: 2;
}
.privacyNotice strong { color: #92400e; font-weight: 800; }

/* ── Slot list ───────────────────────────────────────────── */
.slotList {
  padding: 14px 28px 18px; display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 2;
}

.slot {
  display: flex; align-items: stretch;
  background: #fffdf8;
  border: 1px solid var(--line-2);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: all 150ms ease;
}
.slot:not(.occupied):hover {
  border-color: var(--muted-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(31,27,22,0.15);
}
.slot.current { border-color: var(--teal); border-width: 2px; background: var(--teal-soft); }
.slot.delayed { border-color: var(--red); border-width: 2px; background: var(--red-soft); }
.slot.done { background: #f5efe2; border-style: dashed; }

.slotTime {
  width: 80px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 8px;
}
.slotTimeFrom {
  font-family: "Fraunces", serif; font-size: 18px; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.slotTimeTo {
  font-size: 10px; color: var(--muted-2); margin-top: 4px;
}
.slot.done .slotTimeFrom { color: var(--muted-2); }

.slotDivider { width: 1px; background: var(--line); margin: 8px 0; }

.slotBody {
  flex: 1; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 0;
}
.slotBodyMain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.slotContent { flex: 1; min-width: 0; }

.freeLabel {
  font-size: 14px; color: var(--muted-2); font-style: italic;
}
.bookingChild {
  font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot.done .bookingChild {
  text-decoration: line-through; text-decoration-color: var(--muted-2);
  opacity: 0.55;
}
.bookingParent { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bookingTopic { color: var(--muted-2); font-style: italic; }

.slotActions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.bookBtn {
  background: var(--ink); color: var(--paper);
  border: none; padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 120ms ease;
}
.bookBtn:hover { background: var(--amber); color: var(--ink); transform: translateY(-1px); }

.ghostXBtn {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; color: var(--muted-2); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.ghostXBtn:hover { border-color: var(--red); color: var(--red); }

/* Booked stamp (shown to other parents) */
.bookedStamp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 2px solid var(--amber-shadow); border-radius: 4px;
  transform: rotate(-2deg);
  color: var(--amber-shadow);
  font-family: "Fraunces", serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(245, 158, 11, 0.06);
  position: relative;
}
.bookedStamp::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 4px; border: 1px dashed var(--amber-shadow);
  opacity: 0.3;
  pointer-events: none;
}
.bookedStampLock {
  width: 22px; height: 22px; border-radius: 999px;
  border: 1.5px solid var(--amber-shadow);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Break row ───────────────────────────────────────────── */
.breakRow {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px;
}
.breakLine { flex: 1; height: 1px; background: var(--line-2); border-bottom: 1px dashed var(--line-2); }
.breakText {
  font-size: 12px; color: var(--muted-2); font-style: italic;
  font-family: "Fraunces", serif;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 14px 28px 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted-2); border-top: 1px solid var(--line);
  margin-top: 4px; position: relative; z-index: 2;
}
.textBtn {
  background: transparent; border: none; cursor: pointer;
  font-size: 11px; color: var(--muted-2); text-decoration: underline;
  padding: 0;
}
.textBtn:hover { color: var(--red); }

/* ── Loading & error screens ─────────────────────────────── */
.loadingScreen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font-family: "Nunito", sans-serif; color: var(--muted); font-size: 14px;
}
.loadingScreen.errorScreen { color: var(--ink); padding: 40px; }
.errTitle { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; margin-bottom: 6px; color: var(--red); }
.errBody { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.errHint { font-size: 12px; color: var(--muted-2); }
.errHint code { background: var(--paper-2); padding: 2px 5px; border-radius: 4px; }

.errorToast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(220,38,38,0.4);
  z-index: 200; animation: toastIn 220ms ease;
}

/* ── Login modal (shared modal styles) ───────────────────── */
.modalBackdrop {
  position: fixed; inset: 0; background: rgba(31,27,22,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 150;
  padding: 20px; backdrop-filter: blur(2px);
}
.modalSheet {
  background: var(--paper); border-radius: 14px; padding: 24px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25); border: 1px solid var(--line);
}
.modalSheet.small { max-width: 340px; }
.modalTitle { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; color: var(--ink); }
.modalSub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.modalSub code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.modalField { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.modalLabel { font-size: 12px; color: var(--muted); font-weight: 700; }
.modalInput {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px;
  font-size: 14px; background: #fffdf8; color: var(--ink); outline: none; width: 100%;
}
.modalInput:focus { border-color: var(--ink); }
.modalActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.primaryBtn {
  background: var(--amber); color: var(--ink); border: none;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: 0 1px 0 var(--amber-shadow);
}
.primaryBtn:disabled { opacity: 0.4; cursor: not-allowed; }
.ghostBtn {
  background: transparent; color: var(--muted); border: 1px solid var(--line-2);
  padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.25);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  animation: toastIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1.2);
  max-width: 340px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toastStamp {
  border: 2px solid var(--teal); color: var(--teal);
  padding: 6px 10px; border-radius: 4px; transform: rotate(-3deg);
  font-family: "Fraunces", serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  background: rgba(15, 118, 110, 0.04);
  flex-shrink: 0;
}
.toastTitle { font-size: 13px; font-weight: 700; color: var(--ink); }
.toastMeta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page { padding: 16px 12px 40px; }
  .card { border-radius: 14px; }
  .header { padding: 22px 18px 14px; }
  .headerLeft { gap: 12px; }
  .title { font-size: 22px; }
  .dateChip { width: 54px; }
  .dateChipNum { font-size: 22px; }
  .dayBar { padding: 10px 18px 12px; }
  .dayChip { min-width: 0; flex-basis: 100%; }
  .liveBanner { margin: 12px 18px 0; padding: 10px 12px; }
  .liveBannerRight { width: 100%; align-items: flex-start; }
  .liveProgress { width: 100%; }
  .privacyNotice { margin: 12px 18px 0; }
  .slotList { padding: 12px 18px 16px; }
  .slot { flex-wrap: nowrap; }
  .slotTime { width: 64px; padding: 10px 4px; }
  .slotTimeFrom { font-size: 16px; }
  .slotBody { padding: 10px 12px; }
  .footer { padding: 12px 18px 14px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .tape-tl { left: 22px; }
  .tape-tr { right: 22px; }
  .bookedStamp { font-size: 11px; padding: 3px 9px 3px 4px; letter-spacing: 1.2px; }
}


/* ── Einladungs-Button im Header ──────────────────────────── */
.invitesBtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}
.invitesBtn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.invitesBtnBadge {
  font-family: "Nunito", sans-serif;
  font-size: 11px; font-weight: 800;
  background: var(--ink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ── Persönliche Begrüßung (Eltern mit Token) ─────────────── */
.inviteWelcome {
  margin: 16px 28px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef9ee 0%, #fdf6e5 100%);
  border: 1px solid #f5e9c8;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.inviteWelcomeStamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: "Nunito", sans-serif; font-size: 9px; font-weight: 800;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--amber-shadow);
  padding: 8px 10px;
  border: 1.5px dashed var(--amber);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.inviteWelcomeBody { line-height: 1.4; }
.inviteWelcomeTitle {
  font-family: "Fraunces", serif; font-size: 18px; font-weight: 500;
  color: var(--ink);
}
.inviteWelcomeTitle strong { font-weight: 700; }
.inviteWelcomeSub {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}

/* ── „Mein Termin" Hervorhebung im Slot ───────────────────── */
.slot.mine {
  background: #ecfdf5;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 1px #6ee7b7 inset, 0 2px 8px -3px rgba(15,118,110,0.25);
}
.slot.mine .slotTimeFrom { color: #065f46; }
.mineDetails .mineLabel {
  font-family: "Nunito", sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #065f46;
}
.mineDetails .mineSub {
  font-family: "Fraunces", serif;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  margin-top: 2px;
}
.lockedHint {
  font-size: 11px; color: var(--muted-2); font-style: italic;
}

/* ── Einladungs-Modal ─────────────────────────────────────── */
.inviteStats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 16px 0 14px;
}
.inviteStat {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.inviteStat.total { background: var(--ink); border-color: var(--ink); }
.inviteStatNum {
  font-family: "Fraunces", serif; font-size: 22px; font-weight: 600;
  color: var(--ink); line-height: 1;
}
.inviteStat.total .inviteStatNum { color: #fff; }
.inviteStatLabel {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted-2);
}
.inviteStat.total .inviteStatLabel { color: rgba(255,255,255,0.7); }

.inviteListWrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.inviteListHead {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.6fr auto;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted-2);
}
.inviteList {
  max-height: 300px;
  overflow-y: auto;
}
.inviteRow {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.6fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 13px;
  background: var(--paper);
}
.inviteRow:last-child { border-bottom: none; }
.inviteRow:hover { background: #fdfaf2; }
.inviteRow-gebucht { background: #f4fbf7; }
.inviteRow-gebucht:hover { background: #eaf7f0; }

.inviteParent {
  font-family: "Fraunces", serif; font-size: 14px; font-weight: 600;
  color: var(--ink);
}
.inviteChild { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.inviteStatusPill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px; font-weight: 700;
}
.inviteStatusIcon { font-size: 11px; }

.inviteLinkCell {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.inviteToken {
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 10.5px;
  background: var(--paper-2);
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.inviteCopyBtn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 120ms ease;
  flex-shrink: 0;
}
.inviteCopyBtn:hover { border-color: var(--ink); color: var(--ink); }

.inviteRowActions {
  display: flex; gap: 4px; justify-content: flex-end;
}
.inviteIconBtn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  width: 26px; height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; padding: 0;
  transition: all 120ms ease;
}
.inviteIconBtn:hover { border-color: var(--ink); color: var(--ink); }
.inviteIconBtn.danger:hover { border-color: var(--red); color: var(--red); }

.inviteAddRow {
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 10px;
}
.inviteAddBtn {
  background: var(--ink); color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms ease;
  font-family: "Nunito", sans-serif;
}
.inviteAddBtn:hover:not(:disabled) { background: #2c2722; }
.inviteAddBtn:disabled { opacity: 0.4; cursor: not-allowed; }

.inviteFootHint {
  background: #fffaef;
  border: 1px solid #f5e9c8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .inviteListHead, .inviteRow {
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
  }
  .inviteListHead > :nth-child(3),
  .inviteListHead > :nth-child(4) { display: none; }
  .inviteRow > :nth-child(3) { grid-column: 1 / -1; }
  .inviteRow > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .inviteWelcome { margin: 16px 16px 0; }
  .invitesBtn span:not(.invitesBtnBadge) { display: none; }
}
