:root {
  --orange: #f2600a;
  --maroon: #4a100a;
  --brick: #9a1a0a;
  --gold: #fbc042;
  --cream: #fbf0d9;
  --ink: #2a120c;
  --muted: #7a5a50;
  --line: #ead8bd;
  --card: #fffaf0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--brick); }
header.top {
  background: var(--maroon);
  color: var(--cream);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
header.top a { color: var(--cream); text-decoration: none; }
header.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
header.top img { width: 36px; height: 36px; border-radius: 50%; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { color: var(--maroon); line-height: 1.2; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--brick); border: 1.5px solid var(--brick); }
.btn.danger { background: var(--brick); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tiles a.card { text-decoration: none; color: var(--ink); }
.tiles a.card:hover { border-color: var(--orange); }
.tiles h3 { margin: 0 0 4px; color: var(--maroon); }
.muted { color: var(--muted); }
.notice { background: #fff3cd; border: 1px solid var(--gold); border-radius: 10px; padding: 12px; }
form label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero img { width: 180px; height: 180px; border-radius: 50%; }
.auth-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
header.top nav.auth-nav { align-items: center; font-size: 15px; flex-wrap: nowrap; }
header.top nav.auth-nav .nav-signup { background: var(--orange); color: #fff; padding: 6px 14px; border-radius: 8px; font-weight: 600; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card h1 { margin-top: 0; }
.auth-switch { margin: 16px 0 0; text-align: center; }
/* Password box with a "Show" eye inside it. */
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 10px; font-size: 18px; line-height: 1; cursor: pointer; opacity: .45; }
.pw-eye.on { opacity: 1; }
.pw-hint { margin: 4px 0 0; }
.forgot { margin: 8px 0 0; text-align: right; font-size: 14px; }
.btn.wide { width: 100%; text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.link-btn { display: block; width: 100%; background: none; border: 0; color: var(--brick); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px; }
.day { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.day .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--maroon); color: var(--gold); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.day.done .num { background: var(--orange); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--orange); color: var(--brick); background: #fff;
  border-radius: 999px; padding: 4px 12px; font-size: 14px; text-decoration: none; cursor: pointer;
}
.chip.active { background: var(--orange); color: #fff; }
/* Admin: team tiers */
.row { display: flex; gap: 8px; align-items: center; }
.row input, .row select { width: auto; margin: 0; }
.table-wrap { overflow-x: auto; }
.tier { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.tier-launch { background: var(--gold); color: var(--maroon); }
.tier-baller { background: var(--orange); color: #fff; }
.tier-sometimer { background: var(--cream); color: var(--brick); border: 1px solid var(--brick); }
.tier-none { background: #eee; color: #666; }
/* Chat */
.chat { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.chat aside a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.chat aside a.active, .chat aside a:hover { background: var(--card); }
/* Chat list: search, pinned, folders, ⋯ menus (sidebar and the My chats page) */
.chat-list { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.chat-list a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.chat-list a.new-chat.active, .chat-list a:hover { background: var(--card); }
.chat-search { margin: 6px 0 8px; }
.chat-search input { padding: 8px 10px; font-size: 14px; }
.cv-row { display: flex; align-items: center; border-radius: 8px; }
.cv-row > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cv-row.active, .cv-row:hover { background: var(--card); }
.cv-row.active > a { font-weight: 600; }
.group-label { margin: 10px 8px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.folder-toggle { flex: 1; min-width: 0; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; color: var(--maroon); padding: 6px 8px; cursor: pointer; overflow-wrap: anywhere; }
.folder .caret { display: inline-block; width: 12px; transition: transform 0.15s; }
.folder.closed .caret { transform: rotate(-90deg); }
.folder-body { padding-left: 14px; }
.menu { position: relative; flex: none; }
.menu summary { list-style: none; cursor: pointer; padding: 2px 10px; border-radius: 6px; color: var(--muted); font-size: 18px; line-height: 1.4; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--line); color: var(--ink); }
.menu-pop { position: absolute; right: 0; top: 100%; z-index: 30; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; box-shadow: 0 8px 24px rgba(74, 16, 10, 0.18); }
.menu-pop form label { margin: 8px 0 4px; font-size: 13px; }
.menu-pop .row input, .menu-pop .row select { flex: 1; min-width: 0; padding: 6px 8px; font-size: 14px; }
.btn.small-btn { padding: 6px 12px; font-size: 14px; }
.new-folder summary { cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--brick); list-style: none; }
.new-folder summary::-webkit-details-marker { display: none; }
.new-folder summary:hover { background: var(--card); }
.new-folder form { padding: 0 8px 8px; }
.new-folder .row input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 14px; }
.chat-hits .hit { padding: 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.chat-hits .snip { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.chats-page .chat-list { font-size: 16px; margin-top: 12px; }
.chats-page .cv-row > a, .chats-page .folder-toggle { padding: 10px 8px; }
.mobile-only { display: none; }
.chat-top { gap: 8px; margin-bottom: 12px; }
.chat-top > .btn { display: inline-flex; align-items: center; justify-content: center; }
.chat-top .chats-btn { flex: 1; text-align: center; font-size: 15px; padding: 10px 12px; }
.chats-btn .count { display: inline-block; margin-left: 6px; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--brick); color: #fff; font-size: 12px; line-height: 20px; }
/* "Pick up where you left off" on Home and the phone chat screen */
.recent-chats { margin: 0 0 16px; padding: 14px 16px; }
.mobile-only > .recent-chats { flex: 1; min-width: 0; }
.chat > section { min-width: 0; }
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.recent-head h2 { margin: 0; font-size: 18px; color: var(--maroon); }
.recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.recent-row:hover { background: #fff; }
.recent-row > .small { flex: none; white-space: nowrap; }
.recent-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#log { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.msg { padding: 12px 14px; border-radius: 14px; max-width: 90%; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--maroon); color: var(--cream); }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
#composer { display: flex; gap: 8px; margin-top: 16px; }
#composer textarea { min-height: 52px; resize: vertical; }
/* Photos and screenshots for Victor */
.photo-btn { flex: 0 0 auto; padding: 0 12px; font-size: 22px; line-height: 1; }
.photo-btn:disabled { opacity: .4; cursor: default; }
.photo-tray { margin: 14px 0 0; }
.composer-hint { margin: 6px 0 0; }
.composer-hint.photo-err { color: var(--brick); }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.msg-photos:last-child { margin-bottom: 0; }
.msg-photos img { max-width: 160px; max-height: 180px; border-radius: 10px; display: block; background: #fff; }
/* "Start a fresh chat" card under a reply (freshchat.ts) */
.fresh-card { align-self: flex-start; max-width: 90%; margin-top: -4px; padding: 10px 12px; border-radius: 12px; background: #fff8e8; border: 1px solid var(--gold); }
.fresh-card p { margin: 0; line-height: 1.4; color: var(--maroon); }
.fresh-face { width: 24px; height: 24px; border-radius: 50%; vertical-align: -6px; margin-right: 6px; }
.fresh-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fresh-from { margin: 0 0 6px; }
/* "Victor doesn't know how you sound yet" above the message box, until Get to Know Me is done */
.gtkm-nudge { display: flex; align-items: flex-start; gap: 2px; margin: 0 0 8px; padding: 8px 6px 8px 10px; border-radius: 12px; background: #fff8e8; border: 1px solid var(--gold); }
.gtkm-nudge p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; color: var(--maroon); }
.gtkm-nudge a { font-weight: 600; white-space: nowrap; }
.gtkm-step { font-weight: 400; }
.gtkm-x { flex: none; width: 28px; height: 28px; margin: -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brick); font-size: 20px; line-height: 1; cursor: pointer; }
.gtkm-x:hover { background: #fbe9c4; }

/* "Want me to remember that?" under a reply */
/* One-tap Copy under each of Victor's replies */
.msg-copy { align-self: flex-start; margin: -6px 0 2px 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--brick); font: 600 13px/1.2 inherit; cursor: pointer; }
.msg-copy:hover { background: var(--card); }
/* Post boxes: each finished post, DM or script in its own box (public/postbox.js) */
.msg.assistant.has-pbox { max-width: 100%; width: 100%; }
.pbox { margin: 10px 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; overflow: hidden; white-space: normal; }
.pbox:last-child { margin-bottom: 2px; }
.pbox:first-child { margin-top: 2px; }
.pbox-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; background: #fdf3e3; border-bottom: 1px solid var(--line); }
.pbox-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.2 system-ui, -apple-system, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--brick); }
.pbox-flash { font-size: 12px; font-weight: 600; color: #2f7d32; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.pbox-flash.on { opacity: 1; }
.pbox-tools { display: flex; flex: none; }
.pbox-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--brick); cursor: pointer; }
.pbox-btn:hover { background: #fbe6c8; }
.pbox-btn.ok { color: #2f7d32; }
.msg.live .pbox-tools { visibility: hidden; }
.pbox-text { padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.pbox-edit { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 0; border-radius: 0; background: #fffdf5; font: inherit; line-height: 1.45; color: var(--ink); resize: vertical; outline: 2px solid var(--gold); outline-offset: -2px; }
.pbox-tip { padding: 6px 14px; font-size: 12px; color: var(--muted); background: #fffdf5; }
.pbox-how { padding: 8px 14px 10px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.35; color: var(--muted); }
.pbox-how b { color: var(--maroon); font-weight: 600; }
.msg-copy.done { color: #2f7d32; border-color: #2f7d32; }
.remember { align-self: flex-start; max-width: 90%; margin-top: -4px; padding: 10px 12px; border-radius: 12px; background: #fff8e8; border: 1px dashed var(--gold); }
.remember.saved { border-style: solid; background: #fdf3dc; }
.remember-note { line-height: 1.4; }
.remember-text { font-weight: 600; }
.remember-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.remember-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px; padding: 0; border-radius: 50%; border: 1.5px solid var(--brick); background: #fff; color: var(--brick); font: italic 700 12px/1 Georgia, serif; cursor: pointer; vertical-align: 2px; }
.remember-info-btn:hover, .remember-info-btn[aria-expanded="true"] { background: var(--brick); color: #fff; }
.remember-info { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--maroon); line-height: 1.45; max-width: 460px; }
.remember-done { margin-top: 6px; color: var(--maroon); }
.chat section.photo-drag { outline: 3px dashed var(--orange); outline-offset: 6px; border-radius: 14px; }
.guide { background: #fff; border-radius: 14px; padding: 8px 20px; border: 1px solid var(--line); }
.guide img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
td, th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; font-size: 14px; }
/* Admin: trends */
.small { font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.bar { background: #f3e6cf; border-radius: 6px; height: 12px; min-width: 60px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.col span { display: block; width: 100%; background: var(--orange); border-radius: 3px 3px 0 0; }
.chg { font-size: 13px; color: var(--muted); }
.chg.up { color: var(--brick); font-weight: 600; }
.chg.down { color: var(--muted); }
tr.worst td { background: #fff3cd; }
.questions li { margin-bottom: 6px; }
.stuck p { margin: 10px 0 2px; }
.stuck ul { margin: 0 0 8px; }
.card h3 { color: var(--maroon); margin: 8px 0; }
.card h3 + p, .card h3 ~ .table-wrap { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
@media (max-width: 640px) {
  .chat { grid-template-columns: 1fr; }
  .chat aside { display: none; }
  .mobile-only { display: flex; }
  .menu-pop { width: min(300px, calc(100vw - 48px)); }
  header.top { flex-wrap: wrap; row-gap: 8px; }
  header.top nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
  header.top nav a { white-space: nowrap; }
  header.top nav.auth-nav { margin-left: auto; width: auto; gap: 12px; }
  .auth-ctas .btn { flex: 1; text-align: center; }
}
/* Test pilot feedback */
.fb-open {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: var(--maroon); color: var(--gold); border: 2px solid var(--gold);
  border-radius: 999px; padding: 6px 14px 6px 6px; font: inherit; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(74, 16, 10, 0.28); cursor: pointer;
}
.fb-open:hover { background: var(--brick); }
.fb-open img { width: 26px; height: 26px; border-radius: 50%; }
dialog.fb {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; border-radius: 16px; padding: 22px; background: var(--card); color: var(--ink);
  border-top: 6px solid var(--orange);
}
dialog.fb::backdrop { background: rgba(42, 18, 12, 0.45); }
dialog.fb h2 { color: var(--maroon); margin: 0 0 6px; }
.fb-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
dialog.fb form { position: relative; }
.fb-label { font-weight: 600; margin: 14px 0 6px; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip input, .fb-stars input { position: absolute; opacity: 0; pointer-events: none; }
.fb-chip span {
  display: inline-block; border: 1px solid var(--orange); color: var(--brick); background: #fff;
  border-radius: 999px; padding: 4px 12px; font-size: 14px; cursor: pointer;
}
.fb-chip input:checked + span { background: var(--orange); color: #fff; }
.fb-chip input:focus-visible + span, .fb-stars input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.fb-stars { display: flex; gap: 4px; }
.fb-stars span { font-size: 28px; color: var(--line); cursor: pointer; line-height: 1; }
.fb-stars:has(input:checked) label:has(input:checked) ~ label span { color: var(--line); }
.fb-stars:has(input:checked) span { color: var(--gold); }
.fb-stars label:hover span { color: var(--gold); }
.fb-err { color: var(--brick); font-weight: 600; }
@media print { .fb-open { display: none; } }
/* Admin: pilot feedback */
.fb-item { border-left: 4px solid var(--orange); }
.fb-item.done { opacity: 0.6; border-left-color: var(--line); }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fb-msg { white-space: pre-wrap; margin: 0 0 8px; }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.summary h2, .summary h3 { color: var(--maroon); }
.fb-shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.fb-shots:empty { display: none; }
.fb-shot { position: relative; }
.fb-shot img, .fb-shots > a img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: #fff; }
.fb-shot button {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--brick); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.fb-add { padding: 6px 14px; font-size: 14px; }
.fb-item .fb-shots > a img { width: 160px; height: 110px; }
dialog.fb.fb-drag { outline: 3px dashed var(--orange); outline-offset: -10px; background: #fff3e6; }

/* Daily usage: a bar instead of numbers. */
.usage p { margin: 8px 0 4px; }
.usage-bar { height: 10px; border-radius: 999px; background: #efe3cc; overflow: hidden; max-width: 360px; }
.usage-bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.usage-plenty span { background: #3a8a4a; }
.usage-busy span { background: var(--gold); }
.usage-quick span { background: var(--orange); }
.usage-done span { background: var(--brick); }
.small { font-size: 13px; }
/* A short note from Victor above or below a chat reply (quick mode, end of the day). */
.msg-note { align-self: flex-start; font-size: 13px; color: var(--brick); background: #fff3cd; border: 1px solid var(--gold); border-radius: 10px; padding: 6px 10px; margin: 4px 0; max-width: 80%; }

/* Save to home screen (Home page) */
.ih-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--maroon); color: var(--cream); border-radius: 14px; padding: 12px 14px; margin: 0 0 18px;
  position: relative;
}
.ih-banner[hidden], .ih [hidden] { display: none; }
.ih-banner img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.ih-banner .ih-text { display: flex; flex-direction: column; flex: 1 1 180px; line-height: 1.3; }
.ih-banner .ih-text .muted { color: #e9cfc0; }
.ih-banner .ih-go { margin: 0; }
.ih-x { background: none; border: 0; color: #e9cfc0; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; position: absolute; top: 2px; right: 6px; }
.ih-banner { padding-right: 30px; }
@media (max-width: 520px) { .ih-banner .ih-go { width: 100%; text-align: center; } }
.ih-app { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ih-app img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 4px 14px rgba(74, 16, 10, 0.25); }
dialog.ih h2 { text-align: center; }
.ih-steps { padding-left: 22px; margin: 12px 0; }
.ih-steps li { margin: 0 0 12px; }
.ih-ico { width: 22px; height: 22px; vertical-align: -5px; color: #0a7aff; }
/* When opened from the home screen, keep clear of the iPhone notch and home bar. */
header.top {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
main { padding-bottom: max(64px, calc(64px + env(safe-area-inset-bottom))); }
.fb-open { bottom: max(16px, env(safe-area-inset-bottom)); }

/* Pilot feedback: "it's handled" controls (admin) and the member's popup. */
.fb-handle { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 4px; }
.fb-handle input[type=text] { width: 100%; max-width: 520px; padding: 6px 10px; font-size: 14px; }
.fb-item.done .fb-handle { flex-direction: row; flex-wrap: wrap; align-items: center; }
dialog.handled-pop { text-align: center; padding: 0; border-top: 0; border: 3px solid var(--gold); animation: handled-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
dialog.handled-pop form { padding: 0 22px 22px; }
dialog.handled-pop::backdrop { background: rgba(42, 18, 12, 0.6); }
.handled-hero {
  position: relative; overflow: hidden; margin: 0 -22px 14px; padding: 22px 22px 18px;
  background: linear-gradient(160deg, var(--brick), var(--maroon) 70%); color: var(--cream);
}
.handled-hero .fb-x { color: var(--cream); z-index: 2; }
.handled-avatar { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; display: block; margin: 0 auto 10px; border: 3px solid var(--gold); }
dialog.handled-pop h2.handled-thanks { position: relative; z-index: 1; color: var(--gold); font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.handled-sub { position: relative; z-index: 1; margin: 0; font-size: 17px; font-weight: 700; color: var(--cream); }
.handled-confetti i {
  position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0;
  animation: handled-fall 2.4s ease-in 0.2s 2 both;
}
.handled-confetti i:nth-child(1) { left: 8%;  background: var(--gold); }
.handled-confetti i:nth-child(2) { left: 20%; background: var(--orange); animation-delay: 0.5s; }
.handled-confetti i:nth-child(3) { left: 33%; background: var(--cream); animation-delay: 0.9s; }
.handled-confetti i:nth-child(4) { left: 46%; background: var(--gold); animation-delay: 0.3s; }
.handled-confetti i:nth-child(5) { left: 60%; background: var(--orange); animation-delay: 1.1s; }
.handled-confetti i:nth-child(6) { left: 72%; background: var(--cream); animation-delay: 0.6s; }
.handled-confetti i:nth-child(7) { left: 84%; background: var(--gold); animation-delay: 0.1s; }
.handled-confetti i:nth-child(8) { left: 93%; background: var(--orange); animation-delay: 0.8s; }
@keyframes handled-in { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes handled-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(190px) rotate(540deg); }
}
@media (max-width: 520px) { dialog.handled-pop h2.handled-thanks { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { dialog.handled-pop, .handled-confetti i { animation: none; } }
.handled-note { text-align: left; margin: 0 0 12px; }
.handled-note blockquote { margin: 0; padding: 10px 12px; background: var(--cream); border-left: 4px solid var(--orange); border-radius: 8px; font-style: italic; }
.handled-reply { margin: 6px 0 0; }
/* "We used your story" thank-you popup (testimonial marked used): the ⚡ power ups callout. */
.thanks-bolt { margin: 4px 0 16px; padding: 12px 14px; background: #fff7e0; border: 2px dashed var(--gold); border-radius: 12px; }
.thanks-bolt p { margin: 0; }
.thanks-bolt .thanks-bolt-big { font-size: 22px; font-weight: 800; color: var(--brick, #9A1A0A); margin-bottom: 4px; }
.stat-of { font-size: 0.55em; font-weight: 600; color: var(--muted); }

/* Testimonials (member page) */
.t-head { display: flex; gap: 16px; align-items: center; }
.t-head img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.t-head h1 { margin: 0 0 4px; }
.t-head p { margin: 0; }
.t-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.t-reward { background: var(--maroon); color: var(--cream); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; line-height: 1.3; }
.t-reward strong { color: var(--gold); font-size: 26px; }
.t-reward.done { background: #3a5a2a; }
.t-reward.mine { background: var(--orange); }
.t-reward.mine strong { color: #fff; }
.t-form { margin-top: 14px; }
.t-form .t-big { margin-top: 0; font-size: 18px; color: var(--maroon); }
.t-hint { margin: 0 0 6px; }
.t-stars span { font-size: 34px; }
.t-stars label { position: relative; margin: 0; }
.t-stars input { width: 1px; height: 1px; }
.t-photo { display: flex; gap: 14px; align-items: center; transition: opacity .2s; }
.t-photo.t-off { opacity: .4; pointer-events: none; }
.t-photo-preview { width: 84px; height: 84px; border-radius: 50%; background: var(--cream); border: 2px dashed var(--orange); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 34px; }
.t-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.t-share label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 6px 0; }
.t-share input, .t-check input { width: auto; margin: 0; }
.t-form .btn[type=submit] { margin-top: 10px; font-size: 17px; }
.t-thanks { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, var(--brick), var(--maroon) 70%); color: var(--cream); border: 3px solid var(--gold); border-radius: 16px; padding: 22px; margin: 0 0 22px; }
.t-thanks img { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); }
.t-thanks h2 { position: relative; color: var(--gold); margin: 8px 0 4px; font-size: 28px; }
.t-thanks .t-earned { position: relative; font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.t-thanks p { position: relative; }
.t-mine { display: flex; gap: 12px; align-items: flex-start; }
.t-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); background: #fff; }
.t-face.big { width: 96px; height: 96px; }
.t-badge { background: var(--gold); color: var(--maroon); font-weight: 700; border-radius: 999px; padding: 0 8px; }
.tile-story { border-color: var(--gold) !important; background: #fff6dc !important; }
.fb-testi { margin: 6px 0 0; }
.fb-testi-thanks { background: #fff3cd; border: 1px solid var(--gold); border-radius: 10px; padding: 10px 12px; }
.powerups-line { margin: 10px 0; }

/* Testimonials (admin) */
.t-item { display: flex; gap: 16px; align-items: flex-start; }
.t-item.used { border-left-color: var(--gold); }
.t-face-link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; flex: none; }
.t-noface { display: grid; place-items: center; font-size: 36px; font-weight: 700; color: var(--maroon); background: var(--cream); }
.t-body { flex: 1; min-width: 0; }
.t-name { margin: 0 0 2px; font-size: 17px; }
.t-quote { font-size: 16px; }
.t-stars-ro { color: var(--gold); letter-spacing: 1px; }
.t-share-private { color: var(--brick); font-weight: 600; }
.t-actions { flex-wrap: wrap; }
.t-public { margin: 4px 0 10px; }
.t-public summary { cursor: pointer; font-weight: 600; color: var(--brick); }
.t-public form { display: grid; gap: 6px; margin-top: 8px; max-width: 640px; }
.t-public textarea { width: 100%; }
.t-actions form { margin: 0; }
.t-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.t-check { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; }
.t-give { flex-wrap: wrap; align-items: flex-end; }
.t-give label { margin: 0; }
.t-dist { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.t-dist-row { display: grid; grid-template-columns: 36px 1fr 30px; gap: 8px; align-items: center; }
.t-dist-bar { height: 12px; background: #efe3cc; border-radius: 999px; overflow: hidden; }
.t-dist-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
@media (max-width: 520px) {
  .t-item { flex-direction: column; }
  .t-head img { width: 56px; height: 56px; }
}

/* "How do you like working with Victor?" popup */
.rate-q { font-size: 19px; font-weight: 700; color: var(--maroon); margin: 4px 0 10px; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.rate-stars button { background: none; border: 0; font-size: 46px; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; transition: transform .12s, color .12s; }
.rate-stars button.on { color: var(--gold); transform: scale(1.08); }
.rate-stars button:disabled { cursor: default; }
.rate-pop textarea { text-align: left; }
.rate-pop label { text-align: left; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; margin-top: 10px; display: block; margin-left: auto; margin-right: auto; }

/* ---------- Referrals: Gift a free week ---------- */
header.top nav a.nav-gift { background: var(--gold); color: var(--maroon); font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tile-gift { border-color: var(--orange) !important; background: #fff1e6 !important; }
.ref-hero { display: flex; gap: 16px; align-items: flex-start; }
.ref-hero img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.ref-hero h1 { margin: 0 0 8px; }
.ref-rewards { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ref-rewards li { background: var(--maroon); color: var(--cream); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; }
.ref-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-buttons .btn { flex: 1 1 180px; text-align: center; }
.ref-link { margin: 12px 0 0; word-break: break-all; }
.ref-link code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.ref-msg { background: #e9f7ec; border: 1px solid #9fd3ab; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-weight: 600; }
.ref-email { margin-top: 14px; background: #fff; }
.ref-email h3 { margin: 0 0 4px; color: var(--maroon); }
.ref-me { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ref-me p { margin: 0 0 6px; }
.ref-earned { font-weight: 700; color: var(--maroon); }
.ref-badge { display: inline-block; background: linear-gradient(135deg, var(--gold), #ffd977); color: var(--maroon); font-weight: 800; border-radius: 999px; padding: 3px 12px; border: 1px solid #e0a52a; }
.ref-badge.small { font-size: 12px; padding: 1px 8px; font-weight: 700; }
.ref-friends { list-style: none; padding: 0; margin: 12px 0 0; }
.ref-friends li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ref-stage { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ref-stage.started { color: #1d7a35; }
.ref-stage.paid { color: var(--brick); }
.ref-board { list-style: none; padding: 0; margin: 10px 0; }
.ref-board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.ref-board li:nth-child(odd) { background: #fff; }
.ref-board li.me { outline: 2px solid var(--orange); }
.ref-rank { width: 32px; text-align: center; font-weight: 800; color: var(--maroon); }
.ref-name { flex: 1; font-weight: 600; }
.ref-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ref-optin .linkish { display: inline; margin: 0; }
.ref-after { margin: 0 0 22px; border: 2px solid var(--orange); }
.ref-after h2 { margin-top: 0; color: var(--maroon); }
.ref-news { background: linear-gradient(160deg, var(--brick), var(--maroon) 70%); color: var(--cream); border: 2px solid var(--gold); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.ref-news p { margin: 4px 0; font-weight: 600; }
.ref-news a, .ref-news .linkish { color: var(--gold); }
.ref-news .linkish { display: inline; margin: 0 0 0 8px; }
.ref-from { display: inline-block; background: var(--gold); color: var(--maroon); font-weight: 800; border-radius: 999px; padding: 4px 14px; margin: 0 0 8px; }
.ref-landing { max-width: 560px; margin: 0 auto; }
.ref-gift { text-align: center; border: 3px solid var(--gold); }
.ref-gift img { display: block; margin: 0 auto 10px; width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--gold); }
.ref-gift h1 { margin: 6px 0 10px; }
.ref-why { list-style: none; padding: 0; text-align: left; margin: 14px auto; max-width: 420px; }
.ref-why li { padding: 6px 0; }
.ref-offer { background: #fff3cd; border-radius: 10px; padding: 10px 12px; }
.ref-table td, .ref-table th { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 14px; }
.ref-settings label { margin-top: 14px; }
.ref-settings input[type=number] { max-width: 120px; display: block; }
@media (max-width: 640px) {
  header.top nav a.nav-gift { order: -1; }
  .ref-hero img { width: 56px; height: 56px; }
  .ref-table { display: block; overflow-x: auto; }
}

/* ---------- Free Profile Fix (/free) ---------- */
.free { max-width: 640px; margin: 0 auto; }
.free-hero h1 { font-size: 32px; margin: 14px 0 10px; }
.free-sub { font-size: 18px; }
.free-friend { background: var(--gold); color: var(--maroon); font-weight: 700; border-radius: 999px; display: inline-block; padding: 4px 14px; margin: 0 0 10px; }
.free-victor { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 8px; }
.free-victor img { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--gold); }
.free-bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 10px 14px; font-size: 17px; }
.free-bubble p { margin: 0; }
.free-promise { list-style: none; padding: 0; margin: 14px 0; }
.free-promise li { margin: 6px 0; font-weight: 600; }
.free-form { margin: 18px 0; border-width: 2px; border-color: var(--gold); }
.free-form fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.free-form label[for], .free-form legend, .free-legend { font-size: 18px; font-weight: 700; color: var(--maroon); margin: 14px 0 2px; padding: 0; display: block; }
.free-form .muted.small { margin: 2px 0 8px; }
.free-count { text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin: 0 !important; }
.free-form:not(.stepped) .free-count { display: none; }
.free-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.free-chip { margin: 0 !important; font-weight: 600 !important; cursor: pointer; }
.free-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.free-chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.free-chip input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.free-chip input:focus-visible + span { outline: 3px solid var(--gold); }
.free-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; margin: 10px 0 !important; }
.free-check input { width: auto; margin-top: 4px; }
.free-oldbio { margin-top: 14px; }
.free-oldbio summary { cursor: pointer; font-weight: 600; color: var(--brick); }
.free-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.free-nav .free-next, .free-nav .free-submit { margin-left: auto; font-size: 18px; padding: 12px 22px; }
.free-form:not(.stepped) .free-next, .free-form:not(.stepped) .free-back { display: none; }
.free-trust { text-align: center; margin: 10px 0 0; }
.free-loading { text-align: center; padding: 48px 16px; }
.free-loading img { border-radius: 50%; box-shadow: 0 0 0 4px var(--gold); animation: free-bob 1.6s ease-in-out infinite; }
.free-loading-line { font-size: 20px; font-weight: 700; color: var(--maroon); margin: 18px 0 8px; }
.free-dots i { display: inline-block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--orange); animation: free-dot 1.2s infinite; }
.free-dots i:nth-child(2) { animation-delay: .2s; }
.free-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes free-bob { 50% { transform: translateY(-8px); } }
@keyframes free-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .free-loading img, .free-dots i { animation: none; } }
.free-foot { text-align: center; margin-top: 28px; }

.free-result .free-victor { margin-bottom: 14px; }
.free-jump { margin: 0 0 14px; }
.free-sec { margin: 16px 0; }
.free-sec h2 { margin: 0 0 2px; color: var(--maroon); font-size: 22px; }
.free-sec h3 { margin: 16px 0 6px; color: var(--maroon); }
.free-sec-bio { border: 2px solid var(--orange); }
.free-text { white-space: pre-wrap; margin: 6px 0; }
.free-copyblock { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.free-copyblock .free-text { margin: 0 0 10px; }
.free-bio { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.free-why { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.free-post + .free-post { border-top: 1px dashed var(--line); margin-top: 16px; }
.free-tomorrow { background: #fff6e3; border-color: var(--gold); }
.free-convo { margin: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.free-convo-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 8px 0 0; }
.free-convo-them, .free-convo-you { white-space: pre-wrap; padding: 10px 14px; border-radius: 16px; max-width: 88%; margin: 0; }
.free-convo-them { background: #ece6dc; align-self: flex-start; border-bottom-left-radius: 4px; }
.free-convo-you { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.free-next-step { background: #fff; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.free-bridge { background: var(--maroon); color: var(--cream); border-radius: 16px; padding: 20px 20px 8px; margin: 22px 0; }
.free-bridge h2 { color: var(--gold); margin: 0 0 8px; }
.free-bridge p { font-size: 17px; }
.free-email { border: 2px solid var(--gold); }
.free-email h2 { margin-top: 0; color: var(--maroon); }
.free-done { border: 2px solid #3d9a5b; background: #f2fbf4; }
.free-mistakes li { margin: 8px 0; }
.free-share { text-align: center; margin: 18px 0; }
.free-share h2 { margin-top: 0; color: var(--maroon); }
.free-share canvas { width: 100%; max-width: 360px; height: auto; border-radius: 14px; box-shadow: 0 6px 24px rgba(74, 16, 10, .18); margin: 8px auto 14px; display: block; }
.free-friend-more .btn { margin: 4px; }
.free [hidden] { display: none !important; }
.free-jump a { font-weight: 700; }
.free-feature-fine { margin: -4px 0 10px 28px; }
.free-quote { margin: 18px 0; padding: 16px 18px; background: var(--cream, #FBF0D9); border-left: 4px solid var(--orange, #F2600A); border-radius: 12px; }
.free-quote blockquote { margin: 4px 0 8px; font-size: 1.05rem; line-height: 1.45; }
.free-quote figcaption { font-weight: 700; color: var(--brick, #9A1A0A); }
.free-quote figcaption::before { content: "– "; }
.free-photo { margin: 8px 0; padding: 10px 12px; background: #fff7e6; border: 1px dashed var(--gold); border-radius: 10px; font-size: 0.95rem; }

/* ---------- Main landing page (/) ---------- */
.home { width: 100vw; margin: -24px calc(50% - 50vw) -64px; overflow-x: hidden; }
.home h2 { text-align: center; color: var(--maroon); font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
.home h3 { color: var(--maroon); margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.home-inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.home-wide { max-width: 980px; }
.home-band { padding: 64px 0; }
.home-cream { background: #fff7e8; }
.home-center { text-align: center; }
.home-above { text-align: center; margin: 0 0 6px; color: var(--muted); }
.home-caps { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 700; }
.home-small { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home-hero { max-width: 820px; margin: 0 auto; padding: 48px 16px 56px; text-align: center; }
.home-eyebrow { color: var(--brick); font-size: 19px; margin: 0; }
.home-hero h1 { font-size: 46px; line-height: 1.08; margin: 12px 0 16px; letter-spacing: -.5px; }
.home-sub { font-size: 19px; max-width: 640px; margin: 0 auto; }
.home-tag { font-weight: 700; color: var(--maroon); margin: 10px 0 0; }
.home-video { max-width: 620px; margin: 28px auto 24px; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(74, 16, 10, .25); background: var(--maroon); aspect-ratio: 16 / 9; position: relative; }
.home-video iframe, .home-video video { width: 100%; height: 100%; border: 0; display: block; }
.home-press { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.home-demo { aspect-ratio: auto; background: linear-gradient(160deg, var(--maroon), var(--brick)); text-align: left; padding: 0 0 16px; }
.home-demo-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--cream); background: rgba(0,0,0,.18); }
.home-demo-top img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.home-demo-chat { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.hd { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 86%; font-size: 15px; line-height: 1.45; opacity: 0; animation: hd-in .5s ease forwards; }
.hd-me { align-self: flex-end; background: var(--gold); color: var(--maroon); border-bottom-right-radius: 4px; }
.hd-v { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.hd:nth-child(1) { animation-delay: .3s; } .hd:nth-child(2) { animation-delay: 1.4s; } .hd:nth-child(3) { animation-delay: 2.6s; } .hd:nth-child(4) { animation-delay: 3.8s; }
@keyframes hd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hd { animation: none; opacity: 1; } }

.home-join { max-width: 620px; margin: 0 auto; }
.home-join-fields { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.home-join input { flex: 1 1 160px; min-width: 0; font-size: 17px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.home-join input:focus { outline: none; border-color: var(--orange); }
.home-join-btn { font-size: 18px; padding: 14px 22px; border-radius: 999px; font-weight: 800; box-shadow: 0 6px 16px rgba(242, 96, 10, .35); }
.home-join .notice { text-align: left; }
.home-join .home-small { text-align: center; }
.home-cta { text-align: center; }
.home-counter { font-weight: 700; color: var(--maroon); margin: 14px 0 0; }
.home-try { margin: 16px 0 0; font-size: 17px; }
.home-try a { font-weight: 700; color: var(--brick); }
.home-joined { max-width: 560px; margin: 0 auto; background: #fff; border: 2px solid var(--gold); border-radius: 18px; padding: 20px; }
.home-joined-head { font-size: 22px; font-weight: 800; color: var(--maroon); margin: 0 0 6px; }
.home-joined p { margin: 0 0 12px; }

.home-dark { background: #140604; color: #f6e8d6; }
.home-dark h2, .home-dark h3 { color: #fff; }
.home-dark .home-center, .home-dark p { color: #e9d6c2; }
.home-glow { background: radial-gradient(ellipse at 15% 0%, rgba(242, 96, 10, .28), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(251, 192, 66, .18), transparent 50%), #140604; }
.home-checks { list-style: none; padding: 0; margin: 28px auto 0; max-width: 620px; }
.home-checks li { position: relative; padding-left: 36px; margin: 0 0 20px; font-size: 17px; }
.home-checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--maroon); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.home-checks strong { color: #fff; display: block; }

.home-steps { list-style: none; padding: 0; margin: 36px 0 0; }
.home-steps li { display: grid; grid-template-columns: 56px 1fr 96px; gap: 16px; align-items: start; margin: 0 0 34px; }
.home-step-n { font-size: 26px; font-weight: 800; color: var(--maroon); border-right: 4px solid var(--orange); padding-right: 8px; line-height: 1; padding-bottom: 50px; }
.home-steps li:nth-child(2) .home-step-n { border-color: var(--brick); }
.home-steps li:nth-child(3) .home-step-n { border-color: var(--gold); }
.home-steps p { margin: 0; color: #5a3a30; }
.home-step-art { width: 96px; height: 80px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(74,16,10,.08); display: grid; place-items: center; font-size: 38px; }

.home-pill { display: inline-block; border: 2px solid var(--orange); border-radius: 999px; padding: 8px 20px; font-weight: 700; color: var(--maroon); margin-bottom: 16px; background: #fff; }
.home-voice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; position: relative; }
.home-voice-avatar { grid-column: 1 / -1; justify-self: center; width: 110px; height: 110px; border-radius: 50%; box-shadow: 0 0 0 5px var(--gold), 0 10px 26px rgba(74,16,10,.25); }
.home-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(74, 16, 10, .07); }
.home-card p { margin: 0; color: #5a3a30; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.home-tile { display: flex; gap: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 20px; }
.home-tile h3 { font-size: 17px; }
.home-tile p { margin: 0; }
.home-tile a { color: var(--gold); }
.home-tile-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--brick)); display: grid; place-items: center; font-size: 21px; }

.home-phone-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.home-phone { flex: none; width: 190px; height: 340px; border-radius: 34px; border: 8px solid #2b2b2b; background: linear-gradient(180deg, #fff7e8, #fde3c4); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; box-shadow: 0 22px 40px rgba(74,16,10,.25); }
.home-phone img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px var(--gold); }
.home-phone p { font-weight: 800; color: var(--maroon); font-size: 19px; line-height: 1.2; margin: 16px 0 10px; }
.home-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin: 0 3px; animation: hd-dot 1.2s infinite; }
.home-dots i:nth-child(2) { animation-delay: .2s; } .home-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes hd-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.home-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.home-chips li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 700; color: var(--maroon); box-shadow: 0 6px 14px rgba(74,16,10,.08); font-size: 15px; white-space: nowrap; }
.home-chips li::first-letter { color: var(--orange); }

.home-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.home-quote { margin: 0; }
.home-quote-who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.home-quote-face, .home-quote-initial { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.home-quote-face { overflow: hidden; display: block; border: 2px solid var(--gold); }
/* Zoom (Admin › Testimonials) grows the photo from its lower middle, so the top edge (hats, badges) is trimmed. */
.home-quote-face img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 80%; }
/* One or two stories: centered cards instead of a half-empty row of three. */
.home-quotes-1 { grid-template-columns: minmax(0, 620px); justify-content: center; }
.home-quotes-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.home-quotes-1 .home-quote blockquote { font-size: 18px; line-height: 1.55; }
.home-quote-initial { background: var(--gold); color: var(--maroon); font-weight: 800; display: grid; place-items: center; font-size: 20px; }
.home-quote-who strong, .home-quote-who .home-small { display: block; margin: 0; }
.home-stars { color: var(--gold); letter-spacing: 1px; }
.home-stars-off { color: var(--line); }
.home-quote blockquote { margin: 0; color: #5a3a30; }

.home-founders { background: linear-gradient(160deg, var(--maroon), #1e0604); }
.home-perks { list-style: none; padding: 0; margin: 22px auto 28px; max-width: 520px; }
.home-perks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.home-perks li::before { content: '⭐'; position: absolute; left: 0; }
.home-founders .home-small { color: #e9d6c2; }

.home-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.home-faq summary { font-weight: 700; color: var(--maroon); cursor: pointer; font-size: 17px; list-style: none; position: relative; padding-right: 26px; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--orange); }
.home-faq details[open] summary::after { content: '–'; }
.home-faq details p { margin-top: 10px; }

.home-final { text-align: center; padding-top: 24px; }
.home-big { font-size: 20px; padding: 16px 34px; border-radius: 999px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 8px 20px rgba(242, 96, 10, .35); }
.home-footer { border-top: 1px solid var(--line); text-align: center; padding: 30px 16px 90px; }
.home-footer-brand { font-weight: 800; color: var(--maroon); font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; }
.home-footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.home-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; }
.home-footer-links a { color: var(--ink); text-decoration: none; }
.home-sticky { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; text-align: center; font-size: 17px; font-weight: 800; padding: 14px; border-radius: 999px; box-shadow: 0 8px 22px rgba(74,16,10,.35); }
.home-sticky[hidden] { display: none; }
@media (min-width: 761px) { .home-sticky { display: none !important; } }

@media (max-width: 760px) {
  .home-hero { padding-top: 30px; }
  .home-hero h1 { font-size: 33px; }
  .home-eyebrow { font-size: 16px; }
  .home-sub { font-size: 17px; }
  .home h2 { font-size: 25px; }
  .home-band { padding: 48px 0; }
  .home-join-fields { flex-direction: column; }
  .home-join input, .home-join-btn { flex: none; width: 100%; }
  .home-steps li { grid-template-columns: 44px 1fr; }
  .home-step-art { display: none; }
  .home-step-n { font-size: 22px; }
  .home-voice, .home-grid, .home-quotes { grid-template-columns: 1fr; }
  .home-phone-wrap { flex-direction: column; }
  .home-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .home-chips li { font-size: 14px; padding: 7px 11px; }
  .home-chips-r { order: 3; }
}
body:has(.home) { overflow-x: hidden; }
/* Service Agreement + Privacy */
.terms-agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.terms-agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--orange); }
.legal h1 { margin-top: 18px; }
.legal h2 { margin-top: 28px; font-size: 19px; }
footer.site-foot { max-width: 860px; margin: -40px auto 0; padding: 0 16px 32px; display: flex; gap: 18px; justify-content: center; font-size: 13px; }
footer.site-foot a { color: inherit; opacity: .6; }

/* Field Guide download */
.guide-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.guide-keep .muted { font-size: 13px; }
body.guide-print { max-width: 820px; margin: 0 auto; padding: 16px; }
.guide-print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.guide-print-bar .muted { font-size: 13px; }
.guide-print-cover { text-align: center; padding: 28px 12px; border: 2px solid var(--orange); border-radius: 14px; margin-bottom: 18px; }
.guide-print-owner { font-weight: 700; font-size: 17px; }
@media print {
  .guide-print-bar { display: none; }
  body.guide-print { padding: 0; max-width: none; }
  body.guide-print .guide { border: 0; padding: 0; }
  .guide-print-cover { page-break-after: always; border: 0; padding-top: 30vh; }
  body.guide-print { background: #fff; }
  @page { margin: 18mm 14mm 16mm; }
}
.guide-ask { margin: 22px 0 30px; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--cream, #fbf0d9); border-radius: 8px; font-weight: 700; break-inside: avoid; }
.guide-ask a { color: var(--brick, #9a1a0a); text-decoration: none; }
.guide-ask span { font-weight: 400; font-size: 12px; opacity: .7; }
.guide-print-victor { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 5px solid var(--gold, #fbc042); box-shadow: 0 6px 24px rgba(74, 16, 10, .25); }
@media print { .guide-print-cover { padding-top: 14vh; } }
.guide-print-quote { margin: 26px auto 30px; max-width: 560px; padding: 0 12px; border: 0; font-size: 22px; line-height: 1.35; color: var(--maroon, #4a100a); }
.guide-print-quote p { margin: 0 0 12px; }
.guide-print-quote p:first-child::before { content: "“"; color: var(--orange, #f2600a); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.guide-print-quote strong { font-size: 1.12em; color: var(--brick, #9a1a0a); }
.guide-print-quote cite { display: block; margin-top: 8px; font-size: 15px; font-style: normal; font-weight: 700; color: var(--orange, #f2600a); letter-spacing: .04em; }
.guide-print-quote cite::before { content: "— "; }
@media print { .guide-print-cover { padding-top: 8vh; } }
body:has(.home) footer.site-foot { display: none; }

/* ---------- Team plans for leaders (/teams, /team) ---------- */
.home-leaders .home-perks li { color: var(--ink); border-bottom: 1px solid var(--line); padding-left: 0; }
.home-leaders .home-perks li::before { content: none; }
.home-join-team { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; margin: 10px 0 0; }
.home-join-team .check { margin: 0; font-weight: 600; font-size: 15px; align-items: center; }
.home-join-team .check input { margin-top: 0; }
.home-team-size { display: none; width: auto; max-width: 220px; margin: 0; }
.home-join-team:has(input[type=checkbox]:checked) .home-team-size { display: inline-block; }
.teams { max-width: 980px; margin: 0 auto; }
.teams h2 { color: var(--maroon); margin-top: 36px; }
.teams-hero { text-align: center; padding: 18px 0 6px; }
.teams-hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; color: var(--maroon); margin: 6px auto 12px; max-width: 760px; }
.teams-avatar { width: 84px; height: 84px; border-radius: 50%; display: block; margin: 0 auto 8px; }
.teams-above { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--orange); font-size: 13px; margin: 0; }
.teams-sub { font-size: 18px; max-width: 680px; margin: 0 auto 14px; color: #5a3a30; }
.teams-pill { display: inline-block; background: var(--maroon); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.teams-soon { max-width: 680px; margin: 16px auto 0; text-align: left; }
.teams-bundles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teams-bundle { text-align: center; position: relative; display: flex; flex-direction: column; }
.teams-bundle h3 { font-size: 24px; margin: 6px 0 0; }
.teams-bundle .btn { margin-top: auto; }
.teams-popular { border: 2px solid var(--orange); }
.teams-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 12px; margin: 0; white-space: nowrap; }
.teams-price { font-size: 30px; font-weight: 800; color: var(--maroon); margin: 10px 0 0; }
.teams-price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.teams-options { margin-top: 20px; }
.teams-options h2 { margin-top: 0; font-size: 21px; }
.teams-faq details { margin-bottom: 10px; }
.teams-faq summary { font-weight: 700; cursor: pointer; color: var(--maroon); }
.teams-faq p { margin: 10px 0 0; }
.teams-form-page { max-width: 620px; }
.teams-thanks { max-width: 620px; text-align: center; }
.teams-thanks .card { padding: 26px; }
.teams-code { font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--maroon); margin: 4px 0 10px; }
.teams-big { font-size: 30px; font-weight: 800; color: var(--maroon); margin: 4px 0; }
.teams-big span { font-size: 15px; font-weight: 600; color: var(--muted); }
.teams-invite textarea { font-size: 15px; }
.teams-invite .row { flex-wrap: wrap; margin-top: 8px; }
.team-page .tiles .card p { margin: 0 0 4px; }
.team-card { margin-top: 18px; }
.team-card h3 { margin-top: 0; }
@media (max-width: 860px) { .teams-bundles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .teams-bundles { grid-template-columns: 1fr; } .teams-tag { top: -10px; } }
.team-banner { display: inline-block; background: #fff3e8; border: 1px solid #f6c9a6; color: var(--maroon); border-radius: 999px; padding: 6px 14px; margin: -4px 0 14px; }
a.team-home { display: block; text-decoration: none; color: var(--ink); margin: 0 0 16px; }
a.team-home:hover { border-color: var(--orange); }
.home-join .home-join-team .check { display: inline-flex; flex-direction: row; gap: 8px; width: auto; white-space: nowrap; }
.home-join .home-join-team .check input { flex: none; width: 18px; height: 18px; padding: 0; margin: 0; }
.home-join .home-join-team .home-team-size { flex: 0 1 220px; font-size: 15px; padding: 8px 12px; }
/* Admin > All users: AI usage per member */
.usage-grid { border-collapse: collapse; margin: 0; width: auto; font-size: 14px; }
.usage-grid th, .usage-grid td { padding: 1px 8px 1px 0; border: 0; white-space: nowrap; text-align: left; font-weight: 400; background: none; }
.usage-grid th { color: var(--muted, #7a6a5f); }
.usage-grid .ug-cost { font-weight: 700; text-align: right; color: var(--maroon); }
.usage-total h3 { margin-bottom: 8px; }
.usage-total-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.usage-total-row > div { display: flex; flex-direction: column; }
.usage-total-row strong { font-size: 24px; color: var(--maroon); }
.usage-total .small { font-size: 13px; }
@media (max-width: 640px) {
  .usage-total-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Each member becomes a card instead of a wide row. */
  .users-table, .users-table tbody, .users-table > tr, .users-table > tbody > tr, .users-table > tbody > tr > td, .users-table > tr > td { display: block; width: 100%; }
  .users-table > tr:first-child, .users-table > tbody > tr:first-child { display: none; }
  .users-table > tr, .users-table > tbody > tr { border-bottom: 1px solid rgba(74, 16, 10, 0.15); padding: 10px 0; }
  .users-table > tr > td, .users-table > tbody > tr > td { border: 0; padding: 3px 0; }
  .users-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #7a6a5f); }
  .users-table td[data-label="Signed up"], .users-table td[data-label="Last active"], .users-table td[data-label="Chats"] { display: inline-block; width: auto; margin-right: 18px; }
}

/* /teams leader form: first + last name side by side */
.teams-apply-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teams-apply-names > div { min-width: 0; }
.teams-apply-names input { width: 100%; box-sizing: border-box; }

/* January founders: badge, account offer, DM Scripts Vault */
.founder-badge { display: inline-block; background: #4A100A; color: #FBC042; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 14px; margin: 0 0 8px; }
.founder-line { margin: 8px 0 12px; }
.founder-offer ul { margin: 6px 0 0 18px; padding: 0; }
.founder-offer li { margin: 0 0 4px; }
.tile-vault { border-color: var(--gold, #FBC042) !important; background: #fff8ea !important; }
.vault-intro p { margin: 0 0 8px; }
.vault-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.vault-jump .chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #F3DDB5; text-decoration: none; font-size: 14px; }
.vault-card h3 { margin: 0 0 4px; }
.vault-msg { margin: 10px 0; padding: 12px 16px; border-left: 4px solid #FBC042; background: #FFF8EA; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.vault-swap { background: #FBC04255; border-radius: 4px; padding: 0 2px; }
.vault-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vault-draft { border-style: dashed !important; }
.ava-q blockquote { margin: 6px 0 12px; padding: 10px 14px; border-left: 4px solid #FBC042; background: #FFF8EA; white-space: pre-wrap; }
/* Red count: Admin button + customer-response items on the Admin page (see admininbox.ts). */
.badge-red { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: #e11d1d; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 2px; box-sizing: border-box; }
header.top nav a.nav-admin { position: relative; }
.needs-you { border-left: 4px solid #e11d1d; }
.needs-you .needs-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 600; color: var(--maroon); text-decoration: none; }
.needs-you .needs-item .badge-red { margin-left: 0; }
/* Loyalty power ups (loyalty.ts) */
.loyalty-news .loyalty-title { font-size: 1.1em; font-weight: 800; color: var(--gold); }
.loyalty-news .loyalty-body { font-weight: 500; }
.loyalty-line { margin: 10px 0; }
.loyalty-pitch { background: var(--cream); border-left: 4px solid var(--orange); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.loyalty-table { border-collapse: collapse; margin: 8px 0 12px; font-size: 0.95em; }
.loyalty-table th, .loyalty-table td { padding: 4px 10px; border-bottom: 1px solid rgba(0,0,0,0.1); text-align: center; }
.loyalty-table td:first-child, .loyalty-table th:first-child { text-align: left; }

/* My 30-day plan (/plan) */
.tile-plan { border-color: var(--orange) !important; background: #fff4e8 !important; }
.plan-intro p { margin: 0 0 8px; }
.plan-intro p:last-child { margin-bottom: 0; }
.plan-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.plan-form legend { font-weight: 700; color: var(--maroon); margin-bottom: 8px; }
.plan-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-opt { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; }
.plan-opt input { margin: 0; accent-color: var(--orange); }
.plan-opt:has(input:checked) { border-color: var(--orange); background: #fff1e6; font-weight: 600; }
.plan-progress { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; }
.plan-bar { flex: 1; height: 10px; background: #f3e3c8; border-radius: 999px; overflow: hidden; }
.plan-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.plan-week { margin: 14px 0; }
.plan-week > summary { cursor: pointer; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; list-style: none; }
.plan-week > summary::-webkit-details-marker { display: none; }
.plan-week > summary::before { content: '▸ '; color: var(--orange); }
.plan-week[open] > summary::before { content: '▾ '; }
.plan-week[open] > summary { margin-bottom: 10px; }
.plan-week-name { font-weight: 700; color: var(--maroon); }
.plan-day { margin-bottom: 10px; }
.plan-day.today { border: 2px solid var(--orange); }
.plan-day.done { opacity: 0.75; }
.plan-day-head { display: flex; gap: 12px; align-items: flex-start; }
.plan-day-head .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--orange); color: var(--maroon); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.plan-day.done .num { background: var(--orange); color: #fff; }
.plan-title { color: var(--maroon); font-size: 17px; }
.plan-today-tag { color: var(--orange); }
.plan-idea { margin: 8px 0; }
.plan-day p.small { margin: 4px 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.plan-actions form { margin: 0; }
.plan-rebuild { margin-top: 28px; }
.plan-note-label { display: block; font-weight: 700; color: var(--maroon); margin: 4px 0 6px; }
.plan-form textarea, .plan-adjust textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.plan-adjust { margin-top: 24px; border-color: var(--orange); }
.plan-adjust h2 { margin: 0 0 6px; color: var(--maroon); font-size: 20px; }
.plan-adjust .chips { margin: 4px 0 10px; }
.plan-adjust .chip { text-decoration: none; }
.plan30-perk { font-weight: 600; color: var(--maroon); font-size: 15px; }
.plan30-tease { display: block; text-decoration: none; color: var(--ink); margin: 16px 0; }
.plan-sample { border: 1.5px dashed var(--orange); border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: #fff; }
.plan-sample-day { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan-sample-day .num { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--maroon); font-size: 14px; }
.plan-sample-more { margin: 8px 0 0; }

/* Power up packs (/powerups) */
.packs .pack { position: relative; text-align: center; }
.packs .pack h3 { font-size: 28px; margin: 6px 0 2px; }
.pack-price { margin: 0 0 4px; font-size: 20px; }
.pack-popular { border: 2px solid var(--orange); }
.pack-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.powerups-balance { font-size: 18px; margin: 0 0 6px; }
.home-greet { text-wrap: balance; }

/* Profile photo (src/pages/profilephoto.tsx) */
.face { display: inline-block; border-radius: 50%; object-fit: cover; flex: none; background: #fff; vertical-align: middle; }
.face-empty { display: inline-flex; align-items: center; justify-content: center; background: #fff3dc; border: 2px dashed var(--gold); box-sizing: border-box; }
.pp-card { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pp-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--maroon); }
.pp-card .pp-body p { margin: 0 0 10px; }
.pp-face-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.pp-face-btn .face { box-shadow: 0 0 0 3px var(--gold); }
.pp-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.pp-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-btns form { margin: 0; }
.pp-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(30, 8, 4, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pp-modal[hidden] { display: none; }
.pp-sheet { background: var(--cream); border-radius: 18px; padding: 18px; width: 100%; max-width: 380px; text-align: center; }
.pp-sheet h2 { margin: 0 0 2px; color: var(--maroon); }
.pp-sheet p { margin: 0 0 12px; }
.pp-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #222; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pp-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.pp-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); pointer-events: none; }
.pp-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 14px; }
.pp-zoom input { flex: 1; }
.pp-end { justify-content: flex-end; }
body.pp-lock { overflow: hidden; }
/* Top menu: their face beside Account */
header.top nav a.nav-me { display: inline-flex; align-items: center; gap: 6px; }
header.top nav a.nav-me img.face { width: 22px; height: 22px; box-shadow: 0 0 0 1.5px var(--gold); }
/* Their face beside their own chat bubbles */
#log.has-face .msg.user { position: relative; margin-right: 38px; }
#log.has-face .msg.user::after { content: ''; position: absolute; right: -38px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff var(--face) center / cover no-repeat; box-shadow: 0 0 0 1.5px var(--gold); }
/* Home headline with their face */
.home-me { display: flex; align-items: center; gap: 14px; }
.home-me h1 { margin: 0; }
.home-me-face { flex: none; border-radius: 50%; text-decoration: none; }
.home-me-face .face { box-shadow: 0 0 0 3px var(--gold); }
.home-me + * { margin-top: 16px; }

.plan-start-now { margin-top: 1rem; padding: 1rem; border: 2px solid #F2600A; border-radius: 12px; background: #FFF7EC; }
.plan-start-now p { margin-top: 0; }

/* Standard vs Pro (Nov 13): what each plan card adds, and the Vault's Pro extras */
.plan-perks { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; color: var(--maroon); }
.plan-perks li { margin: 4px 0; }
.pro-tag { display: inline-block; background: var(--gold); color: var(--maroon); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.vault-locked { opacity: .75; border-style: dashed; }
.vault-locked h3 { margin-bottom: 4px; }
.ava-pro { display: inline-block; background: var(--gold); color: var(--maroon); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }

/* ⚡ power up chip in the header (every member page). Small on purpose; pops "+N" when new ones land. */
header.top a.pu-chip { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 2px 9px 2px 6px; border-radius: 999px; background: rgba(251, 192, 66, 0.14); color: var(--gold); font-size: 13px; font-weight: 800; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--gold); }
header.top a.pu-chip .pu-bolt { font-size: 12px; }
header.top a.pu-chip.pu-zero { background: transparent; color: rgba(251, 240, 217, 0.75); box-shadow: inset 0 0 0 1.5px rgba(251, 192, 66, 0.45); }
header.top a.pu-chip .pu-gain { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); color: var(--gold); font-size: 13px; font-weight: 800; pointer-events: none; text-shadow: 0 1px 2px rgba(74, 16, 10, 0.6); animation: pu-float 1.8s ease-out 0.3s both; }
header.top a.pu-chip.pu-up { animation: pu-pop 0.9s ease-out 0.2s both; }
header.top a.pu-chip.pu-spend { animation: pu-spend 0.5s ease-out; }
@keyframes pu-pop { 0% { transform: scale(1); } 30% { transform: scale(1.35); background: var(--gold); color: var(--maroon); box-shadow: 0 0 0 6px rgba(251, 192, 66, 0.4); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes pu-float { 0% { opacity: 0; transform: translate(-50%, 4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes pu-spend { 0% { transform: scale(1); } 40% { transform: scale(0.85); } 100% { transform: scale(1); } }
@media (max-width: 640px) {
  header.top a.pu-chip { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { header.top a.pu-chip, header.top a.pu-chip .pu-gain { animation: none; } header.top a.pu-chip .pu-gain { display: none; } }

/* ✅ Daily check-in card (Home, Scoreboard) and 📊 Scoreboard (Nov 14) */
.checkin { margin: 16px 0; border: 2px solid var(--gold); }
.checkin .ci-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--maroon); font-size: 17px; }
.checkin .ci-streak { background: var(--maroon); color: var(--gold); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.checkin .ci-task { margin: 6px 0 10px; }
.ci-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 6px; align-items: center; }
.ci-dot { line-height: 1; aspect-ratio: 1; max-height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; }
.ci-dot.ci-on { background: var(--orange); border-color: var(--orange); }
.ci-dot.ci-today { border: 2px dashed var(--orange); }
.ci-dot.ci-yesterday { border: 2px dashed var(--muted); color: var(--muted); }
.ci-dot.ci-prize { border-radius: 12px; font-size: 11px; color: var(--maroon); background: #fff6dc; border-color: var(--gold); }
.ci-dot.ci-prize.ci-on { background: var(--gold); border-color: var(--gold); color: var(--maroon); }
.ci-prizes { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; color: var(--maroon); }
.ci-btn { width: 100%; font-size: 18px; padding: 13px 18px; }
.ci-why { margin: 8px 0 0; }
.ci-done { margin: 8px 0 0; font-weight: 600; color: var(--maroon); }
.ci-yesterday { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ci-yesterday .linkish { display: inline; margin: 0; color: var(--brick); font-weight: 700; }
.ci-reset { background: #fff3cd; border-radius: 10px; padding: 8px 10px; }
.ci-links { margin: 10px 0 0; }
.checkin.ci-won { background: linear-gradient(160deg, #fff6dc, var(--card) 60%); animation: ci-glow 1.6s ease-out 0.2s both; }
.ci-celebrate .ci-big { font-size: 21px; font-weight: 800; color: var(--maroon); margin: 8px 0 4px; line-height: 1.25; }
.ci-celebrate p.small { margin: 0 0 6px; }
@keyframes ci-glow { 0% { box-shadow: 0 0 0 0 rgba(251, 192, 66, 0.9); } 100% { box-shadow: 0 0 0 18px rgba(251, 192, 66, 0); } }
@media (prefers-reduced-motion: reduce) { .checkin.ci-won { animation: none; } }

.sb-form, .sb-week { margin-top: 16px; }
.sb-dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sb-dayhead a { white-space: nowrap; flex: none; }
.sb-dayhead h2 { margin: 0; font-size: 19px; color: var(--maroon); }
.sb-sub { margin: 16px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sb-row:last-of-type { border-bottom: 0; }
form .sb-label { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
.sb-name { min-width: 0; }
.sb-goal { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 1px 8px; }
.sb-row.hit .sb-goal { background: var(--orange); color: #fff; }
.sb-row.hit .sb-goal::after { content: ' ✓'; }
.sb-ctrl { display: flex; align-items: center; gap: 6px; flex: none; }
.sb-ctrl input { width: 58px; text-align: center; padding: 6px 4px; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.sb-ctrl input::-webkit-outer-spin-button, .sb-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sb-step { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--orange); background: #fff; color: var(--orange); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.sb-step[data-step='1'] { background: var(--orange); color: #fff; }
.sb-save { margin: 14px 0 0; }
.sb-form.sb-live .sb-save .btn { display: none; }
.sb-wrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; align-items: center; gap: 10px; margin: 8px 0; font-size: 15px; }
.sb-bar { height: 10px; background: var(--cream); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.sb-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.sb-wnum { font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-results { margin-top: 10px; }
.sb-launch { margin: 12px 0 0; }
a.sb-launch-card { display: block; margin-top: 14px; text-decoration: none; color: var(--ink); border: 2px solid var(--gold); }
/* ⚡ Launch bonus (launchreward.tsx): banner on the launch page, Home tile line, and the big "You did it!" popup. */
.launch-bonus { border: 2px solid var(--gold); background: linear-gradient(160deg, #fff7e0, #fff 70%); }
.launch-bonus p { margin: 0 0 6px; }
.launch-bonus .launch-bonus-big { font-size: 19px; font-weight: 800; color: var(--brick); line-height: 1.3; }
.launch-bonus-won { background: linear-gradient(160deg, #fff1c2, #fff7e0 70%); }
.launch-pips { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.launch-pips span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #f3e6cf; color: var(--muted); }
.launch-pips span.on { background: var(--orange); color: #fff; }
.launch-pips .launch-pips-prize { width: auto; padding: 0 10px; border-radius: 14px; background: var(--maroon); color: var(--gold); font-weight: 800; }
.launch-pips-label { margin: 0 !important; }
.launch-bonus-tile { color: var(--brick); font-weight: 700; }
dialog.launch-pop { border-width: 4px; }
.launch-pop-bolt { margin: 6px 0 16px; padding: 14px; background: #fff7e0; border: 2px dashed var(--gold); border-radius: 14px; }
.launch-pop-bolt p { margin: 0; }
.launch-pop-count { font-size: 56px; line-height: 1; font-weight: 900; color: var(--orange); text-shadow: 0 2px 0 var(--gold); font-variant-numeric: tabular-nums; }
.launch-pop-count.done { animation: launch-thump 0.5s ease-out both; }
.launch-pop-label { font-size: 20px; font-weight: 800; color: var(--brick); margin: 2px 0 8px !important; }
.launch-pop-bolt .small { margin-top: 6px; }
.launch-pop-plan { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fdeee4; border: 1px solid var(--orange); }
.launch-pop-plan p { margin: 0 0 4px; }
.launch-pop-now { margin: 12px 0 0; }
.launch-confetti i:nth-child(9) { left: 14%; background: var(--orange); animation-delay: 1.4s; }
.launch-confetti i:nth-child(10) { left: 40%; background: var(--cream); animation-delay: 1.6s; }
.launch-confetti i:nth-child(11) { left: 66%; background: var(--gold); animation-delay: 1.3s; }
.launch-confetti i:nth-child(12) { left: 88%; background: var(--cream); animation-delay: 1.7s; }
dialog.launch-pop .launch-confetti i { animation-iteration-count: 3; }
@keyframes launch-thump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .launch-pop-count.done { animation: none; } }

/* ---------- Free "What do I say back?" tool (/dm-reply) and the /learn guides ---------- */
.reply-form .free-legend { margin-top: 4px; }
.reply-form textarea, .reply-form input[type=text], .reply-form input:not([type]) { margin-bottom: 14px; }
.reply-form .free-chips { margin-bottom: 16px; }
.reply-form .btn.wide { margin-top: 14px; }
.reply-said { margin: 0 0 14px; }
.reply-join { margin-top: 18px; }
.reply-email-ask { background: var(--cream, #fbf0d9); border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.reply-email-ask p { margin: 0 0 6px; }
.reply-join h2 { margin-top: 0; }
.free-again { text-align: center; margin: 18px 0; }
.reply-tag { display: inline-block; background: var(--cream, #fbf0d9); border-radius: 999px; padding: 2px 10px; margin: 2px 6px 2px 0; }
.learn-links { margin: 28px 0 10px; }
.learn-links ul { padding-left: 20px; margin: 6px 0; }
.learn-links li { margin: 6px 0; }
.learn-list { display: grid; gap: 12px; margin: 18px 0; }
.learn-card { display: block; text-decoration: none; color: inherit; }
.learn-card h2 { margin: 0 0 6px; color: var(--maroon); font-size: 19px; }
.learn-card p { margin: 0; }
.learn-article h1 { font-size: 30px; line-height: 1.15; margin: 6px 0 10px; color: var(--maroon); }
.learn-article h2 { margin-top: 28px; color: var(--maroon); }
.learn-article h3 { font-size: 15px; margin: 16px 0 6px; }
.learn-crumb { margin: 10px 0 0; }
.learn-by { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.learn-by img { border-radius: 50%; }
.learn-lead { font-size: 18px; }
.learn-cta { display: block; text-decoration: none; color: inherit; border: 2px solid var(--orange); margin: 20px 0; }
.learn-example { margin: 0 0 6px; }
.learn-faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.learn-faq summary { font-weight: 700; cursor: pointer; }
.learn-faq p { margin: 8px 0 0; }
.learn-end { text-align: center; }
.reply-share { margin-top: 18px; text-align: center; }
.reply-share h2 { margin-top: 0; }

/* Text messages: phone box + "Text me" consent (src/pages/sms.tsx) */
.sms-optin { margin: 12px 0; text-align: left; }
.sms-optin > label { display: block; font-weight: 600; margin-bottom: 4px; }
.sms-optin input[type='tel'] { max-width: 260px; }
.sms-check { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 8px; font-weight: 400 !important; }
.sms-check a { color: inherit; text-decoration: underline; }
.home-sms { max-width: 560px; margin: 12px auto 0; }
.sms-optin .sms-check { display: flex !important; gap: 10px; align-items: flex-start; text-align: left; margin: 8px 0 0 !important; }
.sms-optin .sms-check input { width: auto; flex: none; margin-top: 3px; }

/* Admin home: free tools folder */
.tools-folder { margin: 16px 0; }
.tools-folder > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tools-folder > summary::-webkit-details-marker { display: none; }
.tools-folder-arrow { display: inline-block; transition: transform .15s; }
.tools-folder[open] .tools-folder-arrow { transform: rotate(180deg); }
.tools-folder-list { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 12px 0 0 14px; padding-left: 14px; border-left: 2px solid var(--line); }

/* Team join page (/join): the sign-up box in the hero, and the real prices */
.home-team-form { text-align: left; margin-top: 18px; }
.home-team-form h2 { margin-top: 0; text-align: left; }
#team-code { text-transform: uppercase; letter-spacing: .04em; }
.home-price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 720px; margin: 22px auto; }
.home-price { text-align: left; }
.home-price h3 { margin: 0 0 4px; color: var(--maroon); }
.home-price .home-price-amt { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.home-price .home-price-who { font-weight: 700; margin-bottom: 10px; }
.home-price ul { margin: 10px 0 0; padding-left: 0; list-style: none; color: #5a3a30; }
.home-price li { padding: 3px 0; }
.home-you-pay { text-align: center; font-size: 28px; font-weight: 800; color: var(--gold, #FBC042); margin: 8px 0 4px; }
.home-team-prices .home-cta { margin-top: 18px; }

/* Monthly / yearly choice on the plan cards (yearly plans, Nov 2026) */
.billing-choice { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.billing-choice label { display: block; padding: 10px 12px; border: 1px solid rgba(74, 16, 10, 0.18); border-radius: 10px; cursor: pointer; color: var(--maroon); }
.billing-choice label:has(input:checked) { border-color: var(--orange, #F2600A); background: #FFF8EA; }
.billing-choice input[type="radio"] { display: inline-block; width: auto; min-height: 0; padding: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: #F2600A; }
.billing-choice-note { display: block; margin: 4px 0 0 24px; }
.save-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #FBC042; color: #4A100A; font-size: 12px; font-weight: 700; }
.yearly-switch h3 { margin-top: 0; }

/* Admin: one member, opened from All users */
.ut-open { color: inherit; text-decoration: none; display: inline-block; }
.ut-open strong { color: var(--brick); text-decoration: underline; }
.ut-actions { white-space: nowrap; }
.ut-actions form { display: inline; margin-left: 6px; }
.member-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.gtk-session + .gtk-session { border-top: 1px solid rgba(74, 16, 10, 0.15); margin-top: 16px; padding-top: 4px; }
.gtk-qa { padding-left: 22px; }
.gtk-qa li { margin: 0 0 14px; }
.gtk-q { font-weight: 600; color: var(--maroon); margin-bottom: 4px; }
.gtk-qa .member-text { background: rgba(251, 192, 66, 0.15); border-left: 3px solid var(--gold, #FBC042); padding: 6px 10px; border-radius: 6px; }
.gtk-msg { margin: 10px 0; padding: 8px 10px; border-radius: 8px; background: rgba(74, 16, 10, 0.04); }
.gtk-msg.gtk-them { background: rgba(251, 192, 66, 0.15); }
.gtk-note { margin: 12px 0; }

/* "No funnel, no Victor": the funnel box (Home, Account, /funnel) and Admin > Team funnels */
.funnel-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.funnel-input input { border: 0; border-radius: 0; min-width: 0; flex: 1 1 auto; }
.funnel-suffix { display: flex; align-items: center; padding: 0 10px; background: rgba(74, 16, 10, 0.05); color: var(--muted); font-size: 14px; white-space: nowrap; }
.funnel-form .btn { margin-top: 4px; }
.funnel-card p { margin-top: 0; }
.funnel-ok { border-left: 4px solid #2e7d32; }
.funnel-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.funnel-row:last-child { border-bottom: 0; }
.funnel-row p { margin: 2px 0; }
.funnel-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.funnel-actions .linkish { display: inline; margin: 0; }
/* "What best describes you?" (biztype.ts): one-tap chips */
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.biz-chip {
  border: 1px solid var(--orange); color: var(--brick); background: #fff; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; line-height: 1.2;
}
.biz-chip.active { background: var(--orange); color: #fff; font-weight: 600; }
.biz-chips .linkish { display: inline; margin: 0 0 0 4px; align-self: center; }
.biz-ask { border-color: var(--orange); margin-bottom: 16px; }
.biz-skip .linkish { margin: 8px 0 0; display: inline; }
.biz-counts { display: grid; gap: 6px; margin: 8px 0 0; }
.biz-count { display: grid; grid-template-columns: minmax(130px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.biz-bar { height: 10px; border-radius: 6px; background: var(--orange); min-width: 2px; }
.biz-member-type { font-size: 13px; }

/* "Start here" on Home: Victor's five welcome videos (src/pages/starthere.tsx) */
.start-here { border: 2px solid var(--orange); margin: 16px 0; }
.start-here h2 { margin: 0; color: var(--maroon); font-size: 20px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-count { background: var(--maroon); color: var(--gold); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sh-sub { margin: 4px 0 10px; }
.sh-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.sh-bar span { display: block; height: 100%; background: var(--gold); transition: width 0.4s ease; }
.sh-steps { list-style: none; margin: 0; padding: 0; }
.sh-step { border-top: 1px solid var(--line); }
.sh-step summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; }
.sh-step summary::-webkit-details-marker { display: none; }
.sh-tick { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.sh-step.done .sh-tick { background: var(--orange); color: #fff; }
.sh-step.done .sh-title strong { color: var(--muted); }
.sh-title { display: flex; flex-direction: column; line-height: 1.3; }
.sh-body { padding: 0 0 14px 42px; }
.sh-video { display: block; width: 100%; max-width: 340px; max-height: 70vh; aspect-ratio: 9 / 16; object-fit: cover; background: var(--maroon); border-radius: 14px; }
.sh-soon { margin: 0 0 8px; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.sh-actions form { margin: 0; }
.sh-actions .btn { margin: 0; }
.sh-hide .linkish { margin-top: 6px; }
@media (max-width: 520px) { .sh-body { padding-left: 0; } .sh-video { max-width: 100%; } }
/* Tap-to-start buttons on a new chat (starters.ts) */
.starters { margin: -4px 0 0 36px; }
.starters p { margin: 0; }
.starters .chip { font: inherit; font-size: 15px; padding: 8px 14px; text-align: left; line-height: 1.3; }
.starters .chip:active { background: var(--orange); color: #fff; }
@media (max-width: 640px) { .starters { margin-left: 0; } }
.sh-summary { margin: 10px 0 0; font-size: 15px; }
.sh-stuck { margin: 10px 0 0; color: var(--muted); }
.sh-stuck a { font-weight: 700; }
.sh-done p { margin: 0 0 8px; } .sh-done p:last-child { margin: 0; }

/* Disclaimer boxes (src/pages/disclaimers.tsx) */
.disclaimer-boxes .disc-box { margin-bottom: 14px; }
.disclaimer-boxes label { font-weight: 600; }
.disclaimer-boxes textarea { width: 100%; box-sizing: border-box; }
.disc-empty { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fdecd9; color: #9a1a0a; font-size: 0.78em; font-weight: 600; }

/* Home Screen app: bottom tab bar with Back (iOS shows no back button there). Hidden in a normal browser. */
.app-tabs { display: none; }
html.standalone .app-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--maroon); border-top: 1px solid rgba(251, 192, 66, 0.25);
  padding: 4px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  box-shadow: 0 -4px 14px rgba(74, 16, 10, 0.18);
}
html.standalone .app-tabs a, html.standalone .app-tabs button {
  flex: 1; min-width: 0; min-height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; padding: 4px 2px; margin: 0; font: inherit;
  font-size: 11px; font-weight: 600; line-height: 1.1; color: rgba(251, 240, 217, 0.78);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html.standalone .app-tabs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.standalone .app-tabs .on { color: var(--gold); }
html.standalone .app-tabs #app-back { color: var(--cream); }
html.standalone .app-tabs #app-back:disabled { opacity: 0.35; cursor: default; }
html.standalone .app-tabs a:active, html.standalone .app-tabs button:not(:disabled):active { transform: scale(0.94); }
/* Keep page content, the feedback button and the footer clear of the bar. */
html.standalone main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
html.standalone .site-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.standalone .fb-open { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media print { .app-tabs { display: none !important; } }
html.standalone .app-tabs.typing { display: none; }

/* My proof (/proof) */
.proof-kinds { display: flex; flex-direction: column; gap: 6px; }
.proof-kinds .label { font-weight: 700; }
.proof-kind, .proof-ok { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.proof-kind input, .proof-ok input { width: auto; margin: 3px 0 0; }
.proof-ok { margin-top: 10px; font-size: 14px; }
.proof-item { display: flex; gap: 14px; align-items: flex-start; }
.proof-pic img { width: 96px; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #fff; }
.proof-body { flex: 1; min-width: 0; }
.proof-body p { margin: 0 0 8px; }
.proof-body details { margin-top: 6px; }
.proof-body details form { margin-top: 8px; }
.proof-save { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; margin: -4px 0 8px; }
.proof-save .linkish { display: inline; margin: 0; font-size: 13px; }
@media (max-width: 420px) { .proof-item { flex-direction: column; } .proof-pic img { width: 100%; max-height: 220px; } }
.msg.user .proof-save .linkish { color: var(--gold); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.plan-chips .chip { font: inherit; font-size: 14px; line-height: 1.3; text-align: left; }
.plan-day .pbox { margin: 10px 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 8px 0; }
.pick-cell { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; }
.pick-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-cell span { position: absolute; left: 4px; top: 4px; min-width: 20px; padding: 1px 5px; border-radius: 999px; background: rgba(74,16,10,.85); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.pick-choose { display: block; text-align: center; cursor: pointer; }
.pick-head { display: flex; gap: 12px; align-items: flex-start; }
.pick-thumb { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; }
.pick-result.done .pick-thumb { opacity: .6; }
