:root {
  /* Brand tokens, matching papitoco.com (brief of 2026-10-28). */
  --page: #FBF8F1; --paper: #FFFFFF; --ink: #172D32; --muted: #4D6466; --teal: #00777C; --teal-dark: #005A5E;
  --deep: #0F3D3E; --deep-ink: #FFFDF7; --deep-sub: #CFE6E1; --soft: #EAF4F1; --line: #E3E8E6; --input: #C9D6D3; --cream: #FFF6E8;
  --sun-bg: #FFF1D6; --sun: #9A6A12; --sky-bg: #E6F0FA; --sky: #0F5E9C; --rose-bg: #FBE9E4; --rose: #A24A33;
  --coral: #B4472C; --coral-bg: #FDEBE5; --mint: #0E7C66; --mint-bg: #EAF4F1; --gold: #B8964E;
  --r-card: 24px; --r-panel: 32px; --shadow: 0 12px 28px rgba(23,45,50,.06);
  --head: "Playfair Display", Georgia, serif; --body: "Varela Round", "Helvetica Neue", Arial, sans-serif;
  /* legacy names used by older pages */ --sky-legacy: #EAF4F1;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--page); font-size: 16px; line-height: 1.5; }
body.has-tabbar { padding-bottom: 88px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0 0 8px; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
h2.section { margin: 28px 4px 12px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin: 0 0 6px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 14px; }
main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 56px; }
main.narrow-page { max-width: 760px; }

/* ---------- Shell: header, nav, tab bar, footer ---------- */
header.shell { position: sticky; top: 0; z-index: 30; background: rgba(251,248,241,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.shell-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand img { display: block; height: 27px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-pill:hover { background: #F1F5F3; } .nav-pill.on { background: var(--soft); color: var(--teal); font-weight: 600; }
/* Watercolor nav icons (app/nav/v1): decorative, shown as-is, never tinted. */
.nav-ic { display: block; width: 24px; height: 24px; object-fit: contain; flex: none; }
.askbtn .nav-ic { width: 20px; height: 20px; }
.shell-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.askbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 14px; border: 1px solid var(--input); border-radius: 999px; background: #fff; color: var(--muted); text-decoration: none; font-size: 15px; flex: 0 1 280px; min-width: 0; }
.askbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askbtn kbd { margin-left: auto; font: 12px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--page); }
.bell-slot { width: 44px; height: 44px; }
.acct { position: relative; }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font: 600 17px var(--body); cursor: pointer; padding: 0; overflow: hidden; display: grid; place-items: center; }
.avatar-btn .avatar-img { width: 44px; height: 44px; }
.menu { position: absolute; right: 0; top: 52px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; z-index: 40; }
.menu-name { margin: 6px 12px 8px; font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 12px; font: inherit; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--soft); }
.tabbar { display: none; }
footer.shell { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
footer.shell { align-items: baseline; }
footer.shell a, footer.shell .linkish { color: var(--muted); text-decoration: none; }
.linkish { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-weight: inherit; line-height: inherit; cursor: pointer; display: inline; }

/* ---------- Cards, buttons, forms (shared by every page) ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; margin: 0 0 16px; }
.panel { background: var(--deep); color: var(--deep-ink); border-radius: var(--r-panel); padding: 28px; }
.panel .eyebrow { color: var(--deep-sub); } .panel .muted { color: var(--deep-sub); }
.narrow { max-width: 480px; margin: 24px auto; }
.lead { font-size: 17px; margin: 0 0 16px; }
.msg { min-height: 1.2em; font-size: 15px; margin: 10px 0 0; }
.msg.error, .danger { color: var(--coral); }
.notice { background: var(--soft); color: var(--mint); padding: 10px 14px; border-radius: 14px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; } .row input { flex: 1; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--input); border-radius: 16px; padding: 13px 16px; width: 100%; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,119,124,.12); }
button, .button { font: inherit; font-weight: 600; border-radius: 999px; padding: 11px 20px; min-height: 44px; border: 2px solid var(--teal); cursor: pointer;
  background: var(--paper); color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
button.primary, .button.primary { background: var(--teal); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
button.ghost, .button.ghost { border-color: transparent; background: transparent; padding: 6px 12px; }
button.small, .button.small { font-size: 14px; padding: 7px 14px; min-height: 40px; }
button.ghost.small { padding: 6px 10px; }
button.light, .button.light { background: #fff; color: var(--deep); border-color: #fff; }
button:disabled { opacity: .6; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--soft); font-size: 12.5px; color: var(--ink); margin-left: 6px; }
.pill.going { background: var(--mint-bg); color: var(--mint); } .pill.cant { background: var(--coral-bg); color: var(--coral); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; min-height: 36px; }
.chip:hover { border-color: var(--teal); }
.chip.pay { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.tile.teal { background: var(--soft); color: var(--teal); } .tile.sun { background: var(--sun-bg); color: var(--sun); }
.tile.sky { background: var(--sky-bg); color: var(--sky); } .tile.rose { background: var(--rose-bg); color: var(--rose); }
.tile.spot { background: transparent; overflow: hidden; } .tile.spot img { width: 44px; height: 44px; border-radius: 14px; display: block; object-fit: cover; }
.hello { margin: 8px 4px 16px; }
.list { display: grid; gap: 12px; margin-bottom: 16px; }
.empty { background: var(--paper); border: 1px dashed var(--input); border-radius: 18px; padding: 18px; color: var(--muted); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 10px; color: var(--teal); text-decoration: none; font-size: 15px; min-height: 44px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); z-index: 50; margin: 0; }

/* ---------- Legacy pieces still used by the group view and tool pages ---------- */
.group-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; color: inherit; text-decoration: none; }
.group-card:hover { border-color: var(--teal); }
.group-card h3 { margin: 0; } .group-card p { margin: 2px 0 0; }
.next { display: grid; justify-items: end; text-align: right; gap: 2px; font-size: 15px; } .next .pill { margin: 0; }
.group-head { margin: 0 4px 14px; }
.invite input { font-size: 14px; color: var(--muted); }
.playdate { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.playdate .when { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.playdate h3 a { color: inherit; } .playdate p { margin: 4px 0; }
.playdate .note { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .who .pill { margin: 0; }
.rsvp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.members { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.members li { display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-family: var(--head); color: var(--teal); flex: none; }
/* Avatars (app/avatars.js): an illustrated circle, or the initial when none is chosen. */
.avatar-img { object-fit: cover; display: block; background: var(--soft); }
.avatar-initial { background: var(--teal); color: #fff; font: 600 17px var(--body); text-align: center; }
.avatar-sm { width: 22px; height: 22px; font-size: 11px; vertical-align: middle; margin-right: 4px; display: inline-grid; }
.group-card .avatar { width: 48px; height: 48px; } .group-card .lead-in { display: flex; gap: 12px; align-items: center; min-width: 0; }
.group-head .title-row { display: flex; gap: 14px; align-items: center; } .group-head .title-row .avatar { width: 56px; height: 56px; }
.av-current { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.av-current .avatar { width: 72px; height: 72px; }
.av-picker-wrap { --av-tile: 68px; --av-gap: 8px; margin-top: 14px; }
.av-sec { margin: 16px 0 6px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.av-picker { display: grid; grid-template-columns: repeat(auto-fill, var(--av-tile)); gap: var(--av-gap); justify-content: start; }
.av-picker.clamp { max-height: calc(var(--av-tile) * 2 + var(--av-gap)); overflow: hidden; }
.av-opt { background: none; border: 2px solid transparent; border-radius: 50%; padding: 2px; cursor: pointer; min-height: 0; width: var(--av-tile); height: var(--av-tile); display: grid; place-items: center; }
.av-opt .avatar { width: calc(var(--av-tile) - 8px) !important; height: calc(var(--av-tile) - 8px) !important; }
.av-opt .avatar-initial { display: grid; line-height: 1 !important; font-size: calc(var(--av-tile) * .4) !important; }
.av-opt:hover { border-color: var(--line); } .av-opt[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--soft); }
.av-opt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.av-section { border-top: 1px solid var(--line); padding: 4px 0 10px; }
.av-section summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.av-section summary::-webkit-details-marker { display: none; }
.av-section summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-left: 2px; }
.av-section[open] summary::before { transform: rotate(45deg); }
.av-section[open] summary { color: var(--teal); }
.av-section.founder summary { color: #7A5C22; }
.av-more { color: var(--teal); font-size: 14px; margin-top: 8px; min-height: 32px; }
@media (max-width: 600px) { .av-picker-wrap { --av-tile: 56px; } }
/* Phones (TZ-AGT-015): the Papito card stacks the sprite over the text; a 230 px sprite beside a 150 px grid overflowed a 390 px viewport. */
@media (max-width: 600px) {
  .agent { flex-direction: column; align-items: stretch; }
  .agent .sp { margin: 0 auto; }
  .agent .bubble::before { display: none; }
  .agent .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ticks { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; } .ticks li svg { color: var(--teal); flex: none; margin-top: 3px; }
.extras { border: 1.5px dashed var(--input); border-radius: 16px; padding: 10px 14px; }
.extras summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.extras[open] summary { margin-bottom: 10px; }
.link-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; align-items: center; }
.extras-out { margin: 8px 0; display: grid; gap: 8px; }
.split { background: var(--soft); border-radius: 12px; padding: 8px 12px; } .split p { margin: 0 0 6px; }
.c-promo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }

/* ---------- Home ---------- */
.greet { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin: 18px 4px 22px; }
.greet h1 { font-size: 56px; line-height: 1.02; margin: 0 0 10px; }
.greet .status { margin: 0; font-size: 17px; color: var(--muted); max-width: 640px; }
.greet .plate { margin: 0 0 14px; }
.wx { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; min-width: 300px; display: grid; gap: 10px; }
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-now .temp { font-family: var(--head); font-size: 38px; line-height: 1; }
.wx-now .tile { width: 48px; height: 48px; border-radius: 16px; }
.wx-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wx-day { background: var(--page); border-radius: 14px; padding: 8px 6px; text-align: center; font-size: 13px; display: grid; gap: 2px; justify-items: center; color: var(--muted); }
.wx-day b { color: var(--ink); font-size: 15px; } .wx-day .pop { color: var(--sky); }
.wx-day .wet { color: var(--sky); }
.sunday { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.sunday-head { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sunday-head img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
/* Papito at work (sprite from papito-agent.js) with "Papito is picking…" as a caption under him. */
.sunday-head .at-work { display: grid; justify-items: center; gap: 4px; flex: none; }
.sunday-head .sp { background-repeat: no-repeat; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.sunday-head .caption { font-size: 12.5px; color: var(--deep-sub); white-space: nowrap; }
.sunday-head h2 { font-size: 30px; margin: 0; color: var(--deep-ink); }
.sunday-head p { margin: 2px 0 0; color: var(--deep-sub); }
.sunday-head .state { margin-left: auto; background: rgba(255,255,255,.12); color: var(--deep-ink); border: 1px solid rgba(255,255,255,.25); }
.pick { background: #fff; color: var(--ink); border-radius: var(--r-card); overflow: hidden; display: grid; text-decoration: none; }
.pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pick-body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.pick-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .pick-meta .pill { margin: 0; }
.pick h3 { font-size: 26px; margin: 0; } .pick .why { margin: 0; color: var(--muted); }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pick.big img { aspect-ratio: 2 / 1; }
.pick-col { display: grid; gap: 16px; }
.pick.small { grid-template-columns: 112px 1fr; align-items: stretch; }
.pick.small img { aspect-ratio: auto; height: 100%; min-height: 112px; }
.pick.small .pick-body { padding: 14px 16px; gap: 6px; } .pick.small h3 { font-size: 18px; }
.pick.small .why { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb { display: inline-flex; gap: 6px; margin-left: auto; }
.fb button { min-height: 40px; }
.fb button.on { background: var(--teal); color: #fff; }
.row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.raincard { display: grid; grid-template-columns: 1fr 240px; overflow: hidden; padding: 0; }
.raincard .body { padding: 24px; display: grid; gap: 10px; align-content: center; }
.raincard img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.raincard h3 { font-size: 26px; margin: 0; }
.coming { display: grid; gap: 10px; align-content: start; }
.dates { display: grid; gap: 8px; }
.date-tile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.date-tile .d { width: 54px; height: 54px; border-radius: 16px; background: var(--sun-bg); color: var(--sun); display: grid; place-items: center; line-height: 1; flex: none; }
.date-tile .d small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; } .date-tile .d b { font-size: 20px; font-family: var(--head); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* Your week (personal calendar) */
.cal-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 4px 12px; flex-wrap: wrap; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-nav button { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.cal-nav button:hover { border-color: var(--teal); color: var(--teal); }
.cal-range { font-size: 14px; color: var(--muted); margin-right: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; touch-action: pan-y; }
.cal-day { display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; min-height: 0; border-radius: 16px; border: 1px solid transparent; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); }
.cal-day small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-day b { font-family: var(--head); font-size: 21px; font-weight: 500; line-height: 1.1; }
.cal-day.today { border-color: var(--teal); } .cal-day.today small { color: var(--teal); font-weight: 700; }
.cal-day.on { background: var(--soft); color: var(--teal); }
.cal-dots { display: flex; gap: 3px; height: 6px; } .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: block; }
.cal-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin-top: 10px; }
.cal-panel h3 { margin: 0 0 6px; }
.cal-sub { margin: 14px 0 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-list { display: grid; gap: 8px; }
.cal-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.cal-main { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.cal-item .kind { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--soft); border-radius: 999px; padding: 3px 8px; flex: none; }
.cal-item a { color: var(--ink); font-weight: 600; } .cal-item b { font-weight: 600; }
.cal-item .meta { font-size: 13px; color: var(--muted); font-weight: 400; }
.cal-sug .cal-item { background: var(--page); border-style: dashed; }
.cal-sug .cal-item a { font-weight: 500; }
.badge-free, .badge-tix { font-size: 10.5px; letter-spacing: .08em; font-weight: 700; border-radius: 6px; padding: 2px 6px; flex: none; }
.badge-free { background: var(--mint-bg); color: var(--mint); } .badge-tix { background: var(--sun-bg); color: #7A5C22; }
.tix { font-size: 12.5px; color: var(--muted); } .tix a { font-weight: 500; color: var(--teal); }
.tool { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; min-height: 44px; position: relative; }
.tool:hover { border-color: var(--teal); }
.tool h3 { font-size: 19px; margin: 0 0 2px; } .tool p { margin: 0; color: var(--muted); font-size: 14px; }
.tool.locked { color: var(--muted); } .tool.locked .lock { position: absolute; right: 14px; top: 14px; color: var(--muted); }
.tool .state { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--teal); font-weight: 600; }
.memstrip { background: var(--cream); border: 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 16px; }
.memstrip h2 { font-size: 28px; margin: 0 0 6px; }
.prints { display: flex; gap: 10px; }
.prints img { width: 92px; height: 92px; object-fit: cover; border: 6px solid #fff; border-bottom-width: 18px; box-shadow: var(--shadow); background: var(--soft); }
.prints img:nth-child(odd) { transform: rotate(-3deg); } .prints img:nth-child(even) { transform: rotate(2.5deg); }
.askcard { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 16px; }
.askcard img { width: 72px; height: 72px; border-radius: 50%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upgrade { display: grid; gap: 14px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.06); }
.plan .amount { font-family: var(--head); font-size: 32px; line-height: 1.05; } .plan .amount small { font-size: 14px; font-family: var(--body); }
.plan .was { text-decoration: line-through; font-size: 13px; color: var(--deep-sub); }
.plan p { margin: 0; color: var(--deep-sub); font-size: 14px; } .plan button { margin-top: auto; }
.badge { display: inline-block; background: var(--sun-bg); color: var(--sun); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin-left: 6px; vertical-align: middle; }
.founding-note { background: var(--sun-bg); color: var(--sun); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.only-phone { display: none; }

/* ---------- The animated Papito card (papito-agent.js) ---------- */
.agent { display: flex; gap: 18px; align-items: center; }
.agent .sp { flex: none; background-repeat: no-repeat; filter: drop-shadow(0 6px 10px rgba(23,45,50,.18)); transition: width .25s ease, height .25s ease; }
.agent .bubble { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.agent .bubble::before { content: ""; position: absolute; left: -9px; top: 18px; border: 8px solid transparent; border-right-color: var(--cream); border-left: 0; }
.agent .agent-body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.agent .agent-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agent .seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.agent .seg button { border: 0; border-radius: 0; padding: 5px 11px; min-height: 36px; font-size: 13px; background: transparent; color: var(--muted); }
.agent .seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.agent .quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.agent .quick a { display: block; text-align: center; padding: 10px 12px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.agent .quick a:hover { background: var(--cream); }
.agent.dash { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; background: linear-gradient(180deg, var(--cream), var(--paper)); }
.agent.dash .sp { margin: 0 auto; }
.agent.dash .bubble { font-size: 17px; }
.agent.dash .bubble::before { display: none; }

/* ---------- Sign in ---------- */
.signin { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1180px; margin: 24px auto 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; min-height: 640px; }
.signin-form { padding: 56px 56px 40px; display: grid; gap: 18px; align-content: start; }
.signin-form h1 { font-size: 46px; line-height: 1.05; margin: 0; }
.signin-form h1 em { font-style: italic; color: var(--teal); }
.signin-form input { min-height: 56px; border-radius: 16px; font-size: 16px; }
.signin-form button.primary { min-height: 56px; font-size: 16px; }
.signin-form .ticks li { font-size: 15px; } .signin-form .ticks img { height: 18px; width: auto; vertical-align: -3px; margin: 0 4px; }
/* Brand rule: the PAPITO wordmark is never cropped. The hero art carries the big letters, so it is
   shown whole (object-fit: contain) on a panel the same cream as the art, never cover-cropped. */
.signin-art { background: #F5ECCF; color: var(--ink); position: relative; padding: 48px; display: grid; align-content: end; overflow: hidden; }
.signin-art .hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.signin-art .float { position: absolute; background: #fff; color: var(--ink); border-radius: 20px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(23,45,50,.22); }
.signin-art .float.pick-sample { left: 36px; top: 56px; width: 280px; display: grid; gap: 4px; }
.signin-art .float.pick-sample .eyebrow { margin: 0; } .signin-art .float.pick-sample b { font-family: var(--head); font-size: 20px; font-weight: 500; }
.signin-art .float.rain-sample { right: 32px; top: 200px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sky); }
.signin-art .tagline { position: relative; font-family: var(--head); font-size: 34px; line-height: 1.15; margin: 0; color: var(--ink); justify-self: start; background: rgba(255,255,255,.72); border-radius: 14px; padding: 6px 14px; }

/* ---------- Tools library ---------- */
.lib-head { margin: 18px 4px 20px; display: grid; gap: 14px; }
.lib-head h1 { font-size: 46px; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-head h1 img { height: 34px; width: auto; }
.lib-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lib-controls .search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.lib-controls .search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lib-controls .search input { padding-left: 46px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; }
.filters button.on { background: var(--soft); border-color: var(--soft); color: var(--teal); font-weight: 600; }
.group { margin: 26px 0 0; display: grid; gap: 12px; }
.group-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.feature { grid-row: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.feature .body { padding: 20px; display: grid; gap: 8px; align-content: start; }
.feature .tag { align-self: start; } .feature h3 { font-size: 26px; margin: 0; } .feature p { margin: 0; color: var(--muted); }
.feature .button { justify-self: start; margin-top: 6px; }
.group-grid .tool { align-self: stretch; }
.unsure { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.unsure img { width: 64px; height: 64px; border-radius: 50%; }

/* ---------- Phone first: everything below 760px ---------- */
@media (max-width: 760px) {
  h1 { font-size: 30px; } h2 { font-size: 22px; }
  main { padding: 4px 16px 32px; }
  .nav, .askbtn, footer.shell .linkish { display: none; }
  .shell-in { min-height: 60px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tab { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px 2px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11.5px; }
  .tab.on { color: var(--teal); font-weight: 600; }
  .tab-ask { margin-top: -26px; }
  .tab .nav-ic { width: 26px; height: 26px; }
  .tab-ask .papito-face { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); background: var(--soft); }
  .card { padding: 18px; border-radius: 22px; } .panel { padding: 20px; border-radius: 26px; }
  .row2 { grid-template-columns: 1fr; }
  .greet { grid-template-columns: 1fr; gap: 10px; margin: 12px 2px 18px; }
  .greet h1 { font-size: 36px; }
  .greet .status { font-size: 15px; }
  .wx { min-width: 0; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 8px; order: -1; }
  .wx .wx-days, .wx .wx-source { display: none; }
  .wx-now .temp { font-size: 20px; font-family: var(--body); } .wx-now .tile { width: 32px; height: 32px; border-radius: 10px; }
  .wx-now { gap: 8px; } .wx-now .eyebrow { margin: 0; }
  .sunday { grid-template-columns: 1fr; gap: 12px; }
  .sunday-head h2 { font-size: 22px; } .sunday-head img { width: 44px; height: 44px; }
  .sunday-head .state { margin-left: 0; }
  .pick-col { display: none; }
  .pick.big img { aspect-ratio: 16 / 9; } .pick h3 { font-size: 22px; }
  .only-phone { display: inline-flex; }
  .row-2 { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .raincard { grid-template-columns: 1fr; } .raincard img { display: none; } .raincard .body { padding: 16px 18px; } .raincard h3 { font-size: 20px; }
  .coming .dates { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .date-tile { flex-direction: column; text-align: center; gap: 6px; font-size: 13px; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tools-grid .tool:nth-child(n+5) { display: none; }
  .cal-head { margin: 22px 4px 10px; } .cal-week { gap: 4px; } .cal-day { padding: 8px 2px 6px; border-radius: 12px; } .cal-day b { font-size: 17px; }
  .cal-panel { padding: 14px; } .cal-item { flex-direction: column; align-items: stretch; gap: 8px; } .cal-item > .button, .cal-item > button { justify-self: start; }
  .tools-grid .tool { padding: 14px; flex-direction: column; gap: 10px; } .tools-grid .tool h3 { font-size: 16px; } .tools-grid .tool p { display: none; }
  .tool { padding: 16px; } .tool h3 { font-size: 17px; }
  .memstrip { grid-template-columns: 1fr; } .prints img { width: 64px; height: 64px; border-width: 4px; border-bottom-width: 12px; }
  .askcard { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .signin { grid-template-columns: 1fr; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; min-height: 0; }
  .signin-form { padding: 28px 20px 24px; } .signin-form h1 { font-size: 36px; }
  /* Phones: the sample cards would sit on top of the art (and the wordmark), so they go; the art
     shows whole with the tagline under it. */
  .signin-art { min-height: 460px; padding: 24px; }
  .signin-art .float.pick-sample, .signin-art .float.rain-sample { display: none; }
  .signin-art .hero { object-position: center 42%; }
  .signin-art .tagline { font-size: 26px; }
  .lib-head h1 { font-size: 32px; } .lib-head h1 img { height: 26px; }
  .group-grid { grid-template-columns: 1fr; } .feature { grid-row: auto; }
  .unsure { grid-template-columns: auto 1fr; } .unsure .button { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 761px) and (max-width: 1040px) {
  .askbtn { min-width: 0; } .askbtn span, .askbtn kbd { display: none; } .askbtn { padding: 0 12px; }
  .nav-pill span { display: none; } .nav-pill { padding: 0 12px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .greet h1 { font-size: 44px; }
  .group-grid { grid-template-columns: 1fr 1fr; } .feature { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- Allergies and dietary needs on a playdate ---------- */
.needs-out { display: grid; gap: 8px; margin: 8px 0; }
.needs-out section { border-radius: 14px; padding: 10px 14px; }
.needs-out h4 { font-family: var(--body); font-size: 15px; margin: 0 0 4px; }
.needs-out ul { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 15px; }
.needs-caution { background: var(--coral-bg); border: 1.5px solid var(--coral); color: #7E2F1B; }
.needs-caution h4 { color: var(--coral); font-weight: 700; }
.needs-caution .needs-names { color: #7E2F1B; opacity: .85; font-size: 13.5px; }
.needs-fine { font-size: 12.5px; margin: 6px 0 0 !important; color: #7E2F1B; }
.needs-plain { background: var(--page); border: 1px solid var(--line); }
.needs-plain h4 { color: var(--ink); font-weight: 600; }
.needs-plain .needs-names { color: var(--muted); font-size: 13.5px; }
.extras.needs { margin-top: 10px; }
.needs-form { display: grid; gap: 14px; }
.needs-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.needs-form legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.needs-other { display: grid; gap: 4px; max-width: 420px; }
.needs-form .msg:empty { display: none; }
.needs-form .chip-check { white-space: nowrap; padding: 7px 14px; }
.needs-form .chip-check input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
