:root {
  --bg: #f7f0e7; --bg2: #efe5d8; --card: #fffdf9; --ink: #2d1512; --muted: #7d6b61; --line: rgba(90, 40, 30, .14);
  --brand: #8e2b2b; --brand2: #b9774a; --gold: #c9954f; --ok: #14804f; --warn: #b87408; --bad: #c0392b; --info: #3b6fb5;
  --ok-bg: #e0f2e8; --warn-bg: #fbeed2; --bad-bg: #fbe3df; --info-bg: #e2ebf7; --violet-bg: #f1e4d6;
  --grad: linear-gradient(135deg, #4a1414 0%, #8e2b2b 52%, #b9774a 100%);
  --grad-soft: linear-gradient(135deg, rgba(142,43,43,.10), rgba(185,119,74,.16));
  --shadow: 0 10px 30px -12px rgba(74, 20, 20, .35); --shadow-sm: 0 2px 8px -2px rgba(74, 20, 20, .2);
  --r: 22px; --r-sm: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --tab-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #170c0b; --bg2: #231311; --card: #2a1714; --ink: #f7ede3; --muted: #bfa99b; --line: rgba(255, 235, 220, .12);
  --brand: #e0766a; --brand2: #e2b07a; --gold: #e8b96f; --ok: #5fd39a; --warn: #f0b55a; --bad: #ff8070; --info: #8fb4f0;
  --ok-bg: rgba(95,211,154,.14); --warn-bg: rgba(240,181,90,.14); --bad-bg: rgba(255,128,112,.15); --info-bg: rgba(143,180,240,.15); --violet-bg: rgba(226,176,122,.16);
  --grad: linear-gradient(135deg, #7a2323 0%, #a8433b 52%, #c98a57 100%);
  --grad-soft: linear-gradient(135deg, rgba(224,118,106,.14), rgba(226,176,122,.14));
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .7); --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 90% -10%, rgba(185,119,74,.18), transparent 60%),
              radial-gradient(50vmax 40vmax at -10% 20%, rgba(142,43,43,.10), transparent 60%);
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.center { text-align: center; } .right { text-align: right; } .grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 14px; } .mt-l { margin-top: 22px; } .mb { margin-bottom: 14px; }
.hidden { display: none !important; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: block; } }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 18px; min-width: 0; }
.logo { width: 32px; height: 32px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 28px); animation: rise .35s ease both; }
.page.chat-page { padding-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + var(--safe-b)); background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; border-radius: 14px; }
.tab svg { width: 23px; height: 23px; transition: transform .2s; }
.tab.active { color: var(--brand); }
.tab.active svg { transform: translateY(-2px) scale(1.08); }
.tab.active::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }
.dot { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; width: 258px; flex: none; position: sticky; top: 0; height: 100vh; padding: 22px 14px;
    border-right: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(14px); overflow-y: auto;
  }
  .sidebar .brand { padding: 4px 10px 18px; font-size: 19px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 600; color: var(--muted); position: relative; text-align: left; }
  .side-link svg { width: 21px; height: 21px; }
  .side-link:hover { background: var(--grad-soft); color: var(--ink); }
  .side-link.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
  .side-link .dot { position: static; margin-left: auto; border-color: transparent; }
  .side-sep { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 4px; }
  .page { padding: 28px 28px 60px; max-width: 880px; }
  .page.chat-page { padding-bottom: 0; }
  .topbar .brand { display: none; }
  .hide-desktop { display: none !important; }
}

/* ---------- cards & basics ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; }
.card + .card, .card + .section, .section + .card, .section + .section { margin-top: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 10px; }
.section-title h3 { font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.section-title a, .link { font-size: 13px; font-weight: 700; color: var(--brand); cursor: pointer; }

.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 22px; color: #fff; background: var(--grad); box-shadow: 0 18px 40px -16px rgba(74, 20, 20, .55);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 150px; height: 150px; right: 40px; bottom: -90px; background: rgba(255,255,255,.1); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 26px; } .hero .sub { opacity: .88; font-size: 14px; margin-top: 2px; }
.hero .btn { background: #fff; color: #7a1f1f; box-shadow: none; }
.hero .btn.ghost { background: rgba(255,255,255,.2); color: #fff; }
.hero .big { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.05; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(74, 20, 20, .6); transition: transform .15s, filter .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); } .btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.ghost { background: var(--grad-soft); color: var(--brand); box-shadow: none; }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.btn.ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.btn.wa { background: #1fa855; box-shadow: 0 8px 18px -8px rgba(31, 168, 85, .6); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; } .btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; } .btn.sm svg { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--muted); position: relative; flex: none; }
.icon-btn:hover { background: var(--grad-soft); color: var(--brand); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { top: 2px; left: auto; right: 0; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip.paid { background: var(--ok-bg); color: var(--ok); } .chip.late { background: var(--bad-bg); color: var(--bad); }
.chip.pending { background: var(--info-bg); color: var(--info); } .chip.review { background: var(--warn-bg); color: var(--warn); }
.chip.exempt { background: var(--violet-bg); color: var(--brand2); } .chip.future, .chip.na { background: var(--line); color: var(--muted); }
.chip.admin { background: var(--grad); color: #fff; } .chip.off { background: var(--line); color: var(--muted); }

.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; } .avatar.lg { width: 84px; height: 84px; font-size: 28px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg2); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: rgba(255,255,255,.07); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(142, 43, 43, .16); }
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input[type=checkbox] { width: 20px; height: 20px; padding: 0; accent-color: var(--brand); flex: none; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); }
.error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.row > .field { flex: 1; min-width: 0; }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item.click { cursor: pointer; } .item.click:hover { background: var(--grad-soft); border-radius: 14px; padding-left: 10px; padding-right: 10px; margin: 0 -8px; }
.item .t { font-weight: 700; } .item .s { font-size: 12.5px; color: var(--muted); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .big-emoji { font-size: 44px; margin-bottom: 8px; }
.skeleton { height: 90px; border-radius: var(--r); background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.segmented { display: flex; background: var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; padding: 9px 10px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.segmented button.on { background: var(--card); color: var(--brand); box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pill { padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pill.on { background: var(--grad); color: #fff; border-color: transparent; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); text-align: left; }
.stat .n { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat.late .n { color: var(--bad); } .stat.paid .n { color: var(--ok); } .stat.review .n { color: var(--warn); }

.progress { height: 10px; background: rgba(255,255,255,.3); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar .col-wrap { width: 100%; max-width: 44px; flex: 1; display: flex; align-items: flex-end; background: var(--grad-soft); border-radius: 10px; overflow: hidden; }
.bar .fill { width: 100%; background: var(--grad); border-radius: 10px 10px 0 0; transition: height .8s cubic-bezier(.2,.8,.2,1); min-height: 2px; }
.bar span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: capitalize; }

/* announcements */
.notice { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.notice + .notice { margin-top: 10px; }
.notice .ico { width: 40px; height: 40px; border-radius: 13px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.notice .ico svg { width: 20px; height: 20px; }
.notice.cobranca .ico { background: var(--bad-bg); color: var(--bad); }
.notice.unread::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.notice .body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; color: var(--ink); opacity: .9; }
.notice.pinned { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }

/* pix */
.pix-box { display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr { width: 210px; height: 210px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
.qr svg { width: 100%; height: 100%; display: block; }
.copy-code { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; background: var(--bg2); border-radius: 12px; padding: 10px 12px; color: var(--muted); max-height: 64px; overflow: hidden; text-align: left; }
.month-pick { display: grid; gap: 8px; }
.month-pick label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--bg2); font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .month-pick label { background: rgba(255,255,255,.06); }

/* grid table (ano) */
.grid-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
table.grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.grid th, .grid td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.grid th { font-size: 11px; color: var(--muted); text-transform: capitalize; background: var(--bg2); }
.grid td:first-child, .grid th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); padding-left: 12px; min-width: 120px; z-index: 1; font-weight: 700; }
.grid th:first-child { background: var(--bg2); }
.cell { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; cursor: pointer; }
.cell.paid { background: var(--ok-bg); color: var(--ok); } .cell.late { background: var(--bad-bg); color: var(--bad); }
.cell.pending { background: var(--info-bg); color: var(--info); } .cell.review { background: var(--warn-bg); color: var(--warn); }
.cell.exempt { background: var(--violet-bg); color: var(--brand2); } .cell.future, .cell.na { background: transparent; color: var(--muted); cursor: default; opacity: .5; }

/* mural */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.post + .post { margin-top: 14px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.post-body { padding: 0 14px 12px; white-space: pre-wrap; word-break: break-word; }
.post img.photo { width: 100%; max-height: 560px; object-fit: cover; background: var(--line); cursor: zoom-in; }
.post-actions { display: flex; gap: 6px; padding: 8px 10px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.act:hover { background: var(--grad-soft); } .act svg { width: 19px; height: 19px; }
.act.on { color: var(--brand); } .act.on svg { fill: var(--brand); }
.comments { padding: 0 14px 14px; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; } .comment .bubble { background: var(--bg2); border-radius: 14px; padding: 8px 12px; flex: 1; min-width: 0; }
.comment .bubble b { font-size: 13px; } .comment .bubble p { word-break: break-word; white-space: pre-wrap; }
.composer { display: grid; gap: 10px; }
.preview { position: relative; border-radius: 16px; overflow: hidden; } .preview img { width: 100%; max-height: 260px; object-fit: cover; }
.preview .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }

/* chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100dvh - 62px - var(--tab-h) - var(--safe-b) - var(--safe-t)); }
@media (min-width: 900px) { .chat-wrap { height: calc(100dvh - 62px - 24px); } }
.chat-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 2px 12px; }
.msg { display: flex; gap: 8px; max-width: 86%; align-items: flex-end; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 13px; box-shadow: var(--shadow-sm); min-width: 0; }
.msg.me .bubble { background: var(--grad); color: #fff; border: 0; border-radius: 18px 18px 6px 18px; }
.msg .who { font-size: 12px; font-weight: 800; color: var(--brand); } .msg .txt { white-space: pre-wrap; word-break: break-word; }
.msg .time { font-size: 10.5px; opacity: .65; text-align: right; margin-top: 1px; }
.msg .del { font-size: 12px; font-weight: 800; margin-top: 4px; color: inherit; text-decoration: underline; }
.day-sep { align-self: center; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--line); padding: 3px 12px; border-radius: 99px; margin: 8px 0; }
.chat-input { display: flex; gap: 8px; padding: 8px 0 12px; align-items: flex-end; }
.chat-input textarea { min-height: 46px; max-height: 120px; resize: none; padding: 12px 14px; border-radius: 22px; }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -8px rgba(74, 20, 20, .6); }
.send svg { width: 20px; height: 20px; }

/* notes */
.notes { columns: 2 220px; column-gap: 12px; }
.note { break-inside: avoid; margin-bottom: 12px; border-radius: 20px; padding: 14px 15px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand2); }
.note.shared { border-left-color: var(--brand); }
.note:hover { transform: translateY(-2px) rotate(-.4deg); }
.note h4 { margin: 0 0 4px; font-family: var(--display); font-size: 16px; } .note p { white-space: pre-wrap; word-break: break-word; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.note small { display: block; margin-top: 8px; opacity: .65; font-size: 11.5px; font-weight: 700; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); z-index: 25; width: 56px; height: 56px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(74, 20, 20, .7); }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 32px; } }

/* events */
.event { display: flex; gap: 14px; }
.date-badge { width: 58px; flex: none; text-align: center; border-radius: 16px; background: var(--grad); color: #fff; padding: 8px 0; box-shadow: var(--shadow-sm); }
.date-badge b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; } .date-badge span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.rsvp { display: flex; gap: 6px; margin-top: 10px; }
.rsvp button { flex: 1; padding: 9px 4px; border-radius: 12px; font-weight: 800; font-size: 12.5px; background: var(--bg2); color: var(--muted); }
.rsvp button.on.yes { background: var(--ok-bg); color: var(--ok); } .rsvp button.on.maybe { background: var(--warn-bg); color: var(--warn); } .rsvp button.on.no { background: var(--bad-bg); color: var(--bad); }

/* modal & toast */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(20, 5, 30, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + var(--safe-b)); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: -8px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 26px; } .sheet .grab { display: none; } }
.toasts { position: fixed; left: 0; right: 0; top: calc(14px + var(--safe-t)); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: drop .3s cubic-bezier(.2,.8,.2,1); max-width: 90vw; }
.toast.err { background: var(--bad); color: #fff; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 10px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* login */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 22px; }
.auth-card { width: 100%; max-width: 410px; }
.auth .hero { text-align: center; padding: 34px 22px 30px; margin-bottom: -26px; padding-bottom: 54px; }
.auth .logo-big { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 26px; background: rgba(255,255,255,.22); display: grid; place-items: center; backdrop-filter: blur(4px); }
.auth .logo-big svg { width: 42px; height: 42px; }
.auth .card { position: relative; z-index: 2; box-shadow: var(--shadow); }
.avatar-edit { position: relative; width: 84px; margin: 0 auto 8px; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--card); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.avatar-edit .cam svg { width: 16px; height: 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.menu-tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; box-shadow: var(--shadow-sm); position: relative; }
.menu-tile .ico { width: 42px; height: 42px; border-radius: 14px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; }
.menu-tile .ico svg { width: 22px; height: 22px; } .menu-tile b { font-weight: 800; } .menu-tile .dot { top: 12px; right: 12px; left: auto; }
.bday { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.bday-item { text-align: center; flex: none; width: 70px; font-size: 12px; font-weight: 700; }
.bday-item .avatar { margin: 0 auto 4px; } .bday-item.today .avatar { box-shadow: 0 0 0 3px var(--gold); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
