/* Invite People — ULTRA-LUXURY FIRST-CLASS INVITATION MODAL (Claude Code 2026-11-16).
   Owner: reference picture "redesign like this", then the strict spec (colour tokens, sizes, spacing, breakpoints, motion).
   Dark sapphire glass over the meeting's own waterfall (no second photo inside the panel), a thin champagne-gold metallic frame,
   serif gold title with laurels, the meeting name on a capsule, the real QR on white (existing generator, untouched), ID /
   passcode tickets, glossy gold Copy Invitation, four sharing keys, (i) footer under a fine divider.
   Markup + actions: MeetScreen.js invite() and meet-invite-extra.js (Send to a Friend, Text Message). Loaded after meet-lobby.css;
   "html body …" outranks its photo + light-theme backgrounds. Sizes are px (the spec's), so the window keeps its proportions.
   Previous version: scratch/offline-debug/meet-invite-lux.before-spec.css */

.mt-invite-dlg {
  /* spec §3 colour tokens */
  --iv-glass-1: #071C28; --iv-glass-2: #102C3B; --iv-sapphire: #061526; --iv-overlay: rgba(6, 22, 33, .88);
  --iv-champagne: #FFF1BA; --iv-gold-bright: #F7D777; --iv-gold: #D8AA45; --iv-gold-deep: #A97720; --iv-gold-dark: #755014;
  --iv-white: #FFFFFF; --iv-white-2: #E6EDF2; --iv-gold-head: #F4D47B; --iv-muted: #C5D1D8;
  --iv-gold-grad: linear-gradient(135deg, #FFF1BA 0%, #D8AA45 30%, #A97720 65%, #F7D777 100%);
  --iv-shadow: 0 24px 65px rgba(0, 0, 0, .48);
  --iv-glow: 0 0 12px rgba(216, 170, 69, .20);
  --iv-edge: 0 0 5px rgba(255, 225, 145, .32);
  --iv-ease: cubic-bezier(.22, 1, .36, 1);
  /* sizes (desktop ≥ 1024) */
  --iv-pad-x: 28px; --iv-title: 36px; --iv-qr: 210px; --iv-num: 25px; --iv-main-h: 54px; --iv-sec-h: 44px; --iv-sec-fs: 13px; --iv-foot: 11px;
}

/* ---------- §4 the panel ---------- */
html body .mt-dialog.mt-invite-dlg.mt-invite-dlg {
  box-sizing: border-box; width: 500px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: auto;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: grid; justify-items: stretch; gap: 0; text-align: center;
  padding: 32px var(--iv-pad-x) 24px; border-radius: 28px; color: var(--iv-white);
  /* 1.5px metallic frame (gradient border via two backgrounds) + translucent sapphire glass, no photo inside */
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(155deg, rgba(12, 42, 52, .94), rgba(5, 20, 35, .96)) padding-box,
    var(--iv-gold-grad) border-box !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%); backdrop-filter: blur(24px) saturate(145%);
  box-shadow: var(--iv-shadow), var(--iv-glow) !important;
  animation: ivOpen 220ms var(--iv-ease) both;
}
html body .mt-dialog.mt-invite-dlg.mt-invite-dlg::-webkit-scrollbar { display: none; }
/* the 1px inner highlight line */
html body .mt-dialog.mt-invite-dlg.mt-invite-dlg::before {
  content: ""; position: absolute; inset: 5px; border-radius: 23px; pointer-events: none;
  border: 1px solid rgba(255, 225, 145, .22); box-shadow: inset 0 1px 0 rgba(255, 241, 186, .10);
}
/* the meeting (and its waterfall) stays visible behind the glass */
html body .mt-dialog.mt-invite-dlg.mt-invite-dlg::backdrop { background: rgba(3, 10, 18, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes ivOpen { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- §5.1 crest: 48px circle with the three-people emblem, small ornaments either side ---------- */
.mt-dialog.mt-invite-dlg .mt-inv-crest {
  position: relative; justify-self: center; width: 48px; height: 48px; margin: -14px 0 6px; display: grid; place-items: center;
  border-radius: 50%; color: var(--iv-gold-bright); background: radial-gradient(circle at 50% 35%, #12324A, var(--iv-sapphire));
  border: 1px solid var(--iv-gold); box-shadow: var(--iv-edge);
  left: auto; top: auto; transform: none;
}
.mt-dialog.mt-invite-dlg .mt-inv-crest svg { width: 25px; height: 25px; margin: 0; filter: none; }
.mt-dialog.mt-invite-dlg .mt-inv-crest::before, .mt-dialog.mt-invite-dlg .mt-inv-crest::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, transparent, var(--iv-gold));
}
.mt-dialog.mt-invite-dlg .mt-inv-crest::before { right: calc(100% + 6px); left: auto; }
.mt-dialog.mt-invite-dlg .mt-inv-crest::after { left: calc(100% + 6px); right: auto; transform: scaleX(-1); }

/* ---------- §5.4 close ---------- */
html body .mt-dialog.mt-invite-dlg .mt-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; color: var(--iv-gold-bright); background: rgba(6, 22, 33, .82); border: 1px solid var(--iv-gold); box-shadow: none; cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
html body .mt-dialog.mt-invite-dlg .mt-x .ic { width: 18px; height: 18px; }
html body .mt-dialog.mt-invite-dlg .mt-x:hover { background: rgba(216, 170, 69, .16); box-shadow: var(--iv-edge); }
html body .mt-dialog.mt-invite-dlg .mt-x:active { transform: scale(.96); }

/* ---------- §5.2 title with laurels ---------- */
html body .mt-dialog.mt-invite-dlg .mt-inv-title { margin: 0 34px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-shadow: none; }
.mt-dialog.mt-invite-dlg .mt-inv-tt {
  white-space: nowrap; font: 600 var(--iv-title)/1.1 "Cormorant Garamond", "Playfair Display", Georgia, serif; letter-spacing: .2px;
  background: linear-gradient(180deg, var(--iv-champagne), var(--iv-gold)); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: none;
}
.mt-dialog.mt-invite-dlg .mt-inv-laurel { width: 20px; height: 34px; flex: none; color: var(--iv-gold); filter: none; }
.mt-dialog.mt-invite-dlg .mt-inv-laurel.r { transform: scaleX(-1); }

/* ---------- §5.3 meeting name capsule with fine dividers ---------- */
html body .mt-dialog.mt-invite-dlg .mt-inv-sub { margin: 8px 0 0; display: flex; align-items: center; gap: 12px; text-shadow: none; }
.mt-dialog.mt-invite-dlg .mt-inv-sub::before, .mt-dialog.mt-invite-dlg .mt-inv-sub::after { content: ""; flex: 1 1 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--iv-gold)); }
.mt-dialog.mt-invite-dlg .mt-inv-sub::after { background: linear-gradient(90deg, var(--iv-gold), transparent); }
.mt-dialog.mt-invite-dlg .mt-inv-sub span {
  box-sizing: border-box; min-width: 140px; max-width: 78%; height: 34px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px; border: 1px solid var(--iv-gold); background: rgba(6, 21, 38, .72);
  font: 600 15px/1 "Manrope", system-ui, sans-serif; color: var(--iv-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- §6 QR ---------- */
html body .mt-dialog.mt-invite-dlg .mt-ticket { margin: 18px 0 0; padding: 0; gap: 0; display: grid; justify-items: center; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body .mt-dialog.mt-invite-dlg .mt-qr {
  position: relative; box-sizing: content-box; width: var(--iv-qr); height: var(--iv-qr); aspect-ratio: auto; padding: 8px; border-radius: 16px; background: #FFFFFF;
  border: 1.5px solid var(--iv-gold); box-shadow: 0 0 18px rgba(216, 170, 69, .16), 0 10px 24px rgba(0, 0, 0, .28);
}
html body .mt-dialog.mt-invite-dlg .mt-qr svg { display: block; width: 100%; height: 100%; border-radius: 8px; }
/* small corner highlights on the frame (outside the code, never over its modules) */
html body .mt-dialog.mt-invite-dlg .mt-qr::before, html body .mt-dialog.mt-invite-dlg .mt-qr::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; border: 2px solid var(--iv-champagne);
}
html body .mt-dialog.mt-invite-dlg .mt-qr::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
html body .mt-dialog.mt-invite-dlg .mt-qr::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
html body .mt-dialog.mt-invite-dlg .mt-qr-cap {
  margin: 10px 0 0; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 18px; border-radius: 16px;
  font: 700 13px/1 "Manrope", system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--iv-champagne);
  background: rgba(6, 21, 38, .8); border: 1px solid var(--iv-gold); box-shadow: none;
}
.mt-dialog.mt-invite-dlg .mt-qr-cap .ic { width: 17px; height: 17px; color: var(--iv-gold-bright); }

/* ---------- §7 Meeting ID / Passcode ---------- */
html body .mt-dialog.mt-invite-dlg .mt-tk-row { width: 100%; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html body .mt-dialog.mt-invite-dlg .mt-tk {
  box-sizing: border-box; min-width: 0; min-height: 92px; padding: 12px 8px; display: grid; align-content: center; justify-items: center; gap: 5px;
  border-radius: 16px; cursor: pointer; color: var(--iv-white);
  border: 1px solid transparent; background: linear-gradient(160deg, #102C43, #061526) padding-box, var(--iv-gold-grad) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 241, 186, .08), 0 6px 14px rgba(0, 0, 0, .25);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
html body .mt-dialog.mt-invite-dlg .mt-tk:hover { box-shadow: inset 0 1px 0 rgba(255, 241, 186, .12), var(--iv-glow); }
html body .mt-dialog.mt-invite-dlg .mt-tk:active { transform: scale(.985); }
html body .mt-dialog.mt-invite-dlg .mt-tk > span { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 "Manrope", system-ui, sans-serif; letter-spacing: .8px; text-transform: uppercase; color: var(--iv-white); }
.mt-dialog.mt-invite-dlg .mt-tk > span .ic { width: 17px; height: 17px; color: var(--iv-gold-bright); }
html body .mt-dialog.mt-invite-dlg .mt-tk b { font: 700 var(--iv-num)/1.1 "Manrope", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .5px; color: var(--iv-white); white-space: nowrap; }
html body .mt-dialog.mt-invite-dlg .mt-tk i {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 12px; font-style: normal;
  border: 1px solid rgba(216, 170, 69, .75); background: rgba(0, 0, 0, .18); color: var(--iv-white-2);
}
.mt-dialog.mt-invite-dlg .mt-tk i em { font: 600 11px/1 "Manrope", system-ui, sans-serif; font-style: normal; }
.mt-dialog.mt-invite-dlg .mt-tk i .ic { width: 13px; height: 13px; color: var(--iv-gold-bright); }
html body .mt-dialog.mt-invite-dlg .mt-tk.is-copied { box-shadow: var(--iv-glow); }
html body .mt-dialog.mt-invite-dlg .mt-tk.is-copied i { border-color: #6FD3A4; }
html body .mt-dialog.mt-invite-dlg .mt-tk.is-copied i em { color: #9FE8C2; }

/* ---------- §8 Copy Invitation ---------- */
html body .mt-dialog.mt-invite-dlg .mt-inv-main {
  box-sizing: border-box; width: 100%; height: var(--iv-main-h); min-height: 0; margin: 18px 0 0; padding: 0 20px; gap: 10px;
  display: flex; align-items: center; justify-content: center; border-radius: 27px; cursor: pointer;
  font: 700 17px/1 "Manrope", system-ui, sans-serif; color: #17202A; text-shadow: 0 1px 0 rgba(255, 241, 186, .55);
  background: linear-gradient(180deg, #FFF1BA 0%, #F7D777 22%, #D8AA45 68%, #A97720 100%) !important;
  border: 1px solid #FFF1BA !important; border-bottom-color: var(--iv-gold-dark) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(117, 80, 20, .55), 0 8px 18px rgba(0, 0, 0, .32), var(--iv-glow) !important;
  transition: filter 150ms ease, transform 150ms ease;
}
html body .mt-dialog.mt-invite-dlg .mt-inv-main .ic { width: 19px; height: 19px; color: #17202A; }
html body .mt-dialog.mt-invite-dlg .mt-inv-main:hover { filter: brightness(1.06); }
html body .mt-dialog.mt-invite-dlg .mt-inv-main:active { transform: scale(.985); }

/* ---------- §9 sharing keys (2 × 2) ---------- */
html body .mt-dialog.mt-invite-dlg .mt-inv-two { margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
html body .mt-dialog.mt-invite-dlg .mt-inv-two + .mt-inv-two { margin-top: 12px; }
html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass {
  box-sizing: border-box; min-width: 0; width: 100%; height: var(--iv-sec-h); min-height: 0; padding: 0 10px; gap: 8px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 22px; cursor: pointer;
  font: 600 var(--iv-sec-fs)/1 "Manrope", system-ui, sans-serif; color: var(--iv-white); text-shadow: none;
  background: linear-gradient(180deg, #11304A, #071A2C); border: 1px solid rgba(216, 170, 69, .85); box-shadow: inset 0 1px 0 rgba(255, 241, 186, .06);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass .ic { width: 17px; height: 17px; flex: none; color: var(--iv-gold-bright); }
html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass:hover { background: linear-gradient(180deg, #15395A, #0A2238); border-color: var(--iv-gold-bright); box-shadow: var(--iv-glow); }
html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass:active { transform: scale(.985); }

/* ---------- §10 footer ---------- */
.mt-dialog.mt-invite-dlg .mt-inv-rule { display: block; height: 1px; margin: 16px 12% 0; background: linear-gradient(90deg, transparent, rgba(216, 170, 69, .7), transparent); }
html body .mt-dialog.mt-invite-dlg .mt-inv-note {
  margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px;
  font: 400 var(--iv-foot)/1.5 "Manrope", system-ui, sans-serif; color: var(--iv-muted); text-align: center;
}
.mt-dialog.mt-invite-dlg .mt-inv-note .ic { width: 15px; height: 15px; flex: none; color: var(--iv-gold); }
.mt-dialog.mt-invite-dlg .mt-inv-note em { font-style: italic; }
.mt-dialog.mt-invite-dlg .mt-inv-flourish { display: block; width: 96px; height: 14px; margin: 8px auto 0; color: var(--iv-gold); opacity: .9; }

/* ---------- keyboard focus (§13) ---------- */
html body .mt-dialog.mt-invite-dlg :is(.mt-x, .mt-tk, .mt-inv-main, .mt-btn.mt-glass):focus-visible { outline: 2px solid var(--iv-champagne); outline-offset: 3px; }

/* ---------- §12 responsive ---------- */
@media (max-width: 1023px) {   /* tablet 600–1023 */
  .mt-invite-dlg { --iv-title: 32px; --iv-qr: 190px; }
  html body .mt-dialog.mt-invite-dlg.mt-invite-dlg { width: min(480px, calc(100vw - 32px)); }
}
@media (max-width: 599px) {    /* phones */
  .mt-invite-dlg { --iv-pad-x: 18px; --iv-title: 28px; --iv-qr: 170px; --iv-num: 19px; --iv-main-h: 50px; --iv-sec-h: 42px; --iv-sec-fs: 12px; --iv-foot: 10px; }
  html body .mt-dialog.mt-invite-dlg.mt-invite-dlg { width: calc(100vw - 24px); max-width: 420px; max-height: calc(100dvh - 24px); }
  html body .mt-dialog.mt-invite-dlg .mt-inv-title { margin: 0 30px; gap: 6px; }
  .mt-dialog.mt-invite-dlg .mt-inv-laurel { width: 16px; height: 28px; }
  html body .mt-dialog.mt-invite-dlg .mt-tk { min-height: 84px; }
  html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass { gap: 6px; padding: 0 8px; }
  html body .mt-dialog.mt-invite-dlg .mt-btn.mt-glass .ic { width: 16px; height: 16px; }
}
@media (max-width: 339px) {    /* very narrow: one key per row */
  html body .mt-dialog.mt-invite-dlg .mt-inv-two { grid-template-columns: minmax(0, 1fr); }
}
/* short screens: less air, smaller QR — the window scrolls inside before anything is cut */
@media (max-height: 800px) {   /* e.g. 1024 × 768 laptops, 360 × 740 phones: the whole window still fits */
  .mt-invite-dlg { --iv-qr: 150px; --iv-main-h: 50px; --iv-sec-h: 40px; }
  html body .mt-dialog.mt-invite-dlg.mt-invite-dlg { padding-top: 26px; padding-bottom: 16px; }
  html body .mt-dialog.mt-invite-dlg .mt-ticket, html body .mt-dialog.mt-invite-dlg .mt-tk-row, html body .mt-dialog.mt-invite-dlg .mt-inv-main { margin-top: 12px; }
  html body .mt-dialog.mt-invite-dlg .mt-tk { min-height: 80px; padding: 9px 8px; }
  html body .mt-dialog.mt-invite-dlg .mt-inv-two { margin-top: 12px; }
  html body .mt-dialog.mt-invite-dlg .mt-inv-two + .mt-inv-two { margin-top: 10px; }
  .mt-dialog.mt-invite-dlg .mt-inv-rule { margin-top: 12px; }
  html body .mt-dialog.mt-invite-dlg .mt-inv-note { margin-top: 8px; }
}
@media (max-height: 700px) {
  .mt-invite-dlg { --iv-qr: 136px; --iv-main-h: 46px; --iv-sec-h: 38px; }
  html body .mt-dialog.mt-invite-dlg .mt-tk { min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .mt-dialog.mt-invite-dlg.mt-invite-dlg { animation: none; }
  html body .mt-dialog.mt-invite-dlg :is(.mt-x, .mt-tk, .mt-inv-main, .mt-btn.mt-glass) { transition: none; }
}
html body .mt-dialog.mt-invite-dlg.mt-invite-dlg:focus { outline: none; }   /* opens focused on itself (MeetScreen.js) */
