/* Bronomics 2.0 look for the friend's Bro page (after friend.css). The friend has no setting: theme.js
   picks Daytime (7 a.m. to 7 p.m. on their phone) or After Hours. Bro's bubble and the paper slip stay
   as they are: they're part of the scene. */
:root[data-theme="dark"] { --stage: #1A1B20; --stage-deep: #141519; --spot: #3A2A12; --pg-fg: #EDEAE3; --pg-soft: #A9A59C; --pg-card: #1E2026; --pg-line: #2A2C33; --pg-btn: #F2A23A; --pg-btn-fg: #1A1408; }
:root[data-theme="light"] { --stage: #F5A524; --stage-deep: #FBF4E8; --spot: #FFD27A; --pg-fg: #1C1B18; --pg-soft: #6E675C; --pg-card: #FFFFFF; --pg-line: #E8DCC6; --pg-btn: #1C1B18; --pg-btn-fg: #FBF4E8; }
:root[data-theme] {
  --display: 'Bricolage Grotesque', 'Baloo 2', 'Lato', system-ui, sans-serif;
  --body: 'Inter', 'DM Sans', 'Lato', system-ui, -apple-system, sans-serif;
}
:root[data-theme], :root[data-theme] body.fp { background: var(--stage-deep); color: var(--pg-fg); }
:root[data-theme] .fp-scene { margin: 10px 14px 0; border-radius: 24px; min-height: 440px; }
:root[data-theme="dark"] .fp-scene { background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(242, 162, 58, 0.16), transparent 70%), radial-gradient(ellipse 60% 20% at 50% 92%, rgba(242, 162, 58, 0.22), transparent 70%), var(--stage); box-shadow: 0 0 0 1px #2A2C33; }
:root[data-theme="light"] .fp-scene { background: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.55), transparent 55%), linear-gradient(transparent 82%, #E08E12 82%), var(--stage); }
:root[data-theme] .fp-scene::after { display: none; }
:root[data-theme] .fp-from { color: var(--pg-soft); }
:root[data-theme] .fp-from b { color: var(--pg-fg); }
:root[data-theme] .fp-actions { background: var(--stage-deep); }
:root[data-theme] .fp-small, :root[data-theme] .fp-brand, :root[data-theme] .fp-brand a { color: var(--pg-soft); }
:root[data-theme] .fp-note { background: var(--pg-card); box-shadow: 0 0 0 1px var(--pg-line); color: var(--pg-fg); }
:root[data-theme] .fp-row { background: transparent; padding: 0; }
:root[data-theme] .fp-snooze { border: 1px solid var(--pg-line); background: var(--pg-card); color: var(--pg-fg); border-radius: 14px; min-height: 44px; }
:root[data-theme] .fp-report { color: var(--pg-soft); }
:root[data-theme] .fp-laugh { border: 0; background: var(--pg-btn); color: var(--pg-btn-fg); box-shadow: none; border-radius: 16px; font-family: var(--display); font-weight: 700; }
:root[data-theme] .fp-site, :root[data-theme] .fp a.fp-site { border: 1px solid var(--pg-line); background: var(--pg-card); color: var(--pg-fg); box-shadow: none; font-size: 15px; }
:root[data-theme] .fp-site-own { color: var(--pg-soft); }
:root[data-theme] .fp-actions h1 { font-family: var(--display); font-weight: 700; }

/* ---------- Pay back card (v2.0) ---------- */
.pb-card { display: grid; gap: 10px; margin-top: 6px; padding: 16px; border-radius: 20px; background: var(--pg-card, #fff); color: var(--pg-fg, #1B1A17); box-shadow: 0 0 0 1px var(--pg-line, #E8DCC6); text-align: left; }
.pb-card h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.pb-sub, .pb-how, .pb-small, .pb-pick { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pg-soft, #6E675C); }
.pb-small { text-align: center; }
.pb-method { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--pg-btn, #F5A524) 9%, var(--pg-card, #fff)); }
.pb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pb-name { margin: 0; font-weight: 700; font-size: 15px; }
.pb-val { margin: 2px 0 0; font-size: 13px; color: var(--pg-soft, #6E675C); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pb-best { flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #F5A524; color: #1C1B18; }
.pb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-btns > * { flex: 1 1 140px; }
.pb-go, .pb-copy, .pb-paid, .pb-send { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 14px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; list-style: none; text-align: center; }
.pb-go, .pb-send { background: var(--pg-btn, #1C1B18); color: var(--pg-btn-fg, #FBF4E8); border: 0; }
.pb-go::-webkit-details-marker, .pb-paid::-webkit-details-marker { display: none; }
.pb-copy { background: transparent; color: inherit; border: 1px solid var(--pg-line, #E8DCC6); }
.pb-wide { flex-basis: 100%; }
.pb-banks { flex-basis: 100%; }
.pb-banks summary.pb-other { background: transparent; color: inherit; border: 1px solid var(--pg-line, #E8DCC6); }
.pb-banks[open] .pb-pick { margin-top: 10px; }
.pb-banklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pb-bank { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--pg-line, #E8DCC6); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.pb-paidbox { display: grid; gap: 10px; }
.pb-paid { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.pb-how-much { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pb-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--pg-line, #E8DCC6); font-size: 14px; font-weight: 600; }
.pb-radio input { width: 20px; height: 20px; accent-color: #F5A524; }
.pb-amt { display: none; gap: 4px; font-size: 13px; font-weight: 600; }
.pb-how-much:has(input[value="part"]:checked) .pb-amt { display: grid; }
.pb-amt input { min-height: 46px; border-radius: 12px; border: 1px solid var(--pg-line, #E8DCC6); background: transparent; color: inherit; padding: 0 12px; font: inherit; font-size: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Fixes: hidden stays hidden even on flex buttons; link buttons keep their own text colour. */
.pb-card [hidden] { display: none !important; }
.fp .pb-card a.pb-go { color: var(--pg-btn-fg, #FBF4E8); }
.fp .pb-card a.pb-bank, .fp .pb-card .pb-copy { color: var(--pg-fg, #1B1A17); }
:root[data-theme="light"] .pb-method { background: #FDF1DC; }
:root[data-theme="dark"] .pb-method { background: #26282F; }
.pb-copy { background: var(--pg-card, #fff); }

/* ---------- v2.1 Pay back: one dropdown ---------- */
.pb-headrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pb-total { font-family: var(--display); font-weight: 800; font-size: 20px; }
.pb-label { display: block; margin-bottom: -4px; font-size: 12px; font-weight: 700; color: var(--pg-soft, #6E675C); }
.pb-select { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--pg-line, #E8DCC6); background: var(--pg-card, #fff); color: inherit;
  padding: 0 40px 0 12px; font: inherit; font-size: 16px; font-weight: 600; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.pb-picked .pb-name { display: none; }
.pb-method[hidden] { display: none !important; }
.pb-valrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-valrow .pb-val { margin: 0; font-size: 15px; font-weight: 600; color: inherit; }
.pb-valrow .pb-copy { flex: none; min-height: 38px; padding: 0 14px; font-size: 13px; }
.pb-method > .pb-go, .pb-method > details { width: 100%; box-sizing: border-box; }
.pb-banks > summary { width: 100%; box-sizing: border-box; }
.pb-banks[open] .pb-banklist { margin-top: 8px; }
.pb-paidbox > summary.pb-paid { width: 100%; box-sizing: border-box; }
.pb-steps { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pg-soft, #6E675C); }

/* v2.2.18: share the scene (no names, no money) */
.fp-share-form { display: grid; gap: 6px; }
.fp-share { display: block; width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, #F2A23A 70%, transparent); background: transparent; color: inherit; font: 800 15px/1.2 var(--body, Inter, system-ui, sans-serif); }
.fp-share-note { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.4; opacity: .75; }
.fp-share-ask { max-width: 250px; width: calc(100% - 80px); border: 0; border-radius: 14px; padding: 11px 12px 10px; background: #FFFDF6; color: #1B1A17; }
.fp-share-ask::backdrop { background: rgba(27, 26, 23, .55); }
.fp-share-ask h2 { margin: 0 0 4px; font: 800 14px/1.2 var(--display, Inter, system-ui, sans-serif); }
.fp-share-ask p { margin: 0 0 3px; font-size: 11.5px; line-height: 1.35; }
.fp-share-ask-row { display: flex; gap: 6px; margin-top: 8px; }
.fp-share-ask-row button { flex: 1; min-height: 32px; border-radius: 9px; font-weight: 800; font-size: 12.5px; border: 1.5px solid #1B1A17; background: #fff; color: #1B1A17; }
.fp-share-ask-row .fp-share-yes { background: #F2A23A; border-color: #F2A23A; }

/* v2.2.20: one gold outline on the friend's Bro page, in light and dark. Links are green like the app. */
:root[data-theme] { --pg-gold: color-mix(in srgb, #F2A23A 60%, transparent); }
:root[data-theme="light"] { --pg-link: #0E6E6B; }
:root[data-theme="dark"] { --pg-link: #7FD6BE; }
.pb-card { box-shadow: none; border: 1.5px solid var(--pg-gold, #F2A23A); }
.pb-method, .pb-copy, .pb-select, .pb-radio, .pb-amt input, .pb-bank, .pb-banks summary.pb-other { border: 1.5px solid var(--pg-gold, #F2A23A); }
:root[data-theme] .fp-note { box-shadow: none; border: 1.5px solid var(--pg-gold); }
:root[data-theme] .fp-snooze { border: 1.5px solid var(--pg-gold); }
:root[data-theme] .fp-report { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1.5px solid var(--pg-gold); border-radius: 14px; background: transparent; color: var(--pg-fg); text-decoration: none; text-align: center; font-weight: 700; font-size: 14px; }
:root[data-theme] .fp-brand .fp-links a { color: var(--pg-link); text-decoration: underline; }
.pb-paid { border: 1.5px solid var(--pg-gold, #F2A23A); }
:root[data-theme] .fp-scene { box-shadow: 0 0 0 1.5px var(--pg-gold); }
/* v2.2.20: "Not now" sits under "Maine de diya", same size, same gold outline. */
.pb-notnow { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 12px;
  background: transparent; color: inherit; border: 1.5px solid var(--pg-gold, #F2A23A); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.fp .pb-card a.pb-notnow { color: var(--pg-fg, #1B1A17); }
/* v2.2.20: the bronomics.app pill is the cream stamp again (like the logo), in light and dark. */
:root[data-theme] .fp-site, :root[data-theme] .fp a.fp-site { background: #FFF8E6; color: #1B1A17; border: 2px solid #1B1A17; box-shadow: 0 4px 0 #F4A300; font-weight: 800; font-size: 17px; }
:root[data-theme] .fp-site-own { color: #4A463F; }
