:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --ink: #2a1a22;
  --muted: #6e5c65;
  --wine: #6b1f3a;
  --wine-2: #8d2b4e;
  --gold: #b8892f;
  --gold-soft: #f3e6c8;
  --line: #eadfd6;
  --ok: #1f7a4d;
  --ok-bg: #e3f4ea;
  --no: #a3322b;
  --no-bg: #fbe7e5;
  --warn-bg: #fff4d6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(107, 31, 58, .10);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--wine); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Convite ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 56px 20px 88px;
  background: radial-gradient(circle at 20% 10%, #a43a63 0, transparent 45%),
              radial-gradient(circle at 85% 30%, #c9a24a55 0, transparent 40%),
              linear-gradient(160deg, var(--wine) 0%, #3d0f22 100%);
}
.hero::after { /* confetes suaves */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(#f3e6c8 1.2px, transparent 1.6px), radial-gradient(#f3e6c8 1px, transparent 1.4px);
  background-size: 46px 46px, 29px 29px; background-position: 0 0, 13px 19px;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; color: var(--gold-soft); margin: 0; }
.big-age { font-family: var(--serif); font-size: clamp(6rem, 30vw, 10rem); line-height: .9; margin: 8px 0 0; color: var(--gold-soft);
  text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 9vw, 3.2rem); margin: 4px 0 10px; }
.hero .lead { max-width: 30rem; margin: 0 auto; color: #f7eaf0; }

.wrap { max-width: 560px; margin: -56px auto 0; padding: 0 16px 48px; position: relative; z-index: 2; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); }
.card h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 12px; color: var(--wine); }

.greeting { text-align: center; }
.greeting h2 { margin-bottom: 4px; }
.greeting p { margin: 0; color: var(--muted); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.countdown div { background: var(--gold-soft); border-radius: 12px; padding: 10px 4px; }
.countdown b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--wine); }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.info { list-style: none; margin: 0; padding: 0; }
.info li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info li:last-child { border-bottom: 0; }
.info .ic { font-size: 1.3rem; width: 28px; text-align: center; flex: none; }
.info small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid var(--wine); background: var(--wine); color: #fff; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .08s, background .2s; }
.btn:hover { background: var(--wine-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--wine); }
.btn.ghost:hover { background: #f6ecf0; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn.wa { background: #1f9d55; border-color: #1f9d55; }
.btn.wa:hover { background: #18824a; }
.btn.danger { background: transparent; border-color: var(--no); color: var(--no); }
.btn.danger.armed { background: var(--no); color: #fff; }
.btn.block { width: 100%; }

/* Formulário */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; text-align: center; padding: 16px 8px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; }
.choice label .e { display: block; font-size: 1.7rem; }
.choice input:checked + label.yes { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.choice.three { grid-template-columns: 1fr 1fr 1fr; }
.choice.three label { padding: 14px 4px; font-size: .92rem; }
.choice input:checked + label.maybe { border-color: #b7791f; background: var(--warn-bg); color: #7a5800; }
.choice input:checked + label.no { border-color: var(--no); background: var(--no-bg); color: var(--no); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); }
.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field small { color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--gold); outline: none; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--wine); background: #fff; color: var(--wine); font-size: 1.4rem; cursor: pointer; }
.stepper output { font-family: var(--serif); font-size: 1.8rem; min-width: 2ch; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--wine); color: var(--wine); background: #f6ecf0; }

/* Duas colunas no computador: evento à esquerda, resposta à direita (fixa ao rolar) */
@media (min-width: 900px) {
  .wrap.layout { max-width: 1040px; display: grid; grid-template-columns: 1fr 440px; gap: 18px; align-items: start; }
  .col-form { position: sticky; top: 16px; }
}
.choice label small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.choice input:checked + label small { color: inherit; opacity: .85; }
.ac-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.ac-head { display: flex; justify-content: space-between; align-items: center; }
.pill { background: var(--gold-soft); color: var(--wine); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.ac-list { display: grid; gap: 8px; }
.ac-list:empty { display: none; }
.ac-row { display: flex; gap: 6px; }
.ac-x { flex: none; width: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.ac-x:hover { border-color: var(--no); color: var(--no); }
fieldset.extra { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.extra legend { font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
fieldset.extra input:checked + label.chip { border-color: var(--wine); background: var(--wine); color: #fff; }
fieldset.extra input:focus-visible + label.chip { outline: 3px solid var(--gold); }
.cal-menu { position: relative; display: inline-block; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu.block, .done-acts .cal-menu { display: block; }
.done-acts .cal-menu summary { width: 100%; }
.cal-list { position: absolute; z-index: 20; left: 0; right: 0; min-width: 220px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.cal-list a, .cal-list button { text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; color: var(--ink); cursor: pointer; font-size: .95rem; }
.cal-list a:hover, .cal-list button:hover { background: #f6ecf0; }
.resumo { text-align: left; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; padding: 4px 14px; }
.resumo div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.resumo div:last-child { border-bottom: 0; }
.resumo dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.resumo dd { margin: 0; word-break: break-word; }
.done-acts { display: grid; gap: 8px; }
.done .badge { margin-bottom: 4px; }

.alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; }
.alert.err { background: var(--no-bg); color: var(--no); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: #6b4e00; }

.done { text-align: center; }
.done .e { font-size: 3rem; }
.pix { display: flex; gap: 8px; align-items: center; background: var(--gold-soft); padding: 10px 12px; border-radius: 12px; word-break: break-all; }
.pix code { flex: 1; font-size: .95rem; }
.demo-banner { background: #2a1a22; color: #f3e6c8; text-align: center; font-size: .82rem; padding: 6px 10px; }
.demo-banner a { color: #fff; }
footer.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, #f2ebe5, #fbf7f3, #f2ebe5); background-size: 200% 100%; animation: sh 1.2s infinite; margin: 8px 0; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Painel ---------- */
.admin body, body.admin { background: #f6f1ec; }
.topbar { background: var(--wine); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.topbar .btn { border-color: #fff; background: transparent; }
.container { max-width: 1100px; margin: 0 auto; padding: 18px 14px 60px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--wine); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.ok b { color: var(--ok); } .stat.no b { color: var(--no); }
.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; display: flex; margin-top: 8px; }
.progress i { display: block; height: 100%; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .input { flex: 1 1 220px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.guest { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; }
.guest .name { font-weight: 700; }
.guest .meta { color: var(--muted); font-size: .85rem; }
.guest .msg { grid-column: 1 / -1; background: #faf6f1; border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-style: italic; }
.guest .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.b-pendente { background: #eee; color: #555; }
.b-enviado { background: #e5efff; color: #2457a6; }
.b-visualizado { background: var(--warn-bg); color: #7a5800; }
.b-confirmado { background: var(--ok-bg); color: var(--ok); }
.b-recusado { background: var(--no-bg); color: var(--no); }
.b-talvez { background: #fdebc8; color: #8a5a00; }
.meta { color: var(--muted); font-size: .85rem; }
.stat small.meta { display: block; margin-top: 2px; }
.recent { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.recent:last-child { border-bottom: 0; }
/* Painel: cabeçalho, gráfico, detalhes, primeiros passos */
.title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar .pill { background: rgba(255,255,255,.16); color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.dash-grid .card { margin-bottom: 12px; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: #efe6de; stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart-svg .line { fill: none; stroke: var(--wine); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { fill: var(--wine); stroke: #fff; stroke-width: 2; }
.chart-svg .hit { fill: transparent; cursor: pointer; outline: none; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.tbl { border-collapse: collapse; margin-top: 6px; font-size: .85rem; }
.tbl th, .tbl td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--wine); font-weight: 700; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .72rem; margin-right: 8px; vertical-align: middle; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 700; color: var(--ink); }
.linkish:hover { color: var(--wine); text-decoration: underline; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); border-radius: 18px 0 0 18px; padding: 22px 20px; overflow-y: auto; }
.drawer-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.drawer h2 { font-family: var(--serif); color: var(--wine); margin: 0; font-size: 1.3rem; }
.drawer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.dt-head { display: flex; gap: 12px; align-items: center; padding-right: 40px; }
.dt-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.dt-kpis > div { background: #faf6f1; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; justify-items: start; }
.dt-kpis small { color: var(--muted); font-size: .78rem; }
.dt-people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.dt-people li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dt-people li:last-child { border-bottom: 0; }
.dt-people small { display: block; }
.dt-box { background: #faf6f1; border-radius: 12px; padding: 10px 12px; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--wine); border: 2px solid #fff; }
.timeline small { display: block; }
.dt-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.dt-acts .btn { padding: 8px; font-size: .9rem; }
.onboard { background: #fff; border: 1px dashed var(--gold); border-radius: 18px; padding: 22px; }
.onboard h2 { font-family: var(--serif); color: var(--wine); margin: 0 0 14px; }
.onboard ol { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.onboard li { display: flex; gap: 10px; }
.onboard p { margin: 2px 0 0; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Ações rápidas do painel */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.quick .btn { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
#aviso-prazo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
#aviso-prazo.hidden { display: none; }

/* Recepção (check-in) */
.checkin { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.checkin .box { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--wine); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.1rem; }
.checkin.on { background: var(--ok-bg); border-color: var(--ok); }
.checkin.on .box { background: var(--ok); border-color: var(--ok); }
.ck-info { display: grid; gap: 2px; }
.ck-info b { font-size: 1.05rem; }
@media print {
  .topbar, .demo-banner, .toolbar, .filters, .print-hide, .toast { display: none !important; }
  body { background: #fff; }
  .container { padding: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .checkin { break-inside: avoid; border-color: #999; min-height: 0; padding: 8px 10px; margin-bottom: 4px; }
  .checkin .box { border-color: #333; width: 22px; height: 22px; color: #333; }
  .checkin.on { background: #fff; }
}

/* ===== Tema "RIP MY 20s": preto + rosê (segue a arte do convite) ===== */
body.tema-rip {
  --bg: #0b0809; --card: #151012; --ink: #f4e6e9; --muted: #bfa8ae;
  --wine: #e7aebb; --wine-2: #f3c6d0; --gold: #c98b98; --gold-soft: #24181c; --line: #3a2a2f;
  --ok: #8fdcb0; --ok-bg: #11261b; --no: #ff9f95; --no-bg: #2c1412; --warn-bg: #2b2314;
  --shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(231, 174, 187, .10);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}
.tema-rip .card h2, .tema-rip .countdown b, .tema-rip .done h2 { letter-spacing: .02em; font-weight: 700; }
.tema-rip .card h2 { font-size: 1.6rem; }
.tema-rip .btn { color: #1a0f12; }
.tema-rip .btn.ghost, .tema-rip .btn.danger { color: var(--wine); }
.tema-rip .btn.ghost:hover { background: #2a1b20; }
.tema-rip .btn.wa { color: #fff; }
.tema-rip .input, .tema-rip select.input, .tema-rip textarea.input,
.tema-rip .chip, .tema-rip .ac-x, .tema-rip .cal-list { background: #0f0b0c; color: var(--ink); }
.tema-rip .chip:hover, .tema-rip .chip.on, .tema-rip .cal-list a:hover, .tema-rip .cal-list button:hover { background: #2a1b20; }
.tema-rip fieldset.extra input:checked + label.chip { background: var(--wine); color: #1a0f12; }
.tema-rip .choice input:checked + label.maybe { color: #f3cf7a; border-color: #b7891f; }
.tema-rip .pill { color: var(--wine); }
.tema-rip :focus-visible { outline-color: var(--wine); }
.tema-rip .demo-banner { background: #1c1416; }
.hero.com-arte { background: #000; padding: 20px 14px 26px; }
.hero.com-arte::after { display: none; }
.hero .arte { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(231, 174, 187, .25), 0 18px 60px rgba(231, 174, 187, .12); }
.hero .arte-lead { margin-top: 18px; color: #e9cfd5; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.hero.com-arte ~ .wrap { margin-top: 18px; }

/* Capa opcional no convite */
.hero.com-capa { background-size: cover; background-position: center; }

/* Prévia estilo WhatsApp */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wa-chat { background: #efe7dd; border-radius: 14px; overflow: hidden; margin-top: 6px; }
.wa-head { background: #075e54; color: #fff; padding: 8px 12px; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.wa-avatar { width: 26px; height: 26px; border-radius: 50%; background: #dfe5e7; color: #075e54; display: grid; place-items: center; font-size: .8rem; }
.wa-bubble { background: #dcf8c6; margin: 12px; padding: 6px; border-radius: 10px 0 10px 10px; max-width: 92%; margin-left: auto; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa-card { background: linear-gradient(160deg, var(--wine), #3d0f22); color: var(--gold-soft); border-radius: 8px; padding: 18px 12px; text-align: center; display: grid; gap: 2px; }
.wa-card b { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.wa-card span { font-size: .78rem; }
.wa-card.wa-og { padding: 0 0 8px; overflow: hidden; background: #151012; }
.wa-card.wa-og img { width: 100%; display: block; margin-bottom: 6px; }
.wa-text { white-space: pre-wrap; font-size: .88rem; padding: 6px 4px 0; word-break: break-word; }
.wa-bubble small { display: block; text-align: right; color: #5f7d6b; font-size: .7rem; }
@media (max-width: 720px) { .tpl-grid { grid-template-columns: 1fr; } }
details.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 12px; }
details.panel summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--wine); }
details.panel[open] { padding-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
dialog { border: 0; border-radius: 18px; padding: 22px; width: min(440px, 94vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(42, 26, 34, .45); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 50; font-size: .9rem; }
.login { max-width: 380px; margin: 12vh auto; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
@media (max-width: 520px) {
  .guest { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 1.05rem; }
}
