/* Flamingo, the redesign. A stand-alone stylesheet for the
   r_* templates; the old pages keep style.css. Pink is the one bold colour:
   primary buttons, the current step, the vote meter. Orange, powder blue and
   plum are small accents. Phone first; the desktop layout starts at 900px.
   The tokens come from the redesign canvas. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --navy: #0B1F3A;
  --powder: #A6CFEA;
  --orange: #F47B20;

  --bg: #FFFFFF;
  --text: #0B1F3A;
  --muted: #5C4A63;
  --pink: #FF6F91;
  --on-pink: #0B1F3A;
  --brand: #E0456E;
  --link: #B4235A;
  --line: #F3DCE4;
  --border: #F6CFDB;
  --surface: #FFFFFF;
  --card: #FFF0F4;
  --card-line: transparent;
  --tile: #FFF4F7;
  --field: #FFF4F7;
  --seg-empty: #FFFFFF;
  --track: #F3DCE4;
  --focus: #0B1F3A;
  --danger: #B3261E;

  --ok-bg: #DFF5E8;   --ok-fg: #1C6B43;
  --warn-bg: #FFE8D6; --warn-fg: #8A3B00;
  --info-bg: #E3F1FA; --info-fg: #0B1F3A;
  --plum: #5B3A99;    --plum-bg: #EEE8FA;
  --review-bg: #F7F3FD; --review-line: #D9C8FF; --review-ink: #3E2770;
  --gray-bg: #F2EEF3; --gray-card: #F7F5F8; --gray-bar: #9C8AA1;

  --f1-bg: #A6CFEA; --f1-fg: #0B1F3A;
  --f2-bg: #FFE8D6; --f2-fg: #8A3B00;
  --f3-bg: #EEE8FA; --f3-fg: #5B3A99;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
}
/* Dark tokens, once for the OS preference (unless the person chose Light)
   and once for an explicit Dark choice. Keep the two lists identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1030;
    --text: #FDEFF4;
    --muted: #D2BCD6;
    --pink: #FF7A9A;
    --brand: #FF9DB8;
    --link: #FF9DB8;
    --line: #45305F;
    --border: #6B54A0;
    --surface: #2A1A44;
    --card: #2A1A44;
    --card-line: #45305F;
    --tile: #231538;
    --field: #231538;
    --seg-empty: #45305F;
    --track: #45305F;
    --focus: #A6CFEA;
    --danger: #FF8A80;
    --ok-bg: #173B2C;   --ok-fg: #9BE7BC;
    --warn-bg: #4A2A12; --warn-fg: #FFC79E;
    --info-bg: #203A57; --info-fg: #D6EBF8;
    --plum: #D9C8FF;    --plum-bg: #3A2860;
    --review-bg: #2D1F4D; --review-line: #6B54A0; --review-ink: #E6DAFF;
    --gray-bg: #3A2D4A; --gray-card: #231538; --gray-bar: #6B54A0;
    --f1-bg: #A6CFEA; --f1-fg: #0B1F3A;
    --f2-bg: #4A2A12; --f2-fg: #FFC79E;
    --f3-bg: #3A2860; --f3-fg: #D9C8FF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #1B1030;
  --text: #FDEFF4;
  --muted: #D2BCD6;
  --pink: #FF7A9A;
  --brand: #FF9DB8;
  --link: #FF9DB8;
  --line: #45305F;
  --border: #6B54A0;
  --surface: #2A1A44;
  --card: #2A1A44;
  --card-line: #45305F;
  --tile: #231538;
  --field: #231538;
  --seg-empty: #45305F;
  --track: #45305F;
  --focus: #A6CFEA;
  --danger: #FF8A80;
  --ok-bg: #173B2C;   --ok-fg: #9BE7BC;
  --warn-bg: #4A2A12; --warn-fg: #FFC79E;
  --info-bg: #203A57; --info-fg: #D6EBF8;
  --plum: #D9C8FF;    --plum-bg: #3A2860;
  --review-bg: #2D1F4D; --review-line: #6B54A0; --review-ink: #E6DAFF;
  --gray-bg: #3A2D4A; --gray-card: #231538; --gray-bar: #6B54A0;
  --f1-bg: #A6CFEA; --f1-fg: #0B1F3A;
  --f2-bg: #4A2A12; --f2-fg: #FFC79E;
  --f3-bg: #3A2860; --f3-fg: #D9C8FF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.r {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.r h1, .r h2, .r h3, .r p, .r ul, .r ol { margin: 0; padding: 0; }
.r ul, .r ol { list-style: none; }
.r a { color: var(--link); }
.r :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.r-main { flex: 1; width: 100%; }

.r-stripe { height: 4px; background: var(--part-stripe, linear-gradient(90deg, #FF6F91 0 55%, #F47B20 55% 72%, #A6CFEA 72% 100%)); }

/* ---------- header and bottom bar ----------
   A normal browser (phone or desktop) gets the sticky header: wordmark,
   Home / Calendar / Groups, the bell and the avatar. Only an installed web
   app on a phone (display-mode standalone or fullscreen) gets the app shell:
   the three-tab bottom bar, with the header cut down to the wordmark and the
   avatar. Signed-out visitors and plan-link guests only ever see the plain
   header. --r-top-h is the header's height, for the full-height chat page. */
:root { --r-top-h: 56px; --r-bar-h: 0px; }
.r-top { position: sticky; top: 0; z-index: 30; background: var(--part-header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.r-top-guest { position: static; border-bottom: 0; }
.r-top-inner { display: flex; align-items: center; gap: 2px; max-width: 1120px; margin: 0 auto; padding: 0 8px 0 14px; height: var(--r-top-h); }
.r-top-guest .r-top-inner { height: auto; padding: 12px 20px 4px; gap: 24px; }
.r-wordmark { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand) !important; text-decoration: none; margin-right: 6px; }
.r-top-nav { display: flex; gap: 0; flex: 1; min-width: 0; }
.r-top-nav a { position: relative; height: 40px; padding: 0 7px; border-radius: 20px; display: flex; align-items: center; color: var(--part-header-fg, var(--muted)); font-weight: 600; font-size: 14px; text-decoration: none; }
.r-top-nav a[aria-current="page"] { background: var(--part-header-current, var(--card)); color: var(--part-header-current-fg, var(--text)); font-weight: 700; }
.r-top-nav .r-count { position: absolute; top: 1px; right: -3px; min-width: 16px; height: 16px; font-size: 10px; margin: 0; }
.r-top-admin { display: none !important; }
.r-top-me { display: block; flex: none; margin-left: auto; border-radius: 50%; }
.r-top-nav ~ .r-top-me { margin-left: 0; }
.r-top-me[aria-current="page"] .r-face { outline: 2px solid var(--brand); outline-offset: 2px; }
.r-top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.r-top .r-top-end .r-top-me { margin-left: 0; }
.r-top-link { font-size: 15px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.r-face { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 700; font-style: normal; background: var(--f1-bg); color: var(--f1-fg); object-fit: cover; }

.r-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.r-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; }
.r-bar a[aria-current="page"] { color: var(--brand); font-weight: 800; }

@media (display-mode: standalone) and (max-width: 899px), (display-mode: fullscreen) and (max-width: 899px) {
  :root { --r-top-h: 52px; --r-bar-h: 64px; }
  body.r-has-bar { padding-bottom: calc(var(--r-bar-h) + env(safe-area-inset-bottom)); }
  .r-bar { display: grid; }
  .r-top:not(.r-top-guest) .r-top-nav, .r-top:not(.r-top-guest) .r-bell { display: none; }
  .r-top:not(.r-top-guest) { position: static; border-bottom: 0; }
  .r-top:not(.r-top-guest) .r-top-inner { height: 52px; }
  .r-top .r-top-me { margin-left: auto; }
}

.r-foot { padding: 20px 20px 28px; color: var(--muted); font-size: 13px; }
.r-foot-inner { max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: center; }
.r-foot a { color: var(--muted); }
.r-foot-switch { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.r .lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.r .lang-switch button { min-height: 28px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; border-radius: 999px; }
.r .lang-switch button[aria-current] { background: var(--text); color: var(--bg); }

.r .r-flash { margin: 12px 20px 0; padding: 12px 16px; border-radius: 16px; background: var(--info-bg); color: var(--info-fg); font-weight: 600; font-size: 14px; }

/* ---------- buttons and links ---------- */
.r button, .r .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: var(--part-btn-radius, 999px);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.r button:hover, .r .button:hover { border-color: var(--text); }
.r button.primary, .r .button.primary { background: var(--pink); border-color: var(--pink); color: var(--on-pink); font-weight: 800; outline: var(--part-btn-outline, none); outline-offset: -5px; }
.r button.primary:focus-visible, .r .button.primary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.r button.primary:hover, .r .button.primary:hover { filter: brightness(0.96); }
.r button.link, .r .link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font-size: 14px; font-weight: 700; border-radius: 0; }
.r button.link:hover { text-decoration: underline; border: 0; }
.r button.danger, .r .danger { color: var(--danger); }
.r button.primary.danger { color: var(--on-pink); }
.r .r-btn-lg { min-height: 56px; border-radius: var(--part-btn-radius, 28px); font-size: 17px; width: 100%; }
.r .r-btn-xl { min-height: 56px; border-radius: var(--part-btn-radius, 28px); font-size: 17px; width: 100%; font-weight: 800; }
.r .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.r .check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 36px; }
.r input[type="checkbox"], .r input[type="radio"] { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }

/* ---------- forms ---------- */
.r input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .r select, .r textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--field); color: var(--text);
  font: inherit; font-size: 16px;
}
.r input[type="datetime-local"] { padding: 0 10px; font-size: 15px; }
.r textarea { padding: 14px 16px; min-height: 0; resize: vertical; }
.r input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--border); border-radius: 16px; background: var(--field); color: var(--text); font: inherit; font-size: 14px; }
.r input[aria-invalid="true"] { border-color: var(--danger); }
.r-field { display: flex; flex-direction: column; gap: 6px; }
.r-field > span { font-size: 14px; font-weight: 700; }
.r-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r-form { display: flex; flex-direction: column; gap: 22px; padding: 12px 0 8px; }
.r-form-error { color: var(--danger); font-weight: 600; font-size: 14px; }
.r-actions-col { display: flex; flex-direction: column; gap: 8px; }
.r-seg-pick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.r-seg-pick label { position: relative; display: block; }
.r-seg-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.r-seg-pick span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; text-align: center; padding: 0 6px; }
.r-seg-pick input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.r-seg-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- page frame ---------- */
.r-page { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px 28px; display: flex; flex-direction: column; gap: 24px; }
.r-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0 0; margin-left: -10px; }
.r-bar-top > :last-child:not(:first-child) { margin-right: 0; }
.r-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--text) !important; text-decoration: none; font-weight: 700; font-size: 15px; }
.r-iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; display: inline-flex; align-items: center; justify-content: center; margin-right: -10px; }
.r-bar-title .r-bar-heading { font-size: 15px; font-weight: 800; }
.r-bar-spacer { width: 64px; }
.r-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-right: -2px; }
.r-chip-plum { background: var(--plum-bg); color: var(--plum); }
.r-chip-blue { background: var(--info-bg); color: var(--info-fg); }
.r-chip-gray { background: var(--gray-bg); color: var(--muted); align-self: flex-start; margin-right: 0; }

/* the progress line */
.r-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.r-step { display: flex; flex-direction: column; gap: 6px; }
.r-step-bar { height: 6px; border-radius: 3px; background: var(--track); }
.r-step.is-done .r-step-bar { background: var(--pink); }
.r-step.is-plum .r-step-bar { background: var(--plum); }
.r-step-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.r-step[aria-current="step"] .r-step-label { font-weight: 800; color: var(--text); }
.r-step.is-plum[aria-current="step"] .r-step-label { color: var(--plum); }

/* columns: one stack on phones (the order values interleave the two
   wrappers), two columns from 900px */
.r-cols { display: flex; flex-direction: column; gap: 24px; }
.r-primary, .r-secondary { display: contents; }
.r-primary > *, .r-secondary > * { order: 60; }
.r-head, .r-hero, .r-map, .r-venue, .r-quick, .r-quick-more { order: 10; }
.r-vote, .r-review, .r-gray-first { order: 20; }
.r-suggestions { order: 21; }
.r-tiles, .r-budget-note { order: 30; }
.r-changes { order: 35; }
.r-badges { order: 40; }
.r-send { order: 45; }
.r-change { order: 50; }
.r-quick-more { margin-top: -16px; }
.r-secondary .r-quick, .r-secondary .r-quick-more { order: 61; margin-top: 0; }
.r-who { order: 42; }
.r-gray { order: 20; }
.r-acct { order: 12; }
.r-try { order: 25; }
.r-rate { order: 20; }
.r-s-done .r-repeat { order: 25; }

/* the header block */
.r-head { display: flex; flex-direction: column; gap: 6px; }
.r-eyebrow, .r-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.r-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.r-subtitle { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.r-when { font-size: 17px; font-weight: 700; }
.r-where { font-size: 15px; color: var(--muted) !important; text-decoration: none; }
.r-where:hover { text-decoration: underline; }
/* The "Where" card: the map picture (always light), then place, address and Directions. */
.r-map { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.r-map-img { position: relative; display: block; aspect-ratio: 2 / 1; background: #E8E4DC; color: inherit; }
.r-map-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-map-osm { position: absolute; right: 0; bottom: 0; padding: 2px 6px; font-size: 10px; line-height: 1.4; color: #333; background: rgba(255, 255, 255, 0.78); border-top-left-radius: 6px; }
.r-map-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.r-map-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-map-text strong { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.r-map-text span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.r-map-text .r-where-more { padding: 0; margin: 4px 0 0; font-size: 14px; }
.r-map-btn { flex: none; padding: 9px 16px; border-radius: var(--part-btn-radius, 999px); border: 2px solid var(--pink); color: var(--text) !important; font-size: 14px; font-weight: 700; text-decoration: none; background: var(--surface); }
.r-map-btn:hover { background: var(--card); }
.r-head-off .r-title { font-size: 30px; color: var(--muted); }
.r-head-off .r-when { color: var(--muted); font-weight: 600; font-size: 16px; }
.r-head-plain { gap: 6px; }
.r-asked { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-top: 16px; }
.r-asked strong { color: var(--text); }
.r .gcard-mark { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--f1-bg); color: var(--f1-fg); object-fit: cover; }

.r-hero { --ring: var(--pink); border-radius: 24px; background: var(--pink); color: var(--on-pink); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.r-hero .r-eyebrow { color: var(--on-pink); font-weight: 800; }
.r-hero .r-where { color: var(--on-pink) !important; }
.r-hero-sub { font-size: 15px; font-weight: 600; }
.r-hero-who { display: flex; align-items: center; gap: 10px; padding-top: 6px; font-size: 15px; font-weight: 700; }
.r-voted-in .r-hero .r-title { font-size: 30px; }

.r-venue img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; max-height: 220px; object-fit: cover; border-radius: 20px; background: var(--info-bg); }

/* tiles */
.r-tiles { display: grid; gap: 8px; }
.r-tiles-1 { grid-template-columns: minmax(0, 1fr); }
.r-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--tile); min-width: 0; }
.r-tile-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.r-tile-value { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.r-tile-note { font-size: 12px; color: var(--muted); }
.r-budget-note { margin: 8px 0 0; padding: 12px; border-radius: 14px; background: var(--tile); font-size: 14px; }

/* badges */
.r-sec { display: flex; flex-direction: column; gap: 10px; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.r-badge { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.r-badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.r-badge-new { background: var(--info-bg); color: var(--info-fg); }
.r-badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.r-more { font-size: 14px; color: var(--muted); }
.r-more summary { cursor: pointer; font-weight: 600; color: var(--link); min-height: 32px; display: flex; align-items: center; }
.r-more p { margin: 6px 0 0; }
.r-pitch { font-style: italic; }
.r-venue-about { display: flex; flex-direction: column; gap: 4px; }
.r-venue-about > p { margin: 0; }
.r-chips-btn button { min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; }

/* cards */
.r-card, .r .card { border-radius: 24px; background: var(--card); border: 1px solid var(--card-line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.r-card-title { font-size: 18px; font-weight: 800; }
.r-note { font-size: 13px; color: var(--muted); }
.r-muted { color: var(--muted); }
.r-center { text-align: center; }
.r-big { font-size: 20px; font-weight: 800; }
.r-link-center { display: flex; align-items: center; justify-content: center; min-height: 32px; font-size: 14px; font-weight: 700; text-align: center; }

/* the vote box */
.r-tally { display: flex; align-items: baseline; gap: 8px; } /* not .r-count: that is the badge (r-chat.css) */
.r-count-n { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.r-count-of { font-size: 18px; font-weight: 700; }
.r-count-needs { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.r-meter { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.r-seg { height: 8px; border-radius: 4px; background: var(--seg-empty); }
.r-seg.is-full { background: var(--pink); }
.r-meter-gray .r-seg.is-full { background: var(--gray-bar); }
.r-meter-bar { width: 100%; height: 8px; accent-color: var(--pink); }
.r-vote-line { font-size: 15px; font-weight: 600; }
.r-vote-said { font-size: 14px; font-weight: 700; color: var(--muted); }
.r-vote-form { display: flex; flex-direction: column; gap: 14px; }
.r-vote-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r-vote-btns button { width: 100%; }
.r-vote-btns button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.r-vote-btns button.primary[aria-pressed="true"] { background: var(--pink); border-color: var(--text); color: var(--on-pink); box-shadow: inset 0 0 0 2px var(--text); }
.r-vote-btns .r-btn-lg { font-weight: 800; }
.r-changed { display: flex; justify-content: center; order: 55; }

/* people */
.r-people { display: flex; flex-direction: column; gap: 8px; }
.r-person { display: flex; align-items: center; gap: 12px; }
.r-person-name { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.r-person-state { font-size: 13px; font-weight: 600; color: var(--muted); }
.r-person.is-in .r-person-state { color: var(--ok-fg); font-weight: 700; }
.r-person.is-waiting .r-face { background: transparent; border: 2px dashed var(--border); color: var(--text); }
.r-person:nth-child(3n+2) .r-face:not(img) { background: var(--f2-bg); color: var(--f2-fg); }
.r-person:nth-child(3n) .r-face:not(img) { background: var(--f3-bg); color: var(--f3-fg); }
.r-person.is-waiting:nth-child(n) .r-face:not(img) { background: transparent; color: var(--text); }
.r-stack { display: inline-flex; --ring: var(--bg); }
.r-stack .r-face { width: 34px; height: 34px; font-size: 12px; border: 2px solid var(--ring); }
.r-stack .r-face + .r-face { margin-left: -8px; }
.r-stack .r-face:nth-child(3n+2):not(img) { background: var(--f2-bg); color: var(--f2-fg); }
.r-stack .r-face:nth-child(3n):not(img) { background: var(--f3-bg); color: var(--f3-fg); }
.r-stack .r-face-more { background: #fff !important; color: var(--navy) !important; }
.r-who-fold { order: 42; }
.r-who-fold .r-who { border: 0; padding: 0; }
.r-who-fold .r-who > .r-label { display: none; }

/* quick links: calendar, directions, chat */
.r-quick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.r-quick a { height: 72px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; }
.r-quick-2 a { height: 56px; flex-direction: row; gap: 8px; font-size: 14px; }
.r-quick-more { font-size: 13px; color: var(--muted); text-align: center; }
.r-quick-more a { color: var(--muted); }
.r-chat-link { width: 100%; }

/* plans change / lists of actions */
.r-changes { border: 1px solid var(--line); background: transparent; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 0; }
.r-changes .r-label { margin-bottom: 4px; }
.r-changes form + form .r-row-btn { border-top: 1px solid var(--line); }
.r-row-btn, .r .r-row-btn { width: 100%; justify-content: space-between; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; font-weight: 700; }
.r-row-btn:hover, .r .r-row-btn:hover { border: 0; text-decoration: underline; }
.r-rows { display: flex; flex-direction: column; gap: 12px; }
.r-rows li { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.r-rows-text { flex: 1; min-width: 0; font-size: 15px; }
.r .vthumb { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--info-bg); }

/* send block and change-it block */
.r-send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r-send-when { display: block; font-size: 16px; font-weight: 700; }
.r-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; align-items: center; }
.r-links a, .r-links .link { font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.r-ask { display: flex; flex-direction: column; gap: 10px; }
.r-discard { order: 60; }

/* review */
.r-review { background: var(--review-bg); border-color: var(--review-line); color: var(--review-ink); }
.r-review p { font-size: 14px; }
.r-review-head { display: flex; align-items: center; gap: 12px; }
.r-review-head h2 { font-size: 17px; font-weight: 800; color: var(--review-ink); }
.r-review-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--plum); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.r-review button { border-color: var(--review-line); }

/* cancelled */
.r-gray { background: var(--gray-card); }
.r-try { background: var(--card); }
.r-try .button, .r-try button { width: 100%; }

/* series */
.r-stops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.r-stop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 14px; text-align: center; }
.r-stop span { font-size: 11px; font-weight: 700; }
.r-stop b { font-size: 12px; font-weight: 800; }
.r-stop.is-went { background: var(--ok-bg); color: var(--ok-fg); }
.r-stop.is-skipped { background: var(--gray-bg); color: var(--muted); }
.r-stop.is-current { background: var(--pink); color: var(--on-pink); }
.r-stop.is-next { border: 1px dashed var(--border); color: var(--muted); }

/* photos */
.r-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.r-gallery li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.r-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--info-bg); }
.r-gallery .link, .r-photo-report { font-size: 12px; min-height: 28px; }
.r-upload { display: flex; flex-direction: column; gap: 10px; }

/* rating */
.r-rate-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.r-rate-btns button { min-height: 64px; border-radius: 18px; font-size: 15px; }

/* old partials used on these pages */
.r .copy { display: flex; flex-direction: column; gap: 10px; }
.r .copy textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.r .invite-link { display: flex; flex-direction: column; gap: 10px; }
.r .invite-url { display: block; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--link); font-weight: 600; overflow-wrap: anywhere; text-decoration: none; font-size: 14px; }
.r .push, .r .account-nudge, .r .start-group { gap: 10px; }
.r .push p, .r .account-nudge p, .r .start-group p { margin: 0; }
.r .push .muted, .r .muted { color: var(--muted); }
.r .account-nudge .actions, .r .start-group form { margin-top: 4px; }
.r .not-you { text-align: center; font-size: 13px; }
.r .not-you .link { font-size: 13px; color: var(--muted); }
.r .demo { font-size: 12px; font-weight: 700; color: var(--warn-fg); background: var(--warn-bg); padding: 1px 8px; border-radius: 999px; }
.r-booking-note { font-size: 14px; font-weight: 600; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --r-top-h: 72px; }
  .r-top-inner { padding: 0 32px; gap: 32px; }
  .r-top-guest { border-bottom: 1px solid var(--line); }
  .r-top-guest .r-top-inner { height: 72px; padding: 0 32px; }
  .r-wordmark { font-size: 24px; }
  .r-top-nav { gap: 6px; }
  .r-top-nav a { padding: 0 16px; font-size: 15px; }
  .r-top-nav .r-count { position: static; margin-left: 6px; min-width: 18px; height: 18px; font-size: 11px; }
  .r-top-admin { display: flex !important; }
  .r-top .r-top-me { margin-left: auto; }
  .r-top-me .r-face { width: 44px; height: 44px; font-size: 15px; }
  .r-page { max-width: 1120px; padding: 0 32px 40px; gap: 28px; }
  .r-bar-top { margin-left: -10px; padding-top: 20px; }
  .r-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
  .r-primary, .r-secondary { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
  .r-quick-more { margin-top: -20px; }
  .r-title { font-size: 44px; line-height: 1.08; }
  .r-head-off .r-title { font-size: 40px; }
  .r-when { font-size: 20px; }
  .r-where { font-size: 17px; }
  .r-eyebrow, .r-label { font-size: 12px; }
  .r-step-label { font-size: 13px; }
  .r-venue img { max-height: 280px; aspect-ratio: 16 / 7; }
  .r-tile { padding: 16px; border-radius: 16px; }
  .r-tile-value { font-size: 20px; }
  .r-tile-note { font-size: 13px; }
  .r-badge { font-size: 15px; }
  .r-vote { border-radius: 28px; padding: 24px; }
  .r-count-n { font-size: 52px; }
  .r-count-of { font-size: 20px; }
  .r-vote-line { font-size: 16px; }
  .r-who { border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
  .r-person .r-face { width: 32px; height: 32px; font-size: 12px; }
  .r-hero { padding: 28px 28px; }
  .r .r-flash { max-width: 1056px; margin: 12px auto 0; }
  .r-edit { max-width: 640px; }
}

/* extend voting card (_extend_voting.html) */
.r .extend-voting { order: 36; background: var(--surface); border: 1px solid var(--line); gap: 12px; }
.r .extend-voting h2 { font-size: 18px; font-weight: 800; }
.r .extend-voting .muted { font-size: 13px; }
.r .extend-voting .actions .primary, .r .extend-voting .actions .button { flex: 1 1 100%; min-height: 52px; }
.r .extend-other > summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 36px; display: flex; align-items: center; }
.r .extend-other form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.r .extend-other label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .r button, .r .button { transition: border-color 0.15s, filter 0.15s; }
}

/* ======================================================================
   Phase 2: propose, options, home, landing
   ====================================================================== */

/* shared bits */
.r-lead { font-size: 15px; color: var(--muted); }
.r-title-md { font-size: 30px; line-height: 1.12; }
.r-soft { font-size: 15px; color: var(--muted); }
.r-fieldlabel { font-size: 14px; font-weight: 700; }
.r .r-btn-outline { background: transparent; border-color: var(--border); }
.r .r-btn-surface { background: var(--surface); border-color: var(--border); }
.r .r-btn-white { background: var(--surface); border-color: transparent; color: var(--text); }
.r-chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.r-chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.r-chip-on { background: var(--pink); color: var(--on-pink); }
.r-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r-sec-link { font-size: 14px; font-weight: 700; }
.r .r-iconbtn-lg { width: 56px; height: 56px; border-radius: 28px; }
.r-pagehead { display: flex; flex-direction: column; gap: 6px; }
.r-home, .r-land-top { padding-top: 20px; }

/* the two ways to plan */
.r-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 24px; background: var(--tile); }
.r-switch a { height: 44px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; }
.r-switch a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 4px rgba(11, 31, 58, 0.12); color: var(--text); font-weight: 800; }

/* the propose form: the shared fields partial, restyled */
.r .propose-field { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.r .propose-field legend { padding: 0; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.r .propose-field label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.r .propose-field .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r .propose-field .muted { margin: 0; font-size: 13px; }
.r .propose-field .chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.r .propose-field .chip { position: relative; display: block; }
.r .propose-field .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.r .propose-field .chip span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.r .propose-field .chip input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--on-pink); font-weight: 800; }
.r .propose-field .chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.r-ideas { gap: 8px; }
.r .r-idea { min-height: 36px; height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; font-weight: 600; background: var(--surface); }
.r-form textarea { min-height: 84px; resize: none; }
.r .propose-field select { font-weight: 500; }

/* the thinking view */
.r-thinking { align-items: center; text-align: center; padding-top: 64px; gap: 28px; min-height: 70vh; }
.r-think-bird { width: 200px; height: 200px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; }
.r-think-bird img { display: block; width: 200px; height: 200px; }
/* The day picture in the light theme, the night one in the dark theme. */
.r-think-bird .r-think-night { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .r-think-bird .r-think-day { display: none; }
  :root:not([data-theme="light"]) .r-think-bird .r-think-night { display: block; }
}
:root[data-theme="dark"] .r-think-bird .r-think-day { display: none; }
:root[data-theme="dark"] .r-think-bird .r-think-night { display: block; }
.r-think-head { display: flex; flex-direction: column; gap: 8px; }
.r-think-steps { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.r-think-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px dashed var(--border); color: var(--muted); font-size: 15px; font-weight: 600; }
.r-think-steps li.is-done { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; font-weight: 700; }
.r-think-steps li.is-now { background: var(--card); color: var(--text); border-color: transparent; font-weight: 800; }
.r-spin { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--pink); border-right-color: var(--track); box-sizing: border-box; flex: none; animation: r-spin 0.9s linear infinite; }
.r-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); box-sizing: border-box; flex: none; }
.r-think-stay { margin-top: auto; font-size: 14px; }
.r-think-cancel { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; }
@keyframes r-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .r-spin { animation-duration: 3s; } }

/* the three options */
.r-opts { display: flex; flex-direction: column; gap: 16px; }
.r-opt article { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.r-opt.is-best article { border: 2px solid var(--pink); padding: 15px; }
.r-opt-top { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.r-opt-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.r-opt.is-best .r-opt-tag { color: var(--link); }
.r-opt-title { font-size: 20px; line-height: 1.2; font-weight: 800; }
.r-opt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 0; font-size: 13px; }
.r-opt-facts div:first-child { grid-column: 1 / -1; }
.r-opt-facts div { display: flex; flex-direction: column; min-width: 0; }
.r-opt-facts dt { color: var(--muted); }
.r-opt-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.r-opt .r-badge { font-size: 12px; padding: 4px 9px; }
.r-opt-pitch { font-size: 14px; color: var(--muted); }
.r-opt form { margin-top: auto; }
.r-opt .r-btn-lg { min-height: 48px; border-radius: 24px; font-size: 15px; }

/* the Plan page: every other route in one fold */
.r-ways .disc { margin: 0; }
.r-ways-list { margin: 12px 0 0; }

/* the guide to making a plan */
.r-guide { display: flex; flex-direction: column; gap: 16px; }
.r-guide-form { display: flex; flex-direction: column; gap: 16px; }
.r-guide-answers { display: flex; flex-direction: column; gap: 10px; }
.r-guide-answers .r-guide-answer, .r-guide-answers .r-guide-answer:hover, .r-guide-answers .r-guide-answer:visited { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; height: auto; min-height: 72px; box-sizing: border-box; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.r-guide-answers .r-guide-answer strong { font-size: 16px; font-weight: 800; color: var(--text); }
.r-guide-answers .r-guide-answer span { font-size: 13px; font-weight: 400; color: var(--muted); }
.r-support { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }

/* voting on the three options */
.r-poll-send { border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.r-poll-send .r-seg-pick span { background: var(--bg); }
.r-poll-send .r-note { margin: 0; }
.r-poll-form { display: flex; flex-direction: column; gap: 16px; }
.r-poll-choice { position: relative; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); padding: 16px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.r-poll-choice:has(input:checked) { border: 2px solid var(--pink); padding: 15px; }
.r-poll-choice input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--pink); }
.r-poll-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r-poll-when { font-size: 13px; color: var(--muted); }
.r-poll-where { font-size: 13px; overflow-wrap: anywhere; }
.r-poll-top { gap: 8px; }
.r-poll-tally { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.r-poll .r-meter-bar { width: 100%; }
.r-poll > .button { width: 100%; box-sizing: border-box; }
.r-poll-card { border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.r-poll-card-title { font-size: 20px; font-weight: 800; }
.r-poll-card .button { margin-top: 8px; }

/* home: the next plan */
.r-need-vote { display: grid; gap: 8px; }
.r-need-vote button { width: 100%; }

/* home: up next */
.r-nx-date { width: 56px; height: 60px; border-radius: 14px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--f1-bg); color: var(--f1-fg); }
.r-nx-mon { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.r-nx-day { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

/* home: groups row (phone) and list (desktop) */
.r-gmark { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 17px; font-weight: 800; object-fit: cover; font-style: normal; background: var(--f3-bg); color: var(--f3-fg); }
.r-gm0 { background: var(--f3-bg); color: var(--f3-fg); }
.r-gm1 { background: var(--f1-bg); color: var(--f1-fg); }
.r-gm2 { background: var(--f2-bg); color: var(--f2-fg); }
.r-gmark-new { background: transparent; border: 2px dashed var(--border); color: var(--brand); box-sizing: border-box; }

/* home: group cards (nothing urgent) */

/* home: one group, no plans yet */
.r-gmark-xl { width: 72px; height: 72px; font-size: 22px; transform: translateY(50%); background: var(--surface); color: var(--f3-fg); border: 4px solid var(--surface); box-sizing: border-box; }
.r-info { background: var(--tile); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.r-info p { font-size: 14px; color: var(--muted); }
.r-how-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r-how-mini li { background: var(--tile); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.r-how-mini b { font-size: 24px; line-height: 1; font-weight: 800; color: var(--brand); }
.r-how-mini span { font-size: 13px; font-weight: 600; }

/* home: no groups yet, and the sample plan card */
.r-home-none, .r-home-none-main, .r-home-none-side { display: flex; flex-direction: column; gap: 20px; }
.r-sample-wrap { background: var(--card); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.r-sample { background: var(--surface); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.r-sample-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-sample-top .r-chip { margin-right: 0; }
.r-sample-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.r-sample-when { font-size: 14px; font-weight: 600; }
.r-sample .r-badge { font-size: 12px; padding: 4px 9px; }
.r-sample-meter { display: flex; align-items: center; gap: 10px; }
.r-sample-meter .r-meter { flex: 1; }
.r-sample-in { font-size: 13px; font-weight: 800; white-space: nowrap; }
.r-startcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: var(--pink); color: var(--on-pink) !important; text-decoration: none; }
.r-startcard-plus { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.r-startcard-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.r-startcard-text strong { font-size: 17px; font-weight: 800; }
.r .r-join { background: var(--surface); border: 1px solid var(--line); }
.r-join-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.r-signin { gap: 10px; }

/* the sign-in box inside the redesign */
.r .signin-box { width: 100%; display: flex; flex-direction: column; gap: 4px; }
/* Google's own button colours (their branding guidelines): white with a #747775 outline in light, #131314 with #8E918F in dark. */
.r .button.google-signin { width: 100%; min-height: 52px; background: #fff; color: #1f1f1f; border-color: #747775; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .r .button.google-signin { background: #131314; color: #e3e3e3; border-color: #8e918f; }
}
:root[data-theme="dark"] .r .button.google-signin { background: #131314; color: #e3e3e3; border-color: #8e918f; }
/* Microsoft's sign-in button: their light and dark colours and four-square logo. */
.r .button.microsoft-signin { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-bottom: 14px; background: #fff; color: #5e5e5e; border: 1px solid #8c8c8c; font-weight: 600; }
.r .button.microsoft-signin svg { flex: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .r .button.microsoft-signin { background: #2f2f2f; color: #fff; border-color: #2f2f2f; }
}
:root[data-theme="dark"] .r .button.microsoft-signin { background: #2f2f2f; color: #fff; border-color: #2f2f2f; }
.r .signin-or { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 6px; }
.r .signin-step-1 label, .r .signin-step-1 { display: flex; flex-direction: column; gap: 6px; }
.r .signin-step-1 label { font-size: 14px; font-weight: 700; }
.r .signin-step-1 .signin-btn-submit { width: 100%; min-height: 52px; margin-top: 8px; }
.r .signin-privacy { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.r .signin-step-2 { display: flex; flex-direction: column; gap: 8px; }
.r .phone-auth-row { display: flex; gap: 8px; }
.r .phone-auth-row input { flex: 1; min-width: 0; }
.r .signin-code-input { letter-spacing: 0.25em; }
.r .button.subtle { background: transparent; border-color: transparent; color: var(--link); }
.r .error-msg.signin-error { color: var(--danger); font-size: 14px; font-weight: 600; }

/* landing */
.r-top-site { display: none; }
.r-land { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; display: flex; flex-direction: column; gap: 36px; }
.r-land-hero { display: flex; flex-direction: column; gap: 28px; }
.r-land-copy { display: flex; flex-direction: column; gap: 16px; }
.r-land-h1 { font-size: 42px; line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.r-land-copy .r-lead { font-size: 18px; line-height: 1.5; }
.r-land-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.r-land-free { text-align: center; }
.r-land-sample { background: var(--card); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.r-reveal { display: none; max-width: 520px; width: 100%; }
.r-reveal:target { display: block; scroll-margin-top: 16px; }
.r-land-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-margin-top: 16px; }
.r-land-card { border-radius: 28px; padding: 28px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.r-land-card p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.r-land-friends { background: var(--tile); }
.r-land-teams { background: var(--info-bg); }
.r-land-teams p { color: var(--info-fg); opacity: 0.85; }
.r-land-friends .r-land-eyebrow { color: var(--link); }
.r-land-teams .r-land-eyebrow { color: var(--info-fg); }
.r-land-h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.r-land-how { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.r-land-how ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.r-land-how li { display: flex; flex-direction: column; gap: 4px; }
.r-land-how b { font-size: 40px; line-height: 1; font-weight: 800; }
.r-land-how .n1 { color: var(--pink); }
.r-land-how .n2 { color: var(--orange); }
.r-land-how .n3 { color: #4A6FA5; }
.r-land-how h3 { font-size: 18px; font-weight: 800; }
.r-land-how p, .r-land-assure p { font-size: 15px; color: var(--muted); }
.r-land-assure { border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.r-land-assure h3 { font-size: 16px; font-weight: 800; }
.r-land-assure p { font-size: 14px; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .r-title-md { font-size: 36px; }
  .r-home { padding-top: 32px; }
  .r-home .r-title { font-size: 44px; }
  .r-need-vote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-gmark { width: 44px; height: 44px; font-size: 15px; }
  .r-gmark-xl { width: 72px; height: 72px; }
  .r-home-none { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

  .r-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .r-propose .r-pagehead, .r-propose .r-form, .r-propose .r-switch { max-width: 560px; }
  .r-propose .r-switch { width: 100%; }

  .r-top-site { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 600; }
  .r-top-site a { color: var(--muted); text-decoration: none; }
  .r-top-site + .r-top-end { margin-left: 0; }
  .r .r-top-pill { border: 1px solid var(--border); border-radius: 22px; padding: 0 20px; color: var(--text); text-decoration: none; }
  .r-land { padding-top: 40px; gap: 72px; }
  .r-land-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .r-land-h1 { font-size: 64px; }
  .r-land-cta { flex-direction: row; }
  .r-land-cta .r-btn-xl { width: auto; padding: 0 32px; }
  .r-land-free { text-align: left; }
  .r-land-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .r-land-card { padding: 36px 32px; }
  .r-land-h2 { font-size: 32px; }
  .r-land-how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .r-land-assure { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 32px; }
}

/* ---------- Components (design polish pass; spec in docs/REDESIGN.md) ---------- */
/* Line icon: 20px, 2px round strokes, currentColor. */
.r-ico { width: 20px; height: 20px; flex: none; }

/* Disclosure: a full-width card row you open in place. The summary is a
   56px row (icon, 16px semibold label, chevron that turns when open); the
   content opens inside the same card under a hairline. <details>, no script. */
.disc { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.disc > .disc-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: 19px; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--text); }
.disc > .disc-sum::-webkit-details-marker { display: none; }
.disc > .disc-sum::marker { content: ""; }
.disc > .disc-sum:hover { background: var(--tile); }
.disc > .disc-sum:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.disc-ico { display: inline-flex; flex: none; color: var(--link); }
.disc-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.disc-chev { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.disc[open] > .disc-sum { border-bottom: 1px solid var(--line); border-radius: 19px 19px 0 0; }
.disc[open] > .disc-sum .disc-chev { transform: rotate(180deg); }
.disc-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; font-size: 15px; }
.disc-body > p { margin: 0; }
.disc-body .disc { background: var(--tile); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .disc-chev { transition: none; } }

/* Action list: grouped rows (icon, label), 48px, hairlines between. For the
   quiet page-level actions (leave, report, sign out, delete, discard). */
.rl { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.rl > li + li { border-top: 1px solid var(--line); }
.rl form { margin: 0; }
.r .rl-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; }
.r .rl-row > span { flex: 1; min-width: 0; }
.r .rl-row:hover { background: var(--tile); border: 0; }
.r .rl-row .r-ico { color: var(--muted); }
.r .rl-row.danger, .r .rl-row.danger .r-ico { color: var(--danger); }
.r .rl-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rl-flat { background: transparent; }

/* Outline button with an icon, and a row of equal ones; a <details> whose
   summary looks like one opens full width under the row. */
.r .btn-ico { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; flex: 1 1 0; min-width: 0; list-style: none; }
.r .btn-ico::-webkit-details-marker { display: none; }
.r .btn-ico .r-ico { width: 18px; height: 18px; color: var(--link); }
.r .btn-ico:hover { border-color: var(--text); }
.r .btn-ico:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-fold { flex: 1 1 0; min-width: 0; }
.rb-fold > summary { width: 100%; }
.rb-fold[open] { flex-basis: 100%; order: 2; }
.rb-fold[open] > summary { background: var(--tile); border-color: var(--link); }
.r-quick-more.rb-row { margin-top: 0; font-size: 14px; }
.r-changed { align-items: stretch; }
.r-changed .btn-ico { flex: 1 1 auto; }
.r .r-btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; flex: none; }

/* The show line of a plan at an event venue: genre, sold-out warning, Tickets link. */
.show-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; font-size: 14px; }
.show-genre { color: var(--muted); }
.show-soldout { color: var(--link); font-weight: 700; }
.show-tickets { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--pink); color: var(--text) !important; font-weight: 700; text-decoration: none; background: var(--surface); }
.show-tickets:hover { background: var(--card); }
.r-seg-pick.r-seg-wrap { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; }
.r-seg-wrap span { min-height: 48px; border-radius: 16px; padding: 6px 10px; line-height: 1.25; }

/* Date first, then the place */
.r-df-tbd { order: 15; }
.r-df-find { order: 16; }
.r-df-who { order: 17; }
.r-df-changes { order: 70; }
.r-df-ask fieldset { border: 0; margin: 0; padding: 0; }
.r-df-ask legend { padding: 0 0 8px; font-size: 14px; font-weight: 700; }
.r-df-ask legend .r-muted { font-weight: 500; }
.r-df-place .r-df-verdict { padding: 14px 16px; }
.r-df-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.r-df-card-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--link); }
.r-df-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.r-df-card-text strong { font-size: 16px; font-weight: 800; }
.r-df-card-text span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.r-df-tbd { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; border: 2px dashed var(--border); }
.r-df-tbd-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--link); }
.r-df-tbd-text { display: flex; flex-direction: column; gap: 4px; }
.r-df-tbd-text strong { font-size: 16px; font-weight: 800; }
.r-df-tbd-text span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.r-df-find { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; background: var(--card); }
.r-df-find form { margin: 0; }
.r-df-find .button { display: flex; align-items: center; justify-content: center; }
.r-df-find-line { margin: 0; font-size: 15px; font-weight: 600; }
.r-count-needs.is-ok { color: var(--ok-fg); font-weight: 600; }
.r-df-who { display: flex; flex-direction: column; gap: 12px; }
.r-df-who > div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.r-df-who strong, .r-df-tell strong { font-weight: 700; font-size: 14px; }
.r-df-who form { margin: 0; }
.r-df-who form button { width: 100%; }
.r-df-who .is-in, .r-df-tell .is-in { color: var(--ok-fg); }
.r-df-who .is-out, .r-df-tell .is-out { color: var(--muted); }
.r-df-who .is-waiting, .r-df-tell .is-waiting { color: var(--warn-fg); }
.r-df-summary { display: flex; flex-direction: column; gap: 4px; }
.r-df-verdict { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--card); font-size: 15px; font-weight: 700; }
.r-df-verdict.is-on { background: var(--ok-bg); color: var(--ok-fg); }
.r-df-tell { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.45; }
.r-df-tell li { display: flex; gap: 12px; }
.r-df-tell strong { width: 28px; flex-shrink: 0; font-size: 15px; font-weight: 800; }
.r-df-place form { margin: 0; }
.r-df-place > * + * { margin-top: 20px; }
.r-df-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r-df-youre-in { min-height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok-fg); font-size: 16px; font-weight: 800; text-align: center; }
.r-df-answer button { width: 100%; }
.r-opt-more-link { text-align: center; }

/* A saved form's button until something changes (r.js). */
.r button.is-saved:disabled { opacity: 1; background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; cursor: default; }

/* In-page jumps (#invite and the like) land below the sticky top bar. */
.r [id] { scroll-margin-top: 76px; }
.r .r-map-place { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.r-repeat-custom { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.r-repeat-custom input { width: 4.5em; min-height: 44px; text-align: center; }
