/* Quoi de neuf — feuille de style
   Mise en page : une colonne façon téléphone (max 560 px), cartes très arrondies,
   tuiles de couleur vives, barre de navigation fixe en bas. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #F4F4F7;
  --card: #FFFFFF;
  --ink: #16163A;
  --muted: #5A5A75;
  --line: #ECECF2;
  --field: #F4F4F7;
  --dash: #C9C9D8;
  --orange: #F2622F;
  --orange-ink: #B0431D;
  --lavande: #6563E8;
  --nuit: #22308F;
  --vert: #2E9E6A;
  --vert-ink: #1C6B47;
  --jaune: #FFC768;
  --peche: #FFE1D6;
  --lavande-t: #E3E2FD;
  --menthe: #D9F2E6;
  --vanille: #FFF0D1;
  --ciel: #DDE1F7;
  --danger: #C2321F;
  --shadow: 0 -8px 24px rgba(22, 22, 58, 0.06);
  --radius-xl: 28px;
  --radius-l: 22px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101020;
    --card: #1B1B31;
    --ink: #F1F1F8;
    --muted: #A6A6C2;
    --line: #2B2B45;
    --field: #24243C;
    --dash: #45456A;
    --orange-ink: #FFB79C;
    --vert-ink: #8FE0B9;
    --danger: #FF8A78;
    --shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lavande); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.has-nav .page { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 20px; }
.stack > *, .stack-l > *, .page > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.row-center { display: flex; align-items: center; justify-content: center; gap: 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }

/* ---------- Top of pages ---------- */
.topbar { display: flex; align-items: center; gap: 12px; }
.group-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
  border-radius: 22px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 15px;
  max-width: 60vw; position: relative;
}
.group-switch span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-badge { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.hero { font-size: 36px; line-height: 1.1; letter-spacing: -0.5px; }
.hero .light { font-weight: 300; display: block; }
.hero .bold { font-weight: 700; display: block; }

.subbar {
  display: flex; align-items: center; gap: 8px;
  margin: calc(-16px - env(safe-area-inset-top, 0px)) -20px 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.subbar h1 { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
  width: 44px; height: 44px; flex: none; border: none; border-radius: 50%;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; color: var(--ink);
}
.icon-btn.on-card { background: var(--card); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 20px; font-weight: 600; }

/* ---------- Avatars ---------- */
.av { border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.av-xs { width: 28px; height: 28px; font-size: 12px; }
.av-sm { width: 36px; height: 36px; font-size: 14px; }
.av-md { width: 44px; height: 44px; font-size: 17px; }
.av-lg { width: 52px; height: 52px; font-size: 20px; }
.av-xl { width: 120px; height: 120px; font-size: 44px; box-shadow: 0 0 0 6px var(--card); }
.av-face { overflow: hidden; background: var(--peche); }
.av-face svg { width: 100%; height: 100%; display: block; }
.ini-0 { background: var(--peche); color: #B0431D; }
.ini-1 { background: var(--lavande-t); color: #3F3DB8; }
.ini-2 { background: var(--menthe); color: #1C6B47; }
.ini-3 { background: var(--vanille); color: #7A5200; }
.ini-4 { background: var(--ciel); color: #22308F; }
.bg-peche { background: var(--peche); } .bg-lavande { background: var(--lavande-t); } .bg-menthe { background: var(--menthe); }
.bg-vanille { background: var(--vanille); } .bg-ciel { background: var(--ciel); }
.av-stack { display: flex; }
.av-stack > * { box-shadow: 0 0 0 2px var(--card); }
.av-stack > * + * { margin-left: -8px; }

.gbadge { display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 700; color: #FFFFFF; }
.gbadge-md { width: 52px; height: 52px; border-radius: 18px; font-size: 18px; }
.gbadge-xl { width: 96px; height: 96px; border-radius: 50%; font-size: 34px; }
.gbadge.tile-jaune { color: #16163A; }

/* ---------- Tiles (statuses, colours) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  min-height: 132px; border-radius: 26px; padding: 14px 16px 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  text-decoration: none; color: #FFFFFF; position: relative; overflow: hidden;
}
.tile-orange { background: var(--orange); }
.tile-lavande { background: var(--lavande); }
.tile-nuit { background: var(--nuit); }
.tile-vert { background: var(--vert); }
.tile-jaune { background: var(--jaune); color: #16163A; }
.tile .chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: #FFFFFF; color: #16163A; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 3px; border-radius: 14px;
}
.tile .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .say { font-size: 20px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.tile .plus { width: 36px; height: 36px; border-radius: 50%; background: #16163A; color: var(--jaune); display: flex; align-items: center; justify-content: center; }
.more-tiles summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; padding: 4px 2px; }
.more-tiles summary::-webkit-details-marker { display: none; }
.more-tiles[open] summary { margin-bottom: 12px; }

/* ---------- Cards & posts ---------- */
.card { background: var(--card); border-radius: var(--radius-xl); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-head .name { font-weight: 600; }
.post-head .when { font-size: 13px; color: var(--muted); text-decoration: none; }
.post-body { font-size: 16px; overflow-wrap: anywhere; }
.post-body a { color: var(--lavande); font-weight: 500; }
@media (prefers-color-scheme: dark) { .post-body a { color: #A9A8FF; } }

.photos { display: grid; gap: 6px; border-radius: 20px; overflow: hidden; }
.photos a { display: block; background: var(--field); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos.n1 img { height: auto; max-height: 520px; }
.photos.n2 { grid-template-columns: 1fr 1fr; }
.photos.n2 a { aspect-ratio: 1; }
.photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.photos.n3 a:first-child { grid-row: span 2; }
.photos.n4 { grid-template-columns: 1fr 1fr; }
.photos.n4 a { aspect-ratio: 1; }

.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reactions form { display: contents; }
.rx {
  height: 38px; padding: 0 12px; border-radius: 19px; border: none; cursor: pointer;
  background: var(--field); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px;
}
.rx .e { font-size: 17px; line-height: 1; }
.rx.on { background: var(--ink); color: var(--card); }
.rx-add { width: 38px; padding: 0; justify-content: center; border: 1.5px dashed var(--dash); background: transparent; color: var(--muted); }
.rx-picker { position: relative; }
.rx-picker > summary { list-style: none; }
.rx-picker > summary::-webkit-details-marker { display: none; }
.rx-picker .menu {
  position: absolute; bottom: 46px; left: 0; z-index: 3; display: flex; gap: 4px; padding: 6px;
  background: var(--card); border-radius: 24px; box-shadow: 0 8px 30px rgba(22, 22, 58, 0.18);
}
.rx-picker .menu button { width: 44px; height: 44px; border: none; border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; }
.rx-picker .menu button.on { background: var(--field); }
.comments-link { margin-left: auto; font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }

.card.next-event { flex-direction: row; gap: 14px; align-items: center; text-decoration: none; padding: 12px 16px 12px 12px; }
.next-event .date-tile { width: 60px; padding: 8px 0; }
.next-event .date-tile .n { font-size: 24px; }
.next-event .label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }

/* ---------- Comments ---------- */
.comment { display: flex; gap: 10px; align-items: flex-start; }
.bubble { background: var(--card); border-radius: 4px 20px 20px 20px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bubble .meta { font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.bubble .meta .t { font-weight: 400; color: var(--muted); font-size: 13px; }
.bubble p { overflow-wrap: anywhere; }
.comment form { display: contents; }
.link-btn { border: none; background: none; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.comment-bar {
  position: sticky; bottom: 0; margin: 0 -20px calc(-32px - env(safe-area-inset-bottom, 0px));
  background: var(--card); border-radius: 28px 28px 0 0; box-shadow: var(--shadow);
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: flex-end;
}
.comment-bar textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; border-radius: 24px; border: none; background: var(--field); padding: 12px 18px; resize: none; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 52px; padding: 0 22px; border-radius: 26px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--orange); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-soft { background: var(--card); color: var(--ink); }
.agenda-head .btn-soft, .card .btn-soft, .list .btn-soft { background: var(--field); }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid currentColor; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 19px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.confirming { background: var(--danger); color: #FFFFFF; border-color: var(--danger); }
.round-send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: none; background: var(--orange); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 50px; border-radius: 16px; border: 1.5px solid transparent; background: var(--field);
  padding: 12px 14px; font-size: 16px;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.input:focus, .textarea:focus { outline: none; border-color: var(--lavande); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--card); border-radius: 24px; padding: 4px; }
.seg a { min-height: 44px; border-radius: 20px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg a[aria-current="page"] { background: var(--ink); color: var(--card); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch input, .pick input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--lavande); outline-offset: 3px; }
.sw-orange { background: var(--orange); } .sw-lavande { background: var(--lavande); } .sw-nuit { background: var(--nuit); }
.sw-vert { background: var(--vert); } .sw-jaune { background: var(--jaune); }
.sw-peche { background: var(--peche); } .sw-lavande-t { background: var(--lavande-t); } .sw-menthe { background: var(--menthe); }
.sw-vanille { background: var(--vanille); } .sw-ciel { background: var(--ciel); }

.picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pick span { aspect-ratio: 1; border-radius: 18px; background: var(--card); border: 2.5px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; }
.pick input:checked + span { border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--lavande); outline-offset: 2px; }

.choice { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 20px; padding: 14px 16px; cursor: pointer; border: 2.5px solid transparent; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }

.dropzone {
  min-height: 110px; border-radius: 22px; border: 1.5px dashed var(--dash); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; padding: 12px;
}
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* ---------- Agenda ---------- */
.event { display: flex; gap: 14px; align-items: flex-start; flex-direction: row; }
.event .date-tile { min-height: 96px; }
.date-tile { width: 72px; flex: none; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; color: #FFFFFF; }
.date-tile .d { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.date-tile .n { font-size: 28px; font-weight: 700; line-height: 1.05; }
.date-tile .m { font-size: 12px; font-weight: 500; }
.date-tile.c0 { background: var(--vert); } .date-tile.c1 { background: var(--lavande); }
.date-tile.c2 { background: var(--jaune); color: #16163A; } .date-tile.c3 { background: var(--nuit); } .date-tile.c4 { background: var(--orange); }
.event .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.event .title { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.event .meta { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.event .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.going-on { background: var(--menthe); color: var(--vert-ink); }
@media (prefers-color-scheme: dark) { .going-on { background: #1F3D30; } }
.agenda-head { background: var(--card); border-radius: 0 0 32px 32px; margin: calc(-16px - env(safe-area-inset-top, 0px)) -20px 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.icon-tile { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--menthe); color: #1C6B47; }
.month { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* ---------- Lists (members, groups) ---------- */
.list { background: var(--card); border-radius: 24px; padding: 4px 14px; display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row .who .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .who .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 10px; background: var(--vanille); color: #7A5200; flex: none; }
.group-link { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 24px; padding: 14px; text-decoration: none; border: 2.5px solid transparent; }
.group-link.current { border-color: var(--ink); }
.count-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--orange); color: #FFFFFF; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.manage { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.manage form { display: contents; }

.invite-card { border-radius: var(--radius-xl); background: var(--nuit); color: #FFFFFF; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.invite-card .sub { font-size: 14px; color: #DDE1F7; }
.invite-card .linkbox { display: flex; gap: 8px; align-items: center; }
.invite-card .linkbox input { flex: 1; min-width: 0; height: 46px; border-radius: 16px; border: none; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; padding: 0 14px; font-size: 14px; }
.invite-card .btn-y { background: var(--jaune); color: #16163A; }
.invite-card .choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-card .choice-row label { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.12); padding: 10px 14px; border-radius: 16px; font-size: 14px; cursor: pointer; }
.invite-card .choice-row input { accent-color: var(--jaune); }

.create-card { border-radius: var(--radius-xl); background: var(--jaune); color: #16163A; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.create-card .label { color: #16163A; }
.create-card .input { background: #FFFFFF; color: #16163A; }
.create-card .swatch span { border-color: var(--jaune); }
.create-card .btn-dark { background: #16163A; color: #FFFFFF; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--card); border-radius: 32px 32px 0 0; box-shadow: var(--shadow);
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.bottom-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: flex; align-items: center; justify-content: space-around; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; min-height: 52px; justify-content: center; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--muted); }
.bottom-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.bottom-nav a[aria-current="page"] svg { stroke-width: 2.4; }
.bottom-nav .fab { width: 58px; min-width: 58px; height: 58px; min-height: 58px; border-radius: 50%; background: var(--orange); color: #FFFFFF; box-shadow: 0 8px 18px rgba(242, 98, 47, 0.35); }

/* ---------- Feedback ---------- */
.toast {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 20;
  max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 18px; font-weight: 600; font-size: 15px;
  background: var(--ink); color: var(--card); box-shadow: 0 10px 30px rgba(22, 22, 58, 0.25);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.error { background: var(--danger); color: #FFFFFF; }
.toast.hide { opacity: 0; transform: translate(-50%, -12px); }
.new-posts {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 15;
  background: var(--lavande); color: #FFFFFF; padding: 10px 18px; border-radius: 22px; font-weight: 600; font-size: 15px;
  text-decoration: none; box-shadow: 0 8px 22px rgba(101, 99, 232, 0.35); display: inline-flex; gap: 8px; align-items: center;
}
.empty { text-align: center; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .icon-tile { background: var(--lavande-t); color: #3F3DB8; }
.align-start { align-self: flex-start; }
.face-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
.face-pick, .swatch, .seg label, .pick { position: relative; }
.face-pick { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; width: 72px; }
.face-pick input { position: absolute; opacity: 0; pointer-events: none; }
.face-pick .thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid transparent; box-shadow: 0 0 0 1.5px var(--line); }
.face-pick .thumb svg { width: 100%; height: 100%; display: block; }
.face-pick input:checked + .thumb { border-color: var(--card); box-shadow: 0 0 0 3px var(--ink); }
.face-pick input:focus-visible + .thumb { outline: 3px solid var(--lavande); outline-offset: 3px; }
.face-pick .cap { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; }
.face-pick input:checked ~ .cap { color: var(--ink); font-weight: 600; }
.seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--field); }
.seg label { display: block; cursor: pointer; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { min-height: 42px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg label input:checked + span { background: var(--ink); color: var(--card); }
.seg label input:focus-visible + span { outline: 3px solid var(--lavande); outline-offset: 2px; }
.gif-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; border-radius: 16px; }
.gif-grid p { grid-column: 1 / -1; padding: 8px 2px; }
.gif-grid button { padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: var(--field); cursor: pointer; aspect-ratio: 1; }
.gif-grid button img { width: 100%; height: 100%; object-fit: cover; }
.gif-grid button[aria-pressed="true"] { border-color: var(--orange); }
.reply-gif { width: 200px; max-width: 100%; border-radius: 14px; margin-top: 4px; }
.comment.is-gif .bubble { padding: 8px 8px 10px; }
.textarea.short { min-height: 76px; }
.reply-box { gap: 14px; }
.reply-edit > summary { list-style: none; display: inline-flex; }
.reply-edit > summary::-webkit-details-marker { display: none; }
.reply-edit[open] > summary { margin-bottom: 12px; }
.planning-head { gap: 10px; padding-bottom: 18px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.month-nav h1 { font-size: 22px; font-weight: 700; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; }
.cal td { padding: 2px; text-align: center; }
.cal a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 46px; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.cal a.today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal a.sel { background: var(--ink); color: var(--card); font-weight: 700; }
.cal .dots { display: flex; gap: 3px; height: 6px; }
.dot-ev, .dot-po { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot-ev { background: var(--orange); }
.dot-po { background: var(--lavande); }
.cal a.sel .dot-po { background: #A9A8FF; }
.legend { display: flex; gap: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.mini-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
h3.month { margin: 4px 0 0; }
.danger-zone { border: 1.5px solid var(--line); background: transparent; }
.error-box { margin-top: 12vh; }
.tile .input { background: #FFFFFF; color: #16163A; }
.tile label.say { font-size: 15px; font-weight: 600; }
.manage-menu > summary { list-style: none; }
.menu.menu-col { flex-direction: column; align-items: stretch; gap: 8px; left: auto; right: 0; bottom: auto; top: 46px; padding: 10px; border-radius: 20px; width: 210px; }
.list-row .link-btn.left { text-align: left; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px; }
a.list-row { text-decoration: none; }
.error-box .hero { font-size: 28px; }

.welcome { min-height: 100svh; }
.welcome .tiles .tile { min-height: 140px; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo { width: 40px; height: 40px; border-radius: 14px; background: var(--orange); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.google-btn .g { width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; color: #16163A; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.bubble .link-btn { align-self: flex-start; margin-top: 2px; }
.stack-l > .field .input { background: var(--card); }

/* ---------- Notifications ---------- */
.small-tile { width: 44px; height: 44px; border-radius: 14px; flex: none; background: var(--vanille); color: #7A5200; }
.h-card { font-size: 17px; font-weight: 600; }
.row.wrap { flex-wrap: wrap; }
.toggle { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.push-card { border: 2px solid var(--jaune); }

/* ---------- Date polls & birthdays ---------- */
.dot-poll { display: inline-block; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--orange); }
.dot-bd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #E0A100; }
.cal a.sel .dot-poll { box-shadow: inset 0 0 0 1.5px #FFB79C; }
.legend { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.poll { border: 2px dashed var(--orange); }
.poll .title { font-size: 18px; font-weight: 600; }
.poll .meta { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.poll-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--peche); color: #B0431D; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex: none; }
.poll-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--field); }
.poll-option.top { box-shadow: inset 0 0 0 2px var(--vert); }
.poll-option .row { gap: 6px; margin-top: 4px; }
.poll-mini { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; padding: 12px 14px; }
.bday-row { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; background: var(--vanille); color: #16163A; }
.bday-row .cake { font-size: 26px; }
.tile-bday { background: var(--jaune); color: #16163A; }
.tile-bday .say { font-size: 19px; }
.tile-bday .btn { align-self: flex-start; }
.feed-poll { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; border: 2px dashed var(--orange); }
.more-dates > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--orange-ink); min-height: 44px; }
.more-dates > summary::-webkit-details-marker { display: none; }
.more-dates[open] > summary { margin-bottom: 4px; }
.poll-option .btn-soft { background: var(--card); flex: none; }

.legal { gap: 10px; line-height: 1.55; }
.legal h2 { font-size: 17px; font-weight: 700; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a, .tiny a { color: inherit; }
.selectable { user-select: all; }
